mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-22 22:22:25 +00:00
1 line
4.1 MiB
1 line
4.1 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(qe,J,m){"use strict";m.d(J,{o:function(){return L}});var z=m(5671),Y=m(3144),M=m(591),U=m(8929),L=function(){function P(){(0,z.Z)(this,P),this.data=[],this.dataChange=new M.X([]),this.itemUpdated=new U.xQ}return(0,Y.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(y){this.findIndex(y)>=0?this.update(y):(this.data.push(y),this.dataChange.next(this.data))}},{key:"set",value:function(y){var K=this;y.forEach(function(E){var A=K.findIndex(E);if(A>=0){var k=Object.assign(K.data[A],E);K.data[A]=k}else K.data.push(E)}),this.data.filter(function(E){return 0===y.filter(function(A){return K.getItemKey(A)===K.getItemKey(E)}).length}).forEach(function(E){return K.remove(E)}),this.dataChange.next(this.data)}},{key:"get",value:function(y){var K=this,F=this.data.findIndex(function(E){return K.getItemKey(E)===y});if(F>=0)return this.data[F]}},{key:"update",value:function(y){var K=this.findIndex(y);if(K>=0){var F=Object.assign(this.data[K],y);this.data[K]=F,this.dataChange.next(this.data),this.itemUpdated.next(F)}}},{key:"remove",value:function(y){var K=this.findIndex(y);K>=0&&(this.data.splice(K,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(y){var K=this;return this.data.findIndex(function(F){return K.getItemKey(F)===K.getItemKey(y)})}}]),P}()},6215:function(qe,J,m){"use strict";m.d(J,{F:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.link_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5366:function(qe,J,m){"use strict";m.d(J,{G:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5735),P=m(5e3),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(){return(0,z.Z)(this,F),K.apply(this,arguments)}return(0,Y.Z)(F,[{key:"getItemKey",value:function(A){return A.node_id}}]),F}(L.o);D.\u0275fac=function(){var y;return function(F){return(y||(y=P.n5z(D)))(F||D)}}(),D.\u0275prov=P.Yz7({token:D,factory:D.\u0275fac})},5542:function(qe,J,m){"use strict";m.d(J,{X:function(){return P}});var z=m(5671),Y=m(3144),M=m(4766),U=m(5e3),L=m(2437),P=function(){function D(y){(0,z.Z)(this,D),this.httpController=y}return(0,Y.Z)(D,[{key:"getComputes",value:function(K){return this.httpController.get(K,"/computes")}},{key:"getUploadPath",value:function(K,F,E){return"".concat(K.protocol,"//").concat(K.host,":").concat(K.port,"/").concat(M.N.current_version,"/").concat(F,"/images/").concat(E)}},{key:"getStatistics",value:function(K){return this.httpController.get(K,"/statistics")}}]),D}();P.\u0275fac=function(y){return new(y||P)(U.LFG(L.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(qe,J,m){"use strict";m.d(J,{CJ:function(){return A},zw:function(){return k}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(5724),P=m(5e3),D=m(4766),y=m(1737),K=m(7221),F=m(520),E=function(I){(0,M.Z)(w,I);var T=(0,U.Z)(w);function w(S){return(0,z.Z)(this,w),T.call(this,S)}return(0,Y.Z)(w,null,[{key:"fromError",value:function(N,R){var W=new w(N);return W.originalError=R,W}}]),w}((0,L.Z)(Error)),A=function(){function I(){(0,z.Z)(this,I)}return(0,Y.Z)(I,[{key:"handleError",value:function(w){var S=w;return"HttpErrorResponse"===w.name&&0===w.status&&(S=E.fromError("Controller is unreachable",w)),401===w.status&&window.location.reload(),(0,y._)(S)}}]),I}();A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=P.Yz7({token:A,factory:A.\u0275fac});var k=function(){function I(T,w){(0,z.Z)(this,I),this.http=T,this.errorHandler=w,this.requestsNotificationEmitter=new P.vpe}return(0,Y.Z)(I,[{key:"get",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getText",value:function(w,S,N){N=this.getTextOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(w,S,N){N=this.getBlobOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("GET ".concat(R.url)),this.http.get(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"post",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.requestsNotificationEmitter.emit("POST ".concat(W.url)),this.http.post(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"put",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.requestsNotificationEmitter.emit("PUT ".concat(W.url)),this.http.put(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"delete",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.requestsNotificationEmitter.emit("DELETE ".concat(R.url)),this.http.delete(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"patch",value:function(w,S,N,R){R=this.getJsonOptions(R);var W=this.getOptionsForController(w,S,R);return this.http.patch(W.url,N,W.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"head",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.http.head(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"options",value:function(w,S,N){N=this.getJsonOptions(N);var R=this.getOptionsForController(w,S,N);return this.http.options(R.url,R.options).pipe((0,K.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(w){return w||{responseType:"json"}}},{key:"getTextOptions",value:function(w){return w||{responseType:"text"}}},{key:"getBlobOptions",value:function(w){return w||{responseType:"blob"}}},{key:"getOptionsForController",value:function(w,S,N){return w&&w.host&&w.port?(w.protocol||(w.protocol=location.protocol),S="".concat(w.protocol,"//").concat(w.host,":").concat(w.port,"/").concat(D.N.current_version).concat(S)):S="/".concat(D.N.current_version).concat(S),N.headers||(N.headers={}),w&&w.authToken&&!w.tokenExpired&&(N.headers.Authorization="Bearer ".concat(w.authToken)),{url:S,options:N}}}]),I}();k.\u0275fac=function(T){return new(T||k)(P.LFG(F.eN),P.LFG(A))},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac})},9971:function(qe,J,m){"use strict";m.d(J,{Y:function(){return K}});var z=m(5671),Y=m(3144),M=m(4766),U=m(8929),L=m(5e3),P=m(2437),D=m(9449),y=m(9740),K=function(){function F(E,A,k){(0,z.Z)(this,F),this.httpController=E,this.settingsService=A,this.recentlyOpenedProjectService=k,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new U.xQ}return(0,Y.Z)(F,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(A,k){return this.httpController.getText(A,"/projects/".concat(k,"/files/README.txt"))}},{key:"postReadmeFile",value:function(A,k,I){return this.httpController.post(A,"/projects/".concat(k,"/files/README.txt"),I)}},{key:"get",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k))}},{key:"open",value:function(A,k){return this.httpController.post(A,"/projects/".concat(k,"/open"),{})}},{key:"close",value:function(A,k){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(A,"/projects/".concat(k,"/close"),{})}},{key:"list",value:function(A){return this.httpController.get(A,"/projects")}},{key:"nodes",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/nodes"))}},{key:"links",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/links"))}},{key:"drawings",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/drawings"))}},{key:"add",value:function(A,k,I){return this.httpController.post(A,"/projects",{name:k,project_id:I})}},{key:"update",value:function(A,k){return this.httpController.put(A,"/projects/".concat(k.project_id),{auto_close:k.auto_close,auto_open:k.auto_open,auto_start:k.auto_start,drawing_grid_size:k.drawing_grid_size,grid_size:k.grid_size,name:k.name,scene_width:k.scene_width,scene_height:k.scene_height,show_interface_labels:k.show_interface_labels})}},{key:"delete",value:function(A,k){return this.httpController.delete(A,"/projects/".concat(k))}},{key:"getUploadPath",value:function(A,k,I){return"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/import?name=").concat(I)}},{key:"getExportPath",value:function(A,k){return"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k.project_id,"/export")}},{key:"export",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/export"))}},{key:"getStatistics",value:function(A,k){return this.httpController.get(A,"/projects/".concat(k,"/stats"))}},{key:"duplicate",value:function(A,k,I){return this.httpController.post(A,"/projects/".concat(k,"/duplicate"),{name:I})}},{key:"isReadOnly",value:function(A){return!!A.readonly&&A.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(A,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=I.compression_level&&""!=I.compression_level?"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&compression_level=").concat(I.compression_level,"&token=").concat(A.authToken):"".concat(A.protocol,"//").concat(A.host,":").concat(A.port,"/").concat(M.N.current_version,"/projects/").concat(k,"/export?include_snapshots=").concat(I.include_snapshots,"&include_images=").concat(I.include_base_image,"&reset_mac_addresses=").concat(I.reset_mac_address,"&compression=").concat(I.compression,"&token=").concat(A.authToken)}}]),F}();K.\u0275fac=function(E){return new(E||K)(L.LFG(P.zw),L.LFG(D.g),L.LFG(y.p))},K.\u0275prov=L.Yz7({token:K,factory:K.\u0275fac})},9740:function(qe,J,m){"use strict";m.d(J,{p:function(){return U}});var z=m(5671),Y=m(3144),M=m(5e3),U=function(){function L(){(0,z.Z)(this,L)}return(0,Y.Z)(L,[{key:"setcontrollerId",value:function(D){this.controllerId=D}},{key:"setProjectId",value:function(D){this.projectId=D}},{key:"setcontrollerIdProjectList",value:function(D){this.controllerIdProjectList=D}},{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=""}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=M.Yz7({token:U,factory:U.\u0275fac})},9449:function(qe,J,m){"use strict";m.d(J,{g:function(){return U}});var z=m(5671),Y=m(3144),M=m(5e3),U=function(){function L(){(0,z.Z)(this,L),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,Y.Z)(L,[{key:"setReportsSettings",value:function(D){this.settings.crash_reports=D,this.removeItem(this.reportsSettings),D?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(D){this.settings.anonymous_statistics=D,this.removeItem(this.statisticsSettings),D?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(D){this.settings.console_command=D,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,D)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(D){localStorage.removeItem(D)}},{key:"setItem",value:function(D,y){localStorage.setItem(D,y)}},{key:"getItem",value:function(D){return localStorage.getItem(D)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(D){this.settings=D,this.setConsoleSettings(D.console_command),this.setReportsSettings(D.crash_reports),this.setStatisticsSettings(D.anonymous_statistics)}}]),L}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=M.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(qe,J,m){"use strict";m.d(J,{f:function(){return L}});var z=m(5671),Y=m(3144),M=m(5e3),U=m(591),L=function(){function P(){(0,z.Z)(this,P),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new M.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,Y.Z)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(y){y?(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}();L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=M.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})},4766:function(qe,J,m){"use strict";m.d(J,{N:function(){return z}});var z={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},7581:function(qe,J,m){"use strict";var z={};m.r(z),m.d(z,{active:function(){return k1e},arc:function(){return fge},area:function(){return cQ},areaRadial:function(){return hQ},ascending:function(){return Nf},axisBottom:function(){return l8},axisLeft:function(){return u8},axisRight:function(){return s8},axisTop:function(){return a8},bisect:function(){return O_},bisectLeft:function(){return V6},bisectRight:function(){return HM},bisector:function(){return U1},brush:function(){return Mse},brushSelection:function(){return kse},brushX:function(){return Tse},brushY:function(){return Ese},chord:function(){return xse},clientPoint:function(){return h5},cluster:function(){return nde},color:function(){return KR},contourDensity:function(){return ple},contours:function(){return kY},create:function(){return N_e},creator:function(){return f5},cross:function(){return tl},csvFormat:function(){return wle},csvFormatRows:function(){return kle},csvParse:function(){return ble},csvParseRows:function(){return Cle},cubehelix:function(){return CY},curveBasis:function(){return Oge},curveBasisClosed:function(){return Ige},curveBasisOpen:function(){return Pge},curveBundle:function(){return Rge},curveCardinal:function(){return Lge},curveCardinalClosed:function(){return Zge},curveCardinalOpen:function(){return Nge},curveCatmullRom:function(){return Bge},curveCatmullRomClosed:function(){return Fge},curveCatmullRomOpen:function(){return Uge},curveLinear:function(){return g5},curveLinearClosed:function(){return Hge},curveMonotoneX:function(){return jge},curveMonotoneY:function(){return zge},curveNatural:function(){return Wge},curveStep:function(){return Vge},curveStepAfter:function(){return Gge},curveStepBefore:function(){return Yge},customEvent:function(){return I_e},descending:function(){return I_},deviation:function(){return Q4},dispatch:function(){return Ff},drag:function(){return W_},dragDisable:function(){return jf},dragEnable:function(){return X1},dsvFormat:function(){return yU},easeBack:function(){return PY},easeBackIn:function(){return Kle},easeBackInOut:function(){return PY},easeBackOut:function(){return Jle},easeBounce:function(){return TS},easeBounceIn:function(){return Gle},easeBounceInOut:function(){return qle},easeBounceOut:function(){return TS},easeCircle:function(){return IY},easeCircleIn:function(){return Nle},easeCircleInOut:function(){return IY},easeCircleOut:function(){return Ble},easeCubic:function(){return jR},easeCubicIn:function(){return fse},easeCubicInOut:function(){return jR},easeCubicOut:function(){return pse},easeElastic:function(){return RY},easeElasticIn:function(){return Qle},easeElasticInOut:function(){return Xle},easeElasticOut:function(){return RY},easeExp:function(){return OY},easeExpIn:function(){return Lle},easeExpInOut:function(){return OY},easeExpOut:function(){return Zle},easeLinear:function(){return xle},easePoly:function(){return SY},easePolyIn:function(){return Ole},easePolyInOut:function(){return SY},easePolyOut:function(){return Ile},easeQuad:function(){return MY},easeQuadIn:function(){return Dle},easeQuadInOut:function(){return MY},easeQuadOut:function(){return Ale},easeSin:function(){return AY},easeSinIn:function(){return Ple},easeSinInOut:function(){return AY},easeSinOut:function(){return Rle},entries:function(){return zse},event:function(){return Ih},extent:function(){return hh},forceCenter:function(){return $le},forceCollide:function(){return vue},forceLink:function(){return bue},forceManyBody:function(){return Mue},forceRadial:function(){return Sue},forceSimulation:function(){return Eue},forceX:function(){return xue},forceY:function(){return Due},format:function(){return WY},formatDefaultLocale:function(){return YY},formatLocale:function(){return zY},formatPrefix:function(){return VY},formatSpecifier:function(){return iL},geoAlbers:function(){return oq},geoAlbersUsa:function(){return Zce},geoArea:function(){return Hue},geoAzimuthalEqualArea:function(){return Nce},geoAzimuthalEqualAreaRaw:function(){return c7},geoAzimuthalEquidistant:function(){return Bce},geoAzimuthalEquidistantRaw:function(){return d7},geoBounds:function(){return Vue},geoCentroid:function(){return Que},geoCircle:function(){return Xue},geoClipAntimeridian:function(){return zU},geoClipCircle:function(){return SG},geoClipExtent:function(){return oce},geoClipRectangle:function(){return xL},geoConicConformal:function(){return Uce},geoConicConformalRaw:function(){return lq},geoConicEqualArea:function(){return FL},geoConicEqualAreaRaw:function(){return iq},geoConicEquidistant:function(){return jce},geoConicEquidistantRaw:function(){return uq},geoContains:function(){return fce},geoDistance:function(){return AS},geoEquirectangular:function(){return Hce},geoEquirectangularRaw:function(){return FS},geoGnomonic:function(){return zce},geoGnomonicRaw:function(){return f7},geoGraticule:function(){return NG},geoGraticule10:function(){return pce},geoIdentity:function(){return Wce},geoInterpolate:function(){return hce},geoLength:function(){return xG},geoMercator:function(){return Fce},geoMercatorRaw:function(){return BS},geoNaturalEarth1:function(){return Vce},geoNaturalEarth1Raw:function(){return p7},geoOrthographic:function(){return Yce},geoOrthographicRaw:function(){return h7},geoPath:function(){return Mce},geoProjection:function(){return Dh},geoProjectionMutator:function(){return l7},geoRotation:function(){return yG},geoStereographic:function(){return Gce},geoStereographicRaw:function(){return m7},geoStream:function(){return Nd},geoTransform:function(){return Sce},geoTransverseMercator:function(){return qce},geoTransverseMercatorRaw:function(){return _7},hcl:function(){return _Y},hierarchy:function(){return g7},histogram:function(){return e8},hsl:function(){return sY},interpolate:function(){return A7},interpolateArray:function(){return Fq},interpolateBasis:function(){return Lq},interpolateBasisClosed:function(){return Zq},interpolateBlues:function(){return $he},interpolateBrBG:function(){return Ihe},interpolateBuGn:function(){return Hhe},interpolateBuPu:function(){return jhe},interpolateCool:function(){return cme},interpolateCubehelix:function(){return yfe},interpolateCubehelixDefault:function(){return lme},interpolateCubehelixLong:function(){return bfe},interpolateDate:function(){return Uq},interpolateGnBu:function(){return zhe},interpolateGreens:function(){return eme},interpolateGreys:function(){return tme},interpolateHcl:function(){return _fe},interpolateHclLong:function(){return gfe},interpolateHsl:function(){return ffe},interpolateHslLong:function(){return pfe},interpolateInferno:function(){return hme},interpolateLab:function(){return mfe},interpolateMagma:function(){return pme},interpolateNumber:function(){return Xf},interpolateObject:function(){return Hq},interpolateOrRd:function(){return Whe},interpolateOranges:function(){return ime},interpolatePRGn:function(){return Phe},interpolatePiYG:function(){return Rhe},interpolatePlasma:function(){return mme},interpolatePuBu:function(){return Yhe},interpolatePuBuGn:function(){return Vhe},interpolatePuOr:function(){return Lhe},interpolatePuRd:function(){return Ghe},interpolatePurples:function(){return nme},interpolateRainbow:function(){return dme},interpolateRdBu:function(){return Zhe},interpolateRdGy:function(){return Nhe},interpolateRdPu:function(){return qhe},interpolateRdYlBu:function(){return Bhe},interpolateRdYlGn:function(){return Fhe},interpolateReds:function(){return rme},interpolateRgb:function(){return S7},interpolateRgbBasis:function(){return $de},interpolateRgbBasisClosed:function(){return efe},interpolateRound:function(){return rfe},interpolateSpectral:function(){return Uhe},interpolateString:function(){return jq},interpolateTransformCss:function(){return afe},interpolateTransformSvg:function(){return sfe},interpolateViridis:function(){return fme},interpolateWarm:function(){return ume},interpolateYlGn:function(){return Jhe},interpolateYlGnBu:function(){return Khe},interpolateYlOrBr:function(){return Qhe},interpolateYlOrRd:function(){return Xhe},interpolateZoom:function(){return dfe},interrupt:function(){return YX},interval:function(){return Bye},isoFormat:function(){return Rye},isoParse:function(){return Nye},keys:function(){return Hse},lab:function(){return mY},line:function(){return v5},lineRadial:function(){return pQ},linkHorizontal:function(){return Cge},linkRadial:function(){return kge},linkVertical:function(){return wge},local:function(){return aQ},map:function(){return j_},matcher:function(){return GJ},max:function(){return J6},mean:function(){return WM},median:function(){return VM},merge:function(){return YM},min:function(){return Q6},mouse:function(){return F_e},namespace:function(){return d9},namespaces:function(){return c9},nest:function(){return Nse},now:function(){return H_},pack:function(){return Sde},packEnclose:function(){return dq},packSiblings:function(){return Tde},pairs:function(){return Y6},partition:function(){return xde},path:function(){return Zd},permute:function(){return X6},pie:function(){return mge},pointRadial:function(){return sx},polygonArea:function(){return wfe},polygonCentroid:function(){return kfe},polygonContains:function(){return Sfe},polygonHull:function(){return Mfe},polygonLength:function(){return xfe},precisionFixed:function(){return Lue},precisionPrefix:function(){return Zue},precisionRound:function(){return Nue},quadtree:function(){return nL},quantile:function(){return L_},quantize:function(){return Cfe},radialArea:function(){return hQ},radialLine:function(){return pQ},randomBates:function(){return Ofe},randomExponential:function(){return Ife},randomIrwinHall:function(){return hK},randomLogNormal:function(){return Afe},randomNormal:function(){return pK},randomUniform:function(){return Dfe},range:function(){return Nl},rgb:function(){return oY},ribbon:function(){return Zse},scaleBand:function(){return Y7},scaleIdentity:function(){return SK},scaleImplicit:function(){return W7},scaleLinear:function(){return MK},scaleLog:function(){return IK},scaleOrdinal:function(){return V7},scalePoint:function(){return Pfe},scalePow:function(){return Q7},scaleQuantile:function(){return PK},scaleQuantize:function(){return RK},scaleSequential:function(){return fJ},scaleSqrt:function(){return epe},scaleThreshold:function(){return LK},scaleTime:function(){return vhe},scaleUtc:function(){return whe},scan:function(){return $6},schemeAccent:function(){return The},schemeBlues:function(){return RJ},schemeBrBG:function(){return pJ},schemeBuGn:function(){return wJ},schemeBuPu:function(){return kJ},schemeCategory10:function(){return khe},schemeDark2:function(){return Ehe},schemeGnBu:function(){return TJ},schemeGreens:function(){return LJ},schemeGreys:function(){return ZJ},schemeOrRd:function(){return EJ},schemeOranges:function(){return FJ},schemePRGn:function(){return hJ},schemePaired:function(){return Mhe},schemePastel1:function(){return She},schemePastel2:function(){return xhe},schemePiYG:function(){return mJ},schemePuBu:function(){return SJ},schemePuBuGn:function(){return MJ},schemePuOr:function(){return _J},schemePuRd:function(){return xJ},schemePurples:function(){return NJ},schemeRdBu:function(){return gJ},schemeRdGy:function(){return vJ},schemeRdPu:function(){return DJ},schemeRdYlBu:function(){return yJ},schemeRdYlGn:function(){return bJ},schemeReds:function(){return BJ},schemeSet1:function(){return Dhe},schemeSet2:function(){return Ahe},schemeSet3:function(){return Ohe},schemeSpectral:function(){return CJ},schemeYlGn:function(){return OJ},schemeYlGnBu:function(){return AJ},schemeYlOrBr:function(){return IJ},schemeYlOrRd:function(){return PJ},select:function(){return oQ},selectAll:function(){return U_e},selection:function(){return Z_e},selector:function(){return f9},selectorAll:function(){return VJ},set:function(){return Use},shuffle:function(){return eR},stack:function(){return Kge},stackOffsetDiverging:function(){return Qge},stackOffsetExpand:function(){return Jge},stackOffsetNone:function(){return IC},stackOffsetSilhouette:function(){return Xge},stackOffsetWiggle:function(){return $ge},stackOrderAscending:function(){return NQ},stackOrderDescending:function(){return eve},stackOrderInsideOut:function(){return tve},stackOrderNone:function(){return PC},stackOrderReverse:function(){return nve},stratify:function(){return Ide},style:function(){return JJ},sum:function(){return t8},symbol:function(){return Age},symbolCircle:function(){return T9},symbolCross:function(){return mQ},symbolDiamond:function(){return gQ},symbolSquare:function(){return bQ},symbolStar:function(){return yQ},symbolTriangle:function(){return CQ},symbolWye:function(){return wQ},symbols:function(){return Dge},thresholdFreedmanDiaconis:function(){return W1},thresholdScott:function(){return K6},thresholdSturges:function(){return z1},tickIncrement:function(){return mh},tickStep:function(){return R_},ticks:function(){return P_},timeDay:function(){return sve},timeDays:function(){return lve},timeFormat:function(){return EX},timeFormatDefaultLocale:function(){return SX},timeFormatLocale:function(){return hX},timeFriday:function(){return $Q},timeFridays:function(){return pve},timeHour:function(){return ove},timeHours:function(){return ave},timeInterval:function(){return xs},timeMillisecond:function(){return FQ},timeMilliseconds:function(){return UQ},timeMinute:function(){return rve},timeMinutes:function(){return ive},timeMonday:function(){return KQ},timeMondays:function(){return uve},timeMonth:function(){return mve},timeMonths:function(){return _ve},timeParse:function(){return MX},timeSaturday:function(){return eX},timeSaturdays:function(){return hve},timeSecond:function(){return WQ},timeSeconds:function(){return VQ},timeSunday:function(){return R9},timeSundays:function(){return tX},timeThursday:function(){return XQ},timeThursdays:function(){return fve},timeTuesday:function(){return JQ},timeTuesdays:function(){return cve},timeWednesday:function(){return QQ},timeWednesdays:function(){return dve},timeWeek:function(){return R9},timeWeeks:function(){return tX},timeYear:function(){return gve},timeYears:function(){return vve},timeout:function(){return gS},timer:function(){return _S},timerFlush:function(){return DV},touch:function(){return H_e},touches:function(){return j_e},transition:function(){return p$},transpose:function(){return GM},tree:function(){return Bde},treemap:function(){return Fde},treemapBinary:function(){return Ude},treemapDice:function(){return HS},treemapResquarify:function(){return jde},treemapSlice:function(){return YL},treemapSliceDice:function(){return Hde},treemapSquarify:function(){return Eq},tsvFormat:function(){return Mle},tsvFormatRows:function(){return Sle},tsvParse:function(){return Tle},tsvParseRows:function(){return Ele},utcDay:function(){return kve},utcDays:function(){return Tve},utcFormat:function(){return B9},utcFriday:function(){return cX},utcFridays:function(){return Dve},utcHour:function(){return Cve},utcHours:function(){return wve},utcMillisecond:function(){return FQ},utcMilliseconds:function(){return UQ},utcMinute:function(){return yve},utcMinutes:function(){return bve},utcMonday:function(){return aX},utcMondays:function(){return Eve},utcMonth:function(){return Ove},utcMonths:function(){return Ive},utcParse:function(){return F9},utcSaturday:function(){return dX},utcSaturdays:function(){return Ave},utcSecond:function(){return WQ},utcSeconds:function(){return VQ},utcSunday:function(){return Z9},utcSundays:function(){return fX},utcThursday:function(){return uX},utcThursdays:function(){return xve},utcTuesday:function(){return sX},utcTuesdays:function(){return Mve},utcWednesday:function(){return lX},utcWednesdays:function(){return Sve},utcWeek:function(){return Z9},utcWeeks:function(){return fX},utcYear:function(){return Pve},utcYears:function(){return Rve},values:function(){return jse},variance:function(){return G6},voronoi:function(){return j1e},window:function(){return p9},zip:function(){return n8},zoom:function(){return S$},zoomIdentity:function(){return U5},zoomTransform:function(){return E$}});var Y={};m.r(Y),m.d(Y,{safe:function(){return Gte},spec:function(){return jAe}});var M={};m.r(M),m.d(M,{getTrace:function(){return Rne},isKeyword:function(){return mIe},isProperty:function(){return hIe},isType:function(){return pIe}});var U={};m.r(U),m.d(U,{generate:function(){return AIe},name:function(){return xIe},parse:function(){return Wne},structure:function(){return DIe}});var L={};m.r(L),m.d(L,{generate:function(){return LIe},name:function(){return IIe},parse:function(){return Yne},structure:function(){return RIe},walkContext:function(){return PIe}});var P={};m.r(P),m.d(P,{generate:function(){return FIe},name:function(){return ZIe},parse:function(){return Gne},structure:function(){return BIe},walkContext:function(){return NIe}});var D={};m.r(D),m.d(D,{generate:function(){return GIe},name:function(){return VIe},parse:function(){return Kne},structure:function(){return YIe}});var y={};m.r(y),m.d(y,{generate:function(){return $Ie},name:function(){return JIe},parse:function(){return Xne},structure:function(){return XIe},walkContext:function(){return QIe}});var K={};m.r(K),m.d(K,{generate:function(){return nPe},name:function(){return ePe},parse:function(){return $ne},structure:function(){return tPe}});var F={};m.r(F),m.d(F,{generate:function(){return oPe},name:function(){return rPe},parse:function(){return ere},structure:function(){return iPe}});var E={};m.r(E),m.d(E,{generate:function(){return lPe},name:function(){return aPe},parse:function(){return tre},structure:function(){return sPe}});var A={};m.r(A),m.d(A,{generate:function(){return fPe},name:function(){return cPe},parse:function(){return nre},structure:function(){return dPe}});var k={};m.r(k),m.d(k,{generate:function(){return vPe},name:function(){return _Pe},parse:function(){return ire},structure:function(){return gPe}});var I={};m.r(I),m.d(I,{generate:function(){return kPe},name:function(){return CPe},parse:function(){return ore},structure:function(){return wPe}});var T={};m.r(T),m.d(T,{generate:function(){return LPe},name:function(){return IPe},parse:function(){return lre},structure:function(){return RPe},walkContext:function(){return PPe}});var w={};m.r(w),m.d(w,{generate:function(){return HPe},name:function(){return FPe},parse:function(){return ure},structure:function(){return UPe}});var S={};m.r(S),m.d(S,{generate:function(){return WPe},name:function(){return jPe},parse:function(){return cre},structure:function(){return zPe}});var N={};m.r(N),m.d(N,{generate:function(){return qPe},name:function(){return VPe},parse:function(){return dre},structure:function(){return GPe},walkContext:function(){return YPe}});var R={};m.r(R),m.d(R,{generate:function(){return XPe},name:function(){return JPe},parse:function(){return fre},structure:function(){return QPe},xxx:function(){return KPe}});var W={};m.r(W),m.d(W,{generate:function(){return t3e},name:function(){return $Pe},parse:function(){return pre},structure:function(){return e3e}});var $={};m.r($),m.d($,{generate:function(){return i3e},name:function(){return n3e},parse:function(){return hre},structure:function(){return r3e}});var ce={};m.r(ce),m.d(ce,{generate:function(){return s3e},name:function(){return o3e},parse:function(){return mre},structure:function(){return a3e}});var se={};m.r(se),m.d(se,{generate:function(){return c3e},name:function(){return l3e},parse:function(){return _re},structure:function(){return u3e}});var ee={};m.r(ee),m.d(ee,{generate:function(){return p3e},name:function(){return d3e},parse:function(){return gre},structure:function(){return f3e}});var oe={};m.r(oe),m.d(oe,{generate:function(){return _3e},name:function(){return h3e},parse:function(){return vre},structure:function(){return m3e}});var ge={};m.r(ge),m.d(ge,{generate:function(){return y3e},name:function(){return g3e},parse:function(){return yre},structure:function(){return v3e}});var Oe={};m.r(Oe),m.d(Oe,{generate:function(){return w3e},name:function(){return b3e},parse:function(){return bre},structure:function(){return C3e}});var ot={};m.r(ot),m.d(ot,{generate:function(){return E3e},name:function(){return k3e},parse:function(){return Cre},structure:function(){return T3e}});var xe={};m.r(xe),m.d(xe,{generate:function(){return x3e},name:function(){return M3e},parse:function(){return wre},structure:function(){return S3e}});var _e={};m.r(_e),m.d(_e,{generate:function(){return I3e},name:function(){return D3e},parse:function(){return kre},structure:function(){return O3e},walkContext:function(){return A3e}});var ke={};m.r(ke),m.d(ke,{generate:function(){return Z3e},name:function(){return P3e},parse:function(){return Tre},structure:function(){return L3e},walkContext:function(){return R3e}});var Be={};m.r(Be),m.d(Be,{generate:function(){return H3e},name:function(){return F3e},parse:function(){return Mre},structure:function(){return U3e}});var ct={};m.r(ct),m.d(ct,{generate:function(){return V3e},name:function(){return z3e},parse:function(){return Sre},structure:function(){return W3e}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return J3e},name:function(){return G3e},parse:function(){return Dre},structure:function(){return K3e},walkContext:function(){return q3e}});var Nt={};m.r(Nt),m.d(Nt,{generate:function(){return $3e},name:function(){return Q3e},parse:function(){return Are},structure:function(){return X3e}});var Xt={};m.r(Xt),m.d(Xt,{generate:function(){return r6e},name:function(){return e6e},parse:function(){return Ore},structure:function(){return n6e},walkContext:function(){return t6e}});var en={};m.r(en),m.d(en,{generate:function(){return s6e},name:function(){return o6e},parse:function(){return Lre},structure:function(){return a6e}});var qt={};m.r(qt),m.d(qt,{generate:function(){return f6e},name:function(){return u6e},parse:function(){return Nre},structure:function(){return d6e},walkContext:function(){return c6e}});var Xe={};m.r(Xe),m.d(Xe,{generate:function(){return _6e},name:function(){return h6e},parse:function(){return Fre},structure:function(){return m6e}});var jt={};m.r(jt),m.d(jt,{generate:function(){return C6e},name:function(){return y6e},parse:function(){return jre},structure:function(){return b6e}});var rt={};m.r(rt),m.d(rt,{generate:function(){return A6e},name:function(){return x6e},parse:function(){return Wre},structure:function(){return D6e}});var vt={};m.r(vt),m.d(vt,{generate:function(){return P6e},name:function(){return O6e},parse:function(){return Vre},structure:function(){return I6e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return N6e},name:function(){return L6e},parse:function(){return Yre},structure:function(){return Z6e}});var Rt={};m.r(Rt),m.d(Rt,{AnPlusB:function(){return U},Atrule:function(){return L},AtrulePrelude:function(){return P},AttributeSelector:function(){return D},Block:function(){return y},Brackets:function(){return K},CDC:function(){return F},CDO:function(){return E},ClassSelector:function(){return A},Combinator:function(){return k},Comment:function(){return I},Declaration:function(){return T},DeclarationList:function(){return w},Dimension:function(){return S},Function:function(){return N},Hash:function(){return R},IdSelector:function(){return $},Identifier:function(){return W},MediaFeature:function(){return ce},MediaQuery:function(){return se},MediaQueryList:function(){return ee},Nth:function(){return oe},Number:function(){return ge},Operator:function(){return Oe},Parentheses:function(){return ot},Percentage:function(){return xe},PseudoClassSelector:function(){return _e},PseudoElementSelector:function(){return ke},Ratio:function(){return Be},Raw:function(){return ct},Rule:function(){return Mt},Selector:function(){return Nt},SelectorList:function(){return Xt},String:function(){return en},StyleSheet:function(){return qt},TypeSelector:function(){return Xe},UnicodeRange:function(){return jt},Url:function(){return rt},Value:function(){return vt},WhiteSpace:function(){return nt}});var It={};m.r(It),m.d(It,{AtrulePrelude:function(){return W6e},Selector:function(){return eRe},Value:function(){return rRe}});var on={};m.r(on),m.d(on,{AnPlusB:function(){return Wne},Atrule:function(){return Yne},AtrulePrelude:function(){return Gne},AttributeSelector:function(){return Kne},Block:function(){return Xne},Brackets:function(){return $ne},CDC:function(){return ere},CDO:function(){return tre},ClassSelector:function(){return nre},Combinator:function(){return ire},Comment:function(){return ore},Declaration:function(){return lre},DeclarationList:function(){return ure},Dimension:function(){return cre},Function:function(){return dre},Hash:function(){return fre},IdSelector:function(){return hre},Identifier:function(){return pre},MediaFeature:function(){return mre},MediaQuery:function(){return _re},MediaQueryList:function(){return gre},Nth:function(){return vre},Number:function(){return yre},Operator:function(){return bre},Parentheses:function(){return Cre},Percentage:function(){return wre},PseudoClassSelector:function(){return kre},PseudoElementSelector:function(){return Tre},Ratio:function(){return Mre},Raw:function(){return Sre},Rule:function(){return Dre},Selector:function(){return Are},SelectorList:function(){return Ore},String:function(){return Lre},StyleSheet:function(){return Nre},TypeSelector:function(){return Fre},UnicodeRange:function(){return jre},Url:function(){return Wre},Value:function(){return Vre},WhiteSpace:function(){return Yre}});var _n={};m.r(_n),m.d(_n,{Lexer:function(){return Z0},Parser:function(){return N0},Renderer:function(){return hN},Slugger:function(){return Yj},TextRenderer:function(){return Vj},Tokenizer:function(){return pN},defaults:function(){return L0},getDefaults:function(){return Wj},lexer:function(){return DLe},marked:function(){return ii},options:function(){return wLe},parse:function(){return SLe},parseInline:function(){return MLe},parser:function(){return xLe},setOptions:function(){return kLe},use:function(){return TLe},walkTokens:function(){return ELe}});var wn,t,An=m(2313),Gt=m(245),Zt=m(4506),Et=m(5647),Ut=m(7685),Ht=m(3237),sn=m(1120),yt=m(136),mt=m(9388),cn=m(7762),$t=m(4902),j=m(5671),V=m(3144);function Jn(){Jn=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function Bt(t){if(":"!=t[0])return[null,t];var r=t.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(t,'" expecting ":namespace:name"'));return[t.slice(1,r),t.slice(r+1)]}function dt(t){return"ng-container"===Bt(t)[1]}function de(t){return"ng-content"===Bt(t)[1]}function ue(t){return null===t?null:Bt(t)[0]}function We(t,r){return t?":".concat(t,":").concat(r):r}(t=wn||(wn={}))[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA";var Dt,tn,at=function(){function t(){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?wn.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,f=e.isVoid,h=void 0!==f&&f,v=e.ignoreFirstLf,C=void 0!==v&&v,B=e.preventNamespaceInheritance,G=void 0!==B&&B;(0,j.Z)(this,t),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(q){return r.closedByChildren[q]=!0}),this.isVoid=h,this.closedByParent=u||h,this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=C,this.preventNamespaceInheritance=G}return(0,V.Z)(t,[{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}}]),t}();function Jt(t){var r,e;return tn||(Dt=new at,tn={base:new at({isVoid:!0}),meta:new at({isVoid:!0}),area:new at({isVoid:!0}),embed:new at({isVoid:!0}),link:new at({isVoid:!0}),img:new at({isVoid:!0}),input:new at({isVoid:!0}),param:new at({isVoid:!0}),hr:new at({isVoid:!0}),br:new at({isVoid:!0}),source:new at({isVoid:!0}),track:new at({isVoid:!0}),wbr:new at({isVoid:!0}),p:new at({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 at({closedByChildren:["tbody","tfoot"]}),tbody:new at({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new at({closedByChildren:["tbody"],closedByParent:!0}),tr:new at({closedByChildren:["tr"],closedByParent:!0}),td:new at({closedByChildren:["td","th"],closedByParent:!0}),th:new at({closedByChildren:["td","th"],closedByParent:!0}),col:new at({isVoid:!0}),svg:new at({implicitNamespacePrefix:"svg"}),foreignObject:new at({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new at({implicitNamespacePrefix:"math"}),li:new at({closedByChildren:["li"],closedByParent:!0}),dt:new at({closedByChildren:["dt","dd"]}),dd:new at({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new at({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new at({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new at({closedByChildren:["optgroup"],closedByParent:!0}),option:new at({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new at({ignoreFirstLf:!0}),listing:new at({ignoreFirstLf:!0}),style:new at({contentType:wn.RAW_TEXT}),script:new at({contentType:wn.RAW_TEXT}),title:new at({contentType:{default:wn.ESCAPABLE_RAW_TEXT,svg:wn.PARSABLE_DATA}}),textarea:new at({contentType:wn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=tn[t])&&void 0!==r?r:tn[t.toLowerCase()])&&void 0!==e?e:Dt}var jn,mn,nn=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),dn=function(){function t(){(0,j.Z)(this,t),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,V.Z)(t,[{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 Jt(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(B,G){G.notSelectors.length>0&&!G.element&&0==G.classNames.length&&0==G.attrs.length&&(G.element="*"),B.push(G)},a=new t,l=a,u=!1;for(nn.lastIndex=0;s=nn.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new t,a.notSelectors.push(l)}var f=s[2];if(f){var h=s[3];"#"===h?l.addAttribute("id",f.substr(1)):"."===h?l.addClassName(f.substr(1)):l.setElement(f)}var v=s[4];if(v&&l.addAttribute(l.unescapeAttribute(v),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 t}}return o(i,a),i}}]),t}();!function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(jn||(jn={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(mn||(mn={}));var tt,Ue,lr={name:"custom-elements"},Yn={name:"no-errors-schema"};function bt(t){var r=function Ee(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return[t.element&&"*"!==t.element?t.element:""].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r))}(t),e=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(function(i){return function He(t){var r=t.classNames&&t.classNames.length?[8].concat((0,$t.Z)(t.classNames)):[];return t.element?[5,t.element].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.attrs.length?[3].concat((0,$t.Z)(t.attrs),(0,$t.Z)(r)):t.classNames&&t.classNames.length?[9].concat((0,$t.Z)(t.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,$t.Z)(e))}function Yt(t){return t?dn.parse(t).map(bt):[]}!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(tt||(tt={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(Ue||(Ue={}));var rr=/-+([a-z0-9])/g;function lt(t,r){return Ae(t,":",r)}function Ae(t,r,e){var i=t.indexOf(r);return-1==i?e:[t.slice(0,i).trim(),t.slice(i+1).trim()]}function _t(t){throw new Error("Internal Error: ".concat(t))}function gn(t){for(var r=[],e=0;e<t.length;e++){var i=t.charCodeAt(e);if(i>=55296&&i<=56319&&t.length>e+1){var o=t.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 Rn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Rn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";var r=t.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var cr=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Rr="undefined"!=typeof window&&window,Xr="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Hi="undefined"!=typeof global&&global||Rr||Xr;var Ka=function(){function t(r){(0,j.Z)(this,t),this.digits=r}return(0,V.Z)(t,[{key:"clone",value:function(){return new t(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 t([0])}},{key:"one",value:function(){return new t([1])}}]),t}(),Za=function(){function t(r){(0,j.Z)(this,t),this.powerOfTwos=[r]}return(0,V.Z)(t,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=Ka.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]}}]),t}(),Go=function(){function t(r){(0,j.Z)(this,t),this.base=r,this.exponents=[new Za(Ka.one())]}return(0,V.Z)(t,[{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 Za(o)}return this.exponents[e]}}]),t}();function qo(t){return function lo(t){var r=gn(t),e=function Ko(t,r){for(var e=t.length+3>>>2,i=[],o=0;o<e;o++)i[o]=bi(t,4*o,r);return i}(r,Wi.Big),i=8*r.length,o=function bo(t,r){for(var e=[],i=0;i<t;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,f=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 v=a,C=s,B=l,G=u,q=f,ae=0;ae<80;ae++){o[ae]=ae<16?e[h+ae]:Do(o[ae-3]^o[ae-8]^o[ae-14]^o[ae-16],1);var he=uo(ae,s,l,u),Ye=he[0],Me=he[1],Fe=[Do(a,5),Ye,f,Me,o[ae]].reduce(hr);f=u,u=l,l=Do(s,30),s=a,a=Fe}a=hr(a,v),s=hr(s,C),l=hr(l,B),u=hr(u,G),f=hr(f,q)}return function oa(t){for(var r="",e=0;e<t.length;e++){var i=ga(t,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function Nr(t){return t.reduce(function(r,e){return r.concat(function ws(t){for(var r=[],e=0;e<4;e++)r.push(t>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,f]))}(function Pr(t){return t.map(function(r){return r.visit(or,null)})}(t.nodes).join("")+"[".concat(t.meaning,"]"))}function yi(t){return t.id||Ja(t)}function Ja(t){var r=new ci;return Bo(t.nodes.map(function(i){return i.visit(r,null)}).join(""),t.meaning)}var zi=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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>")}}]),t}(),or=new zi;var Wi,ci=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(zi);function uo(t,r,e,i){return t<20?[r&e|~r&i,1518500249]:t<40?[r^e^i,1859775393]:t<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function mi(t){var r=gn(t),e=$r(r,0),i=$r(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Bo(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=mi(t);if(r){var i=mi(r);e=Qa(_i(e,1),i)}var o=e[0],a=e[1];return vn(2147483647&o,a)}function $r(t,r){var o,e=2654435769,i=2654435769,a=t.length;for(o=0;o+12<=a;o+=12){var s=Pi(e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,bi(t,o+8,Wi.Little)));e=s[0],i=s[1],r=s[2]}return e=hr(e,bi(t,o,Wi.Little)),i=hr(i,bi(t,o+4,Wi.Little)),r=hr(r,a),Pi(e,i,r=hr(r,bi(t,o+8,Wi.Little)<<8))[2]}function Pi(t,r,e){return t=Ri(t,r),t=Ri(t,e),t^=e>>>13,r=Ri(r,e),r=Ri(r,t),r^=t<<8,e=Ri(e,t),e=Ri(e,r),e^=r>>>13,t=Ri(t,r),t=Ri(t,e),t^=e>>>12,r=Ri(r,e),r=Ri(r,t),r^=t<<16,e=Ri(e,t),e=Ri(e,r),e^=r>>>5,t=Ri(t,r),t=Ri(t,e),t^=e>>>3,r=Ri(r,e),r=Ri(r,t),r^=t<<10,e=Ri(e,t),e=Ri(e,r),[t,r,e^=r>>>15]}function hr(t,r){return Js(t,r)[1]}function Js(t,r){var e=(65535&t)+(65535&r),i=(t>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function Qa(t,r){var e=t[0],i=t[1],o=r[0],s=Js(i,r[1]),l=s[0],u=s[1];return[hr(hr(e,o),l),u]}function Ri(t,r){var e=(65535&t)-(65535&r);return(t>>16)-(r>>16)+(e>>16)<<16|65535&e}function Do(t,r){return t<<r|t>>>32-r}function _i(t,r){var e=t[0],i=t[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function ga(t,r){return r>=t.length?0:t[r]}function bi(t,r,e){var i=0;if(e===Wi.Big)for(var o=0;o<4;o++)i+=ga(t,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=ga(t,r+a)<<8*a;return i}!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Wi||(Wi={}));var bn,Na=new Go(256);function vn(t,r){var e=Na.toThePowerOf(0).multiplyBy(r);return Na.toThePowerOf(4).multiplyByAndAddTo(t,e),e.toString()}!function(t){t[t.None=0]="None",t[t.Const=1]="Const"}(bn||(bn={}));var Li,oi=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bn.None;(0,j.Z)(this,t),this.modifiers=r}return(0,V.Z)(t,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Li||(Li={}));var mo,tr,qi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(oi),ei=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,j.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,V.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(oi),Ki=new qi(Li.Dynamic),Ci=new qi(Li.Inferred),Co=new qi(Li.Bool),Uo=(new qi(Li.Int),new qi(Li.Number)),ya=new qi(Li.String),Ji=(new qi(Li.Function),new qi(Li.None));function Ba(t,r){return null==t||null==r?t==r:t.isEquivalent(r)}function Oo(t,r,e){var i=t.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(t[o],r[o]))return!1;return!0}function io(t,r){return Oo(t,r,function(e,i){return e.isEquivalent(i)})}!function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"}(mo||(mo={})),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals",t[t.NullishCoalesce=16]="NullishCoalesce"}(tr||(tr={}));var Kr=function(){function t(r,e){(0,j.Z)(this,t),this.type=r||null,this.sourceSpan=e||null}return(0,V.Z)(t,[{key:"prop",value:function(e,i){return new ai(this,e,null,i)}},{key:"key",value:function(e,i,o){return new Xi(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new Qi(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new Ps(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 un(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new ar(tr.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new ar(tr.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new ar(tr.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new ar(tr.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new ar(tr.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new ar(tr.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new ar(tr.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new ar(tr.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new ar(tr.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new ar(tr.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new ar(tr.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new ar(tr.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new ar(tr.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new ar(tr.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new ar(tr.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new ar(tr.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(be,e)}},{key:"nullishCoalesce",value:function(e,i){return new ar(tr.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Ir(this,null)}}]),t}(),la=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,V.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 Is(this.name,o,null,this.sourceSpan)}}]),e}(Kr),Jo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,V.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}(Kr),br=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,V.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}(Kr),Is=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,V.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 nr(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(Ci,Je.Final)}}]),e}(Kr),us=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,V.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}(Kr),ba=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,V.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}(Kr),Qi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&io(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}(Kr),Xa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Oo(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&io(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Kr),Ps=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&io(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Kr),$a=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,V.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}(Kr),Fa=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.elements=r,this.expressions=e}),Tu=(0,V.Z)(function t(r,e,i){var o;(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:Pe(Ha(r))}),Ua=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e}),Qo=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),wo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,ya,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,V.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)}),Ge(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(Bo(s.associatedMessage.messageString,s.associatedMessage.meaning))),Ge(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Kr),Ha=function(r){return r.replace(/\\/g,"\\\\")},Eu=function(r){return r.replace(/^:/,"\\:")},ve=function(r){return r.replace(/:/g,"\\:")},Pe=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function Ge(t,r,e){return""===t?{cooked:r,raw:Pe(Eu(Ha(r))),range:e}:{cooked:":".concat(t,":").concat(r),raw:Pe(":".concat(ve(Ha(t)),":").concat(Ha(r))),range:e}}var Je,gt=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,V.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}(Kr),un=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Ba(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Kr),Mn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,Co,o)).condition=i,a}return(0,V.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}(Kr),Pn=function(){function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,j.Z)(this,t),this.name=r,this.type=e}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),t}(),Or=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(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 Lr(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Kr),jr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,j.Z)(this,e),(l=r.call(this,a||Uo,s)).operator=i,l.expr=o,l.parens=u,l}return(0,V.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}(Kr),ar=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,j.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=f,u.lhs=o,u}return(0,V.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}(Kr),ai=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,V.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 ba(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Kr),Xi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,V.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 us(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Kr),So=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,V.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Kr),xi=function(){function t(r,e,i){(0,j.Z)(this,t),this.key=r,this.value=e,this.quoted=i}return(0,V.Z)(t,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),t}(),Xo=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(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}(Kr),Le=new $a(null,null,null),be=new $a(null,Ci,null);!function(t){t[t.None=0]="None",t[t.Final=1]="Final",t[t.Private=2]="Private",t[t.Exported=4]="Exported",t[t.Static=8]="Static"}(Je||(Je={}));var Ke=function(){function t(r,e,i){(0,j.Z)(this,t),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,V.Z)(t,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),t}(),Pt=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,V.Z)(e,[{key:"toString",value:function(){return function $e(t){if(0===t.length)return"";if(1===t.length&&t[0].tagName&&!t[0].text)return"*".concat(Ze(t[0])," ");var i,r="*\n",e=(0,cn.Z)(t);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=Ze(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(Ke),an=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Je.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,j.Z)(this,t),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,V.Z)(t,[{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)}}]),t}(),nr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,s,l,u)).name=i,f.value=o,f.type=a||o&&o.type||null,f}return(0,V.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}(an),Lr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,l,u,f)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&io(this.params,o.params)&&io(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(an),Ir=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,Je.None,o,a)).expr=i,s}return(0,V.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}(an),_o=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(o=r.call(this,Je.None,a,s)).value=i,o}return(0,V.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}(an),uf=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,Je.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,V.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&io(this.trueCase,o.trueCase)&&io(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(an);function oc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Pt(t)}function si(t,r,e){return new la(t,r,e)}function dr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new gt(t,null,r,e)}function Nn(t,r,e){return new ei(t,r,e)}function wi(t){return new Jo(t)}function pi(t,r,e){return new So(t,r,e)}function Di(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Xo(t.map(function(e){return new xi(e.key,e.value,e.quoted)}),r,null)}function Mu(t,r){return new Mn(t,r)}function ji(t,r,e,i,o){return new Or(t,r,e,i,o)}function hl(t,r,e,i,o){return new uf(t,r,e,i,o)}function ze(t,r,e,i){return new Xa(t,r,e,i)}function me(t,r,e){return new $a(t,r,e)}function ie(t,r,e,i,o){return new wo(t,r,e,i,o)}function fe(t){return t instanceof $a&&null===t.value}function Ze(t){var r="";if(t.tagName&&(r+=" @".concat(t.tagName)),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+t.text.replace(/@/g,"\\@")}return r}var Vt=si("<unknown>"),Qt={},Qn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,V.Z)(e,[{key:"visitExpression",value:function(o,a){return a===Qt?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}(Kr),ir=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,j.Z)(this,t),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,V.Z)(t,[{key:"getConstLiteral",value:function(e,i){if(e instanceof $a&&!Ne(e)||e instanceof Qn)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new Qn(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,f,l=this.freshName();this.isClosureCompilerEnabled&&Ne(e)?(u=si(l).set(new Or([],[new _o(e)])),f=si(l).callFn([])):(u=si(l).set(e),f=si(l)),this.statements.push(u.toDeclStmt(Ci,Je.Final)),a.fixup(f)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof So){var i=e.entries.map(function(l){return l.isConstant()?l:Vt}),o=this.keyOf(pi(i));return this._getLiteralFactory(o,e.entries,function(l){return pi(l)})}var a=Di(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Vt,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Di(l.map(function(u,f){return{key:e.entries[f].key,value:u,quoted:e.entries[f].quoted}}))})}},{key:"_getLiteralFactory",value:function(e,i,o){var a=this,s=this.literalFactories.get(e),l=i.filter(function(C){return!C.isConstant()});if(!s){var u=i.map(function(C,B){return C.isConstant()?a.getConstLiteral(C,!0):si("a".concat(B))}),h=ji(u.filter(di).map(function(C){return new Pn(C.name,Ki)}),[new _o(o(u))],Ci),v=this.freshName();this.statements.push(si(v).set(h).toDeclStmt(Ci,Je.Final)),s=si(v),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 _r,Qt)}}]),t}(),_r=function(){function t(){(0,j.Z)(this,t),this.visitWrappedNodeExpr=gr,this.visitWriteVarExpr=gr,this.visitWriteKeyExpr=gr,this.visitWritePropExpr=gr,this.visitInvokeFunctionExpr=gr,this.visitTaggedTemplateExpr=gr,this.visitInstantiateExpr=gr,this.visitConditionalExpr=gr,this.visitNotExpr=gr,this.visitAssertNotNullExpr=gr,this.visitCastExpr=gr,this.visitFunctionExpr=gr,this.visitUnaryOperatorExpr=gr,this.visitBinaryOperatorExpr=gr,this.visitReadPropExpr=gr,this.visitReadKeyExpr=gr,this.visitCommaExpr=gr,this.visitLocalizedString=gr}return(0,V.Z)(t,[{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 f=u.quoted?'"':"";return"".concat(f).concat(u.key).concat(f)}(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))}}]),t}();function gr(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function di(t){return t instanceof la}function Ne(t){return t instanceof $a&&"string"==typeof t.value&&t.value.length>=50}var we="@angular/core",X=(0,V.Z)(function t(){(0,j.Z)(this,t)});X.NEW_METHOD="factory",X.TRANSFORM_METHOD="transform",X.PATCH_DEPS="patchedDeps",X.core={name:null,moduleName:we},X.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:we},X.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:we},X.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:we},X.element={name:"\u0275\u0275element",moduleName:we},X.elementStart={name:"\u0275\u0275elementStart",moduleName:we},X.elementEnd={name:"\u0275\u0275elementEnd",moduleName:we},X.advance={name:"\u0275\u0275advance",moduleName:we},X.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:we},X.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:we},X.attribute={name:"\u0275\u0275attribute",moduleName:we},X.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:we},X.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:we},X.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:we},X.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:we},X.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:we},X.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:we},X.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:we},X.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:we},X.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:we},X.classProp={name:"\u0275\u0275classProp",moduleName:we},X.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:we},X.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:we},X.elementContainer={name:"\u0275\u0275elementContainer",moduleName:we},X.styleMap={name:"\u0275\u0275styleMap",moduleName:we},X.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:we},X.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:we},X.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:we},X.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:we},X.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:we},X.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:we},X.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:we},X.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:we},X.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:we},X.classMap={name:"\u0275\u0275classMap",moduleName:we},X.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:we},X.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:we},X.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:we},X.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:we},X.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:we},X.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:we},X.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:we},X.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:we},X.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:we},X.styleProp={name:"\u0275\u0275styleProp",moduleName:we},X.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:we},X.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:we},X.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:we},X.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:we},X.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:we},X.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:we},X.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:we},X.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:we},X.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:we},X.nextContext={name:"\u0275\u0275nextContext",moduleName:we},X.templateCreate={name:"\u0275\u0275template",moduleName:we},X.text={name:"\u0275\u0275text",moduleName:we},X.enableBindings={name:"\u0275\u0275enableBindings",moduleName:we},X.disableBindings={name:"\u0275\u0275disableBindings",moduleName:we},X.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:we},X.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:we},X.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:we},X.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:we},X.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:we},X.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:we},X.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:we},X.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:we},X.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:we},X.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:we},X.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:we},X.restoreView={name:"\u0275\u0275restoreView",moduleName:we},X.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:we},X.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:we},X.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:we},X.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:we},X.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:we},X.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:we},X.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:we},X.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:we},X.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:we},X.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:we},X.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:we},X.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:we},X.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:we},X.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:we},X.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:we},X.hostProperty={name:"\u0275\u0275hostProperty",moduleName:we},X.property={name:"\u0275\u0275property",moduleName:we},X.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:we},X.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:we},X.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:we},X.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:we},X.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:we},X.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:we},X.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:we},X.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:we},X.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:we},X.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:we},X.i18n={name:"\u0275\u0275i18n",moduleName:we},X.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:we},X.i18nExp={name:"\u0275\u0275i18nExp",moduleName:we},X.i18nStart={name:"\u0275\u0275i18nStart",moduleName:we},X.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:we},X.i18nApply={name:"\u0275\u0275i18nApply",moduleName:we},X.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:we},X.pipe={name:"\u0275\u0275pipe",moduleName:we},X.projection={name:"\u0275\u0275projection",moduleName:we},X.projectionDef={name:"\u0275\u0275projectionDef",moduleName:we},X.reference={name:"\u0275\u0275reference",moduleName:we},X.inject={name:"\u0275\u0275inject",moduleName:we},X.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:we},X.directiveInject={name:"\u0275\u0275directiveInject",moduleName:we},X.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:we},X.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:we},X.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:we},X.forwardRef={name:"forwardRef",moduleName:we},X.resolveForwardRef={name:"resolveForwardRef",moduleName:we},X.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:we},X.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:we},X.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:we},X.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:we},X.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:we},X.resolveBody={name:"\u0275\u0275resolveBody",moduleName:we},X.defineComponent={name:"\u0275\u0275defineComponent",moduleName:we},X.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:we},X.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:we},X.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:we},X.ViewEncapsulation={name:"ViewEncapsulation",moduleName:we},X.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:we},X.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:we},X.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:we},X.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:we},X.defineDirective={name:"\u0275\u0275defineDirective",moduleName:we},X.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:we},X.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:we},X.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:we},X.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:we},X.defineInjector={name:"\u0275\u0275defineInjector",moduleName:we},X.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:we},X.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:we},X.ModuleWithProviders={name:"ModuleWithProviders",moduleName:we},X.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:we},X.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:we},X.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:we},X.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:we},X.definePipe={name:"\u0275\u0275definePipe",moduleName:we},X.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:we},X.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:we},X.setClassMetadata={name:"\u0275setClassMetadata",moduleName:we},X.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:we},X.viewQuery={name:"\u0275\u0275viewQuery",moduleName:we},X.loadQuery={name:"\u0275\u0275loadQuery",moduleName:we},X.contentQuery={name:"\u0275\u0275contentQuery",moduleName:we},X.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:we},X.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:we},X.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:we},X.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:we},X.listener={name:"\u0275\u0275listener",moduleName:we},X.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:we},X.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:we},X.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:we},X.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:we},X.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:we},X.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:we},X.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:we},X.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:we},X.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:we};var it=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,j.Z)(this,t),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,V.Z)(t,[{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(v,C){i.set(v,C),o.push(v),a.push(e.sourcesContent.get(v)||null)});var s="",l=0,u=0,f=0,h=0;return this.lines.forEach(function(v){l=0,s+=v.map(function(C){var B=fn(C.col0-l);return l=C.col0,null!=C.sourceUrl&&(B+=fn(i.get(C.sourceUrl)-u),u=i.get(C.sourceUrl),B+=fn(C.sourceLine0-f),f=C.sourceLine0,B+=fn(C.sourceCol0-h),h=C.sourceCol0),B}).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 At(t){for(var r="",e=gn(t),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=Sr(o>>2),r+=Sr((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Sr((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Sr(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),t}();function fn(t){t=t<0?1+(-t<<1):t<<1;var r="";do{var e=31&t;(t>>=5)>0&&(e|=32),r+=Sr(e)}while(t>0);return r}function Sr(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}var Ti=/'|\\|\n|\r|\$/g,jo=/^[$A-Z_][0-9A-Z_$]*$/i,Ts=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),eo=function(){function t(r){(0,j.Z)(this,t),this._indent=r,this._lines=[new Ts(r)]}return(0,V.Z)(t,[{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 Ts(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?Em(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 it(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,f){o.addLine();for(var h=u.srcSpans,v=u.parts,C=u.indent*" ".length,B=0;B<h.length&&!h[B];)C+=v[B].length,B++;for(B<h.length&&0===f&&0===C?a=!0:s();B<h.length;){var G=h[B],q=G.start.file,ae=G.start.line,he=G.start.col;for(o.addSource(q.url,q.content).addMapping(C,q.url,ae,he),C+=v[B].length,B++;B<h.length&&(G===h[B]||!h[B]);)C+=v[B].length,B++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-Em(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 t(0)}}]),t}(),df=function(){function t(r){(0,j.Z)(this,t),this._escapeDollarInStrings=r}return(0,V.Z)(t,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,cn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof Pt?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,au(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 mo.Plus:o="+";break;case mo.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 tr.Equals:o="==";break;case tr.Identical:o="===";break;case tr.NotEquals:o="!=";break;case tr.NotIdentical:o="!==";break;case tr.And:o="&&";break;case tr.BitwiseAnd:o="&";break;case tr.Or:o="||";break;case tr.Plus:o="+";break;case tr.Minus:o="-";break;case tr.Divide:o="/";break;case tr.Multiply:o="*";break;case tr.Modulo:o="%";break;case tr.Lower:o="<";break;case tr.LowerEquals:o="<=";break;case tr.Bigger:o=">";break;case tr.BiggerEquals:o=">=";break;case tr.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(au(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)})}}]),t}();function au(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==t)return null;var i=t.replace(Ti,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||!jo.test(i);return o?"'".concat(i,"'"):i}function Em(t){for(var r="",e=0;e<t;e++)r+=" ";return r}function id(t,r){if(0===r)return Nn(t);for(var e=[],i=0;i<r;i++)e.push(Ki);return Nn(t,void 0,e)}var lc,ur;function Mm(t){return"".concat("@").concat(t)}function ff(t,r){return"".concat("@").concat(t,".").concat(r)}function pf(t,r){return"animation_".concat(t,"_").concat(r)}function nv(t,r){var e=new gt({name:t,moduleName:null}),i=new ar(tr.Identical,new Jo(e),me("undefined")),o=new ar(tr.Or,i,e,void 0,void 0,!0);return new ar(tr.And,o,r)}function ko(t){var r=new br(t);return{value:r,type:r}}function ts(t,r){var e=pi(t.map(function(i){return i.value}));return r?ji([],[new _o(e)]):e}function Sm(t,r){return{expression:t,forwardRef:r}}function sc(t){var r=t.expression;switch(t.forwardRef){case 0:case 1:return r;case 2:return Su(r)}}function Su(t){return dr(X.forwardRef).callFn([ji([],[new _o(t)])])}function Wr(t){var r=si("t"),e=null,i=uc(t)?r:new ar(tr.Or,r,t.internalType),o=null;null!==t.deps?"invalid"!==t.deps&&(o=new Ps(i,$o(t.deps,t.target))):(e=si("\u0275".concat(t.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(B){var G=si("r");a.push(G.set(Le).toDeclStmt());var q=null!==o?G.set(o).toStmt():dr(X.invalidFactory).callFn([]).toStmt();return a.push(hl(r,[q],[G.set(B).toStmt()])),G}if(uc(t)){var u=$o(t.delegateDeps,t.target);s=l(new(t.delegateType===lc.Class?Ps:Qi)(t.delegate,u))}else s=function xm(t){return void 0!==t.expression}(t)?l(t.expression):o;if(null===s)a.push(dr(X.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=dr(X.getInheritedFactory).callFn([t.internalType]),v=new ar(tr.Or,e,e.set(h));a.push(new _o(v.callFn([i])))}else a.push(new _o(s));var C=ji([new Pn("t",Ki)],a,Ci,void 0,"".concat(t.name,"_Factory"));return null!==e&&(C=ji([],[new nr(e.name),new _o(C)]).callFn([],void 0,!0)),{expression:C,statements:[],type:li(t)}}function li(t){var r=null!==t.deps&&"invalid"!==t.deps?function Du(t){var r=!1,e=t.map(function(i){var o=function ad(t){var r=[];return null!==t.attributeNameType&&r.push({key:"attribute",value:t.attributeNameType,quoted:!1}),t.optional&&r.push({key:"optional",value:me(!0),quoted:!1}),t.host&&r.push({key:"host",value:me(!0),quoted:!1}),t.self&&r.push({key:"self",value:me(!0),quoted:!1}),t.skipSelf&&r.push({key:"skipSelf",value:me(!0),quoted:!1}),r.length>0?Di(r):null}(i);return null!==o?(r=!0,o):me(null)});return r?Nn(pi(e)):Ji}(t.deps):Ji;return Nn(dr(X.FactoryDeclaration,[id(t.type.type,t.typeArgumentCount),r]))}function $o(t,r){return t.map(function(e,i){return function xu(t,r,e){if(null===t.token)return dr(X.invalidFactoryDep).callFn([me(e)]);if(null===t.attributeNameType){var i=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0)|(r===ur.Pipe?16:0),o=0!==i||t.optional?me(i):null,a=[t.token];o&&a.push(o);var s=function Ca(t){switch(t){case ur.Component:case ur.Directive:case ur.Pipe:return X.directiveInject;case ur.NgModule:case ur.Injectable:default:return X.inject}}(r);return dr(s).callFn(a)}return dr(X.injectAttribute).callFn([t.token])}(e,r,i)})}function uc(t){return void 0!==t.delegateType}!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function"}(lc||(lc={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(ur||(ur={}));var Au=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),t}(),Dm=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitText(this)}}]),t}(),cs=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),t}(),Ou=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),t}(),cc=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{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 t(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),t}(),dc=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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,V.Z)(t,[{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 t(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),t}(),sd=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.i18n=h}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitElement(this)}}]),t}(),rv=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),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=f,this.startSourceSpan=h,this.endSourceSpan=v,this.i18n=C}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),t}(),YN=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitContent(this)}}]),t}(),xI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),t}(),iv=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitReference(this)}}]),t}(),Mb=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,V.Z)(t,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),t}();function AI(t,r){var e=[];if(t.visit){var o,i=(0,cn.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;t.visit(a)||a.visit(t)}}catch(v){i.e(v)}finally{i.f()}}else{var u,l=(0,cn.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(t);h&&e.push(h)}}catch(v){l.e(v)}finally{l.f()}}return e}var ld=(0,V.Z)(function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 II(t){var r=new Om,e=t.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=[]}),ov=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),t}(),Am=function(){function t(r,e){(0,j.Z)(this,t),this.children=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),t}(),OI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),t}(),qN=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),t}(),av=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),t}(),hf=function(){function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.name=e,this.sourceSpan=i}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),t}();var Om=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,"}")}}]),t}(),sT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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]>")}}]),t}();new sT;function xb(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var ml="i18n-";function Rm(t){return"i18n"===t||t.startsWith(ml)}function Lm(t){return t instanceof ld}function Db(t){return Lm(t)&&1===t.nodes.length&&t.nodes[0]instanceof OI}function eB(t){return!!t.i18n}function tB(t){return t.nodes[0]}function fv(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(t).concat(e).concat("\ufffd")}function uT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t;return function(){return r++}}function Lp(t){var r={};return t.forEach(function(e,i){r[i]=me(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function cT(t,r){for(var e=t.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),t.set(r,e)}function dT(t){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=t instanceof ld?t.nodes.find(function(s){return s instanceof Am}):t;return a&&a.children.filter(function(s){return s instanceof av}).forEach(function(s,l){var u=fv(i+l,e);cT(o,s.name,u)}),o}function fT(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return t&&Object.keys(t).length&&Object.keys(t).forEach(function(i){return e[Ab(i,r)]=t[i]}),e}function Ab(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=xb(t);if(!r)return e;var o,i=e.split("_");if(1===i.length)return t.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 BI(t){return"".concat("MSG_").concat(t).toUpperCase()}function nB(t){return new nr(t.name,void 0,Ci,void 0,t.sourceSpan)}var rB=/[-.]/,Ob="_t",Ll="ctx",mf="rf",pv="restoredCtx",aB=new Set([X.element,X.elementStart,X.elementEnd,X.elementContainer,X.elementContainerStart,X.elementContainerEnd,X.i18nExp,X.listener,X.classProp,X.syntheticHostListener,X.hostProperty,X.syntheticHostProperty,X.property,X.propertyInterpolate1,X.propertyInterpolate2,X.propertyInterpolate3,X.propertyInterpolate4,X.propertyInterpolate5,X.propertyInterpolate6,X.propertyInterpolate7,X.propertyInterpolate8,X.propertyInterpolateV,X.attribute,X.attributeInterpolate1,X.attributeInterpolate2,X.attributeInterpolate3,X.attributeInterpolate4,X.attributeInterpolate5,X.attributeInterpolate6,X.attributeInterpolate7,X.attributeInterpolate8,X.attributeInterpolateV,X.styleProp,X.stylePropInterpolate1,X.stylePropInterpolate2,X.stylePropInterpolate3,X.stylePropInterpolate4,X.stylePropInterpolate5,X.stylePropInterpolate6,X.stylePropInterpolate7,X.stylePropInterpolate8,X.stylePropInterpolateV,X.textInterpolate,X.textInterpolate1,X.textInterpolate2,X.textInterpolate3,X.textInterpolate4,X.textInterpolate5,X.textInterpolate6,X.textInterpolate7,X.textInterpolate8,X.textInterpolateV]);function hv(t,r,e){return dr(r,null,t).callFn(e,t)}function hT(t,r){var e=null;return function(){return e||(t.push(new nr("_t",void 0,Ki)),e=si(r)),e}}function mv(t){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(t.constructor.name))}function Ls(t){return Array.isArray(t)?pi(t.map(Ls)):me(t,Ci)}function _v(t,r){return Object.getOwnPropertyNames(t).length>0?function sB(t,r){return Di(Object.getOwnPropertyNames(t).map(function(e){var o,a,s,l,i=t[e];if(Array.isArray(i)){var u=(0,Ut.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else{var f=lt(e,[e,i]),h=(0,Ut.Z)(f,2);s=o=h[0],l=(a=h[1])!==o&&e.includes(":")}return{key:s,quoted:rB.test(s),value:r&&l?pi([Ls(a),Ls(o)]):Ls(a)}}))}(t,r):null}function ns(t){for(;fe(t[t.length-1]);)t.pop();return t}function FI(t,r){if(Array.isArray(t.predicate)){var e=[];return t.predicate.forEach(function(i){var o=i.split(",").map(function(a){return me(a.trim())});e.push.apply(e,(0,$t.Z)(o))}),r.getConstLiteral(pi(e),!0)}switch(t.predicate.forwardRef){case 0:case 2:return t.predicate.expression;case 1:return dr(X.resolveForwardRef).callFn([t.predicate.expression])}}var fs=function(){function t(){(0,j.Z)(this,t),this.values=[]}return(0,V.Z)(t,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Di(this.values)}}]),t}();function Iu(t){var r=t.expressions,e=t.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function Ib(t){var r,l,e=[],i=null,o=null,a=0,s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,f=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(f)?f:[f];a<500&&o===u.reference&&aB.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=hv(u.span,u.reference,h),o=u.reference,a=0)}}catch(v){s.e(v)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function HI(t,r){var e=null,i={name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:t.typeArgumentCount,deps:[],target:ur.Injectable};if(void 0!==t.useClass){var o=t.useClass.expression.isEquivalent(t.internalType),a=void 0;void 0!==t.deps&&(a=t.deps),e=void 0!==a?Wr(Object.assign(Object.assign({},i),{delegate:t.useClass.expression,delegateDeps:a,delegateType:lc.Class})):o?Wr(i):{statements:[],expression:gv(t.type.value,t.useClass.expression,r)}}else e=void 0!==t.useFactory?void 0!==t.deps?Wr(Object.assign(Object.assign({},i),{delegate:t.useFactory,delegateDeps:t.deps||[],delegateType:lc.Function})):{statements:[],expression:ji([],[new _o(t.useFactory.callFn([]))])}:void 0!==t.useValue?Wr(Object.assign(Object.assign({},i),{expression:t.useValue.expression})):void 0!==t.useExisting?Wr(Object.assign(Object.assign({},i),{expression:dr(X.inject).callFn([t.useExisting.expression])})):{statements:[],expression:gv(t.type.value,t.internalType,r)};var s=t.internalType,l=new fs;return l.set("token",s),l.set("factory",e.expression),null!==t.providedIn.expression.value&&l.set("providedIn",sc(t.providedIn)),{expression:dr(X.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:jI(t),statements:e.statements}}function jI(t){return new ei(dr(X.InjectableDeclaration,[id(t.type.type,t.typeArgumentCount)]))}function gv(t,r,e){return t.node===r.node?r.prop("\u0275fac"):Zm(e?dr(X.resolveForwardRef).callFn([r]):r)}function Zm(t){return ji([new Pn("t",Ki)],[new _o(t.prop("\u0275fac").callFn([si("t")]))])}var Pb=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var mT=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,null,[{key:"fromArray",value:function(e){return e?(function Nm(t,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(t,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];Pb.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new t(e[0],e[1])):su}}]),t}(),su=new mT("{{","}}"),fd=123,hc=125;function wT(t){return t>=9&&t<=32||160==t}function pd(t){return 48<=t&&t<=57}function kT(t){return t>=97&&t<=122||t>=65&&t<=90}function oP(t){return 10===t||13===t}function aP(t){return 48<=t&&t<=55}function Bb(t){return 39===t||34===t||96===t}var hd,vf=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,V.Z)(t,[{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 f=i.substr(0,a-1).lastIndexOf(String.fromCharCode(10));l=f>0?a-f:a}else l--}for(;a<o&&e>0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new t(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}}]),t}(),Fb=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.content=r,this.url=e}),ja=function(){function t(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,j.Z)(this,t),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,V.Z)(t,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(hd||(hd={}));var uu=function(){function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;(0,j.Z)(this,t),this.span=r,this.msg=e,this.level=i}return(0,V.Z)(t,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(hd[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)}}]),t}();var lP=0;function zp(t){return t.replace(/\W/g,"_")}var Ub,uP='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',_B=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,!1)}return(0,V.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(uP,"(")),a.print(o,"[".concat(l.map(function(u){return au(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return au(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(uP,"("));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(f){return au(f.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(f){return au(f.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(f){a.print(o,", "),f.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}(df);function vB(t){var r;return(null===(r=function gB(){if(void 0===Ub&&(Ub=null,Hi.trustedTypes))try{Ub=Hi.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(t){}return Ub}())||void 0===r?void 0:r.createScript(t))||t}function yB(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!Hi.trustedTypes)return(0,Et.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=Hi.eval(vB(a));return void 0===s.bind?(0,Et.Z)(Function,r):(s.toString=function(){return a},s.bind(Hi))}var Xz=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new Cv(o),l=eo.createRoot();return i.length>0&&!function cu(t){return t.isEquivalent(me("use strict").toStmt())}(i[0])&&(i=[me("use strict").toStmt()].concat((0,$t.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 f in o)u.push(o[f]),l.push(f);if(a){var h=yB.apply(void 0,(0,$t.Z)(l.concat("return null;"))).toString(),v=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,v).toJsComment())}var C=yB.apply(void 0,(0,$t.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,$t.Z)(i))}}]),t}(),Cv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,V.Z)(e,[{key:"createReturnStmt",value:function(o){new _o(new Xo(this._evalExportedVars.map(function(s){return new xi(s,si(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(Je.Exported)&&this._evalExportedVars.push(o.name),(0,Ht.Z)((0,sn.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(Je.Exported)&&this._evalExportedVars.push(o.name),(0,Ht.Z)((0,sn.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 TT(t){if(!t||!t.reference)return null;var r=t.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Rn(r);return e.indexOf("(")>=0?(e="anonymous_".concat(lP++),r.__anonymousType=e):e=zp(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(_B);function Hb(t){var r=new fs;return null!==t.providers&&r.set("providers",t.providers),t.imports.length>0&&r.set("imports",pi(t.imports)),{expression:dr(X.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:ET(t),statements:[]}}function ET(t){return new ei(dr(X.InjectorDeclaration,[new ei(t.type.type)]))}var cP=function(){function t(r){(0,j.Z)(this,t),this.context=r}return(0,V.Z)(t,[{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]}}]),t}();function Ns(t){var r=t.internalType,e=t.bootstrap,i=t.declarations,o=t.imports,a=t.exports,s=t.schemas,l=t.containsForwardDecls,u=t.emitInline,f=t.id,h=[],v=new fs;if(v.set("type",r),e.length>0&&v.set("bootstrap",ts(e,l)),u)i.length>0&&v.set("declarations",ts(i,l)),o.length>0&&v.set("imports",ts(o,l)),a.length>0&&v.set("exports",ts(a,l));else{var C=function bB(t){var r=t.adjacentType,e=t.declarations,i=t.imports,o=t.exports,a=t.containsForwardDecls,s=new fs;if(e.length>0&&s.set("declarations",ts(e,a)),i.length>0&&s.set("imports",ts(i,a)),o.length>0&&s.set("exports",ts(o,a)),0===Object.keys(s.values).length)return null;var u=function Pp(t){return nv("ngJitMode",t)}(new Qi(dr(X.setNgModuleScope),[r,s.toLiteralMap()])),f=new Or([],[u.toStmt()]);return new Qi(f,[]).toStmt()}(t);null!==C&&h.push(C)}return null!==s&&s.length>0&&v.set("schemas",pi(s.map(function(q){return q.value}))),null!==f&&v.set("id",f),{expression:dr(X.defineNgModule).callFn([v.toLiteralMap()],void 0,!0),type:jb(t),statements:h}}function jb(t){var r=t.type,e=t.declarations,i=t.imports,o=t.exports;return new ei(dr(X.NgModuleDeclaration,[new ei(r.type),MT(e),MT(i),MT(o)]))}function MT(t){var r=t.map(function(e){return wi(e.type)});return t.length>0?Nn(pi(r)):Ji}function ST(t){var r=[];return r.push({key:"name",value:me(t.pipeName),quoted:!1}),r.push({key:"type",value:t.type.value,quoted:!1}),r.push({key:"pure",value:me(t.pure),quoted:!1}),{expression:dr(X.definePipe).callFn([Di(r)],void 0,!0),type:dP(t),statements:[]}}function dP(t){return new ei(dr(X.PipeDeclaration,[id(t.type.type,t.typeArgumentCount),new ei(new $a(t.pipeName))]))}var Vp,zb=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),Wm=function(){function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}return(0,V.Z)(t,[{key:"toAbsolute",value:function(e){return new Wa(e+this.start,e+this.end)}}]),t}(),za=function(){function t(r,e){(0,j.Z)(this,t),this.span=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"AST"}}]),t}(),Wb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,V.Z)(e)}(za),fP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).prefix=a,u.uninterpretedExpression=s,u.location=l,u}return(0,V.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitQuote(this,a)}},{key:"toString",value:function(){return"Quote"}}]),e}(za),gl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(za),kv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(za),xT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(kv),Tv=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(za),DT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,V.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}(za),yf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a)).receiver=s,f.name=l,f.value=u,f}return(0,V.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}(Wb),AT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,V.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}(Wb),Vb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(za),Yb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,V.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}(za),OT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,V.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}(za),Gb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,u)).exp=a,f.name=s,f.args=l,f}return(0,V.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}(Wb),vl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,V.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}(za),qb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,V.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}(za),IT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,V.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}(za),Qs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,V.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}(za),mc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,V.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}(za),Ym=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,l,u,f)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,V.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 vl(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new vl(o,a,0))}}]),e}(mc),Kb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(za),Jb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,V.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}(za),Gm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(za),md=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,V.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}(za),Wa=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.start=r,this.end=e}),Wp=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,new Wm(0,null===o?0:o.length),new Wa(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,V.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}(za),pP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),hP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.sourceSpan=r,this.key=e,this.value=i}),$z=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:"visitQuote",value:function(e,i){}},{key:"visitAll",value:function(e,i){var a,o=(0,cn.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()}}}]),t}(),Ev=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new Qs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new vl(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new yf(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new Vm(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new AT(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new qb(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new IT(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Ym.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Ym.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 mc(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new Kb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new Jb(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new DT(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new Gb(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Vb(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new OT(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new Gm(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new md(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 Tv(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitQuote",value:function(e,i){return new fP(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)}},{key:"visitSafeKeyedRead",value:function(e,i){return new Yb(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),t}(),PT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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 Qs(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 yf(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 Vm(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 AT(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 qb(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new IT(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 Ym.createPlus(e.span,e.sourceSpan,o);case"-":return Ym.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 mc(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 Kb(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new Jb(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 DT(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 Gb(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 Vb(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 OT(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 Tv(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 Gm(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 md(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitQuote",value:function(e,i){return 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 Yb(e.span,e.sourceSpan,o,a):e}}]),t}(),Mv=(0,V.Z)(function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===Vp.LITERAL_ATTR,this.isAnimation=this.type===Vp.ANIMATION});!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(Vp||(Vp={}));var RT=(0,V.Z)(function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),Sv=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),LT=(0,V.Z)(function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u}),Qb=(0,V.Z)(function t(){(0,j.Z)(this,t)});function ZT(t,r,e,i,o,a,s){t||(t=new vP(s));var l=function NT(t,r){return function _P(t,r){var e=new TB(t);return r.visit(e)}(t,r)}({createLiteralArrayConverter:function(B){return function(G){return pi(G)}},createLiteralMapConverter:function(B){return function(G){return Di(B.map(function(ae,he){return{key:ae.key,value:G[he],quoted:ae.quoted}}))}},createPipeConverter:function(B){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(B))}},e),u=new e1(t,r,i,!1,o,a),f=[];t1(l.visit(u,co.Statement),f),function wB(t,r,e){for(var i=t-1;i>=0;i--)e.unshift($b(r,i))}(u.temporaryCount,i,f),u.usesImplicitReceiver&&t.notifyImplicitReceiverUse();var h=f.length-1;if(h>=0){var v=f[h];v instanceof Ir&&(f[h]=new _o(v.expr))}return f}Qb.event=si("$event");var co,mP=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.stmts=r,this.currValExpr=e});function CB(t,r,e,i){t||(t=new vP);var o=new e1(t,r,i,!1),a=e.visit(o,co.Expression),s=Xb(o,i);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),new mP(s,a)}function Xb(t,r){for(var e=[],i=0;i<t.temporaryCount;i++)e.push($b(r,i));return e}function BT(t,r){return"tmp_".concat(t,"_").concat(r)}function $b(t,r){return new nr(BT(t,r))}function gP(t,r){if(t!==co.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function Xs(t,r){return t===co.Statement?r.toStmt():r}!function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(co||(co={}));var TB=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,V.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,$t.Z)(o.args)).map(function(u){return u.visit(s,a)});return new Km(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 Km(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 Km(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(Ev),e1=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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,V.Z)(t,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=mo.Plus;break;case"-":o=mo.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return Xs(i,new jr(o,this._visit(e.expr,co.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=tr.Plus;break;case"-":o=tr.Minus;break;case"*":o=tr.Multiply;break;case"/":o=tr.Divide;break;case"%":o=tr.Modulo;break;case"&&":o=tr.And;break;case"||":o=tr.Or;break;case"==":o=tr.Equals;break;case"!=":o=tr.NotEquals;break;case"===":o=tr.Identical;break;case"!==":o=tr.NotIdentical;break;case"<":o=tr.Lower;break;case">":o=tr.Bigger;break;case"<=":o=tr.LowerEquals;break;case">=":o=tr.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return Xs(i,new ar(o,this._visit(e.left,co.Expression),this._visit(e.right,co.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function kB(t,r){if(t!==co.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 Xs(i,this._visit(e.condition,co.Expression).conditional(this._visit(e.trueExp,co.Expression),this._visit(e.falseExp,co.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 gP(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");gP(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(me(e.strings[a])),o.push(this._visit(e.expressions[a],co.Expression));o.push(me(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 FT(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):Xs(i,this._visit(e.receiver,co.Expression).key(this._visit(e.key,co.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this._visit(e.key,co.Expression),s=this._visit(e.value,co.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),Xs(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?Ci:void 0;return Xs(i,me(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 xT?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return Xs(i,Mu(this._visit(e.expression,co.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return Xs(i,this._visit(e.expression,co.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,co.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))),Xs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,co.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof ai)){var u=e.name,f=e.value instanceof yf?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(f,'" 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))),Xs(i,s.set(this._visit(e.value,co.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:"visitQuote",value:function(e,i){throw new Error("Quotes are not supported for evaluation!\n Statement: ".concat(e.uninterpretedExpression," located at ").concat(e.location))}},{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,co.Expression);if(e instanceof Km)return Xs(i,e.converter(a));var s=e.receiver;if(s instanceof yf&&s.receiver instanceof kv&&!(s.receiver instanceof xT)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return Xs(i,a[0])}return Xs(i,this._visit(s,co.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,co.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 md?this._nodeMap.set(i,new Gm(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof Yb?this._nodeMap.set(i,new Vb(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new yf(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,co.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),Xs(o,l.conditional(Le,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,co.Expression),a=this._visit(e.right,co.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),Xs(i,s.set(o).notIdentical(Le).and(s.notIdentical(me(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},visitQuote: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(f){return o(l,f)})}(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},visitQuote: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 la(BT(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=BT(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 ja(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),t}();function t1(t,r){Array.isArray(t)?t.forEach(function(e){return t1(e,r)}):r.push(t)}function n1(){throw new Error("Unsupported operation")}var FT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=n1,o.isEquivalent=n1,o.visitExpression=n1,o}return(0,V.Z)(e)}(Kr),vP=function(){function t(r){(0,j.Z)(this,t),this.globals=r}return(0,V.Z)(t,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===Qb.event.name?Qb.event:null}}]),t}(),Km=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,new gl(i,o),a,null)).converter=s,l}return(0,V.Z)(e)}(Gm),yP=function(){function t(){(0,j.Z)(this,t),this.strictStyling=!0}return(0,V.Z)(t,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=MB(e);e=EB(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,$t.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(Yp,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(CP,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(UT.lastIndex=0;null!==(o=UT.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(wP,function(i,o,a){if(o){var f,s=[],l=o.split(",").map(function(C){return C.trim()}),u=(0,cn.Z)(l);try{for(u.s();!(f=u.n()).done;){var h=f.value;if(!h)break;var v=_d+h.replace(r1,"")+a;s.push(v)}}catch(C){u.e(C)}finally{u.f()}return s.join(",")}return _d+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(kP,function(i){for(var o,s,a=[[]];s=TP.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(v){return v.trim()}).filter(function(v){return""!==v}),u=a.length;xB(a,l.length);for(var f=0;f<l.length;f++)for(var h=0;h<u;h++)a[h+f*u].push(l[f]);i=s[2]}return a.map(function(v){return function Lu(t,r){var e=_d;bf.lastIndex=0;var i=bf.test(r);if(0===t.length)return e+r;for(var o=[t.pop()||""];t.length>0;)for(var a=o.length,s=t.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(f){return i?"".concat(f).concat(r):"".concat(f).concat(e).concat(r,", ").concat(f," ").concat(e).concat(r)}).join(",")}(v,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return i1.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return GT(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 YT(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return GT(e,function(i){var o=i.selector.replace(xv," ").replace(jT," ");return new YT(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(xv)}).map(function(l){var B,u=(0,Zt.Z)(l),f=u[0],h=u.slice(1);return[(B=f,s._selectorNeedsScoping(B,i)?a?s._applyStrictSelectorScope(B,i,o):s._applySelectorScope(B,i,o):B)].concat((0,$t.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+")"+EP,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(bf.lastIndex=0,bf.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(jT,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,f,h,v){return f+a+h+v})}).replace(bf,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(Fe){return arguments.length<=1?void 0:arguments[1]});for(var C,l="["+i+"]",u=function(ft){var ht=ft.trim();if(!ht)return"";if(ft.indexOf(_d)>-1)ht=a._applySimpleSelectorScope(ft,i,o);else{var Re=ft.replace(bf,"");if(Re.length>0){var ut=Re.match(/([^:]*)(:*)(.*)/);ut&&(ht=ut[1]+l+ut[2]+ut[3])}}return ht},f=new bP(e),h="",v=0,B=/( |>|\+|~(?!=))\s*/g,q=!((e=f.content()).indexOf(_d)>-1);null!==(C=B.exec(e));){var ae=C[1],he=e.slice(v,C.index).trim(),Ye=(q=q||he.indexOf(_d)>-1)?u(he):he;h+="".concat(Ye," ").concat(ae," "),v=B.lastIndex}var Me=e.substring(v);return h+=(q=q||Me.indexOf(_d)>-1)?u(Me):Me,f.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace(zT,Jm).replace(MP,r1)}}]),t}(),bP=function(){function t(r){var e=this;(0,j.Z)(this,t),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,V.Z)(t,[{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})}}]),t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,CP=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,UT=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,r1="-shadowcsshost",Jm="-shadowcsscontext",HT="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",wP=new RegExp(r1+HT,"gim"),kP=new RegExp(Jm+HT,"gim"),TP=new RegExp(Jm+HT,"im"),_d=r1+"-no-combinator",jT=/-shadowcsshost-no-combinator([^\s]*)/,i1=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],xv=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,EP="([>\\s~+[.,{:][\\s\\S]*)?$",bf=/-shadowcsshost/gim,MP=/:host/gim,zT=/:host-context/gim,Dv=/\/\*[\s\S]*?\*\//g;function EB(t){return t.replace(Dv,"")}var SP=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function MB(t){return t.match(SP)||[]}var WT="%BLOCK%",VT=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,DP=/%QUOTED%/g,eW=new Map([["{","}"]]),AP=new Map([['"','"'],["'","'"]]),YT=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.selector=r,this.content=e});function GT(t,r){var e=OP(t,AP,"%QUOTED%"),i=OP(e.escapedString,eW,WT),o=0,a=0;return i.escapedString.replace(VT,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],f="";u&&u.startsWith("{"+WT)&&(l=i.blocks[o++],u=u.substring(WT.length+1),f="{");var h=r(new YT(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(f).concat(h.content).concat(u)}).replace(DP,function(){return e.blocks[a++]})}var SB=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.escapedString=r,this.blocks=e});function OP(t,r,e){for(var u,f,i=[],o=[],a=0,s=0,l=-1,h=0;h<t.length;h++){var v=t[h];"\\"===v?h++:v===f?0===--a&&(o.push(t.substring(l,h)),i.push(e),s=h,l=-1,u=f=void 0):v===u?a++:0===a&&r.has(v)&&(u=v,f=r.get(v),a=1,l=h+1,i.push(t.substring(s,l)))}return-1!==l?(o.push(t.substring(l)),i.push(e)):i.push(t.substring(s)),new SB(i.join(""),o)}function xB(t,r){for(var e=t.length,i=1;i<r;i++)for(var o=0;o<e;o++)t[o+i*e]=t[o].slice(0)}function PP(t){var r=t.charCodeAt(0);if(r==t.charCodeAt(t.length-1)&&(39==r||34==r)){var i=t.substring(1,t.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(t=i)}return t}function RP(t){return t.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var hi,qT=function(){function t(r){(0,j.Z)(this,t),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,V.Z)(t,[{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 f="."!==e.charAt(5),h=e.substr(f?5:6);a=l?this.registerStyleInput(h,f,i,o):this.registerClassInput(h,f,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(KT(o))return null;(function BP(t){return t.startsWith("--")})(e)||(e=RP(e));var l=ZP(e),u=l.property,f=l.hasOverrideFlag,h=l.suffix,v={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:f};return i?this._styleMapInput=v:((this._singleStyleInputs=this._singleStyleInputs||[]).push(v),LP(this._stylesIndex,u)),this._lastStylingInput=v,this._firstStylingInput=this._firstStylingInput||v,this._checkForPipes(o),this.hasBindings=!0,v}},{key:"registerClassInput",value:function(e,i,o,a){if(KT(o))return null;var s=ZP(e),l=s.property,f={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=f:((this._singleClassInputs=this._singleClassInputs||[]).push(f),LP(this._classesIndex,l)),this._lastStylingInput=f,this._firstStylingInput=this._firstStylingInput||f,this._checkForPipes(o),this.hasBindings=!0,f}},{key:"_checkForPipes",value:function(e){e instanceof Wp&&e.ast instanceof Gb&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function IP(t){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<t.length;)switch(t.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,0===o?o=39:39===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==t.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=RP(t.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=t.substring(a,e-1).trim();r.push(l,u?PP(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var v=t.substr(a).trim();r.push(l,u?PP(v):v)}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(me(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(me(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(me(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(me(this._initialStyleValues[o]),me(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 Qs?(a+=s.expressions.length,l=i?function AB(t){switch(Iu(t)){case 1:return X.classMap;case 3:return X.classMapInterpolate1;case 5:return X.classMapInterpolate2;case 7:return X.classMapInterpolate3;case 9:return X.classMapInterpolate4;case 11:return X.classMapInterpolate5;case 13:return X.classMapInterpolate6;case 15:return X.classMapInterpolate7;case 17:return X.classMapInterpolate8;default:return X.classMapInterpolateV}}(s):function fi(t){switch(Iu(t)){case 1:return X.styleMap;case 3:return X.styleMapInterpolate1;case 5:return X.styleMapInterpolate2;case 7:return X.styleMapInterpolate3;case 9:return X.styleMapInterpolate4;case 11:return X.styleMapInterpolate5;case 13:return X.styleMapInterpolate6;case 15:return X.styleMapInterpolate7;case 17:return X.styleMapInterpolate8;default:return X.styleMapInterpolateV}}(s)):l=i?X.classMap:X.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(f){var h=f(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var f=l[l.length-1],h=u.value.visit(o),v=e,C=2;h instanceof Qs&&(C+=h.expressions.length,a&&(v=a(h)));var B={sourceSpan:u.sourceSpan,allocateBindingSlots:C,supportsInterpolation:!!a,params:function(q){var ae=[];ae.push(me(u.name));var he=q(h);return Array.isArray(he)?ae.push.apply(ae,(0,$t.Z)(he)):ae.push(he),!s&&null!==u.suffix&&ae.push(me(u.suffix)),ae}};f&&f.reference===v?f.calls.push(B):l.push({reference:v,calls:[B]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(X.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(X.styleProp,this._singleStyleInputs,e,NP,!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,$t.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,$t.Z)(this._buildClassInputs(e)))}return i}}]),t}();function LP(t,r){t.has(r)||t.set(r,t.size)}function ZP(t){var r=!1,e=t.indexOf("!important");-1!==e&&(t=e>0?t.substring(0,e):"",r=!0);var i=null,o=t,a=t.lastIndexOf(".");return a>0&&(i=t.substr(a+1),o=t.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function NP(t){switch(Iu(t)){case 1:return X.styleProp;case 3:return X.stylePropInterpolate1;case 5:return X.stylePropInterpolate2;case 7:return X.stylePropInterpolate3;case 9:return X.stylePropInterpolate4;case 11:return X.stylePropInterpolate5;case 13:return X.stylePropInterpolate6;case 15:return X.stylePropInterpolate7;case 17:return X.stylePropInterpolate8;default:return X.stylePropInterpolateV}}function KT(t){return t instanceof Wp&&(t=t.ast),t instanceof gl}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"}(hi||(hi={}));var Zu=["var","let","as","null","undefined","true","false","if","else","this"],JT=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"tokenize",value:function(e){for(var i=new Ov(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),t}(),gd=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,V.Z)(t,[{key:"isCharacter",value:function(e){return this.type==hi.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==hi.Number}},{key:"isString",value:function(){return this.type==hi.String}},{key:"isOperator",value:function(e){return this.type==hi.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==hi.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==hi.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==hi.Keyword}},{key:"isKeywordLet",value:function(){return this.type==hi.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==hi.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==hi.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==hi.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==hi.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==hi.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==hi.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==hi.Error}},{key:"toNumber",value:function(){return this.type==hi.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case hi.Character:case hi.Identifier:case hi.Keyword:case hi.Operator:case hi.PrivateIdentifier:case hi.String:case hi.Error:return this.strValue;case hi.Number:return this.numValue.toString();default:return null}}}]),t}();function a1(t,r,e){return new gd(t,r,hi.Character,e,String.fromCharCode(e))}function Av(t,r,e){return new gd(t,r,hi.Operator,0,e)}var Qm=new gd(-1,-1,hi.Character,0,""),Ov=function(){function t(r){(0,j.Z)(this,t),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,V.Z)(t,[{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(Iv(o))return this.scanIdentifier();if(pd(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),pd(this.peek)?this.scanNumber(s):a1(s,this.index,46);case 40:case 41:case fd:case hc: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(;wT(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(),a1(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),Av(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),Av(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();Pv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return Zu.indexOf(i)>-1?function FP(t,r,e){return new gd(t,r,hi.Keyword,0,e)}(e,this.index,i):function vd(t,r,e){return new gd(t,r,hi.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!Iv(this.peek))return this.error("Invalid character [#]",-1);for(;Pv(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function QT(t,r,e){return new gd(t,r,hi.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!pd(this.peek))if(95===this.peek){if(!pd(this.input.charCodeAt(this.index-1))||!pd(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!rW(this.peek))break;if(this.advance(),OB(this.peek)&&this.advance(),!pd(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 PB(t){var r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}(a):parseFloat(a);return function UP(t,r,e){return new gd(t,r,hi.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 f=0;f<5;f++)this.advance()}else l=IB(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 tW(t,r,e){return new gd(t,r,hi.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()),Av(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function nW(t,r,e){return new gd(t,r,hi.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),t}();function Iv(t){return 97<=t&&t<=122||65<=t&&t<=90||95==t||36==t}function Pv(t){return kT(t)||pd(t)||95==t||36==t}function rW(t){return 101==t||69==t}function OB(t){return 45==t||43==t}function IB(t){switch(t){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}var Xm,RB=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.strings=r,this.expressions=e,this.offsets=i}),HP=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.templateBindings=r,this.warnings=e,this.errors=i}),LB=function(){function t(r){(0,j.Z)(this,t),this._lexer=r,this.errors=[]}return(0,V.Z)(t,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),f=1;i&&(f|=2);var h=new s1(e,o,a,u,f,this.errors,0).parseChain();return new Wp(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,s=this._parseBindingAst(e,i,o,a);return new Wp(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new jP;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:su,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 Wp(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new zb(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){var s=this._parseQuote(e,i,o);if(null!=s)return s;this._checkNoInterpolation(e,i,a);var l=this._stripComments(e),u=this._lexer.tokenize(l);return new s1(e,i,o,u,0,this.errors,0).parseChain()}},{key:"_parseQuote",value:function(e,i,o){if(null==e)return null;var a=e.indexOf(":");if(-1==a)return null;var s=e.substring(0,a).trim();if(!function XT(t){if(0==t.length)return!1;var r=new Ov(t);if(!Iv(r.peek))return!1;for(r.advance();0!==r.peek;){if(!Pv(r.peek))return!1;r.advance()}return!0}(s))return null;var l=e.substring(a+1),u=new Wm(0,e.length);return new fP(u,u.toAbsolute(o),s,l,i)}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new s1(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Wa(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:su,l=this.splitInterpolation(e,i,a,s),u=l.strings,f=l.expressions,h=l.offsets;if(0===f.length)return null;for(var v=[],C=0;C<f.length;++C){var B=f[C].text,G=this._stripComments(B),q=this._lexer.tokenize(G),ae=new s1(e,i,o,q,0,this.errors,h[C]).parseChain();v.push(ae)}return this.createInterpolationAst(u.map(function(he){return he.text}),v,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new s1(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 Wm(0,o.length),u=new Qs(l,l.toAbsolute(s),e,i);return new Wp(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]:su,l=[],u=[],f=[],h=o?zP(o):null,v=0,C=!1,B=!1,G=a.start,q=a.end;v<e.length;)if(C){var Ye=v,Me=Ye+G.length,Fe=this._getInterpolationEndIndex(e,q,Me);if(-1===Fe){C=!1,B=!0;break}var ft=Fe+q.length,ht=e.substring(Me,Fe);0===ht.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(v," in"),i),u.push({text:ht,start:Ye,end:ft});var Re=null!==(s=null==h?void 0:h.get(Ye))&&void 0!==s?s:Ye,ut=Re+G.length;f.push(ut),v=ft,C=!1}else{var ae=v;-1===(v=e.indexOf(G,v))&&(v=e.length);var he=e.substring(ae,v);l.push({text:he,start:ae,end:v}),C=!0}if(!C)if(B){var kt=l[l.length-1];kt.text+=e.substring(v),kt.end=e.length}else l.push({text:e.substring(v),start:v,end:e.length});return new RB(l,u,f)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new Wm(0,null==e?0:e.length);return new Wp(new vl(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&&Bb(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,f=(0,cn.Z)(this._forEachUnquotedChar(e,0));try{for(f.s();!(h=f.n()).done;){var v=h.value;if(-1===l)e.startsWith(a)&&(l=v);else if((u=this._getInterpolationEndIndex(e,s,v))>-1)break}}catch(C){f.e(C)}finally{f.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,cn.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:Jn().mark(function r(e,i){var o,a,s,l;return Jn().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o=null,a=0,s=i;case 3:if(!(s<e.length)){f.next=16;break}if(l=e[s],!Bb(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){f.next=9;break}o=null===o?l:null,f.next=12;break;case 9:if(null!==o){f.next=12;break}return f.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,f.next=3;break;case 16:case"end":return f.stop()}},r)})}]),t}();!function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"}(Xm||(Xm={}));var s1=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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=Xm.None,this.sourceSpanCache=new Map,this.index=0}return(0,V.Z)(t,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:Qm}},{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 Wm(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===Qm?"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 this.index<this.tokens.length&&this.error("Unexpected token '".concat(this.next,"'"))}if(0==e.length){var a=this.offset,s=this.offset+this.input.length;return new gl(this.span(a,s),this.sourceSpan(a,s))}return 1==e.length?e[0]:new Tv(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 Wm(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new Gb(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 gl(this.span(e),this.sourceSpan(e))}return new DT(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 mc(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 mc(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 mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new mc(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==hi.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new mc(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==hi.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Ym.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Ym.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new Kb(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 Jb(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 vl(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new vl(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new vl(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new vl(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new xT(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new qb(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(fd))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new kv(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new vl(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new vl(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new gl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new gl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new gl(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(fd),!this.consumeOptionalCharacter(hc)){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),f=this.sourceSpan(a);i.push(new yf(u,f,f,new kv(u,f),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(hc)}return new IT(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var f,a=this,s=this.inputIndex,l=this.withContext(Xm.Writable,function(){var v,C=null!==(v=a.expectIdentifierOrKeyword())&&void 0!==v?v:"";return 0===C.length&&a.error("Expected identifier for property access",e.span.end),C}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),f=new gl(this.span(i),this.sourceSpan(i))):f=new AT(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 gl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();f=new Vm(this.span(i),this.sourceSpan(i),u,e,l,h)}else f=new yf(this.span(i),this.sourceSpan(i),u,e,l);return f}},{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),f=this.sourceSpan(i);return o?new md(u,f,e,s,l):new Gm(u,f,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 Wa(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,$t.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,$t.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new HP(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Xm.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof gl&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new Yb(a.span(i),a.sourceSpan(i),e,s):new Vb(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new OT(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new gl(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 Wa(e.span.start,a);return i.push(new hP(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===Qm||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 Wp(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 Wa(e.span.start,this.currentAbsoluteOffset);return new pP(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 Wa(e,this.currentAbsoluteOffset);return new pP(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 zb(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(hc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Xm.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new zb(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),t}(),jP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,V.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}($z);function zP(t){for(var r=new Map,e=0,i=0,o=0;o<t.length;){var a=t[o];if(9===a.type){var s=(0,Ut.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var f=a.parts.reduce(function(h,v){return h+v.length},0);i+=f,e+=f}r.set(i,e),o++}return r}var Rv=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.sourceSpan=r,this.i18n=e}),$m=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(Rv),$T=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,s,u)).switchValue=i,f.type=o,f.cases=a,f.switchValueSourceSpan=l,f}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(Rv),iW=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),t}(),oW=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,a,f)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(Rv),WP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,j.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=f,u}return(0,V.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(Rv),eE=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.sourceSpan=e}return(0,V.Z)(t,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),t}();function _c(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=t.visit?function(a){return t.visit(a,e)||a.visit(t,e)}:function(a){return a.visit(t,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var tE={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"};tE.ngsp="\ue500";var VP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,V.Z)(e)}(uu),Cf=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var t_,NB=/\r\n?/g;function e_(t){var r=0===t?"EOF":String.fromCharCode(t);return'Unexpected character "'.concat(r,'"')}function l1(t){return'Unknown entity "'.concat(t,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(t){t.HEX="hexadecimal",t.DEC="decimal"}(t_||(t_={}));var rE=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.error=r}),wf=function(){function t(r,e,i){(0,j.Z)(this,t),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||su,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 i_(r,o):new u1(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,V.Z)(t,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(NB,"\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 FB(t){return t!==hc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===hc){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 VP("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 VP("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 VP(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new rE(o)}},{key:"handleError",value:function(e){if(e instanceof Gp&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof rE))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 UB(t,r){return n_(t)===n_(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(e_(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(e_(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(e_(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(BB),59!=this._cursor.peek()){this._cursor.advance();var s=o?t_.HEX:t_.DEC;throw this._createError(function YP(t,r){return'Unable to parse entity "'.concat(r,'" - ').concat(t,' 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(C){throw this._createError(l1(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var f=this._cursor.clone();if(this._attemptCharCodeUntilFn(qP),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=f,this._endToken(["&"]);else{var h=this._cursor.getChars(f);this._cursor.advance();var v=tE[h];if(!v)throw this._createError(l1(h),this._cursor.getSpan(i));this._endToken([v,"&".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()&&!iE(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(GP,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!kT(this._cursor.peek()))throw this._createError(e_(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(yl);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(yl),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(yl),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(yl);this._consumeTagOpenEnd()}catch(l){if(l instanceof rE)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===wn.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===wn.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(yl),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(yl),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(e_(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 GP(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(yl);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(yl),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(fd),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(yl),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(yl)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(fd).trim();this._endToken([e]),this._attemptCharCodeUntilFn(yl),this._beginToken(21),this._requireCharCode(fd),this._endToken([]),this._attemptCharCodeUntilFn(yl),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(hc),this._endToken([]),this._attemptCharCodeUntilFn(yl),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(hc),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 f=this._cursor.clone();if(this._isTagStart())return this._cursor=f,a.push(this._getProcessedChars(s,f)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,f)),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&&Bb(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()===hc&&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()!==fd)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),t}();function yl(t){return!wT(t)||0===t}function GP(t){return wT(t)||62===t||60===t||47===t||39===t||34===t||61===t||0===t}function iE(t){return(t<97||122<t)&&(t<65||90<t)&&(t<48||t>57)}function BB(t){return 59===t||0===t||!function mB(t){return t>=97&&t<=102||t>=65&&t<=70||pd(t)}(t)}function qP(t){return 59===t||0===t||!kT(t)}function n_(t){return t>=97&&t<=122?t-97+65:t}function r_(t){for(var r=[],e=void 0,i=0;i<t.length;i++){var o=t[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 u1=function(){function t(r,e){if((0,j.Z)(this,t),r instanceof t){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,V.Z)(t,[{key:"clone",value:function(){return new t(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 ja(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 Gp('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):oP(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 vf(e.file,e.state.offset,e.state.line,e.state.column)}}]),t}(),i_=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.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,Gt.Z)(a)}return(0,V.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,Ht.Z)((0,sn.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,Ht.Z)((0,sn.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()===fd){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==hc;)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 f=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(f,2)}else if(aP(a())){for(var h="",v=0,C=this.clone();aP(a())&&v<3;)C=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),v++;this.state.peek=parseInt(h,8),this.internalState=C.internalState}else oP(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.substr(o.internalState.offset,a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new Gp("Invalid hexadecimal escape sequence",o);return l}}]),e}(u1),Gp=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.msg=r,this.cursor=e}),bl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,V.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(uu),oE=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.rootNodes=r,this.errors=e}),KP=function(){function t(r){(0,j.Z)(this,t),this.getTagDefinition=r}return(0,V.Z)(t,[{key:"parse",value:function(e,i,o){var a=function nE(t,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new wf(new Fb(t,r),e,i);return o.tokenize(),new Cf(r_(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new JP(a.tokens,this.getTagDefinition);return s.build(),new oE(s.rootNodes,a.errors.concat(s.errors))}}]),t}(),JP=function(){function t(r,e){(0,j.Z)(this,t),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,V.Z)(t,[{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 eE(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 ja(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new $T(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(bl.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(bl.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 t(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new ja(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new ja(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new iW(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(!c1(o,21))return this.errors.push(bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!c1(o,19))return this.errors.push(bl.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(bl.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,d1):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new $m(a,new ja(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,Ut.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 f=this.getTagDefinition(l);f.canSelfClose||null!==ue(l)||f.isVoid||this.errors.push(bl.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,v=new ja(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new ja(e.sourceSpan.start,h,e.sourceSpan.fullStart),B=new WP(l,s,[],v,C,void 0);this._pushElement(B),u?this._popElement(l,v):4===e.type&&(this._popElement(l,null),this.errors.push(bl.create(l,v,'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(bl.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(bl.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=We(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,d1):9===h.type?a+=h.parts[0]:a+=h.parts.join(""),u=o=h.sourceSpan.end}15===this._peek.type&&(o=this._advance().sourceSpan.end);var C=l&&u&&new ja(l.start,u,l.fullStart);return new oW(i,a,new ja(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,C,s.length>0?s:void 0,void 0)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_addToParent",value:function(e){var i=this._getParentElement();null!=i?i.children.push(e):this.rootNodes.push(e)}},{key:"_getElementFullName",value:function(e,i,o){if(""===e&&(""===(e=this.getTagDefinition(i).implicitNamespacePrefix||"")&&null!=o)){var a=Bt(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ue(o.name))}return We(e,i)}}]),t}();function c1(t,r){return t.length>0&&t[t.length-1]===r}function d1(t,r){return void 0!==tE[r]?tE[r]||t:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):t}var QP=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this,Jt)}return(0,V.Z)(e,[{key:"parse",value:function(o,a,s){return(0,Ht.Z)((0,sn.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(KP),Lv="ngPreserveWhitespaces",HB=new Set(["pre","template","textarea","script","style"]),aE=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",aW=new RegExp("[^".concat(aE,"]")),XP=new RegExp("[".concat(aE,"]{2,}"),"g");function e3(t){return t.replace(new RegExp("\ue500","g")," ")}var lE,sE=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e,i){return HB.has(e.name)||function $P(t){return t.some(function(r){return r.name===Lv})}(e.attrs)?new WP(e.name,_c(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new WP(e.name,e.attrs,function zB(t,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(t,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!==Lv?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(aW),a=i&&(i.prev instanceof $T||i.next instanceof $T);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function jB(t){var r=t.type,e=t.parts,i=t.sourceSpan;return{type:r,parts:[t3(e[0])],sourceSpan:i}}(u):u}),l=t3(e.value);return new $m(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}}]),t}();function t3(t){return e3(t).replace(XP," ")}function n3(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Di(Object.keys(t).map(function(e){return{key:e,quoted:r,value:t[e]}}))}function uE(){return lE||(lE={},cE(tt.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),cE(tt.STYLE,["*|style"]),cE(tt.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),cE(tt.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"])),lE}function cE(t,r){var i,e=(0,cn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;lE[o.toLowerCase()]=t}}catch(a){e.e(a)}finally{e.f()}}var WB=(0,V.Z)(function t(){(0,j.Z)(this,t)}),o3=["[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:|"],dE={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},a3=Object.keys(dE).reduce(function(t,r){return t[dE[r]]=r,t},{}),s3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.call(this))._schema={},i._eventSchema={},o3.forEach(function(o){var a={},s=new Set,l=o.split("|"),u=(0,Ut.Z)(l,2),f=u[0],v=u[1].split(","),C=f.split("^"),B=(0,Ut.Z)(C,2),G=B[0],q=B[1];G.split(",").forEach(function(Fe){i._schema[Fe.toLowerCase()]=a,i._eventSchema[Fe.toLowerCase()]=s});var ae=q&&i._schema[q.toLowerCase()];if(ae){Object.keys(ae).forEach(function(Fe){a[Fe]=ae[Fe]});var Ye,he=(0,cn.Z)(i._eventSchema[q.toLowerCase()]);try{for(he.s();!(Ye=he.n()).done;){var Me=Ye.value;s.add(Me)}}catch(Fe){he.e(Fe)}finally{he.f()}}v.forEach(function(Fe){if(Fe.length>0)switch(Fe[0]){case"*":s.add(Fe.substring(1));break;case"!":a[Fe.substring(1)]="boolean";break;case"#":a[Fe.substring(1)]="number";break;case"%":a[Fe.substring(1)]="object";break;default:a[Fe]="string"}})}),i}return(0,V.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===Yn.name}))return!0;if(o.indexOf("-")>-1){if(dt(o)||de(o))return!1;if(s.some(function(u){return u.name===lr.name}))return!0}return!!(this._schema[o.toLowerCase()]||this._schema.unknown)[a]}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===Yn.name})||o.indexOf("-")>-1&&(dt(o)||de(o)||a.some(function(s){return s.name===lr.name})))||!!this._schema[o.toLowerCase()]}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=uE()[o+"|"+a];return l||((l=uE()["*|"+a])||tt.NONE)}},{key:"getMappedPropName",value:function(o){return dE[o]||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 Object.keys(this._schema)}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema[o.toLowerCase()]||this._schema.unknown;return Object.keys(a).map(function(s){var l;return null!==(l=a3[s])&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema[o.toLowerCase()])&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function pn(t){return t.replace(rr,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(),f=null;if(function qB(t){switch(t){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&&(f="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:f,value:u+l}}}]),e}(WB);var fE=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function pE(t,r){return t=t.toLowerCase(),r=r.toLowerCase(),fE.has(t+"|"+r)||fE.has("*|"+r)}var u3="animate-",c3=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,V.Z)(t,[{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,f){var B,h=o.start.offset+"*".length,v=this._parseTemplateBindings(e,i,o,h,a),C=(0,cn.Z)(v);try{for(C.s();!(B=C.n()).done;){var G=B.value,q=vc(o,G.sourceSpan),ae=G.key.source,he=vc(o,G.key.span);if(G instanceof pP){var Ye=G.value?G.value.source:"$implicit",Me=G.value?vc(o,G.value.span):void 0;u.push(new Sv(ae,Ye,q,he,Me))}else if(G.value){var Fe=f?q:o,ft=vc(o,G.value.ast.sourceSpan);this._parsePropertyAst(ae,G.value,Fe,he,ft,s,l)}else s.push([ae,""]),this.parseLiteralAttr(ae,null,he,a,void 0,s,l,he)}}catch(ht){C.e(ht)}finally{C.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var f=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(f.errors,o),f.warnings.forEach(function(h){l._reportError(h,o,hd.WARNING)}),f.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,f){mE(e)?(e=e.substring(1),void 0!==f&&(f=vc(f,new Wa(f.start.offset+1,f.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,hd.ERROR),this._parseAnimation(e,i,o,a,f,s,l,u)):u.push(new Mv(e,this._exprParser.wrapLiteralPrimitive(i,"",a),Vp.LITERAL_ATTR,o,f,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,f,h){0===e.length&&this._reportError("Property name is missing in binding",a);var v=!1;e.startsWith(u3)?(v=!0,e=e.substring(u3.length),void 0!==h&&(h=vc(h,new Wa(h.start.offset+u3.length,h.end.offset)))):mE(e)&&(v=!0,e=e.substring(1),void 0!==h&&(h=vc(h,new Wa(h.start.offset+1,h.end.offset)))),v?this._parseAnimation(e,i,a,s,h,l,u,f):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,f)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,f){var h=this.parseInterpolation(i,a||o,f);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 Mv(e,i,Vp.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,f){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]),f.push(new Mv(e,h,Vp.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 LT(i.name,4,tt.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,f=i.name.split("."),h=void 0;if(f.length>1)if("attr"==f[0]){u=f.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=_E(this._schemaRegistry,e,u,!0);var v=u.indexOf(":");if(v>-1){var C=u.substring(0,v),B=u.substring(v+1);u=We(C,B)}l=1}else"class"==f[0]?(u=f[1],l=2,h=[tt.NONE]):"style"==f[0]&&(s=f.length>2?f[2]:null,u=f[1],l=3,h=[tt.STYLE]);if(null===u){var G=this._schemaRegistry.getMappedPropName(i.name);u=a?G:i.name,h=_E(this._schemaRegistry,e,G,!1),l=0,o||this._validatePropertyOrAttributeName(G,i.sourceSpan,!1)}return new LT(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,f){0===e.length&&this._reportError("Event name is missing in binding",a),mE(e)?(e=e.substr(1),void 0!==f&&(f=vc(f,new Wa(f.start.offset+1,f.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,f)):this._parseRegularEvent(e,i,o,a,s,l,u,f)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return _E(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var f=function Se(t,r){return Ae(t,".",r)}(e,[e,""]),h=f[0],v=f[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new RT(h,v,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),v?"start"!==v&&"done"!==v&&this._reportError('The provided animation output phase value "'.concat(v,'" 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,f){var h=lt(e,[null,e]),v=(0,Ut.Z)(h,2),C=v[0],B=v[1],G=this._parseAction(i,o,s);l.push([e,G.source]),u.push(new RT(B,C,0,G,a,s,f))}},{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 gl?(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]:hd.ERROR;this.errors.push(new uu(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,cn.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,hd.ERROR)}}]),t}();function mE(t){return"@"==t[0]}function _E(t,r,e,i){var o=[];return dn.parse(r).forEach(function(a){var s=a.element?[a.element]:t.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(f){return f.isElementSelector()}).map(function(f){return f.element})),u=s.filter(function(f){return!l.has(f)});o.push.apply(o,(0,$t.Z)(u.map(function(f){return t.securityContext(f,e,i)})))}),0===o.length?[tt.NONE]:Array.from(new Set(o)).sort()}function vc(t,r){var e=r.start-t.start.offset,i=r.end-t.end.offset;return new ja(t.start.moveBy(e),t.end.moveBy(i),t.fullStart.moveBy(e),t.details)}var Cl,XB=/^([^:/?#]+):/;function eF(t){var r=null,e=null,i=null,o=!1,a="";t.attrs.forEach(function(u){var f=u.name.toLowerCase();"select"==f?r=u.value:"href"==f?e=u.value:"rel"==f?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function p3(t){return null===t||0===t.length?"*":t}(r);var s=t.name.toLowerCase(),l=Cl.OTHER;return de(s)?l=Cl.NG_CONTENT:"style"==s?l=Cl.STYLE:"script"==s?l=Cl.SCRIPT:"link"==s&&"stylesheet"==i&&(l=Cl.STYLESHEET),new f3(l,r,e,o,a)}!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(Cl||(Cl={}));var f3=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var h3=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,bc_BANANA_BOX={start:"[(",end:")]"},bc_PROPERTY={start:"[",end:"]"},bc_EVENT={start:"(",end:")"};function TE(t,r,e){var i=new Nv(r,e),s={nodes:_c(i,t),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var Cc,Nv=function(){function t(r,e){(0,j.Z)(this,t),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=this,o=Lm(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=eF(e);if(a.type===Cl.SCRIPT)return null;if(a.type===Cl.STYLE){var s=function SE(t){return 1===t.children.length&&t.children[0]instanceof $m?t.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===Cl.STYLESHEET&&function QB(t){if(null==t||0===t.length||"/"==t[0])return!1;var r=t.match(XB);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Ye,l=function Te(t){return"ng-template"===Bt(t)[1]}(e.name),u=[],f=[],h=[],v=[],C=[],B={},G=[],q=[],ae=!1,he=(0,cn.Z)(e.attrs);try{for(he.s();!(Ye=he.n()).done;){var Me=Ye.value,Fe=!1,ft=ME(Me.name),ht=!1;if(Me.i18n&&(B[Me.name]=Me.i18n),ft.startsWith("*")){ae&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Me.sourceSpan),ht=!0,ae=!0;var Re=Me.value,ut=ft.substring("*".length),kt=[],x=Me.valueSpan?Me.valueSpan.start.offset:Me.sourceSpan.start.offset+Me.name.length;this.bindingParser.parseInlineTemplateBinding(ut,Re,Me.sourceSpan,x,[],G,kt,!0),q.push.apply(q,(0,$t.Z)(kt.map(function(Hn){return new xI(Hn.name,Hn.value,Hn.sourceSpan,Hn.keySpan,Hn.valueSpan)})))}else Fe=this.parseAttribute(l,Me,[],u,f,h,v);!Fe&&!ht&&C.push(this.visitAttribute(Me))}}catch(Hn){he.e(Hn)}finally{he.f()}var O,g=_c(a.nonBindable?EE:this,e.children);if(a.type===Cl.NG_CONTENT){e.children&&!e.children.every(function(Hn){return function _3(t){return t instanceof $m&&0==t.value.trim().length}(Hn)||function rF(t){return t instanceof eE}(Hn)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var H=a.selectAttr,te=e.attrs.map(function(Hn){return i.visitAttribute(Hn)});O=new YN(H,te,e.sourceSpan,e.i18n),this.ngContentSelectors.push(H)}else if(l){var re=this.extractAttributes(e.name,u,B);O=new rv(e.name,C,re.bound,f,[],g,v,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var ye=this.extractAttributes(e.name,u,B);O=new sd(e.name,C,ye.bound,f,g,v,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(ae){var pt=this.extractAttributes("ng-template",G,B),xt=[];pt.literal.forEach(function(Hn){return xt.push(Hn)}),pt.bound.forEach(function(Hn){return xt.push(Hn)});var Ce=O instanceof sd?{attributes:O.attributes,inputs:O.inputs,outputs:O.outputs}:{attributes:[],inputs:[],outputs:[]},st=l&&o?void 0:e.i18n,Lt=O instanceof rv?null:O.name;O=new rv(Lt,Ce.attributes,Ce.inputs,Ce.outputs,xt,[O],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,st)}return o&&(this.inI18nBlock=!1),O}},{key:"visitAttribute",value:function(e){return new Ou(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(!Lm(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 f=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[f]=new cs(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new Mb(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 Au(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var f=o[u.name];if(u.isLiteral)l.push(new Ou(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,f));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(cc.fromBoundElementProperty(h,f))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var f,h=ME(i.name),v=i.value,C=i.sourceSpan,B=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function G(xt,Ce,st){var Lt=i.name.length-h.length,Hn=xt.start.moveBy(Ce.length+Lt),er=Hn.moveBy(st.length);return new ja(Hn,er,Hn,st)}var q=h.match(h3);if(q){if(null!=q[1]){var ae=q[7],he=G(C,q[1],ae);this.bindingParser.parsePropertyBinding(ae,v,!1,C,B,i.valueSpan,o,a,he)}else if(q[2])if(e){var Ye=q[7],Me=G(C,q[2],Ye);this.parseVariable(Ye,v,C,Me,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Fe=q[7],ft=G(C,q[3],Fe);this.parseReference(Fe,v,C,ft,i.valueSpan,u)}else if(q[4]){var ht=[],Re=q[7],ut=G(C,q[4],Re);this.bindingParser.parseEvent(Re,v,!1,C,i.valueSpan||C,o,ht,ut),h1(ht,s)}else if(q[5]){var kt=q[7],x=G(C,q[5],kt);this.bindingParser.parsePropertyBinding(kt,v,!1,C,B,i.valueSpan,o,a,x),this.parseAssignmentEvent(kt,v,C,i.valueSpan,o,s,x)}else if(q[6]){var g=G(C,"",h);this.bindingParser.parseLiteralAttr(h,v,C,B,i.valueSpan,o,a,g)}return!0}var O=null;if(h.startsWith(bc_BANANA_BOX.start)?O=bc_BANANA_BOX:h.startsWith(bc_PROPERTY.start)?O=bc_PROPERTY:h.startsWith(bc_EVENT.start)&&(O=bc_EVENT),null!==O&&h.endsWith(O.end)&&h.length>O.start.length+O.end.length){var H=h.substring(O.start.length,h.length-O.end.length),te=G(C,O.start,H);if(O.start===bc_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,te),this.parseAssignmentEvent(H,v,C,i.valueSpan,o,s,te);else if(O.start===bc_PROPERTY.start)this.bindingParser.parsePropertyBinding(H,v,!1,C,B,i.valueSpan,o,a,te);else{var re=[];this.bindingParser.parseEvent(H,v,!1,C,i.valueSpan||C,o,re,te),h1(re,s)}return!0}var ye=G(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,v,C,i.valueSpan,o,a,ye,null!==(f=i.valueTokens)&&void 0!==f?f:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=e3(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new cs(l,i,a):new Dm(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 xI(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 iv(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var f=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,f,u),h1(f,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hd.ERROR;this.errors.push(new uu(i,e,o))}}]),t}(),nF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"visitElement",value:function(e){var i=eF(e);if(i.type===Cl.SCRIPT||i.type===Cl.STYLE||i.type===Cl.STYLESHEET)return null;var o=_c(this,e.children,null);return new sd(e.name,_c(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new Ou(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Dm(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),t}(),EE=new nF;function ME(t){return/^data-/i.test(t)?t.substring(5):t}function h1(t,r){r.push.apply(r,(0,$t.Z)(t.map(function(e){return dc.fromParsedEvent(e)})))}function iF(){return{getUniqueId:uT(),icus:new Map}}!function(t){t[t.ELEMENT=0]="ELEMENT",t[t.TEMPLATE=1]="TEMPLATE"}(Cc||(Cc={}));var g3=function(){function t(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,j.Z)(this,t),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||iF(),this.id=this._registry.getUniqueId()}return(0,V.Z)(t,[{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};cT(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(oF))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){cT(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;dT(e,this.bindings.size,this.id).forEach(function(a,s){return cT.apply(void 0,[i.placeholders,s].concat((0,$t.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Cc.TEMPLATE,e,i,!1),this.appendTag(Cc.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Cc.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Cc.ELEMENT,e,i,!1),this.appendTag(Cc.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new t(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(v3(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(v3(e.id,e.templateIndex));if(u>=0){var f=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(f?0:1),0].concat((0,$t.Z)(a)));else a[f?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,$t.Z)(a)))}else l.push.apply(l,(0,$t.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),t}();function kf(t,r,e,i){var o=i?"/":"";return fv("".concat(o).concat(t).concat(r),e)}function m1(t,r,e){var i=r.index,o=r.ctx;return r.isVoid?kf(t,i,o)+kf(t,i,o,!0):kf(t,i,o,e)}function v3(t,r){return function(e){return"object"==typeof e&&e.type===Cc.TEMPLATE&&e.index===r&&e.ctx===t}}function oF(t){var r=function(a,s){return m1("#",a,s)},e=function(a,s){return m1("*",a,s)};switch(t.type){case Cc.ELEMENT:return t.closed?r(t,!0)+(t.tmpl?e(t.tmpl,!0):""):t.tmpl?e(t.tmpl)+r(t)+(t.isVoid?e(t.tmpl,!0):""):r(t);case Cc.TEMPLATE:return e(t,t.closed);default:return t}}var o_=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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(Ab(e,!1),"}")}}]),t}(),aF=new o_;function y3(t){return t.visit(aF)}var b3={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"},sF=function(){function t(){(0,j.Z)(this,t),this._placeHolderNameCounts={},this._signatureToName={}}return(0,V.Z)(t,[{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=b3[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=b3[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)}}]),t}(),Bs=new LB(new JT);function lF(t){var r=new cF(Bs,t);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function uF(t,r){return r}var cF=function(){function t(r,e){(0,j.Z)(this,t),this._expressionParser=r,this._interpolationConfig=e}return(0,V.Z)(t,[{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 $T,icuDepth:0,placeholderRegistry:new sF,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||uF},u=_c(this,e,l);return new ld(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=_c(this,e.children,i),s={};e.attrs.forEach(function(v){s[v.name]=v.value});var l=Jt(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var f="";l||(f=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[f]={text:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new qN(e.name,s,u,f,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 ov(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 ov(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 OI(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new Am(h.expression.map(function(v){return v.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 f=new hf(s,u,e.sourceSpan);return i.visitNodeFn(e,f)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var f,s=[],l=!1,u=(0,cn.Z)(e);try{for(u.s();!(f=u.n()).done;){var h=f.value;switch(h.type){case 8:case 17:l=!0;var v=h.parts[1],C=pF(v)||"INTERPOLATION",B=o.placeholderRegistry.getPlaceholderName(C,v);o.placeholderToContent[B]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new av(v,B,h.sourceSpan));break;default:if(h.parts[0].length>0){var G=s[s.length-1];G instanceof ov?(G.value+=h.parts[0],G.sourceSpan=new ja(G.sourceSpan.start,h.sourceSpan.end,G.sourceSpan.fullStart,G.sourceSpan.details)):s.push(new ov(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function C3(t,r){if(r instanceof ld&&(function dF(t){var r=t.nodes;if(1!==r.length||!(r[0]instanceof Am))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof Am){!function dW(t,r){if(t.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(t.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,t);for(var e=0;e<t.length;e++)t[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new Am(s,i)):s[0]}}]),t}();var fF=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function pF(t){return t.split(fF)[2]}var fW=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){return(0,j.Z)(this,e),r.call(this,i,o)}return(0,V.Z)(e)}(uu),w3=function(r,e){return r instanceof Rv&&(e instanceof hf&&r.i18n instanceof ld&&(e.previousMessage=r.i18n),r.i18n=e),e},hF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:su,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=lF(this.interpolationConfig)}return(0,V.Z)(t,[{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,f=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(f,i),this._setLegacyIds(f,i),f}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new oE(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function Qz(t){return t.attrs.some(function(r){return Rm(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,cn.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var f=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,f,w3)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(ml)){var h=u.name.slice(ml.length);pE(e.name,h)?this._reportError(u,"Translating attribute '".concat(h,"' is disallowed for security reasons.")):a[h]=u.value}else o.push(u)}}catch(q){s.e(q)}finally{s.f()}if(Object.keys(a).length){var C,v=(0,cn.Z)(o);try{for(v.s();!(C=v.n()).done;){var B=C.value,G=a[B.name];void 0!==G&&B.value&&(B.i18n=this._generateI18nMessage([B],B.i18n||G))}}catch(q){v.e(q)}finally{v.f()}}this.keepI18nAttrs||(e.attrs=o)}return _c(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof hf){var s=a.name;tB(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 gF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(t=t.trim()){var s,o=t.indexOf("@@"),a=t.indexOf("|"),l=o>-1?[t.slice(0,o),t.slice(o+2)]:[t,""],u=(0,Ut.Z)(l,2);s=u[0],r=u[1];var f=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Ut.Z)(f,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof ld?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof ld&&i.id||yi(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[qo(e),Ja(e)];else if("string"!=typeof i){var o=i instanceof ld?i:i instanceof hf?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new fW(e.sourceSpan,i))}}]),t}();function xE(t,r,e,i){var o=function T3(t){return t.nodes.map(function(r){return r.visit(k3,null)}).join("")}(r),a=[me(o)];Object.keys(i).length&&a.push(n3(i,!0));var s=e.set(si("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function pW(t){var r=[];return t.description?r.push({tagName:"desc",text:t.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),t.meaning&&r.push({tagName:"meaning",text:t.meaning}),oc(r)}(r)),[s,new Ir(t.set(e))]}var vF=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"formatPh",value:function(e){return"{$".concat(Ab(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 y3(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)}}]),t}(),k3=new vF;function mW(t,r,e){var i=function _W(t){var r=[],e=new Nu(t.placeholderToMessage,r);return t.nodes.forEach(function(i){return i.visit(e)}),function E3(t){var r=[],e=[];t[0]instanceof Qo&&r.push(_1(t[0].sourceSpan.start));for(var i=0;i<t.length;i++){var o=t[i];o instanceof Ua?r.push(o):(e.push(o),t[i-1]instanceof Qo&&r.push(_1(t[i-1].sourceSpan.end)))}return t[t.length-1]instanceof Qo&&r.push(_1(t[t.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function gW(t){var r=t.nodes[0],e=t.nodes[t.nodes.length-1];return new ja(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=ie(r,o,a,l,s),f=t.set(u);return[new Ir(f)]}var Nu=function(){function t(r,e){(0,j.Z)(this,t),this.placeholderToMessage=r,this.pieces=e}return(0,V.Z)(t,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof Ua)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new ja(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Ua(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 Ua(y3(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 Qo(Ab(e,!1),i,o)}}]),t}();function _1(t){return new Ua("",new ja(t,t))}var yF="ngProjectAs",bF=new Set(["$event"]),g1=new Map([["window",X.resolveWindow],["document",X.resolveDocument],["body",X.resolveBody]]),DE=[" ","\n","\r","\t"];function Tf(t,r){return hl(si(mf).bitwiseAnd(me(t),null,!1),r)}function v1(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.type,o=t.name,a=t.target,s=t.phase,l=t.handler;if(a&&!g1.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(g1.keys()),"."));var u="$event",f=new Set,h=null===e||0===e.bindingLevel?si(Ll):e.getOrCreateSharedContextVar(0),v=ZT(e,h,l,"b",t.handlerSpan,f,bF),C=[];e&&(C.push.apply(C,(0,$t.Z)(e.variableDeclarations())),C.unshift.apply(C,(0,$t.Z)(e.restoreViewStatement()))),C.push.apply(C,(0,$t.Z)(v));var B=1===i?ff(o,s):o,G=r&&zp(r),q=[];f.has(u)&&q.push(new Pn(u,Ki));var ae=ji(q,C,Ci,null,G),he=[me(B),ae];return a&&he.push(me(!1),dr(g1.get(a))),he}function CF(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var wF=function(){function t(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,f=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,v=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:CF();(0,j.Z)(this,t),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=f,this.i18nUseExternalIds=v,this._constants=C,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=mv,this.visitVariable=mv,this.visitTextAttribute=mv,this.visitBoundAttribute=mv,this.visitBoundEvent=mv,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new S3(r,function(){return i.allocateDataSlot()},function(B){return i.allocatePureFunctionSlots(B)},function(B,G,q,ae){i._bindingScope.set(i.level,G,ae),i.creationInstruction(null,X.pipe,[me(q),me(B)])})}return(0,V.Z)(t,[{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!==X.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(he){return o.registerContextVariables(he)});var l=this.i18nContext||Lm(s)&&!Db(s)&&!(d_(e)&&e[0].i18n===s),u=Mf(e);if(l&&this.i18nStart(null,s,u),AI(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(he){return he()}),0===this.level&&this._ngContentReservedSlots.length){var f=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(he){return"*"!==he?Yt(he):he});f.push(this.constantPool.getConstLiteral(Ls(h),!0))}this.creationInstruction(null,X.projectionDef,f,!0)}l&&this.i18nEnd(null,u);var v=Ib(this._creationCodeFns),C=Ib(this._updateCodeFns),B=this._bindingScope.viewSnapshotStatements(),G=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=v.length>0?[Tf(1,B.concat(v))]:[],ae=C.length>0?[Tf(2,G.concat(C))]:[];return ji([new Pn(mf,Uo),new Pn(Ll,null)],[].concat((0,$t.Z)(this._prefixCode),q,ae),Ci,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),f=p_(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,$t.Z)(f)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=si(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=si(pv),s.notifyRestoredViewContextUse()):u=si(Ll):u=s.getSharedContextName(o)||Ef(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 Dm)o[a]=me(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof Qs){var u=l.strings,f=l.expressions,h=i.i18n,v=h.id,B=function Rl(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t.length)return"";for(var i="",o=t.length-1,a=0;a<o;a++)i+="".concat(t[a]).concat(fv(r+a,e));return i+t[o]}(u,h.bindings.size,v);i.i18nAppendBindings(f),o[a]=me(B)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return si(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=BI("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(zp(e),"$$").concat(s)}else{var l=BI(o);i=this.constantPool.uniqueName(l)}return si(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&&!Db(o)){e.isEmitted=!0;var C,u=e.getSerializedPlaceholders(),f={},h=u.size?Lp(u):{};i.size&&i.forEach(function(B,G){if(1===B.length)h[G]=B[0];else{var q=fv("".concat("I18N_EXP_").concat(G));h[G]=me(q),f[G]=pi(B)}}),(Array.from(u.values()).some(function(B){return B.length>1})||Object.keys(f).length)&&(C=function(G){var q=[G];return Object.keys(f).length&&q.push(n3(f,!0)),hv(null,X.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,C)}}},{key:"i18nStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(a,this.templateIndex,i):new g3(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,f=[me(a),this.addToConsts(u)];l>0&&f.push(me(l)),this.creationInstruction(e,o?X.i18n:X.i18nStart,f)}},{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 f,u=(0,cn.Z)(l);try{var h=function(){var C=f.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,X.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(f=u.n()).done;)h()}catch(v){u.e(v)}finally{u.f()}this.updateInstruction(i,X.i18nApply,[me(s)])}o||this.creationInstruction(i,X.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var v=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof Qs){var G=Lp(dT(v));l.push(me(h.name),a.i18nTranslate(v,G)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,X.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=me(this.allocateDataSlot()),f=this.addToConsts(pi(l));this.creationInstruction(o,X.i18nAttributes,[u,f]),s&&this.updateInstruction(o,X.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return X.namespaceMathML;case"svg":return X.namespaceSVG;default:return X.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[me(o)].concat((0,$t.Z)(u.getUpdateInstructionArguments(s)),(0,$t.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[me(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(me(o),pi(l)):0!==o&&a.push(me(o)),this.creationInstruction(e.sourceSpan,X.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,he,i=this,s=this.allocateDataSlot(),l=new qT(null),u=!1,f=Lm(e.i18n)&&!Db(e.i18n),h=[],v=Bt(e.name),C=(0,Ut.Z)(v,2),B=C[0],G=C[1],q=dt(e.name),ae=(0,cn.Z)(e.attributes);try{for(ae.s();!(he=ae.n()).done;){var Ye=he.value,Me=Ye.name,Fe=Ye.value;"ngNonBindable"===Me?u=!0:"style"===Me?l.registerStyleAttr(Fe):"class"===Me?l.registerClassAttr(Fe):h.push(Ye)}}catch(kn){ae.e(kn)}finally{ae.f()}var ft=[me(s)];q||ft.push(me(G));var ht=[],Re=[];e.inputs.forEach(function(kn){l.registerBoundInput(kn)||(0===kn.type&&kn.i18n?Re.push(kn):ht.push(kn))});var ut=this.getAttributeExpressions(e.name,h,ht,e.outputs,l,[],Re);ft.push(this.addAttrsToConsts(ut));var kt=this.prepareRefsArray(e.references);ft.push(this.addToConsts(kt));var x=this._namespace,g=this.getNamespaceInstruction(B);g!==x&&this.addNamespaceInstruction(g,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var O=!f&&this.i18n?!Mf(e.children):e.children.length>0,H=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Re.length&&!O,te=!H&&Mf(e.children);if(H)this.creationInstruction(e.sourceSpan,q?X.elementContainer:X.element,ns(ft));else{if(this.creationInstruction(e.startSourceSpan,q?X.elementContainerStart:X.elementStart,ns(ft)),u&&this.creationInstruction(e.startSourceSpan,X.disableBindings),Re.length>0&&this.i18nAttributesInstruction(s,Re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var ye,re=(0,cn.Z)(e.outputs);try{for(re.s();!(ye=re.n()).done;){var pt=ye.value;this.creationInstruction(pt.sourceSpan,X.listener,this.prepareListenerParameter(e.name,pt,s))}}catch(kn){re.e(kn)}finally{re.f()}}f&&this.i18nStart(e.startSourceSpan,e.i18n,te)}for(var xt=l.buildUpdateLevelInstructions(this._valueConverter),Ce=xt.length-1,st=0;st<=Ce;st++){var Lt=xt[st];this._bindingSlots+=this.processStylingUpdateInstruction(s,Lt)}var Hn=me(void 0),er=[],Zn=[];ht.forEach(function(kn){var Br=kn.type;if(4===Br){var qr=kn.value.visit(i._valueConverter),Yo=!(qr instanceof vl)||!!qr.value;i.allocateBindingSlots(qr),er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return Yo?i.convertPropertyBinding(qr):Hn},Mm(kn.name))})}else{if(kn.i18n)return;var Yi=kn.value.visit(i._valueConverter);if(void 0!==Yi){var Cs=[],VN=Bt(kn.name),Woe=(0,Ut.Z)(VN,2),Voe=Woe[0],SI=Woe[1],YVe=1===Br,Wz=Kp(kn.securityContext,YVe);if(Wz&&Cs.push(Wz),Voe){var Yoe=me(Voe);Wz?Cs.push(Yoe):Cs.push(me(null),Yoe)}if(i.allocateBindingSlots(Yi),0===Br)Yi instanceof Qs?i.interpolatedUpdateInstruction(l_(Yi),s,SI,kn,Yi,Cs):er.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(Yi)},SI,Cs)});else if(1===Br)if(Yi instanceof Qs&&Iu(Yi)>1)i.interpolatedUpdateInstruction(function Fs(t){switch(Iu(t)){case 3:return X.attributeInterpolate1;case 5:return X.attributeInterpolate2;case 7:return X.attributeInterpolate3;case 9:return X.attributeInterpolate4;case 11:return X.attributeInterpolate5;case 13:return X.attributeInterpolate6;case 15:return X.attributeInterpolate7;case 17:return X.attributeInterpolate8;default:return X.attributeInterpolateV}}(Yi),s,SI,kn,Yi,Cs);else{var GVe=Yi instanceof Qs?Yi.expressions[0]:Yi;Zn.push({span:kn.sourceSpan,paramsOrFn:yd(function(){return i.convertPropertyBinding(GVe)},SI,Cs)})}else i.updateInstructionWithAdvance(s,kn.sourceSpan,X.classProp,function(){return[me(s),me(SI),i.convertPropertyBinding(Yi)].concat(Cs)})}}});for(var Cn=0,ma=er;Cn<ma.length;Cn++){var Tr=ma[Cn];this.updateInstructionWithAdvance(s,Tr.span,X.property,Tr.paramsOrFn)}for(var zr=0,Wn=Zn;zr<Wn.length;zr++){var In=Wn[zr];this.updateInstructionWithAdvance(s,In.span,X.attribute,In.paramsOrFn)}if(AI(this,e.children),!f&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!H){var yr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;f&&this.i18nEnd(yr,te),u&&this.creationInstruction(yr,X.enableBindings),this.creationInstruction(yr,q?X.elementContainerEnd:X.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?Bt(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+zp(e.tagName):"","_").concat(s),f="".concat(u,"_Template"),h=[me(s),si(f),me(l)],v=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(v)),e.references&&e.references.length){var C=this.prepareRefsArray(e.references);h.push(this.addToConsts(C)),h.push(dr(X.templateRefExtractor))}var B=new t(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,f,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var ht,ft=B.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(ft.toDeclStmt(f)),B._ngContentReservedSlots.length)&&(ht=i._ngContentReservedSlots).push.apply(ht,(0,$t.Z)(B._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,X.templateCreate,function(){return h.splice(2,0,me(B.getConstCount()),me(B.getVarCount())),ns(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var G=function Gi(t,r){var a,e=[],i=[],o=(0,cn.Z)(t);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,eB),q=(0,Ut.Z)(G,2),ae=q[0],he=q[1];ae.length>0&&this.i18nAttributesInstruction(s,ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),he.length>0&&this.templatePropertyBindings(s,he);var Me,Ye=(0,cn.Z)(e.outputs);try{for(Ye.s();!(Me=Ye.n()).done;){var Fe=Me.value;this.creationInstruction(Fe.sourceSpan,X.listener,this.prepareListenerParameter("ng_template",Fe,s))}}catch(ft){Ye.e(ft)}finally{Ye.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 Qs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,X.text,[me(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof Qs?this.updateInstructionWithAdvance(a,e.sourceSpan,function qp(t){switch(Iu(t)){case 1:return X.textInterpolate;case 3:return X.textInterpolate1;case 5:return X.textInterpolate2;case 7:return X.textInterpolate3;case 9:return X.textInterpolate4;case 11:return X.textInterpolate5;case 13:return X.textInterpolate6;case 15:return X.textInterpolate7;case 17:return X.textInterpolate8;default:return X.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):_t("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,X.text,[me(this.allocateDataSlot()),me(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(v){var B=fT(Object.assign(Object.assign({},a),s),!1);return hv(null,X.i18nPostprocess,[v,n3(B,!0)])};if(Db(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var f=this.i18nTranslate(l,{},void 0,u);o.appendIcu(tB(l).name,f)}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(Ls(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,cn.Z)(i);try{var u=function(){var G=l.value;if(!(G instanceof cc))return"continue";var q=G.value.visit(o._valueConverter);if(void 0===q)return"continue";if(o.allocateBindingSlots(q),q instanceof Qs){o.interpolatedUpdateInstruction(l_(q),e,G.name,G,q,[])}else a.push({span:G.sourceSpan,paramsOrFn:yd(function(){return o.convertPropertyBinding(q)},G.name)})};for(s.s();!(l=s.n()).done;)u()}catch(B){s.e(B)}finally{s.f()}for(var h=0,v=a;h<v.length;h++){var C=v[h];this.updateInstructionWithAdvance(e,C.span,X.property,C.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,cn.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(v){return h.supportsInterpolation&&v instanceof Qs?o.getUpdateInstructionArguments(v):o.convertPropertyBinding(v)})})};for(s.s();!(l=s.n()).done;)u()}catch(f){s.e(f)}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,X.advance,[me(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 Qs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?si(Ll):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=CB(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,$t.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function qm(t,r,e,i){var o=new e1(t,r,i,!0),a=o.visitInterpolation(e,co.Expression);return o.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),{stmts:Xb(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,$t.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var v,B,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],f=new Set,h=[],C=(0,cn.Z)(i);try{for(C.s();!(B=C.n()).done;){var G=B.value;if(G.name===yF&&(v=G),G.i18n){var q=this._constants.i18nVarRefsCache,ae=void 0;q.has(G.i18n)?ae=q.get(G.i18n):(ae=this.i18nTranslate(G.i18n),q.set(G.i18n,ae)),h.push(me(G.name),ae)}else h.push.apply(h,(0,$t.Z)(a_(G.name)).concat([c_(e,G)]))}}catch(Re){C.e(Re)}finally{C.f()}function he(Re,ut){"string"==typeof Re?f.has(Re)||(h.push.apply(h,(0,$t.Z)(a_(Re))),void 0!==ut&&h.push(ut),f.add(Re)):h.push(me(Re))}if(v&&h.push.apply(h,(0,$t.Z)(wc(v))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Ye=h.length,Me=0;Me<o.length;Me++){var Fe=o[Me];4!==Fe.type&&1!==Fe.type&&he(Fe.name)}for(var ft=0;ft<a.length;ft++){var ht=a[ft];1!==ht.type&&he(ht.name)}h.length!==Ye&&h.splice(Ye,0,me(3))}return l.length&&(h.push(me(4)),l.forEach(function(Re){return he(Re.name)})),u.length&&(h.push(me(6)),u.forEach(function(Re){return he(Re.name)})),h}},{key:"addToConsts",value:function(e){if(fe(e))return be;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return me(o);return me(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(pi(e)):be}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?Ls(C1(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,f=si(l);return i._bindingScope.set(u,a.name,f,0,function(h,v){var C=v>0?[Ef(v).toStmt()]:[],B=f.set(dr(X.reference).callFn([me(s)]));return C.concat(B.toConstDecl())},!0),[a.name,a.value]}))):be}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?pf(s,i.phase):zp(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),f=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,bF);return v1(i,u,f)}}}]),t}(),S3=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,V.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),f=new yf(o.span,o.sourceSpan,o.nameSpan,new kv(o.span,o.sourceSpan),l),h=function TF(t){var r=kF[t.length];return{identifier:r||X.pipeBindV,isVarLength:!r}}(o.args),v=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,dr(v));var B=[o.exp].concat((0,$t.Z)(o.args)),G=C?this.visitAll([new qb(o.span,o.sourceSpan,B)]):this.visitAll(B),q=new Gm(o.span,o.sourceSpan,f,[new vl(o.span,o.sourceSpan,s),new vl(o.span,o.sourceSpan,u)].concat((0,$t.Z)(G)),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 Km(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=pi(l);return x3(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new Km(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Di(l.map(function(f,h){return{key:o.keys[h].key,value:f,quoted:o.keys[h].quoted}}));return x3(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(PT),kF=[X.pipeBind1,X.pipeBind2,X.pipeBind3,X.pipeBind4];var EF=[X.pureFunction0,X.pureFunction1,X.pureFunction2,X.pureFunction3,X.pureFunction4,X.pureFunction5,X.pureFunction6,X.pureFunction7,X.pureFunction8];function Ef(t){return dr(X.nextContext).callFn(t>1?[me(t)]:[])}function x3(t,r,e){var i=t.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function y1(t){var r=EF[t.length];return{identifier:r||X.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,f=l.isVarLength,h=[me(s),o];return f?h.push(pi(a)):h.push.apply(h,(0,$t.Z)(a)),dr(u).callFn(h)}function a_(t){var r=Bt(t),e=(0,Ut.Z)(r,2),i=e[0],a=me(e[1]);return i?[me(0),me(i),a]:[a]}var s_="$$shared_ctx$$",MF=function(){function t(){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,j.Z)(this,t),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,cn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,si(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,V.Z)(t,[{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;_t("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(s_+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new t(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=s_+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(s_+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(s_+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=si(Ll+this.freshReferenceName());this.map.set(s_+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(Ef(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(s_+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=si(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){var e=[];if(this.restoreViewVariable){var i=hv(null,X.restoreView,[this.restoreViewVariable]);e.push(this.usesRestoredViewContext?si(pv).set(i).toConstDecl():i.toStmt())}return e}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(hv(null,X.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 t}}]),t}();function wc(t){var r=Yt(t.value)[0];return[me(5),Ls(r)]}function l_(t){switch(Iu(t)){case 1:return X.propertyInterpolate;case 3:return X.propertyInterpolate1;case 5:return X.propertyInterpolate2;case 7:return X.propertyInterpolate3;case 9:return X.propertyInterpolate4;case 11:return X.propertyInterpolate5;case 13:return X.propertyInterpolate6;case 15:return X.propertyInterpolate7;case 17:return X.propertyInterpolate8;default:return X.propertyInterpolateV}}var Zl=new s3;function u_(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:su;return new c3(new LB(new JT),t,Zl,[])}function Kp(t,r){switch(t){case tt.HTML:return dr(X.sanitizeHtml);case tt.SCRIPT:return dr(X.sanitizeScript);case tt.STYLE:return r?dr(X.sanitizeStyle):null;case tt.URL:return dr(X.sanitizeUrl);case tt.RESOURCE_URL:return dr(X.sanitizeResourceUrl);default:return null}}function c_(t,r){var e=Ls(r.value);if(!pE(t,r.name))return e;switch(Zl.securityContext(t,r.name,!0)){case tt.HTML:return ze(dr(X.trustConstantHtml),new Fa([new Tu(r.value)],[]),void 0,r.valueSpan);case tt.RESOURCE_URL:return ze(dr(X.trustConstantResourceUrl),new Fa([new Tu(r.value)],[]),void 0,r.valueSpan);default:return e}}function d_(t){return 1===t.length&&t[0]instanceof sd}function f_(t){return t instanceof Dm||t instanceof cs||t instanceof Mb}function Mf(t){return t.every(f_)}function yd(t,r,e){return function(){var i=t(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,$t.Z)(e)),r&&o.unshift(me(r)),o}}var Jp="ngI18nClosureMode";function p_(t,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[nB(r),hl(h_(),xE(r,t,e,fT(i,!0)),mW(r,t,fT(i,!1)))];return o&&a.push(new Ir(r.set(o(r)))),a}function h_(){return wi(si(Jp)).notIdentical(me("undefined",ya)).and(si(Jp))}function C1(t){return t.reduce(function(r,e){var i=Array.isArray(e)?C1(e):e;return r.concat(i)},[])}var AE=/attr\.([^\]]+)/,A3="_nghost-".concat("%COMP%"),O3="_ngcontent-".concat("%COMP%");function IE(t,r,e){var i=new fs,o=Yt(t.selector);return i.set("type",t.internalType),o.length>0&&i.set("selectors",Ls(o)),t.queries.length>0&&i.set("contentQueries",function SF(t,r,e){var l,i=[],o=[],a=hT(o,"_t"),s=(0,cn.Z)(t);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(dr(X.contentQuery).callFn([si("dirIndex")].concat((0,$t.Z)(L3(u,r)))).toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Ll).prop(u.propertyName).set(u.first?f.prop("first"):f);o.push(v.and(C).toStmt())}}catch(G){s.e(G)}finally{s.f()}var B=e?"".concat(e,"_ContentQueries"):null;return ji([new Pn(mf,Uo),new Pn(Ll,null),new Pn("dirIndex",null)],[Tf(1,i),Tf(2,o)],Ci,null,B)}(t.queries,r,t.name)),t.viewQueries.length&&i.set("viewQuery",function DF(t,r,e){var i=[],o=[],a=hT(o,Ob);t.forEach(function(l){var u=dr(X.viewQuery).callFn(L3(l,r));i.push(u.toStmt());var f=a(),h=dr(X.loadQuery).callFn([]),v=dr(X.queryRefresh).callFn([f.set(h)]),C=si(Ll).prop(l.propertyName).set(l.first?f.prop("first"):f);o.push(v.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return ji([new Pn(mf,Uo),new Pn(Ll,null)],[Tf(1,i),Tf(2,o)],Ci,null,s)}(t.viewQueries,r,t.name)),i.set("hostBindings",function AF(t,r,e,i,o,a,s){var l=si(Ll),u=new qT(l),f=t.specialAttributes,h=f.styleAttr,v=f.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==v&&u.registerClassAttr(v);var C=[],B=[],G=[],q=r,ae=e.createDirectiveHostEventAsts(t.listeners,q);ae&&ae.length&&C.push.apply(C,(0,$t.Z)(function OF(t,r){var s,e=[],i=[],o=[],a=(0,cn.Z)(t);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&zp(l.name),f=1===l.type?pf(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(f,"_HostBindingHandler"):null,v=v1(dc.fromParsedEvent(l),h);1==l.type?i.push(v):e.push(v)}}catch(Ye){a.e(Ye)}finally{a.f()}for(var C=0,B=i;C<B.length;C++){var G=B[C];o.push({reference:X.syntheticHostListener,paramsOrFn:G,span:null})}for(var q=0,ae=e;q<ae.length;q++){var he=ae[q];o.push({reference:X.listener,paramsOrFn:he,span:null})}return o}(ae,a)));var he=e.createBoundHostProperties(t.properties,q),Ye=[],Me=0;he&&he.forEach(function(Br){u.registerInputBasedOnName(Br.name,Br.expression,q)?Me+=2:(Ye.push(Br),Me++)});for(var Fe,ft=function(){Fe||(Fe=new S3(i,function(){return _t("Unexpected node")},function(Yi){var Cs=Me;return Me+=Yi,Cs},function(){return _t("Unexpected pipe")}));return Fe},ht=[],Re=[],ut=[],kt=0,x=Ye;kt<x.length;kt++){var g=x[kt],O=g.expression.visit(ft()),H=F3(l,O),te=FE(g),re=te.bindingName,ye=te.instruction,pt=te.isAttribute,xt=e.calcPossibleSecurityContexts(o,re,pt).filter(function(Br){return Br!==tt.NONE}),Ce=null;xt.length&&(Ce=2===xt.length&&xt.indexOf(tt.URL)>-1&&xt.indexOf(tt.RESOURCE_URL)>-1?dr(X.sanitizeUrlOrResourceUrl):Kp(xt[0],pt));var st=[me(re),H.currValExpr];Ce&&st.push(Ce),G.push.apply(G,(0,$t.Z)(H.stmts)),ye===X.hostProperty?ht.push(st):ye===X.attribute?Re.push(st):ye===X.syntheticHostProperty?ut.push(st):B.push({reference:ye,paramsOrFn:st,span:null})}for(var Lt=0,Hn=ht;Lt<Hn.length;Lt++){var er=Hn[Lt];B.push({reference:X.hostProperty,paramsOrFn:er,span:null})}for(var Zn=0,Cn=Re;Zn<Cn.length;Zn++){var ma=Cn[Zn];B.push({reference:X.attribute,paramsOrFn:ma,span:null})}for(var Tr=0,zr=ut;Tr<zr.length;Tr++){var Wn=zr[Tr];B.push({reference:X.syntheticHostProperty,paramsOrFn:Wn,span:null})}var In=function N3(t){var i,r=[],e=(0,cn.Z)(Object.getOwnPropertyNames(t));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=t[o];r.push(me(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(t.attributes);if(u.assignHostAttrs(In,s),u.hasBindings&&u.buildUpdateLevelInstructions(ft()).forEach(function(Br){var Yo,qr=(0,cn.Z)(Br.calls);try{for(qr.s();!(Yo=qr.n()).done;){var Yi=Yo.value;Me+=Math.max(Yi.allocateBindingSlots-2,0),B.push({reference:Br.reference,paramsOrFn:BE(Yi,l,F3),span:null})}}catch(Cs){qr.e(Cs)}finally{qr.f()}}),Me&&s.set("hostVars",me(Me)),C.length>0||B.length>0){var yr=a?"".concat(a,"_HostBindings"):null,kn=[];return C.length>0&&kn.push(Tf(1,Ib(C))),B.length>0&&kn.push(Tf(2,G.concat(Ib(B)))),ji([new Pn(mf,Uo),new Pn(Ll,null)],kn,Ci,null,yr)}return null}(t.host,t.typeSourceSpan,e,r,t.selector||"",t.name,i)),i.set("inputs",_v(t.inputs,!0)),i.set("outputs",_v(t.outputs)),null!==t.exportAs&&i.set("exportAs",pi(t.exportAs.map(function(a){return me(a)}))),i}function PE(t,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new So([])];o&&a.push(o),e.push(dr(X.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(dr(X.InheritDefinitionFeature)),r.fullInheritance&&e.push(dr(X.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(dr(X.NgOnChangesFeature)),e.length&&t.set("features",pi(e))}function P3(t,r,e){var i=IE(t,r,e);PE(i,t);var o=t.selector&&dn.parse(t.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(pi(s.map(function(x){return me(null!=x?x:void 0)})),!0))}var l=t.name,u=l?"".concat(l,"_Template"):null,f=t.changeDetection,h=t.template,v=new wF(r,MF.createRootScope(),0,l,null,null,u,X.namespaceHTML,t.relativeContextFilePath,t.i18nUseExternalIds),C=v.buildTemplateFunction(h.nodes,[]),B=v.getNgContentSelectors();B&&i.set("ngContentSelectors",B),i.set("decls",me(v.getConstCount())),i.set("vars",me(v.getVarCount()));var G=v.getConsts(),q=G.constExpressions,ae=G.prepareStatements;if(q.length>0){var he=pi(q);ae.length>0&&(he=ji([],[].concat((0,$t.Z)(ae),[new _o(he)]))),i.set("consts",he)}if(i.set("template",C),t.directives.length>0){var Me=RE(pi(t.directives.map(function(x){return x.type})),t.declarationListEmitMode);i.set("directives",Me)}if(t.pipes.size>0){var ft=RE(pi(Array.from(t.pipes.values())),t.declarationListEmitMode);i.set("pipes",ft)}if(null===t.encapsulation&&(t.encapsulation=jn.Emulated),t.styles&&t.styles.length){var ht=t.encapsulation==jn.Emulated?function LF(t,r,e){var i=new yP;return t.map(function(o){return i.shimCssText(o,r,e)})}(t.styles,O3,A3):t.styles,Re=ht.map(function(x){return r.getConstLiteral(me(x))});i.set("styles",pi(Re))}else t.encapsulation===jn.Emulated&&(t.encapsulation=jn.None);return t.encapsulation!==jn.Emulated&&i.set("encapsulation",me(t.encapsulation)),null!==t.animations&&i.set("data",Di([{key:"animation",value:t.animations,quoted:!1}])),null!=f&&f!==mn.Default&&i.set("changeDetection",me(f)),{expression:dr(X.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:R3(t),statements:[]}}function R3(t){var r=NE(t);return r.push(ZE(t.template.ngContentSelectors)),Nn(dr(X.ComponentDeclaration,r))}function RE(t,r){switch(r){case 0:return t;case 1:return ji([],[new _o(t)]);case 2:var e=t.prop("map").callFn([dr(X.resolveForwardRef)]);return ji([],[new _o(e)])}}function L3(t,r){var e=[FI(t,r),me(Z3(t))];return t.read&&e.push(t.read),e}function Z3(t){return(t.descendants?1:0)|(t.static?2:0)|(t.emitDistinctChangesOnly?4:0)}function xF(t){return Nn(me(t))}function LE(t){return Nn(Di(Object.keys(t).map(function(e){return{key:e,value:me(Array.isArray(t[e])?t[e][0]:t[e]),quoted:!0}})))}function ZE(t){return t.length>0?Nn(pi(t.map(function(r){return me(r)}))):Ji}function NE(t){var r=null!==t.selector?t.selector.replace(/\n/g,""):null;return[id(t.type.type,t.typeArgumentCount),null!==r?xF(r):Ji,null!==t.exportAs?ZE(t.exportAs):Ji,LE(t.inputs),LE(t.outputs),ZE(t.queries.map(function(e){return e.propertyName}))]}function B3(t){var r=NE(t);return Nn(dr(X.DirectiveDeclaration,r))}function F3(t,r){return CB(null,t,r,"b")}function BE(t,r,e){return t.params(function(i){return e(r,i).currValExpr})}function FE(t){var e,r=t.name,i=r.match(AE);return i?(r=i[1],e=X.attribute):t.isAnimation?(r=Mm(r),e=X.syntheticHostProperty):e=X.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var IF=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var U3=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ZF=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Xz;(0,j.Z)(this,t),this.jitEvaluator=r,this.FactoryTarget=ur,this.ResourceLoader=U3,this.elementSchemaRegistry=new s3}return(0,V.Z)(t,[{key:"compilePipe",value:function(e,i,o){var s=ST({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function w1(t){var r;return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),typeArgumentCount:0,pipeName:t.name,deps:null,pure:null===(r=t.pure)||void 0===r||r}}(o),s=ST(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=HI({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:YE(o.providedIn),useClass:m_(o,H3),useFactory:VE(o,bd),useValue:m_(o,j3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(__)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=HI({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,providedIn:YE(o.providedIn),useClass:m_(o,H3),useFactory:VE(o,bd),useValue:m_(o,j3),useExisting:m_(o,UE),deps:null===(a=o.deps)||void 0===a?void 0:a.map(qE)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=Hb({name:o.name,type:ko(o.type),internalType:new br(o.type),providers:new br(o.providers),imports:o.imports.map(function(l){return new br(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function k1(t){return{name:t.type.name,type:ko(t.type),internalType:new br(t.type),providers:void 0!==t.providers?new br(t.providers):null,imports:void 0!==t.imports?t.imports.map(function(r){return new br(r)}):[]}}(o),s=Hb(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=Ns({type:ko(o.type),internalType:new br(o.type),adjacentType:new br(o.type),bootstrap:o.bootstrap.map(ko),declarations:o.declarations.map(ko),imports:o.imports.map(ko),exports:o.exports.map(ko),emitInline:!0,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(ko):null,id:o.id?new br(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function wv(t){var r=new fs;return r.set("type",new br(t.type)),void 0!==t.bootstrap&&r.set("bootstrap",new br(t.bootstrap)),void 0!==t.declarations&&r.set("declarations",new br(t.declarations)),void 0!==t.imports&&r.set("imports",new br(t.imports)),void 0!==t.exports&&r.set("exports",new br(t.exports)),void 0!==t.schemas&&r.set("schemas",new br(t.schemas)),void 0!==t.id&&r.set("id",new br(t.id)),dr(X.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=W3(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=zE(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new ir,l=function I3(t,r,e){var i=IE(t,r,e);return PE(i,t),{expression:dr(X.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:B3(t),statements:[]}}(o,a,u_());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=WE(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),W3(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarationListEmitMode:0,styles:[].concat((0,$t.Z)(o.styles),(0,$t.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new br(o.animations):null,viewProviders:null!=o.viewProviders?new br(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),f="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,f,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function FF(t,r,e){var i,o,a,s,l,u,f=WE(t.template,t.type.name,e,null!==(i=t.preserveWhitespaces)&&void 0!==i&&i,t.interpolation),h=f.template,v=f.interpolation;return Object.assign(Object.assign({},zE(t,r)),{template:h,styles:null!==(o=t.styles)&&void 0!==o?o:[],directives:(null!==(a=t.components)&&void 0!==a?a:[]).concat(null!==(s=t.directives)&&void 0!==s?s:[]).map(UF),pipes:HF(t.pipes),viewProviders:void 0!==t.viewProviders?new br(t.viewProviders):null,animations:void 0!==t.animations?new br(t.animations):null,changeDetection:null!==(l=t.changeDetection)&&void 0!==l?l:mn.Default,encapsulation:null!==(u=t.encapsulation)&&void 0!==u?u:jn.Emulated,interpolation:v,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 ir,l=P3(o,a,u_(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=Wr({name:o.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:o.typeArgumentCount,deps:GE(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=Wr({name:o.type.name,type:ko(o.type),internalType:new br(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(qE):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function sP(t,r,e){var i="in ".concat(t," ").concat(r," in ").concat(e),o=new Fb("",i);return new ja(new vf(o,-1,-1,-1),new vf(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,$t.Z)(a),[new nr("$def",e,void 0,Je.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new cP(i),!0).$def}}]),t}(),H3=Object.keys({useClass:null})[0],bd=Object.keys({useFactory:null})[0],j3=Object.keys({useValue:null})[0],UE=Object.keys({useExisting:null})[0];function z3(t){return Object.assign(Object.assign({},t),{predicate:jE(t.predicate),read:t.read?new br(t.read):null,static:t.static,emitDistinctChangesOnly:t.emitDistinctChangesOnly})}function HE(t){var r,e,i,o;return{propertyName:t.propertyName,first:null!==(r=t.first)&&void 0!==r&&r,predicate:jE(t.predicate),descendants:null!==(e=t.descendants)&&void 0!==e&&e,read:t.read?new br(t.read):null,static:null!==(i=t.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=t.emitDistinctChangesOnly)||void 0===o||o}}function jE(t){return Array.isArray(t)?t:Sm(new br(t),1)}function W3(t){var r=Y3(t.inputs||[]),e=Y3(t.outputs||[]),i=t.propMetadata,o={},a={},s=function(f){i.hasOwnProperty(f)&&i[f].forEach(function(h){!function JE(t){return"Input"===t.ngMetadataName}(h)?function QE(t){return"Output"===t.ngMetadataName}(h)&&(a[f]=h.bindingPropertyName||f):o[f]=h.bindingPropertyName?[h.bindingPropertyName,f]:f})};for(var l in i)s(l);return Object.assign(Object.assign({},t),{typeArgumentCount:0,typeSourceSpan:t.typeSourceSpan,type:ko(t.type),internalType:new br(t.type),deps:null,host:jF(t.propMetadata,t.typeSourceSpan,t.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:t.queries.map(z3),providers:null!=t.providers?new br(t.providers):null,viewQueries:t.viewQueries.map(z3),fullInheritance:!1})}function zE(t,r){var e,i,o,a,s,l,u,f;return{name:t.type.name,type:ko(t.type),typeSourceSpan:r,internalType:new br(t.type),selector:null!==(e=t.selector)&&void 0!==e?e:null,inputs:null!==(i=t.inputs)&&void 0!==i?i:{},outputs:null!==(o=t.outputs)&&void 0!==o?o:{},host:NF(t.host),queries:(null!==(a=t.queries)&&void 0!==a?a:[]).map(HE),viewQueries:(null!==(s=t.viewQueries)&&void 0!==s?s:[]).map(HE),providers:void 0!==t.providers?new br(t.providers):null,exportAs:null!==(l=t.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=t.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(f=t.usesOnChanges)&&void 0!==f&&f},deps:null,typeArgumentCount:0,fullInheritance:!1}}function NF(){var r,e,i,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:BF(null!==(r=t.attributes)&&void 0!==r?r:{}),listeners:null!==(e=t.listeners)&&void 0!==e?e:{},properties:null!==(i=t.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:t.classAttribute,styleAttr:t.styleAttribute}}}function BF(t){for(var r={},e=0,i=Object.keys(t);e<i.length;e++){var o=i[e];r[o]=new br(t[o])}return r}function UF(t){var r,e,i;return{selector:t.selector,type:new br(t.type),inputs:null!==(r=t.inputs)&&void 0!==r?r:[],outputs:null!==(e=t.outputs)&&void 0!==e?e:[],exportAs:null!==(i=t.exportAs)&&void 0!==i?i:null}}function HF(t){var r=new Map;if(void 0===t)return r;for(var e=0,i=Object.keys(t);e<i.length;e++){var o=i[e],a=t[o];r.set(o,new br(a))}return r}function WE(t,r,e,i,o){var a=o?mT.fromArray(o):su,s=function b1(t,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 QP).parse(t,r,Object.assign(Object.assign({leadingTriviaChars:DE},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var f={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(f.commentNodes=[]),f}var h=u.rootNodes,v=new hF(i,!o,a),C=v.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var B={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(B.commentNodes=[]),B}h=C.rootNodes,o||(h=_c(new sE,h),v.hasI18nMeta&&(h=_c(new hF(i,!1),h)));var G=TE(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=G.nodes,ae=G.errors,he=G.styleUrls,Ye=G.styles,Me=G.ngContentSelectors,Fe=G.commentNodes;ae.push.apply(ae,(0,$t.Z)(u.errors).concat((0,$t.Z)(C.errors)));var ft={interpolationConfig:i,preserveWhitespaces:o,errors:ae.length>0?ae:null,nodes:q,styleUrls:he,styles:Ye,ngContentSelectors:Me};return e.collectCommentNodes&&(ft.commentNodes=Fe),ft}(t,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 m_(t,r){if(t.hasOwnProperty(r))return Sm(new br(t[r]),0)}function VE(t,r){if(t.hasOwnProperty(r))return new br(t[r])}function YE(t){return Sm("function"==typeof t?new br(t):new $a(null!=t?t:null),0)}function GE(t){return null==t?null:t.map(__)}function __(t){var r=null!=t.attribute,e=null===t.token?null:new br(t.token);return KE(r?new br(t.attribute):e,r,t.host,t.optional,t.self,t.skipSelf)}function qE(t){var r,e,i,o,a,s=null!==(r=t.attribute)&&void 0!==r&&r;return KE(null===t.token?null:new br(t.token),s,null!==(e=t.host)&&void 0!==e&&e,null!==(i=t.optional)&&void 0!==i&&i,null!==(o=t.self)&&void 0!==o&&o,null!==(a=t.skipSelf)&&void 0!==a&&a)}function KE(t,r,e,i,o,a){return{token:t,attributeNameType:r?me("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function jF(t,r,e){var i=function PF(t){for(var r={},e={},i={},o={},a=0,s=Object.keys(t);a<s.length;a++){var l=s[a],u=t[l],f=l.match(IF);if(null===f)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?me(u):u}else if(null!=f[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[f[1]]=u}else if(null!=f[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[f[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function RF(t,r){var e=u_();return e.createDirectiveHostEventAsts(t.listeners,r),e.createBoundHostProperties(t.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){t.hasOwnProperty(u)&&t[u].forEach(function(f){!function Bv(t){return"HostBinding"===t.ngMetadataName}(f)?function V3(t){return"HostListener"===t.ngMetadataName}(f)&&(i.listeners[f.eventName||u]="".concat(u,"(").concat((f.args||[]).join(","),")")):i.properties[f.hostPropertyName||u]=function Ip(t,r){var e=au(r,!1,!1);return e!==r?"".concat(t,"[").concat(e,"]"):"".concat(t,".").concat(r)}("this",u)})};for(var s in t)a(s);return i}function Y3(t){return t.reduce(function(r,e){var i=e.split(",").map(function(l){return l.trim()}),o=(0,Ut.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new cr("13.3.11");var tM;!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(tM||(tM={}));var X3=function(){function t(){(0,j.Z)(this,t),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,V.Z)(t,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return wn.PARSABLE_DATA}}]),t}();new X3;var aM;!function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(aM||(aM={}));!function XE(t){(t.ng||(t.ng={})).\u0275compilerFacade=new ZF}(Hi);var n=m(5e3),Ct=m(9808),Zi=m(925),Un=m(3191),Ai=m(5664),qn=m(8929),Io=m(4096),M4=m(1715),S4=m(352),fo=m(7451),To=m(6787),Yr=m(7625),ua=m(1059),mr=m(4850),to=m(2986),hs=m(2994),xo=m(7545),ka=m(9071),Es=m(226);function fM(t,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?t.setProperty(i,o,(null==e?void 0:e.has(i))?"important":""):t.removeProperty(i)}return t}function wd(t,r){var e=r?"":"none";fM(t.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 p6(t,r,e){fM(t.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Xp(t,r){return r&&"none"!=r?t+" "+r:t}function Uv(t){var r=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*r}function h6(t,r){return t.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function S1(t){var r=t.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 pM(t,r,e){var i=t.top,o=t.bottom,a=t.left,s=t.right;return e>=i&&e<=o&&r>=a&&r<=s}function Hv(t,r,e){t.top+=r,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function hM(t,r,e,i){var o=t.top,a=t.right,s=t.bottom,l=t.left,h=t.width*r,v=t.height*r;return i>o-v&&i<s+v&&e>l-h&&e<a+h}var mM=function(){function t(r){(0,j.Z)(this,t),this._document=r,this.positions=new Map}return(0,V.Z)(t,[{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:S1(o)})})}},{key:"handleScroll",value:function(e){var i=(0,Zi.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 f=a.top-s,h=a.left-l;return this.positions.forEach(function(v,C){v.clientRect&&i!==C&&i.contains(C)&&Hv(v.clientRect,f,h)}),a.top=s,a.left=l,{top:f,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),t}();function _M(t){var r=t.cloneNode(!0),e=r.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?_6(t,r):("input"===i||"select"===i||"textarea"===i)&&m6(t,r),gM("canvas",t,r,_6),gM("input, textarea, select",t,r,m6),r}function gM(t,r,e,i){var o=r.querySelectorAll(t);if(o.length)for(var a=e.querySelectorAll(t),s=0;s<o.length;s++)i(o[s],a[s])}var x4=0;function m6(t,r){"file"!==r.type&&(r.value=t.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(x4++))}function _6(t,r){var e=r.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch(i){}}var g_=(0,Zi.i$)({passive:!0}),x1=(0,Zi.i$)({passive:!1}),vM=new Set(["position"]),D1=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),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 qn.xQ,this._pointerMoveSubscription=Io.w.EMPTY,this._pointerUpSubscription=Io.w.EMPTY,this._scrollSubscription=Io.w.EMPTY,this._resizeSubscription=Io.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 qn.xQ,this.started=new qn.xQ,this.released=new qn.xQ,this.ended=new qn.xQ,this.entered=new qn.xQ,this.exited=new qn.xQ,this.dropped=new qn.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var f=l._getTargetHandle(u);f&&!l._disabledHandles.has(f)&&!l.disabled&&l._initializeDragSequence(f,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var f=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(f);if(l._hasMoved=!0,l._lastKnownPointerPosition=f,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,f);else{var ae=l._activeTransform;ae.x=q.x-l._pickupPositionOnPage.x+l._passiveTransform.x,ae.y=q.y-l._pickupPositionOnPage.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(f.x-l._pickupPositionOnPage.x)+Math.abs(f.y-l._pickupPositionOnPage.y)>=l._config.dragStartThreshold){var B=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),G=l._dropContainer;if(!B)return void l._endDragSequence(u);(!G||!G.isDragging()&&!G.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 f=l._getTargetHandle(u);f&&!l._disabledHandles.has(f)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new mM(i),s.registerDragItem(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Un.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return wd(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,Un.fI)(a)}),this._handles.forEach(function(a){return wd(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,Un.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,x1),o.addEventListener("touchstart",i._pointerDown,g_),o.addEventListener("dragstart",i._nativeDragStart,x1)}),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,Un.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),wd(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),wd(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}),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})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){v_(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(),p6(o,!1,vM),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this}),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=v_(i),l=!s&&0!==i.button,u=this._rootElement,f=(0,Zi.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),v=s?(0,Ai.yG)(i):(0,Ai.X6)(i);if(f&&f.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||v)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),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=S1(this._boundaryElement));var B=this._previewTemplate;this._pickupPositionInElement=B&&B.template&&!B.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,i);var G=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:G.x,y:G.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;p6(this._rootElement,!0,vM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),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}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s),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,f=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(f=this._initialContainer),f&&f!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=f,o._dropContainer.enter(o,a,s,f===o._initialContainer&&f.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:f,currentIndex:f.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),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._rootElement.getBoundingClientRect():null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=g6(l,this._document),this._previewRef=l,e.matchSize?y_(a,s):a.style.transform=jv(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var u=this._rootElement;y_(a=_M(u),u.getBoundingClientRect()),this._initialTransform&&(a.style.transform=this._initialTransform)}return fM(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},vM),wd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(f){return a.classList.add(f)}):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 $s(t){var r=getComputedStyle(t),e=h6(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=h6(r,"transition-duration"),s=h6(r,"transition-delay");return Uv(a[o])+Uv(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(f){var h;(!f||(0,Zi.sA)(f)===e._preview&&"transform"===f.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=g6(this._placeholderRef,this._document)):o=_M(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i){var o=this._rootElement.getBoundingClientRect(),a=e===this._rootElement?null:e,s=a?a.getBoundingClientRect():o,l=v_(i)?i.targetTouches[0]:i,u=this._getViewportScrollPosition(),f=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-o.left+f,y:s.top-o.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=v_(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):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,f=l.y,h=this._boundaryRect,v=this._getPreviewRect(),C=v.width,B=v.height,G=h.top+f,q=h.bottom-(B-f);a=yM(a,h.left+u,h.right-(C-u)),s=yM(s,G,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,wd(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,x1),e.removeEventListener("touchstart",this._pointerDown,g_),e.removeEventListener("dragstart",this._nativeDragStart,x1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=jv(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Xp(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=(null===(o=this._previewTemplate)||void 0===o?void 0:o.template)?void 0:this._initialTransform,s=jv(e,i);this._preview.style.transform=Xp(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._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(!(0===a.width&&0===a.height||0===s.width&&0===s.height)){var l=a.left-s.left,u=s.right-a.right,f=a.top-s.top,h=s.bottom-a.bottom;a.width>s.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,a.height>s.height?(f>0&&(o+=f),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:v_(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Zi.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Hv(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,Zi.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,Un.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),t}();function jv(t,r){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(r),"px, 0)")}function yM(t,r,e){return Math.max(r,Math.min(e,t))}function v_(t){return"t"===t.type[0]}function g6(t,r){var e=t.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 y_(t,r){t.style.width="".concat(r.width,"px"),t.style.height="".concat(r.height,"px"),t.style.transform=jv(r.left,r.top)}function Wv(t,r){return Math.max(0,Math.min(r,t))}var v6=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),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 qn.xQ,this.entered=new qn.xQ,this.exited=new qn.xQ,this.dropped=new qn.xQ,this.sorted=new qn.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Io.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new qn.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,M4.F)(0,S4.Z).pipe((0,Yr.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,Un.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new mM(i)}return(0,V.Z)(t,[{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){var s;this._draggingStarted(),null==a?-1===(s=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(s=this._getItemIndexFromPointerPosition(e,i,o)):s=a;var l=this._activeDraggables,u=l.indexOf(e),f=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 v=h.getRootElement();v.parentElement.insertBefore(f,v),l.splice(s,0,e)}else(0,Un.fI)(this.element).appendChild(f),l.push(e);f.style.transform="",this._cacheItemPositions(),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){this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u})}},{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._cacheItems());return this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,Un.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,$t.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===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&&hM(this._clientRect,.05,i,o)){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(!(-1===l&&s.length>0)){var u="horizontal"===this._orientation,f=s.findIndex(function(he){return he.drag===e}),h=s[l],v=s[f].clientRect,C=h.clientRect,B=f>l?1:-1,G=this._getItemOffsetPx(v,C,B),q=this._getSiblingOffsetPx(f,s,B),ae=s.slice();(function zv(t,r,e){var i=Wv(r,t.length-1),o=Wv(e,t.length-1);if(i!==o){for(var a=t[i],s=o<i?-1:1,l=i;l!==o;l+=s)t[l]=t[l+s];t[o]=a}})(s,f,l),this.sorted.next({previousIndex:f,currentIndex:l,container:this,item:e}),s.forEach(function(he,Ye){if(ae[Ye]!==he){var Me=he.drag===e,Fe=Me?G:q,ft=Me?e.getPlaceholderElement():he.drag.getRootElement();he.offset+=Fe,u?(ft.style.transform=Xp("translate3d(".concat(Math.round(he.offset),"px, 0, 0)"),he.initialTransform),Hv(he.clientRect,0,Fe)):(ft.style.transform=Xp("translate3d(0, ".concat(Math.round(he.offset),"px, 0)"),he.initialTransform),Hv(he.clientRect,Fe,0))}}),this._previousSwap.overlaps=pM(C,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y}}}},{key:"_startScrollingIfNecessary",value:function(e,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,l=0;if(this._parentPositions.positions.forEach(function(C,B){if(B!==o._document&&C.clientRect&&!a&&hM(C.clientRect,.05,e,i)){var G=function A4(t,r,e,i){var o=y6(r,i),a=wM(r,e),s=0,l=0;if(o){var u=t.scrollTop;1===o?u>0&&(s=1):t.scrollHeight-u>t.clientHeight&&(s=2)}if(a){var f=t.scrollLeft;1===a?f>0&&(l=1):t.scrollWidth-f>t.clientWidth&&(l=2)}return[s,l]}(B,C.clientRect,e,i),q=(0,Ut.Z)(G,2);s=q[0],l=q[1],(s||l)&&(a=B)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),f=u.width,h=u.height,v={width:f,height:h,top:0,right:f,bottom:h,left:0};s=y6(v,i),l=wM(v,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,Un.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,Un.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{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:S1(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,Un.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(o){var a,s=o.getRootElement();if(s){var l=null===(a=e._itemPositions.find(function(u){return u.drag===o}))||void 0===a?void 0:a.initialTransform;s.style.transform=l||""}}),this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{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 f=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[f]-s[h]:u+=s[f]-l.clientRect[h]}return u}},{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:"_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(f){var h=f.drag,v=f.clientRect;if(h===e)return!1;if(a){var C=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&C===s._previousSwap.delta)return!1}return l?i>=Math.floor(v.left)&&i<Math.floor(v.right):o>=Math.floor(v.top)&&o<Math.floor(v.bottom)});return-1!==u&&this.sortPredicate(u,e,this)?u:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&pM(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||!pM(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Un.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._itemPositions.forEach(function(a){Hv(a.clientRect,o.top,o.left)}),e._itemPositions.forEach(function(a){var s=a.drag;e._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,Zi.kV)((0,Un.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._activeDraggables.filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),t}();function y6(t,r){var e=t.top,i=t.bottom,a=.05*t.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function wM(t,r){var e=t.left,i=t.right,a=.05*t.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var A1=(0,Zi.i$)({passive:!1,capture:!0}),Vv=function(){function t(r,e){var i=this;(0,j.Z)(this,t),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 qn.xQ,this.pointerUp=new qn.xQ,this.scroll=new qn.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,V.Z)(t,[{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,A1)})}},{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,A1)}},{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:A1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:A1}),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 fo.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(f){i._activeDragInstances.length&&a.next(f)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),To.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()}}]),t}();Vv.\u0275fac=function(r){return new(r||Vv)(n.LFG(n.R0b),n.LFG(Ct.K0))},Vv.\u0275prov=n.Yz7({token:Vv,factory:Vv.\u0275fac,providedIn:"root"});var WW={dragStartThreshold:5,pointerDirectionChangeThreshold:5},$p=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,V.Z)(t,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WW;return new D1(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new v6(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}();$p.\u0275fac=function(r){return new(r||$p)(n.LFG(Ct.K0),n.LFG(n.R0b),n.LFG(ka.rL),n.LFG(Vv))},$p.\u0275prov=n.Yz7({token:$p,factory:$p.\u0275fac,providedIn:"root"});var b6=new n.OlP("CDK_DRAG_PARENT"),O1=new n.OlP("CdkDropListGroup"),Sf=function(){function t(){(0,j.Z)(this,t),this._items=new Set,this._disabled=!1}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Un.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),t}();Sf.\u0275fac=function(r){return new(r||Sf)},Sf.\u0275dir=n.lG2({type:Sf,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[n._Bn([{provide:O1,useExisting:Sf}])]});var C6=new n.OlP("CDK_DRAG_CONFIG");var w6=0,b_=new n.OlP("CdkDropList"),C_=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new qn.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(w6++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.sorted=new n.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(f,h){return u.enterPredicate(f.data,h.data)},this._dropListRef.sortPredicate=function(f,h,v){return u.sortPredicate(f,h.data,v.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),s&&s._items.add(this)}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Un.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=t._dropLists.indexOf(this);e>-1&&t._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,ua.O)(this._dir.value),(0,Yr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Un.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?t._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,Un.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Un.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Un.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}),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}))}}]),t}();C_._dropLists=[],C_.\u0275fac=function(r){return new(r||C_)(n.Y36(n.SBq),n.Y36($p),n.Y36(n.sBO),n.Y36(ka.mF),n.Y36(Es.Is,8),n.Y36(O1,12),n.Y36(C6,8))},C_.\u0275dir=n.lG2({type:C_,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(n.uIk("id",e.id),n.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:[n._Bn([{provide:O1,useValue:void 0},{provide:b_,useExisting:C_}])]});var kM=new n.OlP("CdkDragHandle"),Yv=function(){function t(r,e){(0,j.Z)(this,t),this.element=r,this._stateChanges=new qn.xQ,this._disabled=!1,this._parentDrag=e}return(0,V.Z)(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Un.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),t}();Yv.\u0275fac=function(r){return new(r||Yv)(n.Y36(n.SBq),n.Y36(b6,12))},Yv.\u0275dir=n.lG2({type:Yv,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[n._Bn([{provide:kM,useExisting:Yv}])]});var k6=new n.OlP("CdkDragPlaceholder"),Gv=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});Gv.\u0275fac=function(r){return new(r||Gv)(n.Y36(n.Rgc))},Gv.\u0275dir=n.lG2({type:Gv,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[n._Bn([{provide:k6,useExisting:Gv}])]});var TM=new n.OlP("CdkDragPreview"),qv=function(){function t(r){(0,j.Z)(this,t),this.templateRef=r,this._matchSize=!1}return(0,V.Z)(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Un.Ig)(e)}}]),t}();qv.\u0275fac=function(r){return new(r||qv)(n.Y36(n.Rgc))},qv.\u0275dir=n.lG2({type:qv,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[n._Bn([{provide:TM,useExisting:qv}])]});var Bu=function(){function t(r,e,i,o,a,s,l,u,f,h,v){var C=this;(0,j.Z)(this,t),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=f,this._selfHandle=h,this._parentDrag=v,this._destroyed=new qn.xQ,this.started=new n.vpe,this.released=new n.vpe,this.ended=new n.vpe,this.entered=new n.vpe,this.exited=new n.vpe,this.dropped=new n.vpe,this.moved=new fo.y(function(B){var G=C._dragRef.moved.pipe((0,mr.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(B);return function(){G.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,t._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,V.Z)(t,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Un.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:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,to.q)(1),(0,Yr.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=t._dragInstances.indexOf(this);i>-1&&t._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,Un.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,Un.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,to.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=t._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(){i.started.emit({source:i}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){i.released.emit({source:i})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint}),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})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,f=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),f&&(this.rootElementSelector=f),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,ua.O)(this._handles),(0,hs.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,xo.w)(function(i){return To.T.apply(void 0,(0,$t.Z)(i.map(function(o){return o._stateChanges.pipe((0,ua.O)(o))})))}),(0,Yr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),t}();Bu._dragInstances=[],Bu.\u0275fac=function(r){return new(r||Bu)(n.Y36(n.SBq),n.Y36(b_,12),n.Y36(Ct.K0),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(C6,8),n.Y36(Es.Is,8),n.Y36($p),n.Y36(n.sBO),n.Y36(kM,10),n.Y36(b6,12))},Bu.\u0275dir=n.lG2({type:Bu,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,TM,5),n.Suo(i,k6,5),n.Suo(i,kM,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._previewTemplate=o.first),n.iGM(o=n.CRH())&&(e._placeholderTemplate=o.first),n.iGM(o=n.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:b6,useExisting:Bu}]),n.TTD]});var w_=(0,V.Z)(function t(){(0,j.Z)(this,t)});w_.\u0275fac=function(r){return new(r||w_)},w_.\u0275mod=n.oAB({type:w_}),w_.\u0275inj=n.cJS({providers:[$p],imports:[ka.ZD]});var Ao=m(1314),po=m(449),el=m(3527),go=m(591),I1=m(4715),pr=m(1086),EM=[[["caption"]],[["colgroup"],["col"]]];function T6(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function E6(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}function MM(t){return function(r){(0,yt.Z)(i,r);var e=(0,mt.Z)(i);function i(){var o;(0,j.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,V.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,Un.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}(t)}var k_=new n.OlP("CDK_TABLE"),P4=new n.OlP("text-column-options"),fu=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});fu.\u0275fac=function(r){return new(r||fu)(n.Y36(n.Rgc))},fu.\u0275dir=n.lG2({type:fu,selectors:[["","cdkCellDef",""]]});var Mc=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});Mc.\u0275fac=function(r){return new(r||Mc)(n.Y36(n.Rgc))},Mc.\u0275dir=n.lG2({type:Mc,selectors:[["","cdkHeaderCellDef",""]]});var kd=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});kd.\u0275fac=function(r){return new(r||kd)(n.Y36(n.Rgc))},kd.\u0275dir=n.lG2({type:kd,selectors:[["","cdkFooterCellDef",""]]});var R4=(0,V.Z)(function t(){(0,j.Z)(this,t)}),wl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,V.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,Un.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}(MM(R4));wl.\u0275fac=function(r){return new(r||wl)(n.Y36(k_,8))},wl.\u0275dir=n.lG2({type:wl,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,fu,5),n.Suo(i,Mc,5),n.Suo(i,kd,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.cell=o.first),n.iGM(o=n.CRH())&&(e.headerCell=o.first),n.iGM(o=n.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:wl}]),n.qOj]});var SM=(0,V.Z)(function t(r,e){var i;(0,j.Z)(this,t),(i=e.nativeElement.classList).add.apply(i,(0,$t.Z)(r._columnCssClassName))}),eh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){return(0,j.Z)(this,e),r.call(this,i,o)}return(0,V.Z)(e)}(SM);eh.\u0275fac=function(r){return new(r||eh)(n.Y36(wl),n.Y36(n.SBq))},eh.\u0275dir=n.lG2({type:eh,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.qOj]});var T_=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s;if((0,j.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,V.Z)(e)}(SM);T_.\u0275fac=function(r){return new(r||T_)(n.Y36(wl),n.Y36(n.SBq))},T_.\u0275dir=n.lG2({type:T_,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.qOj]});var th=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a,s;if((0,j.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,V.Z)(e)}(SM);th.\u0275fac=function(r){return new(r||th)(n.Y36(wl),n.Y36(n.SBq))},th.\u0275dir=n.lG2({type:th,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.qOj]});var M6=(0,V.Z)(function t(){(0,j.Z)(this,t),this.tasks=[],this.endTasks=[]}),P1=new n.OlP("_COALESCED_STYLE_SCHEDULER"),xf=function(){function t(r){(0,j.Z)(this,t),this._ngZone=r,this._currentSchedule=null,this._destroyed=new qn.xQ}return(0,V.Z)(t,[{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 M6,this._getScheduleObservable().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new M6;var a,o=(0,cn.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,cn.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,el.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,to.q)(1))}}]),t}();xf.\u0275fac=function(r){return new(r||xf)(n.LFG(n.R0b))},xf.\u0275prov=n.Yz7({token:xf,factory:xf.\u0275fac});var nh=function(){function t(r,e){(0,j.Z)(this,t),this.template=r,this._differs=e}return(0,V.Z)(t,[{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 Td?e.headerCell.template:this instanceof Fu?e.footerCell.template:e.cell.template}}]),t}();nh.\u0275fac=function(r){return new(r||nh)(n.Y36(n.Rgc),n.Y36(n.ZZ4))},nh.\u0275dir=n.lG2({type:nh,features:[n.TTD]});var S6=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(nh),Td=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(MM(S6));Td.\u0275fac=function(r){return new(r||Td)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Td.\u0275dir=n.lG2({type:Td,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.qOj,n.TTD]});var N4=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(nh),Fu=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(o){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(MM(N4));Fu.\u0275fac=function(r){return new(r||Fu)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Fu.\u0275dir=n.lG2({type:Fu,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.qOj,n.TTD]});var Ed=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,V.Z)(e)}(nh);Ed.\u0275fac=function(r){return new(r||Ed)(n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(k_,8))},Ed.\u0275dir=n.lG2({type:Ed,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.qOj]});var Us=function(){function t(r){(0,j.Z)(this,t),this._viewContainer=r,t.mostRecentCellOutlet=this}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}]),t}();Us.mostRecentCellOutlet=null,Us.\u0275fac=function(r){return new(r||Us)(n.Y36(n.s_b))},Us.\u0275dir=n.lG2({type:Us,selectors:[["","cdkCellOutlet",""]]});var rh=(0,V.Z)(function t(){(0,j.Z)(this,t)});rh.\u0275fac=function(r){return new(r||rh)},rh.\u0275cmp=n.Xpm({type:rh,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&&n.GkF(0,0)},directives:[Us],encapsulation:2});var ih=(0,V.Z)(function t(){(0,j.Z)(this,t)});ih.\u0275fac=function(r){return new(r||ih)},ih.\u0275cmp=n.Xpm({type:ih,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&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Md=(0,V.Z)(function t(){(0,j.Z)(this,t)});Md.\u0275fac=function(r){return new(r||Md)},Md.\u0275cmp=n.Xpm({type:Md,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Df=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r,this._contentClassName="cdk-no-data-row"});Df.\u0275fac=function(r){return new(r||Df)(n.Y36(n.Rgc))},Df.\u0275dir=n.lG2({type:Df,selectors:[["ng-template","cdkNoDataRow",""]]});var DM=["top","bottom","left","right"],B4=function(){function t(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,j.Z)(this,t),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,V.Z)(t,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,cn.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 f=0;f<u.children.length;f++)a.push(u.children[f])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){var v,h=(0,cn.Z)(a);try{for(h.s();!(v=h.n()).done;){var C=v.value;o._removeStickyStyle(C,i)}}catch(B){h.e(B)}finally{h.f()}})}},{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(G){return G})||o.some(function(G){return G}))){var l=e[0],u=l.children.length,f=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(f,i),v=this._getStickyEndColumnPositions(f,o),C=i.lastIndexOf(!0),B=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Ye,G="rtl"===a.direction,q=G?"right":"left",ae=G?"left":"right",he=(0,cn.Z)(e);try{for(he.s();!(Ye=he.n()).done;)for(var Me=Ye.value,Fe=0;Fe<u;Fe++){var ft=Me.children[Fe];i[Fe]&&a._addStickyStyle(ft,q,h[Fe],Fe===C),o[Fe]&&a._addStickyStyle(ft,ae,v[Fe],Fe===B)}}catch(ht){he.e(ht)}finally{he.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===C?[]:f.slice(0,C+1).map(function(ht,Re){return i[Re]?ht:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===B?[]:f.slice(B).map(function(ht,Re){return o[Re+B]?ht: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=[],f=[],h=[],v=0,C=0;v<s.length;v++)if(l[v]){u[v]=C;var B=s[v];h[v]=this._isNativeHtmlTable?Array.from(B.children):[B];var G=B.getBoundingClientRect().height;C+=G,f[v]=G}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var ae,he,Ye=0;Ye<s.length;Ye++)if(l[Ye]){var ht,Me=u[Ye],Fe=Ye===q,ft=(0,cn.Z)(h[Ye]);try{for(ft.s();!(ht=ft.n()).done;){var Re=ht.value;a._addStickyStyle(Re,o,Me,Fe)}}catch(ut){ft.e(ut)}finally{ft.f()}}"top"===o?null===(ae=a._positionListener)||void 0===ae||ae.stickyHeaderRowsUpdated({sizes:f,offsets:u,elements:h}):null===(he=a._positionListener)||void 0===he||he.stickyFooterRowsUpdated({sizes:f,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,cn.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()}DM.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){var s,i={top:100,bottom:10,left:1,right:1},o=0,a=(0,cn.Z)(DM);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.style[l]&&(o+=i[l])}}catch(u){a.e(u)}finally{a.f()}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}}]),t}();var Af=new n.OlP("CDK_SPL"),Jv=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jv.\u0275fac=function(r){return new(r||Jv)},Jv.\u0275dir=n.lG2({type:Jv,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var oh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});oh.\u0275fac=function(r){return new(r||oh)(n.Y36(n.s_b),n.Y36(n.SBq))},oh.\u0275dir=n.lG2({type:oh,selectors:[["","rowOutlet",""]]});var Sd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Sd.\u0275fac=function(r){return new(r||Sd)(n.Y36(n.s_b),n.Y36(n.SBq))},Sd.\u0275dir=n.lG2({type:Sd,selectors:[["","headerRowOutlet",""]]});var xd=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});xd.\u0275fac=function(r){return new(r||xd)(n.Y36(n.s_b),n.Y36(n.SBq))},xd.\u0275dir=n.lG2({type:xd,selectors:[["","footerRowOutlet",""]]});var Of=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this.elementRef=e});Of.\u0275fac=function(r){return new(r||Of)(n.Y36(n.s_b),n.Y36(n.SBq))},Of.\u0275dir=n.lG2({type:Of,selectors:[["","noDataRowOutlet",""]]});n.a5r;var Sc=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){(0,j.Z)(this,t),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=f,this._viewportRuler=h,this._stickyPositioningListener=v,this._ngZone=C,this._onDestroy=new qn.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 n.vpe,this.viewChange=new go.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,V.Z)(t,[{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,Un.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,Un.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,Yr.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,po.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&&n.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,to.q)(1),(0,Yr.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,$t.Z)(i),(0,$t.Z)(o),(0,$t.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],f=this._cachedRenderRowsMap.get(u.data);f.has(u.rowDef)?f.get(u.rowDef).push(u):f.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(),L1(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=L1(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=L1(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=L1(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,po.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,po.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,I1.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,pr.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Yr.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,cn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Us.mostRecentCellOutlet&&Us.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 f,u=(0,cn.Z)(s.outlets);try{for(u.s();!(f=u.n()).done;){var h=f.value;l.appendChild(h.elementRef.nativeElement)}}catch(v){u.e(v)}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 B4(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,pr.of)()).pipe((0,Yr.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}}}}]),t}();function L1(t,r){return t.concat(Array.from(r))}Sc.\u0275fac=function(r){return new(r||Sc)(n.Y36(n.ZZ4),n.Y36(n.sBO),n.Y36(n.SBq),n.$8M("role"),n.Y36(Es.Is,8),n.Y36(Ct.K0),n.Y36(Zi.t4),n.Y36(po.k),n.Y36(P1),n.Y36(ka.rL),n.Y36(Af,12),n.Y36(n.R0b,8))},Sc.\u0275cmp=n.Xpm({type:Sc,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Df,5),n.Suo(i,wl,5),n.Suo(i,Ed,5),n.Suo(i,Td,5),n.Suo(i,Fu,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._noDataRow=o.first),n.iGM(o=n.CRH())&&(e._contentColumnDefs=o),n.iGM(o=n.CRH())&&(e._contentRowDefs=o),n.iGM(o=n.CRH())&&(e._contentHeaderRowDefs=o),n.iGM(o=n.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(n.Gf(oh,7),n.Gf(Sd,7),n.Gf(xd,7),n.Gf(Of,7)),2&r)&&(n.iGM(i=n.CRH())&&(e._rowOutlet=i.first),n.iGM(i=n.CRH())&&(e._headerRowOutlet=i.first),n.iGM(i=n.CRH())&&(e._footerRowOutlet=i.first),n.iGM(i=n.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n._Bn([{provide:k_,useExisting:Sc},{provide:po.k,useClass:po.yy},{provide:P1,useClass:xf},{provide:Af,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(n.F$t(EM),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Sd,oh,Of,xd],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var If=function(){function t(r,e){(0,j.Z)(this,t),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,V.Z)(t,[{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)}}]),t}();If.\u0275fac=function(r){return new(r||If)(n.Y36(Sc,8),n.Y36(P4,8))},If.\u0275cmp=n.Xpm({type:If,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(wl,7),n.Gf(fu,7),n.Gf(Mc,7)),2&r)&&(n.iGM(i=n.CRH())&&(e.columnDef=i.first),n.iGM(i=n.CRH())&&(e.cell=i.first),n.iGM(i=n.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&&(n.ynx(0,0),n.YNc(1,T6,2,3,"th",1),n.YNc(2,E6,2,3,"td",2),n.BQk())},directives:[wl,Mc,eh,fu,th],encapsulation:2});var Uu=(0,V.Z)(function t(){(0,j.Z)(this,t)});Uu.\u0275fac=function(r){return new(r||Uu)},Uu.\u0275mod=n.oAB({type:Uu}),Uu.\u0275inj=n.cJS({imports:[[ka.Cl]]});var Hu=m(520),ne=m(3075),ln=m(508),Gr=m(1159),Pf=m(3753),Ei=m(9664),D6=m(7604),OM=m(5778),A6=m(13),rn=m(1777),Ta=m(6360),Qv=["*"],E_=["content"];function QW(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){return n.CHM(e),n.oxw()._onBackdropClicked()}),n.qZA()}if(2&t){var i=n.oxw();n.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function O6(t,r){1&t&&(n.TgZ(0,"mat-drawer-content"),n.Hsn(1,2),n.qZA())}var H4=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function I6(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.NdJ("click",function(){return n.CHM(e),n.oxw()._onBackdropClicked()}),n.qZA()}if(2&t){var i=n.oxw();n.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function $W(t,r){1&t&&(n.TgZ(0,"mat-sidenav-content"),n.Hsn(1,2),n.qZA())}var P6=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],PM={transformDrawer:(0,rn.X$)("transform",[(0,rn.SB)("open, open-instant",(0,rn.oB)({transform:"none",visibility:"visible"})),(0,rn.SB)("void",(0,rn.oB)({"box-shadow":"none",visibility:"hidden"})),(0,rn.eR)("void => open-instant",(0,rn.jt)("0ms")),(0,rn.eR)("void <=> open, open-instant => void",(0,rn.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var z4=new n.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function W4(){return!1}}),RM=new n.OlP("MAT_DRAWER_CONTAINER");var Dd=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ka.PQ);Dd.\u0275fac=function(r){return new(r||Dd)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return ah})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},Dd.\u0275cmp=n.Xpm({type:Dd,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:Dd}]),n.qOj],ngContentSelectors:Qv,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var M_=function(){function t(r,e,i,o,a,s,l,u){var f=this;(0,j.Z)(this,t),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 qn.xQ,this._animationEnd=new qn.xQ,this._animationState="void",this.openedChange=new n.vpe(!0),this._openedStream=this.openedChange.pipe((0,Ei.h)(function(h){return h}),(0,mr.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,D6.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Ei.h)(function(h){return!h}),(0,mr.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,Ei.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,D6.h)(void 0)),this._destroyed=new qn.xQ,this.onPositionChanged=new n.vpe,this._modeChanged=new qn.xQ,this.openedChange.subscribe(function(h){h?(f._doc&&(f._elementFocusedBeforeDrawerWasOpened=f._doc.activeElement),f._takeFocus()):f._isFocusWithinDrawer()&&f._restoreFocus(f._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,Pf.R)(f._elementRef.nativeElement,"keydown").pipe((0,Ei.h)(function(h){return h.keyCode===Gr.hY&&!f.disableClose&&!(0,Gr.Vb)(h)}),(0,Yr.R)(f._destroyed)).subscribe(function(h){return f._ngZone.run(function(){f.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,OM.x)(function(h,v){return h.fromState===v.fromState&&h.toState===v.toState})).subscribe(function(h){var v=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===v||"void"===C&&0===v.indexOf("open"))&&f.openedChange.emit(f._opened)})}return(0,V.Z)(t,[{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,Un.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,Un.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Un.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,to.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)}}]),t}();M_.\u0275fac=function(r){return new(r||M_)(n.Y36(n.SBq),n.Y36(Ai.qV),n.Y36(Ai.tE),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Ai.ic),n.Y36(Ct.K0,8),n.Y36(RM,8))},M_.\u0275cmp=n.Xpm({type:M_,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(E_,5),2&r)&&(n.iGM(i=n.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&n.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(n.uIk("align",null),n.d8E("@transform",e._animationState),n.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:Qv,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var ah=function(){function t(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,j.Z)(this,t),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new n.n_E,this.backdropClick=new n.vpe,this._destroyed=new qn.xQ,this._doCheckSubject=new qn.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qn.xQ,r&&r.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,V.Z)(t,[{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,Un.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,Un.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,ua.O)(this._allDrawers),(0,Yr.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,ua.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,A6.b)(10),(0,Yr.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,Ei.h)(function(o){return o.fromState!==o.toState}),(0,Yr.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,Yr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Yr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,to.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Yr.R)((0,To.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}}]),t}();ah.\u0275fac=function(r){return new(r||ah)(n.Y36(Es.Is,8),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(z4),n.Y36(Ta.Qb,8))},ah.\u0275cmp=n.Xpm({type:ah,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Dd,5),n.Suo(i,M_,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(Dd,5),2&r)&&(n.iGM(i=n.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[n._Bn([{provide:RM,useExisting:ah}])],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&&(n.F$t(H4),n.YNc(0,QW,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,O6,2,0,"mat-drawer-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[Dd,Ct.O5],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}\n'],encapsulation:2,changeDetection:0});var sh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){return(0,j.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,V.Z)(e)}(Dd);sh.\u0275fac=function(r){return new(r||sh)(n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return Rf})),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.R0b))},sh.\u0275cmp=n.Xpm({type:sh,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&n.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[n._Bn([{provide:ka.PQ,useExisting:sh}]),n.qOj],ngContentSelectors:Qv,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},encapsulation:2,changeDetection:0});var xc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,V.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Un.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Un.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Un.su)(o)}}]),e}(M_);xc.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xc)))(e||xc)}}(),xc.\u0275cmp=n.Xpm({type:xc,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(n.uIk("align",null),n.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),n.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:[n.qOj],ngContentSelectors:Qv,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA())},directives:[ka.PQ],encapsulation:2,data:{animation:[PM.transformDrawer]},changeDetection:0});var Rf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ah);Rf.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Rf)))(e||Rf)}}(),Rf.\u0275cmp=n.Xpm({type:Rf,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,sh,5),n.Suo(i,xc,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._content=o.first),n.iGM(o=n.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[n._Bn([{provide:RM,useExisting:Rf}]),n.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&&(n.F$t(P6),n.YNc(0,I6,1,2,"div",0),n.Hsn(1),n.Hsn(2,1),n.YNc(3,$W,2,0,"mat-sidenav-content",1)),2&r&&(n.Q6J("ngIf",e.hasBackdrop),n.xp6(3),n.Q6J("ngIf",!e._content))},directives:[sh,Ct.O5],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}\n'],encapsulation:2,changeDetection:0});var lh=(0,V.Z)(function t(){(0,j.Z)(this,t)});lh.\u0275fac=function(r){return new(r||lh)},lh.\u0275mod=n.oAB({type:lh}),lh.\u0275inj=n.cJS({imports:[[Ct.ez,ln.BQ,ka.ZD],ka.ZD,ln.BQ]});var Z1=m(839),uh=m(6053),Ea=m(1709),ch=m(8117),LM=m(2821),L6=m(3906),ZM=m(519);function NM(t,r){return t=function V4(t,r){return void 0===t?void 0===r?t:r:t}(t,r),"function"==typeof t?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!t.apply(this,a)}:t?function(){return!0}:function(){return!1}}var BM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},S_=function(r){return null!=r&&"object"===(void 0===r?"undefined":BM(r))&&1===r.nodeType&&"object"===BM(r.style)&&"object"===BM(r.ownerDocument)};function Z6(t,r){if(r=Lf(r,!0),!S_(r))return-1;for(var e=0;e<t.length;e++)if(t[e]===r)return e;return-1}function Xv(t,r){return-1!==Z6(t,r)}function Dc(t,r){for(var e=0;e<r.length;e++)Xv(t,r[e])||t.push(r[e]);return r}function Y4(t){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Dc(t,e=e.map(Lf))}function N6(t){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(Lf).reduce(function(o,a){var s=Z6(t,a);return-1!==s?o.concat(t.splice(s,1)):o},[])}function Lf(t,r){if("string"==typeof t)try{return document.querySelector(t)}catch(e){throw e}if(!S_(t)&&!r)throw new TypeError(t+" is not a DOM element.");return t}function B6(t){if(t===window)return function q4(){var t={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({},t);var r={};return Object.defineProperties(r,t),r}();try{var r=t.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 "+t)}}var r,dh=void 0;"function"!=typeof Object.create?(r=function(){},dh=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}):dh=Object.create;var K4=dh,fh=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function B1(t,r){r=r||{};for(var e=K4(t),i=0;i<fh.length;i++)void 0!==r[fh[i]]&&(e[fh[i]]=r[fh[i]]);return e}function $v(t,r){console.log("data ",r),t.data=r||{},t.dispatched="mousemove"}var x_=["webkit","moz","ms","o"],ey=function(){if("undefined"==typeof window)return function(){};for(var t=0,r=x_.length;t<r&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[x_[t]+"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)}(),D_=function(){if("undefined"==typeof window)return function(){};for(var t=0,r=x_.length;t<r&&!window.cancelAnimationFrame;++t)window.cancelAnimationFrame=window[x_[t]+"CancelAnimationFrame"]||window[x_[t]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function eV(t,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 G4(t,r){var e=NM((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,t.target=o.target||o.srcElement||o.originalTarget,t.element=this,t.type=o.type,e(o)){if(o.targetTouches)t.x=o.targetTouches[0].clientX,t.y=o.targetTouches[0].clientY,t.pageX=o.targetTouches[0].pageX,t.pageY=o.targetTouches[0].pageY,t.screenX=o.targetTouches[0].screenX,t.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;t.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),t.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else t.pageX=o.pageX,t.pageY=o.pageY;t.x=o.clientX,t.y=o.clientY,t.screenX=o.screenX,t.screenY=o.screenY}t.clientX=t.x,t.clientY=t.y}}}(s),u=function F6(t){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<fh.length;s++)r[fh[s]]=a[fh[s]]}return void 0!==t&&t.addEventListener("mousemove",e),{destroy:function o(){t&&t.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var f=new MouseEvent("mousemove",B1(r,l));return $v(f,u),s.dispatchEvent(f)}:"function"==typeof document.createEvent?function(s,l,u){var f=B1(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,f.screenX,f.screenY,f.clientX,f.clientY,f.ctrlKey,f.altKey,f.shiftKey,f.metaKey,f.button,f.relatedTarget),$v(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var f=document.createEventObject(),h=B1(r,l);for(var v in h)f[v]=h[v];return $v(f,u),s.dispatchEvent(f)}:void 0}}(),f=!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=NM(r.autoScroll),this.syncMove=NM(r.syncMove,!1),this.destroy=function(g){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",ae,!1),window.removeEventListener("touchend",ae,!1),window.removeEventListener("pointerup",ae,!1),window.removeEventListener("mouseleave",Ye,!1),window.removeEventListener("mousemove",ft,!1),window.removeEventListener("touchmove",ft,!1),window.removeEventListener("scroll",G,!0),t=[],g&&he()},this.add=function(){for(var g=[],O=arguments.length;O--;)g[O]=arguments[O];return Y4.apply(void 0,[t].concat(g)),this},this.remove=function(){for(var g=[],O=arguments.length;O--;)g[O]=arguments[O];return N6.apply(void 0,[t].concat(g))};var v,g,h=null;"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),g=t,t=[],g.forEach(function(O){O===window?h=window:e.add(O)}),Object.defineProperties(this,{down:{get:function(){return f}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var B,C=null;function G(g){for(var O=0;O<t.length;O++)if(t[O]===g.target){o=!0;break}o&&ey(function(){return o=!1})}function q(){f=!0}function ae(){f=!1,he()}function he(){D_(B),D_(v)}function Ye(){f=!1}function Fe(){for(var g=null,O=0;O<t.length;O++)U6(s,t[O])&&(g=t[O]);return g}function ft(g){if(e.autoScroll()&&!g.dispatched){var O=g.target,H=document.body;C&&!U6(s,C)&&(e.scrollWhenOutside||(C=null)),O&&O.parentNode===H?O=Fe():(O=function Me(g){if(!g)return null;if(C===g||Xv(t,g))return g;for(;g=g.parentNode;)if(Xv(t,g))return g;return null}(O),O||(O=Fe())),O&&O!==C&&(C=O),h&&(D_(v),v=ey(ht)),C&&(D_(B),B=ey(Re))}}function ht(){ut(h),D_(v),v=ey(ht)}function Re(){!C||(ut(C),D_(B),B=ey(Re))}function ut(g){var H,te,O=B6(g);H=s.x<O.left+e.margin.left?Math.floor(Math.max(-1,(s.x-O.left)/e.margin.left-1)*e.maxSpeed.left):s.x>O.right-e.margin.right?Math.ceil(Math.min(1,(s.x-O.right)/e.margin.right+1)*e.maxSpeed.right):0,te=s.y<O.top+e.margin.top?Math.floor(Math.max(-1,(s.y-O.top)/e.margin.top-1)*e.maxSpeed.top):s.y>O.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-O.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(g,{pageX:s.pageX+H,pageY:s.pageY+te,clientX:s.x+H,clientY:s.y+te}),setTimeout(function(){te&&function kt(g,O){g===window?window.scrollTo(g.pageXOffset,g.pageYOffset+O):g.scrollTop+=O}(g,te),H&&function x(g,O){g===window?window.scrollTo(g.pageXOffset+O,g.pageYOffset):g.scrollLeft+=O}(g,H)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",ae,!1),window.addEventListener("touchend",ae,!1),window.addEventListener("pointerup",ae,!1),window.addEventListener("mousemove",ft,!1),window.addEventListener("touchmove",ft,!1),window.addEventListener("mouseleave",Ye,!1),window.addEventListener("scroll",G,!0)}function U6(t,r,e){return e?t.y>e.top&&t.y<e.bottom&&t.x>e.left&&t.x<e.right:function N1(t,r){var e=B6(r);return t.y>e.top&&t.y<e.bottom&&t.x>e.left&&t.x<e.right}(t,r)}var H6=function J4(t,r){return new eV(t,r)};function FM(t,r,e){e&&e.split(" ").forEach(function(i){return t.addClass(r.nativeElement,i)})}function F1(t,r,e){e&&e.split(" ").forEach(function(i){return t.removeClass(r.nativeElement,i)})}var ph=(0,V.Z)(function t(){(0,j.Z)(this,t),this.currentDrag=new qn.xQ});ph.\u0275fac=function(r){return new(r||ph)},ph.\u0275prov=n.Yz7({token:ph,factory:ph.\u0275fac,providedIn:"root"});var A_=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.elementRef=r});A_.\u0275fac=function(r){return new(r||A_)(n.Y36(n.SBq))},A_.\u0275dir=n.lG2({type:A_,selectors:[["","mwlDraggableScrollContainer",""]]});var ty=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 n.vpe,this.dragStart=new n.vpe,this.ghostElementCreated=new n.vpe,this.dragging=new n.vpe,this.dragEnd=new n.vpe,this.pointerDown$=new qn.xQ,this.pointerMove$=new qn.xQ,this.pointerUp$=new qn.xQ,this.eventListenerSubscriptions={},this.destroy$=new qn.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,Ei.h)(function(){return e.canDrag()}),(0,Ea.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 fo.y(function(G){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(ae){return G.next(ae)})}).pipe((0,ua.O)(s),(0,mr.U)(function(){return e.getScrollPosition()})),u=new qn.xQ,f=new Z1.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,To.T)(e.pointerUp$,e.pointerDown$,f,e.destroy$).pipe((0,ch.B)()),v=(0,uh.aj)([e.pointerMove$,l]).pipe((0,mr.U)(function(G){var q=(0,Ut.Z)(G,2),ae=q[0],he=q[1];return{currentDrag$:u,transformX:ae.clientX-o.clientX,transformY:ae.clientY-o.clientY,clientX:ae.clientX,clientY:ae.clientY,scrollLeft:he.left,scrollTop:he.top,target:ae.event.target}}),(0,mr.U)(function(G){return e.dragSnapGrid.x&&(G.transformX=Math.round(G.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(G.transformY=Math.round(G.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),G}),(0,mr.U)(function(G){return e.dragAxis.x||(G.transformX=0),e.dragAxis.y||(G.transformY=0),G}),(0,mr.U)(function(G){var q=G.scrollLeft-s.left,ae=G.scrollTop-s.top;return Object.assign(Object.assign({},G),{x:G.transformX+q,y:G.transformY+ae})}),(0,Ei.h)(function(G){var q=G.x,ae=G.y,he=G.transformX,Ye=G.transformY;return!e.validateDrag||e.validateDrag({x:q,y:ae,transform:{x:he,y:Ye}})}),(0,Yr.R)(h),(0,ch.B)()),C=v.pipe((0,to.q)(1),(0,ch.B)()),B=v.pipe((0,LM.h)(1),(0,ch.B)());return C.subscribe(function(G){var q=G.clientX,ae=G.clientY,he=G.x,Ye=G.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:f})}),e.scroller=H6([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),FM(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Me=e.element.nativeElement.getBoundingClientRect(),Fe=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Fe):e.element.nativeElement.parentNode.insertBefore(Fe,e.element.nativeElement.nextSibling),e.ghostElement=Fe,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Fe,{position:"fixed",top:"".concat(Me.top,"px"),left:"".concat(Me.left,"px"),width:"".concat(Me.width,"px"),height:"".concat(Me.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var ft=e.vcr.createEmbeddedView(e.ghostElementTemplate);Fe.innerHTML="",ft.rootNodes.filter(function(ht){return ht instanceof Node}).forEach(function(ht){Fe.appendChild(ht)}),B.subscribe(function(){e.vcr.remove(e.vcr.indexOf(ft))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-he,clientY:ae-Ye,element:Fe})}),B.subscribe(function(){Fe.parentElement.removeChild(Fe),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),B.pipe((0,Ea.zg)(function(G){var q=f.pipe((0,L6.Q)(),(0,to.q)(1),(0,mr.U)(function(ae){return Object.assign(Object.assign({},G),{dragCancelled:ae>0})}));return f.complete(),q})).subscribe(function(G){var q=G.x,ae=G.y,he=G.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:ae,dragCancelled:he})}),F1(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,To.T)(h,B).pipe((0,to.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),v}),(0,ch.B)());(0,To.T)(i.pipe((0,to.q)(1),(0,mr.U)(function(o){return[,o]})),i.pipe((0,ZM.G)())).pipe((0,Ei.h)(function(o){var a=(0,Ut.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,mr.U)(function(o){var a=(0,Ut.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,f=o.clientY,h=o.transformX,v=o.transformY,C=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var B="translate3d(".concat(h,"px, ").concat(v,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:B,"-webkit-transform":B,"-ms-transform":B,"-moz-transform":B,"-o-transform":B})}}),l.next({clientX:u,clientY:f,dropData:e.dropData,target:C})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,i=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;i&&!o?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(a){e.onMouseDown(a)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(a){e.onMouseUp(a)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(a){e.onTouchStart(a)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!i&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var i=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){i.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var o,a,s,i=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),a=!1,s=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var l=(0,Pf.R)(this.document,"contextmenu").subscribe(function(f){f.preventDefault()}),u=(0,Pf.R)(this.document,"touchmove",{passive:!1}).subscribe(function(f){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,f,o)),(!i.touchStartLongPress||!s||a)&&(f.preventDefault(),i.pointerMove$.next({event:f,clientX:f.targetTouches[0].clientX,clientY:f.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),f=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(f>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}}]),t}();function j6(t,r,e){return t>=e.left&&t<=e.right&&r>=e.top&&r<=e.bottom}ty.\u0275fac=function(r){return new(r||ty)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.s_b),n.Y36(A_,8),n.Y36(Ct.K0))},ty.\u0275dir=n.lG2({type:ty,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:[n.TTD]});var ny=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new n.vpe,this.dragLeave=new n.vpe,this.dragOver=new n.vpe,this.drop=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){FM(e.renderer,e.element,e.dragActiveClass);var s,f,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,mr.U)(function(h){var v=h.clientX,C=h.clientY,B=h.dropData,G=h.target;s={clientX:v,clientY:C,dropData:B,target:G},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=j6(v,C,o.rect),ae=!e.validateDrop||e.validateDrop({clientX:v,clientY:C,target:G,dropData:B});return o.scrollContainerRect?q&&ae&&j6(v,C,o.scrollContainerRect):q&&ae})),u=l.pipe((0,OM.x)());u.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){f=!0,FM(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,Ei.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,ZM.G)(),(0,Ei.h)(function(h){var v=(0,Ut.Z)(h,2),C=v[0],B=v[1];return C&&!B})).subscribe(function(){f=!1,F1(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),F1(e.renderer,e.element,e.dragActiveClass),f&&(F1(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()}}]),t}();ny.\u0275fac=function(r){return new(r||ny)(n.Y36(n.SBq),n.Y36(ph),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(A_,8))},ny.\u0275dir=n.lG2({type:ny,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var Zf=(0,V.Z)(function t(){(0,j.Z)(this,t)});Zf.\u0275fac=function(r){return new(r||Zf)},Zf.\u0275mod=n.oAB({type:Zf}),Zf.\u0275inj=n.cJS({});var UM=m(2072);function Nf(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}function U1(t){return 1===t.length&&(t=function z6(t){return function(r,e){return Nf(t(r),e)}}(t)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;t(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;t(e[s],i)>0?a=s:o=s+1}return o}}}var W6=U1(Nf),HM=W6.right,V6=W6.left,O_=HM;function Y6(t,r){null==r&&(r=jM);for(var e=0,i=t.length-1,o=t[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=t[++e]);return a}function jM(t,r){return[t,r]}function tl(t,r,e){var s,l,u,f,i=t.length,o=r.length,a=new Array(i*o);for(null==e&&(e=jM),s=u=0;s<i;++s)for(f=t[s],l=0;l<o;++l,++u)a[u]=e(f,r[l]);return a}function I_(t,r){return r<t?-1:r>t?1:r>=t?0:NaN}function Bf(t){return null===t?NaN:+t}function G6(t,r){var s,l,e=t.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=Bf(t[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=Bf(r(t[o],o,t)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function Q4(t,r){var e=G6(t,r);return e&&Math.sqrt(e)}function hh(t,r){var o,a,s,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=t[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(t[i],i,t))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var q6=Array.prototype,zM=q6.slice,X4=q6.map;function ry(t){return function(){return t}}function $4(t){return t}function Nl(t,r,e){t=+t,r=+r,e=(o=arguments.length)<2?(r=t,t=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-t)/e)),a=new Array(o);++i<o;)a[i]=t+i*e;return a}var iy=Math.sqrt(50),H1=Math.sqrt(10),j1=Math.sqrt(2);function P_(t,r,e){var i,a,s,l,o=-1;if(e=+e,(t=+t)===(r=+r)&&e>0)return[t];if((i=r<t)&&(a=t,t=r,r=a),0===(l=mh(t,r,e))||!isFinite(l))return[];if(l>0)for(t=Math.ceil(t/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-t+1));++o<a;)s[o]=(t+o)*l;else for(t=Math.floor(t*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(t-r+1));++o<a;)s[o]=(t-o)/l;return i&&s.reverse(),s}function mh(t,r,e){var i=(r-t)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=iy?10:a>=H1?5:a>=j1?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=iy?10:a>=H1?5:a>=j1?2:1)}function R_(t,r,e){var i=Math.abs(r-t)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=iy?o*=10:a>=H1?o*=5:a>=j1&&(o*=2),r<t?-o:o}function z1(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function e8(){var t=$4,r=hh,e=z1;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=t(o[a],a,o);var f=r(u),h=f[0],v=f[1],C=e(u,h,v);Array.isArray(C)||(C=R_(h,v,C),C=Nl(Math.ceil(h/C)*C,v,C));for(var B=C.length;C[0]<=h;)C.shift(),--B;for(;C[B-1]>v;)C.pop(),--B;var q,G=new Array(B+1);for(a=0;a<=B;++a)(q=G[a]=[]).x0=a>0?C[a-1]:h,q.x1=a<B?C[a]:v;for(a=0;a<s;++a)h<=(l=u[a])&&l<=v&&G[O_(C,l,0,B)].push(o[a]);return G}return i.value=function(o){return arguments.length?(t="function"==typeof o?o:ry(o),i):t},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:ry([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?ry(zM.call(o)):ry(o),i):e},i}function L_(t,r,e){if(null==e&&(e=Bf),i=t.length){if((r=+r)<=0||i<2)return+e(t[0],0,t);if(r>=1)return+e(t[i-1],i-1,t);var i,o=(i-1)*r,a=Math.floor(o),s=+e(t[a],a,t);return s+(+e(t[a+1],a+1,t)-s)*(o-a)}}function W1(t,r,e){return t=X4.call(t,Bf).sort(Nf),Math.ceil((e-r)/(2*(L_(t,.75)-L_(t,.25))*Math.pow(t.length,-1/3)))}function K6(t,r,e){return Math.ceil((e-r)/(3.5*Q4(t)*Math.pow(t.length,-1/3)))}function J6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=o;++i<e;)null!=(o=t[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=o;++i<e;)null!=(o=r(t[i],i,t))&&o>a&&(a=o);return a}function WM(t,r){var a,e=t.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=Bf(t[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=Bf(r(t[o],o,t)))?--i:s+=a;if(i)return s/i}function VM(t,r){var o,e=t.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=Bf(t[i]))||a.push(o);else for(;++i<e;)isNaN(o=Bf(r(t[i],i,t)))||a.push(o);return L_(a.sort(Nf),.5)}function YM(t){for(var e,a,s,r=t.length,i=-1,o=0;++i<r;)o+=t[i].length;for(a=new Array(o);--r>=0;)for(e=(s=t[r]).length;--e>=0;)a[--o]=s[e];return a}function Q6(t,r){var o,a,e=t.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=t[i])&&o>=o)for(a=o;++i<e;)null!=(o=t[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(t[i],i,t))&&o>=o)for(a=o;++i<e;)null!=(o=r(t[i],i,t))&&a>o&&(a=o);return a}function X6(t,r){for(var e=r.length,i=new Array(e);e--;)i[e]=t[r[e]];return i}function $6(t,r){if(e=t.length){var e,a,i=0,o=0,s=t[o];for(null==r&&(r=Nf);++i<e;)(r(a=t[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function eR(t,r,e){for(var o,a,i=(null==e?t.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=t[i+r],t[i+r]=t[a+r],t[a+r]=o;return t}function t8(t,r){var o,e=t.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+t[i])&&(a+=o);else for(;++i<e;)(o=+r(t[i],i,t))&&(a+=o);return a}function GM(t){if(!(a=t.length))return[];for(var r=-1,e=Q6(t,tR),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=t[o][r];return i}function tR(t){return t.length}function n8(){return GM(arguments)}var qM=Array.prototype.slice;function nR(t){return t}function r8(t){return"translate("+(t+.5)+",0)"}function i8(t){return"translate(0,"+(t+.5)+")"}function o8(t){return function(r){return+t(r)}}function rR(t){var r=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(r=Math.round(r)),function(e){return+t(e)+r}}function iR(){return!this.__axis}function G1(t,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",h=1===t||3===t?r8:i8;function v(C){var B=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,G=null==o?r.tickFormat?r.tickFormat.apply(r,e):nR:o,q=Math.max(a,0)+l,ae=r.range(),he=+ae[0]+.5,Ye=+ae[ae.length-1]+.5,Me=(r.bandwidth?rR:o8)(r.copy()),Fe=C.selection?C.selection():C,ft=Fe.selectAll(".domain").data([null]),ht=Fe.selectAll(".tick").data(B,r).order(),Re=ht.exit(),ut=ht.enter().append("g").attr("class","tick"),kt=ht.select("line"),x=ht.select("text");ft=ft.merge(ft.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ht=ht.merge(ut),kt=kt.merge(ut.append("line").attr("stroke","currentColor").attr(f+"2",u*a)),x=x.merge(ut.append("text").attr("fill","currentColor").attr(f,u*q).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),C!==Fe&&(ft=ft.transition(C),ht=ht.transition(C),kt=kt.transition(C),x=x.transition(C),Re=Re.transition(C).attr("opacity",1e-6).attr("transform",function(g){return isFinite(g=Me(g))?h(g):this.getAttribute("transform")}),ut.attr("opacity",1e-6).attr("transform",function(g){var O=this.parentNode.__axis;return h(O&&isFinite(O=O(g))?O:Me(g))})),Re.remove(),ft.attr("d",4===t||2==t?s?"M"+u*s+","+he+"H0.5V"+Ye+"H"+u*s:"M0.5,"+he+"V"+Ye:s?"M"+he+","+u*s+"V0.5H"+Ye+"V"+u*s:"M"+he+",0.5H"+Ye),ht.attr("opacity",1).attr("transform",function(g){return h(Me(g))}),kt.attr(f+"2",u*a),x.attr(f,u*q).text(G),Fe.filter(iR).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),Fe.each(function(){this.__axis=Me})}return v.scale=function(C){return arguments.length?(r=C,v):r},v.ticks=function(){return e=qM.call(arguments),v},v.tickArguments=function(C){return arguments.length?(e=null==C?[]:qM.call(C),v):e.slice()},v.tickValues=function(C){return arguments.length?(i=null==C?null:qM.call(C),v):i&&i.slice()},v.tickFormat=function(C){return arguments.length?(o=C,v):o},v.tickSize=function(C){return arguments.length?(a=s=+C,v):a},v.tickSizeInner=function(C){return arguments.length?(a=+C,v):a},v.tickSizeOuter=function(C){return arguments.length?(s=+C,v):s},v.tickPadding=function(C){return arguments.length?(l=+C,v):l},v}function a8(t){return G1(1,t)}function s8(t){return G1(2,t)}function l8(t){return G1(3,t)}function u8(t){return G1(4,t)}var c8={value:function(){}};function oR(){for(var i,t=0,r=arguments.length,e={};t<r;++t){if(!(i=arguments[t]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new _h(e)}function _h(t){this._=t}function tV(t,r){return t.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 aR(t,r){for(var o,e=0,i=t.length;e<i;++e)if((o=t[e]).name===r)return o.value}function Ad(t,r,e){for(var i=0,o=t.length;i<o;++i)if(t[i].name===r){t[i]=c8,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=e&&t.push({name:r,value:e}),t}_h.prototype=oR.prototype={constructor:_h,on:function(r,e){var a,i=this._,o=tV(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]=Ad(i[a],r.name,e);else if(null==e)for(a in i)i[a]=Ad(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=aR(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new _h(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 Ff=oR;function sR(){}function lR(t){return null==t?sR:function(){return this.querySelector(t)}}function uR(){return[]}function cR(t){return null==t?uR:function(){return this.querySelectorAll(t)}}function d8(t){return function(){return this.matches(t)}}function fR(t){return new Array(t.length)}function q1(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}q1.prototype={constructor:q1,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 pR(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new q1(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function p8(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new q1(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function Uf(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}var K1="http://www.w3.org/1999/xhtml",mR={svg:"http://www.w3.org/2000/svg",xhtml:K1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ac(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),mR.hasOwnProperty(r)?{space:mR[r],local:t}:t}function F_(t){return function(){this.removeAttribute(t)}}function b8(t){return function(){this.removeAttributeNS(t.space,t.local)}}function C8(t,r){return function(){this.setAttribute(t,r)}}function tS(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function gh(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function _R(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function vR(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function iV(t){return function(){this.style.removeProperty(t)}}function w8(t,r,e){return function(){this.style.setProperty(t,r,e)}}function k8(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function vh(t,r){return t.style.getPropertyValue(r)||vR(t).getComputedStyle(t,null).getPropertyValue(r)}function E8(t){return function(){delete this[t]}}function M8(t,r){return function(){this[t]=r}}function oV(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Hf(t){return t.trim().split(/^|\s+/)}function rS(t){return t.classList||new yR(t)}function yR(t){this._node=t,this._names=Hf(t.getAttribute("class")||"")}function iS(t,r){for(var e=rS(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function Od(t,r){for(var e=rS(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function oS(t){return function(){iS(this,t)}}function bR(t){return function(){Od(this,t)}}function S8(t,r){return function(){(r.apply(this,arguments)?iS:Od)(this,t)}}function wR(){this.textContent=""}function aV(t){return function(){this.textContent=t}}function x8(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function lV(){this.innerHTML=""}function kR(t){return function(){this.innerHTML=t}}function aS(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function A8(){this.nextSibling&&this.parentNode.appendChild(this)}function I8(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cV(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===K1&&r.documentElement.namespaceURI===K1?r.createElement(t):r.createElementNS(e,t)}}function dV(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function TR(t){var r=Ac(t);return(r.local?dV:cV)(r)}function fV(){return null}function pV(){var t=this.parentNode;t&&t.removeChild(this)}function ER(){var t=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}function lS(){var t=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}yR.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 J1={},Kn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(J1={mouseenter:"mouseover",mouseleave:"mouseout"}));function mV(t,r,e){return t=R8(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function R8(t,r,e){return function(i){var o=Kn;Kn=i;try{t.call(this,this.__data__,r,e)}finally{Kn=o}}}function _V(t){return t.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 gV(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function SR(t,r,e){var i=J1.hasOwnProperty(t.type)?mV:R8;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function Q1(t,r,e,i){var o=Kn;t.sourceEvent=Kn,Kn=t;try{return r.apply(e,i)}finally{Kn=o}}function xR(t,r,e){var i=vR(t),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)),t.dispatchEvent(o)}function Z8(t,r){return function(){return xR(this,t,r)}}function DR(t,r){return function(){return xR(this,t,r.apply(this,arguments))}}var cS=[null];function Bl(t,r){this._groups=t,this._parents=r}function OR(){return new Bl([[document.documentElement]],cS)}Bl.prototype=OR.prototype={constructor:Bl,select:function JM(t){"function"!=typeof t&&(t=lR(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new Bl(i,this._parents)},selectAll:function dR(t){"function"!=typeof t&&(t=cR(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new Bl(i,o)},filter:function N_(t){"function"!=typeof t&&(t=d8(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new Bl(i,this._parents)},data:function B_(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?p8:pR,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function nV(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Fe,ft,Ye=0,Me=0;Ye<G;++Ye)if(Fe=q[Ye]){for(Ye>=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me<G;);Fe._next=ft||null}}return(s=new Bl(s,i))._enter=l,s._exit=u,s},enter:function QM(){return new Bl(this._enter||this._groups.map(fR),this._parents)},exit:function h8(){return new Bl(this._exit||this._groups.map(fR),this._parents)},join:function rV(t,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function m8(t){for(var r=this._groups,e=t._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new Bl(s,this._parents)},order:function XM(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 _8(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Uf);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new Bl(o,this._parents).order()},call:function g8(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function $M(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function v8(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function y8(){var t=0;return this.each(function(){++t}),t},empty:function eS(){return!this.node()},each:function hR(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function gR(t,r){var e=Ac(t);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?b8:F_:"function"==typeof r?e.local?_R:gh:e.local?tS:C8)(e,r))},style:function T8(t,r,e){return arguments.length>1?this.each((null==r?iV:"function"==typeof r?k8:w8)(t,r,null==e?"":e)):vh(this.node(),t)},property:function nS(t,r){return arguments.length>1?this.each((null==r?E8:"function"==typeof r?oV:M8)(t,r)):this.node()[t]},classed:function CR(t,r){var e=Hf(t+"");if(arguments.length<2){for(var i=rS(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?S8:r?oS:bR)(e,r))},text:function sV(t){return arguments.length?this.each(null==t?wR:("function"==typeof t?x8:aV)(t)):this.node().textContent},html:function D8(t){return arguments.length?this.each(null==t?lV:("function"==typeof t?aS:kR)(t)):this.node().innerHTML},raise:function O8(){return this.each(A8)},lower:function uV(){return this.each(I8)},append:function sS(t){var r="function"==typeof t?t:TR(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function P8(t,r){var e="function"==typeof t?t:TR(t),i=null==r?fV:"function"==typeof r?r:lR(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function yh(){return this.each(pV)},clone:function uS(t){return this.select(t?lS:ER)},datum:function hV(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function L8(t,r,e){var o,s,i=_V(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?SR:gV,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,f=l.length;u<f;++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 AR(t,r){return this.each(("function"==typeof r?DR:Z8)(t,r))}};var Id=OR;function gi(t){return"string"==typeof t?new Bl([[document.querySelector(t)]],[document.documentElement]):new Bl([[t]],cS)}function IR(){Kn.stopImmediatePropagation()}function bh(){Kn.preventDefault(),Kn.stopImmediatePropagation()}function jf(t){var r=t.document.documentElement,e=gi(t).on("dragstart.drag",bh,!0);"onselectstart"in r?e.on("selectstart.drag",bh,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function X1(t,r){var e=t.document.documentElement,i=gi(t).on("dragstart.drag",null);r&&(i.on("click.drag",bh,!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 $1(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function PR(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function ay(){}var ju=1/.7,sy="\\s*([+-]?\\d+)\\s*",eC="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vV=/^#([0-9a-f]{3,8})$/,yV=new RegExp("^rgb\\("+[sy,sy,sy]+"\\)$"),N8=new RegExp("^rgb\\("+[Pd,Pd,Pd]+"\\)$"),bV=new RegExp("^rgba\\("+[sy,sy,sy,eC]+"\\)$"),CV=new RegExp("^rgba\\("+[Pd,Pd,Pd,eC]+"\\)$"),wV=new RegExp("^hsl\\("+[eC,Pd,Pd]+"\\)$"),kV=new RegExp("^hsla\\("+[eC,Pd,Pd,eC]+"\\)$"),c={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 d(){return this.rgb().formatHex()}function _(){return this.rgb().formatRgb()}function b(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=vV.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Z(r):3===e?new Ie(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Q(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Q(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=yV.exec(t))?new Ie(r[1],r[2],r[3],1):(r=N8.exec(t))?new Ie(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=bV.exec(t))?Q(r[1],r[2],r[3],r[4]):(r=CV.exec(t))?Q(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=wV.exec(t))?zt(r[1],r[2]/100,r[3]/100,1):(r=kV.exec(t))?zt(r[1],r[2]/100,r[3]/100,r[4]):c.hasOwnProperty(t)?Z(c[t]):"transparent"===t?new Ie(NaN,NaN,NaN,0):null}function Z(t){return new Ie(t>>16&255,t>>8&255,255&t,1)}function Q(t,r,e,i){return i<=0&&(t=r=e=NaN),new Ie(t,r,e,i)}function le(t){return t instanceof ay||(t=b(t)),t?new Ie((t=t.rgb()).r,t.g,t.b,t.opacity):new Ie}function pe(t,r,e,i){return 1===arguments.length?le(t):new Ie(t,r,e,null==i?1:i)}function Ie(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function et(){return"#"+Ot(this.r)+Ot(this.g)+Ot(this.b)}function Tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Ot(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function zt(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Xn(t,r,e,i)}function hn(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof ay||(t=b(t)),!t)return new Xn;if(t instanceof Xn)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Xn(s,l,u,t.opacity)}function Xn(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function fr(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function xn(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Ni(t){return function(){return t}}function Po(t,r){return function(e){return t+e*r}}function Fl(t){return 1==(t=+t)?Ul:function(r,e){return e-r?function rs(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):Ni(isNaN(r)?e:r)}}function Ul(t,r){var e=r-t;return e?Po(t,e):Ni(isNaN(t)?r:t)}$1(ay,b,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:d,formatHex:d,formatHsl:function p(){return hn(this).formatHsl()},formatRgb:_,toString:_}),$1(Ie,pe,PR(ay,{brighter:function(r){return r=null==r?ju:Math.pow(ju,r),new Ie(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Ie(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:et,formatHex:et,formatRgb:Tt,toString:Tt})),$1(Xn,function Bn(t,r,e,i){return 1===arguments.length?hn(t):new Xn(t,r,e,null==i?1:i)},PR(ay,{brighter:function(r){return r=null==r?ju:Math.pow(ju,r),new Xn(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Xn(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 Ie(fr(r>=240?r-240:r+120,a,o),fr(r,a,o),fr(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 zf=function t(r){var e=Fl(r);function i(o,a){var s=e((o=pe(o)).r,(a=pe(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Ul(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function U_(t){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=pe(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var ly=U_(function Cr(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return xn((e-i/r)*r,s,o,a,l)}});U_(function ki(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return xn((e-i/r)*r,o,a,s,l)}});function nC(t,r){var s,e=r?r.length:0,i=t?Math.min(e,t.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=RR(t[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 Xoe(t,r){var e=new Date;return t=+t,r=+r,function(i){return e.setTime(t*(1-i)+r*i),e}}function Oc(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}function $oe(t,r){var o,e={},i={};for(o in(null===t||"object"!=typeof t)&&(t={}),(null===r||"object"!=typeof r)&&(r={}),r)o in t?e[o]=RR(t[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var B8=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,F8=new RegExp(B8.source,"g");function TV(t,r){var i,o,a,e=B8.lastIndex=F8.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=B8.exec(t))&&(o=F8.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:Oc(i,o)})),e=F8.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function tae(t){return function(r){return t(r)+""}}(u[0].x):function eae(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function nae(t,r){r||(r=[]);var o,e=t?Math.min(r.length,t.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=t[o]*(1-a)+r[o]*a;return i}}function RR(t,r){var i,e=typeof r;return null==r||"boolean"===e?Ni(r):("number"===e?Oc:"string"===e?(i=b(r))?(r=i,zf):TV:r instanceof b?zf:r instanceof Date?Xoe:function rae(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(r)?nae:Array.isArray(r)?nC:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?$oe:Oc)(t,r)}function EV(){for(var r,t=Kn;r=t.sourceEvent;)t=r;return t}function MV(t,r){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var o=t.getBoundingClientRect();return[r.clientX-o.left-t.clientLeft,r.clientY-o.top-t.clientTop]}function Rd(t){var r=EV();return r.changedTouches&&(r=r.changedTouches[0]),MV(t,r)}var LR,pS,rC=0,dS=0,fS=0,ZR=0,cy=0,NR=0,hS="object"==typeof performance&&performance.now?performance:Date,xV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function H_(){return cy||(xV(iae),cy=hS.now()+NR)}function iae(){cy=0}function mS(){this._call=this._time=this._next=null}function _S(t,r,e){var i=new mS;return i.restart(t,r,e),i}function DV(){H_(),++rC;for(var r,t=LR;t;)(r=cy-t._time)>=0&&t._call.call(null,r),t=t._next;--rC}function AV(){cy=(ZR=hS.now())+NR,rC=dS=0;try{DV()}finally{rC=0,function aae(){for(var t,e,r=LR,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:LR=e);pS=t,U8(i)}(),cy=0}}function oae(){var t=hS.now(),r=t-ZR;r>1e3&&(NR-=r,ZR=t)}function U8(t){rC||(dS&&(dS=clearTimeout(dS)),t-cy>24?(t<1/0&&(dS=setTimeout(AV,t-hS.now()-NR)),fS&&(fS=clearInterval(fS))):(fS||(ZR=hS.now(),fS=setInterval(oae,1e3)),rC=1,xV(AV)))}function gS(t,r,e){var i=new mS;return r=null==r?0:+r,i.restart(function(o){i.stop(),t(o+r)},r,e),i}mS.prototype=_S.prototype={constructor:mS,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?H_():+i)+(null==e?0:+e),!this._next&&pS!==this&&(pS?pS._next=this:LR=this,pS=this),this._call=r,this._time=i,U8()},stop:function(){this._call&&(this._call=null,this._time=1/0,U8())}};var sae=Ff("start","end","cancel","interrupt"),lae=[];function UR(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function uae(t,r,e){var o,i=t.__transition;function a(f){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var h,v,C,B;if(1!==e.state)return u();for(h in i)if((B=i[h]).name===e.name){if(3===B.state)return gS(s);4===B.state?(B.state=6,B.timer.stop(),B.on.call("interrupt",t,t.__data__,B.index,B.group),delete i[h]):+h<r&&(B.state=6,B.timer.stop(),B.on.call("cancel",t,t.__data__,B.index,B.group),delete i[h])}if(gS(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(f))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,v=-1;h<C;++h)(B=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(o[++v]=B);o.length=v+1}}function l(f){for(var h=f<e.duration?e.ease.call(null,f/e.duration):(e.timer.restart(u),e.state=5,1),v=-1,C=o.length;++v<C;)o[v].call(t,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var f in e.state=6,e.timer.stop(),delete i[r],i)return;delete t.__transition}i[r]=e,e.timer=_S(a,0,e.time)}(t,e,{name:r,index:i,group:o,on:sae,tween:lae,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function z8(t,r){var e=Ld(t,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function wh(t,r){var e=Ld(t,r);if(e.state>3)throw new Error("too late; already running");return e}function Ld(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function iC(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}var vS,V8,ZV,HR,RV=180/Math.PI,W8={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function LV(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*RV,skewX:Math.atan(u)*RV,scaleX:s,scaleY:l}}function NV(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:Oc(f,v)},{i:q-2,x:Oc(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Oc(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Oc(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Oc(f,v)},{i:q-2,x:Oc(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var pae=NV(function dae(t){return"none"===t?W8:(vS||(vS=document.createElement("DIV"),V8=document.documentElement,ZV=document.defaultView),vS.style.transform=t,t=ZV.getComputedStyle(V8.appendChild(vS),null).getPropertyValue("transform"),V8.removeChild(vS),LV(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),hae=NV(function fae(t){return null!=t&&(HR||(HR=document.createElementNS("http://www.w3.org/2000/svg","g")),HR.setAttribute("transform",t),t=HR.transform.baseVal.consolidate())?LV((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):W8},", ",")",")");function mae(t,r){var e,i;return function(){var o=wh(this,t),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 _ae(t,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=wh(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,f=o.length;u<f;++u)if(o[u].name===r){o[u]=l;break}u===f&&o.push(l)}a.tween=o}}function Y8(t,r,e){var i=t._id;return t.each(function(){var o=wh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Ld(o,i).value[r]}}function BV(t,r){var e;return("number"==typeof r?Oc:r instanceof b?zf:(e=b(r))?(r=e,zf):TV)(t,r)}function vae(t){return function(){this.removeAttribute(t)}}function yae(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bae(t,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?a:a=r(i=s,e)}}function Cae(t,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?a:a=r(i=s,e)}}function wae(t,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function kae(t,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Eae(t,r){return function(e){this.setAttribute(t,r.call(this,e))}}function Mae(t,r){return function(e){this.setAttributeNS(t.space,t.local,r.call(this,e))}}function Sae(t,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Mae(t,a)),e}return o._value=r,o}function xae(t,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Eae(t,a)),e}return o._value=r,o}function Aae(t,r){return function(){z8(this,t).delay=+r.apply(this,arguments)}}function Oae(t,r){return r=+r,function(){z8(this,t).delay=r}}function Pae(t,r){return function(){wh(this,t).duration=+r.apply(this,arguments)}}function Rae(t,r){return r=+r,function(){wh(this,t).duration=r}}function Zae(t,r){if("function"!=typeof r)throw new Error;return function(){wh(this,t).ease=r}}function Hae(t,r,e){var i,o,a=function Uae(t){return(t+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?z8:wh;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Gae=Id.prototype.constructor;function FV(t){return function(){this.style.removeProperty(t)}}function ese(t,r,e){return function(i){this.style.setProperty(t,r.call(this,i),e)}}function tse(t,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&ese(t,s,e)),i}return a._value=r,a}function ase(t){return function(r){this.textContent=t.call(this,r)}}function sse(t){var r,e;function i(){var o=t.apply(this,arguments);return o!==e&&(r=(e=o)&&ase(o)),r}return i._value=t,i}var dse=0;function kh(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function G8(t){return Id().transition(t)}function UV(){return++dse}var oC=Id.prototype;function fse(t){return t*t*t}function pse(t){return--t*t*t+1}function jR(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}kh.prototype=G8.prototype={constructor:kh,select:function Vae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=lR(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,v,l=i[s],u=l.length,f=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(v=t.call(h,h.__data__,C,l))&&("__data__"in h&&(v.__data__=h.__data__),f[C]=v,UR(f[C],r,e,C,f,Ld(h,e)));return new kh(a,this._parents,r,e)},selectAll:function Yae(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=cR(t));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],f=u.length,v=0;v<f;++v)if(h=u[v]){for(var B,C=t.call(h,h.__data__,v,u),G=Ld(h,e),q=0,ae=C.length;q<ae;++q)(B=C[q])&&UR(B,r,e,q,C,G);a.push(C),s.push(h)}return new kh(a,s,r,e)},filter:function Bae(t){"function"!=typeof t&&(t=d8(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new kh(i,this._parents,this._name,this._id)},merge:function Fae(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,e=t._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new kh(s,this._parents,this._name,this._id)},selection:function qae(){return new Gae(this._groups,this._parents)},transition:function use(){for(var t=this._name,r=this._id,e=UV(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)if(u=s[f]){var h=Ld(u,r);UR(u,t,e,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kh(i,this._parents,t,e)},call:oC.call,nodes:oC.nodes,node:oC.node,size:oC.size,empty:oC.empty,each:oC.each,on:function jae(t,r){var e=this._id;return arguments.length<2?Ld(this.node(),e).on.on(t):this.each(Hae(e,t,r))},attr:function Tae(t,r){var e=Ac(t),i="transform"===e?hae:BV;return this.attrTween(t,"function"==typeof r?(e.local?kae:wae)(e,i,Y8(this,"attr."+t,r)):null==r?(e.local?yae:vae)(e):(e.local?Cae:bae)(e,i,r))},attrTween:function Dae(t,r){var e="attr."+t;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=Ac(t);return this.tween(e,(i.local?Sae:xae)(i,r))},style:function $ae(t,r,e){var i="transform"==(t+="")?pae:BV;return null==r?this.styleTween(t,function Kae(t,r){var e,i,o;return function(){var a=vh(this,t),s=(this.style.removeProperty(t),vh(this,t));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(t,i)).on("end.style."+t,FV(t)):"function"==typeof r?this.styleTween(t,function Qae(t,r,e){var i,o,a;return function(){var s=vh(this,t),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(t),u=l=vh(this,t)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(t,i,Y8(this,"style."+t,r))).each(function Xae(t,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=wh(this,t),f=u.on,h=null==u.value[a]?l||(l=FV(r)):void 0;(f!==e||o!==h)&&(i=(e=f).copy()).on(s,o=h),u.on=i}}(this._id,t)):this.styleTween(t,function Jae(t,r,e){var i,a,o=e+"";return function(){var s=vh(this,t);return s===o?null:s===i?a:a=r(i=s,e)}}(t,i,r),e).on("end.style."+t,null)},styleTween:function nse(t,r,e){var i="style."+(t+="");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,tse(t,r,null==e?"":e))},text:function ose(t){return this.tween("text","function"==typeof t?function ise(t){return function(){var r=t(this);this.textContent=null==r?"":r}}(Y8(this,"text",t)):function rse(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function lse(t){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,sse(t))},remove:function Wae(){return this.on("end.remove",function zae(t){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==t)return;r&&r.removeChild(this)}}(this._id))},tween:function gae(t,r){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Ld(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===t)return s.value;return null}return this.each((null==r?mae:_ae)(e,t,r))},delay:function Iae(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Aae:Oae)(r,t)):Ld(this.node(),r).delay},duration:function Lae(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Pae:Rae)(r,t)):Ld(this.node(),r).duration},ease:function Nae(t){var r=this._id;return arguments.length?this.each(Zae(r,t)):Ld(this.node(),r).ease},end:function cse(){var t,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 f=wh(this,i),h=f.on;h!==t&&((r=(t=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),f.on=r})})}};var q8={time:null,delay:0,duration:250,ease:jR};function hse(t,r){for(var e;!(e=t.__transition)||!(e=e[r]);)if(!(t=t.parentNode))return q8.time=H_(),q8;return e}Id.prototype.interrupt=function cae(t){return this.each(function(){iC(this,t)})},Id.prototype.transition=function mse(t){var r,e;t instanceof kh?(r=t._id,t=t._name):(r=UV(),(e=q8).time=H_(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)(u=s[f])&&UR(u,t,r,f,s,e||hse(u,r));return new kh(i,this._parents,t,r)};function HV(t){return function(){return t}}function gse(t,r,e){this.target=t,this.type=r,this.selection=e}function jV(){Kn.stopImmediatePropagation()}function zR(){Kn.preventDefault(),Kn.stopImmediatePropagation()}var zV={name:"drag"},K8={name:"space"},aC={name:"handle"},sC={name:"center"},WR={name:"x",handles:["e","w"].map(yS),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]]}},VR={name:"y",handles:["n","s"].map(yS),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]]}},vse={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(yS),input:function(r){return r},output:function(r){return r}},Th={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"},WV={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},VV={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},yse={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bse={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yS(t){return{type:t}}function Cse(){return!Kn.button}function wse(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function J8(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Q8(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function kse(t){var r=t.__brush;return r?r.dim.output(r.selection):null}function Tse(){return X8(WR)}function Ese(){return X8(VR)}function Mse(){return X8(vse)}function X8(t){var a,r=wse,e=Cse,i=Ff(s,"start","brush","end"),o=6;function s(C){var B=C.property("__brush",v).selectAll(".overlay").data([yS("overlay")]);B.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Th.overlay).merge(B).each(function(){var q=J8(this).extent;gi(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])}),C.selectAll(".selection").data([yS("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Th.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var G=C.selectAll(".handle").data(t.handles,function(q){return q.type});G.exit().remove(),G.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return Th[q.type]}),C.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 C=gi(this),B=J8(this).selection;B?(C.selectAll(".selection").style("display",null).attr("x",B[0][0]).attr("y",B[0][1]).attr("width",B[1][0]-B[0][0]).attr("height",B[1][1]-B[0][1]),C.selectAll(".handle").style("display",null).attr("x",function(G){return"e"===G.type[G.type.length-1]?B[1][0]-o/2:B[0][0]-o/2}).attr("y",function(G){return"s"===G.type[0]?B[1][1]-o/2:B[0][1]-o/2}).attr("width",function(G){return"n"===G.type||"s"===G.type?B[1][0]-B[0][0]+o:o}).attr("height",function(G){return"e"===G.type||"w"===G.type?B[1][1]-B[0][1]+o:o})):C.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(C,B){return C.__brush.emitter||new f(C,B)}function f(C,B){this.that=C,this.args=B,this.state=C.__brush,this.active=0}function h(){if(Kn.touches){if(Kn.changedTouches.length<Kn.touches.length)return zR()}else if(a)return;if(e.apply(this,arguments)){var ft,ht,ut,kt,g,O,te,re,ye,pt,xt,st,Lt,C=this,B=Kn.target.__data__.type,G="selection"===(Kn.metaKey?B="overlay":B)?zV:Kn.altKey?sC:aC,q=t===VR?null:yse[B],ae=t===WR?null:bse[B],he=J8(C),Ye=he.extent,Me=he.selection,Fe=Ye[0][0],Re=Ye[0][1],x=Ye[1][0],H=Ye[1][1],Ce=q&&ae&&Kn.shiftKey,Hn=Rd(C),er=Hn,Zn=u(C,arguments).beforestart();"overlay"===B?he.selection=Me=[[ft=t===VR?Fe:Hn[0],ut=t===WR?Re:Hn[1]],[g=t===VR?x:ft,te=t===WR?H:ut]]:(ft=Me[0][0],ut=Me[0][1],g=Me[1][0],te=Me[1][1]),ht=ft,kt=ut,O=g,re=te;var Cn=gi(C).attr("pointer-events","none"),ma=Cn.selectAll(".overlay").attr("cursor",Th[B]);if(Kn.touches)Cn.on("touchmove.brush",zr,!0).on("touchend.brush touchcancel.brush",In,!0);else{var Tr=gi(Kn.view).on("keydown.brush",yr,!0).on("keyup.brush",kn,!0).on("mousemove.brush",zr,!0).on("mouseup.brush",In,!0);jf(Kn.view)}jV(),iC(C),l.call(C),Zn.start()}function zr(){var Br=Rd(C);Ce&&!st&&!Lt&&(Math.abs(Br[0]-er[0])>Math.abs(Br[1]-er[1])?Lt=!0:st=!0),er=Br,xt=!0,zR(),Wn()}function Wn(){var Br;switch(ye=er[0]-Hn[0],pt=er[1]-Hn[1],G){case K8:case zV:q&&(ye=Math.max(Fe-ft,Math.min(x-g,ye)),ht=ft+ye,O=g+ye),ae&&(pt=Math.max(Re-ut,Math.min(H-te,pt)),kt=ut+pt,re=te+pt);break;case aC:q<0?(ye=Math.max(Fe-ft,Math.min(x-ft,ye)),ht=ft+ye,O=g):q>0&&(ye=Math.max(Fe-g,Math.min(x-g,ye)),ht=ft,O=g+ye),ae<0?(pt=Math.max(Re-ut,Math.min(H-ut,pt)),kt=ut+pt,re=te):ae>0&&(pt=Math.max(Re-te,Math.min(H-te,pt)),kt=ut,re=te+pt);break;case sC:q&&(ht=Math.max(Fe,Math.min(x,ft-ye*q)),O=Math.max(Fe,Math.min(x,g+ye*q))),ae&&(kt=Math.max(Re,Math.min(H,ut-pt*ae)),re=Math.max(Re,Math.min(H,te+pt*ae)))}O<ht&&(q*=-1,Br=ft,ft=g,g=Br,Br=ht,ht=O,O=Br,B in WV&&ma.attr("cursor",Th[B=WV[B]])),re<kt&&(ae*=-1,Br=ut,ut=te,te=Br,Br=kt,kt=re,re=Br,B in VV&&ma.attr("cursor",Th[B=VV[B]])),he.selection&&(Me=he.selection),st&&(ht=Me[0][0],O=Me[1][0]),Lt&&(kt=Me[0][1],re=Me[1][1]),(Me[0][0]!==ht||Me[0][1]!==kt||Me[1][0]!==O||Me[1][1]!==re)&&(he.selection=[[ht,kt],[O,re]],l.call(C),Zn.brush())}function In(){if(jV(),Kn.touches){if(Kn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Cn.on("touchmove.brush touchend.brush touchcancel.brush",null)}else X1(Kn.view,xt),Tr.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Cn.attr("pointer-events","all"),ma.attr("cursor",Th.overlay),he.selection&&(Me=he.selection),Q8(Me)&&(he.selection=null,l.call(C)),Zn.end()}function yr(){switch(Kn.keyCode){case 16:Ce=q&&ae;break;case 18:G===aC&&(q&&(g=O-ye*q,ft=ht+ye*q),ae&&(te=re-pt*ae,ut=kt+pt*ae),G=sC,Wn());break;case 32:(G===aC||G===sC)&&(q<0?g=O-ye:q>0&&(ft=ht-ye),ae<0?te=re-pt:ae>0&&(ut=kt-pt),G=K8,ma.attr("cursor",Th.selection),Wn());break;default:return}zR()}function kn(){switch(Kn.keyCode){case 16:Ce&&(st=Lt=Ce=!1,Wn());break;case 18:G===sC&&(q<0?g=O:q>0&&(ft=ht),ae<0?te=re:ae>0&&(ut=kt),G=aC,Wn());break;case 32:G===K8&&(Kn.altKey?(q&&(g=O-ye*q,ft=ht+ye*q),ae&&(te=re-pt*ae,ut=kt+pt*ae),G=sC):(q<0?g=O:q>0&&(ft=ht),ae<0?te=re:ae>0&&(ut=kt),G=aC),ma.attr("cursor",Th[B]),Wn());break;default:return}zR()}}function v(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=t,C}return s.move=function(C,B){C.selection?C.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var G=this,q=G.__brush,ae=u(G,arguments),he=q.selection,Ye=t.input("function"==typeof B?B.apply(this,arguments):B,q.extent),Me=RR(he,Ye);function Fe(ft){q.selection=1===ft&&Q8(Ye)?null:Me(ft),l.call(G),ae.brush()}return he&&Ye?Fe:Fe(1)}):C.each(function(){var G=this,q=arguments,ae=G.__brush,he=t.input("function"==typeof B?B.apply(G,q):B,ae.extent),Ye=u(G,q).beforestart();iC(G),ae.selection=null==he||Q8(he)?null:he,l.call(G),Ye.start().brush().end()})},f.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(B){Q1(new gse(s,B,t.output(this.state.selection)),i.apply,i,[B,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:HV([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),s):r},s.filter=function(C){return arguments.length?(e="function"==typeof C?C:HV(!!C),s):e},s.handleSize=function(C){return arguments.length?(o=+C,s):o},s.on=function(){var C=i.on.apply(i,arguments);return C===i?s:C},s}var YV=Math.cos,GV=Math.sin,qV=Math.PI,YR=qV/2,KV=2*qV,JV=Math.max;function Sse(t){return function(r,e){return t(r.source.value+r.target.value,e.source.value+e.target.value)}}function xse(){var t=0,r=null,e=null,i=null;function o(a){var B,G,q,ae,he,Ye,s=a.length,l=[],u=Nl(s),f=[],h=[],v=h.groups=new Array(s),C=new Array(s*s);for(B=0,he=-1;++he<s;){for(G=0,Ye=-1;++Ye<s;)G+=a[he][Ye];l.push(G),f.push(Nl(s)),B+=G}for(r&&u.sort(function(x,g){return r(l[x],l[g])}),e&&f.forEach(function(x,g){x.sort(function(O,H){return e(a[g][O],a[g][H])})}),ae=(B=JV(0,KV-t*s)/B)?t:KV/s,G=0,he=-1;++he<s;){for(q=G,Ye=-1;++Ye<s;){var Me=u[he],Fe=f[Me][Ye],ft=a[Me][Fe],ht=G,Re=G+=ft*B;C[Fe*s+Me]={index:Me,subindex:Fe,startAngle:ht,endAngle:Re,value:ft}}v[Me]={index:Me,startAngle:q,endAngle:G,value:l[Me]},G+=ae}for(he=-1;++he<s;)for(Ye=he-1;++Ye<s;){var ut=C[Ye*s+he],kt=C[he*s+Ye];(ut.value||kt.value)&&h.push(ut.value<kt.value?{source:kt,target:ut}:{source:ut,target:kt})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(t=JV(0,a),o):t},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=Sse(a))._=a,o):i&&i._},o}var Dse=Array.prototype.slice;function $8(t){return function(){return t}}var eU=Math.PI,tU=2*eU,dy=1e-6,Ase=tU-dy;function nU(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function QV(){return new nU}nU.prototype=QV.prototype={constructor:nU,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,f=o-e,h=s-r,v=l-e,C=h*h+v*v;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(C>dy)if(Math.abs(v*u-f*h)>dy&&a){var B=i-s,G=o-l,q=u*u+f*f,ae=B*B+G*G,he=Math.sqrt(q),Ye=Math.sqrt(C),Me=a*Math.tan((eU-Math.acos((q+C-ae)/(2*he*Ye)))/2),Fe=Me/Ye,ft=Me/he;Math.abs(Fe-1)>dy&&(this._+="L"+(r+Fe*h)+","+(e+Fe*v)),this._+="A"+a+","+a+",0,0,"+ +(v*B>h*G)+","+(this._x1=r+ft*u)+","+(this._y1=e+ft*f)}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),f=r+l,h=e+u,v=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>dy||Math.abs(this._y1-h)>dy)&&(this._+="L"+f+","+h),i&&(C<0&&(C=C%tU+tU),C>Ase?this._+="A"+i+","+i+",0,1,"+v+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+v+","+(this._x1=f)+","+(this._y1=h):C>dy&&(this._+="A"+i+","+i+",0,"+ +(C>=eU)+","+v+","+(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 Zd=QV;function Ose(t){return t.source}function Ise(t){return t.target}function Pse(t){return t.radius}function Rse(t){return t.startAngle}function Lse(t){return t.endAngle}function Zse(){var t=Ose,r=Ise,e=Pse,i=Rse,o=Lse,a=null;function s(){var l,u=Dse.call(arguments),f=t.apply(this,u),h=r.apply(this,u),v=+e.apply(this,(u[0]=f,u)),C=i.apply(this,u)-YR,B=o.apply(this,u)-YR,G=v*YV(C),q=v*GV(C),ae=+e.apply(this,(u[0]=h,u)),he=i.apply(this,u)-YR,Ye=o.apply(this,u)-YR;if(a||(a=l=Zd()),a.moveTo(G,q),a.arc(0,0,v,C,B),(C!==he||B!==Ye)&&(a.quadraticCurveTo(0,0,ae*YV(he),ae*GV(he)),a.arc(0,0,ae,he,Ye)),a.quadraticCurveTo(0,0,G,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:$8(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:$8(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:$8(+l),s):o},s.source=function(l){return arguments.length?(t=l,s):t},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 Ic="$";function GR(){}function XV(t,r){var e=new GR;if(t instanceof GR)t.each(function(l,u){e.set(u,l)});else if(Array.isArray(t)){var a,i=-1,o=t.length;if(null==r)for(;++i<o;)e.set(i,t[i]);else for(;++i<o;)e.set(r(a=t[i],i,t),a)}else if(t)for(var s in t)e.set(s,t[s]);return e}GR.prototype=XV.prototype={constructor:GR,has:function(r){return Ic+r in this},get:function(r){return this[Ic+r]},set:function(r,e){return this[Ic+r]=e,this},remove:function(r){var e=Ic+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Ic&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Ic&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Ic&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Ic&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Ic&&++r;return r},empty:function(){for(var r in this)if(r[0]===Ic)return!1;return!0},each:function(r){for(var e in this)e[0]===Ic&&r(this[e],e.slice(1),this)}};var j_=XV;function Nse(){var e,i,o,t=[],r=[];function a(l,u,f,h){if(u>=t.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var G,q,he,v=-1,C=l.length,B=t[u++],ae=j_(),Ye=f();++v<C;)(he=ae.get(G=B(q=l[v])+""))?he.push(q):ae.set(G,[q]);return ae.each(function(Me,Fe){h(Ye,Fe,a(Me,u,f,h))}),Ye}function s(l,u){if(++u>t.length)return l;var f,h=r[u-1];return null!=i&&u>=t.length?f=l.entries():(f=[],l.each(function(v,C){f.push({key:C,values:s(v,u)})})),null!=h?f.sort(function(v,C){return h(v.key,C.key)}):f}return o={object:function(u){return a(u,0,Bse,Fse)},map:function(u){return a(u,0,$V,eY)},entries:function(u){return s(a(u,0,$V,eY),0)},key:function(u){return t.push(u),o},sortKeys:function(u){return r[t.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Bse(){return{}}function Fse(t,r,e){t[r]=e}function $V(){return j_()}function eY(t,r,e){t.set(r,e)}function qR(){}var fy=j_.prototype;function tY(t,r){var e=new qR;if(t instanceof qR)t.each(function(a){e.add(a)});else if(t){var i=-1,o=t.length;if(null==r)for(;++i<o;)e.add(t[i]);else for(;++i<o;)e.add(r(t[i],i,t))}return e}qR.prototype=tY.prototype={constructor:qR,has:fy.has,add:function(r){return this[Ic+(r+="")]=r,this},remove:fy.remove,clear:fy.clear,values:fy.keys,size:fy.size,empty:fy.empty,each:fy.each};var Use=tY;function Hse(t){var r=[];for(var e in t)r.push(e);return r}function jse(t){var r=[];for(var e in t)r.push(t[e]);return r}function zse(t){var r=[];for(var e in t)r.push({key:e,value:t[e]});return r}function lC(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function bS(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function z_(){}var uC=1/.7,cC="\\s*([+-]?\\d+)\\s*",CS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wse=/^#([0-9a-f]{3})$/,Vse=/^#([0-9a-f]{6})$/,Yse=new RegExp("^rgb\\("+[cC,cC,cC]+"\\)$"),Gse=new RegExp("^rgb\\("+[Wf,Wf,Wf]+"\\)$"),qse=new RegExp("^rgba\\("+[cC,cC,cC,CS]+"\\)$"),Kse=new RegExp("^rgba\\("+[Wf,Wf,Wf,CS]+"\\)$"),Jse=new RegExp("^hsl\\("+[CS,Wf,Wf]+"\\)$"),Qse=new RegExp("^hsla\\("+[CS,Wf,Wf,CS]+"\\)$"),nY={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 KR(t){var r;return t=(t+"").trim().toLowerCase(),(r=Wse.exec(t))?new rl((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Vse.exec(t))?rY(parseInt(r[1],16)):(r=Yse.exec(t))?new rl(r[1],r[2],r[3],1):(r=Gse.exec(t))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qse.exec(t))?iY(r[1],r[2],r[3],r[4]):(r=Kse.exec(t))?iY(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Jse.exec(t))?aY(r[1],r[2]/100,r[3]/100,1):(r=Qse.exec(t))?aY(r[1],r[2]/100,r[3]/100,r[4]):nY.hasOwnProperty(t)?rY(nY[t]):"transparent"===t?new rl(NaN,NaN,NaN,0):null}function rY(t){return new rl(t>>16&255,t>>8&255,255&t,1)}function iY(t,r,e,i){return i<=0&&(t=r=e=NaN),new rl(t,r,e,i)}function rU(t){return t instanceof z_||(t=KR(t)),t?new rl((t=t.rgb()).r,t.g,t.b,t.opacity):new rl}function oY(t,r,e,i){return 1===arguments.length?rU(t):new rl(t,r,e,null==i?1:i)}function rl(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function aY(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Vf(t,r,e,i)}function Xse(t){if(t instanceof Vf)return new Vf(t.h,t.s,t.l,t.opacity);if(t instanceof z_||(t=KR(t)),!t)return new Vf;if(t instanceof Vf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Vf(s,l,u,t.opacity)}function sY(t,r,e,i){return 1===arguments.length?Xse(t):new Vf(t,r,e,null==i?1:i)}function Vf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function iU(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}lC(z_,KR,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),lC(rl,oY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 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+")")}})),lC(Vf,sY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new Vf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Vf(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new rl(iU(r>=240?r-240:r+120,a,o),iU(r,a,o),iU(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 lY=Math.PI/180,uY=180/Math.PI,pY=4/29,dC=6/29,hY=3*dC*dC;function oU(t){if(t instanceof Yf)return new Yf(t.l,t.a,t.b,t.opacity);if(t instanceof Eh){if(isNaN(t.h))return new Yf(t.l,0,0,t.opacity);var r=t.h*lY;return new Yf(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}t instanceof rl||(t=rU(t));var s,l,e=uU(t.r),i=uU(t.g),o=uU(t.b),a=aU((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=aU((.4360747*e+.3850649*i+.1430804*o)/.96422),l=aU((.0139322*e+.0971045*i+.7141733*o)/.82521)),new Yf(116*a-16,500*(s-a),200*(a-l),t.opacity)}function mY(t,r,e,i){return 1===arguments.length?oU(t):new Yf(t,r,e,null==i?1:i)}function Yf(t,r,e,i){this.l=+t,this.a=+r,this.b=+e,this.opacity=+i}function aU(t){return t>.008856451679035631?Math.pow(t,1/3):t/hY+pY}function sU(t){return t>dC?t*t*t:hY*(t-pY)}function lU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function uU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function ele(t){if(t instanceof Eh)return new Eh(t.h,t.c,t.l,t.opacity);if(t instanceof Yf||(t=oU(t)),0===t.a&&0===t.b)return new Eh(NaN,0,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*uY;return new Eh(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function _Y(t,r,e,i){return 1===arguments.length?ele(t):new Eh(t,r,e,null==i?1:i)}function Eh(t,r,e,i){this.h=+t,this.c=+r,this.l=+e,this.opacity=+i}lC(Yf,mY,bS(z_,{brighter:function(r){return new Yf(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Yf(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 rl(lU(3.1338561*(e=.96422*sU(e))-1.6168667*(r=1*sU(r))-.4906146*(i=.82521*sU(i))),lU(-.9787684*e+1.9161415*r+.033454*i),lU(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),lC(Eh,_Y,bS(z_,{brighter:function(r){return new Eh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Eh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return oU(this).rgb()}}));var cU=1.78277,dU=-.29227,QR=-.90649,wS=1.97294,vY=wS*QR,yY=wS*cU,bY=cU*dU- -.14861*QR;function tle(t){if(t instanceof hy)return new hy(t.h,t.s,t.l,t.opacity);t instanceof rl||(t=rU(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(bY*i+vY*r-yY*e)/(bY+vY-yY),a=i-o,s=(wS*(e-o)-dU*a)/QR,l=Math.sqrt(s*s+a*a)/(wS*o*(1-o)),u=l?Math.atan2(s,a)*uY-120:NaN;return new hy(u<0?u+360:u,l,o,t.opacity)}function CY(t,r,e,i){return 1===arguments.length?tle(t):new hy(t,r,e,null==i?1:i)}function hy(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}lC(hy,CY,bS(z_,{brighter:function(r){return r=null==r?uC:Math.pow(uC,r),new hy(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new hy(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*lY,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new rl(255*(e+i*(-.14861*o+cU*a)),255*(e+i*(dU*o+QR*a)),255*(e+i*(wS*o)),this.opacity)}}));var wY=Array.prototype.slice;function rle(t,r){return t-r}function my(t){return function(){return t}}function ole(t,r){for(var o,e=-1,i=r.length;++e<i;)if(o=ale(t,r[e]))return o;return 0}function ale(t,r){for(var e=r[0],i=r[1],o=-1,a=0,s=t.length,l=s-1;a<s;l=a++){var u=t[a],f=u[0],h=u[1],v=t[l],C=v[0],B=v[1];if(sle(u,v,r))return 0;h>i!=B>i&&e<(C-f)*(i-h)/(B-h)+f&&(o=-o)}return o}function sle(t,r,e){var i;return function lle(t,r,e){return(r[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(r[1]-t[1])}(t,r,e)&&function ule(t,r,e){return t<=r&&r<=e||e<=r&&r<=t}(t[i=+(t[0]===r[0])],e[i],r[i])}function cle(){}var Mh=[[],[[[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 kY(){var t=1,r=1,e=z1,i=u;function o(f){var h=e(f);if(Array.isArray(h))h=h.slice().sort(rle);else{var v=hh(f),C=v[0],B=v[1];h=R_(C,B,h),h=Nl(Math.floor(C/h)*h,Math.floor(B/h)*h,h)}return h.map(function(G){return a(f,G)})}function a(f,h){var v=[],C=[];return function s(f,h,v){var G,q,ae,he,Ye,Me,C=new Array,B=new Array;for(G=q=-1,he=f[0]>=h,Mh[he<<1].forEach(Fe);++G<t-1;)ae=he,he=f[G+1]>=h,Mh[ae|he<<1].forEach(Fe);for(Mh[he<<0].forEach(Fe);++q<r-1;){for(G=-1,he=f[q*t+t]>=h,Ye=f[q*t]>=h,Mh[he<<1|Ye<<2].forEach(Fe);++G<t-1;)ae=he,he=f[q*t+t+G+1]>=h,Me=Ye,Ye=f[q*t+G+1]>=h,Mh[ae|he<<1|Ye<<2|Me<<3].forEach(Fe);Mh[he|Ye<<3].forEach(Fe)}for(G=-1,Ye=f[q*t]>=h,Mh[Ye<<2].forEach(Fe);++G<t-1;)Me=Ye,Ye=f[q*t+G+1]>=h,Mh[Ye<<2|Me<<3].forEach(Fe);function Fe(ft){var x,g,ht=[ft[0][0]+G,ft[0][1]+q],Re=[ft[1][0]+G,ft[1][1]+q],ut=l(ht),kt=l(Re);(x=B[ut])?(g=C[kt])?(delete B[x.end],delete C[g.start],x===g?(x.ring.push(Re),v(x.ring)):C[x.start]=B[g.end]={start:x.start,end:g.end,ring:x.ring.concat(g.ring)}):(delete B[x.end],x.ring.push(Re),B[x.end=kt]=x):(x=C[kt])?(g=B[ut])?(delete C[x.start],delete B[g.end],x===g?(x.ring.push(Re),v(x.ring)):C[g.start]=B[x.end]={start:g.start,end:x.end,ring:g.ring.concat(x.ring)}):(delete C[x.start],x.ring.unshift(ht),C[x.start=ut]=x):C[ut]=B[kt]={start:ut,end:kt,ring:[ht,Re]}}Mh[Ye<<3].forEach(Fe)}(f,h,function(B){i(B,f,h),function ile(t){for(var r=0,e=t.length,i=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r<e;)i+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return i}(B)>0?v.push([B]):C.push(B)}),C.forEach(function(B){for(var ae,G=0,q=v.length;G<q;++G)if(-1!==ole((ae=v[G])[0],B))return void ae.push(B)}),{type:"MultiPolygon",value:h,coordinates:v}}function l(f){return 2*f[0]+f[1]*(t+1)*4}function u(f,h,v){f.forEach(function(C){var he,B=C[0],G=C[1],q=0|B,ae=0|G,Ye=h[ae*t+q];B>0&&B<t&&q===B&&(he=h[ae*t+q-1],C[0]=B+(v-he)/(Ye-he)-.5),G>0&&G<r&&ae===G&&(he=h[(ae-1)*t+q],C[1]=G+(v-he)/(Ye-he)-.5)})}return o.contour=a,o.size=function(f){if(!arguments.length)return[t,r];var h=Math.ceil(f[0]),v=Math.ceil(f[1]);if(!(h>0&&v>0))throw new Error("invalid size");return t=h,r=v,o},o.thresholds=function(f){return arguments.length?(e="function"==typeof f?f:Array.isArray(f)?my(wY.call(f)):my(f),o):e},o.smooth=function(f){return arguments.length?(i=f?u:cle,o):i===u},o}function fU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=t.data[l+s*i]),l>=e&&(l>=a&&(u-=t.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function pU(t,r,e){for(var i=t.width,o=t.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=t.data[s+l*i]),l>=e&&(l>=a&&(u-=t.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function dle(t){return t[0]}function fle(t){return t[1]}function ple(){var t=dle,r=fle,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,f=my(20);function h(ae){var he=new Float32Array(l*u),Ye=new Float32Array(l*u);ae.forEach(function(ft,ht,Re){var ut=t(ft,ht,Re)+s>>a,kt=r(ft,ht,Re)+s>>a;ut>=0&&ut<l&&kt>=0&&kt<u&&++he[ut+kt*l]}),fU({width:l,height:u,data:he},{width:l,height:u,data:Ye},o>>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a),fU({width:l,height:u,data:he},{width:l,height:u,data:Ye},o>>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a),fU({width:l,height:u,data:he},{width:l,height:u,data:Ye},o>>a),pU({width:l,height:u,data:Ye},{width:l,height:u,data:he},o>>a);var Me=f(he);if(!Array.isArray(Me)){var Fe=J6(he);Me=R_(0,Fe,Me),(Me=Nl(0,Math.floor(Fe/Me)*Me,Me)).shift()}return kY().thresholds(Me).size([l,u])(he).map(v)}function v(ae){return ae.value*=Math.pow(2,-2*a),ae.coordinates.forEach(C),ae}function C(ae){ae.forEach(B)}function B(ae){ae.forEach(G)}function G(ae){ae[0]=ae[0]*Math.pow(2,a)-s,ae[1]=ae[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(ae){return arguments.length?(t="function"==typeof ae?ae:my(+ae),h):t},h.y=function(ae){return arguments.length?(r="function"==typeof ae?ae:my(+ae),h):r},h.size=function(ae){if(!arguments.length)return[e,i];var he=Math.ceil(ae[0]),Ye=Math.ceil(ae[1]);if(!(he>=0||he>=0))throw new Error("invalid size");return e=he,i=Ye,q()},h.cellSize=function(ae){if(!arguments.length)return 1<<a;if(!((ae=+ae)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(ae)/Math.LN2),q()},h.thresholds=function(ae){return arguments.length?(f="function"==typeof ae?ae:Array.isArray(ae)?my(wY.call(ae)):my(ae),h):f},h.bandwidth=function(ae){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((ae=+ae)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*ae*ae+1)-1)/2),q()},h}function hU(t,r,e){arguments.length<3&&(e=r,r=EV().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return MV(t,a);return null}function XR(t){return function(){return t}}function mU(t,r,e,i,o,a,s,l,u,f){this.target=t,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._=f}function hle(){return!Kn.ctrlKey&&!Kn.button}function mle(){return this.parentNode}function _le(t){return null==t?{x:Kn.x,y:Kn.y}:t}function gle(){return navigator.maxTouchPoints||"ontouchstart"in this}function W_(){var l,u,f,h,t=hle,r=mle,e=_le,i=gle,o={},a=Ff("start","drag","end"),s=0,v=0;function C(Fe){Fe.on("mousedown.drag",B).filter(i).on("touchstart.drag",ae).on("touchmove.drag",he).on("touchend.drag touchcancel.drag",Ye).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function B(){if(!h&&t.apply(this,arguments)){var Fe=Me("mouse",r.apply(this,arguments),Rd,this,arguments);!Fe||(gi(Kn.view).on("mousemove.drag",G,!0).on("mouseup.drag",q,!0),jf(Kn.view),IR(),f=!1,l=Kn.clientX,u=Kn.clientY,Fe("start"))}}function G(){if(bh(),!f){var Fe=Kn.clientX-l,ft=Kn.clientY-u;f=Fe*Fe+ft*ft>v}o.mouse("drag")}function q(){gi(Kn.view).on("mousemove.drag mouseup.drag",null),X1(Kn.view,f),bh(),o.mouse("end")}function ae(){if(t.apply(this,arguments)){var Re,ut,Fe=Kn.changedTouches,ft=r.apply(this,arguments),ht=Fe.length;for(Re=0;Re<ht;++Re)(ut=Me(Fe[Re].identifier,ft,hU,this,arguments))&&(IR(),ut("start"))}}function he(){var ht,Re,Fe=Kn.changedTouches,ft=Fe.length;for(ht=0;ht<ft;++ht)(Re=o[Fe[ht].identifier])&&(bh(),Re("drag"))}function Ye(){var ht,Re,Fe=Kn.changedTouches,ft=Fe.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),ht=0;ht<ft;++ht)(Re=o[Fe[ht].identifier])&&(IR(),Re("end"))}function Me(Fe,ft,ht,Re,ut){var x,g,O,kt=ht(ft,Fe),H=a.copy();if(Q1(new mU(C,"beforestart",x,Fe,s,kt[0],kt[1],0,0,H),function(){return null!=(Kn.subject=x=e.apply(Re,ut))&&(g=x.x-kt[0]||0,O=x.y-kt[1]||0,!0)}))return function te(re){var pt,ye=kt;switch(re){case"start":o[Fe]=te,pt=s++;break;case"end":delete o[Fe],--s;case"drag":kt=ht(ft,Fe),pt=s}Q1(new mU(C,re,x,Fe,pt,kt[0]+g,kt[1]+O,kt[0]-ye[0],kt[1]-ye[1],H),H.apply,H,[re,Re,ut])}}return C.filter=function(Fe){return arguments.length?(t="function"==typeof Fe?Fe:XR(!!Fe),C):t},C.container=function(Fe){return arguments.length?(r="function"==typeof Fe?Fe:XR(Fe),C):r},C.subject=function(Fe){return arguments.length?(e="function"==typeof Fe?Fe:XR(Fe),C):e},C.touchable=function(Fe){return arguments.length?(i="function"==typeof Fe?Fe:XR(!!Fe),C):i},C.on=function(){var Fe=a.on.apply(a,arguments);return Fe===a?C:Fe},C.clickDistance=function(Fe){return arguments.length?(v=(Fe=+Fe)*Fe,C):Math.sqrt(v)},C}mU.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var TY={},_U={};function EY(t){return new Function("d","return {"+t.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function yU(t){var r=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function o(f,h){var q,v=[],C=f.length,B=0,G=0,ae=C<=0,he=!1;function Ye(){if(ae)return _U;if(he)return he=!1,TY;var Fe,ht,ft=B;if(34===f.charCodeAt(ft)){for(;B++<C&&34!==f.charCodeAt(B)||34===f.charCodeAt(++B););return(Fe=B)>=C?ae=!0:10===(ht=f.charCodeAt(B++))?he=!0:13===ht&&(he=!0,10===f.charCodeAt(B)&&++B),f.slice(ft+1,Fe-1).replace(/""/g,'"')}for(;B<C;){if(10===(ht=f.charCodeAt(Fe=B++)))he=!0;else if(13===ht)he=!0,10===f.charCodeAt(B)&&++B;else if(ht!==e)continue;return f.slice(ft,Fe)}return ae=!0,f.slice(ft,C)}for(10===f.charCodeAt(C-1)&&--C,13===f.charCodeAt(C-1)&&--C;(q=Ye())!==_U;){for(var Me=[];q!==TY&&q!==_U;)Me.push(q),q=Ye();h&&null==(Me=h(Me,G++))||v.push(Me)}return v}function l(f){return f.map(u).join(t)}function u(f){return null==f?"":r.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:function i(f,h){var v,C,B=o(f,function(G,q){if(v)return v(G,q-1);C=G,v=h?function vle(t,r){var e=EY(t);return function(i,o){return r(e(i),o,t)}}(G,h):EY(G)});return B.columns=C||[],B},parseRows:o,format:function a(f,h){return null==h&&(h=function yle(t){var r=Object.create(null),e=[];return t.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(f)),[h.map(u).join(t)].concat(f.map(function(v){return h.map(function(C){return u(v[C])}).join(t)})).join("\n")},formatRows:function s(f){return f.map(l).join("\n")}}}var $R=yU(","),ble=$R.parse,Cle=$R.parseRows,wle=$R.format,kle=$R.formatRows,eL=yU("\t"),Tle=eL.parse,Ele=eL.parseRows,Mle=eL.format,Sle=eL.formatRows;function xle(t){return+t}function Dle(t){return t*t}function Ale(t){return t*(2-t)}function MY(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var Ole=function t(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=t,e}(3),Ile=function t(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=t,e}(3),SY=function t(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=t,e}(3),xY=Math.PI,DY=xY/2;function Ple(t){return 1==+t?1:1-Math.cos(t*DY)}function Rle(t){return Math.sin(t*DY)}function AY(t){return(1-Math.cos(xY*t))/2}function V_(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Lle(t){return V_(1-+t)}function Zle(t){return 1-V_(t)}function OY(t){return((t*=2)<=1?V_(1-t):2-V_(t-1))/2}function Nle(t){return 1-Math.sqrt(1-t*t)}function Ble(t){return Math.sqrt(1- --t*t)}function IY(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var CU=4/11,tL=7.5625;function Gle(t){return 1-TS(1-t)}function TS(t){return(t=+t)<CU?tL*t*t:t<.7272727272727273?tL*(t-=.5454545454545454)*t+.75:t<.9090909090909091?tL*(t-=.8181818181818182)*t+.9375:tL*(t-=.9545454545454546)*t+.984375}function qle(t){return((t*=2)<=1?1-TS(1-t):TS(t-1)+1)/2}var wU=1.70158,Kle=function t(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=t,e}(wU),Jle=function t(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=t,e}(wU),PY=function t(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=t,e}(wU),fC=2*Math.PI,Qle=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return r*V_(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3),RY=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return 1-r*V_(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3),Xle=function t(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=fC);function o(a){return((a=2*a-1)<0?r*V_(-a)*Math.sin((i-a)/e):2-r*V_(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return t(a,e*fC)},o.period=function(a){return t(r,a)},o}(1,.3);function $le(t,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-t,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==t&&(t=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(t=+o,i):t},i.y=function(o){return arguments.length?(r=+o,i):r},i}function Ms(t){return function(){return t}}function Y_(){return 1e-6*(Math.random()-.5)}function LY(t,r,e,i){if(isNaN(r)||isNaN(e))return t;var o,v,C,B,G,q,ae,he,Ye,a=t._root,s={data:i},l=t._x0,u=t._y0,f=t._x1,h=t._y1;if(!a)return t._root=s,t;for(;a.length;)if((q=r>=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[he=ae<<1|q]))return o[he]=s,t;if(B=+t._x.call(null,a.data),G=+t._y.call(null,a.data),r===B&&e===G)return s.next=a,o?o[he]=s:t._root=s,t;do{o=o?o[he]=new Array(4):t._root=new Array(4),(q=r>=(v=(l+f)/2))?l=v:f=v,(ae=e>=(C=(u+h)/2))?u=C:h=C}while((he=ae<<1|q)==(Ye=(G>=C)<<1|B>=v));return o[Ye]=a,o[he]=s,t}function Hl(t,r,e,i,o){this.node=t,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function fue(t){return t[0]}function hue(t){return t[1]}function nL(t,r,e){var i=new EU(null==r?fue:r,null==e?hue:e,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function EU(t,r,e,i,o,a){this._x=t,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function ZY(t){for(var r={data:t.data},e=r;t=t.next;)e=e.next={data:t.data};return r}var jl=nL.prototype=EU.prototype;function _ue(t){return t.x+t.vx}function gue(t){return t.y+t.vy}function vue(t){var r,e,i=1,o=1;function a(){for(var u,h,v,C,B,G,q,f=r.length,ae=0;ae<o;++ae)for(h=nL(r,_ue,gue).visitAfter(s),u=0;u<f;++u)v=r[u],G=e[v.index],q=G*G,C=v.x+v.vx,B=v.y+v.vy,h.visit(he);function he(Ye,Me,Fe,ft,ht){var Re=Ye.data,ut=Ye.r,kt=G+ut;if(!Re)return Me>C+kt||ft<C-kt||Fe>B+kt||ht<B-kt;if(Re.index>v.index){var x=C-Re.x-Re.vx,g=B-Re.y-Re.vy,O=x*x+g*g;O<kt*kt&&(0===x&&(O+=(x=Y_())*x),0===g&&(O+=(g=Y_())*g),O=(kt-(O=Math.sqrt(O)))/O*i,v.vx+=(x*=O)*(kt=(ut*=ut)/(q+ut)),v.vy+=(g*=O)*kt,Re.vx-=x*(kt=1-kt),Re.vy-=g*kt)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var f=u.r=0;f<4;++f)u[f]&&u[f].r>u.r&&(u.r=u[f].r)}function l(){if(r){var u,h,f=r.length;for(e=new Array(f),u=0;u<f;++u)h=r[u],e[h.index]=+t(h,u,r)}}return"function"!=typeof t&&(t=Ms(null==t?1:+t)),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?(t="function"==typeof u?u:Ms(+u),l(),a):t},a}function yue(t){return t.index}function NY(t,r){var e=t.get(r);if(!e)throw new Error("missing: "+r);return e}function bue(t){var i,a,s,l,u,r=yue,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=Ms(30),f=1;function v(q){for(var ae=0,he=t.length;ae<f;++ae)for(var Me,Fe,ft,ht,Re,ut,kt,Ye=0;Ye<he;++Ye)Fe=(Me=t[Ye]).source,ht=(ft=Me.target).x+ft.vx-Fe.x-Fe.vx||Y_(),Re=ft.y+ft.vy-Fe.y-Fe.vy||Y_(),ht*=ut=((ut=Math.sqrt(ht*ht+Re*Re))-a[Ye])/ut*q*i[Ye],Re*=ut,ft.vx-=ht*(kt=u[Ye]),ft.vy-=Re*kt,Fe.vx+=ht*(kt=1-kt),Fe.vy+=Re*kt}function C(){if(s){var q,Me,ae=s.length,he=t.length,Ye=j_(s,r);for(q=0,l=new Array(ae);q<he;++q)(Me=t[q]).index=q,"object"!=typeof Me.source&&(Me.source=NY(Ye,Me.source)),"object"!=typeof Me.target&&(Me.target=NY(Ye,Me.target)),l[Me.source.index]=(l[Me.source.index]||0)+1,l[Me.target.index]=(l[Me.target.index]||0)+1;for(q=0,u=new Array(he);q<he;++q)Me=t[q],u[q]=l[Me.source.index]/(l[Me.source.index]+l[Me.target.index]);i=new Array(he),B(),a=new Array(he),G()}}function B(){if(s)for(var q=0,ae=t.length;q<ae;++q)i[q]=+e(t[q],q,t)}function G(){if(s)for(var q=0,ae=t.length;q<ae;++q)a[q]=+o(t[q],q,t)}return null==t&&(t=[]),v.initialize=function(q){s=q,C()},v.links=function(q){return arguments.length?(t=q,C(),v):t},v.id=function(q){return arguments.length?(r=q,v):r},v.iterations=function(q){return arguments.length?(f=+q,v):f},v.strength=function(q){return arguments.length?(e="function"==typeof q?q:Ms(+q),B(),v):e},v.distance=function(q){return arguments.length?(o="function"==typeof q?q:Ms(+q),G(),v):o},v}function Cue(t){return t.x}function wue(t){return t.y}jl.copy=function(){var e,i,t=new EU(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return t;if(!r.length)return t._root=ZY(r),t;for(e=[{source:r,target:t._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]=ZY(i));return t},jl.add=function eue(t){var r=+this._x.call(null,t),e=+this._y.call(null,t);return LY(this.cover(r,e),r,e,t)},jl.addAll=function tue(t){var r,e,o,a,i=t.length,s=new Array(i),l=new Array(i),u=1/0,f=1/0,h=-1/0,v=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=t[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<f&&(f=a),a>v&&(v=a));if(u>h||f>v)return this;for(this.cover(u,f).cover(h,v),e=0;e<i;++e)LY(this,s[e],l[e],t[e]);return this},jl.cover=function nue(t,r){if(isNaN(t=+t)||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(t))+1,a=(i=Math.floor(r))+1;else{for(var u,f,s=o-e,l=this._root;e>t||t>=o||i>r||r>=a;)switch(f=(r<i)<<1|t<e,u=new Array(4),u[f]=l,l=u,s*=2,f){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},jl.data=function rue(){var t=[];return this.visit(function(r){if(!r.length)do{t.push(r.data)}while(r=r.next)}),t},jl.extent=function iue(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},jl.find=function oue(t,r,e){var i,s,l,u,f,G,q,o=this._x0,a=this._y0,h=this._x1,v=this._y1,C=[],B=this._root;for(B&&C.push(new Hl(B,o,a,h,v)),null==e?e=1/0:(o=t-e,a=r-e,h=t+e,v=r+e,e*=e);G=C.pop();)if(!(!(B=G.node)||(s=G.x0)>h||(l=G.y0)>v||(u=G.x1)<o||(f=G.y1)<a))if(B.length){var ae=(s+u)/2,he=(l+f)/2;C.push(new Hl(B[3],ae,he,u,f),new Hl(B[2],s,he,ae,f),new Hl(B[1],ae,l,u,he),new Hl(B[0],s,l,ae,he)),(q=(r>=he)<<1|t>=ae)&&(G=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=G)}else{var Ye=t-+this._x.call(null,B.data),Me=r-+this._y.call(null,B.data),Fe=Ye*Ye+Me*Me;if(Fe<e){var ft=Math.sqrt(e=Fe);o=t-ft,a=r-ft,h=t+ft,v=r+ft,i=B.data}}return i},jl.remove=function aue(t){if(isNaN(h=+this._x.call(null,t))||isNaN(v=+this._y.call(null,t)))return this;var r,i,o,a,h,v,C,B,G,q,ae,he,e=this._root,s=this._x0,l=this._y0,u=this._x1,f=this._y1;if(!e)return this;if(e.length)for(;;){if((G=h>=(C=(s+u)/2))?s=C:u=C,(q=v>=(B=(l+f)/2))?l=B:f=B,r=e,!(e=e[ae=q<<1|G]))return this;if(!e.length)break;(r[ae+1&3]||r[ae+2&3]||r[ae+3&3])&&(i=r,he=ae)}for(;e.data!==t;)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[ae]=a:delete r[ae],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[he]=e:this._root=e),this):(this._root=a,this)},jl.removeAll=function sue(t){for(var r=0,e=t.length;r<e;++r)this.remove(t[r]);return this},jl.root=function lue(){return this._root},jl.size=function uue(){var t=0;return this.visit(function(r){if(!r.length)do{++t}while(r=r.next)}),t},jl.visit=function cue(t){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new Hl(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!t(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var f=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new Hl(o,f,h,l,u)),(o=i[2])&&r.push(new Hl(o,a,h,f,u)),(o=i[1])&&r.push(new Hl(o,f,s,l,h)),(o=i[0])&&r.push(new Hl(o,a,s,f,h))}return this},jl.visitAfter=function due(t){var i,r=[],e=[];for(this._root&&r.push(new Hl(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,f=i.y1,h=(s+u)/2,v=(l+f)/2;(a=o[0])&&r.push(new Hl(a,s,l,h,v)),(a=o[1])&&r.push(new Hl(a,h,l,u,v)),(a=o[2])&&r.push(new Hl(a,s,v,h,f)),(a=o[3])&&r.push(new Hl(a,h,v,u,f))}e.push(i)}for(;i=e.pop();)t(i.node,i.x0,i.y0,i.x1,i.y1);return this},jl.x=function pue(t){return arguments.length?(this._x=t,this):this._x},jl.y=function mue(t){return arguments.length?(this._y=t,this):this._y};var BY,Tue=Math.PI*(3-Math.sqrt(5));function Eue(t){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=j_(),u=_S(h),f=Ff("tick","end");function h(){v(),f.call("tick",r),e<i&&(u.stop(),f.call("end",r))}function v(){var G,ae,q=t.length;for(e+=(a-e)*o,l.each(function(he){he(e)}),G=0;G<q;++G)null==(ae=t[G]).fx?ae.x+=ae.vx*=s:(ae.x=ae.fx,ae.vx=0),null==ae.fy?ae.y+=ae.vy*=s:(ae.y=ae.fy,ae.vy=0)}function C(){for(var ae,G=0,q=t.length;G<q;++G){if((ae=t[G]).index=G,isNaN(ae.x)||isNaN(ae.y)){var he=10*Math.sqrt(G),Ye=G*Tue;ae.x=he*Math.cos(Ye),ae.y=he*Math.sin(Ye)}(isNaN(ae.vx)||isNaN(ae.vy))&&(ae.vx=ae.vy=0)}}function B(G){return G.initialize&&G.initialize(t),G}return null==t&&(t=[]),C(),r={tick:v,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(t=q,C(),l.each(B),r):t},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,ae){return arguments.length>1?(null==ae?l.remove(q):l.set(q,B(ae)),r):l.get(q)},find:function(q,ae,he){var Fe,ft,ht,Re,ut,Ye=0,Me=t.length;for(null==he?he=1/0:he*=he,Ye=0;Ye<Me;++Ye)(ht=(Fe=q-(Re=t[Ye]).x)*Fe+(ft=ae-Re.y)*ft)<he&&(ut=Re,he=ht);return ut},on:function(q,ae){return arguments.length>1?(f.on(q,ae),r):f.on(q)}}}function Mue(){var t,r,e,o,i=Ms(-30),a=1,s=1/0,l=.81;function u(C){var B,G=t.length,q=nL(t,Cue,wue).visitAfter(h);for(e=C,B=0;B<G;++B)r=t[B],q.visit(v)}function f(){if(t){var C,G,B=t.length;for(o=new Array(B),C=0;C<B;++C)G=t[C],o[G.index]=+i(G,C,t)}}function h(C){var G,q,he,Ye,Me,B=0,ae=0;if(C.length){for(he=Ye=Me=0;Me<4;++Me)(G=C[Me])&&(q=Math.abs(G.value))&&(B+=G.value,ae+=q,he+=q*G.x,Ye+=q*G.y);C.x=he/ae,C.y=Ye/ae}else{(G=C).x=G.data.x,G.y=G.data.y;do{B+=o[G.data.index]}while(G=G.next)}C.value=B}function v(C,B,G,q){if(!C.value)return!0;var ae=C.x-r.x,he=C.y-r.y,Ye=q-B,Me=ae*ae+he*he;if(Ye*Ye/l<Me)return Me<s&&(0===ae&&(Me+=(ae=Y_())*ae),0===he&&(Me+=(he=Y_())*he),Me<a&&(Me=Math.sqrt(a*Me)),r.vx+=ae*C.value*e/Me,r.vy+=he*C.value*e/Me),!0;if(!(C.length||Me>=s)){(C.data!==r||C.next)&&(0===ae&&(Me+=(ae=Y_())*ae),0===he&&(Me+=(he=Y_())*he),Me<a&&(Me=Math.sqrt(a*Me)));do{C.data!==r&&(Ye=o[C.data.index]*e/Me,r.vx+=ae*Ye,r.vy+=he*Ye)}while(C=C.next)}}return u.initialize=function(C){t=C,f()},u.strength=function(C){return arguments.length?(i="function"==typeof C?C:Ms(+C),f(),u):i},u.distanceMin=function(C){return arguments.length?(a=C*C,u):Math.sqrt(a)},u.distanceMax=function(C){return arguments.length?(s=C*C,u):Math.sqrt(s)},u.theta=function(C){return arguments.length?(l=C*C,u):Math.sqrt(l)},u}function Sue(t,r,e){var i,a,s,o=Ms(.1);function l(f){for(var h=0,v=i.length;h<v;++h){var C=i[h],B=C.x-r||1e-6,G=C.y-e||1e-6,q=Math.sqrt(B*B+G*G),ae=(s[h]-q)*a[h]*f/q;C.vx+=B*ae,C.vy+=G*ae}}function u(){if(i){var f,h=i.length;for(a=new Array(h),s=new Array(h),f=0;f<h;++f)s[f]=+t(i[f],f,i),a[f]=isNaN(s[f])?0:+o(i[f],f,i)}}return"function"!=typeof t&&(t=Ms(+t)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(f){i=f,u()},l.strength=function(f){return arguments.length?(o="function"==typeof f?f:Ms(+f),u(),l):o},l.radius=function(f){return arguments.length?(t="function"==typeof f?f:Ms(+f),u(),l):t},l.x=function(f){return arguments.length?(r=+f,l):r},l.y=function(f){return arguments.length?(e=+f,l):e},l}function xue(t){var e,i,o,r=Ms(.1);function a(l){for(var h,u=0,f=e.length;u<f;++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]=+t(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof t&&(t=Ms(null==t?0:+t)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:Ms(+l),s(),a):r},a.x=function(l){return arguments.length?(t="function"==typeof l?l:Ms(+l),s(),a):t},a}function Due(t){var e,i,o,r=Ms(.1);function a(l){for(var h,u=0,f=e.length;u<f;++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]=+t(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof t&&(t=Ms(null==t?0:+t)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:Ms(+l),s(),a):r},a.y=function(l){return arguments.length?(t="function"==typeof l?l:Ms(+l),s(),a):t},a}function rL(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function pC(t){return(t=rL(Math.abs(t)))?t[1]:NaN}function FY(t,r){var e=rL(t,r);if(!e)return t+"";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 UY={"":function Iue(t,r){e:for(var a,e=(t=t.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(t[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?t.slice(0,o)+t.slice(a+1):t},"%":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 FY(100*r,e)},r:FY,s:function Pue(t,r){var e=rL(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(BY=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")+rL(t,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)}},Rue=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function iL(t){return new MU(t)}function MU(t){if(!(r=Rue.exec(t)))throw new Error("invalid format: "+t);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],f=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):UY[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=f,this.type=h}function HY(t){return t}iL.prototype=MU.prototype,MU.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 oL,WY,VY,jY=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function zY(t){var r=t.grouping&&t.thousands?function Aue(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(t.grouping,t.thousands):HY,e=t.currency,i=t.decimal,o=t.numerals?function Oue(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(t.numerals):HY,a=t.percent||"%";function s(u){var f=(u=iL(u)).fill,h=u.align,v=u.sign,C=u.symbol,B=u.zero,G=u.width,q=u.comma,ae=u.precision,he=u.type,Ye="$"===C?e[0]:"#"===C&&/[boxX]/.test(he)?"0"+he.toLowerCase():"",Me="$"===C?e[1]:/[%p]/.test(he)?a:"",Fe=UY[he],ft=!he||/[defgprs%]/.test(he);function ht(Re){var x,g,O,ut=Ye,kt=Me;if("c"===he)kt=Fe(Re)+kt,Re="";else{var H=(Re=+Re)<0;if(Re=Fe(Math.abs(Re),ae),H&&0==+Re&&(H=!1),ut=(H?"("===v?v:"-":"-"===v||"("===v?"":v)+ut,kt=("s"===he?jY[8+BY/3]:"")+kt+(H&&"("===v?")":""),ft)for(x=-1,g=Re.length;++x<g;)if(48>(O=Re.charCodeAt(x))||O>57){kt=(46===O?i+Re.slice(x+1):Re.slice(x))+kt,Re=Re.slice(0,x);break}}q&&!B&&(Re=r(Re,1/0));var te=ut.length+Re.length+kt.length,re=te<G?new Array(G-te+1).join(f):"";switch(q&&B&&(Re=r(re+Re,re.length?G-kt.length:1/0),re=""),h){case"<":Re=ut+Re+kt+re;break;case"=":Re=ut+re+Re+kt;break;case"^":Re=re.slice(0,te=re.length>>1)+ut+Re+kt+re.slice(te);break;default:Re=re+ut+Re+kt}return o(Re)}return ae=null==ae?he?6:12:/[gprs]/.test(he)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae)),ht.toString=function(){return u+""},ht}return{format:s,formatPrefix:function l(u,f){var h=s(((u=iL(u)).type="f",u)),v=3*Math.max(-8,Math.min(8,Math.floor(pC(f)/3))),C=Math.pow(10,-v),B=jY[8+v/3];return function(G){return h(C*G)+B}}}}function YY(t){return oL=zY(t),WY=oL.format,VY=oL.formatPrefix,oL}function Lue(t){return Math.max(0,-pC(Math.abs(t)))}function Zue(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pC(r)/3)))-pC(Math.abs(t)))}function Nue(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,pC(r)-pC(t))+1}function G_(){return new aL}function aL(){this.reset()}YY({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),aL.prototype={constructor:aL,reset:function(){this.s=this.t=0},add:function(r){GY(sL,r,this.t),GY(this,sL.s,this.s),this.s?this.t+=sL.t:this.s=sL.t},valueOf:function(){return this.s}};var sL=new aL;function GY(t,r,e){var i=t.s=r+e,o=i-r,a=i-o;t.t=r-a+(e-o)}var Fr=1e-6,oo=Math.PI,Va=oo/2,lL=oo/4,pu=2*oo,ea=180/oo,Jr=oo/180,Eo=Math.abs,hC=Math.atan,zl=Math.atan2,Ur=Math.cos,uL=Math.ceil,KY=Math.exp,cL=(Math.floor,Math.log),SU=Math.pow,Dr=Math.sin,ES=Math.sign||function(t){return t>0?1:t<0?-1:0},Ss=Math.sqrt,xU=Math.tan;function JY(t){return t>1?0:t<-1?oo:Math.acos(t)}function zu(t){return t>1?Va:t<-1?-Va:Math.asin(t)}function QY(t){return(t=Dr(t/2))*t}function Ma(){}function dL(t,r){t&&$Y.hasOwnProperty(t.type)&&$Y[t.type](t,r)}var XY={Feature:function(r,e){dL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)dL(i[o].geometry,e)}},$Y={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){DU(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)DU(i[o],e,0)},Polygon:function(r,e){eG(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)eG(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)dL(i[o],e)}};function DU(t,r,e){var a,i=-1,o=t.length-e;for(r.lineStart();++i<o;)a=t[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function eG(t,r){var e=-1,i=t.length;for(r.polygonStart();++e<i;)DU(t[e],r,1);r.polygonEnd()}function Nd(t,r){t&&XY.hasOwnProperty(t.type)?XY[t.type](t,r):dL(t,r)}var tG,nG,AU,OU,IU,fL=G_(),pL=G_(),Gf={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){fL.reset(),Gf.lineStart=Bue,Gf.lineEnd=Fue},polygonEnd:function(){var r=+fL;pL.add(r<0?pu+r:r),this.lineStart=this.lineEnd=this.point=Ma},sphere:function(){pL.add(pu)}};function Bue(){Gf.point=Uue}function Fue(){rG(tG,nG)}function Uue(t,r){Gf.point=rG,tG=t,nG=r,AU=t*=Jr,OU=Ur(r=(r*=Jr)/2+lL),IU=Dr(r)}function rG(t,r){var e=(t*=Jr)-AU,i=e>=0?1:-1,o=i*e,a=Ur(r=(r*=Jr)/2+lL),s=Dr(r),l=IU*s,u=OU*a+l*Ur(o),f=l*i*Dr(o);fL.add(zl(f,u)),AU=t,OU=a,IU=s}function Hue(t){return pL.reset(),Nd(t,Gf),2*pL}function hL(t){return[zl(t[1],t[0]),zu(t[2])]}function _y(t){var r=t[0],e=t[1],i=Ur(e);return[i*Ur(r),i*Dr(r),Dr(e)]}function mL(t,r){return t[0]*r[0]+t[1]*r[1]+t[2]*r[2]}function mC(t,r){return[t[1]*r[2]-t[2]*r[1],t[2]*r[0]-t[0]*r[2],t[0]*r[1]-t[1]*r[0]]}function PU(t,r){t[0]+=r[0],t[1]+=r[1],t[2]+=r[2]}function _L(t,r){return[t[0]*r,t[1]*r,t[2]*r]}function gL(t){var r=Ss(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=r,t[1]/=r,t[2]/=r}var Ya,Wu,is,Pc,gy,iG,oG,_C,q_,Sh,MS=G_(),xh={point:RU,lineStart:sG,lineEnd:lG,polygonStart:function(){xh.point=uG,xh.lineStart=jue,xh.lineEnd=zue,MS.reset(),Gf.polygonStart()},polygonEnd:function(){Gf.polygonEnd(),xh.point=RU,xh.lineStart=sG,xh.lineEnd=lG,fL<0?(Ya=-(is=180),Wu=-(Pc=90)):MS>Fr?Pc=90:MS<-Fr&&(Wu=-90),Sh[0]=Ya,Sh[1]=is}};function RU(t,r){q_.push(Sh=[Ya=t,is=t]),r<Wu&&(Wu=r),r>Pc&&(Pc=r)}function aG(t,r){var e=_y([t*Jr,r*Jr]);if(_C){var i=mC(_C,e),a=mC([i[1],-i[0],0],i);gL(a),a=hL(a);var f,s=t-gy,l=s>0?1:-1,u=a[0]*ea*l,h=Eo(s)>180;h^(l*gy<u&&u<l*t)?(f=a[1]*ea)>Pc&&(Pc=f):h^(l*gy<(u=(u+360)%360-180)&&u<l*t)?(f=-a[1]*ea)<Wu&&(Wu=f):(r<Wu&&(Wu=r),r>Pc&&(Pc=r)),h?t<gy?Vu(Ya,t)>Vu(Ya,is)&&(is=t):Vu(t,is)>Vu(Ya,is)&&(Ya=t):is>=Ya?(t<Ya&&(Ya=t),t>is&&(is=t)):t>gy?Vu(Ya,t)>Vu(Ya,is)&&(is=t):Vu(t,is)>Vu(Ya,is)&&(Ya=t)}else q_.push(Sh=[Ya=t,is=t]);r<Wu&&(Wu=r),r>Pc&&(Pc=r),_C=e,gy=t}function sG(){xh.point=aG}function lG(){Sh[0]=Ya,Sh[1]=is,xh.point=RU,_C=null}function uG(t,r){if(_C){var e=t-gy;MS.add(Eo(e)>180?e+(e>0?360:-360):e)}else iG=t,oG=r;Gf.point(t,r),aG(t,r)}function jue(){Gf.lineStart()}function zue(){uG(iG,oG),Gf.lineEnd(),Eo(MS)>Fr&&(Ya=-(is=180)),Sh[0]=Ya,Sh[1]=is,_C=null}function Vu(t,r){return(r-=t)<0?r+360:r}function Wue(t,r){return t[0]-r[0]}function cG(t,r){return t[0]<=t[1]?t[0]<=r&&r<=t[1]:r<t[0]||t[1]<r}function Vue(t){var r,e,i,o,a,s,l;if(Pc=is=-(Ya=Wu=1/0),q_=[],Nd(t,xh),e=q_.length){for(q_.sort(Wue),r=1,a=[i=q_[0]];r<e;++r)cG(i,(o=q_[r])[0])||cG(i,o[1])?(Vu(i[0],o[1])>Vu(i[0],i[1])&&(i[1]=o[1]),Vu(o[0],i[1])>Vu(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=Vu(i[1],o[0]))>s&&(s=l,Ya=o[0],is=i[1])}return q_=Sh=null,Ya===1/0||Wu===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ya,Wu],[is,Pc]]}var SS,vL,yL,bL,CL,wL,kL,TL,LU,ZU,NU,dG,fG,Wl,Vl,Yl,Bd={sphere:Ma,point:BU,lineStart:pG,lineEnd:hG,polygonStart:function(){Bd.lineStart=que,Bd.lineEnd=Kue},polygonEnd:function(){Bd.lineStart=pG,Bd.lineEnd=hG}};function BU(t,r){t*=Jr;var e=Ur(r*=Jr);xS(e*Ur(t),e*Dr(t),Dr(r))}function xS(t,r,e){++SS,yL+=(t-yL)/SS,bL+=(r-bL)/SS,CL+=(e-CL)/SS}function pG(){Bd.point=Yue}function Yue(t,r){t*=Jr;var e=Ur(r*=Jr);Wl=e*Ur(t),Vl=e*Dr(t),Yl=Dr(r),Bd.point=Gue,xS(Wl,Vl,Yl)}function Gue(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Dr(t),a=Dr(r),s=zl(Ss((s=Vl*a-Yl*o)*s+(s=Yl*i-Wl*a)*s+(s=Wl*o-Vl*i)*s),Wl*i+Vl*o+Yl*a);vL+=s,wL+=s*(Wl+(Wl=i)),kL+=s*(Vl+(Vl=o)),TL+=s*(Yl+(Yl=a)),xS(Wl,Vl,Yl)}function hG(){Bd.point=BU}function que(){Bd.point=Jue}function Kue(){mG(dG,fG),Bd.point=BU}function Jue(t,r){dG=t,fG=r,t*=Jr,r*=Jr,Bd.point=mG;var e=Ur(r);Wl=e*Ur(t),Vl=e*Dr(t),Yl=Dr(r),xS(Wl,Vl,Yl)}function mG(t,r){t*=Jr;var e=Ur(r*=Jr),i=e*Ur(t),o=e*Dr(t),a=Dr(r),s=Vl*a-Yl*o,l=Yl*i-Wl*a,u=Wl*o-Vl*i,f=Ss(s*s+l*l+u*u),h=zu(f),v=f&&-h/f;LU+=v*s,ZU+=v*l,NU+=v*u,vL+=h,wL+=h*(Wl+(Wl=i)),kL+=h*(Vl+(Vl=o)),TL+=h*(Yl+(Yl=a)),xS(Wl,Vl,Yl)}function Que(t){SS=vL=yL=bL=CL=wL=kL=TL=LU=ZU=NU=0,Nd(t,Bd);var r=LU,e=ZU,i=NU,o=r*r+e*e+i*i;return o<1e-12&&(r=wL,e=kL,i=TL,vL<Fr&&(r=yL,e=bL,i=CL),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[zl(e,r)*ea,zu(i/Ss(o))*ea]}function gC(t){return function(){return t}}function FU(t,r){function e(i,o){return i=t(i,o),r(i[0],i[1])}return t.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&t.invert(i[0],i[1])}),e}function UU(t,r){return[t>oo?t-pu:t<-oo?t+pu:t,r]}function HU(t,r,e){return(t%=pu)?r||e?FU(gG(t),vG(r,e)):gG(t):r||e?vG(r,e):UU}function _G(t){return function(r,e){return[(r+=t)>oo?r-pu:r<-oo?r+pu:r,e]}}function gG(t){var r=_G(t);return r.invert=_G(-t),r}function vG(t,r){var e=Ur(t),i=Dr(t),o=Ur(r),a=Dr(r);function s(l,u){var f=Ur(u),h=Ur(l)*f,v=Dr(l)*f,C=Dr(u),B=C*e+h*i;return[zl(v*o-B*a,h*e-C*i),zu(B*o+v*a)]}return s.invert=function(l,u){var f=Ur(u),h=Ur(l)*f,v=Dr(l)*f,C=Dr(u),B=C*o-v*a;return[zl(v*o+C*a,h*e+B*i),zu(B*e-h*i)]},s}function yG(t){function r(e){return(e=t(e[0]*Jr,e[1]*Jr))[0]*=ea,e[1]*=ea,e}return t=HU(t[0]*Jr,t[1]*Jr,t.length>2?t[2]*Jr:0),r.invert=function(e){return(e=t.invert(e[0]*Jr,e[1]*Jr))[0]*=ea,e[1]*=ea,e},r}function bG(t,r,e,i,o,a){if(e){var s=Ur(r),l=Dr(r),u=i*e;null==o?(o=r+i*pu,a=r-u/2):(o=CG(s,o),a=CG(s,a),(i>0?o<a:o>a)&&(o+=i*pu));for(var f,h=o;i>0?h>a:h<a;h-=u)f=hL([s,-l*Ur(h),-l*Dr(h)]),t.point(f[0],f[1])}}function CG(t,r){(r=_y(r))[0]-=t,gL(r);var e=JY(-r[1]);return((-r[2]<0?-e:e)+pu-Fr)%pu}function Xue(){var i,o,t=gC([0,0]),r=gC(90),e=gC(6),a={point:function s(u,f){i.push(u=o(u,f)),u[0]*=ea,u[1]*=ea}};function l(){var u=t.apply(this,arguments),f=r.apply(this,arguments)*Jr,h=e.apply(this,arguments)*Jr;return i=[],o=HU(-u[0]*Jr,-u[1]*Jr,0).invert,bG(a,f,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(t="function"==typeof u?u:gC([+u[0],+u[1]]),l):t},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:gC(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:gC(+u),l):e},l}function wG(){var r,t=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){t.push(r=[])},lineEnd:Ma,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var i=t;return t=[],r=null,i}}}function EL(t,r){return Eo(t[0]-r[0])<Fr&&Eo(t[1]-r[1])<Fr}function ML(t,r,e,i){this.x=t,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function kG(t,r,e,i,o){var l,u,a=[],s=[];if(t.forEach(function(G){if(!((q=G.length-1)<=0)){var q,Ye,ae=G[0],he=G[q];if(EL(ae,he)){for(o.lineStart(),l=0;l<q;++l)o.point((ae=G[l])[0],ae[1]);return void o.lineEnd()}a.push(Ye=new ML(ae,G,null,!0)),s.push(Ye.o=new ML(ae,null,Ye,!1)),a.push(Ye=new ML(he,G,null,!1)),s.push(Ye.o=new ML(he,null,Ye,!0))}}),a.length){for(s.sort(r),TG(a),TG(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,v,f=a[0];;){for(var C=f,B=!0;C.v;)if((C=C.n)===f)return;h=C.z,o.lineStart();do{if(C.v=C.o.v=!0,C.e){if(B)for(l=0,u=h.length;l<u;++l)o.point((v=h[l])[0],v[1]);else i(C.x,C.n.x,1,o);C=C.n}else{if(B)for(h=C.p.z,l=h.length-1;l>=0;--l)o.point((v=h[l])[0],v[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,B=!B}while(!C.v);o.lineEnd()}}}function TG(t){if(r=t.length){for(var r,o,e=0,i=t[0];++e<r;)i.n=o=t[e],o.p=i,i=o;i.n=o=t[0],o.p=i}}UU.invert=UU;var jU=G_();function EG(t,r){var e=r[0],i=r[1],o=Dr(i),a=[Dr(e),-Ur(e),0],s=0,l=0;jU.reset(),1===o?i=Va+Fr:-1===o&&(i=-Va-Fr);for(var u=0,f=t.length;u<f;++u)if(v=(h=t[u]).length)for(var h,v,C=h[v-1],B=C[0],G=C[1]/2+lL,q=Dr(G),ae=Ur(G),he=0;he<v;++he,B=Me,q=ft,ae=ht,C=Ye){var Ye=h[he],Me=Ye[0],Fe=Ye[1]/2+lL,ft=Dr(Fe),ht=Ur(Fe),Re=Me-B,ut=Re>=0?1:-1,kt=ut*Re,x=kt>oo,g=q*ft;if(jU.add(zl(g*ut*Dr(kt),ae*ht+g*Ur(kt))),s+=x?Re+ut*pu:Re,x^B>=e^Me>=e){var O=mC(_y(C),_y(Ye));gL(O);var H=mC(a,O);gL(H);var te=(x^Re>=0?-1:1)*zu(H[2]);(i>te||i===te&&(O[0]||O[1]))&&(l+=x^Re>=0?1:-1)}}return(s<-Fr||s<Fr&&jU<-Fr)^1&l}function MG(t,r,e,i){return function(o){var f,h,v,a=r(o),s=wG(),l=r(s),u=!1,C={point:B,lineStart:q,lineEnd:ae,polygonStart:function(){C.point=he,C.lineStart=Ye,C.lineEnd=Me,h=[],f=[]},polygonEnd:function(){C.point=B,C.lineStart=q,C.lineEnd=ae,h=YM(h);var ft=EG(f,i);h.length?(u||(o.polygonStart(),u=!0),kG(h,ece,ft,e,o)):ft&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=f=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function B(Fe,ft){t(Fe,ft)&&o.point(Fe,ft)}function G(Fe,ft){a.point(Fe,ft)}function q(){C.point=G,a.lineStart()}function ae(){C.point=B,a.lineEnd()}function he(Fe,ft){v.push([Fe,ft]),l.point(Fe,ft)}function Ye(){l.lineStart(),v=[]}function Me(){he(v[0][0],v[0][1]),l.lineEnd();var ht,ut,kt,x,Fe=l.clean(),ft=s.result(),Re=ft.length;if(v.pop(),f.push(v),v=null,Re){if(1&Fe){if((ut=(kt=ft[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ht=0;ht<ut;++ht)o.point((x=kt[ht])[0],x[1]);o.lineEnd()}return}Re>1&&2&Fe&&ft.push(ft.pop().concat(ft.shift())),h.push(ft.filter($ue))}}return C}}function $ue(t){return t.length>1}function ece(t,r){return((t=t.x)[0]<0?t[1]-Va-Fr:Va-t[1])-((r=r.x)[0]<0?r[1]-Va-Fr:Va-r[1])}var zU=MG(function(){return!0},function tce(t){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){t.lineStart(),o=1},point:function(s,l){var u=s>0?oo:-oo,f=Eo(s-r);Eo(f-oo)<Fr?(t.point(r,e=(e+l)/2>0?Va:-Va),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),t.point(s,e),o=0):i!==u&&f>=oo&&(Eo(r-i)<Fr&&(r-=i*Fr),Eo(s-u)<Fr&&(s-=u*Fr),e=function nce(t,r,e,i){var o,a,s=Dr(t-e);return Eo(s)>Fr?hC((Dr(r)*(a=Ur(i))*Dr(e)-Dr(i)*(o=Ur(r))*Dr(t))/(o*a*s)):(r+i)/2}(r,e,s,l),t.point(i,e),t.lineEnd(),t.lineStart(),t.point(u,e),o=0),t.point(r=s,e=l),i=u},lineEnd:function(){t.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function rce(t,r,e,i){var o;if(null==t)o=e*Va,i.point(-oo,o),i.point(0,o),i.point(oo,o),i.point(oo,0),i.point(oo,-o),i.point(0,-o),i.point(-oo,-o),i.point(-oo,0),i.point(-oo,o);else if(Eo(t[0]-r[0])>Fr){var a=t[0]<r[0]?oo:-oo;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-oo,-Va]);function SG(t){var r=Ur(t),e=6*Jr,i=r>0,o=Eo(r)>Fr;function s(h,v){return Ur(h)*Ur(v)>r}function u(h,v,C){var q=[1,0,0],ae=mC(_y(h),_y(v)),he=mL(ae,ae),Ye=ae[0],Me=he-Ye*Ye;if(!Me)return!C&&h;var Fe=r*he/Me,ft=-r*Ye/Me,ht=mC(q,ae),Re=_L(q,Fe);PU(Re,_L(ae,ft));var kt=ht,x=mL(Re,kt),g=mL(kt,kt),O=x*x-g*(mL(Re,Re)-1);if(!(O<0)){var H=Ss(O),te=_L(kt,(-x-H)/g);if(PU(te,Re),te=hL(te),!C)return te;var Ce,re=h[0],ye=v[0],pt=h[1],xt=v[1];ye<re&&(Ce=re,re=ye,ye=Ce);var st=ye-re,Lt=Eo(st-oo)<Fr;if(!Lt&&xt<pt&&(Ce=pt,pt=xt,xt=Ce),Lt||st<Fr?Lt?pt+xt>0^te[1]<(Eo(te[0]-re)<Fr?pt:xt):pt<=te[1]&&te[1]<=xt:st>oo^(re<=te[0]&&te[0]<=ye)){var er=_L(kt,(-x+H)/g);return PU(er,Re),[te,hL(er)]}}}function f(h,v){var C=i?t:oo-t,B=0;return h<-C?B|=1:h>C&&(B|=2),v<-C?B|=4:v>C&&(B|=8),B}return MG(s,function l(h){var v,C,B,G,q;return{lineStart:function(){G=B=!1,q=1},point:function(he,Ye){var Fe,Me=[he,Ye],ft=s(he,Ye),ht=i?ft?0:f(he,Ye):ft?f(he+(he<0?oo:-oo),Ye):0;if(!v&&(G=B=ft)&&h.lineStart(),ft!==B&&((!(Fe=u(v,Me))||EL(v,Fe)||EL(Me,Fe))&&(Me[0]+=Fr,Me[1]+=Fr,ft=s(Me[0],Me[1]))),ft!==B)q=0,ft?(h.lineStart(),Fe=u(Me,v),h.point(Fe[0],Fe[1])):(Fe=u(v,Me),h.point(Fe[0],Fe[1]),h.lineEnd()),v=Fe;else if(o&&v&&i^ft){var Re;!(ht&C)&&(Re=u(Me,v,!0))&&(q=0,i?(h.lineStart(),h.point(Re[0][0],Re[0][1]),h.point(Re[1][0],Re[1][1]),h.lineEnd()):(h.point(Re[1][0],Re[1][1]),h.lineEnd(),h.lineStart(),h.point(Re[0][0],Re[0][1])))}ft&&(!v||!EL(v,Me))&&h.point(Me[0],Me[1]),v=Me,B=ft,C=ht},lineEnd:function(){B&&h.lineEnd(),v=null},clean:function(){return q|(G&&B)<<1}}},function a(h,v,C,B){bG(B,t,e,C,h,v)},i?[0,-t]:[-oo,t-oo])}var DS=1e9,SL=-DS;function xL(t,r,e,i){function o(f,h){return t<=f&&f<=e&&r<=h&&h<=i}function a(f,h,v,C){var B=0,G=0;if(null==f||(B=s(f,v))!==(G=s(h,v))||u(f,h)<0^v>0)do{C.point(0===B||3===B?t:e,B>1?i:r)}while((B=(B+v+4)%4)!==G);else C.point(h[0],h[1])}function s(f,h){return Eo(f[0]-t)<Fr?h>0?0:3:Eo(f[0]-e)<Fr?h>0?2:1:Eo(f[1]-r)<Fr?h>0?1:0:h>0?3:2}function l(f,h){return u(f.x,h.x)}function u(f,h){var v=s(f,1),C=s(h,1);return v!==C?v-C:0===v?h[1]-f[1]:1===v?f[0]-h[0]:2===v?f[1]-h[1]:h[0]-f[0]}return function(f){var C,B,G,q,ae,he,Ye,Me,Fe,ft,ht,h=f,v=wG(),Re={point:ut,lineStart:function O(){Re.point=te,B&&B.push(G=[]),ft=!0,Fe=!1,Ye=Me=NaN},lineEnd:function H(){C&&(te(q,ae),he&&Fe&&v.rejoin(),C.push(v.result())),Re.point=ut,Fe&&h.lineEnd()},polygonStart:function x(){h=v,C=[],B=[],ht=!0},polygonEnd:function g(){var re=function kt(){for(var re=0,ye=0,pt=B.length;ye<pt;++ye)for(var Hn,er,xt=B[ye],Ce=1,st=xt.length,Lt=xt[0],Zn=Lt[0],Cn=Lt[1];Ce<st;++Ce)Hn=Zn,er=Cn,Lt=xt[Ce],Zn=Lt[0],Cn=Lt[1],er<=i?Cn>i&&(Zn-Hn)*(i-er)>(Cn-er)*(t-Hn)&&++re:Cn<=i&&(Zn-Hn)*(i-er)<(Cn-er)*(t-Hn)&&--re;return re}(),ye=ht&&re,pt=(C=YM(C)).length;(ye||pt)&&(f.polygonStart(),ye&&(f.lineStart(),a(null,null,1,f),f.lineEnd()),pt&&kG(C,l,re,a,f),f.polygonEnd()),h=f,C=B=G=null}};function ut(re,ye){o(re,ye)&&h.point(re,ye)}function te(re,ye){var pt=o(re,ye);if(B&&G.push([re,ye]),ft)q=re,ae=ye,he=pt,ft=!1,pt&&(h.lineStart(),h.point(re,ye));else if(pt&&Fe)h.point(re,ye);else{var xt=[Ye=Math.max(SL,Math.min(DS,Ye)),Me=Math.max(SL,Math.min(DS,Me))],Ce=[re=Math.max(SL,Math.min(DS,re)),ye=Math.max(SL,Math.min(DS,ye))];!function ice(t,r,e,i,o,a){var G,s=t[0],l=t[1],h=0,v=1,C=r[0]-s,B=r[1]-l;if(G=e-s,C||!(G>0)){if(G/=C,C<0){if(G<h)return;G<v&&(v=G)}else if(C>0){if(G>v)return;G>h&&(h=G)}if(G=o-s,C||!(G<0)){if(G/=C,C<0){if(G>v)return;G>h&&(h=G)}else if(C>0){if(G<h)return;G<v&&(v=G)}if(G=i-l,B||!(G>0)){if(G/=B,B<0){if(G<h)return;G<v&&(v=G)}else if(B>0){if(G>v)return;G>h&&(h=G)}if(G=a-l,B||!(G<0)){if(G/=B,B<0){if(G>v)return;G>h&&(h=G)}else if(B>0){if(G<h)return;G<v&&(v=G)}return h>0&&(t[0]=s+h*C,t[1]=l+h*B),v<1&&(r[0]=s+v*C,r[1]=l+v*B),!0}}}}}(xt,Ce,t,r,e,i)?pt&&(h.lineStart(),h.point(re,ye),ht=!1):(Fe||(h.lineStart(),h.point(xt[0],xt[1])),h.point(Ce[0],Ce[1]),pt||h.lineEnd(),ht=!1)}Ye=re,Me=ye,Fe=pt}return Re}}function oce(){var o,a,s,t=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=xL(t,r,e,i)(a=u)},extent:function(u){return arguments.length?(t=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[t,r],[e,i]]}}}var VU,DL,AL,WU=G_(),vC={sphere:Ma,point:Ma,lineStart:function ace(){vC.point=lce,vC.lineEnd=sce},lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma};function sce(){vC.point=vC.lineEnd=Ma}function lce(t,r){VU=t*=Jr,DL=Dr(r*=Jr),AL=Ur(r),vC.point=uce}function uce(t,r){t*=Jr;var e=Dr(r*=Jr),i=Ur(r),o=Eo(t-VU),a=Ur(o),l=i*Dr(o),u=AL*e-DL*i*a,f=DL*e+AL*i*a;WU.add(zl(Ss(l*l+u*u),f)),VU=t,DL=e,AL=i}function xG(t){return WU.reset(),Nd(t,vC),+WU}var YU=[null,null],cce={type:"LineString",coordinates:YU};function AS(t,r){return YU[0]=t,YU[1]=r,xG(cce)}var DG={Feature:function(r,e){return OL(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(OL(i[o].geometry,e))return!0;return!1}},AG={Sphere:function(){return!0},Point:function(r,e){return OG(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(OG(i[o],e))return!0;return!1},LineString:function(r,e){return IG(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(IG(i[o],e))return!0;return!1},Polygon:function(r,e){return PG(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(PG(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(OL(i[o],e))return!0;return!1}};function OL(t,r){return!(!t||!AG.hasOwnProperty(t.type))&&AG[t.type](t,r)}function OG(t,r){return 0===AS(t,r)}function IG(t,r){var e=AS(t[0],t[1]);return AS(t[0],r)+AS(r,t[1])<=e+Fr}function PG(t,r){return!!EG(t.map(dce),RG(r))}function dce(t){return(t=t.map(RG)).pop(),t}function RG(t){return[t[0]*Jr,t[1]*Jr]}function fce(t,r){return(t&&DG.hasOwnProperty(t.type)?DG[t.type]:OL)(t,r)}function LG(t,r,e){var i=Nl(t,r-Fr,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function ZG(t,r,e){var i=Nl(t,r-Fr,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function NG(){var t,r,e,i,o,a,s,l,C,B,G,q,u=10,f=u,h=90,v=360,ae=2.5;function he(){return{type:"MultiLineString",coordinates:Ye()}}function Ye(){return Nl(uL(i/h)*h,e,h).map(G).concat(Nl(uL(l/v)*v,s,v).map(q)).concat(Nl(uL(r/u)*u,t,u).filter(function(Me){return Eo(Me%h)>Fr}).map(C)).concat(Nl(uL(a/f)*f,o,f).filter(function(Me){return Eo(Me%v)>Fr}).map(B))}return he.lines=function(){return Ye().map(function(Me){return{type:"LineString",coordinates:Me}})},he.outline=function(){return{type:"Polygon",coordinates:[G(i).concat(q(s).slice(1),G(e).reverse().slice(1),q(l).reverse().slice(1))]}},he.extent=function(Me){return arguments.length?he.extentMajor(Me).extentMinor(Me):he.extentMinor()},he.extentMajor=function(Me){return arguments.length?(i=+Me[0][0],e=+Me[1][0],l=+Me[0][1],s=+Me[1][1],i>e&&(Me=i,i=e,e=Me),l>s&&(Me=l,l=s,s=Me),he.precision(ae)):[[i,l],[e,s]]},he.extentMinor=function(Me){return arguments.length?(r=+Me[0][0],t=+Me[1][0],a=+Me[0][1],o=+Me[1][1],r>t&&(Me=r,r=t,t=Me),a>o&&(Me=a,a=o,o=Me),he.precision(ae)):[[r,a],[t,o]]},he.step=function(Me){return arguments.length?he.stepMajor(Me).stepMinor(Me):he.stepMinor()},he.stepMajor=function(Me){return arguments.length?(h=+Me[0],v=+Me[1],he):[h,v]},he.stepMinor=function(Me){return arguments.length?(u=+Me[0],f=+Me[1],he):[u,f]},he.precision=function(Me){return arguments.length?(ae=+Me,C=LG(a,o,90),B=ZG(r,t,ae),G=LG(l,s,90),q=ZG(i,e,ae),he):ae},he.extentMajor([[-180,-90+Fr],[180,90-Fr]]).extentMinor([[-180,-80-Fr],[180,80+Fr]])}function pce(){return NG()()}function hce(t,r){var e=t[0]*Jr,i=t[1]*Jr,o=r[0]*Jr,a=r[1]*Jr,s=Ur(i),l=Dr(i),u=Ur(a),f=Dr(a),h=s*Ur(e),v=s*Dr(e),C=u*Ur(o),B=u*Dr(o),G=2*zu(Ss(QY(a-i)+s*u*QY(o-e))),q=Dr(G),ae=G?function(he){var Ye=Dr(he*=G)/q,Me=Dr(G-he)/q,Fe=Me*h+Ye*C,ft=Me*v+Ye*B,ht=Me*l+Ye*f;return[zl(ft,Fe)*ea,zl(ht,Ss(Fe*Fe+ft*ft))*ea]}:function(){return[e*ea,i*ea]};return ae.distance=G,ae}function vy(t){return t}var BG,FG,KU,JU,GU=G_(),qU=G_(),K_={point:Ma,lineStart:Ma,lineEnd:Ma,polygonStart:function(){K_.lineStart=mce,K_.lineEnd=gce},polygonEnd:function(){K_.lineStart=K_.lineEnd=K_.point=Ma,GU.add(Eo(qU)),qU.reset()},result:function(){var r=GU/2;return GU.reset(),r}};function mce(){K_.point=_ce}function _ce(t,r){K_.point=UG,BG=KU=t,FG=JU=r}function UG(t,r){qU.add(JU*t-KU*r),KU=t,JU=r}function gce(){UG(BG,FG)}var HG=K_,yC=1/0,IL=yC,OS=-yC,PL=OS,vce={point:function yce(t,r){t<yC&&(yC=t),t>OS&&(OS=t),r<IL&&(IL=r),r>PL&&(PL=r)},lineStart:Ma,lineEnd:Ma,polygonStart:Ma,polygonEnd:Ma,result:function(){var r=[[yC,IL],[OS,PL]];return OS=PL=-(IL=yC=1/0),r}};var jG,zG,qf,Kf,RL=vce,QU=0,XU=0,IS=0,LL=0,ZL=0,bC=0,$U=0,e7=0,PS=0,Fd={point:yy,lineStart:WG,lineEnd:VG,polygonStart:function(){Fd.lineStart=wce,Fd.lineEnd=kce},polygonEnd:function(){Fd.point=yy,Fd.lineStart=WG,Fd.lineEnd=VG},result:function(){var r=PS?[$U/PS,e7/PS]:bC?[LL/bC,ZL/bC]:IS?[QU/IS,XU/IS]:[NaN,NaN];return QU=XU=IS=LL=ZL=bC=$U=e7=PS=0,r}};function yy(t,r){QU+=t,XU+=r,++IS}function WG(){Fd.point=bce}function bce(t,r){Fd.point=Cce,yy(qf=t,Kf=r)}function Cce(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);LL+=o*(qf+t)/2,ZL+=o*(Kf+r)/2,bC+=o,yy(qf=t,Kf=r)}function VG(){Fd.point=yy}function wce(){Fd.point=Tce}function kce(){YG(jG,zG)}function Tce(t,r){Fd.point=YG,yy(jG=qf=t,zG=Kf=r)}function YG(t,r){var e=t-qf,i=r-Kf,o=Ss(e*e+i*i);LL+=o*(qf+t)/2,ZL+=o*(Kf+r)/2,bC+=o,$U+=(o=Kf*t-qf*r)*(qf+t),e7+=o*(Kf+r),PS+=3*o,yy(qf=t,Kf=r)}var GG=Fd;function qG(t){this._context=t}qG.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,pu)}},result:Ma};var n7,KG,JG,RS,LS,t7=G_(),NL={point:Ma,lineStart:function(){NL.point=Ece},lineEnd:function(){n7&&QG(KG,JG),NL.point=Ma},polygonStart:function(){n7=!0},polygonEnd:function(){n7=null},result:function(){var r=+t7;return t7.reset(),r}};function Ece(t,r){NL.point=QG,KG=RS=t,JG=LS=r}function QG(t,r){RS-=t,LS-=r,t7.add(Ss(RS*RS+LS*LS)),RS=t,LS=r}var XG=NL;function $G(){this._string=[]}function eq(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Mce(t,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Nd(s,i(o))),o.result()}return a.area=function(s){return Nd(s,i(HG)),HG.result()},a.measure=function(s){return Nd(s,i(XG)),XG.result()},a.bounds=function(s){return Nd(s,i(RL)),RL.result()},a.centroid=function(s){return Nd(s,i(GG)),GG.result()},a.projection=function(s){return arguments.length?(i=null==s?(t=null,vy):(t=s).stream,a):t},a.context=function(s){return arguments.length?(o=null==s?(r=null,new $G):new qG(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(t).context(r)}function Sce(t){return{stream:ZS(t)}}function ZS(t){return function(r){var e=new r7;for(var i in t)e[i]=t[i];return e.stream=r,e}}function r7(){}function i7(t,r,e){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),Nd(e,t.stream(RL)),r(RL.result()),null!=i&&t.clipExtent(i),t}function BL(t,r,e){return i7(t,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;t.scale(150*s).translate([l,u])},e)}function o7(t,r,e){return BL(t,[[0,0],r],e)}function a7(t,r,e){return i7(t,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];t.scale(150*a).translate([s,l])},e)}function s7(t,r,e){return i7(t,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;t.scale(150*a).translate([s,l])},e)}$G.prototype={_radius:4.5,_circle:eq(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=eq(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}},r7.prototype={constructor:r7,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 xce=Ur(30*Jr);function nq(t,r){return+r?function Ace(t,r){function e(i,o,a,s,l,u,f,h,v,C,B,G,q,ae){var he=f-i,Ye=h-o,Me=he*he+Ye*Ye;if(Me>4*r&&q--){var Fe=s+C,ft=l+B,ht=u+G,Re=Ss(Fe*Fe+ft*ft+ht*ht),ut=zu(ht/=Re),kt=Eo(Eo(ht)-1)<Fr||Eo(a-v)<Fr?(a+v)/2:zl(ft,Fe),x=t(kt,ut),g=x[0],O=x[1],H=g-i,te=O-o,re=Ye*H-he*te;(re*re/Me>r||Eo((he*H+Ye*te)/Me-.5)>.3||s*C+l*B+u*G<xce)&&(e(i,o,a,s,l,u,g,O,kt,Fe/=Re,ft/=Re,ht,q,ae),ae.point(g,O),e(g,O,kt,Fe,ft,ht,f,h,v,C,B,G,q,ae))}}return function(i){var o,a,s,l,u,f,h,v,C,B,G,q,ae={point:he,lineStart:Ye,lineEnd:Fe,polygonStart:function(){i.polygonStart(),ae.lineStart=ft},polygonEnd:function(){i.polygonEnd(),ae.lineStart=Ye}};function he(ut,kt){ut=t(ut,kt),i.point(ut[0],ut[1])}function Ye(){v=NaN,ae.point=Me,i.lineStart()}function Me(ut,kt){var x=_y([ut,kt]),g=t(ut,kt);e(v,C,h,B,G,q,v=g[0],C=g[1],h=ut,B=x[0],G=x[1],q=x[2],16,i),i.point(v,C)}function Fe(){ae.point=he,i.lineEnd()}function ft(){Ye(),ae.point=ht,ae.lineEnd=Re}function ht(ut,kt){Me(o=ut,kt),a=v,s=C,l=B,u=G,f=q,ae.point=Me}function Re(){e(v,C,h,B,G,q,a,s,o,l,u,f,16,i),ae.lineEnd=Fe,Fe()}return ae}}(t,r):function Dce(t){return ZS({point:function(e,i){e=t(e,i),this.stream.point(e[0],e[1])}})}(t)}var Oce=ZS({point:function(r,e){this.stream.point(r*Jr,e*Jr)}});function Pce(t,r,e){function i(o,a){return[r+t*o,e-t*a]}return i.invert=function(o,a){return[(o-r)/t,(e-a)/t]},i}function rq(t,r,e,i){var o=Ur(i),a=Dr(i),s=o*t,l=a*t,u=o/t,f=a/t,h=(a*e-o*r)/t,v=(a*r+o*e)/t;function C(B,G){return[s*B-l*G+r,e-l*B-s*G]}return C.invert=function(B,G){return[u*B-f*G+h,v-f*B-u*G]},C}function Dh(t){return l7(function(){return t})()}function l7(t){var r,h,q,ae,he,Fe,ft,ht,Re,ut,e=150,i=480,o=250,a=0,s=0,l=0,u=0,f=0,v=0,C=null,B=zU,G=null,Ye=vy,Me=.5;function kt(H){return ht(H[0]*Jr,H[1]*Jr)}function x(H){return(H=ht.invert(H[0],H[1]))&&[H[0]*ea,H[1]*ea]}function g(){var H=rq(e,0,0,v).apply(null,r(a,s)),te=(v?rq:Pce)(e,i-H[0],o-H[1],v);return h=HU(l,u,f),ft=FU(r,te),ht=FU(h,ft),Fe=nq(ft,Me),O()}function O(){return Re=ut=null,kt}return kt.stream=function(H){return Re&&ut===H?Re:Re=Oce(function Ice(t){return ZS({point:function(e,i){var o=t(e,i);return this.stream.point(o[0],o[1])}})}(h)(B(Fe(Ye(ut=H)))))},kt.preclip=function(H){return arguments.length?(B=H,C=void 0,O()):B},kt.postclip=function(H){return arguments.length?(Ye=H,G=q=ae=he=null,O()):Ye},kt.clipAngle=function(H){return arguments.length?(B=+H?SG(C=H*Jr):(C=null,zU),O()):C*ea},kt.clipExtent=function(H){return arguments.length?(Ye=null==H?(G=q=ae=he=null,vy):xL(G=+H[0][0],q=+H[0][1],ae=+H[1][0],he=+H[1][1]),O()):null==G?null:[[G,q],[ae,he]]},kt.scale=function(H){return arguments.length?(e=+H,g()):e},kt.translate=function(H){return arguments.length?(i=+H[0],o=+H[1],g()):[i,o]},kt.center=function(H){return arguments.length?(a=H[0]%360*Jr,s=H[1]%360*Jr,g()):[a*ea,s*ea]},kt.rotate=function(H){return arguments.length?(l=H[0]%360*Jr,u=H[1]%360*Jr,f=H.length>2?H[2]%360*Jr:0,g()):[l*ea,u*ea,f*ea]},kt.angle=function(H){return arguments.length?(v=H%360*Jr,g()):v*ea},kt.precision=function(H){return arguments.length?(Fe=nq(ft,Me=H*H),O()):Ss(Me)},kt.fitExtent=function(H,te){return BL(kt,H,te)},kt.fitSize=function(H,te){return o7(kt,H,te)},kt.fitWidth=function(H,te){return a7(kt,H,te)},kt.fitHeight=function(H,te){return s7(kt,H,te)},function(){return r=t.apply(this,arguments),kt.invert=r.invert&&x,g()}}function u7(t){var r=0,e=oo/3,i=l7(t),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Jr,e=a[1]*Jr):[r*ea,e*ea]},o}function iq(t,r){var e=Dr(t),i=(e+Dr(r))/2;if(Eo(i)<Fr)return function Rce(t){var r=Ur(t);function e(i,o){return[i*r,Dr(o)/r]}return e.invert=function(i,o){return[i/r,zu(o*r)]},e}(t);var o=1+e*(2*i-e),a=Ss(o)/i;function s(l,u){var f=Ss(o-2*i*Dr(u))/i;return[f*Dr(l*=i),a-f*Ur(l)]}return s.invert=function(l,u){var f=a-u;return[zl(l,Eo(f))/i*ES(f),zu((o-(l*l+f*f)*i*i)/(2*i))]},s}function FL(){return u7(iq).scale(155.424).center([0,33.6442])}function oq(){return FL().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Zce(){var t,r,i,a,l,u,e=oq(),o=FL().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=FL().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(B,G){u=[B,G]}};function h(C){var B=C[0],G=C[1];return u=null,i.point(B,G),u||(a.point(B,G),u)||(l.point(B,G),u)}function v(){return t=r=null,h}return h.invert=function(C){var B=e.scale(),G=e.translate(),q=(C[0]-G[0])/B,ae=(C[1]-G[1])/B;return(ae>=.12&&ae<.234&&q>=-.425&&q<-.214?o:ae>=.166&&ae<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return t&&r===C?t:t=function Lce(t){var r=t.length;return{point:function(i,o){for(var a=-1;++a<r;)t[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)t[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)t[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)t[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)t[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)t[i].polygonEnd()}}}([e.stream(r=C),o.stream(C),s.stream(C)])},h.precision=function(C){return arguments.length?(e.precision(C),o.precision(C),s.precision(C),v()):e.precision()},h.scale=function(C){return arguments.length?(e.scale(C),o.scale(.35*C),s.scale(C),h.translate(e.translate())):e.scale()},h.translate=function(C){if(!arguments.length)return e.translate();var B=e.scale(),G=+C[0],q=+C[1];return i=e.translate(C).clipExtent([[G-.455*B,q-.238*B],[G+.455*B,q+.238*B]]).stream(f),a=o.translate([G-.307*B,q+.201*B]).clipExtent([[G-.425*B+Fr,q+.12*B+Fr],[G-.214*B-Fr,q+.234*B-Fr]]).stream(f),l=s.translate([G-.205*B,q+.212*B]).clipExtent([[G-.214*B+Fr,q+.166*B+Fr],[G-.115*B-Fr,q+.234*B-Fr]]).stream(f),v()},h.fitExtent=function(C,B){return BL(h,C,B)},h.fitSize=function(C,B){return o7(h,C,B)},h.fitWidth=function(C,B){return a7(h,C,B)},h.fitHeight=function(C,B){return s7(h,C,B)},h.scale(1070)}function aq(t){return function(r,e){var i=Ur(r),o=Ur(e),a=t(i*o);return[a*o*Dr(r),a*Dr(e)]}}function NS(t){return function(r,e){var i=Ss(r*r+e*e),o=t(i),a=Dr(o),s=Ur(o);return[zl(r*a,i*s),zu(i&&e*a/i)]}}var c7=aq(function(t){return Ss(2/(1+t))});function Nce(){return Dh(c7).scale(124.75).clipAngle(179.999)}c7.invert=NS(function(t){return 2*zu(t/2)});var d7=aq(function(t){return(t=JY(t))&&t/Dr(t)});function Bce(){return Dh(d7).scale(79.4188).clipAngle(179.999)}function BS(t,r){return[t,cL(xU((Va+r)/2))]}function Fce(){return sq(BS).scale(961/pu)}function sq(t){var l,u,f,r=Dh(t),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var v=oo*i(),C=r(yG(r.rotate()).invert([0,0]));return a(null==s?[[C[0]-v,C[1]-v],[C[0]+v,C[1]+v]]:t===BS?[[Math.max(C[0]-v,s),l],[Math.min(C[0]+v,u),f]]:[[s,Math.max(C[1]-v,l)],[u,Math.min(C[1]+v,f)]])}return r.scale=function(v){return arguments.length?(i(v),h()):i()},r.translate=function(v){return arguments.length?(o(v),h()):o()},r.center=function(v){return arguments.length?(e(v),h()):e()},r.clipExtent=function(v){return arguments.length?(null==v?s=l=u=f=null:(s=+v[0][0],l=+v[0][1],u=+v[1][0],f=+v[1][1]),h()):null==s?null:[[s,l],[u,f]]},h()}function UL(t){return xU((Va+t)/2)}function lq(t,r){var e=Ur(t),i=t===r?Dr(t):cL(e/Ur(r))/cL(UL(r)/UL(t)),o=e*SU(UL(t),i)/i;if(!i)return BS;function a(s,l){o>0?l<-Va+Fr&&(l=-Va+Fr):l>Va-Fr&&(l=Va-Fr);var u=o/SU(UL(l),i);return[u*Dr(i*s),o-u*Ur(i*s)]}return a.invert=function(s,l){var u=o-l,f=ES(i)*Ss(s*s+u*u);return[zl(s,Eo(u))/i*ES(u),2*hC(SU(o/f,1/i))-Va]},a}function Uce(){return u7(lq).scale(109.5).parallels([30,30])}function FS(t,r){return[t,r]}function Hce(){return Dh(FS).scale(152.63)}function uq(t,r){var e=Ur(t),i=t===r?Dr(t):(e-Ur(r))/(r-t),o=e/i+t;if(Eo(i)<Fr)return FS;function a(s,l){var u=o-l,f=i*s;return[u*Dr(f),o-u*Ur(f)]}return a.invert=function(s,l){var u=o-l;return[zl(s,Eo(u))/i*ES(u),o-ES(i)*Ss(s*s+u*u)]},a}function jce(){return u7(uq).scale(131.154).center([0,13.9389])}function f7(t,r){var e=Ur(r),i=Ur(t)*e;return[e*Dr(t)/i,Dr(r)/i]}function zce(){return Dh(f7).scale(144.049).clipAngle(60)}function HL(t,r,e,i){return 1===t&&1===r&&0===e&&0===i?vy:ZS({point:function(a,s){this.stream.point(a*t+e,s*r+i)}})}function Wce(){var l,u,f,v,C,B,t=1,r=0,e=0,i=1,o=1,a=vy,s=null,h=vy;function G(){return v=C=null,B}return B={stream:function(ae){return v&&C===ae?v:v=a(h(C=ae))},postclip:function(ae){return arguments.length?(h=ae,s=l=u=f=null,G()):h},clipExtent:function(ae){return arguments.length?(h=null==ae?(s=l=u=f=null,vy):xL(s=+ae[0][0],l=+ae[0][1],u=+ae[1][0],f=+ae[1][1]),G()):null==s?null:[[s,l],[u,f]]},scale:function(ae){return arguments.length?(a=HL((t=+ae)*i,t*o,r,e),G()):t},translate:function(ae){return arguments.length?(a=HL(t*i,t*o,r=+ae[0],e=+ae[1]),G()):[r,e]},reflectX:function(ae){return arguments.length?(a=HL(t*(i=ae?-1:1),t*o,r,e),G()):i<0},reflectY:function(ae){return arguments.length?(a=HL(t*i,t*(o=ae?-1:1),r,e),G()):o<0},fitExtent:function(ae,he){return BL(B,ae,he)},fitSize:function(ae,he){return o7(B,ae,he)},fitWidth:function(ae,he){return a7(B,ae,he)},fitHeight:function(ae,he){return s7(B,ae,he)}}}function p7(t,r){var e=r*r,i=e*e;return[t*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function Vce(){return Dh(p7).scale(175.295)}function h7(t,r){return[Ur(r)*Dr(t),Dr(r)]}function Yce(){return Dh(h7).scale(249.5).clipAngle(90+Fr)}function m7(t,r){var e=Ur(r),i=1+Ur(t)*e;return[e*Dr(t)/i,Dr(r)/i]}function Gce(){return Dh(m7).scale(250).clipAngle(142)}function _7(t,r){return[cL(xU((Va+r)/2)),-t]}function qce(){var t=sq(_7),r=t.center,e=t.rotate;return t.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},t.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 Kce(t,r){return t.parent===r.parent?1:2}function Qce(t,r){return t+r.x}function $ce(t,r){return Math.max(t,r.y)}function nde(){var t=Kce,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var B=C.children;B?(C.x=function Jce(t){return t.reduce(Qce,0)/t.length}(B),C.y=function Xce(t){return 1+t.reduce($ce,0)}(B)):(C.x=s?l+=t(C,s):0,C.y=0,s=C)});var u=function ede(t){for(var r;r=t.children;)t=r[0];return t}(a),f=function tde(t){for(var r;r=t.children;)t=r[r.length-1];return t}(a),h=u.x-t(u,f)/2,v=f.x+t(f,u)/2;return a.eachAfter(i?function(C){C.x=(C.x-a.x)*r,C.y=(a.y-C.y)*e}:function(C){C.x=(C.x-h)/(v-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(t=a,o):t},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 rde(t){var r=0,e=t.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;t.value=r}function g7(t,r){var o,s,l,u,f,e=new CC(t),i=+t.value&&(e.value=t.value),a=[e];for(null==r&&(r=gde);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(f=l.length))for(o.children=new Array(f),u=f-1;u>=0;--u)a.push(s=o.children[u]=new CC(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(cq)}function gde(t){return t.children}function vde(t){t.data=t.data.data}function cq(t){var r=0;do{t.height=r}while((t=t.parent)&&t.height<++r)}function CC(t){this.data=t,this.depth=this.height=0,this.parent=null}d7.invert=NS(function(t){return t}),BS.invert=function(t,r){return[t,2*hC(KY(r))-Va]},FS.invert=FS,f7.invert=NS(hC),p7.invert=function(t,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(Eo(o)>Fr&&--i>0);return[t/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},h7.invert=NS(zu),m7.invert=NS(function(t){return 2*hC(t)}),_7.invert=function(t,r){return[-r,2*hC(KY(t))-Va]},CC.prototype=g7.prototype={constructor:CC,count:function ide(){return this.eachAfter(rde)},each:function ode(t){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(t(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function sde(t){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();)t(r);return this},eachBefore:function ade(t){for(var i,o,r=this,e=[r];r=e.pop();)if(t(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function lde(t){return this.eachAfter(function(r){for(var e=+t(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function ude(t){return this.eachBefore(function(r){r.children&&r.children.sort(t)})},path:function cde(t){for(var r=this,e=function dde(t,r){if(t===r)return t;var e=t.ancestors(),i=r.ancestors(),o=null;for(t=e.pop(),r=i.pop();t===r;)o=t,t=e.pop(),r=i.pop();return o}(r,t),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;t!==e;)i.splice(o,0,t),t=t.parent;return i},ancestors:function fde(){for(var t=this,r=[t];t=t.parent;)r.push(t);return r},descendants:function pde(){var t=[];return this.each(function(r){t.push(r)}),t},leaves:function hde(){var t=[];return this.eachBefore(function(r){r.children||t.push(r)}),t},links:function mde(){var t=this,r=[];return t.each(function(e){e!==t&&r.push({source:e.parent,target:e})}),r},copy:function _de(){return g7(this).eachBefore(vde)}};var yde=Array.prototype.slice;function dq(t){for(var o,a,r=0,e=(t=function bde(t){for(var e,i,r=t.length;r;)i=Math.random()*r--|0,e=t[r],t[r]=t[i],t[i]=e;return t}(yde.call(t))).length,i=[];r<e;)o=t[r],a&&fq(a,o)?++r:(a=wde(i=Cde(i,o)),r=0);return a}function Cde(t,r){var e,i;if(v7(r,t))return[r];for(e=0;e<t.length;++e)if(jL(r,t[e])&&v7(US(t[e],r),t))return[t[e],r];for(e=0;e<t.length-1;++e)for(i=e+1;i<t.length;++i)if(jL(US(t[e],t[i]),r)&&jL(US(t[e],r),t[i])&&jL(US(t[i],r),t[e])&&v7(pq(t[e],t[i],r),t))return[t[e],t[i],r];throw new Error}function jL(t,r){var e=t.r-r.r,i=r.x-t.x,o=r.y-t.y;return e<0||e*e<i*i+o*o}function fq(t,r){var e=t.r-r.r+1e-6,i=r.x-t.x,o=r.y-t.y;return e>0&&e*e>i*i+o*o}function v7(t,r){for(var e=0;e<r.length;++e)if(!fq(t,r[e]))return!1;return!0}function wde(t){switch(t.length){case 1:return function kde(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return US(t[0],t[1]);case 3:return pq(t[0],t[1],t[2])}}function US(t,r){var e=t.x,i=t.y,o=t.r,a=r.x,s=r.y,l=r.r,u=a-e,f=s-i,h=l-o,v=Math.sqrt(u*u+f*f);return{x:(e+a+u/v*h)/2,y:(i+s+f/v*h)/2,r:(v+o+l)/2}}function pq(t,r,e){var i=t.x,o=t.y,a=t.r,s=r.x,l=r.y,u=r.r,f=e.x,h=e.y,v=e.r,C=i-s,B=i-f,G=o-l,q=o-h,ae=u-a,he=v-a,Ye=i*i+o*o-a*a,Me=Ye-s*s-l*l+u*u,Fe=Ye-f*f-h*h+v*v,ft=B*G-C*q,ht=(G*Fe-q*Me)/(2*ft)-i,Re=(q*ae-G*he)/ft,ut=(B*Me-C*Fe)/(2*ft)-o,kt=(C*he-B*ae)/ft,x=Re*Re+kt*kt-1,g=2*(a+ht*Re+ut*kt),O=ht*ht+ut*ut-a*a,H=-(x?(g+Math.sqrt(g*g-4*x*O))/(2*x):O/g);return{x:i+ht+Re*H,y:o+ut+kt*H,r:H}}function hq(t,r,e){var o,a,l,u,i=t.x-r.x,s=t.y-r.y,f=i*i+s*s;f?(a=r.r+e.r,a*=a,u=t.r+e.r,a>(u*=u)?(o=(f+u-a)/(2*f),l=Math.sqrt(Math.max(0,u/f-o*o)),e.x=t.x-o*i-l*s,e.y=t.y-o*s+l*i):(o=(f+a-u)/(2*f),l=Math.sqrt(Math.max(0,a/f-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 mq(t,r){var e=t.r+r.r-1e-6,i=r.x-t.x,o=r.y-t.y;return e>0&&e*e>i*i+o*o}function _q(t){var r=t._,e=t.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 zL(t){this._=t,this.next=null,this.previous=null}function gq(t){if(!(o=t.length))return 0;var r,e,i,o,a,s,l,u,f,h,v;if((r=t[0]).x=0,r.y=0,!(o>1))return r.r;if(e=t[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;hq(e,r,i=t[2]),r=new zL(r),e=new zL(e),i=new zL(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){hq(r._,e._,i=t[l]),i=new zL(i),u=e.next,f=r.previous,h=e._.r,v=r._.r;do{if(h<=v){if(mq(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(mq(f._,i._)){(r=f).next=e,e.previous=r,--l;continue e}v+=f._.r,f=f.previous}}while(u!==f.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=_q(r);(i=i.next)!==e;)(s=_q(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=dq(r),l=0;l<o;++l)(r=t[l]).x-=i.x,r.y-=i.y;return i.r}function Tde(t){return gq(t),t}function Ede(t){return null==t?null:WL(t)}function WL(t){if("function"!=typeof t)throw new Error;return t}function by(){return 0}function wC(t){return function(){return t}}function Mde(t){return Math.sqrt(t.value)}function Sde(){var t=null,r=1,e=1,i=by;function o(a){return a.x=r/2,a.y=e/2,t?a.eachBefore(vq(t)).eachAfter(y7(i,.5)).eachBefore(yq(1)):a.eachBefore(vq(Mde)).eachAfter(y7(by,1)).eachAfter(y7(i,a.r/Math.min(r,e))).eachBefore(yq(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(t=Ede(a),o):t},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:wC(+a),o):i},o}function vq(t){return function(r){r.children||(r.r=Math.max(0,+t(r)||0))}}function y7(t,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=t(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=gq(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function yq(t){return function(r){var e=r.parent;r.r*=t,e&&(r.x=e.x+t*r.x,r.y=e.y+t*r.y)}}function bq(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function HS(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(i-r)/t.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*f}function xde(){var t=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=t,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&HS(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var f=u.x0,h=u.y0,v=u.x1-e,C=u.y1-e;v<f&&(f=v=(f+v)/2),C<h&&(h=C=(h+C)/2),u.x0=f,u.y0=h,u.x1=v,u.y1=C}}(r,l)),i&&s.eachBefore(bq),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(t=+s[0],r=+s[1],o):[t,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Dde={depth:-1},wq={};function Ade(t){return t.id}function Ode(t){return t.parentId}function Ide(){var t=Ade,r=Ode;function e(i){var o,a,l,u,f,v,C,s=i.length,h=new Array(s),B={};for(a=0;a<s;++a)o=i[a],f=h[a]=new CC(o),null!=(v=t(o,a,i))&&(v+="")&&(B[C="$"+(f.id=v)]=C in B?wq:f);for(a=0;a<s;++a)if(f=h[a],null!=(v=r(i[a],a,i))&&(v+="")){if(!(u=B["$"+v]))throw new Error("missing: "+v);if(u===wq)throw new Error("ambiguous: "+v);u.children?u.children.push(f):u.children=[f],f.parent=u}else{if(l)throw new Error("multiple roots");l=f}if(!l)throw new Error("no root");if(l.parent=Dde,l.eachBefore(function(G){G.depth=G.parent.depth+1,--s}).eachBefore(cq),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(t=WL(i),e):t},e.parentId=function(i){return arguments.length?(r=WL(i),e):r},e}function Pde(t,r){return t.parent===r.parent?1:2}function b7(t){var r=t.children;return r?r[0]:t.t}function C7(t){var r=t.children;return r?r[r.length-1]:t.t}function Rde(t,r,e){var i=e/(r.i-t.i);r.c-=i,r.s+=e,t.c+=i,r.z+=e,r.m+=e}function Zde(t,r,e){return t.a.parent===r.parent?t.a:e}function VL(t,r){this._=t,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 Bde(){var t=Pde,r=1,e=1,i=null;function o(f){var h=function Nde(t){for(var e,o,a,s,l,r=new VL(t,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 VL(a[s],s)),o.parent=e;return(r.parent=new VL(null,0)).children=[r],r}(f);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)f.eachBefore(u);else{var v=f,C=f,B=f;f.eachBefore(function(Ye){Ye.x<v.x&&(v=Ye),Ye.x>C.x&&(C=Ye),Ye.depth>B.depth&&(B=Ye)});var G=v===C?1:t(v,C)/2,q=G-v.x,ae=r/(C.x+G+q),he=e/(B.depth||1);f.eachBefore(function(Ye){Ye.x=(Ye.x+q)*ae,Ye.y=Ye.depth*he})}return f}function a(f){var h=f.children,v=f.parent.children,C=f.i?v[f.i-1]:null;if(h){!function Lde(t){for(var a,r=0,e=0,i=t.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(f);var B=(h[0].z+h[h.length-1].z)/2;C?(f.z=C.z+t(f._,C._),f.m=f.z-B):f.z=B}else C&&(f.z=C.z+t(f._,C._));f.parent.A=function l(f,h,v){if(h){for(var Fe,C=f,B=f,G=h,q=C.parent.children[0],ae=C.m,he=B.m,Ye=G.m,Me=q.m;G=C7(G),C=b7(C),G&&C;)q=b7(q),(B=C7(B)).a=f,(Fe=G.z+Ye-C.z-ae+t(G._,C._))>0&&(Rde(Zde(G,f,v),f,Fe),ae+=Fe,he+=Fe),Ye+=G.m,ae+=C.m,Me+=q.m,he+=B.m;G&&!C7(B)&&(B.t=G,B.m+=Ye-he),C&&!b7(q)&&(q.t=C,q.m+=ae-Me,v=f)}return v}(f,C,f.parent.A||v[0])}function s(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function u(f){f.x*=r,f.y=f.depth*e}return o.separation=function(f){return arguments.length?(t=f,o):t},o.size=function(f){return arguments.length?(i=!1,r=+f[0],e=+f[1],o):i?null:[r,e]},o.nodeSize=function(f){return arguments.length?(i=!0,r=+f[0],e=+f[1],o):i?[r,e]:null},o}function YL(t,r,e,i,o){for(var s,a=t.children,l=-1,u=a.length,f=t.value&&(o-e)/t.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*f}VL.prototype=Object.create(CC.prototype);var kq=(1+Math.sqrt(5))/2;function Tq(t,r,e,i,o,a){for(var u,f,B,G,ae,he,Ye,Me,Fe,ft,ht,s=[],l=r.children,h=0,v=0,C=l.length,q=r.value;h<C;){B=o-e,G=a-i;do{ae=l[v++].value}while(!ae&&v<C);for(he=Ye=ae,ht=ae*ae*(ft=Math.max(G/B,B/G)/(q*t)),Fe=Math.max(Ye/ht,ht/he);v<C;++v){if(ae+=f=l[v].value,f<he&&(he=f),f>Ye&&(Ye=f),ht=ae*ae*ft,(Me=Math.max(Ye/ht,ht/he))>Fe){ae-=f;break}Fe=Me}s.push(u={value:ae,dice:B<G,children:l.slice(h,v)}),u.dice?HS(u,e,i,o,q?i+=G*ae/q:a):YL(u,e,i,q?e+=B*ae/q:o,a),q-=ae,h=v}return s}var Eq=function t(r){function e(i,o,a,s,l){Tq(r,i,o,a,s,l)}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}(kq);function Fde(){var t=Eq,r=!1,e=1,i=1,o=[0],a=by,s=by,l=by,u=by,f=by;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(v),o=[0],r&&C.eachBefore(bq),C}function v(C){var B=o[C.depth],G=C.x0+B,q=C.y0+B,ae=C.x1-B,he=C.y1-B;ae<G&&(G=ae=(G+ae)/2),he<q&&(q=he=(q+he)/2),C.x0=G,C.y0=q,C.x1=ae,C.y1=he,C.children&&(B=o[C.depth+1]=a(C)/2,G+=f(C)-B,q+=s(C)-B,(ae-=l(C)-B)<G&&(G=ae=(G+ae)/2),(he-=u(C)-B)<q&&(q=he=(q+he)/2),t(C,G,q,ae,he))}return h.round=function(C){return arguments.length?(r=!!C,h):r},h.size=function(C){return arguments.length?(e=+C[0],i=+C[1],h):[e,i]},h.tile=function(C){return arguments.length?(t=WL(C),h):t},h.padding=function(C){return arguments.length?h.paddingInner(C).paddingOuter(C):h.paddingInner()},h.paddingInner=function(C){return arguments.length?(a="function"==typeof C?C:wC(+C),h):a},h.paddingOuter=function(C){return arguments.length?h.paddingTop(C).paddingRight(C).paddingBottom(C).paddingLeft(C):h.paddingTop()},h.paddingTop=function(C){return arguments.length?(s="function"==typeof C?C:wC(+C),h):s},h.paddingRight=function(C){return arguments.length?(l="function"==typeof C?C:wC(+C),h):l},h.paddingBottom=function(C){return arguments.length?(u="function"==typeof C?C:wC(+C),h):u},h.paddingLeft=function(C){return arguments.length?(f="function"==typeof C?C:wC(+C),h):f},h}function Ude(t,r,e,i,o){var s,u,a=t.children,l=a.length,f=new Array(l+1);for(f[0]=u=s=0;s<l;++s)f[s+1]=u+=a[s].value;!function h(v,C,B,G,q,ae,he){if(v>=C-1){var Ye=a[v];return Ye.x0=G,Ye.y0=q,Ye.x1=ae,void(Ye.y1=he)}for(var Me=f[v],Fe=B/2+Me,ft=v+1,ht=C-1;ft<ht;){var Re=ft+ht>>>1;f[Re]<Fe?ft=Re+1:ht=Re}Fe-f[ft-1]<f[ft]-Fe&&v+1<ft&&--ft;var ut=f[ft]-Me,kt=B-ut;if(ae-G>he-q){var x=(G*kt+ae*ut)/B;h(v,ft,ut,G,q,x,he),h(ft,C,kt,x,q,ae,he)}else{var g=(q*kt+he*ut)/B;h(v,ft,ut,G,q,ae,g),h(ft,C,kt,G,g,ae,he)}}(0,l,t.value,r,e,i,o)}function Hde(t,r,e,i,o){(1&t.depth?YL:HS)(t,r,e,i,o)}var jde=function t(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,f,h,v,B,C=-1,G=u.length,q=i.value;++C<G;){for(h=(f=u[C]).children,v=f.value=0,B=h.length;v<B;++v)f.value+=h[v].value;f.dice?HS(f,o,a,s,a+=(l-a)*f.value/q):YL(f,o,a,o+=(s-o)*f.value/q,l),q-=f.value}else i._squarify=u=Tq(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return t((i=+i)>1?i:1)},e}(kq);function kC(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function jS(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function J_(){}var TC=1/.7,EC="\\s*([+-]?\\d+)\\s*",zS="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jf="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zde=/^#([0-9a-f]{3,8})$/,Wde=new RegExp("^rgb\\("+[EC,EC,EC]+"\\)$"),Vde=new RegExp("^rgb\\("+[Jf,Jf,Jf]+"\\)$"),Yde=new RegExp("^rgba\\("+[EC,EC,EC,zS]+"\\)$"),Gde=new RegExp("^rgba\\("+[Jf,Jf,Jf,zS]+"\\)$"),qde=new RegExp("^hsl\\("+[zS,Jf,Jf]+"\\)$"),Kde=new RegExp("^hsla\\("+[zS,Jf,Jf,zS]+"\\)$"),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 Sq(){return this.rgb().formatHex()}function xq(){return this.rgb().formatRgb()}function WS(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=zde.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?Dq(r):3===e?new il(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?GL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?GL(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=Wde.exec(t))?new il(r[1],r[2],r[3],1):(r=Vde.exec(t))?new il(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Yde.exec(t))?GL(r[1],r[2],r[3],r[4]):(r=Gde.exec(t))?GL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=qde.exec(t))?Iq(r[1],r[2]/100,r[3]/100,1):(r=Kde.exec(t))?Iq(r[1],r[2]/100,r[3]/100,r[4]):Mq.hasOwnProperty(t)?Dq(Mq[t]):"transparent"===t?new il(NaN,NaN,NaN,0):null}function Dq(t){return new il(t>>16&255,t>>8&255,255&t,1)}function GL(t,r,e,i){return i<=0&&(t=r=e=NaN),new il(t,r,e,i)}function w7(t){return t instanceof J_||(t=WS(t)),t?new il((t=t.rgb()).r,t.g,t.b,t.opacity):new il}function qL(t,r,e,i){return 1===arguments.length?w7(t):new il(t,r,e,null==i?1:i)}function il(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function Aq(){return"#"+k7(this.r)+k7(this.g)+k7(this.b)}function Oq(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function k7(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Iq(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new Qf(t,r,e,i)}function Pq(t){if(t instanceof Qf)return new Qf(t.h,t.s,t.l,t.opacity);if(t instanceof J_||(t=WS(t)),!t)return new Qf;if(t instanceof Qf)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 Qf(s,l,u,t.opacity)}function T7(t,r,e,i){return 1===arguments.length?Pq(t):new Qf(t,r,e,null==i?1:i)}function Qf(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function E7(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function Rq(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function Lq(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return Rq((e-i/r)*r,s,o,a,l)}}function Zq(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return Rq((e-i/r)*r,o,a,s,l)}}function KL(t){return function(){return t}}function Nq(t,r){return function(e){return t+e*r}}function M7(t,r){var e=r-t;return e?Nq(t,e>180||e<-180?e-360*Math.round(e/360):e):KL(isNaN(t)?r:t)}function Xde(t){return 1==(t=+t)?Hs:function(r,e){return e-r?function Qde(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):KL(isNaN(r)?e:r)}}function Hs(t,r){var e=r-t;return e?Nq(t,e):KL(isNaN(t)?r:t)}kC(J_,WS,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:Sq,formatHex:Sq,formatHsl:function Jde(){return Pq(this).formatHsl()},formatRgb:xq,toString:xq}),kC(il,qL,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new il(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new il(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:Aq,formatHex:Aq,formatRgb:Oq,toString:Oq})),kC(Qf,T7,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new Qf(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Qf(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 il(E7(r>=240?r-240:r+120,a,o),E7(r,a,o),E7(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 S7=function t(r){var e=Xde(r);function i(o,a){var s=e((o=qL(o)).r,(a=qL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=Hs(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function Bq(t){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=qL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var $de=Bq(Lq),efe=Bq(Zq);function Fq(t,r){var s,e=r?r.length:0,i=t?Math.min(e,t.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=A7(t[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 Uq(t,r){var e=new Date;return r-=t=+t,function(i){return e.setTime(t+r*i),e}}function Xf(t,r){return r-=t=+t,function(e){return t+r*e}}function Hq(t,r){var o,e={},i={};for(o in(null===t||"object"!=typeof t)&&(t={}),(null===r||"object"!=typeof r)&&(r={}),r)o in t?e[o]=A7(t[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var x7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D7=new RegExp(x7.source,"g");function jq(t,r){var i,o,a,e=x7.lastIndex=D7.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=x7.exec(t))&&(o=D7.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:Xf(i,o)})),e=D7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function nfe(t){return function(r){return t(r)+""}}(u[0].x):function tfe(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function A7(t,r){var i,e=typeof r;return null==r||"boolean"===e?KL(r):("number"===e?Xf:"string"===e?(i=WS(r))?(r=i,S7):jq:r instanceof WS?S7:r instanceof Date?Uq:Array.isArray(r)?Fq:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?Hq:Xf)(t,r)}function rfe(t,r){return r-=t=+t,function(e){return Math.round(t+r*e)}}var VS,I7,Vq,JL,zq=180/Math.PI,O7={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Wq(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*zq,skewX:Math.atan(u)*zq,scaleX:s,scaleY:l}}function Yq(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:Xf(f,v)},{i:q-2,x:Xf(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:Xf(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:Xf(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:Xf(f,v)},{i:q-2,x:Xf(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var afe=Yq(function ife(t){return"none"===t?O7:(VS||(VS=document.createElement("DIV"),I7=document.documentElement,Vq=document.defaultView),VS.style.transform=t,t=Vq.getComputedStyle(I7.appendChild(VS),null).getPropertyValue("transform"),I7.removeChild(VS),Wq(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),sfe=Yq(function ofe(t){return null!=t&&(JL||(JL=document.createElementNS("http://www.w3.org/2000/svg","g")),JL.setAttribute("transform",t),t=JL.transform.baseVal.consolidate())?Wq((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):O7},", ",")",")"),YS=Math.SQRT2;function qq(t){return((t=Math.exp(t))+1/t)/2}function dfe(t,r){var v,C,e=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2],u=a-e,f=s-i,h=u*u+f*f;if(h<1e-12)C=Math.log(l/o)/YS,v=function(Me){return[e+Me*u,i+Me*f,o*Math.exp(YS*Me*C)]};else{var B=Math.sqrt(h),G=(l*l-o*o+4*h)/(2*o*2*B),q=(l*l-o*o-4*h)/(2*l*2*B),ae=Math.log(Math.sqrt(G*G+1)-G),he=Math.log(Math.sqrt(q*q+1)-q);C=(he-ae)/YS,v=function(Me){var Fe=Me*C,ft=qq(ae),ht=o/(2*B)*(ft*function cfe(t){return((t=Math.exp(2*t))-1)/(t+1)}(YS*Fe+ae)-function ufe(t){return((t=Math.exp(t))-1/t)/2}(ae));return[e+ht*u,i+ht*f,o*ft/qq(YS*Fe+ae)]}}return v.duration=1e3*C,v}function Kq(t){return function(r,e){var i=t((r=T7(r)).h,(e=T7(e)).h),o=Hs(r.s,e.s),a=Hs(r.l,e.l),s=Hs(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 ffe=Kq(M7),pfe=Kq(Hs),Jq=Math.PI/180,Qq=180/Math.PI,tK=4/29,MC=6/29,nK=3*MC*MC;function rK(t){if(t instanceof Ud)return new Ud(t.l,t.a,t.b,t.opacity);if(t instanceof $f)return oK(t);t instanceof il||(t=w7(t));var a,s,r=B7(t.r),e=B7(t.g),i=B7(t.b),o=L7((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=L7((.4360747*r+.3850649*e+.1430804*i)/.96422),s=L7((.0139322*r+.0971045*e+.7141733*i)/.82521)),new Ud(116*o-16,500*(a-o),200*(o-s),t.opacity)}function R7(t,r,e,i){return 1===arguments.length?rK(t):new Ud(t,r,e,null==i?1:i)}function Ud(t,r,e,i){this.l=+t,this.a=+r,this.b=+e,this.opacity=+i}function L7(t){return t>.008856451679035631?Math.pow(t,1/3):t/nK+tK}function Z7(t){return t>MC?t*t*t:nK*(t-tK)}function N7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function B7(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function iK(t){if(t instanceof $f)return new $f(t.h,t.c,t.l,t.opacity);if(t instanceof Ud||(t=rK(t)),0===t.a&&0===t.b)return new $f(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var r=Math.atan2(t.b,t.a)*Qq;return new $f(r<0?r+360:r,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function F7(t,r,e,i){return 1===arguments.length?iK(t):new $f(t,r,e,null==i?1:i)}function $f(t,r,e,i){this.h=+t,this.c=+r,this.l=+e,this.opacity=+i}function oK(t){if(isNaN(t.h))return new Ud(t.l,0,0,t.opacity);var r=t.h*Jq;return new Ud(t.l,Math.cos(r)*t.c,Math.sin(r)*t.c,t.opacity)}function mfe(t,r){var e=Hs((t=R7(t)).l,(r=R7(r)).l),i=Hs(t.a,r.a),o=Hs(t.b,r.b),a=Hs(t.opacity,r.opacity);return function(s){return t.l=e(s),t.a=i(s),t.b=o(s),t.opacity=a(s),t+""}}function aK(t){return function(r,e){var i=t((r=F7(r)).h,(e=F7(e)).h),o=Hs(r.c,e.c),a=Hs(r.l,e.l),s=Hs(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+""}}}kC(Ud,R7,jS(J_,{brighter:function(r){return new Ud(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new Ud(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 il(N7(3.1338561*(e=.96422*Z7(e))-1.6168667*(r=1*Z7(r))-.4906146*(i=.82521*Z7(i))),N7(-.9787684*e+1.9161415*r+.033454*i),N7(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),kC($f,F7,jS(J_,{brighter:function(r){return new $f(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new $f(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return oK(this).rgb()}}));var _fe=aK(M7),gfe=aK(Hs),U7=1.78277,H7=-.29227,XL=-.90649,GS=1.97294,lK=GS*XL,uK=GS*U7,cK=U7*H7- -.14861*XL;function vfe(t){if(t instanceof wy)return new wy(t.h,t.s,t.l,t.opacity);t instanceof il||(t=w7(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(cK*i+lK*r-uK*e)/(cK+lK-uK),a=i-o,s=(GS*(e-o)-H7*a)/XL,l=Math.sqrt(s*s+a*a)/(GS*o*(1-o)),u=l?Math.atan2(s,a)*Qq-120:NaN;return new wy(u<0?u+360:u,l,o,t.opacity)}function j7(t,r,e,i){return 1===arguments.length?vfe(t):new wy(t,r,e,null==i?1:i)}function wy(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function dK(t){return function r(e){function i(o,a){var s=t((o=j7(o)).h,(a=j7(a)).h),l=Hs(o.s,a.s),u=Hs(o.l,a.l),f=Hs(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=f(h),o+""}}return e=+e,i.gamma=r,i}(1)}kC(wy,j7,jS(J_,{brighter:function(r){return r=null==r?TC:Math.pow(TC,r),new wy(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wy(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*Jq,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new il(255*(e+i*(-.14861*o+U7*a)),255*(e+i*(H7*o+XL*a)),255*(e+i*(GS*o)),this.opacity)}}));var yfe=dK(M7),bfe=dK(Hs);function Cfe(t,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=t(i/(r-1));return e}function wfe(t){for(var i,r=-1,e=t.length,o=t[e-1],a=0;++r<e;)i=o,o=t[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function kfe(t){for(var a,l,r=-1,e=t.length,i=0,o=0,s=t[e-1],u=0;++r<e;)a=s,s=t[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 Tfe(t,r,e){return(r[0]-t[0])*(e[1]-t[1])-(r[1]-t[1])*(e[0]-t[0])}function Efe(t,r){return t[0]-r[0]||t[1]-r[1]}function fK(t){for(var r=t.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Tfe(t[e[i-2]],t[e[i-1]],t[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Mfe(t){if((e=t.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+t[r][0],+t[r][1],r];for(i.sort(Efe),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=fK(i),s=fK(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],f=[];for(r=a.length-1;r>=0;--r)f.push(t[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)f.push(t[i[s[r]][2]]);return f}function Sfe(t,r){for(var u,f,e=t.length,i=t[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,v=0;v<e;++v)u=(i=t[v])[0],(f=i[1])>a!=l>a&&o<(s-u)*(a-f)/(l-f)+u&&(h=!h),s=u,l=f;return h}function xfe(t){for(var o,a,r=-1,e=t.length,i=t[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=t[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function SC(){return Math.random()}var Dfe=function t(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=t,e}(SC),pK=function t(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=t,e}(SC),Afe=function t(r){function e(){var i=pK.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=t,e}(SC),hK=function t(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=t,e}(SC),Ofe=function t(r){function e(i){var o=hK.source(r)(i);return function(){return o()/i}}return e.source=t,e}(SC),Ife=function t(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=t,e}(SC),mK=Array.prototype,z7=mK.map,Q_=mK.slice,W7={name:"implicit"};function V7(t){var r=j_(),e=[],i=W7;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==W7)return i;r.set(s,l=e.push(a))}return t[(l-1)%t.length]}return t=null==t?[]:Q_.call(t),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=j_();for(var u,f,s=-1,l=a.length;++s<l;)r.has(f=(u=a[s])+"")||r.set(f,e.push(u));return o},o.range=function(a){return arguments.length?(t=Q_.call(a),o):t.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return V7().domain(e).range(t).unknown(i)},o}function Y7(){var o,a,t=V7().unknown(void 0),r=t.domain,e=t.range,i=[0,1],s=!1,l=0,u=0,f=.5;function h(){var v=r().length,C=i[1]<i[0],B=i[C-0],G=i[1-C];o=(G-B)/Math.max(1,v-l+2*u),s&&(o=Math.floor(o)),B+=(G-B-o*(v-l))*f,a=o*(1-l),s&&(B=Math.round(B),a=Math.round(a));var q=Nl(v).map(function(ae){return B+o*ae});return e(C?q.reverse():q)}return delete t.unknown,t.domain=function(v){return arguments.length?(r(v),h()):r()},t.range=function(v){return arguments.length?(i=[+v[0],+v[1]],h()):i.slice()},t.rangeRound=function(v){return i=[+v[0],+v[1]],s=!0,h()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(v){return arguments.length?(s=!!v,h()):s},t.padding=function(v){return arguments.length?(l=u=Math.max(0,Math.min(1,v)),h()):l},t.paddingInner=function(v){return arguments.length?(l=Math.max(0,Math.min(1,v)),h()):l},t.paddingOuter=function(v){return arguments.length?(u=Math.max(0,Math.min(1,v)),h()):u},t.align=function(v){return arguments.length?(f=Math.max(0,Math.min(1,v)),h()):f},t.copy=function(){return Y7().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(f)},h()}function _K(t){var r=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return _K(r())},t}function Pfe(){return _K(Y7().paddingInner(1))}function Rfe(t,r){return t=+t,r=+r,function(e){return Math.round(t*(1-e)+r*e)}}function G7(t){return function(){return t}}function gK(t){return+t}var vK=[0,1];function q7(t,r){return(r-=t=+t)?function(e){return(e-t)/r}:G7(r)}function Nfe(t,r,e,i){var o=t[0],a=t[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 Bfe(t,r,e,i){var o=Math.min(t.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(t[o]<t[0]&&(t=t.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(t[l],t[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var f=O_(t,u,1,o)-1;return s[f](a[f](u))}}function $L(t,r){return r.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function e5(t,r){var s,l,u,e=vK,i=vK,o=RR,a=!1;function f(){return s=Math.min(e.length,i.length)>2?Bfe:Nfe,l=u=null,h}function h(v){return(l||(l=s(e,i,a?function Lfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(t):t,o)))(+v)}return h.invert=function(v){return(u||(u=s(i,e,q7,a?function Zfe(t){return function(r,e){var i=t(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+v)},h.domain=function(v){return arguments.length?(e=z7.call(v,gK),f()):e.slice()},h.range=function(v){return arguments.length?(i=Q_.call(v),f()):i.slice()},h.rangeRound=function(v){return i=Q_.call(v),o=Rfe,f()},h.clamp=function(v){return arguments.length?(a=!!v,f()):a},h.interpolate=function(v){return arguments.length?(o=v,f()):o},f()}var yK,Ffe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function t5(t){if(!(r=Ffe.exec(t)))throw new Error("invalid format: "+t);var r;return new K7({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 K7(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function n5(t,r){if((e=(t=r?t.toExponential(r-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}function xC(t){return(t=n5(Math.abs(t)))?t[1]:NaN}function bK(t,r){var e=n5(t,r);if(!e)return t+"";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")}t5.prototype=K7.prototype,K7.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 CK={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Ufe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.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 bK(100*r,e)},r:bK,s:function Vfe(t,r){var e=n5(t,r);if(!e)return t+"";var i=e[0],o=e[1],a=o-(yK=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")+n5(t,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 wK(t){return t}var r5,J7,EK,kK=Array.prototype.map,TK=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Yfe(t){var r=void 0===t.grouping||void 0===t.thousands?wK:function jfe(t,r){return function(e,i){for(var o=e.length,a=[],s=0,l=t[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=t[s=(s+1)%t.length];return a.reverse().join(r)}}(kK.call(t.grouping,Number),t.thousands+""),e=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?wK:function zfe(t){return function(r){return r.replace(/[0-9]/g,function(e){return t[+e]})}}(kK.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(v){var C=(v=t5(v)).fill,B=v.align,G=v.sign,q=v.symbol,ae=v.zero,he=v.width,Ye=v.comma,Me=v.precision,Fe=v.trim,ft=v.type;"n"===ft?(Ye=!0,ft="g"):CK[ft]||(void 0===Me&&(Me=12),Fe=!0,ft="g"),(ae||"0"===C&&"="===B)&&(ae=!0,C="0",B="=");var ht="$"===q?e:"#"===q&&/[boxX]/.test(ft)?"0"+ft.toLowerCase():"",Re="$"===q?i:/[%p]/.test(ft)?s:"",ut=CK[ft],kt=/[defgprs%]/.test(ft);function x(g){var te,re,ye,O=ht,H=Re;if("c"===ft)H=ut(g)+H,g="";else{var pt=(g=+g)<0||1/g<0;if(g=isNaN(g)?u:ut(Math.abs(g),Me),Fe&&(g=function Wfe(t){e:for(var o,r=t.length,e=1,i=-1;e<r;++e)switch(t[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+t[e])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(o+1):t}(g)),pt&&0==+g&&"+"!==G&&(pt=!1),O=(pt?"("===G?G:l:"-"===G||"("===G?"":G)+O,H=("s"===ft?TK[8+yK/3]:"")+H+(pt&&"("===G?")":""),kt)for(te=-1,re=g.length;++te<re;)if(48>(ye=g.charCodeAt(te))||ye>57){H=(46===ye?o+g.slice(te+1):g.slice(te))+H,g=g.slice(0,te);break}}Ye&&!ae&&(g=r(g,1/0));var xt=O.length+g.length+H.length,Ce=xt<he?new Array(he-xt+1).join(C):"";switch(Ye&&ae&&(g=r(Ce+g,Ce.length?he-H.length:1/0),Ce=""),B){case"<":g=O+g+H+Ce;break;case"=":g=O+Ce+g+H;break;case"^":g=Ce.slice(0,xt=Ce.length>>1)+O+g+H+Ce.slice(xt);break;default:g=Ce+O+g+H}return a(g)}return Me=void 0===Me?6:/[gprs]/.test(ft)?Math.max(1,Math.min(21,Me)):Math.max(0,Math.min(20,Me)),x.toString=function(){return v+""},x}return{format:f,formatPrefix:function h(v,C){var B=f(((v=t5(v)).type="f",v)),G=3*Math.max(-8,Math.min(8,Math.floor(xC(C)/3))),q=Math.pow(10,-G),ae=TK[8+G/3];return function(he){return B(q*he)+ae}}}}function Jfe(t,r,e){var s,i=t[0],o=t[t.length-1],a=R_(i,o,null==r?10:r);switch((e=t5(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function Hfe(t,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xC(r)/3)))-xC(Math.abs(t)))}(a,l))&&(e.precision=s),EK(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function qfe(t,r){return t=Math.abs(t),r=Math.abs(r)-t,Math.max(0,xC(r)-xC(t))+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 Kfe(t){return Math.max(0,-xC(Math.abs(t)))}(a))&&(e.precision=s-2*("%"===e.type))}return J7(e)}function qS(t){var r=t.domain;return t.ticks=function(e){var i=r();return P_(i[0],i[i.length-1],null==e?10:e)},t.tickFormat=function(e,i){return Jfe(r(),e,i)},t.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=mh(s,l,e))>0?u=mh(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=mh(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)),t},t}function MK(){var t=e5(q7,Oc);return t.copy=function(){return $L(t,MK())},qS(t)}function SK(){var t=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=z7.call(e,gK),r):t.slice()},r.copy=function(){return SK().domain(t)},qS(r)}function xK(t,r){var s,e=0,i=(t=t.slice()).length-1,o=t[e],a=t[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),t[e]=r.floor(o),t[i]=r.ceil(a),t}function Qfe(t,r){return(r=Math.log(r/t))?function(e){return Math.log(e/t)/r}:G7(r)}function Xfe(t,r){return t<0?function(e){return-Math.pow(-r,e)*Math.pow(-t,1-e)}:function(e){return Math.pow(r,e)*Math.pow(t,1-e)}}function $fe(t){return isFinite(t)?+("1e"+t):t<0?0:t}function DK(t){return 10===t?$fe:t===Math.E?Math.exp:function(r){return Math.pow(t,r)}}function AK(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(r){return Math.log(r)/t})}function OK(t){return function(r){return-t(-r)}}function IK(){var t=e5(Qfe,Xfe).domain([1,10]),r=t.domain,e=10,i=AK(10),o=DK(10);function a(){return i=AK(e),o=DK(e),r()[0]<0&&(i=OK(i),o=OK(o)),t}return t.base=function(s){return arguments.length?(e=+s,a()):e},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=function(s){var h,l=r(),u=l[0],f=l[l.length-1];(h=f<u)&&(v=u,u=f,f=v);var B,G,q,v=i(u),C=i(f),ae=null==s?10:+s,he=[];if(!(e%1)&&C-v<ae){if(v=Math.round(v)-1,C=Math.round(C)+1,u>0){for(;v<C;++v)for(G=1,B=o(v);G<e;++G)if(!((q=B*G)<u)){if(q>f)break;he.push(q)}}else for(;v<C;++v)for(G=e-1,B=o(v);G>=1;--G)if(!((q=B*G)<u)){if(q>f)break;he.push(q)}}else he=P_(v,C,Math.min(C-v,ae)).map(o);return h?he.reverse():he},t.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=J7(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/t.ticks().length);return function(f){var h=f/o(Math.round(i(f)));return h*e<e-.5&&(h*=e),h<=u?l(f):""}},t.nice=function(){return r(xK(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},t.copy=function(){return $L(t,IK().base(e))},t}function DC(t,r){return t<0?-Math.pow(-t,r):Math.pow(t,r)}function Q7(){var t=1,r=e5(function i(a,s){return(s=DC(s,t)-(a=DC(a,t)))?function(l){return(DC(l,t)-a)/s}:G7(s)},function o(a,s){return s=DC(s,t)-(a=DC(a,t)),function(l){return DC(a+s*l,1/t)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(t=+a,e(e())):t},r.copy=function(){return $L(r,Q7().exponent(t))},qS(r)}function epe(){return Q7().exponent(.5)}function PK(){var t=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=L_(t,a/s);return o}function o(a){if(!isNaN(a=+a))return r[O_(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:t[0],s<e.length?e[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&t.push(u);return t.sort(Nf),i()},o.range=function(a){return arguments.length?(r=Q_.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return PK().domain(t).range(r)},o}function RK(){var t=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[O_(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*t)/(e+1);return a}return a.domain=function(l){return arguments.length?(t=+l[0],r=+l[1],s()):[t,r]},a.range=function(l){return arguments.length?(e=(o=Q_.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return RK().domain([t,r]).range(o)},qS(a)}function LK(){var t=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[O_(t,o,0,e)]}return i.domain=function(o){return arguments.length?(t=Q_.call(o),e=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(o){return arguments.length?(r=Q_.call(o),e=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[t[a-1],t[a]]},i.copy=function(){return LK().domain(t).range(r)},i}!function Gfe(t){return r5=Yfe(t),J7=r5.format,EK=r5.formatPrefix,r5}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var X7=new Date,$7=new Date;function js(t,r,e,i){function o(a){return t(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return t(a=new Date(+a)),a},o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(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 f,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f<a&&a<s);return u},o.filter=function(a){return js(function(s){if(s>=s)for(;t(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 X7.setTime(+a),$7.setTime(+s),t(X7),t($7),Math.floor(e(X7,$7))},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 e9=js(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});e9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var Hd=e9,ZK=(e9.range,js(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()})),tpe=ZK,ky=(ZK.range,6e4),o5=36e5,BK=6048e5;function Ty(t){return js(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*ky)/BK})}var a5=Ty(0),Ey=Ty(1),npe=Ty(2),rpe=Ty(3),Ah=Ty(4),ipe=Ty(5),ope=Ty(6),FK=(a5.range,Ey.range,npe.range,rpe.range,Ah.range,ipe.range,ope.range,js(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*ky)/864e5},function(t){return t.getDate()-1})),KS=FK,UK=(FK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*ky)},function(t,r){t.setTime(+t+r*o5)},function(t,r){return(r-t)/o5},function(t){return t.getHours()})),ape=UK,HK=(UK.range,js(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*ky)},function(t,r){return(r-t)/ky},function(t){return t.getMinutes()})),spe=HK,jK=(HK.range,js(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()})),zK=jK,s5=(jK.range,js(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t}));s5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?js(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):s5:null};var WK=s5;s5.range;function My(t){return js(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/BK})}var l5=My(0),Sy=My(1),lpe=My(2),upe=My(3),Oh=My(4),cpe=My(5),dpe=My(6),VK=(l5.range,Sy.range,lpe.range,upe.range,Oh.range,cpe.range,dpe.range,js(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1})),JS=VK,t9=(VK.range,js(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));t9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?js(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var jd=t9;t9.range;function n9(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function r9(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function QS(t,r,e){return{y:t,m:r,d:e,H:0,M:0,S:0,L:0}}var AC,aJ,sJ,YK={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,ppe=/^%/,hpe=/[\\^$*+?|[\]().{}]/g;function vo(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function mpe(t){return t.replace(hpe,"\\$&")}function XS(t){return new RegExp("^(?:"+t.map(mpe).join("|")+")","i")}function $S(t){for(var r={},e=-1,i=t.length;++e<i;)r[t[e].toLowerCase()]=e;return r}function _pe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function gpe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function vpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function ype(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function bpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function GK(t,r,e){var i=zs.exec(r.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function qK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Cpe(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function wpe(t,r,e){var i=zs.exec(r.slice(e,e+1));return i?(t.q=3*i[0]-3,e+i[0].length):-1}function kpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function KK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function Tpe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function JK(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Epe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Mpe(t,r,e){var i=zs.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Spe(t,r,e){var i=zs.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function xpe(t,r,e){var i=zs.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Dpe(t,r,e){var i=ppe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Ape(t,r,e){var i=zs.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function Ope(t,r,e){var i=zs.exec(r.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function QK(t,r){return vo(t.getDate(),r,2)}function Ipe(t,r){return vo(t.getHours(),r,2)}function Ppe(t,r){return vo(t.getHours()%12||12,r,2)}function Rpe(t,r){return vo(1+KS.count(Hd(t),t),r,3)}function XK(t,r){return vo(t.getMilliseconds(),r,3)}function Lpe(t,r){return XK(t,r)+"000"}function Zpe(t,r){return vo(t.getMonth()+1,r,2)}function Npe(t,r){return vo(t.getMinutes(),r,2)}function Bpe(t,r){return vo(t.getSeconds(),r,2)}function Fpe(t){var r=t.getDay();return 0===r?7:r}function Upe(t,r){return vo(a5.count(Hd(t)-1,t),r,2)}function $K(t){var r=t.getDay();return r>=4||0===r?Ah(t):Ah.ceil(t)}function Hpe(t,r){return t=$K(t),vo(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function jpe(t){return t.getDay()}function zpe(t,r){return vo(Ey.count(Hd(t)-1,t),r,2)}function Wpe(t,r){return vo(t.getFullYear()%100,r,2)}function Vpe(t,r){return vo((t=$K(t)).getFullYear()%100,r,2)}function Ype(t,r){return vo(t.getFullYear()%1e4,r,4)}function Gpe(t,r){var e=t.getDay();return vo((t=e>=4||0===e?Ah(t):Ah.ceil(t)).getFullYear()%1e4,r,4)}function qpe(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+vo(r/60|0,"0",2)+vo(r%60,"0",2)}function eJ(t,r){return vo(t.getUTCDate(),r,2)}function Kpe(t,r){return vo(t.getUTCHours(),r,2)}function Jpe(t,r){return vo(t.getUTCHours()%12||12,r,2)}function Qpe(t,r){return vo(1+JS.count(jd(t),t),r,3)}function tJ(t,r){return vo(t.getUTCMilliseconds(),r,3)}function Xpe(t,r){return tJ(t,r)+"000"}function $pe(t,r){return vo(t.getUTCMonth()+1,r,2)}function ehe(t,r){return vo(t.getUTCMinutes(),r,2)}function the(t,r){return vo(t.getUTCSeconds(),r,2)}function nhe(t){var r=t.getUTCDay();return 0===r?7:r}function rhe(t,r){return vo(l5.count(jd(t)-1,t),r,2)}function nJ(t){var r=t.getUTCDay();return r>=4||0===r?Oh(t):Oh.ceil(t)}function ihe(t,r){return t=nJ(t),vo(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function ohe(t){return t.getUTCDay()}function ahe(t,r){return vo(Sy.count(jd(t)-1,t),r,2)}function she(t,r){return vo(t.getUTCFullYear()%100,r,2)}function lhe(t,r){return vo((t=nJ(t)).getUTCFullYear()%100,r,2)}function uhe(t,r){return vo(t.getUTCFullYear()%1e4,r,4)}function che(t,r){var e=t.getUTCDay();return vo((t=e>=4||0===e?Oh(t):Oh.ceil(t)).getUTCFullYear()%1e4,r,4)}function dhe(){return"+0000"}function rJ(){return"%"}function iJ(t){return+t}function oJ(t){return Math.floor(+t/1e3)}!function hhe(t){return AC=function fpe(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=XS(o),h=$S(o),v=XS(a),C=$S(a),B=XS(s),G=$S(s),q=XS(l),ae=$S(l),he=XS(u),Ye=$S(u),Me={a:function pt(Wn){return s[Wn.getDay()]},A:function xt(Wn){return a[Wn.getDay()]},b:function Ce(Wn){return u[Wn.getMonth()]},B:function st(Wn){return l[Wn.getMonth()]},c:null,d:QK,e:QK,f:Lpe,g:Vpe,G:Gpe,H:Ipe,I:Ppe,j:Rpe,L:XK,m:Zpe,M:Npe,p:function Lt(Wn){return o[+(Wn.getHours()>=12)]},q:function Hn(Wn){return 1+~~(Wn.getMonth()/3)},Q:iJ,s:oJ,S:Bpe,u:Fpe,U:Upe,V:Hpe,w:jpe,W:zpe,x:null,X:null,y:Wpe,Y:Ype,Z:qpe,"%":rJ},Fe={a:function er(Wn){return s[Wn.getUTCDay()]},A:function Zn(Wn){return a[Wn.getUTCDay()]},b:function Cn(Wn){return u[Wn.getUTCMonth()]},B:function ma(Wn){return l[Wn.getUTCMonth()]},c:null,d:eJ,e:eJ,f:Xpe,g:lhe,G:che,H:Kpe,I:Jpe,j:Qpe,L:tJ,m:$pe,M:ehe,p:function Tr(Wn){return o[+(Wn.getUTCHours()>=12)]},q:function zr(Wn){return 1+~~(Wn.getUTCMonth()/3)},Q:iJ,s:oJ,S:the,u:nhe,U:rhe,V:ihe,w:ohe,W:ahe,x:null,X:null,y:she,Y:uhe,Z:dhe,"%":rJ},ft={a:function x(Wn,In,yr){var kn=B.exec(In.slice(yr));return kn?(Wn.w=G[kn[0].toLowerCase()],yr+kn[0].length):-1},A:function g(Wn,In,yr){var kn=v.exec(In.slice(yr));return kn?(Wn.w=C[kn[0].toLowerCase()],yr+kn[0].length):-1},b:function O(Wn,In,yr){var kn=he.exec(In.slice(yr));return kn?(Wn.m=Ye[kn[0].toLowerCase()],yr+kn[0].length):-1},B:function H(Wn,In,yr){var kn=q.exec(In.slice(yr));return kn?(Wn.m=ae[kn[0].toLowerCase()],yr+kn[0].length):-1},c:function te(Wn,In,yr){return ut(Wn,r,In,yr)},d:KK,e:KK,f:xpe,g:qK,G:GK,H:JK,I:JK,j:Tpe,L:Spe,m:kpe,M:Epe,p:function kt(Wn,In,yr){var kn=f.exec(In.slice(yr));return kn?(Wn.p=h[kn[0].toLowerCase()],yr+kn[0].length):-1},q:wpe,Q:Ape,s:Ope,S:Mpe,u:gpe,U:vpe,V:ype,w:_pe,W:bpe,x:function re(Wn,In,yr){return ut(Wn,e,In,yr)},X:function ye(Wn,In,yr){return ut(Wn,i,In,yr)},y:qK,Y:GK,Z:Cpe,"%":Dpe};function ht(Wn,In){return function(yr){var Yi,Cs,VN,kn=[],Br=-1,qr=0,Yo=Wn.length;for(yr instanceof Date||(yr=new Date(+yr));++Br<Yo;)37===Wn.charCodeAt(Br)&&(kn.push(Wn.slice(qr,Br)),null!=(Cs=YK[Yi=Wn.charAt(++Br)])?Yi=Wn.charAt(++Br):Cs="e"===Yi?" ":"0",(VN=In[Yi])&&(Yi=VN(yr,Cs)),kn.push(Yi),qr=Br+1);return kn.push(Wn.slice(qr,Br)),kn.join("")}}function Re(Wn,In){return function(yr){var qr,Yo,kn=QS(1900,void 0,1);if(ut(kn,Wn,yr+="",0)!=yr.length)return null;if("Q"in kn)return new Date(kn.Q);if("s"in kn)return new Date(1e3*kn.s+("L"in kn?kn.L:0));if(In&&!("Z"in kn)&&(kn.Z=0),"p"in kn&&(kn.H=kn.H%12+12*kn.p),void 0===kn.m&&(kn.m="q"in kn?kn.q:0),"V"in kn){if(kn.V<1||kn.V>53)return null;"w"in kn||(kn.w=1),"Z"in kn?(Yo=(qr=r9(QS(kn.y,0,1))).getUTCDay(),qr=Yo>4||0===Yo?Sy.ceil(qr):Sy(qr),qr=JS.offset(qr,7*(kn.V-1)),kn.y=qr.getUTCFullYear(),kn.m=qr.getUTCMonth(),kn.d=qr.getUTCDate()+(kn.w+6)%7):(Yo=(qr=n9(QS(kn.y,0,1))).getDay(),qr=Yo>4||0===Yo?Ey.ceil(qr):Ey(qr),qr=KS.offset(qr,7*(kn.V-1)),kn.y=qr.getFullYear(),kn.m=qr.getMonth(),kn.d=qr.getDate()+(kn.w+6)%7)}else("W"in kn||"U"in kn)&&("w"in kn||(kn.w="u"in kn?kn.u%7:"W"in kn?1:0),Yo="Z"in kn?r9(QS(kn.y,0,1)).getUTCDay():n9(QS(kn.y,0,1)).getDay(),kn.m=0,kn.d="W"in kn?(kn.w+6)%7+7*kn.W-(Yo+5)%7:kn.w+7*kn.U-(Yo+6)%7);return"Z"in kn?(kn.H+=kn.Z/100|0,kn.M+=kn.Z%100,r9(kn)):n9(kn)}}function ut(Wn,In,yr,kn){for(var Yi,Cs,Br=0,qr=In.length,Yo=yr.length;Br<qr;){if(kn>=Yo)return-1;if(37===(Yi=In.charCodeAt(Br++))){if(Yi=In.charAt(Br++),!(Cs=ft[Yi in YK?In.charAt(Br++):Yi])||(kn=Cs(Wn,yr,kn))<0)return-1}else if(Yi!=yr.charCodeAt(kn++))return-1}return kn}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Fe.x=ht(e,Fe),Fe.X=ht(i,Fe),Fe.c=ht(r,Fe),{format:function(In){var yr=ht(In+="",Me);return yr.toString=function(){return In},yr},parse:function(In){var yr=Re(In+="",!1);return yr.toString=function(){return In},yr},utcFormat:function(In){var yr=ht(In+="",Fe);return yr.toString=function(){return In},yr},utcParse:function(In){var yr=Re(In+="",!0);return yr.toString=function(){return In},yr}}}(t),aJ=AC.format,AC.parse,sJ=AC.utcFormat,AC.utcParse,AC}({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 ex=1e3,tx=6e4,nx=60*tx,rx=24*nx,lJ=30*rx,i9=365*rx;function _he(t){return new Date(t)}function ghe(t){return t instanceof Date?+t:+new Date(+t)}function o9(t,r,e,i,o,a,s,l,u){var f=e5(q7,Oc),h=f.invert,v=f.domain,C=u(".%L"),B=u(":%S"),G=u("%I:%M"),q=u("%I %p"),ae=u("%a %d"),he=u("%b %d"),Ye=u("%B"),Me=u("%Y"),Fe=[[s,1,ex],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,tx],[a,5,5*tx],[a,15,15*tx],[a,30,30*tx],[o,1,nx],[o,3,3*nx],[o,6,6*nx],[o,12,12*nx],[i,1,rx],[i,2,2*rx],[e,1,6048e5],[r,1,lJ],[r,3,3*lJ],[t,1,i9]];function ft(Re){return(s(Re)<Re?C:a(Re)<Re?B:o(Re)<Re?G:i(Re)<Re?q:r(Re)<Re?e(Re)<Re?ae:he:t(Re)<Re?Ye:Me)(Re)}function ht(Re,ut,kt,x){if(null==Re&&(Re=10),"number"==typeof Re){var g=Math.abs(kt-ut)/Re,O=U1(function(H){return H[2]}).right(Fe,g);O===Fe.length?(x=R_(ut/i9,kt/i9,Re),Re=t):O?(x=(O=Fe[g/Fe[O-1][2]<Fe[O][2]/g?O-1:O])[1],Re=O[0]):(x=Math.max(R_(ut,kt,Re),1),Re=l)}return null==x?Re:Re.every(x)}return f.invert=function(Re){return new Date(h(Re))},f.domain=function(Re){return arguments.length?v(z7.call(Re,ghe)):v().map(_he)},f.ticks=function(Re,ut){var H,kt=v(),x=kt[0],g=kt[kt.length-1],O=g<x;return O&&(H=x,x=g,g=H),H=(H=ht(Re,x,g,ut))?H.range(x,g+1):[],O?H.reverse():H},f.tickFormat=function(Re,ut){return null==ut?ft:u(ut)},f.nice=function(Re,ut){var kt=v();return(Re=ht(Re,kt[0],kt[kt.length-1],ut))?v(xK(kt,Re)):f},f.copy=function(){return $L(f,o9(t,r,e,i,o,a,s,l,u))},f}function vhe(){return o9(Hd,tpe,a5,KS,ape,spe,zK,WK,aJ).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var uJ=js(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCMonth(t.getUTCMonth()+r)},function(t,r){return r.getUTCMonth()-t.getUTCMonth()+12*(r.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),yhe=uJ,cJ=(uJ.range,js(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*o5)},function(t,r){return(r-t)/o5},function(t){return t.getUTCHours()})),bhe=cJ,dJ=(cJ.range,js(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*ky)},function(t,r){return(r-t)/ky},function(t){return t.getUTCMinutes()})),Che=dJ;dJ.range;function whe(){return o9(jd,yhe,l5,JS,bhe,Che,zK,WK,sJ).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function fJ(t){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return t(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?(t=a,o):t},o.copy=function(){return fJ(t).domain([r,e]).clamp(i)},qS(o)}function Mi(t){for(var r=t.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+t.slice(6*i,6*++i);return e}var khe=Mi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),The=Mi("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Ehe=Mi("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Mhe=Mi("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),She=Mi("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),xhe=Mi("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Dhe=Mi("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ahe=Mi("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ohe=Mi("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function zo(t){return ly(t[t.length-1])}var pJ=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mi),Ihe=zo(pJ),hJ=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mi),Phe=zo(hJ),mJ=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mi),Rhe=zo(mJ),_J=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mi),Lhe=zo(_J),gJ=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mi),Zhe=zo(gJ),vJ=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mi),Nhe=zo(vJ),yJ=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mi),Bhe=zo(yJ),bJ=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mi),Fhe=zo(bJ),CJ=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mi),Uhe=zo(CJ),wJ=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mi),Hhe=zo(wJ),kJ=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mi),jhe=zo(kJ),TJ=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mi),zhe=zo(TJ),EJ=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mi),Whe=zo(EJ),MJ=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mi),Vhe=zo(MJ),SJ=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mi),Yhe=zo(SJ),xJ=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mi),Ghe=zo(xJ),DJ=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mi),qhe=zo(DJ),AJ=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mi),Khe=zo(AJ),OJ=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mi),Jhe=zo(OJ),IJ=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mi),Qhe=zo(IJ),PJ=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mi),Xhe=zo(PJ),RJ=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mi),$he=zo(RJ),LJ=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mi),eme=zo(LJ),ZJ=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mi),tme=zo(ZJ),NJ=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mi),nme=zo(NJ),BJ=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mi),rme=zo(BJ),FJ=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mi),ime=zo(FJ),ome=Math.PI/180,ame=180/Math.PI,a9=1.78277,s9=-.29227,u5=-.90649,ix=1.97294,HJ=ix*u5,jJ=ix*a9,zJ=a9*s9- -.14861*u5;function sme(t){if(t instanceof xy)return new xy(t.h,t.s,t.l,t.opacity);t instanceof Ie||(t=le(t));var r=t.r/255,e=t.g/255,i=t.b/255,o=(zJ*i+HJ*r-jJ*e)/(zJ+HJ-jJ),a=i-o,s=(ix*(e-o)-s9*a)/u5,l=Math.sqrt(s*s+a*a)/(ix*o*(1-o)),u=l?Math.atan2(s,a)*ame-120:NaN;return new xy(u<0?u+360:u,l,o,t.opacity)}function ep(t,r,e,i){return 1===arguments.length?sme(t):new xy(t,r,e,null==i?1:i)}function xy(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function WJ(t){return function r(e){function i(o,a){var s=t((o=ep(o)).h,(a=ep(a)).h),l=Ul(o.s,a.s),u=Ul(o.l,a.l),f=Ul(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=f(h),o+""}}return e=+e,i.gamma=r,i}(1)}$1(xy,ep,PR(ay,{brighter:function(r){return r=null==r?ju:Math.pow(ju,r),new xy(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new xy(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*ome,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new Ie(255*(e+i*(-.14861*o+a9*a)),255*(e+i*(s9*o+u5*a)),255*(e+i*(ix*o)),this.opacity)}}));WJ(function nl(t,r){var e=r-t;return e?Po(t,e>180||e<-180?e-360*Math.round(e/360):e):Ni(isNaN(t)?r:t)});var l9=WJ(Ul),lme=l9(ep(300,.5,0),ep(-240,.5,1)),ume=l9(ep(-100,.75,.35),ep(80,1.5,.8)),cme=l9(ep(260,.75,.35),ep(80,1.5,.8)),c5=ep();function dme(t){(t<0||t>1)&&(t-=Math.floor(t));var r=Math.abs(t-.5);return c5.h=360*t-100,c5.s=1.5-1.5*r,c5.l=.8-.9*r,c5+""}function d5(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var fme=d5(Mi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),pme=d5(Mi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),hme=d5(Mi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),mme=d5(Mi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),u9="http://www.w3.org/1999/xhtml",c9={svg:"http://www.w3.org/2000/svg",xhtml:u9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function d9(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),c9.hasOwnProperty(r)?{space:c9[r],local:t}:t}function _me(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===u9&&r.documentElement.namespaceURI===u9?r.createElement(t):r.createElementNS(e,t)}}function gme(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f5(t){var r=d9(t);return(r.local?gme:_me)(r)}function vme(){}function f9(t){return null==t?vme:function(){return this.querySelector(t)}}function bme(){return[]}function VJ(t){return null==t?bme:function(){return this.querySelectorAll(t)}}var YJ=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var ox=document.documentElement;if(!ox.matches){var wme=ox.webkitMatchesSelector||ox.msMatchesSelector||ox.mozMatchesSelector||ox.oMatchesSelector;YJ=function(r){return function(){return wme.call(this,r)}}}}var GJ=YJ;function qJ(t){return new Array(t.length)}function p5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}p5.prototype={constructor:p5,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 Mme(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new p5(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Sme(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new p5(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function Pme(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}function Ume(t){return function(){this.removeAttribute(t)}}function Hme(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jme(t,r){return function(){this.setAttribute(t,r)}}function zme(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function Wme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Vme(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function p9(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Gme(t){return function(){this.style.removeProperty(t)}}function qme(t,r,e){return function(){this.style.setProperty(t,r,e)}}function Kme(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function JJ(t,r){return t.style.getPropertyValue(r)||p9(t).getComputedStyle(t,null).getPropertyValue(r)}function Qme(t){return function(){delete this[t]}}function Xme(t,r){return function(){this[t]=r}}function $me(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function QJ(t){return t.trim().split(/^|\s+/)}function h9(t){return t.classList||new XJ(t)}function XJ(t){this._node=t,this._names=QJ(t.getAttribute("class")||"")}function $J(t,r){for(var e=h9(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function eQ(t,r){for(var e=h9(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function t_e(t){return function(){$J(this,t)}}function n_e(t){return function(){eQ(this,t)}}function r_e(t,r){return function(){(r.apply(this,arguments)?$J:eQ)(this,t)}}function o_e(){this.textContent=""}function a_e(t){return function(){this.textContent=t}}function s_e(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function u_e(){this.innerHTML=""}function c_e(t){return function(){this.innerHTML=t}}function d_e(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function p_e(){this.nextSibling&&this.parentNode.appendChild(this)}function m_e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function v_e(){return null}function b_e(){var t=this.parentNode;t&&t.removeChild(this)}function w_e(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function k_e(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}XJ.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 tQ={},Ih=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tQ={mouseenter:"mouseover",mouseleave:"mouseout"}));function S_e(t,r,e){return t=nQ(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function nQ(t,r,e){return function(i){var o=Ih;Ih=i;try{t.call(this,this.__data__,r,e)}finally{Ih=o}}}function x_e(t){return t.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 D_e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function A_e(t,r,e){var i=tQ.hasOwnProperty(t.type)?S_e:nQ;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function I_e(t,r,e,i){var o=Ih;t.sourceEvent=Ih,Ih=t;try{return r.apply(e,i)}finally{Ih=o}}function rQ(t,r,e){var i=p9(t),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)),t.dispatchEvent(o)}function P_e(t,r){return function(){return rQ(this,t,r)}}function R_e(t,r){return function(){return rQ(this,t,r.apply(this,arguments))}}var m9=[null];function Gl(t,r){this._groups=t,this._parents=r}function iQ(){return new Gl([[document.documentElement]],m9)}Gl.prototype=iQ.prototype={constructor:Gl,select:function yme(t){"function"!=typeof t&&(t=f9(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new Gl(i,this._parents)},selectAll:function Cme(t){"function"!=typeof t&&(t=VJ(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new Gl(i,o)},filter:function kme(t){"function"!=typeof t&&(t=GJ(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new Gl(i,this._parents)},data:function xme(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?Sme:Mme,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function Eme(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Fe,ft,Ye=0,Me=0;Ye<G;++Ye)if(Fe=q[Ye]){for(Ye>=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me<G;);Fe._next=ft||null}}return(s=new Gl(s,i))._enter=l,s._exit=u,s},enter:function Tme(){return new Gl(this._enter||this._groups.map(qJ),this._parents)},exit:function Dme(){return new Gl(this._exit||this._groups.map(qJ),this._parents)},merge:function Ame(t){for(var r=this._groups,e=t._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new Gl(s,this._parents)},order:function Ome(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 Ime(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=Pme);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new Gl(o,this._parents).order()},call:function Rme(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function Lme(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function Zme(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Nme(){var t=0;return this.each(function(){++t}),t},empty:function Bme(){return!this.node()},each:function Fme(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function Yme(t,r){var e=d9(t);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?Hme:Ume:"function"==typeof r?e.local?Vme:Wme:e.local?zme:jme)(e,r))},style:function Jme(t,r,e){return arguments.length>1?this.each((null==r?Gme:"function"==typeof r?Kme:qme)(t,r,null==e?"":e)):JJ(this.node(),t)},property:function e_e(t,r){return arguments.length>1?this.each((null==r?Qme:"function"==typeof r?$me:Xme)(t,r)):this.node()[t]},classed:function i_e(t,r){var e=QJ(t+"");if(arguments.length<2){for(var i=h9(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?r_e:r?t_e:n_e)(e,r))},text:function l_e(t){return arguments.length?this.each(null==t?o_e:("function"==typeof t?s_e:a_e)(t)):this.node().textContent},html:function f_e(t){return arguments.length?this.each(null==t?u_e:("function"==typeof t?d_e:c_e)(t)):this.node().innerHTML},raise:function h_e(){return this.each(p_e)},lower:function __e(){return this.each(m_e)},append:function g_e(t){var r="function"==typeof t?t:f5(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function y_e(t,r){var e="function"==typeof t?t:f5(t),i=null==r?v_e:"function"==typeof r?r:f9(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function C_e(){return this.each(b_e)},clone:function T_e(t){return this.select(t?k_e:w_e)},datum:function E_e(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function O_e(t,r,e){var o,s,i=x_e(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?A_e:D_e,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,f=l.length;u<f;++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 L_e(t,r){return this.each(("function"==typeof r?R_e:P_e)(t,r))}};var Z_e=iQ;function oQ(t){return"string"==typeof t?new Gl([[document.querySelector(t)]],[document.documentElement]):new Gl([[t]],m9)}function N_e(t){return oQ(f5(t).call(document.documentElement))}var B_e=0;function aQ(){return new _9}function _9(){this._="@"+(++B_e).toString(36)}function g9(){for(var r,t=Ih;r=t.sourceEvent;)t=r;return t}function h5(t,r){var e=t.ownerSVGElement||t;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}var o=t.getBoundingClientRect();return[r.clientX-o.left-t.clientLeft,r.clientY-o.top-t.clientTop]}function F_e(t){var r=g9();return r.changedTouches&&(r=r.changedTouches[0]),h5(t,r)}function U_e(t){return"string"==typeof t?new Gl([document.querySelectorAll(t)],[document.documentElement]):new Gl([null==t?[]:t],m9)}function H_e(t,r,e){arguments.length<3&&(e=r,r=g9().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return h5(t,a);return null}function j_e(t,r){null==r&&(r=g9().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=h5(t,r[e]);return o}function z_e(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this);for(var o in e)i.attr(o,e[o])})}function W_e(t,r){for(var e in r)t.attr(e,r[e]);return t}function Y_e(t,r,e){return t.each(function(){var i=r.apply(this,arguments),o=gi(this);for(var a in i)o.style(a,i[a],e)})}function G_e(t,r,e){for(var i in r)t.style(i,r[i],e);return t}function K_e(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this);for(var o in e)i.property(o,e[o])})}function J_e(t,r){for(var e in r)t.property(e,r[e]);return t}function X_e(t,r){return t.each(function(){var e=r.apply(this,arguments),i=gi(this).transition(t);for(var o in e)i.attr(o,e[o])})}function $_e(t,r){for(var e in r)t.attr(e,r[e]);return t}function tge(t,r,e){return t.each(function(){var i=r.apply(this,arguments),o=gi(this).transition(t);for(var a in i)o.style(a,i[a],e)})}function nge(t,r,e){for(var i in r)t.style(i,r[i],e);return t}function Bi(t){return function(){return t}}_9.prototype=aQ.prototype={constructor:_9,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._}},Id.prototype.attrs=function V_e(t){return("function"==typeof t?z_e:W_e)(this,t)},Id.prototype.styles=function q_e(t,r){return("function"==typeof t?Y_e:G_e)(this,t,null==r?"":r)},Id.prototype.properties=function Q_e(t){return("function"==typeof t?K_e:J_e)(this,t)},G8.prototype.attrs=function ege(t){return("function"==typeof t?X_e:$_e)(this,t)},G8.prototype.styles=function rge(t,r){return("function"==typeof t?tge:nge)(this,t,null==r?"":r)};var sQ=Math.abs,kl=Math.atan2,Dy=Math.cos,ige=Math.max,v9=Math.min,tp=Math.sin,OC=Math.sqrt,ol=1e-12,Ay=Math.PI,m5=Ay/2,Ph=2*Ay;function oge(t){return t>1?0:t<-1?Ay:Math.acos(t)}function lQ(t){return t>=1?m5:t<=-1?-m5:Math.asin(t)}function age(t){return t.innerRadius}function sge(t){return t.outerRadius}function lge(t){return t.startAngle}function uge(t){return t.endAngle}function cge(t){return t&&t.padAngle}function dge(t,r,e,i,o,a,s,l){var u=e-t,f=i-r,h=s-o,v=l-a,C=v*u-h*f;if(!(C*C<ol))return[t+(C=(h*(r-a)-v*(t-o))/C)*u,r+C*f]}function _5(t,r,e,i,o,a,s){var l=t-e,u=r-i,f=(s?a:-a)/OC(l*l+u*u),h=f*u,v=-f*l,C=t+h,B=r+v,G=e+h,q=i+v,ae=(C+G)/2,he=(B+q)/2,Ye=G-C,Me=q-B,Fe=Ye*Ye+Me*Me,ft=o-a,ht=C*q-G*B,Re=(Me<0?-1:1)*OC(ige(0,ft*ft*Fe-ht*ht)),ut=(ht*Me-Ye*Re)/Fe,kt=(-ht*Ye-Me*Re)/Fe,x=(ht*Me+Ye*Re)/Fe,g=(-ht*Ye+Me*Re)/Fe,O=ut-ae,H=kt-he,te=x-ae,re=g-he;return O*O+H*H>te*te+re*re&&(ut=x,kt=g),{cx:ut,cy:kt,x01:-h,y01:-v,x11:ut*(o/ft-1),y11:kt*(o/ft-1)}}function fge(){var t=age,r=sge,e=Bi(0),i=null,o=lge,a=uge,s=cge,l=null;function u(){var f,h,v=+t.apply(this,arguments),C=+r.apply(this,arguments),B=o.apply(this,arguments)-m5,G=a.apply(this,arguments)-m5,q=sQ(G-B),ae=G>B;if(l||(l=f=Zd()),C<v&&(h=C,C=v,v=h),C>ol)if(q>Ph-ol)l.moveTo(C*Dy(B),C*tp(B)),l.arc(0,0,C,B,G,!ae),v>ol&&(l.moveTo(v*Dy(G),v*tp(G)),l.arc(0,0,v,G,B,ae));else{var O,H,he=B,Ye=G,Me=B,Fe=G,ft=q,ht=q,Re=s.apply(this,arguments)/2,ut=Re>ol&&(i?+i.apply(this,arguments):OC(v*v+C*C)),kt=v9(sQ(C-v)/2,+e.apply(this,arguments)),x=kt,g=kt;if(ut>ol){var te=lQ(ut/v*tp(Re)),re=lQ(ut/C*tp(Re));(ft-=2*te)>ol?(Me+=te*=ae?1:-1,Fe-=te):(ft=0,Me=Fe=(B+G)/2),(ht-=2*re)>ol?(he+=re*=ae?1:-1,Ye-=re):(ht=0,he=Ye=(B+G)/2)}var ye=C*Dy(he),pt=C*tp(he),xt=v*Dy(Fe),Ce=v*tp(Fe);if(kt>ol){var Zn,st=C*Dy(Ye),Lt=C*tp(Ye),Hn=v*Dy(Me),er=v*tp(Me);if(q<=Ph-ol&&(Zn=dge(ye,pt,Hn,er,st,Lt,xt,Ce))){var Cn=ye-Zn[0],ma=pt-Zn[1],Tr=st-Zn[0],zr=Lt-Zn[1],Wn=1/tp(oge((Cn*Tr+ma*zr)/(OC(Cn*Cn+ma*ma)*OC(Tr*Tr+zr*zr)))/2),In=OC(Zn[0]*Zn[0]+Zn[1]*Zn[1]);x=v9(kt,(v-In)/(Wn-1)),g=v9(kt,(C-In)/(Wn+1))}}ht>ol?g>ol?(O=_5(Hn,er,ye,pt,C,g,ae),H=_5(st,Lt,xt,Ce,C,g,ae),l.moveTo(O.cx+O.x01,O.cy+O.y01),g<kt?l.arc(O.cx,O.cy,g,kl(O.y01,O.x01),kl(H.y01,H.x01),!ae):(l.arc(O.cx,O.cy,g,kl(O.y01,O.x01),kl(O.y11,O.x11),!ae),l.arc(0,0,C,kl(O.cy+O.y11,O.cx+O.x11),kl(H.cy+H.y11,H.cx+H.x11),!ae),l.arc(H.cx,H.cy,g,kl(H.y11,H.x11),kl(H.y01,H.x01),!ae))):(l.moveTo(ye,pt),l.arc(0,0,C,he,Ye,!ae)):l.moveTo(ye,pt),v>ol&&ft>ol?x>ol?(O=_5(xt,Ce,st,Lt,v,-x,ae),H=_5(ye,pt,Hn,er,v,-x,ae),l.lineTo(O.cx+O.x01,O.cy+O.y01),x<kt?l.arc(O.cx,O.cy,x,kl(O.y01,O.x01),kl(H.y01,H.x01),!ae):(l.arc(O.cx,O.cy,x,kl(O.y01,O.x01),kl(O.y11,O.x11),!ae),l.arc(0,0,v,kl(O.cy+O.y11,O.cx+O.x11),kl(H.cy+H.y11,H.cx+H.x11),ae),l.arc(H.cx,H.cy,x,kl(H.y11,H.x11),kl(H.y01,H.x01),!ae))):l.arc(0,0,v,Fe,Me,ae):l.lineTo(xt,Ce)}else l.moveTo(0,0);if(l.closePath(),f)return l=null,f+""||null}return u.centroid=function(){var f=(+t.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ay/2;return[Dy(h)*f,tp(h)*f]},u.innerRadius=function(f){return arguments.length?(t="function"==typeof f?f:Bi(+f),u):t},u.outerRadius=function(f){return arguments.length?(r="function"==typeof f?f:Bi(+f),u):r},u.cornerRadius=function(f){return arguments.length?(e="function"==typeof f?f:Bi(+f),u):e},u.padRadius=function(f){return arguments.length?(i=null==f?null:"function"==typeof f?f:Bi(+f),u):i},u.startAngle=function(f){return arguments.length?(o="function"==typeof f?f:Bi(+f),u):o},u.endAngle=function(f){return arguments.length?(a="function"==typeof f?f:Bi(+f),u):a},u.padAngle=function(f){return arguments.length?(s="function"==typeof f?f:Bi(+f),u):s},u.context=function(f){return arguments.length?(l=null==f?null:f,u):l},u}function uQ(t){this._context=t}function g5(t){return new uQ(t)}function y9(t){return t[0]}function b9(t){return t[1]}function v5(){var t=y9,r=b9,e=Bi(!0),i=null,o=g5,a=null;function s(l){var u,h,C,f=l.length,v=!1;for(null==i&&(a=o(C=Zd())),u=0;u<=f;++u)!(u<f&&e(h=l[u],u,l))===v&&((v=!v)?a.lineStart():a.lineEnd()),v&&a.point(+t(h,u,l),+r(h,u,l));if(C)return a=null,C+""||null}return s.x=function(l){return arguments.length?(t="function"==typeof l?l:Bi(+l),s):t},s.y=function(l){return arguments.length?(r="function"==typeof l?l:Bi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:Bi(!!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 cQ(){var t=y9,r=null,e=Bi(0),i=b9,o=Bi(!0),a=null,s=g5,l=null;function u(h){var v,C,B,q,he,G=h.length,ae=!1,Ye=new Array(G),Me=new Array(G);for(null==a&&(l=s(he=Zd())),v=0;v<=G;++v){if(!(v<G&&o(q=h[v],v,h))===ae)if(ae=!ae)C=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),B=v-1;B>=C;--B)l.point(Ye[B],Me[B]);l.lineEnd(),l.areaEnd()}ae&&(Ye[v]=+t(q,v,h),Me[v]=+e(q,v,h),l.point(r?+r(q,v,h):Ye[v],i?+i(q,v,h):Me[v]))}if(he)return l=null,he+""||null}function f(){return v5().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),r=null,u):t},u.x0=function(h){return arguments.length?(t="function"==typeof h?h:Bi(+h),u):t},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:Bi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:Bi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:Bi(+h),u):i},u.lineX0=u.lineY0=function(){return f().x(t).y(e)},u.lineY1=function(){return f().x(t).y(i)},u.lineX1=function(){return f().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:Bi(!!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 pge(t,r){return r<t?-1:r>t?1:r>=t?0:NaN}function hge(t){return t}function mge(){var t=hge,r=pge,e=null,i=Bi(0),o=Bi(Ph),a=Bi(0);function s(l){var u,h,v,he,Fe,f=l.length,C=0,B=new Array(f),G=new Array(f),q=+i.apply(this,arguments),ae=Math.min(Ph,Math.max(-Ph,o.apply(this,arguments)-q)),Ye=Math.min(Math.abs(ae)/f,a.apply(this,arguments)),Me=Ye*(ae<0?-1:1);for(u=0;u<f;++u)(Fe=G[B[u]=u]=+t(l[u],u,l))>0&&(C+=Fe);for(null!=r?B.sort(function(ft,ht){return r(G[ft],G[ht])}):null!=e&&B.sort(function(ft,ht){return e(l[ft],l[ht])}),u=0,v=C?(ae-f*Me)/C:0;u<f;++u,q=he)h=B[u],he=q+((Fe=G[h])>0?Fe*v:0)+Me,G[h]={data:l[h],index:u,value:Fe,startAngle:q,endAngle:he,padAngle:Ye};return G}return s.value=function(l){return arguments.length?(t="function"==typeof l?l:Bi(+l),s):t},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:Bi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:Bi(+l),s):a},s}uQ.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 dQ=C9(g5);function fQ(t){this._curve=t}function C9(t){function r(e){return new fQ(t(e))}return r._curve=t,r}function ax(t){var r=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(e){return arguments.length?r(C9(e)):r()._curve},t}function pQ(){return ax(v5().curve(dQ))}function hQ(){var t=cQ().curve(dQ),r=t.curve,e=t.lineX0,i=t.lineX1,o=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ax(e())},delete t.lineX0,t.lineEndAngle=function(){return ax(i())},delete t.lineX1,t.lineInnerRadius=function(){return ax(o())},delete t.lineY0,t.lineOuterRadius=function(){return ax(a())},delete t.lineY1,t.curve=function(s){return arguments.length?r(C9(s)):r()._curve},t}function sx(t,r){return[(r=+r)*Math.cos(t-=Math.PI/2),r*Math.sin(t)]}fQ.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 w9=Array.prototype.slice;function _ge(t){return t.source}function gge(t){return t.target}function k9(t){var r=_ge,e=gge,i=y9,o=b9,a=null;function s(){var l,u=w9.call(arguments),f=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Zd()),t(a,+i.apply(this,(u[0]=f,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:Bi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:Bi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function vge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function yge(t,r,e,i,o){t.moveTo(r,e),t.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function bge(t,r,e,i,o){var a=sx(r,e),s=sx(r,e=(e+o)/2),l=sx(i,e),u=sx(i,o);t.moveTo(a[0],a[1]),t.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function Cge(){return k9(vge)}function wge(){return k9(yge)}function kge(){var t=k9(bge);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var T9={draw:function(r,e){var i=Math.sqrt(e/Ay);r.moveTo(i,0),r.arc(0,0,i,0,Ph)}},mQ={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()}},_Q=Math.sqrt(1/3),Tge=2*_Q,gQ={draw:function(r,e){var i=Math.sqrt(e/Tge),o=i*_Q;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},vQ=Math.sin(Ay/10)/Math.sin(7*Ay/10),Mge=Math.sin(Ph/10)*vQ,Sge=-Math.cos(Ph/10)*vQ,yQ={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=Mge*i,a=Sge*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=Ph*s/5,u=Math.cos(l),f=Math.sin(l);r.lineTo(f*i,-u*i),r.lineTo(u*o-f*a,f*o+u*a)}r.closePath()}},bQ={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},E9=Math.sqrt(3),CQ={draw:function(r,e){var i=-Math.sqrt(e/(3*E9));r.moveTo(0,2*i),r.lineTo(-E9*i,-i),r.lineTo(E9*i,-i),r.closePath()}},Rc=-.5,Lc=Math.sqrt(3)/2,M9=1/Math.sqrt(12),xge=3*(M9/2+1),wQ={draw:function(r,e){var i=Math.sqrt(e/xge),o=i/2,a=i*M9,s=o,l=i*M9+i,u=-s,f=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,f),r.lineTo(Rc*o-Lc*a,Lc*o+Rc*a),r.lineTo(Rc*s-Lc*l,Lc*s+Rc*l),r.lineTo(Rc*u-Lc*f,Lc*u+Rc*f),r.lineTo(Rc*o+Lc*a,Rc*a-Lc*o),r.lineTo(Rc*s+Lc*l,Rc*l-Lc*s),r.lineTo(Rc*u+Lc*f,Rc*f-Lc*u),r.closePath()}},Dge=[T9,mQ,gQ,bQ,yQ,CQ,wQ];function Age(){var t=Bi(T9),r=Bi(64),e=null;function i(){var o;if(e||(e=o=Zd()),t.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(t="function"==typeof o?o:Bi(o),i):t},i.size=function(o){return arguments.length?(r="function"==typeof o?o:Bi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function X_(){}function y5(t,r,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+r)/6,(t._y0+4*t._y1+e)/6)}function b5(t){this._context=t}function Oge(t){return new b5(t)}function kQ(t){this._context=t}function Ige(t){return new kQ(t)}function TQ(t){this._context=t}function Pge(t){return new TQ(t)}function EQ(t,r){this._basis=new b5(t),this._beta=r}b5.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:y5(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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},kQ.prototype={areaStart:X_,areaEnd:X_,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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},TQ.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:y5(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},EQ.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 f,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)f=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+f*s),this._beta*e[u]+(1-this._beta)*(a+f*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var Rge=function t(r){function e(i){return 1===r?new b5(i):new EQ(i,r)}return e.beta=function(i){return t(+i)},e}(.85);function C5(t,r,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-r),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function S9(t,r){this._context=t,this._k=(1-r)/6}S9.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:C5(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:C5(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 Lge=function t(r){function e(i){return new S9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function x9(t,r){this._context=t,this._k=(1-r)/6}x9.prototype={areaStart:X_,areaEnd:X_,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:C5(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 Zge=function t(r){function e(i){return new x9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function D9(t,r){this._context=t,this._k=(1-r)/6}D9.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:C5(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 Nge=function t(r){function e(i){return new D9(i,r)}return e.tension=function(i){return t(+i)},e}(0);function A9(t,r,e){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>ol){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>ol){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*f+t._x1*t._l23_2a-r*t._l12_2a)/h,s=(s*f+t._y1*t._l23_2a-e*t._l12_2a)/h}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function MQ(t,r){this._context=t,this._alpha=r}MQ.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:A9(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 Bge=function t(r){function e(i){return r?new MQ(i,r):new S9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function SQ(t,r){this._context=t,this._alpha=r}SQ.prototype={areaStart:X_,areaEnd:X_,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:A9(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 Fge=function t(r){function e(i){return r?new SQ(i,r):new x9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function xQ(t,r){this._context=t,this._alpha=r}xQ.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:A9(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 Uge=function t(r){function e(i){return r?new xQ(i,r):new D9(i,0)}return e.alpha=function(i){return t(+i)},e}(.5);function DQ(t){this._context=t}function Hge(t){return new DQ(t)}function AQ(t){return t<0?-1:1}function OQ(t,r,e){var i=t._x1-t._x0,o=r-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(e-t._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(AQ(a)+AQ(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function IQ(t,r){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-r)/2:r}function O9(t,r,e){var i=t._x0,o=t._y0,a=t._x1,s=t._y1,l=(a-i)/3;t._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function w5(t){this._context=t}function PQ(t){this._context=new RQ(t)}function RQ(t){this._context=t}function jge(t){return new w5(t)}function zge(t){return new PQ(t)}function LQ(t){this._context=t}function ZQ(t){var r,i,e=t.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=t[0]+2*t[1],r=1;r<e-1;++r)o[r]=1,a[r]=4,s[r]=4*t[r]+2*t[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*t[e-1]+t[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]=(t[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*t[r+1]-o[r+1];return[o,a]}function Wge(t){return new LQ(t)}function k5(t,r){this._context=t,this._t=r}function Vge(t){return new k5(t,.5)}function Yge(t){return new k5(t,0)}function Gge(t){return new k5(t,1)}function IC(t,r){if((s=t.length)>1)for(var i,o,s,e=1,a=t[r[0]],l=a.length;e<s;++e)for(o=a,a=t[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function PC(t){for(var r=t.length,e=new Array(r);--r>=0;)e[r]=r;return e}function qge(t,r){return t[r]}function Kge(){var t=Bi([]),r=PC,e=IC,i=qge;function o(a){var l,v,s=t.apply(this,arguments),u=a.length,f=s.length,h=new Array(f);for(l=0;l<f;++l){for(var q,C=s[l],B=h[l]=new Array(u),G=0;G<u;++G)B[G]=q=[0,+i(a[G],C,G,a)],q.data=a[G];B.key=C}for(l=0,v=r(h);l<f;++l)h[v[l]].index=l;return e(h,v),h}return o.keys=function(a){return arguments.length?(t="function"==typeof a?a:Bi(w9.call(a)),o):t},o.value=function(a){return arguments.length?(i="function"==typeof a?a:Bi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?PC:"function"==typeof a?a:Bi(w9.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?IC:a,o):e},o}function Jge(t,r){if((i=t.length)>0){for(var e,i,s,o=0,a=t[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=t[e][o][1]||0;if(s)for(e=0;e<i;++e)t[e][o][1]/=s}IC(t,r)}}function Qge(t,r){if((u=t.length)>1)for(var e,o,a,s,l,u,i=0,f=t[r[0]].length;i<f;++i)for(s=l=0,e=0;e<u;++e)(a=(o=t[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 Xge(t,r){if((o=t.length)>0){for(var o,e=0,i=t[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=t[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}IC(t,r)}}function $ge(t,r){if((s=t.length)>0&&(a=(o=t[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,f=0;l<s;++l){for(var h=t[r[l]],v=h[i][1]||0,B=(v-(h[i-1][1]||0))/2,G=0;G<l;++G){var q=t[r[G]];B+=(q[i][1]||0)-(q[i-1][1]||0)}u+=v,f+=B*v}o[i-1][1]+=o[i-1][0]=e,u&&(e-=f/u)}o[i-1][1]+=o[i-1][0]=e,IC(t,r)}}function NQ(t){var r=t.map(BQ);return PC(t).sort(function(e,i){return r[e]-r[i]})}function BQ(t){for(var o,r=0,e=-1,i=t.length;++e<i;)(o=+t[e][1])&&(r+=o);return r}function eve(t){return NQ(t).reverse()}function tve(t){var e,i,r=t.length,o=t.map(BQ),a=PC(t).sort(function(h,v){return o[v]-o[h]}),s=0,l=0,u=[],f=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],f.push(i));return f.reverse().concat(u)}function nve(t){return PC(t).reverse()}DQ.prototype={areaStart:X_,areaEnd:X_,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))}},w5.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:O9(this,this._t0,IQ(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,O9(this,IQ(this,i=OQ(this,r,e)),i);break;default:O9(this,this._t0,i=OQ(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(PQ.prototype=Object.create(w5.prototype)).point=function(t,r){w5.prototype.point.call(this,r,t)},RQ.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)}},LQ.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=ZQ(r),a=ZQ(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)}},k5.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 I9=new Date,P9=new Date;function xs(t,r,e,i){function o(a){return t(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return t(a=new Date(a-1)),r(a,1),t(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 f,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(f=new Date(+a)),r(a,l),t(a)}while(f<a&&a<s);return u},o.filter=function(a){return xs(function(s){if(s>=s)for(;t(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 I9.setTime(+a),P9.setTime(+s),t(I9),t(P9),Math.floor(e(I9,P9))},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 T5=xs(function(){},function(t,r){t.setTime(+t+r)},function(t,r){return r-t});T5.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?xs(function(r){r.setTime(Math.floor(r/t)*t)},function(r,e){r.setTime(+r+e*t)},function(r,e){return(e-r)/t}):T5:null};var FQ=T5,UQ=T5.range,Oy=6e4,M5=36e5,jQ=6048e5,zQ=xs(function(t){t.setTime(t-t.getMilliseconds())},function(t,r){t.setTime(+t+1e3*r)},function(t,r){return(r-t)/1e3},function(t){return t.getUTCSeconds()}),WQ=zQ,VQ=zQ.range,YQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},function(t,r){t.setTime(+t+r*Oy)},function(t,r){return(r-t)/Oy},function(t){return t.getMinutes()}),rve=YQ,ive=YQ.range,GQ=xs(function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-t.getMinutes()*Oy)},function(t,r){t.setTime(+t+r*M5)},function(t,r){return(r-t)/M5},function(t){return t.getHours()}),ove=GQ,ave=GQ.range,qQ=xs(function(t){t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Oy)/864e5},function(t){return t.getDate()-1}),sve=qQ,lve=qQ.range;function Iy(t){return xs(function(r){r.setDate(r.getDate()-(r.getDay()+7-t)%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())*Oy)/jQ})}var R9=Iy(0),KQ=Iy(1),JQ=Iy(2),QQ=Iy(3),XQ=Iy(4),$Q=Iy(5),eX=Iy(6),tX=R9.range,uve=KQ.range,cve=JQ.range,dve=QQ.range,fve=XQ.range,pve=$Q.range,hve=eX.range,nX=xs(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,r){t.setMonth(t.getMonth()+r)},function(t,r){return r.getMonth()-t.getMonth()+12*(r.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),mve=nX,_ve=nX.range,L9=xs(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r)},function(t,r){return r.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});L9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setFullYear(Math.floor(r.getFullYear()/t)*t),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*t)}):null};var gve=L9,vve=L9.range,rX=xs(function(t){t.setUTCSeconds(0,0)},function(t,r){t.setTime(+t+r*Oy)},function(t,r){return(r-t)/Oy},function(t){return t.getUTCMinutes()}),yve=rX,bve=rX.range,iX=xs(function(t){t.setUTCMinutes(0,0,0)},function(t,r){t.setTime(+t+r*M5)},function(t,r){return(r-t)/M5},function(t){return t.getUTCHours()}),Cve=iX,wve=iX.range,oX=xs(function(t){t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r)},function(t,r){return(r-t)/864e5},function(t){return t.getUTCDate()-1}),kve=oX,Tve=oX.range;function Py(t){return xs(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-t)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/jQ})}var Z9=Py(0),aX=Py(1),sX=Py(2),lX=Py(3),uX=Py(4),cX=Py(5),dX=Py(6),fX=Z9.range,Eve=aX.range,Mve=sX.range,Sve=lX.range,xve=uX.range,Dve=cX.range,Ave=dX.range,pX=xs(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCMonth(t.getUTCMonth()+r)},function(t,r){return r.getUTCMonth()-t.getUTCMonth()+12*(r.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),Ove=pX,Ive=pX.range,N9=xs(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r)},function(t,r){return r.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});N9.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xs(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/t)*t),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*t)}):null};var Pve=N9,Rve=N9.range;function Lve(t){if(0<=t.y&&t.y<100){var r=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return r.setFullYear(t.y),r}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function S5(t){if(0<=t.y&&t.y<100){var r=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return r.setUTCFullYear(t.y),r}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function lx(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function hX(t){var r=t.dateTime,e=t.date,i=t.time,o=t.periods,a=t.days,s=t.shortDays,l=t.months,u=t.shortMonths,f=ux(o),h=cx(o),v=ux(a),C=cx(a),B=ux(s),G=cx(s),q=ux(l),ae=cx(l),he=ux(u),Ye=cx(u),Me={a:function pt(Tr){return s[Tr.getDay()]},A:function xt(Tr){return a[Tr.getDay()]},b:function Ce(Tr){return u[Tr.getMonth()]},B:function st(Tr){return l[Tr.getMonth()]},c:null,d:vX,e:vX,f:oye,H:nye,I:rye,j:iye,L:yX,m:aye,M:sye,p:function Lt(Tr){return o[+(Tr.getHours()>=12)]},Q:kX,s:TX,S:lye,u:uye,U:cye,V:dye,w:fye,W:pye,x:null,X:null,y:hye,Y:mye,Z:_ye,"%":wX},Fe={a:function Hn(Tr){return s[Tr.getUTCDay()]},A:function er(Tr){return a[Tr.getUTCDay()]},b:function Zn(Tr){return u[Tr.getUTCMonth()]},B:function Cn(Tr){return l[Tr.getUTCMonth()]},c:null,d:bX,e:bX,f:bye,H:gye,I:vye,j:yye,L:CX,m:Cye,M:wye,p:function ma(Tr){return o[+(Tr.getUTCHours()>=12)]},Q:kX,s:TX,S:kye,u:Tye,U:Eye,V:Mye,w:Sye,W:xye,x:null,X:null,y:Dye,Y:Aye,Z:Oye,"%":wX},ft={a:function x(Tr,zr,Wn){var In=B.exec(zr.slice(Wn));return In?(Tr.w=G[In[0].toLowerCase()],Wn+In[0].length):-1},A:function g(Tr,zr,Wn){var In=v.exec(zr.slice(Wn));return In?(Tr.w=C[In[0].toLowerCase()],Wn+In[0].length):-1},b:function O(Tr,zr,Wn){var In=he.exec(zr.slice(Wn));return In?(Tr.m=Ye[In[0].toLowerCase()],Wn+In[0].length):-1},B:function H(Tr,zr,Wn){var In=q.exec(zr.slice(Wn));return In?(Tr.m=ae[In[0].toLowerCase()],Wn+In[0].length):-1},c:function te(Tr,zr,Wn){return ut(Tr,r,zr,Wn)},d:_X,e:_X,f:Xve,H:gX,I:gX,j:qve,L:Qve,m:Gve,M:Kve,p:function kt(Tr,zr,Wn){var In=f.exec(zr.slice(Wn));return In?(Tr.p=h[In[0].toLowerCase()],Wn+In[0].length):-1},Q:eye,s:tye,S:Jve,u:Uve,U:Hve,V:jve,w:Fve,W:zve,x:function re(Tr,zr,Wn){return ut(Tr,e,zr,Wn)},X:function ye(Tr,zr,Wn){return ut(Tr,i,zr,Wn)},y:Vve,Y:Wve,Z:Yve,"%":$ve};function ht(Tr,zr){return function(Wn){var qr,Yo,Yi,In=[],yr=-1,kn=0,Br=Tr.length;for(Wn instanceof Date||(Wn=new Date(+Wn));++yr<Br;)37===Tr.charCodeAt(yr)&&(In.push(Tr.slice(kn,yr)),null!=(Yo=mX[qr=Tr.charAt(++yr)])?qr=Tr.charAt(++yr):Yo="e"===qr?" ":"0",(Yi=zr[qr])&&(qr=Yi(Wn,Yo)),In.push(qr),kn=yr+1);return In.push(Tr.slice(kn,yr)),In.join("")}}function Re(Tr,zr){return function(Wn){var kn,Br,In=lx(1900);if(ut(In,Tr,Wn+="",0)!=Wn.length)return null;if("Q"in In)return new Date(In.Q);if("p"in In&&(In.H=In.H%12+12*In.p),"V"in In){if(In.V<1||In.V>53)return null;"w"in In||(In.w=1),"Z"in In?(Br=(kn=S5(lx(In.y))).getUTCDay(),kn=Br>4||0===Br?Sy.ceil(kn):Sy(kn),kn=JS.offset(kn,7*(In.V-1)),In.y=kn.getUTCFullYear(),In.m=kn.getUTCMonth(),In.d=kn.getUTCDate()+(In.w+6)%7):(Br=(kn=zr(lx(In.y))).getDay(),kn=Br>4||0===Br?Ey.ceil(kn):Ey(kn),kn=KS.offset(kn,7*(In.V-1)),In.y=kn.getFullYear(),In.m=kn.getMonth(),In.d=kn.getDate()+(In.w+6)%7)}else("W"in In||"U"in In)&&("w"in In||(In.w="u"in In?In.u%7:"W"in In?1:0),Br="Z"in In?S5(lx(In.y)).getUTCDay():zr(lx(In.y)).getDay(),In.m=0,In.d="W"in In?(In.w+6)%7+7*In.W-(Br+5)%7:In.w+7*In.U-(Br+6)%7);return"Z"in In?(In.H+=In.Z/100|0,In.M+=In.Z%100,S5(In)):zr(In)}}function ut(Tr,zr,Wn,In){for(var qr,Yo,yr=0,kn=zr.length,Br=Wn.length;yr<kn;){if(In>=Br)return-1;if(37===(qr=zr.charCodeAt(yr++))){if(qr=zr.charAt(yr++),!(Yo=ft[qr in mX?zr.charAt(yr++):qr])||(In=Yo(Tr,Wn,In))<0)return-1}else if(qr!=Wn.charCodeAt(In++))return-1}return In}return Me.x=ht(e,Me),Me.X=ht(i,Me),Me.c=ht(r,Me),Fe.x=ht(e,Fe),Fe.X=ht(i,Fe),Fe.c=ht(r,Fe),{format:function(zr){var Wn=ht(zr+="",Me);return Wn.toString=function(){return zr},Wn},parse:function(zr){var Wn=Re(zr+="",Lve);return Wn.toString=function(){return zr},Wn},utcFormat:function(zr){var Wn=ht(zr+="",Fe);return Wn.toString=function(){return zr},Wn},utcParse:function(zr){var Wn=Re(zr,S5);return Wn.toString=function(){return zr},Wn}}}var RC,EX,MX,B9,F9,mX={"-":"",_:" ",0:"0"},al=/^\s*\d+/,Zve=/^%/,Nve=/[\\^$*+?|[\]().{}]/g;function Ro(t,r,e){var i=t<0?"-":"",o=(i?-t:t)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Bve(t){return t.replace(Nve,"\\$&")}function ux(t){return new RegExp("^(?:"+t.map(Bve).join("|")+")","i")}function cx(t){for(var r={},e=-1,i=t.length;++e<i;)r[t[e].toLowerCase()]=e;return r}function Fve(t,r,e){var i=al.exec(r.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function Uve(t,r,e){var i=al.exec(r.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function Hve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function jve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function zve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function Wve(t,r,e){var i=al.exec(r.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function Vve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Yve(t,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Gve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function _X(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function qve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function gX(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function Kve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function Jve(t,r,e){var i=al.exec(r.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function Qve(t,r,e){var i=al.exec(r.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function Xve(t,r,e){var i=al.exec(r.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function $ve(t,r,e){var i=Zve.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function eye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function tye(t,r,e){var i=al.exec(r.slice(e));return i?(t.Q=1e3*+i[0],e+i[0].length):-1}function vX(t,r){return Ro(t.getDate(),r,2)}function nye(t,r){return Ro(t.getHours(),r,2)}function rye(t,r){return Ro(t.getHours()%12||12,r,2)}function iye(t,r){return Ro(1+KS.count(Hd(t),t),r,3)}function yX(t,r){return Ro(t.getMilliseconds(),r,3)}function oye(t,r){return yX(t,r)+"000"}function aye(t,r){return Ro(t.getMonth()+1,r,2)}function sye(t,r){return Ro(t.getMinutes(),r,2)}function lye(t,r){return Ro(t.getSeconds(),r,2)}function uye(t){var r=t.getDay();return 0===r?7:r}function cye(t,r){return Ro(a5.count(Hd(t),t),r,2)}function dye(t,r){var e=t.getDay();return t=e>=4||0===e?Ah(t):Ah.ceil(t),Ro(Ah.count(Hd(t),t)+(4===Hd(t).getDay()),r,2)}function fye(t){return t.getDay()}function pye(t,r){return Ro(Ey.count(Hd(t),t),r,2)}function hye(t,r){return Ro(t.getFullYear()%100,r,2)}function mye(t,r){return Ro(t.getFullYear()%1e4,r,4)}function _ye(t){var r=t.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ro(r/60|0,"0",2)+Ro(r%60,"0",2)}function bX(t,r){return Ro(t.getUTCDate(),r,2)}function gye(t,r){return Ro(t.getUTCHours(),r,2)}function vye(t,r){return Ro(t.getUTCHours()%12||12,r,2)}function yye(t,r){return Ro(1+JS.count(jd(t),t),r,3)}function CX(t,r){return Ro(t.getUTCMilliseconds(),r,3)}function bye(t,r){return CX(t,r)+"000"}function Cye(t,r){return Ro(t.getUTCMonth()+1,r,2)}function wye(t,r){return Ro(t.getUTCMinutes(),r,2)}function kye(t,r){return Ro(t.getUTCSeconds(),r,2)}function Tye(t){var r=t.getUTCDay();return 0===r?7:r}function Eye(t,r){return Ro(l5.count(jd(t),t),r,2)}function Mye(t,r){var e=t.getUTCDay();return t=e>=4||0===e?Oh(t):Oh.ceil(t),Ro(Oh.count(jd(t),t)+(4===jd(t).getUTCDay()),r,2)}function Sye(t){return t.getUTCDay()}function xye(t,r){return Ro(Sy.count(jd(t),t),r,2)}function Dye(t,r){return Ro(t.getUTCFullYear()%100,r,2)}function Aye(t,r){return Ro(t.getUTCFullYear()%1e4,r,4)}function Oye(){return"+0000"}function wX(){return"%"}function kX(t){return+t}function TX(t){return Math.floor(+t/1e3)}function SX(t){return RC=hX(t),EX=RC.format,MX=RC.parse,B9=RC.utcFormat,F9=RC.utcParse,RC}SX({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 xX="%Y-%m-%dT%H:%M:%S.%LZ";var Pye=Date.prototype.toISOString?function Iye(t){return t.toISOString()}:B9(xX),Rye=Pye;var Zye=+new Date("2000-01-01T00:00:00.000Z")?function Lye(t){var r=new Date(t);return isNaN(r)?null:r}:F9(xX),Nye=Zye;function Bye(t,r,e){var i=new mS,o=r;return null==r?(i.restart(t,r,e),i):(r=+r,e=null==e?H_():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),t(s)},r,e),i)}function Fye(){}function U9(t){return null==t?Fye:function(){return this.querySelector(t)}}function Hye(){return[]}function DX(t){return null==t?Hye:function(){return this.querySelectorAll(t)}}function AX(t){return function(){return this.matches(t)}}function OX(t){return new Array(t.length)}function x5(t,r){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=r}x5.prototype={constructor:x5,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 Yye(t,r,e,i,o,a){for(var l,s=0,u=r.length,f=a.length;s<f;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new x5(t,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Gye(t,r,e,i,o,a,s){var l,u,B,f={},h=r.length,v=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=B="$"+s.call(u,u.__data__,l,r),B in f?o[l]=u:f[B]=u);for(l=0;l<v;++l)(u=f[B="$"+s.call(t,a[l],l,a)])?(i[l]=u,u.__data__=a[l],f[B]=null):e[l]=new x5(t,a[l]);for(l=0;l<h;++l)(u=r[l])&&f[C[l]]===u&&(o[l]=u)}function e0e(t,r){return t<r?-1:t>r?1:t>=r?0:NaN}var H9="http://www.w3.org/1999/xhtml",PX={svg:"http://www.w3.org/2000/svg",xhtml:H9,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function D5(t){var r=t+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=t.slice(0,e))&&(t=t.slice(e+1)),PX.hasOwnProperty(r)?{space:PX[r],local:t}:t}function s0e(t){return function(){this.removeAttribute(t)}}function l0e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function u0e(t,r){return function(){this.setAttribute(t,r)}}function c0e(t,r){return function(){this.setAttributeNS(t.space,t.local,r)}}function d0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function f0e(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function RX(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function h0e(t){return function(){this.style.removeProperty(t)}}function m0e(t,r,e){return function(){this.style.setProperty(t,r,e)}}function _0e(t,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,e)}}function LC(t,r){return t.style.getPropertyValue(r)||RX(t).getComputedStyle(t,null).getPropertyValue(r)}function v0e(t){return function(){delete this[t]}}function y0e(t,r){return function(){this[t]=r}}function b0e(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function LX(t){return t.trim().split(/^|\s+/)}function j9(t){return t.classList||new ZX(t)}function ZX(t){this._node=t,this._names=LX(t.getAttribute("class")||"")}function NX(t,r){for(var e=j9(t),i=-1,o=r.length;++i<o;)e.add(r[i])}function BX(t,r){for(var e=j9(t),i=-1,o=r.length;++i<o;)e.remove(r[i])}function w0e(t){return function(){NX(this,t)}}function k0e(t){return function(){BX(this,t)}}function T0e(t,r){return function(){(r.apply(this,arguments)?NX:BX)(this,t)}}function M0e(){this.textContent=""}function S0e(t){return function(){this.textContent=t}}function x0e(t){return function(){var r=t.apply(this,arguments);this.textContent=null==r?"":r}}function A0e(){this.innerHTML=""}function O0e(t){return function(){this.innerHTML=t}}function I0e(t){return function(){var r=t.apply(this,arguments);this.innerHTML=null==r?"":r}}function R0e(){this.nextSibling&&this.parentNode.appendChild(this)}function Z0e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function B0e(t){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===H9&&r.documentElement.namespaceURI===H9?r.createElement(t):r.createElementNS(e,t)}}function F0e(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function FX(t){var r=D5(t);return(r.local?F0e:B0e)(r)}function H0e(){return null}function z0e(){var t=this.parentNode;t&&t.removeChild(this)}function V0e(){var t=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}function Y0e(){var t=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(t,this.nextSibling):t}ZX.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 UX={},Ry=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(UX={mouseenter:"mouseover",mouseleave:"mouseout"}));function J0e(t,r,e){return t=HX(t,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&t.call(this,i)}}function HX(t,r,e){return function(i){var o=Ry;Ry=i;try{t.call(this,this.__data__,r,e)}finally{Ry=o}}}function Q0e(t){return t.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 X0e(t){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],t.type&&a.type!==t.type||a.name!==t.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function $0e(t,r,e){var i=UX.hasOwnProperty(t.type)?J0e:HX;return function(o,a,s){var u,l=this.__on,f=i(r,a,s);if(l)for(var h=0,v=l.length;h<v;++h)if((u=l[h]).type===t.type&&u.name===t.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=f,u.capture=e),void(u.value=r);this.addEventListener(t.type,f,e),u={type:t.type,name:t.name,value:r,listener:f,capture:e},l?l.push(u):this.__on=[u]}}function jX(t,r,e){var i=RX(t),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)),t.dispatchEvent(o)}function tbe(t,r){return function(){return jX(this,t,r)}}function nbe(t,r){return function(){return jX(this,t,r.apply(this,arguments))}}var ibe=[null];function zd(t,r){this._groups=t,this._parents=r}function zX(){return new zd([[document.documentElement]],ibe)}zd.prototype=zX.prototype={constructor:zd,select:function Uye(t){"function"!=typeof t&&(t=U9(t));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,f,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(f=t.call(u,u.__data__,h,a))&&("__data__"in u&&(f.__data__=u.__data__),l[h]=f);return new zd(i,this._parents)},selectAll:function jye(t){"function"!=typeof t&&(t=DX(t));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,f=0;f<l;++f)(u=s[f])&&(i.push(t.call(u,u.__data__,f,s)),o.push(u));return new zd(i,o)},filter:function zye(t){"function"!=typeof t&&(t=AX(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new zd(i,this._parents)},data:function qye(t,r){if(!t)return B=new Array(this.size()),f=-1,this.each(function(ht){B[++f]=ht}),B;var e=r?Gye:Yye,i=this._parents,o=this._groups;"function"!=typeof t&&(t=function Vye(t){return function(){return t}}(t));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),f=0;f<a;++f){var h=i[f],v=o[f],C=v.length,B=t.call(h,h&&h.__data__,f,i),G=B.length,q=l[f]=new Array(G),ae=s[f]=new Array(G);e(h,v,q,ae,u[f]=new Array(C),B,r);for(var Fe,ft,Ye=0,Me=0;Ye<G;++Ye)if(Fe=q[Ye]){for(Ye>=Me&&(Me=Ye+1);!(ft=ae[Me])&&++Me<G;);Fe._next=ft||null}}return(s=new zd(s,i))._enter=l,s._exit=u,s},enter:function Wye(){return new zd(this._enter||this._groups.map(OX),this._parents)},exit:function Kye(){return new zd(this._exit||this._groups.map(OX),this._parents)},join:function Jye(t,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Qye(t){for(var r=this._groups,e=t._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new zd(s,this._parents)},order:function Xye(){for(var t=this._groups,r=-1,e=t.length;++r<e;)for(var s,i=t[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 $ye(t){function r(v,C){return v&&C?t(v.__data__,C.__data__):!v-!C}t||(t=e0e);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var f,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(f=s[h])&&(u[h]=f);u.sort(r)}return new zd(o,this._parents).order()},call:function t0e(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function n0e(){var t=new Array(this.size()),r=-1;return this.each(function(){t[++r]=this}),t},node:function r0e(){for(var t=this._groups,r=0,e=t.length;r<e;++r)for(var i=t[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function i0e(){var t=0;return this.each(function(){++t}),t},empty:function o0e(){return!this.node()},each:function a0e(t){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])&&t.call(l,l.__data__,a,o);return this},attr:function p0e(t,r){var e=D5(t);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?l0e:s0e:"function"==typeof r?e.local?f0e:d0e:e.local?c0e:u0e)(e,r))},style:function g0e(t,r,e){return arguments.length>1?this.each((null==r?h0e:"function"==typeof r?_0e:m0e)(t,r,null==e?"":e)):LC(this.node(),t)},property:function C0e(t,r){return arguments.length>1?this.each((null==r?v0e:"function"==typeof r?b0e:y0e)(t,r)):this.node()[t]},classed:function E0e(t,r){var e=LX(t+"");if(arguments.length<2){for(var i=j9(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?T0e:r?w0e:k0e)(e,r))},text:function D0e(t){return arguments.length?this.each(null==t?M0e:("function"==typeof t?x0e:S0e)(t)):this.node().textContent},html:function P0e(t){return arguments.length?this.each(null==t?A0e:("function"==typeof t?I0e:O0e)(t)):this.node().innerHTML},raise:function L0e(){return this.each(R0e)},lower:function N0e(){return this.each(Z0e)},append:function U0e(t){var r="function"==typeof t?t:FX(t);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function j0e(t,r){var e="function"==typeof t?t:FX(t),i=null==r?H0e:"function"==typeof r?r:U9(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function W0e(){return this.each(z0e)},clone:function G0e(t){return this.select(t?Y0e:V0e)},datum:function q0e(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function ebe(t,r,e){var o,s,i=Q0e(t+""),a=i.length;if(!(arguments.length<2)){for(l=r?$0e:X0e,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,f=l.length;u<f;++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 rbe(t,r){return this.each(("function"==typeof r?nbe:tbe)(t,r))}};var dx=zX,obe=Ff("start","end","interrupt"),abe=[];function I5(t,r,e,i,o,a){var s=t.__transition;if(s){if(e in s)return}else t.__transition={};!function sbe(t,r,e){var o,i=t.__transition;function a(f){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=f&&s(f-e.delay)}function s(f){var h,v,C,B;if(1!==e.state)return u();for(h in i)if((B=i[h]).name===e.name){if(3===B.state)return gS(s);4===B.state?(B.state=6,B.timer.stop(),B.on.call("interrupt",t,t.__data__,B.index,B.group),delete i[h]):+h<r&&(B.state=6,B.timer.stop(),delete i[h])}if(gS(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(f))}),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,v=-1;h<C;++h)(B=e.tween[h].value.call(t,t.__data__,e.index,e.group))&&(o[++v]=B);o.length=v+1}}function l(f){for(var h=f<e.duration?e.ease.call(null,f/e.duration):(e.timer.restart(u),e.state=5,1),v=-1,C=o.length;++v<C;)o[v].call(null,h);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),u())}function u(){for(var f in e.state=6,e.timer.stop(),delete i[r],i)return;delete t.__transition}i[r]=e,e.timer=_S(a,0,e.time)}(t,e,{name:r,index:i,group:o,on:obe,tween:abe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function Y9(t,r){var e=Wd(t,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function Ly(t,r){var e=Wd(t,r);if(e.state>2)throw new Error("too late; already started");return e}function Wd(t,r){var e=t.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function YX(t,r){var i,o,s,e=t.__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",t,t.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete t.__transition}}function $_(t,r){return t=+t,r=+r,function(e){return t*(1-e)+r*e}}var fx,q9,KX,P5,GX=180/Math.PI,G9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qX(t,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(t*t+r*r))&&(t/=s,r/=s),(u=t*e+r*i)&&(e-=t*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),t*i<r*e&&(t=-t,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,t)*GX,skewX:Math.atan(u)*GX,scaleX:s,scaleY:l}}function JX(t,r,e,i){function o(f){return f.length?f.pop()+" ":""}return function(f,h){var v=[],C=[];return f=t(f),h=t(h),function a(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push("translate(",null,r,null,e);G.push({i:q-4,x:$_(f,v)},{i:q-2,x:$_(h,C)})}else(v||C)&&B.push("translate("+v+r+C+e)}(f.translateX,f.translateY,h.translateX,h.translateY,v,C),function s(f,h,v,C){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),C.push({i:v.push(o(v)+"rotate(",null,i)-2,x:$_(f,h)})):h&&v.push(o(v)+"rotate("+h+i)}(f.rotate,h.rotate,v,C),function l(f,h,v,C){f!==h?C.push({i:v.push(o(v)+"skewX(",null,i)-2,x:$_(f,h)}):h&&v.push(o(v)+"skewX("+h+i)}(f.skewX,h.skewX,v,C),function u(f,h,v,C,B,G){if(f!==v||h!==C){var q=B.push(o(B)+"scale(",null,",",null,")");G.push({i:q-4,x:$_(f,v)},{i:q-2,x:$_(h,C)})}else(1!==v||1!==C)&&B.push(o(B)+"scale("+v+","+C+")")}(f.scaleX,f.scaleY,h.scaleX,h.scaleY,v,C),f=h=null,function(B){for(var ae,G=-1,q=C.length;++G<q;)v[(ae=C[G]).i]=ae.x(B);return v.join("")}}}var dbe=JX(function ube(t){return"none"===t?G9:(fx||(fx=document.createElement("DIV"),q9=document.documentElement,KX=document.defaultView),fx.style.transform=t,t=KX.getComputedStyle(q9.appendChild(fx),null).getPropertyValue("transform"),q9.removeChild(fx),qX(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),fbe=JX(function cbe(t){return null!=t&&(P5||(P5=document.createElementNS("http://www.w3.org/2000/svg","g")),P5.setAttribute("transform",t),t=P5.transform.baseVal.consolidate())?qX((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):G9},", ",")",")");function pbe(t,r){var e,i;return function(){var o=Ly(this,t),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 hbe(t,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=Ly(this,t),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,f=o.length;u<f;++u)if(o[u].name===r){o[u]=l;break}u===f&&o.push(l)}a.tween=o}}function K9(t,r,e){var i=t._id;return t.each(function(){var o=Ly(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return Wd(o,i).value[r]}}function J9(t,r,e){t.prototype=r.prototype=e,e.constructor=t}function QX(t,r){var e=Object.create(t.prototype);for(var i in r)e[i]=r[i];return e}function px(){}var R5=1/.7,ZC="\\s*([+-]?\\d+)\\s*",mx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",np="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_be=/^#([0-9a-f]{3,8})$/,gbe=new RegExp("^rgb\\("+[ZC,ZC,ZC]+"\\)$"),vbe=new RegExp("^rgb\\("+[np,np,np]+"\\)$"),ybe=new RegExp("^rgba\\("+[ZC,ZC,ZC,mx]+"\\)$"),bbe=new RegExp("^rgba\\("+[np,np,np,mx]+"\\)$"),Cbe=new RegExp("^hsl\\("+[mx,np,np]+"\\)$"),wbe=new RegExp("^hsla\\("+[mx,np,np,mx]+"\\)$"),XX={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 $X(){return this.rgb().formatHex()}function e$(){return this.rgb().formatRgb()}function _x(t){var r,e;return t=(t+"").trim().toLowerCase(),(r=_be.exec(t))?(e=r[1].length,r=parseInt(r[1],16),6===e?t$(r):3===e?new Yu(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?L5(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?L5(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=gbe.exec(t))?new Yu(r[1],r[2],r[3],1):(r=vbe.exec(t))?new Yu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=ybe.exec(t))?L5(r[1],r[2],r[3],r[4]):(r=bbe.exec(t))?L5(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Cbe.exec(t))?i$(r[1],r[2]/100,r[3]/100,1):(r=wbe.exec(t))?i$(r[1],r[2]/100,r[3]/100,r[4]):XX.hasOwnProperty(t)?t$(XX[t]):"transparent"===t?new Yu(NaN,NaN,NaN,0):null}function t$(t){return new Yu(t>>16&255,t>>8&255,255&t,1)}function L5(t,r,e,i){return i<=0&&(t=r=e=NaN),new Yu(t,r,e,i)}function Tbe(t){return t instanceof px||(t=_x(t)),t?new Yu((t=t.rgb()).r,t.g,t.b,t.opacity):new Yu}function Z5(t,r,e,i){return 1===arguments.length?Tbe(t):new Yu(t,r,e,null==i?1:i)}function Yu(t,r,e,i){this.r=+t,this.g=+r,this.b=+e,this.opacity=+i}function n$(){return"#"+Q9(this.r)+Q9(this.g)+Q9(this.b)}function r$(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Q9(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function i$(t,r,e,i){return i<=0?t=r=e=NaN:e<=0||e>=1?t=r=NaN:r<=0&&(t=NaN),new rp(t,r,e,i)}function o$(t){if(t instanceof rp)return new rp(t.h,t.s,t.l,t.opacity);if(t instanceof px||(t=_x(t)),!t)return new rp;if(t instanceof rp)return t;var r=(t=t.rgb()).r/255,e=t.g/255,i=t.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 rp(s,l,u,t.opacity)}function rp(t,r,e,i){this.h=+t,this.s=+r,this.l=+e,this.opacity=+i}function X9(t,r,e){return 255*(t<60?r+(e-r)*t/60:t<180?e:t<240?r+(e-r)*(240-t)/60:r)}function a$(t,r,e,i,o){var a=t*t,s=a*t;return((1-3*t+3*a-s)*r+(4-6*a+3*s)*e+(1+3*t+3*a-3*s)*i+s*o)/6}function s$(t){return function(){return t}}function l$(t,r){return function(e){return t+e*r}}function Dbe(t){return 1==(t=+t)?u$:function(r,e){return e-r?function xbe(t,r,e){return t=Math.pow(t,e),r=Math.pow(r,e)-t,e=1/e,function(i){return Math.pow(t+i*r,e)}}(r,e,t):s$(isNaN(r)?e:r)}}function u$(t,r){var e=r-t;return e?l$(t,e):s$(isNaN(t)?r:t)}J9(px,_x,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:$X,formatHex:$X,formatHsl:function kbe(){return o$(this).formatHsl()},formatRgb:e$,toString:e$}),J9(Yu,Z5,QX(px,{brighter:function(r){return r=null==r?R5:Math.pow(R5,r),new Yu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new Yu(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:n$,formatHex:n$,formatRgb:r$,toString:r$})),J9(rp,function Ebe(t,r,e,i){return 1===arguments.length?o$(t):new rp(t,r,e,null==i?1:i)},QX(px,{brighter:function(r){return r=null==r?R5:Math.pow(R5,r),new rp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rp(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 Yu(X9(r>=240?r-240:r+120,a,o),X9(r,a,o),X9(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 c$=function t(r){var e=Dbe(r);function i(o,a){var s=e((o=Z5(o)).r,(a=Z5(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),f=u$(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=f(h),o+""}}return i.gamma=t,i}(1);function d$(t){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=Z5(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=t(i),o=t(o),a=t(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}d$(function Mbe(t){var r=t.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<r-1?t[i+2]:2*a-o;return a$((e-i/r)*r,s,o,a,l)}}),d$(function Sbe(t){var r=t.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=t[(i+r-1)%r],a=t[i%r],s=t[(i+1)%r],l=t[(i+2)%r];return a$((e-i/r)*r,o,a,s,l)}});var $9=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eH=new RegExp($9.source,"g");function Ibe(t,r){var i,o,a,e=$9.lastIndex=eH.lastIndex=0,s=-1,l=[],u=[];for(t+="",r+="";(i=$9.exec(t))&&(o=eH.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:$_(i,o)})),e=eH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function Obe(t){return function(r){return t(r)+""}}(u[0].x):function Abe(t){return function(){return t}}(r):(r=u.length,function(f){for(var v,h=0;h<r;++h)l[(v=u[h]).i]=v.x(f);return l.join("")})}function f$(t,r){var e;return("number"==typeof r?$_:r instanceof _x?c$:(e=_x(r))?(r=e,c$):Ibe)(t,r)}function Pbe(t){return function(){this.removeAttribute(t)}}function Rbe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lbe(t,r,e){var i,o;return function(){var a=this.getAttribute(t);return a===e?null:a===i?o:o=r(i=a,e)}}function Zbe(t,r,e){var i,o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===e?null:a===i?o:o=r(i=a,e)}}function Nbe(t,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(t):(s=this.getAttribute(t))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function Bbe(t,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function Ube(t,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(t.space,t.local,o(a))}}return e._value=r,e}function Hbe(t,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(t,o(a))}}return e._value=r,e}function zbe(t,r){return function(){Y9(this,t).delay=+r.apply(this,arguments)}}function Wbe(t,r){return r=+r,function(){Y9(this,t).delay=r}}function Ybe(t,r){return function(){Ly(this,t).duration=+r.apply(this,arguments)}}function Gbe(t,r){return r=+r,function(){Ly(this,t).duration=r}}function Kbe(t,r){if("function"!=typeof r)throw new Error;return function(){Ly(this,t).ease=r}}function e1e(t,r,e){var i,o,a=function $be(t){return(t+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Y9:Ly;return function(){var s=a(this,t),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var a1e=dx.prototype.constructor;function p1e(t,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(t,a(s),e)}}return i._value=r,i}var y1e=0;function ip(t,r,e,i){this._groups=t,this._parents=r,this._name=e,this._id=i}function p$(t){return dx().transition(t)}function h$(){return++y1e}var NC=dx.prototype;ip.prototype=p$.prototype={constructor:ip,select:function i1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=U9(t));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,v,l=i[s],u=l.length,f=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(v=t.call(h,h.__data__,C,l))&&("__data__"in h&&(v.__data__=h.__data__),f[C]=v,I5(f[C],r,e,C,f,Wd(h,e)));return new ip(a,this._parents,r,e)},selectAll:function o1e(t){var r=this._name,e=this._id;"function"!=typeof t&&(t=DX(t));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],f=u.length,v=0;v<f;++v)if(h=u[v]){for(var B,C=t.call(h,h.__data__,v,u),G=Wd(h,e),q=0,ae=C.length;q<ae;++q)(B=C[q])&&I5(B,r,e,q,C,G);a.push(C),s.push(h)}return new ip(a,s,r,e)},filter:function Qbe(t){"function"!=typeof t&&(t=AX(t));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]=[],f=0;f<s;++f)(u=a[f])&&t.call(u,u.__data__,f,a)&&l.push(u);return new ip(i,this._parents,this._name,this._id)},merge:function Xbe(t){if(t._id!==this._id)throw new Error;for(var r=this._groups,e=t._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],f=e[l],h=u.length,v=s[l]=new Array(h),B=0;B<h;++B)(C=u[B]||f[B])&&(v[B]=C);for(;l<i;++l)s[l]=r[l];return new ip(s,this._parents,this._name,this._id)},selection:function s1e(){return new a1e(this._groups,this._parents)},transition:function v1e(){for(var t=this._name,r=this._id,e=h$(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)if(u=s[f]){var h=Wd(u,r);I5(u,t,e,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new ip(i,this._parents,t,e)},call:NC.call,nodes:NC.nodes,node:NC.node,size:NC.size,empty:NC.empty,each:NC.each,on:function t1e(t,r){var e=this._id;return arguments.length<2?Wd(this.node(),e).on.on(t):this.each(e1e(e,t,r))},attr:function Fbe(t,r){var e=D5(t),i="transform"===e?fbe:f$;return this.attrTween(t,"function"==typeof r?(e.local?Bbe:Nbe)(e,i,K9(this,"attr."+t,r)):null==r?(e.local?Rbe:Pbe)(e):(e.local?Zbe:Lbe)(e,i,r+""))},attrTween:function jbe(t,r){var e="attr."+t;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=D5(t);return this.tween(e,(i.local?Ube:Hbe)(i,r))},style:function f1e(t,r,e){var i="transform"==(t+="")?dbe:f$;return null==r?this.styleTween(t,function l1e(t,r){var e,i,o;return function(){var a=LC(this,t),s=(this.style.removeProperty(t),LC(this,t));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(t,i)).on("end.style."+t,function u1e(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof r?function d1e(t,r,e){var i,o,a;return function(){var s=LC(this,t),l=e(this);return null==l&&(this.style.removeProperty(t),l=LC(this,t)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(t,i,K9(this,"style."+t,r)):function c1e(t,r,e){var i,o;return function(){var a=LC(this,t);return a===e?null:a===i?o:o=r(i=a,e)}}(t,i,r+""),e)},styleTween:function h1e(t,r,e){var i="style."+(t+="");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,p1e(t,r,null==e?"":e))},text:function g1e(t){return this.tween("text","function"==typeof t?function _1e(t){return function(){var r=t(this);this.textContent=null==r?"":r}}(K9(this,"text",t)):function m1e(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function r1e(){return this.on("end.remove",function n1e(t){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==t)return;r&&r.removeChild(this)}}(this._id))},tween:function mbe(t,r){var e=this._id;if(t+="",arguments.length<2){for(var s,i=Wd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===t)return s.value;return null}return this.each((null==r?pbe:hbe)(e,t,r))},delay:function Vbe(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?zbe:Wbe)(r,t)):Wd(this.node(),r).delay},duration:function qbe(t){var r=this._id;return arguments.length?this.each(("function"==typeof t?Ybe:Gbe)(r,t)):Wd(this.node(),r).duration},ease:function Jbe(t){var r=this._id;return arguments.length?this.each(Kbe(r,t)):Wd(this.node(),r).ease}};var tH={time:null,delay:0,duration:250,ease:jR};function b1e(t,r){for(var e;!(e=t.__transition)||!(e=e[r]);)if(!(t=t.parentNode))return tH.time=H_(),tH;return e}dx.prototype.interrupt=function lbe(t){return this.each(function(){YX(this,t)})},dx.prototype.transition=function C1e(t){var r,e;t instanceof ip?(r=t._id,t=t._name):(r=h$(),(e=tH).time=H_(),t=null==t?null:t+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,f=0;f<l;++f)(u=s[f])&&I5(u,t,r,f,s,e||b1e(u,r));return new ip(i,this._parents,t,r)};var w1e=[null];function k1e(t,r){var i,o,e=t.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new ip([[t]],w1e,r,+o);return null}function m$(t){return function(){return t}}function T1e(t){return t[0]}function E1e(t){return t[1]}function nH(){this._=null}function N5(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function gx(t,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function vx(t,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:t._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function _$(t){for(;t.L;)t=t.L;return t}nH.prototype={constructor:nH,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=_$(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&&(gx(this,i),i=(r=i).U),i.C=!1,o.C=!0,vx(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(vx(this,i),i=(r=i).U),i.C=!1,o.C=!0,gx(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?_$(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,gx(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,vx(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,gx(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,vx(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,gx(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,vx(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var g$=nH;function yx(t,r,e,i){var o=[null,null],a=Tl.push(o)-1;return o.left=t,o.right=r,e&&B5(o,t,r,e),i&&B5(o,r,t,i),Gu[t.index].halfedges.push(a),Gu[r.index].halfedges.push(a),o}function bx(t,r,e){var i=[r,e];return i.left=t,i}function B5(t,r,e,i){t[0]||t[1]?t.left===e?t[1]=i:t[0]=i:(t[0]=i,t.left=r,t.right=e)}function M1e(t,r,e,i,o){var q,a=t[0],s=t[1],l=a[0],u=a[1],v=0,C=1,B=s[0]-l,G=s[1]-u;if(q=r-l,B||!(q>0)){if(q/=B,B<0){if(q<v)return;q<C&&(C=q)}else if(B>0){if(q>C)return;q>v&&(v=q)}if(q=i-l,B||!(q<0)){if(q/=B,B<0){if(q>C)return;q>v&&(v=q)}else if(B>0){if(q<v)return;q<C&&(C=q)}if(q=e-u,G||!(q>0)){if(q/=G,G<0){if(q<v)return;q<C&&(C=q)}else if(G>0){if(q>C)return;q>v&&(v=q)}if(q=o-u,G||!(q<0)){if(q/=G,G<0){if(q>C)return;q>v&&(v=q)}else if(G>0){if(q<v)return;q<C&&(C=q)}return!(v>0)&&!(C<1)||(v>0&&(t[0]=[l+v*B,u+v*G]),C<1&&(t[1]=[l+C*B,u+C*G])),!0}}}}}function S1e(t,r,e,i,o){var a=t[1];if(a)return!0;var q,ae,s=t[0],l=t.left,u=t.right,f=l[0],h=l[1],v=u[0],C=u[1],B=(f+v)/2,G=(h+C)/2;if(C===h){if(B<r||B>=i)return;if(f>v){if(s){if(s[1]>=o)return}else s=[B,e];a=[B,o]}else{if(s){if(s[1]<e)return}else s=[B,o];a=[B,e]}}else if(ae=G-(q=(f-v)/(C-h))*B,q<-1||q>1)if(f>v){if(s){if(s[1]>=o)return}else s=[(e-ae)/q,e];a=[(o-ae)/q,o]}else{if(s){if(s[1]<e)return}else s=[(o-ae)/q,o];a=[(e-ae)/q,e]}else if(h<C){if(s){if(s[0]>=i)return}else s=[r,q*r+ae];a=[i,q*i+ae]}else{if(s){if(s[0]<r)return}else s=[i,q*i+ae];a=[r,q*r+ae]}return t[0]=s,t[1]=a,!0}function A1e(t,r){var e=t.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 v$(t,r){return r[+(r.left!==t.site)]}function O1e(t,r){return r[+(r.left===t.site)]}var rH,y$=[];function R1e(){N5(this),this.x=this.y=this.arc=this.site=this.cy=null}function BC(t){var r=t.P,e=t.N;if(r&&e){var i=r.site,o=t.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,f=i[1]-l,h=a[0]-s,v=a[1]-l,C=2*(u*v-f*h);if(!(C>=-F1e)){var B=u*u+f*f,G=h*h+v*v,q=(v*B-f*G)/C,ae=(u*G-h*B)/C,he=y$.pop()||new R1e;he.arc=t,he.site=o,he.x=q+s,he.y=(he.cy=ae+l)+Math.sqrt(q*q+ae*ae),t.circle=he;for(var Ye=null,Me=Cx._;Me;)if(he.y<Me.y||he.y===Me.y&&he.x<=Me.x){if(!Me.L){Ye=Me.P;break}Me=Me.L}else{if(!Me.R){Ye=Me;break}Me=Me.R}Cx.insert(Ye,he),Ye||(rH=he)}}}}function FC(t){var r=t.circle;r&&(r.P||(rH=r.N),Cx.remove(r),y$.push(r),N5(r),t.circle=null)}var b$=[];function L1e(){N5(this),this.edge=this.site=this.circle=null}function C$(t){var r=b$.pop()||new L1e;return r.site=t,r}function iH(t){FC(t),UC.remove(t),b$.push(t),N5(t)}function Z1e(t){var r=t.circle,e=r.x,i=r.cy,o=[e,i],a=t.P,s=t.N,l=[t];iH(t);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<Lo&&Math.abs(i-u.circle.cy)<Lo;)a=u.P,l.unshift(u),iH(u),u=a;l.unshift(u),FC(u);for(var f=s;f.circle&&Math.abs(e-f.circle.x)<Lo&&Math.abs(i-f.circle.cy)<Lo;)s=f.N,l.push(f),iH(f),f=s;l.push(f),FC(f);var v,h=l.length;for(v=1;v<h;++v)f=l[v],u=l[v-1],B5(f.edge,u.site,f.site,o);u=l[0],(f=l[h-1]).edge=yx(u.site,f.site,null,o),BC(u),BC(f)}function N1e(t){for(var i,o,a,s,r=t[0],e=t[1],l=UC._;l;)if((a=w$(l,e)-r)>Lo)l=l.L;else{if(!((s=r-B1e(l,e))>Lo)){a>-Lo?(i=l.P,o=l):s>-Lo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function D1e(t){return Gu[t.index]={site:t,halfedges:[]}}(t);var u=C$(t);if(UC.insert(i,u),i||o){if(i===o)return FC(i),o=C$(i.site),UC.insert(u,o),u.edge=o.edge=yx(i.site,u.site),BC(i),void BC(o);if(!o)return void(u.edge=yx(i.site,u.site));FC(i),FC(o);var f=i.site,h=f[0],v=f[1],C=t[0]-h,B=t[1]-v,G=o.site,q=G[0]-h,ae=G[1]-v,he=2*(C*ae-B*q),Ye=C*C+B*B,Me=q*q+ae*ae,Fe=[(ae*Ye-B*Me)/he+h,(C*Me-q*Ye)/he+v];B5(o.edge,f,G,Fe),u.edge=yx(f,t,null,Fe),o.edge=yx(t,G,null,Fe),BC(i),BC(o)}}function w$(t,r){var e=t.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=t.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],f=u-r;if(!f)return l;var h=l-i,v=1/a-1/f,C=h/f;return v?(-C+Math.sqrt(C*C-2*v*(h*h/(-2*f)-u+f/2+o-a/2)))/v+i:(i+l)/2}function B1e(t,r){var e=t.N;if(e)return w$(e,r);var i=t.site;return i[1]===r?i[0]:1/0}var UC,Gu,Cx,Tl,Lo=1e-6,F1e=1e-12;function U1e(t,r,e){return(t[0]-e[0])*(r[1]-t[1])-(t[0]-r[0])*(e[1]-t[1])}function H1e(t,r){return r[1]-t[1]||r[0]-t[0]}function oH(t,r){var i,o,a,e=t.sort(H1e).pop();for(Tl=[],Gu=new Array(t.length),UC=new g$,Cx=new g$;;)if(a=rH,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(N1e(e),i=e[0],o=e[1]),e=t.pop();else{if(!a)break;Z1e(a.arc)}if(function I1e(){for(var e,i,o,a,t=0,r=Gu.length;t<r;++t)if((e=Gu[t])&&(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]=A1e(e,Tl[i[o]]);for(s.sort(function(u,f){return l[f]-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],f=+r[1][1];(function x1e(t,r,e,i){for(var a,o=Tl.length;o--;)S1e(a=Tl[o],t,r,e,i)&&M1e(a,t,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>Lo||Math.abs(a[0][1]-a[1][1])>Lo)||delete Tl[o]})(s,l,u,f),function P1e(t,r,e,i){var a,s,l,u,f,h,v,C,B,G,q,ae,o=Gu.length,he=!0;for(a=0;a<o;++a)if(s=Gu[a]){for(l=s.site,u=(f=s.halfedges).length;u--;)Tl[f[u]]||f.splice(u,1);for(u=0,h=f.length;u<h;)q=(G=O1e(s,Tl[f[u]]))[0],ae=G[1],C=(v=v$(s,Tl[f[++u%h]]))[0],B=v[1],(Math.abs(q-C)>Lo||Math.abs(ae-B)>Lo)&&(f.splice(u,0,Tl.push(bx(l,G,Math.abs(q-t)<Lo&&i-ae>Lo?[t,Math.abs(C-t)<Lo?B:i]:Math.abs(ae-i)<Lo&&e-q>Lo?[Math.abs(B-i)<Lo?C:e,i]:Math.abs(q-e)<Lo&&ae-r>Lo?[e,Math.abs(C-e)<Lo?B:r]:Math.abs(ae-r)<Lo&&q-t>Lo?[Math.abs(B-r)<Lo?C:t,r]:null))-1),++h);h&&(he=!1)}if(he){var Ye,Me,Fe,ft=1/0;for(a=0,he=null;a<o;++a)(s=Gu[a])&&(Fe=(Ye=(l=s.site)[0]-t)*Ye+(Me=l[1]-r)*Me)<ft&&(ft=Fe,he=s);if(he){var ht=[t,r],Re=[t,i],ut=[e,i],kt=[e,r];he.halfedges.push(Tl.push(bx(l=he.site,ht,Re))-1,Tl.push(bx(l,Re,ut))-1,Tl.push(bx(l,ut,kt))-1,Tl.push(bx(l,kt,ht))-1)}}for(a=0;a<o;++a)(s=Gu[a])&&(s.halfedges.length||delete Gu[a])}(s,l,u,f)}this.edges=Tl,this.cells=Gu,UC=Cx=Tl=Gu=null}function j1e(){var t=T1e,r=E1e,e=null;function i(o){return new oH(o.map(function(a,s){var l=[Math.round(t(a,s,o)/Lo)*Lo,Math.round(r(a,s,o)/Lo)*Lo];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?(t="function"==typeof o?o:m$(+o),i):t},i.y=function(o){return arguments.length?(r="function"==typeof o?o:m$(+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}oH.prototype={constructor:oH,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return v$(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,f,a=i.site,l=-1,h=e[s[u-1]],v=h.left===a?h.right:h.left;++l<u;)f=v,v=(h=e[s[l]]).left===a?h.right:h.left,f&&v&&o<f.index&&o<v.index&&U1e(a,f,v)<0&&r.push([a.data,f.data,v.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 f=r-u.site[0],h=e-u.site[1],v=f*f+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var B=o.edges[C],G=B.left;if(G!==u.site&&G||(G=B.right)){var q=r-G[0],ae=e-G[1],he=q*q+ae*ae;he<v&&(v=he,s=G.index)}})}while(null!==s);return o._found=a,null==i||v<=i*i?u.site:null}};var wx=Math.SQRT2;function T$(t){return((t=Math.exp(t))+1/t)/2}function Y1e(t,r){var v,C,e=t[0],i=t[1],o=t[2],a=r[0],s=r[1],l=r[2],u=a-e,f=s-i,h=u*u+f*f;if(h<1e-12)C=Math.log(l/o)/wx,v=function(Me){return[e+Me*u,i+Me*f,o*Math.exp(wx*Me*C)]};else{var B=Math.sqrt(h),G=(l*l-o*o+4*h)/(2*o*2*B),q=(l*l-o*o-4*h)/(2*l*2*B),ae=Math.log(Math.sqrt(G*G+1)-G),he=Math.log(Math.sqrt(q*q+1)-q);C=(he-ae)/wx,v=function(Me){var Fe=Me*C,ft=T$(ae),ht=o/(2*B)*(ft*function V1e(t){return((t=Math.exp(2*t))-1)/(t+1)}(wx*Fe+ae)-function W1e(t){return((t=Math.exp(t))-1/t)/2}(ae));return[e+ht*u,i+ht*f,o*ft/T$(wx*Fe+ae)]}}return v.duration=1e3*C,v}function F5(t){return function(){return t}}function G1e(t,r,e){this.target=t,this.type=r,this.transform=e}function Rh(t,r,e){this.k=t,this.x=r,this.y=e}Rh.prototype={constructor:Rh,scale:function(r){return 1===r?this:new Rh(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new Rh(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 U5=new Rh(1,0,0);function E$(t){return t.__zoom||U5}function sH(){Kn.stopImmediatePropagation()}function kx(){Kn.preventDefault(),Kn.stopImmediatePropagation()}function q1e(){return!Kn.ctrlKey&&!Kn.button}function K1e(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function M$(){return this.__zoom||U5}function J1e(){return-Kn.deltaY*(1===Kn.deltaMode?.05:Kn.deltaMode?1:.002)}function Q1e(){return navigator.maxTouchPoints||"ontouchstart"in this}function X1e(t,r,e){var i=t.invertX(r[0][0])-e[0][0],o=t.invertX(r[1][0])-e[1][0],a=t.invertY(r[0][1])-e[0][1],s=t.invertY(r[1][1])-e[1][1];return t.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 S$(){var h,v,t=q1e,r=K1e,e=X1e,i=J1e,o=Q1e,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=Y1e,f=Ff("start","zoom","end"),C=500,G=0;function q(O){O.property("__zoom",M$).on("wheel.zoom",ht).on("mousedown.zoom",Re).on("dblclick.zoom",ut).filter(o).on("touchstart.zoom",kt).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function ae(O,H){return(H=Math.max(a[0],Math.min(a[1],H)))===O.k?O:new Rh(H,O.x,O.y)}function he(O,H,te){var re=H[0]-te[0]*O.k,ye=H[1]-te[1]*O.k;return re===O.x&&ye===O.y?O:new Rh(O.k,re,ye)}function Ye(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function Me(O,H,te){O.on("start.zoom",function(){Fe(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Fe(this,arguments).end()}).tween("zoom",function(){var re=this,ye=arguments,pt=Fe(re,ye),xt=r.apply(re,ye),Ce=te||Ye(xt),st=Math.max(xt[1][0]-xt[0][0],xt[1][1]-xt[0][1]),Lt=re.__zoom,Hn="function"==typeof H?H.apply(re,ye):H,er=u(Lt.invert(Ce).concat(st/Lt.k),Hn.invert(Ce).concat(st/Hn.k));return function(Zn){if(1===Zn)Zn=Hn;else{var Cn=er(Zn),ma=st/Cn[2];Zn=new Rh(ma,Ce[0]-Cn[0]*ma,Ce[1]-Cn[1]*ma)}pt.zoom(null,Zn)}})}function Fe(O,H,te){return!te&&O.__zooming||new ft(O,H)}function ft(O,H){this.that=O,this.args=H,this.active=0,this.extent=r.apply(O,H),this.taps=0}function ht(){if(t.apply(this,arguments)){var O=Fe(this,arguments),H=this.__zoom,te=Math.max(a[0],Math.min(a[1],H.k*Math.pow(2,i.apply(this,arguments)))),re=Rd(this);H.k!==te&&(O.wheel?((O.mouse[0][0]!==re[0]||O.mouse[0][1]!==re[1])&&(O.mouse[1]=H.invert(O.mouse[0]=re)),clearTimeout(O.wheel)):(O.mouse=[re,H.invert(re)],iC(this),O.start()),kx(),O.wheel=setTimeout(ye,150),O.zoom("mouse",e(he(ae(H,te),O.mouse[0],O.mouse[1]),O.extent,s)))}function ye(){O.wheel=null,O.end()}}function Re(){if(!v&&t.apply(this,arguments)){var O=Fe(this,arguments,!0),H=gi(Kn.view).on("mousemove.zoom",pt,!0).on("mouseup.zoom",xt,!0),te=Rd(this),re=Kn.clientX,ye=Kn.clientY;jf(Kn.view),sH(),O.mouse=[te,this.__zoom.invert(te)],iC(this),O.start()}function pt(){if(kx(),!O.moved){var Ce=Kn.clientX-re,st=Kn.clientY-ye;O.moved=Ce*Ce+st*st>G}O.zoom("mouse",e(he(O.that.__zoom,O.mouse[0]=Rd(O.that),O.mouse[1]),O.extent,s))}function xt(){H.on("mousemove.zoom mouseup.zoom",null),X1(Kn.view,O.moved),kx(),O.end()}}function ut(){if(t.apply(this,arguments)){var O=this.__zoom,H=Rd(this),te=O.invert(H),re=O.k*(Kn.shiftKey?.5:2),ye=e(he(ae(O,re),H,te),r.apply(this,arguments),s);kx(),l>0?gi(this).transition().duration(l).call(Me,ye,H):gi(this).call(q.transform,ye)}}function kt(){if(t.apply(this,arguments)){var re,ye,pt,xt,O=Kn.touches,H=O.length,te=Fe(this,arguments,Kn.changedTouches.length===H);for(sH(),ye=0;ye<H;++ye)xt=[xt=hU(this,O,(pt=O[ye]).identifier),this.__zoom.invert(xt),pt.identifier],te.touch0?te.touch1||(te.touch1=xt,te.taps=0):(te.touch0=xt,re=!0,te.taps=1+!!h);h&&(h=clearTimeout(h)),re&&(te.taps<2&&(h=setTimeout(function(){h=null},C)),iC(this),te.start())}}function x(){if(this.__zooming){var re,ye,pt,xt,O=Fe(this,arguments),H=Kn.changedTouches,te=H.length;for(kx(),h&&(h=clearTimeout(h)),O.taps=0,re=0;re<te;++re)pt=hU(this,H,(ye=H[re]).identifier),O.touch0&&O.touch0[2]===ye.identifier?O.touch0[0]=pt:O.touch1&&O.touch1[2]===ye.identifier&&(O.touch1[0]=pt);if(ye=O.that.__zoom,O.touch1){var Ce=O.touch0[0],st=O.touch0[1],Lt=O.touch1[0],Hn=O.touch1[1],er=(er=Lt[0]-Ce[0])*er+(er=Lt[1]-Ce[1])*er,Zn=(Zn=Hn[0]-st[0])*Zn+(Zn=Hn[1]-st[1])*Zn;ye=ae(ye,Math.sqrt(er/Zn)),pt=[(Ce[0]+Lt[0])/2,(Ce[1]+Lt[1])/2],xt=[(st[0]+Hn[0])/2,(st[1]+Hn[1])/2]}else{if(!O.touch0)return;pt=O.touch0[0],xt=O.touch0[1]}O.zoom("touch",e(he(ye,pt,xt),O.extent,s))}}function g(){if(this.__zooming){var re,ye,O=Fe(this,arguments),H=Kn.changedTouches,te=H.length;for(sH(),v&&clearTimeout(v),v=setTimeout(function(){v=null},C),re=0;re<te;++re)ye=H[re],O.touch0&&O.touch0[2]===ye.identifier?delete O.touch0:O.touch1&&O.touch1[2]===ye.identifier&&delete O.touch1;if(O.touch1&&!O.touch0&&(O.touch0=O.touch1,delete O.touch1),O.touch0)O.touch0[1]=this.__zoom.invert(O.touch0[0]);else if(O.end(),2===O.taps){var pt=gi(this).on("dblclick.zoom");pt&&pt.apply(this,arguments)}}}return q.transform=function(O,H){var te=O.selection?O.selection():O;te.property("__zoom",M$),O!==te?Me(O,H):te.interrupt().each(function(){Fe(this,arguments).start().zoom(null,"function"==typeof H?H.apply(this,arguments):H).end()})},q.scaleBy=function(O,H){q.scaleTo(O,function(){var te=this.__zoom.k,re="function"==typeof H?H.apply(this,arguments):H;return te*re})},q.scaleTo=function(O,H){q.transform(O,function(){var te=r.apply(this,arguments),re=this.__zoom,ye=Ye(te),pt=re.invert(ye),xt="function"==typeof H?H.apply(this,arguments):H;return e(he(ae(re,xt),ye,pt),te,s)})},q.translateBy=function(O,H,te){q.transform(O,function(){return e(this.__zoom.translate("function"==typeof H?H.apply(this,arguments):H,"function"==typeof te?te.apply(this,arguments):te),r.apply(this,arguments),s)})},q.translateTo=function(O,H,te){q.transform(O,function(){var re=r.apply(this,arguments),ye=this.__zoom,pt=Ye(re);return e(U5.translate(pt[0],pt[1]).scale(ye.k).translate("function"==typeof H?-H.apply(this,arguments):-H,"function"==typeof te?-te.apply(this,arguments):-te),re,s)})},ft.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(H,te){return this.mouse&&"mouse"!==H&&(this.mouse[1]=te.invert(this.mouse[0])),this.touch0&&"touch"!==H&&(this.touch0[1]=te.invert(this.touch0[0])),this.touch1&&"touch"!==H&&(this.touch1[1]=te.invert(this.touch1[0])),this.that.__zoom=te,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(H){Q1(new G1e(q,H,this.that.__zoom),f.apply,f,[H,this.that,this.args])}},q.wheelDelta=function(O){return arguments.length?(i="function"==typeof O?O:F5(+O),q):i},q.filter=function(O){return arguments.length?(t="function"==typeof O?O:F5(!!O),q):t},q.touchable=function(O){return arguments.length?(o="function"==typeof O?O:F5(!!O),q):o},q.extent=function(O){return arguments.length?(r="function"==typeof O?O:F5([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),q):r},q.scaleExtent=function(O){return arguments.length?(a[0]=+O[0],a[1]=+O[1],q):[a[0],a[1]]},q.translateExtent=function(O){return arguments.length?(s[0][0]=+O[0][0],s[1][0]=+O[1][0],s[0][1]=+O[0][1],s[1][1]=+O[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(O){return arguments.length?(e=O,q):e},q.duration=function(O){return arguments.length?(l=+O,q):l},q.interpolate=function(O){return arguments.length?(u=O,q):u},q.on=function(){var O=f.on.apply(f,arguments);return O===f?q:O},q.clickDistance=function(O){return arguments.length?(G=(O=+O)*O,q):Math.sqrt(G)},q}E$.prototype=Rh.prototype;var lH=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getD3",value:function(){return z}}]),t}();lH=function(t,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(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(s=t[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,n.GSi)(),function(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)}("design:paramtypes",[])],lH);var op=m(8723);function tCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"linearGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.outerLinearGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function nCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"radialGradient"),n._UZ(1,"stop",5)(2,"stop",6),n.qZA()),2&t){var e=n.oxw(2);n.uIk("id",e.svg.radialGradient.id),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),n.xp6(1),n.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function rCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.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 iCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(3);n.Q2q("fill","url(#",e.svg.radialGradient.id,")"),n.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 oCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,rCe,1,7,"circle",2),n.YNc(2,iCe,1,7,"circle",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",e.options.backgroundGradient)}}function aCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle")),2&t){var e=n.oxw(2);n.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 sCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.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 lCe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path")),2&t){var e=n.oxw(3);n.Q2q("stroke","url(#",e.svg.outerLinearGradient.id,")"),n.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function uCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,sCe,1,5,"path",2),n.YNc(2,lCe,1,5,"path",2),n.BQk()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!e.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",e.options.outerStrokeGradient)}}function cCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function dCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,cCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.title.tspans)}}function fCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=n.oxw(3);n.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),n.xp6(1),n.Oqu(e.svg.units.text)}}function pCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(4);n.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),n.xp6(1),n.Oqu(e.span)}}function hCe(t,r){if(1&t&&(n.O4$(),n.ynx(0),n.YNc(1,pCe,2,7,"tspan",8),n.BQk()),2&t){var e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.svg.subtitle.tspans)}}function mCe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"text",7),n.YNc(1,dCe,2,1,"ng-container",2),n.YNc(2,fCe,2,4,"tspan",2),n.YNc(3,hCe,2,1,"ng-container",2),n.qZA()),2&t){var e=n.oxw(2);n.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),n.xp6(1),n.Q6J("ngIf",e.options.showTitle),n.xp6(1),n.Q6J("ngIf",e.options.showUnits),n.xp6(1),n.Q6J("ngIf",e.options.showSubtitle)}}function _Ce(t,r){if(1&t&&(n.O4$(),n._UZ(0,"image",9)),2&t){var e=n.oxw(2);n.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 gCe(t,r){if(1&t){var e=n.EpF();n.O4$(),n.TgZ(0,"svg",1),n.NdJ("click",function(a){return n.CHM(e),n.oxw().emitClickEvent(a)}),n.TgZ(1,"defs"),n.YNc(2,tCe,3,5,"linearGradient",2),n.YNc(3,nCe,3,5,"radialGradient",2),n.qZA(),n.YNc(4,oCe,3,2,"ng-container",2),n.YNc(5,aCe,1,6,"circle",2),n.YNc(6,uCe,3,2,"ng-container",2),n.YNc(7,mCe,4,6,"text",3),n.YNc(8,_Ce,1,5,"image",4),n.qZA()}if(2&t){var i=n.oxw();n.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),n.xp6(2),n.Q6J("ngIf",i.options.outerStrokeGradient),n.xp6(1),n.Q6J("ngIf",i.options.backgroundGradient),n.xp6(1),n.Q6J("ngIf",i.options.showBackground),n.xp6(1),n.Q6J("ngIf",i.options.showInnerStroke),n.xp6(1),n.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),n.xp6(1),n.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),n.xp6(1),n.Q6J("ngIf",i.options.showImage)}}var Tx=(0,V.Z)(function t(){(0,j.Z)(this,t),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=void 0,this.imageWidth=void 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}),Zy=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.elRef=e,this.document=i,this.onClick=new n.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new n.vpe,this._viewportChangedSubscriber=null,this.options=new Tx,this.defaultOptions=new Tx,this._lastPercent=0,this._gradientUUID=null,this.render=function(){o.applyOptions(),o.options.lazy?(null===o.svgElement&&o.draw(o._lastPercent),o.isInViewport&&(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)):(o.options.animation&&o.options.animationDuration>0?o.animate(o._lastPercent,o.options.percent):o.draw(o.options.percent),o._lastPercent=o.options.percent)},this.polarToCartesian=function(a,s,l,u){var f=u*Math.PI/180;return{x:a+Math.sin(f)*l,y:s-Math.cos(f)*l}},this.draw=function(a){var s=(a=void 0===a?o.options.percent:Math.abs(a))>100?100:a,l=2*o.options.radius+2*o.options.outerStrokeWidth;o.options.showBackground&&(l+=2*o.options.backgroundStrokeWidth+o.max(0,2*o.options.backgroundPadding));var v,C,u={x:l/2,y:l/2},f={x:u.x,y:u.y-o.options.radius},h=o.polarToCartesian(u.x,u.y,o.options.radius,360*(o.options.clockwise?s:100-s)/100);if(100===s&&(h.x=h.x+(o.options.clockwise?-.01:.01)),s>50){var B=o.options.clockwise?[1,1]:[1,0],G=(0,Ut.Z)(B,2);v=G[0],C=G[1]}else{var q=o.options.clockwise?[0,1]:[0,0],ae=(0,Ut.Z)(q,2);v=ae[0],C=ae[1]}var he=o.options.animateTitle?a:o.options.percent,Ye=he>o.options.maxPercent?"".concat(o.options.maxPercent.toFixed(o.options.toFixed),"+"):he.toFixed(o.options.toFixed),Me=o.options.animateSubtitle?a:o.options.percent,Fe={x:u.x,y:u.y,textAnchor:"middle",color:o.options.titleColor,fontSize:o.options.titleFontSize,fontWeight:o.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.titleFormat&&"Function"===o.options.titleFormat.constructor.name){var ft=o.options.titleFormat(he);ft instanceof Array?Fe.texts=(0,$t.Z)(ft):Fe.texts.push(ft.toString())}else"auto"===o.options.title?Fe.texts.push(Ye):o.options.title instanceof Array?Fe.texts=(0,$t.Z)(o.options.title):Fe.texts.push(o.options.title.toString());var ht={x:u.x,y:u.y,textAnchor:"middle",color:o.options.subtitleColor,fontSize:o.options.subtitleFontSize,fontWeight:o.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==o.options.subtitleFormat&&"Function"===o.options.subtitleFormat.constructor.name){var Re=o.options.subtitleFormat(Me);Re instanceof Array?ht.texts=(0,$t.Z)(Re):ht.texts.push(Re.toString())}else o.options.subtitle instanceof Array?ht.texts=(0,$t.Z)(o.options.subtitle):ht.texts.push(o.options.subtitle.toString());var ut={text:"".concat(o.options.units),fontSize:o.options.unitsFontSize,fontWeight:o.options.unitsFontWeight,color:o.options.unitsColor},kt=0,x=1;if(o.options.showTitle&&(kt+=Fe.texts.length),o.options.showSubtitle&&(kt+=ht.texts.length),o.options.showTitle){var O,g=(0,cn.Z)(Fe.texts);try{for(g.s();!(O=g.n()).done;){var H=O.value;Fe.tspans.push({span:H,dy:o.getRelativeY(x,kt)}),x++}}catch(pt){g.e(pt)}finally{g.f()}}if(o.options.showSubtitle){var re,te=(0,cn.Z)(ht.texts);try{for(te.s();!(re=te.n()).done;){var ye=re.value;ht.tspans.push({span:ye,dy:o.getRelativeY(x,kt)}),x++}}catch(pt){te.e(pt)}finally{te.f()}}null===o._gradientUUID&&(o._gradientUUID=o.uuid()),o.svg={viewBox:"0 0 ".concat(l," ").concat(l),width:o.options.responsive?"100%":l,height:o.options.responsive?"100%":l,backgroundCircle:{cx:u.x,cy:u.y,r:o.options.radius+o.options.outerStrokeWidth/2+o.options.backgroundPadding,fill:o.options.backgroundColor,fillOpacity:o.options.backgroundOpacity,stroke:o.options.backgroundStroke,strokeWidth:o.options.backgroundStrokeWidth},path:{d:"M ".concat(f.x," ").concat(f.y,"\n A ").concat(o.options.radius," ").concat(o.options.radius," 0 ").concat(v," ").concat(C," ").concat(h.x," ").concat(h.y),stroke:o.options.outerStrokeColor,strokeWidth:o.options.outerStrokeWidth,strokeLinecap:o.options.outerStrokeLinecap,fill:"none"},circle:{cx:u.x,cy:u.y,r:o.options.radius-o.options.space-o.options.outerStrokeWidth/2-o.options.innerStrokeWidth/2,fill:"none",stroke:o.options.innerStrokeColor,strokeWidth:o.options.innerStrokeWidth},title:Fe,units:ut,subtitle:ht,image:{x:u.x-o.options.imageWidth/2,y:u.y-o.options.imageHeight/2,src:o.options.imageSrc,width:o.options.imageWidth,height:o.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+o._gradientUUID,colorStop1:o.options.outerStrokeColor,colorStop2:"transparent"===o.options.outerStrokeGradientStopColor?"#FFF":o.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+o._gradientUUID,colorStop1:o.options.backgroundColor,colorStop2:"transparent"===o.options.backgroundGradientStopColor?"#FFF":o.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(a,s){var u,f,h,v=o.options.startFromZero||a<0?0:a,C=s<0?0:o.min(s,o.options.maxPercent),B=Math.abs(Math.round(C-v));return B>=100?(u=100,f=o.options.animateTitle||o.options.animateSubtitle?Math.round(B/u):1):(u=B,f=1),(h=Math.round(o.options.animationDuration/u))<10&&(h=10,u=o.options.animationDuration/h,f=!o.options.animateTitle&&!o.options.animateSubtitle&&B>100?Math.round(100/u):Math.round(B/u)),f<1&&(f=1),{times:u,step:f,interval:h}},this.animate=function(a,s){o._timerSubscription&&!o._timerSubscription.closed&&o._timerSubscription.unsubscribe();var l=o.options.startFromZero?0:a,u=s,f=o.getAnimationParameters(l,u),h=f.step,v=f.interval,C=l;o._timerSubscription=l<u?(0,op.H)(0,v).subscribe(function(){(C+=h)<=u?!o.options.animateTitle&&!o.options.animateSubtitle&&C>=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())}):(0,op.H)(0,v).subscribe(function(){(C-=h)>=u?!o.options.animateTitle&&!o.options.animateSubtitle&&u>=100?(o.draw(u),o._timerSubscription.unsubscribe()):o.draw(C):(o.draw(u),o._timerSubscription.unsubscribe())})},this.emitClickEvent=function(a){o.options.renderOnClick&&o.animate(0,o.options.percent),o.onClick.emit(a)},this.applyOptions=function(){for(var a=0,s=Object.keys(o.options);a<s.length;a++){var l=s[a];o.hasOwnProperty(l)&&void 0!==o[l]?o.options[l]=o[l]:o.templateOptions&&void 0!==o.templateOptions[l]&&(o.options[l]=o.templateOptions[l])}o.options.radius=Math.abs(+o.options.radius),o.options.space=+o.options.space,o.options.percent=+o.options.percent>0?+o.options.percent:0,o.options.maxPercent=Math.abs(+o.options.maxPercent),o.options.animationDuration=Math.abs(o.options.animationDuration),o.options.outerStrokeWidth=Math.abs(+o.options.outerStrokeWidth),o.options.innerStrokeWidth=Math.abs(+o.options.innerStrokeWidth),o.options.backgroundPadding=+o.options.backgroundPadding},this.getRelativeY=function(a,s){return(1*(a-s/2)-.18).toFixed(2)+"em"},this.min=function(a,s){return a<s?a:s},this.max=function(a,s){return a>s?a:s},this.uuid=function(){var a=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var u=(a+16*Math.random())%16|0;return a=Math.floor(a/16),("x"==l?u:3&u|8).toString(16)})},this.findSvgElement=function(){if(null===this.svgElement){var a=this.elRef.nativeElement.getElementsByTagName("svg");a.length>0&&(this.svgElement=a[0])}},this.checkViewport=function(){o.findSvgElement();var a=o.isInViewport;o.isInViewport=o.isElementInViewport(o.svgElement),a!==o.isInViewport&&o.onViewportChanged.emit({oldValue:a,newValue:o.isInViewport})},this.onScroll=function(a){o.checkViewport()},this.loadEventsForLazyMode=function(){if(o.options.lazy){o.document.addEventListener("scroll",o.onScroll,!0),o.window.addEventListener("resize",o.onScroll,!0),null===o._viewportChangedSubscriber&&(o._viewportChangedSubscriber=o.onViewportChanged.subscribe(function(s){s.oldValue;s.newValue&&o.render()}));var a=(0,op.H)(0,50).subscribe(function(){null===o.svgElement?o.checkViewport():a.unsubscribe()})}},this.unloadEventsForLazyMode=function(){o.document.removeEventListener("scroll",o.onScroll,!0),o.window.removeEventListener("resize",o.onScroll,!0),null!==o._viewportChangedSubscriber&&(o._viewportChangedSubscriber.unsubscribe(),o._viewportChangedSubscriber=null)},this.document=i,this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,V.Z)(t,[{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{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())}}]),t}();Zy.\u0275fac=function(r){return new(r||Zy)(n.Y36(Tx),n.Y36(n.SBq),n.Y36(Ct.K0))},Zy.\u0275cmp=n.Xpm({type:Zy,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:[n.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&&n.YNc(0,gCe,9,11,"svg",0),2&r&&n.Q6J("ngIf",e.svg)},directives:[Ct.O5,Ct.sg],encapsulation:2}),Zy.ctorParameters=function(){return[{type:Tx},{type:n.SBq},{type:void 0,decorators:[{type:n.tBr,args:[Ct.K0]}]}]},Zy.propDecorators={onClick:[{type:n.r_U}],name:[{type:n.IIB}],class:[{type:n.IIB}],backgroundGradient:[{type:n.IIB}],backgroundColor:[{type:n.IIB}],backgroundGradientStopColor:[{type:n.IIB}],backgroundOpacity:[{type:n.IIB}],backgroundStroke:[{type:n.IIB}],backgroundStrokeWidth:[{type:n.IIB}],backgroundPadding:[{type:n.IIB}],radius:[{type:n.IIB}],space:[{type:n.IIB}],percent:[{type:n.IIB}],toFixed:[{type:n.IIB}],maxPercent:[{type:n.IIB}],renderOnClick:[{type:n.IIB}],units:[{type:n.IIB}],unitsFontSize:[{type:n.IIB}],unitsFontWeight:[{type:n.IIB}],unitsColor:[{type:n.IIB}],outerStrokeGradient:[{type:n.IIB}],outerStrokeWidth:[{type:n.IIB}],outerStrokeColor:[{type:n.IIB}],outerStrokeGradientStopColor:[{type:n.IIB}],outerStrokeLinecap:[{type:n.IIB}],innerStrokeColor:[{type:n.IIB}],innerStrokeWidth:[{type:n.IIB}],titleFormat:[{type:n.IIB}],title:[{type:n.IIB}],titleColor:[{type:n.IIB}],titleFontSize:[{type:n.IIB}],titleFontWeight:[{type:n.IIB}],subtitleFormat:[{type:n.IIB}],subtitle:[{type:n.IIB}],subtitleColor:[{type:n.IIB}],subtitleFontSize:[{type:n.IIB}],subtitleFontWeight:[{type:n.IIB}],imageSrc:[{type:n.IIB}],imageHeight:[{type:n.IIB}],imageWidth:[{type:n.IIB}],animation:[{type:n.IIB}],animateTitle:[{type:n.IIB}],animateSubtitle:[{type:n.IIB}],animationDuration:[{type:n.IIB}],showTitle:[{type:n.IIB}],showSubtitle:[{type:n.IIB}],showUnits:[{type:n.IIB}],showImage:[{type:n.IIB}],showBackground:[{type:n.IIB}],showInnerStroke:[{type:n.IIB}],clockwise:[{type:n.IIB}],responsive:[{type:n.IIB}],startFromZero:[{type:n.IIB}],showZeroOuterStroke:[{type:n.IIB}],lazy:[{type:n.IIB}],templateOptions:[{type:n.IIB,args:["options"]}]};var HC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[{provide:Tx,useValue:e}]}}}]),t}();HC.\u0275fac=function(r){return new(r||HC)},HC.\u0275mod=n.oAB({type:HC}),HC.\u0275inj=n.cJS({imports:[[Ct.ez]]});var uH=function(){function t(r){(0,j.Z)(this,t),this.rawFile=r;var e=function vCe(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}(r),i=e?r.value:r;this["_createFrom"+("string"==typeof i?"FakePath":"Object")](i)}return(0,V.Z)(t,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/"+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}}]),t}(),yCe=function(){function t(r,e,i){(0,j.Z)(this,t),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.index=void 0,this.uploader=r,this.some=e,this.options=i,this.file=new uH(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,V.Z)(t,[{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}}]),t}(),jC=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"getMimeClass",value:function(e){var i="application";return-1!==this.mime_psd.indexOf(e.type)||e.type.match("image.*")?i="image":e.type.match("video.*")?i="video":e.type.match("audio.*")?i="audio":"application/pdf"===e.type?i="pdf":-1!==this.mime_compress.indexOf(e.type)?i="compress":-1!==this.mime_doc.indexOf(e.type)?i="doc":-1!==this.mime_xsl.indexOf(e.type)?i="xls":-1!==this.mime_ppt.indexOf(e.type)&&(i="ppt"),"application"===i&&(i=this.fileTypeDetection(e.name)),i}},{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]}}]),t}();jC.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"],jC.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"],jC.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"],jC.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],jC.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 t(r){(0,j.Z)(this,t),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},this.setOptions(r),this.response=new n.vpe}return(0,V.Z)(t,[{key:"setOptions",value:function(e){this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(var i=0;i<this.queue.length;i++)this.queue[i].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var u,a=this,s=[],l=(0,cn.Z)(e);try{for(l.s();!(u=l.n()).done;){var f=u.value;s.push(f)}}catch(B){l.e(B)}finally{l.f()}var h=this._getFilters(o),v=this.queue.length,C=[];s.map(function(B){i||(i=a.options);var G=new uH(B);if(a._isValidFile(G,h,i)){var q=new yCe(a,B,i);C.push(q),a.queue.push(q),a._onAfterAddingFile(q)}else{var ae=h[a._failFilterIndex];a._onWhenAddingFileFailed(G,ae,i)}}),this.queue.length!==v&&(this._onAfterAddingAll(C),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 bCe(t){return File&&t instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof uH}},{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:"destroy",value:function(){}},{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){return!(this.options.allowedMimeType&&-1===this.options.allowedMimeType.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(jC.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)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(G){var q=i.options.additionalParameter[G];"string"==typeof q&&q.indexOf("{{file_name}}")>=0&&(q=q.replace("{{file_name}}",e.file.name)),s.append(G,q)}),this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(G){var q=Math.round(G.lengthComputable?100*G.loaded/G.total:0);i._onProgressItem(e,q)},a.onload=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G),ae=i._isSuccessCode(a.status)?"Success":"Error";i["_on"+ae+"Item"](e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onerror=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onErrorItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.onabort=function(){var G=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,G);i._onCancelItem(e,q,a.status,G),i._onCompleteItem(e,q,a.status,G)},a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var f,u=(0,cn.Z)(this.options.headers);try{for(u.s();!(f=u.n()).done;){var h=f.value;a.setRequestHeader(h.name,h.value)}}catch(G){u.e(G)}finally{u.f()}}if(e.headers.length){var C,v=(0,cn.Z)(e.headers);try{for(v.s();!(C=v.n()).done;){var B=C.value;a.setRequestHeader(B.name,B.value)}}catch(G){v.e(G)}finally{v.f()}}this.authToken&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(G){return a.send(JSON.stringify(G))}):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){if(!e)return this.options.filters;if(Array.isArray(e))return e;if("string"==typeof e){var i=e.match(/[^\s,]+/g);return this.options.filters.filter(function(o){return-1!==i.indexOf(o.name)})}return this.options.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++,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)}}]),t}(),Zc=function(){function t(r){(0,j.Z)(this,t),this.onFileSelected=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e=this.element.nativeElement.files,i=this.getOptions(),o=this.getFilters();this.uploader.addToQueue(e,i,o),this.onFileSelected.emit(e),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),t}();Zc.\u0275fac=function(r){return new(r||Zc)(n.Y36(n.SBq))},Zc.\u0275dir=n.lG2({type:Zc,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&n.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}}),Zc.ctorParameters=function(){return[{type:n.SBq}]},Zc.propDecorators={uploader:[{type:n.IIB}],onFileSelected:[{type:n.r_U}],onChange:[{type:n.L6J,args:["change"]}]};var zC=function(){function t(r){(0,j.Z)(this,t),this.fileOver=new n.vpe,this.onFileDrop=new n.vpe,this.element=r}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.uploader.options}},{key:"getFilters",value:function(){return{}}},{key:"onDrop",value:function(e){var i=this._getTransfer(e);if(i){var o=this.getOptions(),a=this.getFilters();this._preventAndStop(e),this.uploader.addToQueue(i.files,o,a),this.fileOver.emit(!1),this.onFileDrop.emit(i.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"))}}]),t}();zC.\u0275fac=function(r){return new(r||zC)(n.Y36(n.SBq))},zC.\u0275dir=n.lG2({type:zC,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&n.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"}}),zC.ctorParameters=function(){return[{type:n.SBq}]},zC.propDecorators={uploader:[{type:n.IIB}],fileOver:[{type:n.r_U}],onFileDrop:[{type:n.r_U}],onDrop:[{type:n.L6J,args:["drop",["$event"]]}],onDragOver:[{type:n.L6J,args:["dragover",["$event"]]}],onDragLeave:[{type:n.L6J,args:["dragleave",["$event"]]}]};var WC=(0,V.Z)(function t(){(0,j.Z)(this,t)});WC.\u0275fac=function(r){return new(r||WC)},WC.\u0275mod=n.oAB({type:WC}),WC.\u0275inj=n.cJS({imports:[[Ct.ez]]});var cH=function(){function t(){}return Object.defineProperty(t.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(t.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),t}(),CCe=function(){var t=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}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),x$=function(t){function r(){return t.call(this)||this}return CCe(r,t),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=n.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(cH);x$.ctorParameters=function(){return[]};var D$=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[{provide:cH,useClass:x$}]}),t}();D$.ctorParameters=function(){return[]};var sl=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),Ny=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.call(this)}return(0,V.Z)(e)}(sl);Ny.\u0275fac=function(r){return new(r||Ny)},Ny.\u0275prov=n.Yz7({token:Ny,factory:Ny.\u0275fac}),Ny.ctorParameters=function(){return[]};var VC=(0,V.Z)(function t(){(0,j.Z)(this,t)});VC.\u0275fac=function(r){return new(r||VC)},VC.\u0275mod=n.oAB({type:VC}),VC.\u0275inj=n.cJS({providers:[{provide:sl,useClass:Ny}]});var Ex=m(4942),Mx=m(7326),YC=m(1737),wCe=m(4450),A$=m(1961),H5=m(8514),By=m(8896),kCe=m(1762),O$=m(2014),Vd=m(7221),Sx=m(1406),TCe=m(8127),GC=m(7224),ECe=m(4327),I$=m(537),dH=m(9146),Lh=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.id=r,this.url=e}),j5=function(t){(0,yt.Z)(e,t);var r=(0,mt.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,j.Z)(this,e),(a=r.call(this,i,o)).navigationTrigger=s,a.restoredState=l,a}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),Zh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Lh),fH=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).reason=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Lh),P$=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).error=a,s}return(0,V.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Lh),MCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),SCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),xCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u}return(0,V.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}(Lh),DCe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),ACe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l}return(0,V.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}(Lh),R$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),L$=function(){function t(r){(0,j.Z)(this,t),this.route=r}return(0,V.Z)(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),OCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),t}(),ICe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),t}(),PCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),t}(),RCe=function(){function t(r){(0,j.Z)(this,t),this.snapshot=r}return(0,V.Z)(t,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),t}(),Z$=function(){function t(r,e,i){(0,j.Z)(this,t),this.routerEvent=r,this.position=e,this.anchor=i}return(0,V.Z)(t,[{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,"')")}}]),t}(),Fi="primary",LCe=function(){function t(r){(0,j.Z)(this,t),this.params=r||{}}return(0,V.Z)(t,[{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)}}]),t}();function qC(t){return new LCe(t)}var N$="ngNavigationCancelingError";function pH(t){var r=Error("NavigationCancelingError: "+t);return r[N$]=!0,r}function NCe(t,r,e){var i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<t.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=t[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function ap(t,r){var e=t?Object.keys(t):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(!B$(t[o=e[a]],r[o]))return!1;return!0}function B$(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;var e=(0,$t.Z)(t).sort(),i=(0,$t.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return t===r}function F$(t){return Array.prototype.concat.apply([],t)}function U$(t){return t.length>0?t[t.length-1]:null}function ll(t,r){for(var e in t)t.hasOwnProperty(e)&&r(t[e],e)}function sp(t){return(0,n.CqO)(t)?t:(0,n.QGY)(t)?(0,el.D)(Promise.resolve(t)):(0,pr.of)(t)}var UCe={exact:function z$(t,r,e){if(!Uy(t.segments,r.segments)||!z5(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!t.children[i]||!z$(t.children[i],r.children[i],e))return!1;return!0},subset:W$},H$={exact:function HCe(t,r){return ap(t,r)},subset:function jCe(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(function(e){return B$(t[e],r[e])})},ignored:function(){return!0}};function j$(t,r,e){return UCe[e.paths](t.root,r.root,e.matrixParams)&&H$[e.queryParams](t.queryParams,r.queryParams)&&!("exact"===e.fragment&&t.fragment!==r.fragment)}function W$(t,r,e){return V$(t,r,r.segments,e)}function V$(t,r,e,i){if(t.segments.length>e.length){var o=t.segments.slice(0,e.length);return!(!Uy(o,e)||r.hasChildren()||!z5(o,e,i))}if(t.segments.length===e.length){if(!Uy(t.segments,e)||!z5(t.segments,e,i))return!1;for(var a in r.children)if(!t.children[a]||!W$(t.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,t.segments.length),l=e.slice(t.segments.length);return!!(Uy(t.segments,s)&&z5(t.segments,s,i)&&t.children[Fi])&&V$(t.children[Fi],r,l,i)}function z5(t,r,e){return r.every(function(i,o){return H$[e](t[o].parameters,i.parameters)})}var Fy=function(){function t(r,e,i){(0,j.Z)(this,t),this.root=r,this.queryParams=e,this.fragment=i}return(0,V.Z)(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return VCe.serialize(this)}}]),t}(),Vi=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this.segments=r,this.children=e,this.parent=null,ll(e,function(o,a){return o.parent=i})}return(0,V.Z)(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return W5(this)}}]),t}(),xx=function(){function t(r,e){(0,j.Z)(this,t),this.path=r,this.parameters=e}return(0,V.Z)(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=qC(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return J$(this)}}]),t}();function Uy(t,r){return t.length===r.length&&t.every(function(e,i){return e.path===r[i].path})}var Y$=(0,V.Z)(function t(){(0,j.Z)(this,t)}),G$=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"parse",value:function(e){var i=new ewe(e);return new Fy(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(Dx(e.root,!0)),o=function qCe(t){var r=Object.keys(t).map(function(e){var i=t[e];return Array.isArray(i)?i.map(function(o){return"".concat(V5(e),"=").concat(V5(o))}).join("&"):"".concat(V5(e),"=").concat(V5(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function YCe(t){return encodeURI(t)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),t}(),VCe=new G$;function W5(t){return t.segments.map(function(r){return J$(r)}).join("/")}function Dx(t,r){if(!t.hasChildren())return W5(t);if(r){var e=t.children[Fi]?Dx(t.children[Fi],!1):"",i=[];return ll(t.children,function(a,s){s!==Fi&&i.push("".concat(s,":").concat(Dx(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function WCe(t,r){var e=[];return ll(t.children,function(i,o){o===Fi&&(e=e.concat(r(i,o)))}),ll(t.children,function(i,o){o!==Fi&&(e=e.concat(r(i,o)))}),e}(t,function(a,s){return s===Fi?[Dx(t.children[Fi],!1)]:["".concat(s,":").concat(Dx(a,!1))]});return 1===Object.keys(t.children).length&&null!=t.children[Fi]?"".concat(W5(t),"/").concat(o[0]):"".concat(W5(t),"/(").concat(o.join("//"),")")}function q$(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function V5(t){return q$(t).replace(/%3B/gi,";")}function hH(t){return q$(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Y5(t){return decodeURIComponent(t)}function K$(t){return Y5(t.replace(/\+/g,"%20"))}function J$(t){return"".concat(hH(t.path)).concat(function GCe(t){return Object.keys(t).map(function(r){return";".concat(hH(r),"=").concat(hH(t[r]))}).join("")}(t.parameters))}var KCe=/^[^\/()?;=#]+/;function G5(t){var r=t.match(KCe);return r?r[0]:""}var JCe=/^[^=?&#]+/;var XCe=/^[^&#]+/;var ewe=function(){function t(r){(0,j.Z)(this,t),this.url=r,this.remaining=r}return(0,V.Z)(t,[{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[Fi]=new Vi(e,i)),o}},{key:"parseSegment",value:function(){var e=G5(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new xx(Y5(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=G5(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=G5(this.remaining);a&&(o=a,this.capture(o))}e[Y5(i)]=Y5(o)}}},{key:"parseQueryParam",value:function(e){var i=function QCe(t){var r=t.match(JCe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function $Ce(t){var r=t.match(XCe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=K$(i),l=K$(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=G5(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var s=void 0;o.indexOf(":")>-1?(s=o.substr(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=Fi);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[Fi]: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 Error('Expected "'.concat(e,'".'))}}]),t}(),Q$=function(){function t(r){(0,j.Z)(this,t),this._root=r}return(0,V.Z)(t,[{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=mH(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=mH(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=_H(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 _H(e,this._root).map(function(i){return i.value})}}]),t}();function mH(t,r){if(t===r.value)return r;var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=mH(t,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function _H(t,r){if(t===r.value)return[r];var i,e=(0,cn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=_H(t,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var Nh=function(){function t(r,e){(0,j.Z)(this,t),this.value=r,this.children=e}return(0,V.Z)(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function KC(t){var r={};return t&&t.children.forEach(function(e){return r[e.value.outlet]=e}),r}var X$=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,i)).snapshot=o,gH((0,Mx.Z)(a),i),a}return(0,V.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(Q$);function $$(t,r){var e=function twe(t,r){var s=new q5([],{},{},"",{},Fi,r,null,t.root,-1,{});return new tee("",new Nh(s,[]))}(t,r),i=new go.X([new xx("",{})]),o=new go.X({}),a=new go.X({}),s=new go.X({}),l=new go.X(""),u=new xr(i,o,s,l,a,Fi,r,e.root);return u.snapshot=e.root,new X$(new Nh(u,[]),e)}var xr=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this._futureSnapshot=u}return(0,V.Z)(t,[{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,mr.U)(function(e){return qC(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mr.U)(function(e){return qC(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function eee(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=t.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 nwe(e.slice(i))}function nwe(t){return t.reduce(function(r,e){return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign({},r.resolve),e._resolvedData)}},{params:{},data:{},resolve:{}})}var q5=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.routeConfig=u,this._urlSegment=f,this._lastPathIndex=h,this._resolve=v}return(0,V.Z)(t,[{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=qC(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=qC(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,"')")}}]),t}(),tee=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this,o)).url=i,gH((0,Mx.Z)(a),o),a}return(0,V.Z)(e,[{key:"toString",value:function(){return nee(this._root)}}]),e}(Q$);function gH(t,r){r.value._routerState=t,r.children.forEach(function(e){return gH(t,e)})}function nee(t){var r=t.children.length>0?" { ".concat(t.children.map(nee).join(", ")," } "):"";return"".concat(t.value).concat(r)}function vH(t){if(t.snapshot){var r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ap(r.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),r.fragment!==e.fragment&&t.fragment.next(e.fragment),ap(r.params,e.params)||t.params.next(e.params),function BCe(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;++e)if(!ap(t[e],r[e]))return!1;return!0}(r.url,e.url)||t.url.next(e.url),ap(r.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function yH(t,r){var e=ap(t.params,r.params)&&function zCe(t,r){return Uy(t,r)&&t.every(function(e,i){return ap(e.parameters,r[i].parameters)})}(t.url,r.url),i=!t.parent!=!r.parent;return e&&!i&&(!t.parent||yH(t.parent,r.parent))}function Ax(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function iwe(t,r,e){return r.children.map(function(i){var a,o=(0,cn.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(t.shouldReuseRoute(i.value,s.value.snapshot))return Ax(t,i,s)}}catch(l){o.e(l)}finally{o.f()}return Ax(t,i)})}(t,r,e);return new Nh(i,o)}if(t.shouldAttach(r.value)){var a=t.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(f){return Ax(t,f)}),s}}var l=function owe(t){return new xr(new go.X(t.url),new go.X(t.params),new go.X(t.queryParams),new go.X(t.fragment),new go.X(t.data),t.outlet,t.component,t)}(r.value),u=r.children.map(function(f){return Ax(t,f)});return new Nh(l,u)}function awe(t,r,e,i,o){if(0===e.length)return bH(r.root,r.root,r.root,i,o);var a=function swe(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new iee(!0,0,t);var r=0,e=!1,i=t.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return ll(a.outlets,function(u,f){l[f]="string"==typeof u?u.split("/"):u}),[].concat((0,$t.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,$t.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,$t.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,f){0==f&&"."===u||(0==f&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,$t.Z)(o),[a])},[]);return new iee(e,r,i)}(e);if(a.toRoot())return bH(r.root,r.root,new Vi([],{}),i,o);var s=function lwe(t,r,e){if(t.isAbsolute)return new CH(r.root,!0,0);if(-1===e.snapshot._lastPathIndex){var i=e.snapshot._urlSegment,o=i===r.root;return new CH(i,o,0)}var a=K5(t.commands[0])?0:1,s=e.snapshot._lastPathIndex+a;return function uwe(t,r,e){for(var i=t,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new CH(i,!1,o-a)}(e.snapshot._urlSegment,s,t.numberOfDoubleDots)}(a,r,t),l=s.processChildren?J5(s.segmentGroup,s.index,a.commands):oee(s.segmentGroup,s.index,a.commands);return bH(r.root,s.segmentGroup,l,i,o)}function K5(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ox(t){return"object"==typeof t&&null!=t&&t.outlets}function bH(t,r,e,i,o){var a={};if(i&&ll(i,function(l,u){a[u]=Array.isArray(l)?l.map(function(f){return"".concat(f)}):"".concat(l)}),t===r)return new Fy(e,a,o);var s=ree(t,r,e);return new Fy(s,a,o)}function ree(t,r,e){var i={};return ll(t.children,function(o,a){i[a]=o===r?e:ree(o,r,e)}),new Vi(t.segments,i)}var iee=function(){function t(r,e,i){if((0,j.Z)(this,t),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&K5(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find(Ox);if(o&&o!==U$(i))throw new Error("{outlets:{}} has to be the last command")}return(0,V.Z)(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}();var CH=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.segmentGroup=r,this.processChildren=e,this.index=i});function oee(t,r,e){if(t||(t=new Vi([],{})),0===t.segments.length&&t.hasChildren())return J5(t,r,e);var i=function dwe(t,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(i>=e.length)return a;var s=t.segments[o],l=e[i];if(Ox(l))break;var u="".concat(l),f=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&f&&"object"==typeof f&&void 0===f.outlets){if(!see(u,f,s))return a;i+=2}else{if(!see(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){var a=new Vi(t.segments.slice(0,i.pathIndex),{});return a.children[Fi]=new Vi(t.segments.slice(i.pathIndex),t.children),J5(a,0,o)}return i.match&&0===o.length?new Vi(t.segments,{}):i.match&&!t.hasChildren()?wH(t,r,e):i.match?J5(t,0,o):wH(t,r,e)}function J5(t,r,e){if(0===e.length)return new Vi(t.segments,{});var i=function cwe(t){return Ox(t[0])?t[0].outlets:(0,Ex.Z)({},Fi,t)}(e),o={};return ll(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=oee(t.children[s],r,a))}),ll(t.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new Vi(t.segments,o)}function wH(t,r,e){for(var i=t.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(Ox(a)){var s=fwe(a.outlets);return new Vi(i,s)}if(0===o&&K5(e[0])){var l=t.segments[r];i.push(new xx(l.path,aee(e[0]))),o++}else{var u=Ox(a)?a.outlets[Fi]:"".concat(a),f=o<e.length-1?e[o+1]:null;u&&f&&K5(f)?(i.push(new xx(u,aee(f))),o+=2):(i.push(new xx(u,{})),o++)}}return new Vi(i,{})}function fwe(t){var r={};return ll(t,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=wH(new Vi([],{}),0,e))}),r}function aee(t){var r={};return ll(t,function(e,i){return r[i]="".concat(e)}),r}function see(t,r,e){return t==e.path&&ap(r,e.parameters)}var hwe=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,V.Z)(t,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),vH(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=KC(i);e.children.forEach(function(l){var u=l.value.outlet;a.deactivateRoutes(l,s[u],o),delete s[u]}),ll(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=KC(e),l=0,u=Object.keys(s);l<u.length;l++){var f=u[l];this.deactivateRouteAndItsChildren(s[f],a)}if(o&&o.outlet){var h=o.outlet.detach(),v=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:v})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=KC(e),l=0,u=Object.keys(s);l<u.length;l++){var f=u[l];this.deactivateRouteAndItsChildren(s[f],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=KC(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new RCe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new ICe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a=e.value,s=i?i.value:null;if(vH(a),a===s)if(a.component){var l=o.getOrCreateContext(a.outlet);this.activateChildRoutes(e,i,l.children)}else this.activateChildRoutes(e,i,o);else if(a.component){var u=o.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){var f=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),u.children.onOutletReAttached(f.contexts),u.attachRef=f.componentRef,u.route=f.route.value,u.outlet&&u.outlet.attach(f.componentRef,f.route.value),vH(f.route.value),this.activateChildRoutes(e,null,u.children)}else{var h=function mwe(t){for(var r=t.parent;r;r=r.parent){var e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(a.snapshot),v=h?h.module.componentFactoryResolver:null;u.attachRef=null,u.route=a,u.resolver=v,u.outlet&&u.outlet.activateWith(a,v),this.activateChildRoutes(e,null,u.children)}}else this.activateChildRoutes(e,null,o)}}]),t}();var kH=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.routes=r,this.module=e});function tg(t){return"function"==typeof t}function Hy(t){return t instanceof Fy}var Ix=Symbol("INITIAL_VALUE");function Px(){return(0,xo.w)(function(t){return(0,uh.aj)(t.map(function(r){return r.pipe((0,to.q)(1),(0,ua.O)(Ix))})).pipe((0,O$.R)(function(r,e){var i=!1;return e.reduce(function(o,a,s){return o!==Ix?o:(a===Ix&&(i=!0),i||!1!==a&&s!==e.length-1&&!Hy(a)?o:a)},r)},Ix),(0,Ei.h)(function(r){return r!==Ix}),(0,mr.U)(function(r){return Hy(r)?r:!0===r}),(0,to.q)(1))})}var Cwe=(0,V.Z)(function t(){(0,j.Z)(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Rx,this.attachRef=null}),Rx=function(){function t(){(0,j.Z)(this,t),this.contexts=new Map}return(0,V.Z)(t,[{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 Cwe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),t}(),Bh=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.parentContexts=r,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=o||Fi,r.onChildOutletCreated(this.name,this)}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){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.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;var a=e._futureSnapshot.routeConfig.component,s=(i=i||this.resolver).resolveComponentFactory(a),l=this.parentContexts.getOrCreateContext(this.name).children,u=new wwe(e,l,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),t}();Bh.\u0275fac=function(r){return new(r||Bh)(n.Y36(Rx),n.Y36(n.s_b),n.Y36(n._Vd),n.$8M("name"),n.Y36(n.sBO))},Bh.\u0275dir=n.lG2({type:Bh,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]});var wwe=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.childContexts=e,this.parent=i}return(0,V.Z)(t,[{key:"get",value:function(e,i){return e===xr?this.route:e===Rx?this.childContexts:this.parent.get(e,i)}}]),t}(),JC=(0,V.Z)(function t(){(0,j.Z)(this,t)});function lee(t){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=0;e<t.length;e++){var i=t[e],o=Twe(r,i);kwe(i,o)}}function kwe(t,r){t.children&&lee(t.children,r)}function Twe(t,r){return r?t||r.path?t&&!r.path?"".concat(t,"/"):!t&&r.path?r.path:"".concat(t,"/").concat(r.path):"":t}function TH(t){var r=t.children&&t.children.map(TH),e=r?Object.assign(Object.assign({},t),{children:r}):Object.assign({},t);return!e.component&&(r||e.loadChildren)&&e.outlet&&e.outlet!==Fi&&(e.component=JC),e}function Nc(t){return t.outlet||Fi}function uee(t,r){var e=t.filter(function(i){return Nc(i)===r});return e.push.apply(e,(0,$t.Z)(t.filter(function(i){return Nc(i)!==r}))),e}JC.\u0275fac=function(r){return new(r||JC)},JC.\u0275cmp=n.Xpm({type:JC,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,e){1&r&&n._UZ(0,"router-outlet")},directives:[Bh],encapsulation:2});var cee={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Q5(t,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},cee):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||NCe)(e,t,r);if(!a)return Object.assign({},cee);var s={};ll(a.posParams,function(u,f){s[f]=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 X5(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Swe(t,e,i)){var a=new Vi(r,Mwe(t,r,i,new Vi(e,t.children)));return a._sourceSegment=t,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&xwe(t,e,i)){var s=new Vi(t.segments,Ewe(t,r,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new Vi(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Ewe(t,r,e,i,o,a){var u,s={},l=(0,cn.Z)(i);try{for(l.s();!(u=l.n()).done;){var f=u.value;if($5(t,e,f)&&!o[Nc(f)]){var h=new Vi([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:r.length,s[Nc(f)]=h}}}catch(v){l.e(v)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function Mwe(t,r,e,i){var o={};o[Fi]=i,i._sourceSegment=t,i._segmentIndexShift=r.length;var s,a=(0,cn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&Nc(l)!==Fi){var u=new Vi([],{});u._sourceSegment=t,u._segmentIndexShift=r.length,o[Nc(l)]=u}}}catch(f){a.e(f)}finally{a.f()}return o}function Swe(t,r,e){return e.some(function(i){return $5(t,r,i)&&Nc(i)!==Fi})}function xwe(t,r,e){return e.some(function(i){return $5(t,r,i)})}function $5(t,r,e){return(!(t.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function dee(t,r,e,i){return!!(Nc(t)===i||i!==Fi&&$5(r,e,t))&&("**"===t.path||Q5(r,t,e).matched)}function fee(t,r,e){return 0===r.length&&!t.children[e]}var eZ=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.segmentGroup=r||null}),pee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.urlTree=r});function Lx(t){return(0,YC._)(new eZ(t))}function hee(t){return(0,YC._)(new pee(t))}function Dwe(t){return(0,YC._)(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}var Iwe=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(n.h0i)}return(0,V.Z)(t,[{key:"apply",value:function(){var e=this,i=X5(this.urlTree.root,[],[],this.config).segmentGroup,o=new Vi(i.segments,i.children);return this.expandSegmentGroup(this.ngModule,this.config,o,Fi).pipe((0,mr.U)(function(l){return e.createUrlTree(EH(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Vd.K)(function(l){if(l instanceof pee)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof eZ?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Fi).pipe((0,mr.U)(function(s){return i.createUrlTree(EH(s),e.queryParams,e.fragment)})).pipe((0,Vd.K)(function(s){throw s instanceof eZ?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,i,o){var a=e.segments.length>0?new Vi([],(0,Ex.Z)({},Fi,e)):e;return new Fy(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,mr.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 f=u[l];"primary"===f?s.unshift(f):s.push(f)}return(0,el.D)(s).pipe((0,Sx.b)(function(h){var v=o.children[h],C=uee(i,h);return a.expandSegmentGroup(e,C,v,h).pipe((0,mr.U)(function(B){return{segment:B,outlet:h}}))}),(0,O$.R)(function(h,v){return h[v.outlet]=v.segment,h},{}),(0,TCe.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,el.D)(o).pipe((0,Sx.b)(function(f){return u.expandSegmentAgainstRoute(e,i,o,f,a,s,l).pipe((0,Vd.K)(function(v){if(v instanceof eZ)return(0,pr.of)(null);throw v}))}),(0,GC.P)(function(f){return!!f}),(0,Vd.K)(function(f,h){if(f instanceof wCe.K||"EmptyError"===f.name)return fee(i,a,s)?(0,pr.of)(new Vi([],{})):Lx(i);throw f}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return dee(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):Lx(i):Lx(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("/")?hee(l):this.lineralizeSegments(o,l).pipe((0,Ea.zg)(function(u){var f=new Vi(u,{});return s.expandSegment(e,f,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,f=Q5(i,a,s),h=f.matched,v=f.consumedSegments,C=f.remainingSegments,B=f.positionalParamSegments;if(!h)return Lx(i);var G=this.applyRedirectCommands(v,a.redirectTo,B);return a.redirectTo.startsWith("/")?hee(G):this.lineralizeSegments(a,G).pipe((0,Ea.zg)(function(q){return u.expandSegment(e,i,o,q.concat(C),l,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,i,o,a,s){var l=this;if("**"===o.path)return o.loadChildren?(o._loadedConfig?(0,pr.of)(o._loadedConfig):this.configLoader.load(e.injector,o)).pipe((0,mr.U)(function(G){return o._loadedConfig=G,new Vi(a,{})})):(0,pr.of)(new Vi(a,{}));var f=Q5(i,o,a),h=f.matched,v=f.consumedSegments,C=f.remainingSegments;return h?this.getChildConfig(e,o,a).pipe((0,Ea.zg)(function(G){var q=G.module,ae=G.routes,he=X5(i,v,C,ae),Ye=he.segmentGroup,Me=he.slicedSegments,Fe=new Vi(Ye.segments,Ye.children);if(0===Me.length&&Fe.hasChildren())return l.expandChildren(q,ae,Fe).pipe((0,mr.U)(function(ut){return new Vi(v,ut)}));if(0===ae.length&&0===Me.length)return(0,pr.of)(new Vi(v,{}));var ht=Nc(o)===s;return l.expandSegment(q,Fe,ae,Me,ht?Fi:s,!0).pipe((0,mr.U)(function(ut){return new Vi(v.concat(ut.segments),ut.children)}))})):Lx(i)}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,pr.of)(new kH(i.children,e)):i.loadChildren?void 0!==i._loadedConfig?(0,pr.of)(i._loadedConfig):this.runCanLoadGuards(e.injector,i,o).pipe((0,Ea.zg)(function(s){return s?a.configLoader.load(e.injector,i).pipe((0,mr.U)(function(l){return i._loadedConfig=l,l})):function Awe(t){return(0,YC._)(pH("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}(i)})):(0,pr.of)(new kH([],e))}},{key:"runCanLoadGuards",value:function(e,i,o){var a=this,s=i.canLoad;if(!s||0===s.length)return(0,pr.of)(!0);var l=s.map(function(u){var h,f=e.get(u);if(function gwe(t){return t&&tg(t.canLoad)}(f))h=f.canLoad(i,o);else{if(!tg(f))throw new Error("Invalid CanLoad guard");h=f(i,o)}return sp(h)});return(0,pr.of)(l).pipe(Px(),(0,hs.b)(function(u){if(Hy(u)){var f=pH('Redirecting to "'.concat(a.urlSerializer.serialize(u),'"'));throw f.url=u,f}}),(0,mr.U)(function(u){return!0===u}))}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,pr.of)(o);if(a.numberOfChildren>1||!a.children[Fi])return Dwe(e.redirectTo);a=a.children[Fi]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreatreUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreatreUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new Fy(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return ll(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 ll(i.children,function(f,h){u[h]=s.createSegmentGroup(e,f,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 Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(i.path,"'."));return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,cn.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}}]),t}();function EH(t){for(var r={},e=0,i=Object.keys(t.children);e<i.length;e++){var o=i[e],s=EH(t.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function Pwe(t){if(1===t.numberOfChildren&&t.children[Fi]){var r=t.children[Fi];return new Vi(t.segments.concat(r.segments),r.children)}return t}(new Vi(t.segments,r))}function Rwe(t,r,e,i){return(0,xo.w)(function(o){return function Owe(t,r,e,i,o){return new Iwe(t,r,e,i,o).apply()}(t,r,e,o.extractedUrl,i).pipe((0,mr.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var mee=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.path=r,this.route=this.path[this.path.length-1]}),tZ=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.component=r,this.route=e});function Lwe(t,r,e){var i=t._root;return Zx(i,r?r._root:null,e,[i.value])}function nZ(t,r,e){var i=function Nwe(t){if(!t)return null;for(var r=t.parent;r;r=r.parent){var e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(r);return(i?i.module.injector:e).get(t)}function Zx(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=KC(r);return t.children.forEach(function(s){Bwe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),ll(a,function(s,l){return Nx(s,e.getContext(l),o)}),o}function Bwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=t.value,s=r?r.value:null,l=e?e.getContext(t.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Fwe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new mee(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?Zx(t,r,l?l.children:null,i,o):Zx(t,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new tZ(l.outlet.component,s))}else s&&Nx(r,l,o),o.canActivateChecks.push(new mee(i)),a.component?Zx(t,null,l?l.children:null,i,o):Zx(t,null,e,i,o);return o}function Fwe(t,r,e){if("function"==typeof e)return e(t,r);switch(e){case"pathParamsChange":return!Uy(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Uy(t.url,r.url)||!ap(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yH(t,r)||!ap(t.queryParams,r.queryParams);default:return!yH(t,r)}}function Nx(t,r,e){var i=KC(t),o=t.value;ll(i,function(a,s){o.component?Nx(a,r?r.children.getContext(s):null,e):Nx(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new tZ(r.outlet.component,o)):e.canDeactivateChecks.push(new tZ(null,o))}function Uwe(t,r){return(0,Ea.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,pr.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Hwe(t,r,e,i){return(0,el.D)(t).pipe((0,Ea.zg)(function(o){return function Gwe(t,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,pr.of)(!0);var s=a.map(function(l){var f,u=nZ(l,r,o);if(function bwe(t){return t&&tg(t.canDeactivate)}(u))f=sp(u.canDeactivate(t,r,e,i));else{if(!tg(u))throw new Error("Invalid CanDeactivate guard");f=sp(u(t,r,e,i))}return f.pipe((0,GC.P)())});return(0,pr.of)(s).pipe(Px())}(o.component,o.route,e,r,i)}),(0,GC.P)(function(o){return!0!==o},!0))}(l,i,o,t).pipe((0,Ea.zg)(function(u){return u&&function _we(t){return"boolean"==typeof t}(u)?function jwe(t,r,e,i){return(0,el.D)(r).pipe((0,Sx.b)(function(o){return(0,A$.z)(function Wwe(t,r){return null!==t&&r&&r(new OCe(t)),(0,pr.of)(!0)}(o.route.parent,i),function zwe(t,r){return null!==t&&r&&r(new PCe(t)),(0,pr.of)(!0)}(o.route,i),function Ywe(t,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function Zwe(t){var r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,H5.P)(function(){var l=s.guards.map(function(u){var h,f=nZ(u,s.node,e);if(function ywe(t){return t&&tg(t.canActivateChild)}(f))h=sp(f.canActivateChild(i,t));else{if(!tg(f))throw new Error("Invalid CanActivateChild guard");h=sp(f(i,t))}return h.pipe((0,GC.P)())});return(0,pr.of)(l).pipe(Px())})});return(0,pr.of)(a).pipe(Px())}(t,o.path,e),function Vwe(t,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,pr.of)(!0);var o=i.map(function(a){return(0,H5.P)(function(){var l,s=nZ(a,r,e);if(function vwe(t){return t&&tg(t.canActivate)}(s))l=sp(s.canActivate(r,t));else{if(!tg(s))throw new Error("Invalid CanActivate guard");l=sp(s(r,t))}return l.pipe((0,GC.P)())})});return(0,pr.of)(o).pipe(Px())}(t,o.route,e))}),(0,GC.P)(function(o){return!0!==o},!0))}(i,s,t,r):(0,pr.of)(u)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}var qwe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function _ee(t){return new fo.y(function(r){return r.error(t)})}var Jwe=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.rootComponentType=r,this.config=e,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=s}return(0,V.Z)(t,[{key:"recognize",value:function(){var e=X5(this.urlTree.root,[],[],this.config.filter(function(l){return void 0===l.redirectTo}),this.relativeLinkResolution).segmentGroup,i=this.processSegmentGroup(this.config,e,Fi);if(null===i)return null;var o=new q5([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fi,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Nh(o,i),s=new tee(this.url,a);return this.inheritParamsAndData(s._root),s}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=eee(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){return 0===i.segments.length&&i.hasChildren()?this.processChildren(e,i):this.processSegment(e,i,i.segments,o)}},{key:"processChildren",value:function(e,i){for(var o=[],a=0,s=Object.keys(i.children);a<s.length;a++){var l=s[a],u=i.children[l],f=uee(e,l),h=this.processSegmentGroup(f,u,l);if(null===h)return null;o.push.apply(o,(0,$t.Z)(h))}var v=gee(o);return function Qwe(t){t.sort(function(r,e){return r.value.outlet===Fi?-1:e.value.outlet===Fi?1:r.value.outlet.localeCompare(e.value.outlet)})}(v),v}},{key:"processSegment",value:function(e,i,o,a){var l,s=(0,cn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,f=this.processSegmentAgainstRoute(u,i,o,a);if(null!==f)return f}}catch(h){s.e(h)}finally{s.f()}return fee(i,o,a)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a){if(e.redirectTo||!dee(e,i,o,a))return null;var s,l=[],u=[];if("**"===e.path){var f=o.length>0?U$(o).parameters:{};s=new q5(o,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bee(e),Nc(e),e.component,e,vee(i),yee(i)+o.length,Cee(e))}else{var h=Q5(i,e,o);if(!h.matched)return null;l=h.consumedSegments,u=h.remainingSegments,s=new q5(l,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,bee(e),Nc(e),e.component,e,vee(i),yee(i)+l.length,Cee(e))}var v=function Xwe(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),C=X5(i,l,u,v.filter(function(Ye){return void 0===Ye.redirectTo}),this.relativeLinkResolution),B=C.segmentGroup,G=C.slicedSegments;if(0===G.length&&B.hasChildren()){var q=this.processChildren(v,B);return null===q?null:[new Nh(s,q)]}if(0===v.length&&0===G.length)return[new Nh(s,[])];var ae=Nc(e)===a,he=this.processSegment(v,B,G,ae?Fi:a);return null===he?null:[new Nh(s,he)]}}]),t}();function gee(t){var o,r=[],e=new Set,i=(0,cn.Z)(t);try{var a=function(){var C=o.value;if(!function $we(t){var r=t.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(C))return r.push(C),"continue";var G,B=r.find(function(q){return C.value.routeConfig===q.value.routeConfig});void 0!==B?((G=B.children).push.apply(G,(0,$t.Z)(C.children)),e.add(B)):r.push(C)};for(i.s();!(o=i.n()).done;)a()}catch(v){i.e(v)}finally{i.f()}var u,l=(0,cn.Z)(e);try{for(l.s();!(u=l.n()).done;){var f=u.value,h=gee(f.children);r.push(new Nh(f.value,h))}}catch(v){l.e(v)}finally{l.f()}return r.filter(function(v){return!e.has(v)})}function vee(t){for(var r=t;r._sourceSegment;)r=r._sourceSegment;return r}function yee(t){for(var r=t,e=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)e+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return e-1}function bee(t){return t.data||{}}function Cee(t){return t.resolve||{}}function eke(t,r,e,i,o){return(0,Ea.zg)(function(a){return function Kwe(t,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var s=new Jwe(t,r,e,i,o,a).recognize();return null===s?_ee(new qwe):(0,pr.of)(s)}catch(l){return _ee(l)}}(t,r,a.urlAfterRedirects,e(a.urlAfterRedirects),i,o).pipe((0,mr.U)(function(s){return Object.assign(Object.assign({},a),{targetSnapshot:s})}))})}function tke(t,r){return(0,Ea.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,pr.of)(e);var a=0;return(0,el.D)(o).pipe((0,Sx.b)(function(s){return function nke(t,r,e,i){return function rke(t,r,e,i){var o=wee(t);if(0===o.length)return(0,pr.of)({});var a={};return(0,el.D)(o).pipe((0,Ea.zg)(function(s){return function ike(t,r,e,i){var o=nZ(t,r,i);return o.resolve?sp(o.resolve(r,e)):sp(o(r,e))}(t[s],r,e,i).pipe((0,hs.b)(function(l){a[s]=l}))}),(0,LM.h)(1),(0,Ea.zg)(function(){return wee(a).length===o.length?(0,pr.of)(a):By.E}))}(t._resolve,t,r,i).pipe((0,mr.U)(function(a){return t._resolvedData=a,t.data=Object.assign(Object.assign({},t.data),eee(t,e).resolve),null}))}(s.route,i,t,r)}),(0,hs.b)(function(){return a++}),(0,LM.h)(1),(0,Ea.zg)(function(s){return a===o.length?(0,pr.of)(e):By.E}))})}function wee(t){return[].concat((0,$t.Z)(Object.keys(t)),(0,$t.Z)(Object.getOwnPropertySymbols(t)))}function MH(t){return(0,xo.w)(function(r){var e=t(r);return e?(0,el.D)(e).pipe((0,mr.U)(function(){return r})):(0,pr.of)(r)})}var oke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ake=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}(),ske=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ake),SH=new n.OlP("ROUTES"),kee=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.injector=r,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=o}return(0,V.Z)(t,[{key:"load",value:function(e,i){var o=this;if(i._loader$)return i._loader$;this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactory(i.loadChildren).pipe((0,mr.U)(function(l){o.onLoadEndListener&&o.onLoadEndListener(i);var u=l.create(e);return new kH(F$(u.injector.get(SH,void 0,n.XFs.Self|n.XFs.Optional)).map(TH),u)}),(0,Vd.K)(function(l){throw i._loader$=void 0,l}));return i._loader$=new kCe.c(s,function(){return new qn.xQ}).pipe((0,ECe.x)()),i._loader$}},{key:"loadModuleFactory",value:function(e){var i=this;return sp(e()).pipe((0,Ea.zg)(function(o){return o instanceof n.YKP?(0,pr.of)(o):(0,el.D)(i.compiler.compileModuleAsync(o))}))}}]),t}(),lke=(0,V.Z)(function t(){(0,j.Z)(this,t)}),uke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),t}();function cke(t){throw t}function dke(t,r,e){return r.parse("/")}function Tee(t,r){return(0,pr.of)(null)}var fke={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pke={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},kr=function(){function t(r,e,i,o,a,s,l){var u=this;(0,j.Z)(this,t),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 qn.xQ,this.errorHandler=cke,this.malformedUriErrorHandler=dke,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Tee,afterPreactivation:Tee},this.urlHandlingStrategy=new uke,this.routeReuseStrategy=new ske,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.ngModule=a.get(n.h0i),this.console=a.get(n.c2e);var v=a.get(n.R0b);this.isNgZoneEnabled=v instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function FCe(){return new Fy(new Vi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new kee(a,s,function(B){return u.triggerEvent(new R$(B))},function(B){return u.triggerEvent(new L$(B))}),this.routerState=$$(this.currentUrlTree,this.rootComponentType),this.transitions=new go.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,V.Z)(t,[{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,Ei.h)(function(a){return 0!==a.id}),(0,mr.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,xo.w)(function(a){var s=!1,l=!1;return(0,pr.of)(a).pipe((0,hs.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,xo.w)(function(u){var f=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==f||f!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Eee(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,pr.of)(u).pipe((0,xo.w)(function(Fe){var ft=i.transitions.getValue();return o.next(new j5(Fe.id,i.serializeUrl(Fe.extractedUrl),Fe.source,Fe.restoredState)),ft!==i.transitions.getValue()?By.E:Promise.resolve(Fe)}),Rwe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,hs.b)(function(Fe){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Fe.urlAfterRedirects})}),eke(i.rootComponentType,i.config,function(Fe){return i.serializeUrl(Fe)},i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,hs.b)(function(Fe){if("eager"===i.urlUpdateStrategy){if(!Fe.extras.skipLocationChange){var ft=i.urlHandlingStrategy.merge(Fe.urlAfterRedirects,Fe.rawUrl);i.setBrowserUrl(ft,Fe)}i.browserUrlTree=Fe.urlAfterRedirects}var ht=new MCe(Fe.id,i.serializeUrl(Fe.extractedUrl),i.serializeUrl(Fe.urlAfterRedirects),Fe.targetSnapshot);o.next(ht)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var B=u.id,G=u.extractedUrl,q=u.source,ae=u.restoredState,he=u.extras,Ye=new j5(B,i.serializeUrl(G),q,ae);o.next(Ye);var Me=$$(G,i.rootComponentType).snapshot;return(0,pr.of)(Object.assign(Object.assign({},u),{targetSnapshot:Me,urlAfterRedirects:G,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return i.rawUrlTree=u.rawUrl,u.resolve(null),By.E}),MH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.beforePreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,hs.b)(function(u){var f=new SCe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(f)}),(0,mr.U)(function(u){return Object.assign(Object.assign({},u),{guards:Lwe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Uwe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,hs.b)(function(u){if(Hy(u.guardsResult)){var f=pH('Redirecting to "'.concat(i.serializeUrl(u.guardsResult),'"'));throw f.url=u.guardsResult,f}var h=new xCe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(h)}),(0,Ei.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,""),!1)}),MH(function(u){if(u.guards.canActivateChecks.length)return(0,pr.of)(u).pipe((0,hs.b)(function(f){var h=new DCe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}),(0,xo.w)(function(f){var h=!1;return(0,pr.of)(f).pipe(tke(i.paramsInheritanceStrategy,i.ngModule.injector),(0,hs.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(f),i.cancelNavigationTransition(f,"At least one route resolver didn't emit any value."))}}))}),(0,hs.b)(function(f){var h=new ACe(f.id,i.serializeUrl(f.extractedUrl),i.serializeUrl(f.urlAfterRedirects),f.targetSnapshot);i.triggerEvent(h)}))}),MH(function(u){var f=u.targetSnapshot,h=u.id,v=u.extractedUrl,C=u.rawUrl,B=u.extras,G=B.skipLocationChange,q=B.replaceUrl;return i.hooks.afterPreactivation(f,{navigationId:h,appliedUrlTree:v,rawUrlTree:C,skipLocationChange:!!G,replaceUrl:!!q})}),(0,mr.U)(function(u){var f=function rwe(t,r,e){var i=Ax(t,r._root,e?e._root:void 0);return new X$(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:f})}),(0,hs.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,mr.U)(function(o){return new hwe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,hs.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,I$.x)(function(){var u;if(!s&&!l){var f="Navigation ID ".concat(a.id," is not equal to the current navigation id ").concat(i.navigationId);i.cancelNavigationTransition(a,f)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,Vd.K)(function(u){if(l=!0,function ZCe(t){return t&&t[N$]}(u)){var f=Hy(u.url);f||(i.navigated=!0,i.restoreHistory(a,!0));var h=new fH(a.id,i.serializeUrl(a.extractedUrl),u.message);o.next(h),f?setTimeout(function(){var C=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),B={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Eee(a.source)};i.scheduleNavigation(C,"imperative",null,B,{resolve:a.resolve,reject:a.reject,promise:a.promise})},0):a.resolve(!1)}else{i.restoreHistory(a,!0);var v=new P$(a.id,i.serializeUrl(a.extractedUrl),u);o.next(v);try{a.resolve(i.errorHandler(u))}catch(C){a.reject(C)}}return By.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?void 0: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 f=e.parseUrl(i.url);e.scheduleNavigation(f,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){lee(e),this.config=e.map(TH),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,f=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,v=null;switch(l){case"merge":v=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":v=this.currentUrlTree.queryParams;break;default:v=a||null}return null!==v&&(v=this.removeEmptyProps(v)),awe(f,this.currentUrlTree,e,v,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=Hy(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 hke(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({},fke):!1===i?Object.assign({},pke):i,Hy(e))return j$(this.currentUrlTree,e,o);var a=this.parseUrl(e);return j$(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){e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new Zh(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,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,f,h,v;if(this.disposed)return Promise.resolve(!1);s?(f=s.resolve,h=s.reject,v=s.promise):v=new Promise(function(q,ae){f=q,h=ae});var B,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),B=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):B=0;return this.setTransition({id:C,targetPageId:B,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:f,reject:h,promise:v,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),v.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){var o=new fH(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(o),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),t}();function hke(t){for(var r=0;r<t.length;r++){var e=t[r];if(null==e)throw new Error("The requested path contains ".concat(e," segment at index ").concat(r))}}function Eee(t){return"imperative"!==t}kr.\u0275fac=function(r){n.$Z()},kr.\u0275prov=n.Yz7({token:kr,factory:kr.\u0275fac});var ta=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.commands=null,this.onChanges=new qn.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,V.Z)(t,[{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:QC(this.skipLocationChange),replaceUrl:QC(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:QC(this.preserveFragment)})}}]),t}();ta.\u0275fac=function(r){return new(r||ta)(n.Y36(kr),n.Y36(xr),n.$8M("tabindex"),n.Y36(n.Qsj),n.Y36(n.SBq))},ta.\u0275dir=n.lG2({type:ta,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]});var Ws=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.router=r,this.route=e,this.locationStrategy=i,this.commands=null,this.href=null,this.onChanges=new qn.xQ,this.subscription=r.events.subscribe(function(a){a instanceof Zh&&o.updateTargetUrlAndHref()})}return(0,V.Z)(t,[{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:QC(this.skipLocationChange),replaceUrl:QC(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:QC(this.preserveFragment)})}}]),t}();function QC(t){return""===t||!!t}Ws.\u0275fac=function(r){return new(r||Ws)(n.Y36(kr),n.Y36(xr),n.Y36(Ct.S$))},Ws.\u0275dir=n.lG2({type:Ws,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&n.uIk("target",e.target)("href",e.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[n.TTD]});var XC=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),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 n.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof Zh&&l.update()})}return(0,V.Z)(t,[{key:"ngAfterContentInit",value:function(){var e=this;(0,pr.of)(this.links.changes,this.linksWithHrefs.changes,(0,pr.of)(null)).pipe((0,dH.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,$t.Z)(this.links.toArray()),(0,$t.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,el.D)(o).pipe((0,dH.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)}),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function mke(t){return!!t.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)}}]),t}();XC.\u0275fac=function(r){return new(r||XC)(n.Y36(kr),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(ta,8),n.Y36(Ws,8))},XC.\u0275dir=n.lG2({type:XC,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,ta,5),n.Suo(i,Ws,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.links=o),n.iGM(o=n.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.TTD]});var Mee=(0,V.Z)(function t(){(0,j.Z)(this,t)}),_ke=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"preload",value:function(e,i){return i().pipe((0,Vd.K)(function(){return(0,pr.of)(null)}))}}]),t}(),See=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"preload",value:function(e,i){return(0,pr.of)(null)}}]),t}(),jy=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.router=r,this.injector=i,this.preloadingStrategy=o;this.loader=new kee(i,e,function(u){return r.triggerEvent(new R$(u))},function(u){return r.triggerEvent(new L$(u))})}return(0,V.Z)(t,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,Ei.h)(function(i){return i instanceof Zh}),(0,Sx.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(n.h0i);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var s,o=[],a=(0,cn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.loadChildren&&!l.canLoad&&l._loadedConfig){var u=l._loadedConfig;o.push(this.processRoutes(u.module,u.routes))}else l.loadChildren&&!l.canLoad?o.push(this.preloadConfig(e,l)):l.children&&o.push(this.processRoutes(e,l.children))}}catch(f){a.e(f)}finally{a.f()}return(0,el.D)(o).pipe((0,dH.J)(),(0,mr.U)(function(f){}))}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){return(i._loadedConfig?(0,pr.of)(i._loadedConfig):o.loader.load(e.injector,i)).pipe((0,Ea.zg)(function(s){return i._loadedConfig=s,o.processRoutes(s.module,s.routes)}))})}}]),t}();jy.\u0275fac=function(r){return new(r||jy)(n.LFG(kr),n.LFG(n.Sil),n.LFG(n.zs3),n.LFG(Mee))},jy.\u0275prov=n.Yz7({token:jy,factory:jy.\u0275fac});var zy=function(){function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,j.Z)(this,t),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,V.Z)(t,[{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 j5?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof Zh&&(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 Z$&&(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 Z$(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();zy.\u0275fac=function(r){n.$Z()},zy.\u0275prov=n.Yz7({token:zy,factory:zy.\u0275fac});var Wy=new n.OlP("ROUTER_CONFIGURATION"),xee=new n.OlP("ROUTER_FORROOT_GUARD"),gke=[Ct.Ye,{provide:Y$,useClass:G$},{provide:kr,useFactory:function wke(t,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,f=new kr(null,t,r,e,i,o,F$(a));return l&&(f.urlHandlingStrategy=l),u&&(f.routeReuseStrategy=u),kke(s,f),s.enableTracing&&f.events.subscribe(function(h){var v,C;null===(v=console.group)||void 0===v||v.call(console,"Router Event: ".concat(h.constructor.name)),console.log(h.toString()),console.log(h),null===(C=console.groupEnd)||void 0===C||C.call(console)}),f},deps:[Y$,Rx,Ct.Ye,n.zs3,n.Sil,SH,Wy,[lke,new n.FiY],[oke,new n.FiY]]},Rx,{provide:xr,useFactory:function Tke(t){return t.routerState.root},deps:[kr]},jy,See,_ke,{provide:Wy,useValue:{enableTracing:!1}}];function vke(){return new n.PXZ("Router",kr)}var Vy=function(){function t(r,e){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"forRoot",value:function(e,i){return{ngModule:t,providers:[gke,Dee(e),{provide:xee,useFactory:Cke,deps:[[kr,new n.FiY,new n.tp0]]},{provide:Wy,useValue:i||{}},{provide:Ct.S$,useFactory:bke,deps:[Ct.lw,[new n.tBr(Ct.mr),new n.FiY],Wy]},{provide:zy,useFactory:yke,deps:[kr,Ct.EM,Wy]},{provide:Mee,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:See},{provide:n.PXZ,multi:!0,useFactory:vke},[ng,{provide:n.ip1,multi:!0,useFactory:Eke,deps:[ng]},{provide:Aee,useFactory:Mke,deps:[ng]},{provide:n.tb,multi:!0,useExisting:Aee}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Dee(e)]}}}]),t}();function yke(t,r,e){return e.scrollOffset&&r.setOffset(e.scrollOffset),new zy(t,r,e)}function bke(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.useHash?new Ct.Do(t,r):new Ct.b0(t,r)}function Cke(t){return"guarded"}function Dee(t){return[{provide:n.deG,multi:!0,useValue:t},{provide:SH,multi:!0,useValue:t}]}function kke(t,r){t.errorHandler&&(r.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(r.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(r.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(r.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(r.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(r.canceledNavigationResolution=t.canceledNavigationResolution)}Vy.\u0275fac=function(r){return new(r||Vy)(n.LFG(xee,8),n.LFG(kr,8))},Vy.\u0275mod=n.oAB({type:Vy}),Vy.\u0275inj=n.cJS({});var ng=function(){function t(r){(0,j.Z)(this,t),this.injector=r,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new qn.xQ}return(0,V.Z)(t,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Ct.V_,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var o=null,a=new Promise(function(u){return o=u}),s=e.injector.get(kr),l=e.injector.get(Wy);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),o(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?(0,pr.of)(null):(e.initNavigation=!0,o(!0),e.resultOfPreactivationDone)},s.initialNavigation()):o(!0),a})}},{key:"bootstrapListener",value:function(e){var i=this.injector.get(Wy),o=this.injector.get(jy),a=this.injector.get(zy),s=this.injector.get(kr),l=this.injector.get(n.z2F);e===l.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),a.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();function Eke(t){return t.appInitializer.bind(t)}function Mke(t){return t.bootstrapListener.bind(t)}ng.\u0275fac=function(r){return new(r||ng)(n.LFG(n.zs3))},ng.\u0275prov=n.Yz7({token:ng,factory:ng.\u0275fac});var Aee=new n.OlP("Router Initializer");new n.GfV("13.3.11");var rZ=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Wo=m(2437),vr=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new qn.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,V.Z)(t,[{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 f=u.find(function(v){return"bundled"===v.location});if(f)f.host=e,f.port=i,f.protocol=location.protocol,o.update(f).then(function(v){s(v)},l);else{var h=new rZ;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(v){s(v)},l)}},l)})}}]),t}();vr.\u0275fac=function(r){return new(r||vr)(n.LFG(Wo.zw))},vr.\u0275prov=n.Yz7({token:vr,factory:vr.\u0275fac});var Bx=(0,V.Z)(function t(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,j.Z)(this,t),this.visible=r,this.error=e,this.clear=i}),ul=function(){function t(){(0,j.Z)(this,t),this.state=new go.X(new Bx(!1))}return(0,V.Z)(t,[{key:"setError",value:function(e){this.state.next(new Bx(!1,e.error))}},{key:"clear",value:function(){this.state.next(new Bx(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new Bx(!0))}},{key:"deactivate",value:function(){this.state.next(new Bx(!1))}}]),t}();function xke(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.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)),n.uIk("r",e._getCircleRadius())}}function Dke(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",4)),2&t){var e=n.oxw(),i=n.MAs(1);n.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),n.uIk("r",e._getCircleRadius())}}ul.\u0275fac=function(r){return new(r||ul)},ul.\u0275prov=n.Yz7({token:ul,factory:ul.\u0275fac});var Oke=(0,ln.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),Ike=new n.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Pke(){return{diameter:100}}});var ql=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;(0,j.Z)(this,e),(v=r.call(this,i))._document=a,v._diameter=100,v._value=0,v._resizeSubscription=Io.w.EMPTY,v.mode="determinate";var C=e._diameters;return v._spinnerAnimationLabel=v._getSpinnerAnimationLabel(),C.has(a.head)||C.set(a.head,new Set([100])),v._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(v.mode="indeterminate"),l&&(l.diameter&&(v.diameter=l.diameter),l.strokeWidth&&(v.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&f&&u&&h&&(v._resizeSubscription=f.change(150).subscribe(function(){"indeterminate"===v.mode&&h.run(function(){return u.markForCheck()})})),v}return(0,V.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,Un.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,Un.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,Un.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,Zi.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}(Oke);ql._diameters=new WeakMap,ql.\u0275fac=function(r){return new(r||ql)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(Ct.K0,8),n.Y36(Ta.Qb,8),n.Y36(Ike),n.Y36(n.sBO),n.Y36(ka.rL),n.Y36(n.R0b))},ql.\u0275cmp=n.Xpm({type:ql,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&&(n.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),n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1),n.YNc(2,xke,1,11,"circle",2),n.YNc(3,Dke,1,9,"circle",3),n.qZA()),2&r&&(n.Udp("width",e.diameter,"px")("height",e.diameter,"px"),n.Q6J("ngSwitch","indeterminate"===e.mode),n.uIk("viewBox",e._getViewBox()),n.xp6(2),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1))},directives:[Ct.RF,Ct.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:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});var $C=(0,V.Z)(function t(){(0,j.Z)(this,t)});$C.\u0275fac=function(r){return new(r||$C)},$C.\u0275mod=n.oAB({type:$C}),$C.\u0275inj=n.cJS({imports:[[ln.BQ,Ct.ez],ln.BQ]});var iZ,Bc=m(567);function Fx(t){var r;return(null===(r=function Zke(){if(void 0===iZ&&(iZ=null,"undefined"!=typeof window)){var t=window;void 0!==t.trustedTypes&&(iZ=t.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return iZ}())||void 0===r?void 0:r.createHTML(t))||t}function Oee(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Iee(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Pee(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var Yy=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.url=r,this.svgText=e,this.options=i}),lp=function(){function t(r,e,i,o){(0,j.Z)(this,t),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",this._document=i}return(0,V.Z)(t,[{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 Yy(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(n.q3G.HTML,o);if(!s)throw Pee(o);var l=Fx(s);return this._addSvgIconConfig(e,i,new Yy("",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 Yy(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(n.q3G.HTML,i);if(!a)throw Pee(i);var s=Fx(a);return this._addSvgIconSetConfig(e,new Yy("",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(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(n.q3G.RESOURCE_URL,e);if(!o)throw Iee(e);var a=this._cachedIconsByUrl.get(o);return a?(0,pr.of)(oZ(a)):this._loadSvgIconFromConfig(new Yy(e,null)).pipe((0,hs.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,mr.U)(function(s){return oZ(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Ree(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,YC._)(Oee(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,pr.of)(oZ(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,mr.U)(function(i){return oZ(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,pr.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,Vd.K)(function(u){var f=o._sanitizer.sanitize(n.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(f," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,pr.of)(null)}))});return(0,Bc.D)(s).pipe((0,mr.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Oee(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,hs.b)(function(o){return e.svgText=o}),(0,mr.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,pr.of)(null):this._fetchIcon(e).pipe((0,hs.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(Fx("<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(Fx("<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 f=0;f<e.childNodes.length;f++)e.childNodes[f].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[f].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 Nke(){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(n.q3G.RESOURCE_URL,a);if(!u)throw Iee(a);var f=this._inProgressUrlFetches.get(u);if(f)return f;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,mr.U)(function(v){return Fx(v)}),(0,I$.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,ch.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set(Ree(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 Fke(a)?new Yy(a.url,null,a.options):new Yy(a,null)}}}]),t}();lp.\u0275fac=function(r){return new(r||lp)(n.LFG(Hu.eN,8),n.LFG(An.H7),n.LFG(Ct.K0,8),n.LFG(n.qLn))},lp.\u0275prov=n.Yz7({token:lp,factory:lp.\u0275fac,providedIn:"root"});new n.FiY,new n.tp0,new n.FiY,Hu.eN,An.H7,n.qLn,new n.FiY,Ct.K0;function oZ(t){return t.cloneNode(!0)}function Ree(t,r){return t+":"+r}function Fke(t){return!(!t.url||!t.options)}var Uke=(0,ln.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()),Hke=new n.OlP("mat-icon-location",{providedIn:"root",factory:function jke(){var t=(0,n.f3M)(Ct.K0),r=t?t.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var Lee=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],zke=Lee.map(function(t){return"[".concat(t,"]")}).join(", "),Wke=/^url\(['"]?#(.*?)['"]?\)$/,Vn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.Z)(this,e),(u=r.call(this,i))._iconRegistry=o,u._location=s,u._errorHandler=l,u._inline=!1,u._currentIconFetch=Io.w.EMPTY,a||i.nativeElement.setAttribute("aria-hidden","true"),u}return(0,V.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,Un.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):this._iconRegistry.getDefaultFontSetClass();a!=this._previousFontSetClass&&(this._previousFontSetClass&&o.classList.remove(this._previousFontSetClass),a&&o.classList.add(a),this._previousFontSetClass=a),this.fontIcon!=this._previousFontIconClass&&(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(zke),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){Lee.forEach(function(v){var C=a[h],B=C.getAttribute(v),G=B?B.match(Wke):null;if(G){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:v,value:G[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,Ut.Z)(s,2),u=l[0],f=l[1];u&&(this._svgNamespace=u),f&&(this._svgName=f),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(f,u).pipe((0,to.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var v="Error retrieving icon ".concat(u,":").concat(f,"! ").concat(h.message);a._errorHandler.handleError(new Error(v))})}}}]),e}(Uke);Vn.\u0275fac=function(r){return new(r||Vn)(n.Y36(n.SBq),n.Y36(lp),n.$8M("aria-hidden"),n.Y36(Hke),n.Y36(n.qLn))},Vn.\u0275cmp=n.Xpm({type:Vn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(r,e){2&r&&(n.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),n.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:[n.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.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}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0});var rg=(0,V.Z)(function t(){(0,j.Z)(this,t)});rg.\u0275fac=function(r){return new(r||rg)},rg.\u0275mod=n.oAB({type:rg}),rg.\u0275inj=n.cJS({imports:[[ln.BQ],ln.BQ]});var Zee=["mat-button",""],Nee=["*"],Gke=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qke=(0,ln.pj)((0,ln.Id)((0,ln.Kr)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()))),Tn=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;(0,j.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,cn.Z)(Gke);try{for(l.s();!(u=l.n()).done;){var f=u.value;s._hasHostAttributes(f)&&s._getHostElement().classList.add(f)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,V.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}(qke);Tn.\u0275fac=function(r){return new(r||Tn)(n.Y36(n.SBq),n.Y36(Ai.tE),n.Y36(Ta.Qb,8))},Tn.\u0275cmp=n.Xpm({type:Tn,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&&n.Gf(ln.wG,5),2&r)&&(n.iGM(i=n.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(n.uIk("disabled",e.disabled||null),n.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.qOj],attrs:Zee,ngContentSelectors:Nee,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&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&r&&(n.xp6(2),n.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),n.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ln.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:transparent;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:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var ig=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.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,V.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,Ht.Z)((0,sn.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,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(Tn);ig.\u0275fac=function(r){return new(r||ig)(n.Y36(Ai.tE),n.Y36(n.SBq),n.Y36(Ta.Qb,8),n.Y36(n.R0b,8))},ig.\u0275cmp=n.Xpm({type:ig,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&&(n.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),n.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:[n.qOj],attrs:Zee,ngContentSelectors:Nee,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&&(n.F$t(),n.TgZ(0,"span",0),n.Hsn(1),n.qZA(),n._UZ(2,"span",1)(3,"span",2)),2&r&&(n.xp6(2),n.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),n.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ln.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:transparent;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:transparent;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-animation-noopable.mat-raised-button{transition:none;animation:none}.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:transparent;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-animation-noopable.mat-fab{transition:none;animation:none}.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:transparent;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-animation-noopable.mat-mini-fab{transition:none;animation:none}.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0});var Fh=(0,V.Z)(function t(){(0,j.Z)(this,t)});Fh.\u0275fac=function(r){return new(r||Fh)},Fh.\u0275mod=n.oAB({type:Fh}),Fh.\u0275inj=n.cJS({imports:[[ln.si,ln.BQ],ln.BQ]});var Kke=m(1307),Ux=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ux.\u0275fac=function(r){return new(r||Ux)},Ux.\u0275mod=n.oAB({type:Ux}),Ux.\u0275inj=n.cJS({});var ew,Bee=new Set,tw=function(){function t(r){(0,j.Z)(this,t),this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qke}return(0,V.Z)(t,[{key:"matchMedia",value:function(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Jke(t){if(!Bee.has(t))try{ew||((ew=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ew)),ew.sheet&&(ew.sheet.insertRule("@media ".concat(t," {body{ }}"),0),Bee.add(t))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}]),t}();function Qke(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}tw.\u0275fac=function(r){return new(r||tw)(n.LFG(Zi.t4))},tw.\u0275prov=n.Yz7({token:tw,factory:tw.\u0275fac,providedIn:"root"});var Uh=function(){function t(r,e){(0,j.Z)(this,t),this._mediaMatcher=r,this._zone=e,this._queries=new Map,this._destroySubject=new qn.xQ}return(0,V.Z)(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var i=this;return Fee((0,Un.Eq)(e)).some(function(a){return i._registerQuery(a).mql.matches})}},{key:"observe",value:function(e){var i=this,a=Fee((0,Un.Eq)(e)).map(function(l){return i._registerQuery(l).observable}),s=(0,uh.aj)(a);return(s=(0,A$.z)(s.pipe((0,to.q)(1)),s.pipe((0,Kke.T)(1),(0,A6.b)(0)))).pipe((0,mr.U)(function(l){var u={matches:!1,breakpoints:{}};return l.forEach(function(f){var h=f.matches,v=f.query;u.matches=u.matches||h,u.breakpoints[v]=h}),u}))}},{key:"_registerQuery",value:function(e){var i=this;if(this._queries.has(e))return this._queries.get(e);var o=this._mediaMatcher.matchMedia(e),s={observable:new fo.y(function(l){var u=function(h){return i._zone.run(function(){return l.next(h)})};return o.addListener(u),function(){o.removeListener(u)}}).pipe((0,ua.O)(o),(0,mr.U)(function(l){var u=l.matches;return{query:e,matches:u}}),(0,Yr.R)(this._destroySubject)),mql:o};return this._queries.set(e,s),s}}]),t}();function Fee(t){return t.map(function(r){return r.split(",")}).reduce(function(r,e){return r.concat(e)}).map(function(r){return r.trim()})}Uh.\u0275fac=function(r){return new(r||Uh)(n.LFG(tw),n.LFG(n.R0b))},Uh.\u0275prov=n.Yz7({token:Uh,factory:Uh.\u0275fac,providedIn:"root"});var og_Medium="(min-width: 960px) and (max-width: 1279.98px)",og_Large="(min-width: 1280px) and (max-width: 1919.98px)",og_XLarge="(min-width: 1920px)",og_Handset="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",og_HandsetPortrait="(max-width: 599.98px) and (orientation: portrait)",yo=m(7429),Xke=["tooltip"],Uee="tooltip-panel",Hee=(0,Zi.i$)({passive:!0});var jee=new n.OlP("mat-tooltip-scroll-strategy");var nTe={provide:jee,deps:[Ao.aV],useFactory:function tTe(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},rTe=new n.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function iTe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var aZ=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C){var B=this;(0,j.Z)(this,t),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=v,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 qn.xQ,this._scrollStrategy=f,this._document=C,v&&(v.position&&(this.position=v.position),v.touchGestures&&(this.touchGestures=v.touchGestures)),h.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){B._overlayRef&&B._updatePosition(B._overlayRef)})}return(0,V.Z)(t,[{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,Un.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Un.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Un.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,Yr.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,Ut.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,Hee)}),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 e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var o=this._createOverlay();this._detach(),this._portal=this._portal||new yo.C5(this._tooltipComponent,this._viewContainerRef);var a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{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,Yr.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(Uee),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Gr.hY&&!(0,Gr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),(null===(i=this._defaultOptions)||void 0===i?void 0: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,to.q)(1),(0,Yr.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(Uee,"-");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?void 0: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,Ut.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,Hee)})}},{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"}}}]),t}();aZ.\u0275fac=function(r){n.$Z()},aZ.\u0275dir=n.lG2({type:aZ,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var vi=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C,B,G){var q;return(0,j.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,f,h,v,C,B,G))._tooltipComponent=jx,q}return(0,V.Z)(e)}(aZ);vi.\u0275fac=function(r){return new(r||vi)(n.Y36(Ao.aV),n.Y36(n.SBq),n.Y36(ka.mF),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(Zi.t4),n.Y36(Ai.$s),n.Y36(Ai.tE),n.Y36(jee),n.Y36(Es.Is,8),n.Y36(rTe,8),n.Y36(Ct.K0))},vi.\u0275dir=n.lG2({type:vi,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[n.qOj]});var Hx=function(){function t(r,e){(0,j.Z)(this,t),this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qn.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,V.Z)(t,[{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(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),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.hide(this._mouseLeaveHideDelay)}},{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:"_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))}}]),t}();Hx.\u0275fac=function(r){return new(r||Hx)(n.Y36(n.sBO),n.Y36(Ta.Qb,8))},Hx.\u0275dir=n.lG2({type:Hx});var jx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(og_Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,V.Z)(e)}(Hx);jx.\u0275fac=function(r){return new(r||jx)(n.Y36(n.sBO),n.Y36(Uh),n.Y36(Ta.Qb,8))},jx.\u0275cmp=n.Xpm({type:jx,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Xke,7),2&r)&&(n.iGM(i=n.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&n.Udp("zoom",e.isVisible()?1:null)},features:[n.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(n.TgZ(0,"div",0,1),n.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),n.ALo(2,"async"),n._uU(3),n.qZA()),2&r)&&(n.ekj("mat-tooltip-handset",null==(i=n.lcZ(2,4,e._isHandset))?null:i.matches),n.Q6J("ngClass",e.tooltipClass),n.xp6(3),n.Oqu(e.message))},directives:[Ct.mk],pipes:[Ct.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}\n"],encapsulation:2,changeDetection:0});var Gy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Gy.\u0275fac=function(r){return new(r||Gy)},Gy.\u0275mod=n.oAB({type:Gy}),Gy.\u0275inj=n.cJS({providers:[nTe],imports:[[Ai.rt,Ct.ez,Ao.U8,ln.BQ],ln.BQ,ka.ZD]});(0,rn.X$)("state",[(0,rn.SB)("initial, void, hidden",(0,rn.oB)({opacity:0,transform:"scale(0)"})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)"})),(0,rn.eR)("* => visible",(0,rn.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.F4)([(0,rn.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,rn.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,rn.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,rn.eR)("* => hidden",(0,rn.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({opacity:0})))]);function oTe(t,r){1&t&&(n.TgZ(0,"div",4),n._UZ(1,"mat-spinner",5),n.qZA())}function aTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),n._uU(3,"error_outline"),n.qZA()(),n.TgZ(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"div")(7,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refresh()}),n.TgZ(8,"mat-icon"),n._uU(9,"refresh"),n.qZA()(),n.TgZ(10,"button",9)(11,"mat-icon"),n._uU(12,"home"),n.qZA()()()()}if(2&t){var i=n.oxw(2);n.xp6(5),n.hij("Error occurred: ",i.error.message,"")}}function sTe(t,r){if(1&t&&(n.TgZ(0,"div",1),n.YNc(1,oTe,2,0,"div",2),n.YNc(2,aTe,13,1,"div",3),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.visible&&!e.error),n.xp6(1),n.Q6J("ngIf",e.error)}}var qy=function(){function t(r,e){(0,j.Z)(this,t),this.progressService=r,this.router=e,this.visible=!1}return(0,V.Z)(t,[{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()}}]),t}();qy.\u0275fac=function(r){return new(r||qy)(n.Y36(ul),n.Y36(kr))},qy.\u0275cmp=n.Xpm({type:qy,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&&n.YNc(0,sTe,3,2,"div",0),2&r&&n.Q6J("ngIf",e.visible||e.error)},directives:[Ct.O5,ql,Vn,Tn,vi,ta],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom: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 zx=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,V.Z)(t,[{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)}}]),t}();zx.\u0275fac=function(r){return new(r||zx)(n.Y36(kr),n.Y36(vr),n.Y36(ul),n.Y36(Ct.K0))},zx.\u0275cmp=n.Xpm({type:zx,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&n._UZ(0,"app-progress")},directives:[qy],styles:[""]});function no(t,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{f(i.next(h))}catch(v){s(v)}}function u(h){try{f(i.throw(h))}catch(v){s(v)}}function f(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)}f((i=i.apply(t,r||[])).next())})}Object.create;Object.create;var up=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{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()))}}]),t}();function cTe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"button",3),n.NdJ("click",function(){return n.CHM(e),n.oxw().action()}),n._uU(2),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Oqu(i.data.action)}}function dTe(t,r){}up.\u0275fac=function(r){return new(r||up)},up.\u0275prov=n.Yz7({token:up,factory:up.\u0275fac});var AH=new n.OlP("MatSnackBarData"),lZ=(0,V.Z)(function t(){(0,j.Z)(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),fTe=Math.pow(2,31)-1,uZ=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this._overlayRef=e,this._afterDismissed=new qn.xQ,this._afterOpened=new qn.xQ,this._onAction=new qn.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,V.Z)(t,[{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,fTe))}},{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}}]),t}(),Wx=function(){function t(r,e){(0,j.Z)(this,t),this.snackBarRef=r,this.data=e}return(0,V.Z)(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();Wx.\u0275fac=function(r){return new(r||Wx)(n.Y36(uZ),n.Y36(AH))},Wx.\u0275cmp=n.Xpm({type:Wx,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&&(n.TgZ(0,"span",0),n._uU(1),n.qZA(),n.YNc(2,cTe,3,1,"div",1)),2&r&&(n.xp6(1),n.Oqu(e.data.message),n.xp6(1),n.Q6J("ngIf",e.hasAction))},directives:[Tn,Ct.O5],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}\n"],encapsulation:2,changeDetection:0});var pTe={snackBarState:(0,rn.X$)("state",[(0,rn.SB)("void, hidden",(0,rn.oB)({transform:"scale(0.8)",opacity:0})),(0,rn.SB)("visible",(0,rn.oB)({transform:"scale(1)",opacity:1})),(0,rn.eR)("* => visible",(0,rn.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,rn.eR)("* => void, * => hidden",(0,rn.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,rn.oB)({opacity:0})))])},Vx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u;return(0,j.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 qn.xQ,u._onExit=new qn.xQ,u._onEnter=new qn.xQ,u._animationState="void",u.attachDomPortal=function(f){return u._assertNotAttached(),u._applySnackBarClasses(),u._portalOutlet.attachDomPortal(f)},"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,V.Z)(e,[{key:"attachComponentPortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(o)}},{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,to.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_applySnackBarClasses",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)),"center"===this.snackBarConfig.horizontalPosition&&o.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&o.classList.add("mat-snack-bar-top")}},{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}(yo.en);Vx.\u0275fac=function(r){return new(r||Vx)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Zi.t4),n.Y36(lZ))},Vx.\u0275cmp=n.Xpm({type:Vx,selectors:[["snack-bar-container"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&n.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&n.d8E("@state",e._animationState)},features:[n.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n.YNc(1,dTe,0,0,"ng-template",1),n.qZA(),n._UZ(2,"div")),2&r&&(n.xp6(2),n.uIk("aria-live",e._live)("role",e._role))},directives:[yo.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%}\n"],encapsulation:2,data:{animation:[pTe.snackBarState]}});var Ky=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ky.\u0275fac=function(r){return new(r||Ky)},Ky.\u0275mod=n.oAB({type:Ky}),Ky.\u0275inj=n.cJS({imports:[[Ao.U8,yo.eL,Ct.ez,Fh,ln.BQ],ln.BQ]});var Yee=new n.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function hTe(){return new lZ}});var Jy=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,V.Z)(t,[{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=n.zs3.create({parent:o||this._injector,providers:[{provide:lZ,useValue:i}]}),s=new yo.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 lZ),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new uZ(l,s);if(e instanceof n.Rgc){var f=new yo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(f)}else{var h=this._createInjector(a,u),v=new yo.C5(e,void 0,h),C=l.attachComponentPortal(v);u.instance=C.instance}return this._breakpointObserver.observe(og_HandsetPortrait).pipe((0,Yr.R)(s.detachments())).subscribe(function(B){s.overlayElement.classList.toggle(o.handsetCssClass,B.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 Ao.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 n.zs3.create({parent:o||this._injector,providers:[{provide:uZ,useValue:i},{provide:AH,useValue:e.data}]})}}]),t}();Jy.\u0275fac=function(r){return new(r||Jy)(n.LFG(Ao.aV),n.LFG(Ai.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Jy,12),n.LFG(Yee))},Jy.\u0275prov=n.Yz7({token:Jy,factory:Jy.\u0275fac});var Fc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=Wx,f.snackBarContainerComponent=Vx,f.handsetCssClass="mat-snack-bar-handset",f}return(0,V.Z)(e)}(Jy);Fc.\u0275fac=function(r){return new(r||Fc)(n.LFG(Ao.aV),n.LFG(Ai.Kd),n.LFG(n.zs3),n.LFG(Uh),n.LFG(Fc,12),n.LFG(Yee))},Fc.\u0275prov=n.Yz7({token:Fc,factory:Fc.\u0275fac,providedIn:Ky});var $n=function(){function t(r,e){(0,j.Z)(this,t),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,V.Z)(t,[{key:"error",value:function(e){var i=this;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)})}}]),t}();$n.\u0275fac=function(r){return new(r||$n)(n.LFG(Fc),n.LFG(n.R0b))},$n.\u0275prov=n.Yz7({token:$n,factory:$n.\u0275fac});var mTe=["*",[["mat-card-footer"]]],gTe=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],yTe=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Qy=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qy.\u0275fac=function(r){return new(r||Qy)},Qy.\u0275dir=n.lG2({type:Qy,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var nw=(0,V.Z)(function t(){(0,j.Z)(this,t)});nw.\u0275fac=function(r){return new(r||nw)},nw.\u0275dir=n.lG2({type:nw,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var rw=(0,V.Z)(function t(){(0,j.Z)(this,t)});rw.\u0275fac=function(r){return new(r||rw)},rw.\u0275dir=n.lG2({type:rw,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var Yx=(0,V.Z)(function t(){(0,j.Z)(this,t),this.align="start"});Yx.\u0275fac=function(r){return new(r||Yx)},Yx.\u0275dir=n.lG2({type:Yx,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var cZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});cZ.\u0275fac=function(r){return new(r||cZ)},cZ.\u0275dir=n.lG2({type:cZ,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var dZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});dZ.\u0275fac=function(r){return new(r||dZ)},dZ.\u0275dir=n.lG2({type:dZ,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var fZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});fZ.\u0275fac=function(r){return new(r||fZ)},fZ.\u0275dir=n.lG2({type:fZ,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var pZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});pZ.\u0275fac=function(r){return new(r||pZ)},pZ.\u0275dir=n.lG2({type:pZ,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var hZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});hZ.\u0275fac=function(r){return new(r||hZ)},hZ.\u0275dir=n.lG2({type:hZ,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var mZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});mZ.\u0275fac=function(r){return new(r||mZ)},mZ.\u0275dir=n.lG2({type:mZ,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var _Z=(0,V.Z)(function t(){(0,j.Z)(this,t)});_Z.\u0275fac=function(r){return new(r||_Z)},_Z.\u0275dir=n.lG2({type:_Z,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var Si=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._animationMode=r});Si.\u0275fac=function(r){return new(r||Si)(n.Y36(Ta.Qb,8))},Si.\u0275cmp=n.Xpm({type:Si,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(mTe),n.Hsn(0),n.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-animation-noopable.mat-card{transition:none;animation:none}.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}\n"],encapsulation:2,changeDetection:0});var gZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});gZ.\u0275fac=function(r){return new(r||gZ)},gZ.\u0275cmp=n.Xpm({type:gZ,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&&(n.F$t(gTe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var vZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});vZ.\u0275fac=function(r){return new(r||vZ)},vZ.\u0275cmp=n.Xpm({type:vZ,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&&(n.F$t(yTe),n.TgZ(0,"div"),n.Hsn(1),n.qZA(),n.Hsn(2,1),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var iw=(0,V.Z)(function t(){(0,j.Z)(this,t)});iw.\u0275fac=function(r){return new(r||iw)},iw.\u0275mod=n.oAB({type:iw}),iw.\u0275inj=n.cJS({imports:[[ln.BQ],ln.BQ]});var Fn=m(7322),CTe=m(7568),Gee=(0,Zi.i$)({passive:!0}),Xy=function(){function t(r,e){(0,j.Z)(this,t),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,V.Z)(t,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return By.E;var o=(0,Un.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new qn.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,Gee),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,Gee)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Un.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)})}}]),t}();Xy.\u0275fac=function(r){return new(r||Xy)(n.LFG(Zi.t4),n.LFG(n.R0b))},Xy.\u0275prov=n.Yz7({token:Xy,factory:Xy.\u0275fac,providedIn:"root"});var yZ=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();yZ.\u0275fac=function(r){return new(r||yZ)(n.Y36(n.SBq),n.Y36(Xy))},yZ.\u0275dir=n.lG2({type:yZ,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var bZ=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new qn.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,V.Z)(t,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Un.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Un.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Un.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,Pf.R)(i,"resize").pipe((0,CTe.e)(16),(0,Yr.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)}}]),t}();bZ.\u0275fac=function(r){return new(r||bZ)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(n.R0b),n.Y36(Ct.K0,8))},bZ.\u0275dir=n.lG2({type:bZ,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&n.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var $y=(0,V.Z)(function t(){(0,j.Z)(this,t)});$y.\u0275fac=function(r){return new(r||$y)},$y.\u0275mod=n.oAB({type:$y}),$y.\u0275inj=n.cJS({});var wTe=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),kTe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],TTe=0,ETe=(0,ln.FD)(function(){return(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o})}()),sr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h,v,C){var B;(0,j.Z)(this,e),(B=r.call(this,u,s,l,a))._elementRef=i,B._platform=o,B._autofillMonitor=h,B._formField=C,B._uid="mat-input-".concat(TTe++),B.focused=!1,B.stateChanges=new qn.xQ,B.controlType="mat-input",B.autofilled=!1,B._disabled=!1,B._type="text",B._readonly=!1,B._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(ae){return(0,Zi.qK)().has(ae)}),B._iOSKeyupListener=function(ae){var he=ae.target;!he.value&&0===he.selectionStart&&0===he.selectionEnd&&(he.setSelectionRange(1,1),he.setSelectionRange(0,0))};var G=B._elementRef.nativeElement,q=G.nodeName.toLowerCase();return B._inputValueAccessor=f||G,B._previousNativeValue=B.value,B.id=B.id,o.IOS&&v.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",B._iOSKeyupListener)}),B._isServer=!B._platform.isBrowser,B._isNativeSelect="select"===q,B._isTextarea="textarea"===q,B._isInFormField=!!C,B._isNativeSelect&&(B.controlType=G.multiple?"mat-native-select-multiple":"mat-native-select"),B}return(0,V.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Un.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(ne.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Un.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Zi.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,Un.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,s=(null===(a=null===(o=this._formField)||void 0===o?void 0:o._hideControlPlaceholder)||void 0===a?void 0:a.call(o))?null:this.placeholder;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(){kTe.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}(ETe);sr.\u0275fac=function(r){return new(r||sr)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(ne.a5,10),n.Y36(ne.F,8),n.Y36(ne.sg,8),n.Y36(ln.rD),n.Y36(wTe,10),n.Y36(Xy),n.Y36(n.R0b),n.Y36(Fn.G_,8))},sr.\u0275dir=n.lG2({type:sr,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&&n.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(n.Ikx("disabled",e.disabled)("required",e.required),n.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),n.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:[n._Bn([{provide:Fn.Eo,useExisting:sr}]),n.qOj,n.TTD]});var ow=(0,V.Z)(function t(){(0,j.Z)(this,t)});ow.\u0275fac=function(r){return new(r||ow)},ow.\u0275mod=n.oAB({type:ow}),ow.\u0275inj=n.cJS({providers:[ln.rD],imports:[[$y,Fn.lN,ln.BQ],$y,Fn.lN]});var Oi=m(4107);function e0(){e0=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function MTe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function STe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}function xTe(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}var Gx=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),protocol:new ne.NI("http:")})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){return no(this,void 0,void 0,e0().mark(function e(){var i=this;return e0().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return no(i,void 0,void 0,e0().mark(function l(){return e0().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s&&this.getControllers();case 1:case"end":return f.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return no(this,void 0,void 0,e0().mark(function e(){var o,a,i=this;return e0().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 rZ;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")}}]),t}();Gx.\u0275fac=function(r){return new(r||Gx)(n.Y36(vr),n.Y36(up),n.Y36(xr),n.Y36(kr),n.Y36($n))},Gx.\u0275cmp=n.Xpm({type:Gx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Add new controller"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),n._UZ(9,"input",7),n.YNc(10,MTe,2,0,"mat-error",8),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",9),n.YNc(13,STe,2,2,"mat-option",10),n.qZA()(),n.TgZ(14,"mat-form-field")(15,"mat-select",11),n.YNc(16,xTe,2,2,"mat-option",10),n.qZA()()()(),n.TgZ(17,"div",12)(18,"button",13),n.NdJ("click",function(){return e.createController()}),n._uU(19,"Add controller"),n.qZA()()()()),2&r&&(n.Q6J("hidden",!e.controllerOptionsVisibility),n.xp6(7),n.Q6J("formGroup",e.controllerForm),n.xp6(3),n.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),n.xp6(3),n.Q6J("ngForOf",e.locations),n.xp6(3),n.Q6J("ngForOf",e.protocols))},directives:[Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Oi.gD,Ct.sg,ln.ey,Tn],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var DTe=0,OH=new n.OlP("CdkAccordion"),aw=function(){function t(){(0,j.Z)(this,t),this._stateChanges=new qn.xQ,this._openCloseAllActions=new qn.xQ,this.id="cdk-accordion-".concat(DTe++),this._multi=!1}return(0,V.Z)(t,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Un.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()}}]),t}();aw.\u0275fac=function(r){return new(r||aw)},aw.\u0275dir=n.lG2({type:aw,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[n._Bn([{provide:OH,useExisting:aw}]),n.TTD]});var ATe=0,qx=function(){function t(r,e,i){var o=this;(0,j.Z)(this,t),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Io.w.EMPTY,this.closed=new n.vpe,this.opened=new n.vpe,this.destroyed=new n.vpe,this.expandedChange=new n.vpe,this.id="cdk-accordion-child-".concat(ATe++),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,V.Z)(t,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,Un.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,Un.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)})}}]),t}();qx.\u0275fac=function(r){return new(r||qx)(n.Y36(OH,12),n.Y36(n.sBO),n.Y36(po.A8))},qx.\u0275dir=n.lG2({type:qx,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n._Bn([{provide:OH,useValue:void 0}])]});var sw=(0,V.Z)(function t(){(0,j.Z)(this,t)});sw.\u0275fac=function(r){return new(r||sw)},sw.\u0275mod=n.oAB({type:sw}),sw.\u0275inj=n.cJS({});var OTe=["body"];function ITe(t,r){}var PTe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function LTe(t,r){if(1&t&&n._UZ(0,"span",2),2&t){var e=n.oxw();n.Q6J("@indicatorRotate",e._getExpandedState())}}var ZTe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],IH=new n.OlP("MAT_ACCORDION"),qee="225ms cubic-bezier(0.4,0.0,0.2,1)",Kee={indicatorRotate:(0,rn.X$)("indicatorRotate",[(0,rn.SB)("collapsed, void",(0,rn.oB)({transform:"rotate(0deg)"})),(0,rn.SB)("expanded",(0,rn.oB)({transform:"rotate(180deg)"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(qee))]),bodyExpansion:(0,rn.X$)("bodyExpansion",[(0,rn.SB)("collapsed, void",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed, void => collapsed",(0,rn.jt)(qee))])},Kx=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._template=r});Kx.\u0275fac=function(r){return new(r||Kx)(n.Y36(n.Rgc))},Kx.\u0275dir=n.lG2({type:Kx,selectors:[["ng-template","matExpansionPanelContent",""]]});var BTe=0,Jee=new n.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Kl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new n.vpe,h.afterCollapse=new n.vpe,h._inputChanges=new qn.xQ,h._headerId="mat-expansion-panel-header-".concat(BTe++),h._bodyAnimationDone=new qn.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,OM.x)(function(v,C){return v.fromState===C.fromState&&v.toState===C.toState})).subscribe(function(v){"void"!==v.fromState&&("expanded"===v.toState?h.afterExpand.emit():"collapsed"===v.toState&&h.afterCollapse.emit())}),f&&(h.hideToggle=f.hideToggle),h}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Un.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.opened.pipe((0,ua.O)(null),(0,Ei.h)(function(){return o.expanded&&!o._portal}),(0,to.q)(1)).subscribe(function(){o._portal=new yo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,sn.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}(qx);Kl.\u0275fac=function(r){return new(r||Kl)(n.Y36(IH,12),n.Y36(n.sBO),n.Y36(po.A8),n.Y36(n.s_b),n.Y36(Ct.K0),n.Y36(Ta.Qb,8),n.Y36(Jee,8))},Kl.\u0275cmp=n.Xpm({type:Kl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Kx,5),2&r)&&(n.iGM(o=n.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&n.Gf(OTe,5),2&r)&&(n.iGM(i=n.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&n.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:[n._Bn([{provide:IH,useValue:void 0}]),n.qOj,n.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&&(n.F$t(PTe),n.Hsn(0),n.TgZ(1,"div",0,1),n.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),n.TgZ(3,"div",2),n.Hsn(4,1),n.YNc(5,ITe,0,0,"ng-template",3),n.qZA(),n.Hsn(6,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),n.uIk("aria-labelledby",e._headerId),n.xp6(4),n.Q6J("cdkPortalOutlet",e._portal))},directives:[yo.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}\n'],encapsulation:2,data:{animation:[Kee.bodyExpansion]},changeDetection:0});var CZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});CZ.\u0275fac=function(r){return new(r||CZ)},CZ.\u0275dir=n.lG2({type:CZ,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var FTe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Jl=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;(0,j.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=Io.w.EMPTY;var v=i.accordion?i.accordion._stateChanges.pipe((0,Ei.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):By.E;return h.tabIndex=parseInt(f||"")||0,h._parentChangeSubscription=(0,To.T)(i.opened,i.closed,v,i._inputChanges.pipe((0,Ei.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,Ei.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,V.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 Gr.L_:case Gr.K5:(0,Gr.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,ln.sb)(FTe));Jl.\u0275fac=function(r){return new(r||Jl)(n.Y36(Kl,1),n.Y36(n.SBq),n.Y36(Ai.tE),n.Y36(n.sBO),n.Y36(Jee,8),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Jl.\u0275cmp=n.Xpm({type:Jl,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(n.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Udp("height",e._getHeaderHeight()),n.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:[n.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(n.F$t(ZTe),n.TgZ(0,"span",0),n.Hsn(1),n.Hsn(2,1),n.Hsn(3,2),n.qZA(),n.YNc(4,LTe,1,1,"span",1)),2&r&&(n.xp6(4),n.Q6J("ngIf",e._showToggle()))},directives:[Ct.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-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;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 .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Kee.indicatorRotate]},changeDetection:0});var Jx=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jx.\u0275fac=function(r){return new(r||Jx)},Jx.\u0275dir=n.lG2({type:Jx,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var hu=(0,V.Z)(function t(){(0,j.Z)(this,t)});hu.\u0275fac=function(r){return new(r||hu)},hu.\u0275dir=n.lG2({type:hu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var El=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new n.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,V.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Un.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,ua.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Ai.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,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(aw);El.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(El)))(e||El)}}(),El.\u0275dir=n.lG2({type:El,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Jl,5),2&r)&&(n.iGM(o=n.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[n._Bn([{provide:IH,useExisting:El}]),n.qOj]});var lw=(0,V.Z)(function t(){(0,j.Z)(this,t)});lw.\u0275fac=function(r){return new(r||lw)},lw.\u0275mod=n.oAB({type:lw}),lw.\u0275inj=n.cJS({imports:[[Ct.ez,ln.BQ,sw,yo.eL]]});var t0=m(4834),PH=["*"],Qee='.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n',HTe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],zTe=["text"];function WTe(t,r){if(1&t&&n._UZ(0,"mat-pseudo-checkbox",5),2&t){var e=n.oxw();n.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var VTe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Xee=(0,ln.Id)((0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),GTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),$ee=new n.OlP("MatList"),ete=new n.OlP("MatNavList"),Vs=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new qn.xQ,i}return(0,V.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(Xee);Vs.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Vs)))(e||Vs)}}(),Vs.\u0275cmp=n.Xpm({type:Vs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[n._Bn([{provide:ete,useExisting:Vs}]),n.qOj,n.TTD],ngContentSelectors:PH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.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:transparent;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:transparent}.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:transparent;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:transparent;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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0});var Hh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new qn.xQ,"action-list"===o._getListType()&&i.nativeElement.classList.add("mat-action-list"),o}return(0,V.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}(Xee);Hh.\u0275fac=function(r){return new(r||Hh)(n.Y36(n.SBq))},Hh.\u0275cmp=n.Xpm({type:Hh,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[n._Bn([{provide:$ee,useExisting:Hh}]),n.qOj,n.TTD],ngContentSelectors:PH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[Qee],encapsulation:2,changeDetection:0});var uw=(0,V.Z)(function t(){(0,j.Z)(this,t)});uw.\u0275fac=function(r){return new(r||uw)},uw.\u0275dir=n.lG2({type:uw,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var cw=(0,V.Z)(function t(){(0,j.Z)(this,t)});cw.\u0275fac=function(r){return new(r||cw)},cw.\u0275dir=n.lG2({type:cw,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var wZ=(0,V.Z)(function t(){(0,j.Z)(this,t)});wZ.\u0275fac=function(r){return new(r||wZ)},wZ.\u0275dir=n.lG2({type:wZ,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var os=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;(0,j.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new qn.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,Yr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Un.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,ln.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}(GTe);os.\u0275fac=function(r){return new(r||os)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(ete,8),n.Y36($ee,8))},os.\u0275cmp=n.Xpm({type:os,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,ln.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(r,e){2&r&&n.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[n.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&&(n.F$t(HTe),n.TgZ(0,"span",0),n._UZ(1,"span",1),n.Hsn(2),n.TgZ(3,"span",2),n.Hsn(4,1),n.qZA(),n.Hsn(5,2),n.qZA()),2&r&&(n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ln.wG],encapsulation:2,changeDetection:0});var qTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),KTe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),JTe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return dw}),multi:!0},QTe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.source=r,this.option=e,this.options=i}),Qx=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.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 n.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,V.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,Un.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,Un.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,ln.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}(KTe);Qx.\u0275fac=function(r){return new(r||Qx)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36((0,n.Gpc)(function(){return dw})))},Qx.\u0275cmp=n.Xpm({type:Qx,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,uw,5),n.Suo(i,cw,5),n.Suo(i,ln.X2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._avatar=o.first),n.iGM(o=n.CRH())&&(e._icon=o.first),n.iGM(o=n.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(zTe,5),2&r)&&(n.iGM(i=n.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&&n.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(n.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),n.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:[n.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&&(n.F$t(VTe),n.TgZ(0,"div",0),n._UZ(1,"div",1),n.YNc(2,WTe,1,2,"mat-pseudo-checkbox",2),n.TgZ(3,"div",3,4),n.Hsn(5),n.qZA(),n.Hsn(6,1),n.qZA()),2&r&&(n.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),n.xp6(1),n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),n.xp6(1),n.Q6J("ngIf",e.selectionList.multiple))},directives:[ln.nP,ln.wG,Ct.O5],encapsulation:2,changeDetection:0});var dw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this))._element=i,l._changeDetector=a,l._focusMonitor=s,l._multiple=!0,l._contentInitialized=!1,l.selectionChange=new n.vpe,l.tabIndex=0,l.color="accent",l.compareWith=function(u,f){return u===f},l._disabled=!1,l.selectedOptions=new po.Ov(l._multiple),l._tabIndex=-1,l._onChange=function(u){},l._destroyed=new qn.xQ,l._onTouched=function(){},l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Un.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Un.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new po.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var a,o=this;this._contentInitialized=!0,this._keyManager=new Ai.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,ua.O)(null),(0,Yr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){if(s.added){var u,l=(0,cn.Z)(s.added);try{for(l.s();!(u=l.n()).done;){u.value.selected=!0}}catch(B){l.e(B)}finally{l.f()}}if(s.removed){var v,h=(0,cn.Z)(s.removed);try{for(h.s();!(v=h.n()).done;){v.value.selected=!1}}catch(B){h.e(B)}finally{h.f()}}}),null===(a=this._focusMonitor)||void 0===a||a.monitor(this._element).pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){var l;if("keyboard"===s||"program"===s){for(var u=0,f=0;f<o.options.length;f++)if(null===(l=o.options.get(f))||void 0===l?void 0:l.selected){u=f;break}o._keyManager.setActiveItem(u)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){var o;null===(o=this._focusMonitor)||void 0===o||o.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,Gr.Vb)(o);switch(a){case Gr.L_:case Gr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Gr.A&&this.multiple&&(0,Gr.Vb)(o,"ctrlKey")&&!s.isTyping()){var f=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(f,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Gr.LH||a===Gr.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 QTe(this,o[0],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}(qTe);dw.\u0275fac=function(r){return new(r||dw)(n.Y36(n.SBq),n.$8M("tabindex"),n.Y36(n.sBO),n.Y36(Ai.tE))},dw.\u0275cmp=n.Xpm({type:dw,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Qx,5),2&r)&&(n.iGM(o=n.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&n.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&n.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[n._Bn([JTe]),n.qOj,n.TTD],ngContentSelectors:PH,decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[Qee],encapsulation:2,changeDetection:0});var fw=(0,V.Z)(function t(){(0,j.Z)(this,t)});fw.\u0275fac=function(r){return new(r||fw)},fw.\u0275mod=n.oAB({type:fw}),fw.\u0275inj=n.cJS({imports:[[ln.uc,ln.si,ln.BQ,ln.us,Ct.ez],ln.uc,ln.BQ,ln.us,t0.t]});var Xx=function(){function t(r){(0,j.Z)(this,t),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,V.Z)(t,[{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/"}}]),t}();Xx.\u0275fac=function(r){return new(r||Xx)(n.Y36(Hu.eN))},Xx.\u0275cmp=n.Xpm({type:Xx,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Help"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),n._uU(10," Useful shortcuts "),n.qZA()(),n.TgZ(11,"mat-list")(12,"mat-list-item"),n._uU(13," ctrl + + to zoom in "),n.qZA(),n.TgZ(14,"mat-list-item"),n._uU(15," ctrl + - to zoom out "),n.qZA(),n.TgZ(16,"mat-list-item"),n._uU(17," ctrl + 0 to reset zoom "),n.qZA(),n.TgZ(18,"mat-list-item"),n._uU(19," ctrl + h to hide toolbar "),n.qZA(),n.TgZ(20,"mat-list-item"),n._uU(21," ctrl + a to select all items on map "),n.qZA(),n.TgZ(22,"mat-list-item"),n._uU(23," ctrl + shift + a to deselect all items on map "),n.qZA(),n.TgZ(24,"mat-list-item"),n._uU(25," ctrl + shift + s to go to preferences "),n.qZA()()(),n.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),n._uU(29," Third party components "),n.qZA()(),n.TgZ(30,"a",4),n._UZ(31,"div",5),n.qZA()(),n.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),n._uU(35," Release notes "),n.qZA()(),n._UZ(36,"div",5),n.qZA()()(),n.TgZ(37,"button",6),n.NdJ("click",function(){return e.goToDocumentation()}),n._uU(38,"Go to documentation"),n.qZA()()()),2&r&&(n.xp6(31),n.Q6J("innerHTML",e.thirdpartylicenses,n.oJD),n.xp6(5),n.Q6J("innerHTML",e.releasenotes,n.oJD))},directives:[El,Kl,Jl,hu,Hh,os,Tn],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 as=m(4766),n0=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{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}}]),t}();n0.\u0275fac=function(r){return new(r||n0)(n.LFG(sl))},n0.\u0275prov=n.Yz7({token:n0,factory:n0.\u0275fac});var r0=function(){function t(r){(0,j.Z)(this,t),this.platformService=r}return(0,V.Z)(t,[{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 as.N.solarputty_download_url&&(i.resource=as.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),t}();r0.\u0275fac=function(r){return new(r||r0)(n.LFG(n0))},r0.\u0275prov=n.Yz7({token:r0,factory:r0.\u0275fac});var i0=function(){function t(r,e){(0,j.Z)(this,t),this.electronService=r,this.externalSoftwareDefinition=e}return(0,V.Z)(t,[{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})}}]),t}();i0.\u0275fac=function(r){return new(r||i0)(n.LFG(sl),n.LFG(r0))},i0.\u0275prov=n.Yz7({token:i0,factory:i0.\u0275fac});var XTe=[[["caption"]],[["colgroup"],["col"]]];function eEe(t,r){if(1&t&&(n.TgZ(0,"th",3),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.Udp("text-align",e.justify),n.xp6(1),n.hij(" ",e.headerText," ")}}function tEe(t,r){if(1&t&&(n.TgZ(0,"td",4),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.Udp("text-align",i.justify),n.xp6(1),n.hij(" ",i.dataAccessor(e,i.name)," ")}}var $x=(0,V.Z)(function t(){(0,j.Z)(this,t)});$x.\u0275fac=function(r){return new(r||$x)},$x.\u0275dir=n.lG2({type:$x,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n._Bn([{provide:po.k,useClass:po.eX}])]});var ca=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,V.Z)(e)}(Sc);ca.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(ca)))(e||ca)}}(),ca.\u0275cmp=n.Xpm({type:ca,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&n.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[n._Bn([{provide:po.k,useClass:po.yy},{provide:Sc,useExisting:ca},{provide:k_,useExisting:ca},{provide:P1,useClass:xf},{provide:Af,useValue:null}]),n.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(n.F$t(XTe),n.Hsn(0),n.Hsn(1,1),n.GkF(2,0)(3,1)(4,2)(5,3))},directives:[Sd,oh,Of,xd],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}\n"],encapsulation:2});var da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(fu);da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(da)))(e||da)}}(),da.\u0275dir=n.lG2({type:da,selectors:[["","matCellDef",""]],features:[n._Bn([{provide:fu,useExisting:da}]),n.qOj]});var fa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Mc);fa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(fa)))(e||fa)}}(),fa.\u0275dir=n.lG2({type:fa,selectors:[["","matHeaderCellDef",""]],features:[n._Bn([{provide:Mc,useExisting:fa}]),n.qOj]});var o0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(kd);o0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(o0)))(e||o0)}}(),o0.\u0275dir=n.lG2({type:o0,selectors:[["","matFooterCellDef",""]],features:[n._Bn([{provide:kd,useExisting:o0}]),n.qOj]});var aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(wl);aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(aa)))(e||aa)}}(),aa.\u0275dir=n.lG2({type:aa,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n._Bn([{provide:wl,useExisting:aa},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:aa}]),n.qOj]});var Sa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(eh);Sa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Sa)))(e||Sa)}}(),Sa.\u0275dir=n.lG2({type:Sa,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.qOj]});var pw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(T_);pw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(pw)))(e||pw)}}(),pw.\u0275dir=n.lG2({type:pw,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.qOj]});var xa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(th);xa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xa)))(e||xa)}}(),xa.\u0275dir=n.lG2({type:xa,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.qOj]});var Da=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Td);Da.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Da)))(e||Da)}}(),Da.\u0275dir=n.lG2({type:Da,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n._Bn([{provide:Td,useExisting:Da}]),n.qOj]});var a0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Fu);a0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(a0)))(e||a0)}}(),a0.\u0275dir=n.lG2({type:a0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n._Bn([{provide:Fu,useExisting:a0}]),n.qOj]});var Aa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Ed);Aa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Aa)))(e||Aa)}}(),Aa.\u0275dir=n.lG2({type:Aa,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n._Bn([{provide:Ed,useExisting:Aa}]),n.qOj]});var Oa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(rh);Oa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Oa)))(e||Oa)}}(),Oa.\u0275cmp=n.Xpm({type:Oa,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n._Bn([{provide:rh,useExisting:Oa}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var s0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ih);s0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(s0)))(e||s0)}}(),s0.\u0275cmp=n.Xpm({type:s0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n._Bn([{provide:ih,useExisting:s0}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var Ia=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Md);Ia.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ia)))(e||Ia)}}(),Ia.\u0275cmp=n.Xpm({type:Ia,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n._Bn([{provide:Md,useExisting:Ia}]),n.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[Us],encapsulation:2});var l0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,V.Z)(e)}(Df);l0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(l0)))(e||l0)}}(),l0.\u0275dir=n.lG2({type:l0,selectors:[["ng-template","matNoDataRow",""]],features:[n._Bn([{provide:Df,useExisting:l0}]),n.qOj]});var hw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(If);hw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(hw)))(e||hw)}}(),hw.\u0275cmp=n.Xpm({type:hw,selectors:[["mat-text-column"]],features:[n.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&&(n.ynx(0,0),n.YNc(1,eEe,2,3,"th",1),n.YNc(2,tEe,2,3,"td",2),n.BQk())},directives:[aa,fa,Sa,da,xa],encapsulation:2});var mw=(0,V.Z)(function t(){(0,j.Z)(this,t)});mw.\u0275fac=function(r){return new(r||mw)},mw.\u0275mod=n.oAB({type:mw}),mw.\u0275inj=n.cJS({imports:[[Uu,ln.BQ],ln.BQ]});var nEe=9007199254740991,rEe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,j.Z)(this,e),(i=r.call(this))._renderData=new go.X([]),i._filter=new go.X(""),i._internalPageChanges=new qn.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Un.t6)(l)){var u=Number(l);return u<nEe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(f,h){var v=i.sortingDataAccessor(f,l),C=i.sortingDataAccessor(h,l),B=typeof v,G=typeof C;B!==G&&("number"===B&&(v+=""),"number"===G&&(C+=""));var q=0;return null!=v&&null!=C?v>C?q=1:v<C&&(q=-1):null!=v?q=1:null!=C&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(f,h){return f+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new go.X(o),i._updateChangeSubscription(),i}return(0,V.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,To.T)(this._sort.sortChange,this._sort.initialized):(0,pr.of)(null),l=this._paginator?(0,To.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,pr.of)(null),u=this._data,f=(0,uh.aj)([u,this._filter]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._filterData(G)})),h=(0,uh.aj)([f,s]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._orderData(G)})),v=(0,uh.aj)([h,l]).pipe((0,mr.U)(function(C){var G=(0,Ut.Z)(C,1)[0];return o._pageData(G)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=v.subscribe(function(C){return o._renderData.next(C)})}},{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}(po.o2),_w=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(rEe),qu=m(4068),iEe=function(r,e){return{hidden:r,lightTheme:e}},oEe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,gw=function(){function t(r,e,i){(0,j.Z)(this,t),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,V.Z)(t,[{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?void 0:a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=oEe.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}))}}]),t}();function aEe(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.buttonText)}}gw.\u0275fac=function(r){return new(r||gw)(n.Y36(Hu.eN),n.Y36(qu.f),n.Y36(Ct.Ye))},gw.\u0275cmp=n.Xpm({type:gw,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),n._uU(4),n.qZA()(),n.TgZ(5,"button")(6,"a",3),n._uU(7),n.qZA()()(),n.TgZ(8,"mat-icon",4),n.NdJ("click",function(){return e.hide()}),n._uU(9,"close"),n.qZA()()),2&r&&(n.Q6J("ngClass",n.WLB(5,iEe,!e.isVisible,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("href",e.adUrl,n.LSH),n.xp6(1),n.Oqu(e.adBody),n.xp6(2),n.Q6J("href",e.adUrl,n.LSH),n.xp6(1),n.Oqu(e.buttonLabel))},directives:[Ct.mk,Vn],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 e2=function(){function t(r){(0,j.Z)(this,t),this.electronService=r,this.installedChanged=new n.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,V.Z)(t,[{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"}}]),t}();function sEe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}function lEe(t,r){if(1&t&&(n.ynx(0),n._uU(1),n.BQk()),2&t){var e=n.oxw().$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function uEe(t,r){1&t&&(n.ynx(0),n._UZ(1,"app-adbutler",14),n.BQk())}function cEe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,lEe,2,1,"ng-container",13),n.YNc(2,uEe,2,0,"ng-container",13),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("ngIf","adbutler"!==e.type),n.xp6(1),n.Q6J("ngIf","adbutler"===e.type)}}function dEe(t,r){1&t&&n._UZ(0,"mat-header-cell")}function fEe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-install-software",17),n.NdJ("installedChanged",function(a){return n.CHM(e),n.oxw(2).onInstalled(a)}),n.qZA()}if(2&t){var i=n.oxw().$implicit;n.Q6J("software",i)}}function pEe(t,r){if(1&t&&(n.TgZ(0,"mat-cell",15),n.YNc(1,fEe,1,1,"app-install-software",16),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("ngIf","adbutler"!==e.type)}}function hEe(t,r){1&t&&n._UZ(0,"mat-header-row")}function mEe(t,r){1&t&&n._UZ(0,"mat-row")}e2.\u0275fac=function(r){return new(r||e2)(n.Y36(sl))},e2.\u0275cmp=n.Xpm({type:e2,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[n.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.install()}),n.YNc(1,aEe,2,1,"ng-container",1),n.qZA()),2&r&&(n.Q6J("disabled",e.disabled),n.xp6(1),n.Q6J("ngIf",e.readyToInstall))},directives:[Tn,Ct.O5],styles:[""]});var t2=function(){function t(r,e){(0,j.Z)(this,t),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.dataSource=new _Ee(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),t}();t2.\u0275fac=function(r){return new(r||t2)(n.Y36(i0),n.Y36(n.sBO))},t2.\u0275cmp=n.Xpm({type:t2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Installed software"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),n.ynx(8,6),n.YNc(9,sEe,2,0,"mat-header-cell",7),n.YNc(10,cEe,3,2,"mat-cell",8),n.BQk(),n.ynx(11,9),n.YNc(12,dEe,1,0,"mat-header-cell",7),n.YNc(13,pEe,2,1,"mat-cell",10),n.BQk(),n.YNc(14,hEe,1,0,"mat-header-row",11),n.YNc(15,mEe,1,0,"mat-row",12),n.qZA()()()()),2&r&&(n.xp6(6),n.Q6J("dataSource",e.dataSource),n.xp6(8),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ca,aa,fa,Sa,da,xa,Ct.O5,gw,e2,Da,Oa,Aa,Ia],styles:[""]});var _Ee=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new go.X([]),o}return(0,V.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}(po.o2);m(5561);function RH(){RH=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var jh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.controller_id=""}return(0,V.Z)(t,[{key:"login",value:function(e,i,o){var a=(new Hu.LE).set("username",i).set("password",o),s={headers:(new Hu.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return no(this,void 0,void 0,RH().mark(function o(){return RH().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/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)}))}}]),t}();jh.\u0275fac=function(r){return new(r||jh)(n.LFG(Wo.zw))},jh.\u0275prov=n.Yz7({token:jh,factory:jh.\u0275fac});var zh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),t}();zh.\u0275fac=function(r){return new(r||zh)(n.LFG(Wo.zw))},zh.\u0275prov=n.Yz7({token:zh,factory:zh.\u0275fac});var kZ=m(7144),gEe=["input"],vEe=function(r){return{enterDuration:r}},bEe=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:tte});function tte(){return{color:"accent",clickAction:"check-indeterminate"}}var CEe=0,nte={color:"accent",clickAction:"check-indeterminate"},wEe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return Ui}),multi:!0},kEe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),TEe=(0,ln.sb)((0,ln.pj)((0,ln.Kr)((0,ln.Id)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}())))),Ui=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,i))._changeDetectorRef=o,h._focusMonitor=a,h._ngZone=s,h._animationMode=u,h._options=f,h.ariaLabel="",h.ariaLabelledby=null,h._uniqueId="mat-checkbox-".concat(++CEe),h.id=h._uniqueId,h.labelPosition="after",h.name=null,h.change=new n.vpe,h.indeterminateChange=new n.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||nte,h.color=h.defaultColor=h._options.color||nte.color,h.tabIndex=parseInt(l)||0,h}return(0,V.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,Un.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Un.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,Un.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,Un.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._elementRef.nativeElement;if(a!==o&&(this._currentAnimationClass.length>0&&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(){var o=new kEe;o.source=this,o.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(o),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_onInputClick",value:function(o){var s,a=this,l=null===(s=this._options)||void 0===s?void 0:s.clickAction;o.stopPropagation(),this.disabled||"noop"===l?!this.disabled&&"noop"===l&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==l&&Promise.resolve().then(function(){a._indeterminate=!1,a.indeterminateChange.emit(a._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";var s="";switch(o){case 0:if(1===a)s="unchecked-checked";else{if(3!=a)return"";s="unchecked-indeterminate"}break;case 2:s=1===a?"unchecked-checked":"unchecked-indeterminate";break;case 1:s=2===a?"checked-unchecked":"checked-indeterminate";break;case 3:s=1===a?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-".concat(s)}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(TEe);Ui.\u0275fac=function(r){return new(r||Ui)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ai.tE),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(Ta.Qb,8),n.Y36(bEe,8))},Ui.\u0275cmp=n.Xpm({type:Ui,selectors:[["mat-checkbox"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(gEe,5),n.Gf(ln.wG,5)),2&r)&&(n.iGM(i=n.CRH())&&(e._inputElement=i.first),n.iGM(i=n.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(n.Ikx("id",e.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.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",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"},exportAs:["matCheckbox"],features:[n._Bn([wEe]),n.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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&r){var i=n.MAs(1),o=n.MAs(13);n.uIk("for",e.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),n.xp6(1),n.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),n.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,vEe,"NoopAnimations"===e._animationMode?0:150))}},directives:[ln.wG,kZ.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:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.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:transparent;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:transparent}.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%}\n"],encapsulation:2,changeDetection:0});var EEe={provide:ne.Cf,useExisting:(0,n.Gpc)(function(){return vw}),multi:!0},vw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ne.Zs);vw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(vw)))(e||vw)}}(),vw.\u0275dir=n.lG2({type:vw,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[n._Bn([EEe]),n.qOj]});var u0=(0,V.Z)(function t(){(0,j.Z)(this,t)});u0.\u0275fac=function(r){return new(r||u0)},u0.\u0275mod=n.oAB({type:u0}),u0.\u0275inj=n.cJS({});var c0=(0,V.Z)(function t(){(0,j.Z)(this,t)});function n2(){n2=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function MEe(t,r){1&t&&n._UZ(0,"mat-icon",15)}function SEe(t,r){1&t&&n._UZ(0,"mat-icon",16)}function xEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter username"),n.qZA())}function DEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter password"),n.qZA())}function AEe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Authentication was unsuccessful"),n.qZA())}c0.\u0275fac=function(r){return new(r||c0)},c0.\u0275mod=n.oAB({type:c0}),c0.\u0275inj=n.cJS({imports:[[ln.si,ln.BQ,kZ.Q8,u0],ln.BQ,u0]});var r2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.cw({username:new ne.NI("",[ne.kI.required]),password:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e;return no(this,void 0,void 0,n2().mark(function i(){var a,s,o=this;return n2().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(f){o.controller=f,f.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 no(e,void 0,void 0,n2().mark(function s(){var l;return n2().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,f.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 f.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)}}]),t}();r2.\u0275fac=function(r){return new(r||r2)(n.Y36(jh),n.Y36(vr),n.Y36(up),n.Y36(xr),n.Y36(kr),n.Y36($n),n.Y36(zh),n.Y36(qu.f))},r2.\u0275cmp=n.Xpm({type:r2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),n.YNc(5,MEe,1,0,"mat-icon",5),n.YNc(6,SEe,1,0,"mat-icon",6),n.TgZ(7,"div")(8,"h1"),n._uU(9,"GNS3"),n.qZA(),n.TgZ(10,"h6"),n._uU(11),n.qZA()()()(),n.TgZ(12,"form",7)(13,"mat-form-field"),n._UZ(14,"input",8),n.YNc(15,xEe,2,0,"mat-error",9),n.qZA(),n.TgZ(16,"mat-form-field"),n._UZ(17,"input",10),n.YNc(18,DEe,2,0,"mat-error",9),n.qZA()(),n.TgZ(19,"mat-checkbox",11),n.NdJ("change",function(o){return e.rememberMe(o)}),n._uU(20,"Remember me"),n.qZA(),n.TgZ(21,"div",12)(22,"button",13),n.NdJ("click",function(){return e.login()}),n._uU(23,"Login"),n.qZA()()(),n.TgZ(24,"div",14),n.YNc(25,AEe,2,0,"mat-error",9),n.qZA()()()),2&r&&(n.xp6(5),n.Q6J("ngIf",!e.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",e.isLightThemeEnabled),n.xp6(5),n.hij("v",e.version,""),n.xp6(1),n.Q6J("formGroup",e.loginForm),n.xp6(3),n.Q6J("ngIf",e.loginForm.get("username").hasError("required")),n.xp6(3),n.Q6J("ngIf",e.loginForm.get("password").hasError("required")),n.xp6(1),n.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeCheked),n.xp6(6),n.Q6J("ngIf",e.loginError))},directives:[Si,Ct.O5,Vn,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Fn.TO,Ui,Tn],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 i2=(0,V.Z)(function t(){(0,j.Z)(this,t)});i2.\u0275fac=function(r){return new(r||i2)},i2.\u0275cmp=n.Xpm({type:i2,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&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"br"),n.TgZ(3,"h1"),n._uU(4,"404 Page not found"),n.qZA(),n.TgZ(5,"button",2),n._uU(6,"Navigate to homepage"),n.qZA()()())},directives:[Tn,ta],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var o2=function(){function t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();o2.\u0275fac=function(r){return new(r||o2)(n.Y36(xr))},o2.\u0275cmp=n.Xpm({type:o2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"Built-in templates"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),n._uU(14," Ethernet hub templates "),n.qZA(),n.TgZ(15,"mat-list-item",9),n._uU(16," Ethernet switch templates "),n.qZA(),n.TgZ(17,"mat-list-item",9),n._uU(18," Cloud node templates "),n.qZA()()()()()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",e.controllerId,"/preferences"),n.xp6(9),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},directives:[Tn,ta,Vn,Vs,os],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 TZ,OEe=new Uint8Array(16);function IEe(){if(!TZ&&!(TZ="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 TZ(OEe)}var PEe=/^(?:[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 LEe=function REe(t){return"string"==typeof t&&PEe.test(t)},cl=[],LH=0;LH<256;++LH)cl.push((LH+256).toString(16).substr(1));var NEe=function ZEe(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(cl[t[r+0]]+cl[t[r+1]]+cl[t[r+2]]+cl[t[r+3]]+"-"+cl[t[r+4]]+cl[t[r+5]]+"-"+cl[t[r+6]]+cl[t[r+7]]+"-"+cl[t[r+8]]+cl[t[r+9]]+"-"+cl[t[r+10]]+cl[t[r+11]]+cl[t[r+12]]+cl[t[r+13]]+cl[t[r+14]]+cl[t[r+15]]).toLowerCase();if(!LEe(e))throw TypeError("Stringified UUID is invalid");return e};var ms=function BEe(t,r,e){var i=(t=t||{}).random||(t.rng||IEe)();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 NEe(i)},Ql=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();Ql.\u0275fac=function(r){return new(r||Ql)(n.LFG(Wo.zw))},Ql.\u0275prov=n.Yz7({token:Ql,factory:Ql.\u0275fac});var Ml=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getQemuTemplate",value:function(){return(0,pr.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:""})}},{key:"getVpcsTemplate",value:function(){return(0,pr.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,pr.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,pr.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,pr.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,pr.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,pr.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,pr.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,pr.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,pr.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,pr.of)([])}}]),t}();Ml.\u0275fac=function(r){return new(r||Ml)},Ml.\u0275prov=n.Yz7({token:Ml,factory:Ml.\u0275fac});var Yd=m(5542),FEe=["input"],UEe=function(r){return{enterDuration:r}},jEe=new n.OlP("mat-radio-default-options",{providedIn:"root",factory:function zEe(){return{color:"accent"}}});var rte=0,WEe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return _s}),multi:!0},ite=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.value=e}),ote=new n.OlP("MatRadioGroup"),a2=function(){function t(r){(0,j.Z)(this,t),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(rte++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new n.vpe}return(0,V.Z)(t,[{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,Un.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,Un.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 ite(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()}}]),t}();a2.\u0275fac=function(r){return new(r||a2)(n.Y36(n.sBO))},a2.\u0275dir=n.lG2({type:a2,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var _s=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(a2);_s.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(_s)))(e||_s)}}(),_s.\u0275dir=n.lG2({type:_s,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ys,5),2&r)&&(n.iGM(o=n.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[n._Bn([WEe,{provide:ote,useExisting:_s}]),n.qOj]});var VEe=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r}),EZ=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this,o))._changeDetector=a,v._focusMonitor=s,v._radioDispatcher=l,v._providerOverride=f,v._uniqueId="mat-radio-".concat(++rte),v.id=v._uniqueId,v.change=new n.vpe,v._checked=!1,v._value=null,v._removeUniqueSelectionListener=function(){},v.radioGroup=i,v._noopAnimations="NoopAnimations"===u,h&&(v.tabIndex=(0,Un.su)(h,0)),v._removeUniqueSelectionListener=l.listen(function(C,B){C!==v.id&&B===v.name&&(v.checked=!1)}),v}return(0,V.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Un.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,Un.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,Un.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 ite(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,ln.Kr)((0,ln.sb)(VEe)));EZ.\u0275fac=function(r){n.$Z()},EZ.\u0275dir=n.lG2({type:EZ,viewQuery:function(r,e){var i;(1&r&&n.Gf(FEe,5),2&r)&&(n.iGM(i=n.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:[n.qOj]});var Ys=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){return(0,j.Z)(this,e),r.call(this,i,o,a,s,l,u,f,h)}return(0,V.Z)(e)}(EZ);Ys.\u0275fac=function(r){return new(r||Ys)(n.Y36(ote,8),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ai.tE),n.Y36(po.A8),n.Y36(Ta.Qb,8),n.Y36(jEe,8),n.$8M("tabindex"))},Ys.\u0275cmp=n.Xpm({type:Ys,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&n.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(n.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),n.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:[n.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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2),n._UZ(3,"span",3)(4,"span",4),n.TgZ(5,"input",5,6),n.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),n.qZA(),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.TgZ(9,"span",9)(10,"span",10),n._uU(11,"\xa0"),n.qZA(),n.Hsn(12),n.qZA()()),2&r){var i=n.MAs(1);n.uIk("for",e.inputId),n.xp6(5),n.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),n.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(17,UEe,e._noopAnimations?0:150)),n.xp6(2),n.ekj("mat-radio-label-before","before"==e.labelPosition)}},directives:[ln.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;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}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0});var yw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function GEe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}yw.\u0275fac=function(r){return new(r||yw)},yw.\u0275mod=n.oAB({type:yw}),yw.\u0275inj=n.cJS({imports:[[ln.si,ln.BQ],ln.BQ]});var s2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),t}();s2.\u0275fac=function(r){return new(r||s2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36(kr),n.Y36($n),n.Y36(Ml),n.Y36(ne.qu),n.Y36(Yd.X))},s2.\u0275cmp=n.Xpm({type:s2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,GEe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New cloud node template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the cloud node locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA()()(),n.TgZ(16,"div",14)(17,"button",15),n.NdJ("click",function(){return e.goBack()}),n._uU(18,"Cancel"),n.qZA(),n.TgZ(19,"button",16),n.NdJ("click",function(){return e.addTemplate()}),n._uU(20,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[Ct.O5,Tn,Vn,Si,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,ne.Fj,sr,ne.JJ,ne.u],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 Ku=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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"]}}]),t}();Ku.\u0275fac=function(r){return new(r||Ku)},Ku.\u0275prov=n.Yz7({token:Ku,factory:Ku.\u0275fac});var qEe=m(5154),cp=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.symbols=new go.X([]),this.maximumSymbolSize=80}return(0,V.Z)(t,[{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,qEe.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(as.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),t}();cp.\u0275fac=function(r){return new(r||cp)(n.LFG(Wo.zw))},cp.\u0275prov=n.Yz7({token:cp,factory:cp.\u0275fac});var l2=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),t}();l2.\u0275fac=function(r){return new(r||l2)},l2.\u0275pipe=n.Yjl({name:"filenamefilter",type:l2,pure:!0});var JEe=function(r){return{buttonSelected:r}},QEe=function(r){return{imageSelected:r}};function XEe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"button",13),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().setSelected(l.symbol_id)}),n._UZ(2,"img",14),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(3,JEe,o.isSelected===i.symbol_id)),n.xp6(1),n.Q6J("ngClass",n.VKq(5,QEe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),n.LSH)}}var $Ee=function(){return{standalone:!0}},bw=function(){function t(r){(0,j.Z)(this,t),this.symbolService=r,this.symbolChanged=new n.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,V.Z)(t,[{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,f=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,f).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(as.N.current_version,"/symbols/").concat(e,"/raw")}}]),t}();bw.\u0275fac=function(r){return new(r||bw)(n.Y36(cp))},bw.\u0275cmp=n.Xpm({type:bw,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=n.EpF();n.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),n.NdJ("click",function(){return e.setFilter("all")}),n._uU(3,"All symbols"),n.qZA(),n.TgZ(4,"mat-radio-button",3),n.NdJ("click",function(){return e.setFilter("builtin")}),n._uU(5,"Built-in symbols"),n.qZA(),n.TgZ(6,"mat-radio-button",4),n.NdJ("click",function(){return e.setFilter("custom")}),n._uU(7,"Custom symbols"),n.qZA()(),n.TgZ(8,"input",5,6),n.NdJ("change",function(a){return e.uploadSymbolFile(a)}),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return n.CHM(i),n.MAs(9).click()}),n.TgZ(11,"mat-icon"),n._uU(12,"add"),n.qZA(),n._uU(13," Add symbol "),n.qZA()(),n.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),n.NdJ("ngModelChange",function(a){return e.searchText=a}),n.qZA()()(),n.TgZ(17,"div",10),n.YNc(18,XEe,3,7,"div",11),n.ALo(19,"filenamefilter"),n.qZA()}2&r&&(n.xp6(16),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(6,$Ee)),n.xp6(2),n.Q6J("ngForOf",n.xi3(19,3,e.filteredSymbols,e.searchText)))},directives:[_s,Ys,Tn,Vn,ne._Y,ne.JL,ne.F,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Ct.sg,Ct.mk],pipes:[l2],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 mu=function(){function t(){(0,j.Z)(this,t),this.symbolChangedEmitter=new n.vpe,this.chosenSymbol=""}return(0,V.Z)(t,[{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)}}]),t}();function eMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function tMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function nMe(t,r){if(1&t&&(n.TgZ(0,"div",7)(1,"div",7),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function rMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function iMe(t,r){if(1&t&&(n.TgZ(0,"div",7)(1,"div",7),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function oMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Name "),n.qZA())}function aMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function sMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Local port "),n.qZA())}function lMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.rport," ")}}function uMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Type "),n.qZA())}function cMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.rhost," ")}}function dMe(t,r){1&t&&(n.TgZ(0,"th",43),n._uU(1," Remote port "),n.qZA())}function fMe(t,r){if(1&t&&(n.TgZ(0,"td",44),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.lport," ")}}function pMe(t,r){1&t&&n._UZ(0,"tr",45)}function hMe(t,r){1&t&&n._UZ(0,"tr",46)}function mMe(t,r){if(1&t&&(n.TgZ(0,"table",34),n.ynx(1,35),n.YNc(2,oMe,2,0,"th",36),n.YNc(3,aMe,2,1,"td",37),n.BQk(),n.ynx(4,38),n.YNc(5,sMe,2,0,"th",36),n.YNc(6,lMe,2,1,"td",37),n.BQk(),n.ynx(7,39),n.YNc(8,uMe,2,0,"th",36),n.YNc(9,cMe,2,1,"td",37),n.BQk(),n.ynx(10,40),n.YNc(11,dMe,2,0,"th",36),n.YNc(12,fMe,2,1,"td",37),n.BQk(),n.YNc(13,pMe,1,0,"tr",41),n.YNc(14,hMe,1,0,"tr",42),n.qZA()),2&t){var e=n.oxw(2);n.Q6J("dataSource",e.dataSourceUdp),n.xp6(13),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function _Me(t,r){1&t&&n._UZ(0,"br")}mu.\u0275fac=function(r){return new(r||mu)},mu.\u0275cmp=n.Xpm({type:mu,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Symbol selection"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return e.cancelChooseSymbol()}),n._uU(6,"Cancel"),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.chooseSymbol()}),n._uU(8,"Choose symbol"),n.qZA()()(),n.TgZ(9,"div",6)(10,"app-symbols",7),n.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),n.qZA()()()),2&r&&(n.xp6(10),n.Q6J("controller",e.controller)("symbol",e.symbol))},directives:[Tn,bw],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 gMe=function(){return{standalone:!0}};function vMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General "),n.qZA()(),n.TgZ(6,"mat-form-field",7)(7,"input",8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.name=a}),n.qZA()(),n.TgZ(8,"mat-form-field",7)(9,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.default_name_format=a}),n.qZA()(),n.TgZ(10,"mat-form-field",7)(11,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.symbol=a}),n.qZA()(),n.TgZ(12,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(13,"Choose symbol"),n.qZA(),n._UZ(14,"br")(15,"br"),n.TgZ(16,"mat-form-field",7)(17,"mat-select",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.category=a}),n.YNc(18,eMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(19,"mat-form-field",14)(20,"mat-select",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.console_type=a}),n.YNc(21,tMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(22,"mat-form-field",7)(23,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_host=a}),n.qZA()(),n.TgZ(24,"mat-form-field",7)(25,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_port=a}),n.qZA()(),n.TgZ(26,"mat-form-field",7)(27,"input",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.remote_console_http_path=a}),n.qZA()()(),n.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),n._uU(31," Ethernet interfaces "),n.qZA()(),n.YNc(32,nMe,5,1,"div",19),n.TgZ(33,"mat-form-field",14)(34,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetInterface=a}),n.YNc(35,rMe,2,2,"mat-option",13),n.qZA()(),n.TgZ(36,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddEthernetInterface()}),n._uU(37,"Add"),n.qZA()(),n.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),n._uU(41," TAP interfaces "),n.qZA()(),n.YNc(42,iMe,5,1,"div",19),n.TgZ(43,"mat-form-field",7)(44,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().tapInterface=a}),n.qZA()(),n.TgZ(45,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddTapInterface()}),n._uU(46,"Add"),n.qZA()(),n.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),n._uU(50," UDP tunnels "),n.qZA()(),n.YNc(51,mMe,15,3,"table",23),n.YNc(52,_Me,1,0,"br",24),n.TgZ(53,"mat-form-field",7)(54,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.name=a}),n.qZA()(),n.TgZ(55,"mat-form-field",7)(56,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.lport=a}),n.qZA()(),n.TgZ(57,"mat-form-field",7)(58,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.rhost=a}),n.qZA()(),n.TgZ(59,"mat-form-field",7)(60,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().newPort.rport=a}),n.qZA()(),n.TgZ(61,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddUdpInterface()}),n._uU(62,"Add"),n.qZA()(),n.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),n._uU(66," Usage "),n.qZA()(),n.TgZ(67,"mat-form-field",7)(68,"textarea",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().cloudNodeTemplate.usage=a}),n.qZA()()()(),n.TgZ(69,"div",30)(70,"button",31),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(71,"Cancel"),n.qZA(),n.TgZ(72,"button",32),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(73,"Save"),n.qZA(),n._UZ(74,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(7),n.Q6J("ngModel",i.cloudNodeTemplate.name),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.symbol),n.xp6(6),n.Q6J("ngModel",i.cloudNodeTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),n.xp6(2),n.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),n.xp6(5),n.Q6J("ngForOf",i.portsMappingEthernet),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(23,gMe))("ngModel",i.ethernetInterface),n.xp6(1),n.Q6J("ngForOf",i.ethernetInterfaces),n.xp6(7),n.Q6J("ngForOf",i.portsMappingTap),n.xp6(2),n.Q6J("ngModel",i.tapInterface),n.xp6(7),n.Q6J("ngIf",i.dataSourceUdp.length),n.xp6(1),n.Q6J("ngIf",i.dataSourceUdp.length),n.xp6(2),n.Q6J("ngModel",i.newPort.name),n.xp6(2),n.Q6J("ngModel",i.newPort.lport),n.xp6(2),n.Q6J("ngModel",i.newPort.rhost),n.xp6(2),n.Q6J("ngModel",i.newPort.rport),n.xp6(8),n.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function yMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",47),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var bMe=function(r){return{shadowed:r}},u2=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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,V.Z)(t,[{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,$t.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,$t.Z)(this.portsMappingEthernet),(0,$t.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}}]),t}();function CMe(t,r){}u2.\u0275fac=function(r){return new(r||u2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36($n),n.Y36(Ku),n.Y36(kr))},u2.\u0275cmp=n.Xpm({type:u2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Cloud configuration"),n.qZA()(),n.YNc(5,vMe,75,24,"div",4),n.qZA(),n.YNc(6,yMe,1,2,"app-symbols-menu",5),n.qZA()),2&r&&(n.Q6J("ngClass",n.VKq(3,bMe,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.cloudNodeTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},directives:[Ct.mk,Ct.O5,El,Kl,Jl,hu,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Tn,Oi.gD,Ct.sg,ln.ey,ca,aa,fa,Sa,da,xa,Da,Oa,Aa,Ia,ne.wV,mu],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 ZH=(0,V.Z)(function t(){(0,j.Z)(this,t),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.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}),wMe={dialogContainer:(0,rn.X$)("dialogContainer",[(0,rn.SB)("void, exit",(0,rn.oB)({opacity:0,transform:"scale(0.7)"})),(0,rn.SB)("enter",(0,rn.oB)({transform:"none"})),(0,rn.eR)("* => enter",(0,rn.ru)([(0,rn.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({transform:"none",opacity:1})),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])),(0,rn.eR)("* => void, * => exit",(0,rn.ru)([(0,rn.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,rn.oB)({opacity:0})),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})]))])};var c2=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this))._elementRef=i,v._focusTrapFactory=o,v._changeDetectorRef=a,v._config=l,v._interactivityChecker=u,v._ngZone=f,v._focusMonitor=h,v._animationStateChanged=new n.vpe,v._elementFocusedBeforeDialogWasOpened=null,v._closeInteractionType=null,v.attachDomPortal=function(C){return v._portalOutlet.hasAttached(),v._portalOutlet.attachDomPortal(C)},v._ariaLabelledBy=l.ariaLabelledBy||null,v._document=s,v}return(0,V.Z)(e,[{key:"_initializeWithAttachedContent",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Zi.ht)())}},{key:"attachComponentPortal",value:function(o){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(o)}},{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._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&o&&"function"==typeof o.focus){var a=(0,Zi.ht)(),s=this._elementRef.nativeElement;(!a||a===this._document.body||a===s||s.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(o,this._closeInteractionType),this._closeInteractionType=null):o.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,Zi.ht)();return o===a||o.contains(a)}}]),e}(yo.en);c2.\u0275fac=function(r){return new(r||c2)(n.Y36(n.SBq),n.Y36(Ai.qV),n.Y36(n.sBO),n.Y36(Ct.K0,8),n.Y36(ZH),n.Y36(Ai.ic),n.Y36(n.R0b),n.Y36(Ai.tE))},c2.\u0275dir=n.lG2({type:c2,viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},features:[n.qOj]});var Cw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._state="enter",i}return(0,V.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})):"exit"===a&&(this._restoreFocus(),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:"_initializeWithAttachedContent",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"_initializeWithAttachedContent",this).call(this),this._config.delayFocusTrap||this._trapFocus()}}]),e}(c2);Cw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Cw)))(e||Cw)}}(),Cw.\u0275cmp=n.Xpm({type:Cw,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(r,e){1&r&&n.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(n.Ikx("id",e._id),n.uIk("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),n.d8E("@dialogContainer",e._state))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&n.YNc(0,CMe,0,0,"ng-template",0)},directives:[yo.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[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.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}\n"],encapsulation:2,data:{animation:[wMe.dialogContainer]}});var kMe=0,Ar=function(){function t(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(kMe++);(0,j.Z)(this,t),this._overlayRef=r,this._containerInstance=e,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new qn.xQ,this._afterClosed=new qn.xQ,this._beforeClosed=new qn.xQ,this._state=0,e._id=o,e._animationStateChanged.pipe((0,Ei.h)(function(a){return"opened"===a.state}),(0,to.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),e._animationStateChanged.pipe((0,Ei.h)(function(a){return"closed"===a.state}),(0,to.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),r.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),r.keydownEvents().pipe((0,Ei.h)(function(a){return a.keyCode===Gr.hY&&!i.disableClose&&!(0,Gr.Vb)(a)})).subscribe(function(a){a.preventDefault(),NH(i,"keyboard")}),r.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():NH(i,"mouse")})}return(0,V.Z)(t,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,Ei.h)(function(o){return"closing"===o.state}),(0,to.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._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._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var i=this._getPositionStrategy();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._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._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function NH(t,r,e){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=r),t.close(e)}var na=new n.OlP("MatDialogData"),TMe=new n.OlP("mat-dialog-default-options"),ate=new n.OlP("mat-dialog-scroll-strategy");var MMe={provide:ate,deps:[Ao.aV],useFactory:function EMe(t){return function(){return t.scrollStrategies.block()}}},MZ=function(){function t(r,e,i,o,a,s,l,u,f,h){var v=this;(0,j.Z)(this,t),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=f,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qn.xQ,this._afterOpenedAtThisLevel=new qn.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,H5.P)(function(){return v.openDialogs.length?v._getAfterAllClosed():v._getAfterAllClosed().pipe((0,ua.O)(void 0))}),this._scrollStrategy=s}return(0,V.Z)(t,[{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 o=this;i=function SMe(t,r){return Object.assign(Object.assign({},r),t)}(i,this._defaultOptions||new ZH),i.id&&this.getDialogById(i.id);var a=this._createOverlay(i),s=this._attachDialogContainer(a,i),l=this._attachDialogContent(e,s,a,i);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(function(){return o._removeOpenDialog(l)}),this.afterOpened.next(l),s._initializeWithAttachedContent(),l}},{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:"_createOverlay",value:function(e){var i=this._getOverlayConfig(e);return this._overlay.create(i)}},{key:"_getOverlayConfig",value:function(e){var i=new Ao.X_({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachDialogContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=n.zs3.create({parent:o||this._injector,providers:[{provide:ZH,useValue:i}]}),s=new yo.C5(this._dialogContainerType,i.viewContainerRef,a,i.componentFactoryResolver);return e.attach(s).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){var s=new this._dialogRefConstructor(o,i,a.id);if(e instanceof n.Rgc)i.attachTemplatePortal(new yo.UE(e,null,{$implicit:a.data,dialogRef:s}));else{var l=this._createInjector(a,s,i),u=i.attachComponentPortal(new yo.C5(e,a.viewContainerRef,l,a.componentFactoryResolver));s.componentInstance=u.instance}return s.updateSize(a.width,a.height).updatePosition(a.position),s}},{key:"_createInjector",value:function(e,i,o){var a=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!a||!a.get(Es.Is,null,n.XFs.Optional))&&s.push({provide:Es.Is,useValue:{value:e.direction,change:(0,pr.of)()}}),n.zs3.create({parent:a||this._injector,providers:s})}},{key:"_removeOpenDialog",value:function(e){var i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(o,a){o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),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:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),t}();MZ.\u0275fac=function(r){n.$Z()},MZ.\u0275dir=n.lG2({type:MZ});var ri=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){return(0,j.Z)(this,e),r.call(this,i,o,s,u,f,l,Ar,Cw,na,h)}return(0,V.Z)(e)}(MZ);ri.\u0275fac=function(r){return new(r||ri)(n.LFG(Ao.aV),n.LFG(n.zs3),n.LFG(Ct.Ye,8),n.LFG(TMe,8),n.LFG(ate),n.LFG(ri,12),n.LFG(Ao.Xj),n.LFG(Ta.Qb,8))},ri.\u0275prov=n.Yz7({token:ri,factory:ri.\u0275fac});var xMe=0,d0=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ste(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){NH(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();d0.\u0275fac=function(r){return new(r||d0)(n.Y36(Ar,8),n.Y36(n.SBq),n.Y36(ri))},d0.\u0275dir=n.lG2({type:d0,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&n.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:[n.TTD]});var Vr=function(){function t(r,e,i){(0,j.Z)(this,t),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(xMe++)}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=ste(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),t}();Vr.\u0275fac=function(r){return new(r||Vr)(n.Y36(Ar,8),n.Y36(n.SBq),n.Y36(ri))},Vr.\u0275dir=n.lG2({type:Vr,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var Ju=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ju.\u0275fac=function(r){return new(r||Ju)},Ju.\u0275dir=n.lG2({type:Ju,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var Zr=(0,V.Z)(function t(){(0,j.Z)(this,t)});function ste(t,r){for(var e=t.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}Zr.\u0275fac=function(r){return new(r||Zr)},Zr.\u0275dir=n.lG2({type:Zr,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]});var ww=(0,V.Z)(function t(){(0,j.Z)(this,t)});ww.\u0275fac=function(r){return new(r||ww)},ww.\u0275mod=n.oAB({type:ww}),ww.\u0275inj=n.cJS({providers:[ri,MMe],imports:[[Ao.U8,yo.eL,ln.BQ],ln.BQ]});var d2=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),t}();d2.\u0275fac=function(r){return new(r||d2)(n.Y36(Ar),n.Y36(na))},d2.\u0275cmp=n.Xpm({type:d2,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2,"Delete template"),n.qZA(),n.TgZ(3,"div",2),n._uU(4),n.qZA(),n._UZ(5,"div",3),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return e.onNoClick()}),n._uU(8,"No"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){return e.onYesClick()}),n._uU(10," Yes "),n.qZA()()()),2&r&&(n.xp6(4),n.hij("Are you sure you want to delete template ",e.templateName,"?"))},directives:[Vr,Ju,Zr,Tn],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var Gd=function(){function t(r){(0,j.Z)(this,t),this.httpController=r,this.newTemplateCreated=new qn.xQ}return(0,V.Z)(t,[{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"})}}]),t}();Gd.\u0275fac=function(r){return new(r||Gd)(n.LFG(Wo.zw))},Gd.\u0275prov=n.Yz7({token:Gd,factory:Gd.\u0275fac});var pa=function(){function t(r,e,i){(0,j.Z)(this,t),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new n.vpe}return(0,V.Z)(t,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(d2,{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."))})})}}]),t}();pa.\u0275fac=function(r){return new(r||pa)(n.Y36(Gd),n.Y36(ri),n.Y36($n))},pa.\u0275cmp=n.Xpm({type:pa,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){},styles:[""]});var _u=(0,V.Z)(function t(){(0,j.Z)(this,t),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});_u.\u0275fac=function(r){return new(r||_u)},_u.\u0275cmp=n.Xpm({type:_u,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&&(n.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),n._uU(3),n.qZA()()()),2&r&&(n.xp6(3),n.hij(" ",e.emptyTemplatesListMessage," "))},directives:[Si],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var lte=m(9931),BH=m(943);function AMe(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",2),n._UZ(1,"polygon",3),n.qZA())}var ute=["*"];function OMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",0),n.NdJ("keydown",function(a){return n.CHM(e),n.oxw()._handleKeydown(a)})("click",function(){return n.CHM(e),n.oxw().closed.emit("click")})("@transformMenu.start",function(a){return n.CHM(e),n.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return n.CHM(e),n.oxw()._onAnimationDone(a)}),n.TgZ(1,"div",1),n.Hsn(2),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),n.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var SZ={transformMenu:(0,rn.X$)("transformMenu",[(0,rn.SB)("void",(0,rn.oB)({opacity:0,transform:"scale(0.8)"})),(0,rn.eR)("void => enter",(0,rn.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,rn.oB)({opacity:1,transform:"scale(1)"}))),(0,rn.eR)("* => void",(0,rn.jt)("100ms 25ms linear",(0,rn.oB)({opacity:0})))]),fadeInItems:(0,rn.X$)("fadeInItems",[(0,rn.SB)("showing",(0,rn.oB)({opacity:1})),(0,rn.eR)("void => *",[(0,rn.oB)({opacity:0}),(0,rn.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cte=(SZ.fadeInItems,SZ.transformMenu,new n.OlP("MatMenuContent")),f2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new qn.xQ}return(0,V.Z)(t,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new yo.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new yo.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()}}]),t}();f2.\u0275fac=function(r){return new(r||f2)(n.Y36(n.Rgc),n.Y36(n._Vd),n.Y36(n.z2F),n.Y36(n.zs3),n.Y36(n.s_b),n.Y36(Ct.K0),n.Y36(n.sBO))},f2.\u0275dir=n.lG2({type:f2});var kw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(f2);kw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(kw)))(e||kw)}}(),kw.\u0275dir=n.lG2({type:kw,selectors:[["ng-template","matMenuContent",""]],features:[n._Bn([{provide:cte,useExisting:kw}]),n.qOj]});var FH=new n.OlP("MAT_MENU_PANEL"),IMe=(0,ln.Kr)((0,ln.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),Hr=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l){var u,f;return(0,j.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 qn.xQ,u._focused=new qn.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(f=null==s?void 0:s.addItem)||void 0===f||f.call(s,(0,Mx.Z)(u)),u}return(0,V.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}(IMe);Hr.\u0275fac=function(r){return new(r||Hr)(n.Y36(n.SBq),n.Y36(Ct.K0),n.Y36(Ai.tE),n.Y36(FH,8),n.Y36(n.sBO))},Hr.\u0275cmp=n.Xpm({type:Hr,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(n.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),n.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:[n.qOj],attrs:["mat-menu-item",""],ngContentSelectors:ute,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&&(n.F$t(),n.Hsn(0),n._UZ(1,"div",0),n.YNc(2,AMe,2,0,"svg",1)),2&r&&(n.xp6(1),n.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),n.xp6(1),n.Q6J("ngIf",e._triggersSubmenu))},directives:[ln.wG,Ct.O5],encapsulation:2,changeDetection:0});var dte=new n.OlP("mat-menu-default-options",{providedIn:"root",factory:function PMe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var RMe=0,Wh=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 n.n_E,this._tabSubscription=Io.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new qn.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new n.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(RMe++)}return(0,V.Z)(t,[{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,Un.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,Un.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 Ai.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,ua.O)(this._directDescendantItems),(0,xo.w)(function(i){return To.T.apply(void 0,(0,$t.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,ua.O)(this._directDescendantItems),(0,xo.w)(function(i){return To.T.apply(void 0,(0,$t.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 Gr.hY:(0,Gr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case Gr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Gr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===Gr.LH||i===Gr.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,to.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,ua.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),t}();Wh.\u0275fac=function(r){return new(r||Wh)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(dte),n.Y36(n.sBO))},Wh.\u0275dir=n.lG2({type:Wh,contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,cte,5),n.Suo(i,Hr,5),n.Suo(i,Hr,4)),2&r)&&(n.iGM(o=n.CRH())&&(e.lazyContent=o.first),n.iGM(o=n.CRH())&&(e._allItems=o),n.iGM(o=n.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(n.Rgc,5),2&r)&&(n.iGM(i=n.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 ss=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,V.Z)(e)}(Wh);ss.\u0275fac=function(r){return new(r||ss)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(dte),n.Y36(n.sBO))},ss.\u0275cmp=n.Xpm({type:ss,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&n.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[n._Bn([{provide:FH,useExisting:ss}]),n.qOj],ngContentSelectors:ute,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&&(n.F$t(),n.YNc(0,OMe,3,6,"ng-template"))},directives:[Ct.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}.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:transparent;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 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}\n'],encapsulation:2,data:{animation:[SZ.transformMenu,SZ.fadeInItems]},changeDetection:0});var fte=new n.OlP("mat-menu-scroll-strategy");var ZMe={provide:fte,deps:[Ao.aV],useFactory:function LMe(t){return function(){return t.scrollStrategies.reposition()}}},hte=(0,Zi.i$)({passive:!0}),p2=function(){function t(r,e,i,o,a,s,l,u,f){var h=this;(0,j.Z)(this,t),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=f,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Io.w.EMPTY,this._hoverSubscription=Io.w.EMPTY,this._menuCloseSubscription=Io.w.EMPTY,this._handleTouchStart=function(v){(0,Ai.yG)(v)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new n.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new n.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Wh?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,hte),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,V.Z)(t,[{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._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,hte),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;if(!this._menuOpen){this._checkMenu();var i=this._createOverlay(),o=i.getConfig(),a=o.positionStrategy;this._setPosition(a),o.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,i.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Wh&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,Yr.R)(this.menu.close)).subscribe(function(){a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){this.menu.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 i=this;if(this._overlayRef&&this.menuOpen){var o=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,o instanceof Wh?(o._resetAnimation(),o.lazyContent?o._animationDone.pipe((0,Ei.h)(function(a){return"void"===a.toState}),(0,to.q)(1),(0,Yr.R)(o.lazyContent._attached)).subscribe({next:function(){return o.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),o.lazyContent&&o.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,i=this.menu.parentMenu;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_checkMenu",value:function(){this.menu}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Ao.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var i=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(o){var a="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";i._ngZone?i._ngZone.run(function(){return i.menu.setPositionClasses(a,s)}):i.menu.setPositionClasses(a,s)})}},{key:"_setPosition",value:function(e){var i="before"===this.menu.xPosition?["end","start"]:["start","end"],o=(0,Ut.Z)(i,2),a=o[0],s=o[1],l="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],u=(0,Ut.Z)(l,2),f=u[0],h=u[1],v=f,C=h,B=a,G=s,q=0;this.triggersSubmenu()?(G=a="before"===this.menu.xPosition?"start":"end",s=B="end"===a?"start":"end",q="bottom"===f?8:-8):this.menu.overlapTrigger||(v="top"===f?"bottom":"top",C="top"===h?"bottom":"top"),e.withPositions([{originX:a,originY:v,overlayX:B,overlayY:f,offsetY:q},{originX:s,originY:v,overlayX:G,overlayY:f,offsetY:q},{originX:a,originY:C,overlayX:B,overlayY:h,offsetY:-q},{originX:s,originY:C,overlayX:G,overlayY:h,offsetY:-q}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,pr.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ei.h)(function(l){return l!==e._menuItemInstance}),(0,Ei.h)(function(){return e._menuOpen})):(0,pr.of)();return(0,To.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Ai.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===Gr.K5||i===Gr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===Gr.SV&&"ltr"===this.dir||i===Gr.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,Ei.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,BH.g)(0,lte.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Wh&&e.menu._isAnimating?e.menu._animationDone.pipe((0,to.q)(1),(0,BH.g)(0,lte.E),(0,Yr.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new yo.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();p2.\u0275fac=function(r){return new(r||p2)(n.Y36(Ao.aV),n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(fte),n.Y36(FH,8),n.Y36(Hr,10),n.Y36(Es.Is,8),n.Y36(Ai.tE),n.Y36(n.R0b))},p2.\u0275dir=n.lG2({type:p2,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&n.uIk("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 Pa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p2);Pa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Pa)))(e||Pa)}}(),Pa.\u0275dir=n.lG2({type:Pa,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[n.qOj]});var ag=(0,V.Z)(function t(){(0,j.Z)(this,t)});function NMe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function BMe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function FMe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function UMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function HMe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,UMe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.cloudNodesTemplates)}}function jMe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,HMe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}ag.\u0275fac=function(r){return new(r||ag)},ag.\u0275mod=n.oAB({type:ag}),ag.\u0275inj=n.cJS({providers:[ZMe],imports:[[Ct.ez,ln.BQ,ln.si,Ao.U8],ka.ZD,ln.BQ]});var h2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();function zMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}h2.\u0275fac=function(r){return new(r||h2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql))},h2.\u0275cmp=n.Xpm({type:h2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,NMe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Cloud nodes templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,BMe,3,1,"button",7),n.qZA()()(),n.YNc(10,FMe,1,0,"app-empty-templates-list",8),n.YNc(11,jMe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.cloudNodesTemplates.length),n.xp6(1),n.Q6J("ngIf",e.cloudNodesTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),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()})}}}]),t}();function WMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function VMe(t,r){if(1&t&&(n.TgZ(0,"mat-option",22),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}m2.\u0275fac=function(r){return new(r||m2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36(kr),n.Y36($n),n.Y36(Ml),n.Y36(ne.qu),n.Y36(Yd.X))},m2.\u0275cmp=n.Xpm({type:m2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,zMe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New Ethernet hub template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the Ethernet Hub locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA(),n.TgZ(16,"mat-form-field",12),n._UZ(17,"input",14),n.qZA()()(),n.TgZ(18,"div",15)(19,"button",16),n.NdJ("click",function(){return e.goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",17),n.NdJ("click",function(){return e.addTemplate()}),n._uU(22,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[Ct.O5,Tn,Vn,Si,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,ne.Fj,sr,ne.JJ,ne.u,ne.wV],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 mte=function(){return{standalone:!0}};function YMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",12)(6,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.default_name_format=a}),n.qZA()(),n.TgZ(7,"mat-form-field",12)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.symbol=a}),n.qZA()(),n.TgZ(9,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(10,"Choose symbol"),n.qZA(),n._UZ(11,"br")(12,"br"),n.TgZ(13,"mat-form-field",12)(14,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetHubTemplate.category=a}),n.YNc(15,VMe,2,2,"mat-option",18),n.qZA()(),n.TgZ(16,"mat-form-field",12)(17,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().numberOfPorts=a}),n.qZA()()()(),n.TgZ(18,"div",20)(19,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(22,"Save"),n.qZA(),n._UZ(23,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.name),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.ethernetHubTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(9,mte))("ngModel",i.ethernetHubTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",n.DdM(10,mte))}}function GMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",23),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var qMe=function(r){return{shadowed:r}},_2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function KMe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function JMe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function QMe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function XMe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function $Me(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,XMe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.ethernetHubsTemplates)}}function eSe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,$Me,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}_2.\u0275fac=function(r){return new(r||_2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36($n),n.Y36(ne.qu),n.Y36(Ku),n.Y36(kr))},_2.\u0275cmp=n.Xpm({type:_2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,WMe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet hub settings"),n.qZA()()()(),n.YNc(8,YMe,24,11,"div",7),n.qZA(),n.YNc(9,GMe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,qMe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.ethernetHubTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,ne.wV,mu],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 t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();function tSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}g2.\u0275fac=function(r){return new(r||g2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql))},g2.\u0275cmp=n.Xpm({type:g2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,KMe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet hubs templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,JMe,3,1,"button",7),n.qZA()()(),n.YNc(10,QMe,1,0,"app-empty-templates-list",8),n.YNc(11,eSe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.ethernetHubsTemplates.length),n.xp6(1),n.Q6J("ngIf",e.ethernetHubsTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 v2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),numberOfPorts:new ne.NI(8,ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),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()})}}}]),t}();function nSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Port number"),n.qZA())}function rSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.port_number)}}function iSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"VLAN"),n.qZA())}function oSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.vlan)}}function aSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Type"),n.qZA())}function sSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.type)}}function lSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"EtherType"),n.qZA())}function uSe(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.ethertype)}}function cSe(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Actions"),n.qZA())}function dSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().delete(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"delete"),n.qZA()()()}}function fSe(t,r){1&t&&n._UZ(0,"tr",22)}function pSe(t,r){1&t&&n._UZ(0,"tr",23)}function hSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function mSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}v2.\u0275fac=function(r){return new(r||v2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36(kr),n.Y36($n),n.Y36(Ml),n.Y36(ne.qu),n.Y36(Yd.X))},v2.\u0275cmp=n.Xpm({type:v2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,tSe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New Ethernet switch template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the Ethernet switch locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA(),n.TgZ(16,"mat-form-field",12),n._UZ(17,"input",14),n.qZA()()(),n.TgZ(18,"div",15)(19,"button",16),n.NdJ("click",function(){return e.goBack()}),n._uU(20,"Cancel"),n.qZA(),n.TgZ(21,"button",17),n.NdJ("click",function(){return e.addTemplate()}),n._uU(22,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.formGroup))},directives:[Ct.O5,Tn,Vn,Si,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,ne.Fj,sr,ne.JJ,ne.u,ne.wV],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 _te=function(){return{standalone:!0}},sg=function(){function t(r){(0,j.Z)(this,t),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,V.Z)(t,[{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})}}]),t}();function _Se(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function gSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function vSe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}sg.\u0275fac=function(r){return new(r||sg)(n.Y36(Ku))},sg.\u0275cmp=n.Xpm({type:sg,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&&(n.TgZ(0,"table",0),n.ynx(1,1),n.YNc(2,nSe,2,0,"th",2),n.YNc(3,rSe,2,1,"td",3),n.BQk(),n.ynx(4,4),n.YNc(5,iSe,2,0,"th",2),n.YNc(6,oSe,2,1,"td",3),n.BQk(),n.ynx(7,5),n.YNc(8,aSe,2,0,"th",2),n.YNc(9,sSe,2,1,"td",3),n.BQk(),n.ynx(10,6),n.YNc(11,lSe,2,0,"th",2),n.YNc(12,uSe,2,1,"td",3),n.BQk(),n.ynx(13,7),n.YNc(14,cSe,2,0,"th",2),n.YNc(15,dSe,4,0,"td",3),n.BQk(),n.YNc(16,fSe,1,0,"tr",8),n.YNc(17,pSe,1,0,"tr",9),n.qZA(),n._UZ(18,"br"),n.TgZ(19,"mat-form-field",10)(20,"input",11),n.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),n.qZA()(),n.TgZ(21,"mat-form-field",10)(22,"input",12),n.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),n.qZA()(),n.TgZ(23,"mat-form-field",13)(24,"mat-select",14),n.NdJ("ngModelChange",function(o){return e.newPort.type=o}),n.YNc(25,hSe,2,2,"mat-option",15),n.qZA()(),n.TgZ(26,"mat-form-field",13)(27,"mat-select",16),n.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),n.YNc(28,mSe,2,2,"mat-option",15),n.qZA()(),n.TgZ(29,"button",17),n.NdJ("click",function(){return e.onAdd()}),n._uU(30,"Add"),n.qZA()),2&r&&(n.Q6J("dataSource",e.ethernetPorts),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(3),n.Q6J("ngModel",e.newPort.port_number),n.xp6(2),n.Q6J("ngModel",e.newPort.vlan),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(11,_te))("ngModel",e.newPort.type),n.xp6(1),n.Q6J("ngForOf",e.portTypes),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(12,_te))("ngModel",e.newPort.ethertype),n.xp6(1),n.Q6J("ngForOf",e.etherTypes))},directives:[ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,Fn.KE,sr,ne.wV,ne.Fj,ne.JJ,ne.On,Oi.gD,Ct.sg,ln.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 gte=function(){return{standalone:!0}};function ySe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",12)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",12)(12,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",12)(18,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.category=a}),n.YNc(19,gSe,2,2,"mat-option",18),n.qZA()(),n.TgZ(20,"mat-form-field",19)(21,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetSwitchTemplate.console_type=a}),n.YNc(22,vSe,2,2,"mat-option",18),n.qZA()()()(),n.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),n._uU(26," Port settings "),n.qZA()(),n._UZ(27,"app-ports",21,22),n.qZA()(),n.TgZ(29,"div",23)(30,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(31,"Cancel"),n.qZA(),n.TgZ(32,"button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(33,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.name),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(11,gte))("ngModel",i.ethernetSwitchTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(12,gte))("ngModel",i.ethernetSwitchTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(5),n.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function bSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",27),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var CSe=function(r){return{shadowed:r}},y2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function wSe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function kSe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function TSe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function ESe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",22)(14,"mat-icon"),n._uU(15,"edit"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(10),n.s9C("routerLink",i.template_id)}}function MSe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,ESe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function SSe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,MSe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}y2.\u0275fac=function(r){return new(r||y2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql),n.Y36($n),n.Y36(ne.qu),n.Y36(Ku),n.Y36(kr))},y2.\u0275cmp=n.Xpm({type:y2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(sg,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,_Se,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet switch configuration"),n.qZA()()()(),n.YNc(8,ySe,34,13,"div",7),n.qZA(),n.YNc(9,bSe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,CSe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.ethernetSwitchTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,sg,mu],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 b2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();b2.\u0275fac=function(r){return new(r||b2)(n.Y36(xr),n.Y36(vr),n.Y36(Ql))},b2.\u0275cmp=n.Xpm({type:b2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,wSe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Ethernet switches templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,kSe,3,1,"button",7),n.qZA()()(),n.YNc(10,TSe,1,0,"app-empty-templates-list",8),n.YNc(11,SSe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),n.xp6(1),n.Q6J("ngIf",e.ethernetSwitchesTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 UH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Uc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();Uc.\u0275fac=function(r){return new(r||Uc)(n.LFG(Wo.zw))},Uc.\u0275prov=n.Yz7({token:Uc,factory:Uc.\u0275fac});var dp=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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["1920x1080","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]}}]),t}();function xSe(t,r){1&t&&n.Hsn(0)}dp.\u0275fac=function(r){return new(r||dp)},dp.\u0275prov=n.Yz7({token:dp,factory:dp.\u0275fac});var Tw=function(){function t(r){(0,j.Z)(this,t),this._elementRef=r}return(0,V.Z)(t,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),t}();Tw.\u0275fac=function(r){return new(r||Tw)(n.Y36(n.SBq))},Tw.\u0275dir=n.lG2({type:Tw,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var Ew=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});Ew.\u0275fac=function(r){return new(r||Ew)(n.Y36(n.Rgc))},Ew.\u0275dir=n.lG2({type:Ew,selectors:[["","cdkStepLabel",""]]});var ASe=0,Vh_NUMBER="number",Vh_EDIT="edit",Vh_DONE="done",Vh_ERROR="error",vte=new n.OlP("STEPPER_GLOBAL_OPTIONS"),f0=function(){function t(r,e){(0,j.Z)(this,t),this._stepper=r,this.interacted=!1,this.interactedStream=new n.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,V.Z)(t,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,Un.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,Un.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,Un.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,Un.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}}]),t}();f0.\u0275fac=function(r){return new(r||f0)(n.Y36((0,n.Gpc)(function(){return fp})),n.Y36(vte,8))},f0.\u0275cmp=n.Xpm({type:f0,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Ew,5),2&r)&&(n.iGM(o=n.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&n.Gf(n.Rgc,7),2&r)&&(n.iGM(i=n.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:[n.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.YNc(0,xSe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var fp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new qn.xQ,this.steps=new n.n_E,this._sortedHeaders=new n.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new n.vpe,this._orientation="horizontal",this._groupId=ASe++}return(0,V.Z)(t,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,Un.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,Un.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,ua.O)(this._steps),(0,Yr.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,ua.O)(this._stepHeader),(0,Yr.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 Ai.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,pr.of)()).pipe((0,ua.O)(this._layoutDirection()),(0,Yr.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]:Vh_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?Vh_ERROR:!e.completed||i?Vh_NUMBER:e.editable?Vh_EDIT:Vh_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Vh_NUMBER;return e._showError()&&e.hasError&&!i?Vh_ERROR:e.completed&&!i?Vh_DONE:e.completed&&i?o:e.editable&&i?Vh_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,Gr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==Gr.L_&&o!==Gr.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,Zi.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),t}();fp.\u0275fac=function(r){return new(r||fp)(n.Y36(Es.Is,8),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Ct.K0))},fp.\u0275dir=n.lG2({type:fp,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,f0,5),n.Suo(i,Tw,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._steps=o),n.iGM(o=n.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var C2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._stepper=r,this.type="submit"});C2.\u0275fac=function(r){return new(r||C2)(n.Y36(fp))},C2.\u0275dir=n.lG2({type:C2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._stepper.next()}),2&r&&n.Ikx("type",e.type)},inputs:{type:"type"}});var w2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._stepper=r,this.type="button"});w2.\u0275fac=function(r){return new(r||w2)(n.Y36(fp))},w2.\u0275dir=n.lG2({type:w2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&n.NdJ("click",function(){return e._stepper.previous()}),2&r&&n.Ikx("type",e.type)},inputs:{type:"type"}});var Mw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function OSe(t,r){if(1&t&&n.GkF(0,8),2&t){var e=n.oxw();n.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function ISe(t,r){if(1&t&&(n.TgZ(0,"span",13),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function PSe(t,r){if(1&t&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.completedLabel)}}function RSe(t,r){if(1&t&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._intl.editableLabel)}}function LSe(t,r){if(1&t&&(n.TgZ(0,"mat-icon",13),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e._getDefaultTextForState(e.state))}}function ZSe(t,r){if(1&t&&(n.ynx(0,9),n.YNc(1,ISe,2,1,"span",10),n.YNc(2,PSe,2,1,"span",11),n.YNc(3,RSe,2,1,"span",11),n.YNc(4,LSe,2,1,"mat-icon",12),n.BQk()),2&t){var e=n.oxw();n.Q6J("ngSwitch",e.state),n.xp6(1),n.Q6J("ngSwitchCase","number"),n.xp6(1),n.Q6J("ngIf","done"===e.state),n.xp6(1),n.Q6J("ngIf","edit"===e.state)}}function NSe(t,r){if(1&t&&(n.TgZ(0,"div",15),n.GkF(1,16),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function BSe(t,r){if(1&t&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.label)}}function FSe(t,r){if(1&t&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e._intl.optionalLabel)}}function USe(t,r){if(1&t&&(n.TgZ(0,"div",18),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Oqu(e.errorMessage)}}function HSe(t,r){}function jSe(t,r){if(1&t&&(n.Hsn(0),n.YNc(1,HSe,0,0,"ng-template",0)),2&t){var e=n.oxw();n.xp6(1),n.Q6J("cdkPortalOutlet",e._portal)}}Mw.\u0275fac=function(r){return new(r||Mw)},Mw.\u0275mod=n.oAB({type:Mw}),Mw.\u0275inj=n.cJS({imports:[[Es.vT]]});function WSe(t,r){1&t&&n._UZ(0,"div",9)}var yte=function(r,e){return{step:r,i:e}};function VSe(t,r){if(1&t&&(n.ynx(0),n.GkF(1,7),n.YNc(2,WSe,1,0,"div",8),n.BQk()),2&t){var e=r.$implicit,i=r.index,o=r.last;n.oxw(2);var a=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(3,yte,e,i)),n.xp6(1),n.Q6J("ngIf",!o)}}function YSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10),n.NdJ("@horizontalStepTransition.done",function(l){return n.CHM(e),n.oxw(2)._animationDone.next(l)}),n.GkF(1,11),n.qZA()}if(2&t){var i=r.$implicit,o=r.index,a=n.oxw(2);n.Q6J("@horizontalStepTransition",a._getAnimationDirection(o))("id",a._getStepContentId(o)),n.uIk("aria-labelledby",a._getStepLabelId(o))("aria-expanded",a.selectedIndex===o),n.xp6(1),n.Q6J("ngTemplateOutlet",i.content)}}function GSe(t,r){if(1&t&&(n.ynx(0),n.TgZ(1,"div",3),n.YNc(2,VSe,3,6,"ng-container",4),n.qZA(),n.TgZ(3,"div",5),n.YNc(4,YSe,2,5,"div",6),n.qZA(),n.BQk()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngForOf",e.steps),n.xp6(2),n.Q6J("ngForOf",e.steps)}}function qSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",13),n.GkF(1,7),n.TgZ(2,"div",14)(3,"div",15),n.NdJ("@verticalStepTransition.done",function(f){return n.CHM(e),n.oxw(2)._animationDone.next(f)}),n.TgZ(4,"div",16),n.GkF(5,11),n.qZA()()()()}if(2&t){var i=r.$implicit,o=r.index,a=r.last,s=n.oxw(2),l=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",n.WLB(9,yte,i,o)),n.xp6(1),n.ekj("mat-stepper-vertical-line",!a),n.xp6(1),n.Q6J("@verticalStepTransition",s._getAnimationDirection(o))("id",s._getStepContentId(o)),n.uIk("aria-labelledby",s._getStepLabelId(o))("aria-expanded",s.selectedIndex===o),n.xp6(2),n.Q6J("ngTemplateOutlet",i.content)}}function KSe(t,r){if(1&t&&(n.ynx(0),n.YNc(1,qSe,6,12,"div",12),n.BQk()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.steps)}}function JSe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-step-header",17),n.NdJ("click",function(){return n.CHM(e).step.select()})("keydown",function(l){return n.CHM(e),n.oxw()._onKeydown(l)}),n.qZA()}if(2&t){var i=r.step,o=r.i,a=n.oxw();n.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),n.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),n.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 Yh=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(Ew);Yh.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Yh)))(e||Yh)}}(),Yh.\u0275dir=n.lG2({type:Yh,selectors:[["","matStepLabel",""]],features:[n.qOj]});var Gh=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});Gh.\u0275fac=function(r){return new(r||Gh)},Gh.\u0275prov=n.Yz7({token:Gh,factory:Gh.\u0275fac,providedIn:"root"});var XSe={provide:Gh,deps:[[new n.FiY,new n.tp0,Gh]],useFactory:function QSe(t){return t||new Gh}},$Se=(0,ln.pj)(function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){return(0,j.Z)(this,e),r.call(this,i)}return(0,V.Z)(e)}(Tw),"primary"),Sw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.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,V.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 Yh?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof Yh?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}($Se);Sw.\u0275fac=function(r){return new(r||Sw)(n.Y36(Gh),n.Y36(Ai.tE),n.Y36(n.SBq),n.Y36(n.sBO))},Sw.\u0275cmp=n.Xpm({type:Sw,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:[n.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&&(n._UZ(0,"div",0),n.TgZ(1,"div")(2,"div",1),n.YNc(3,OSe,1,2,"ng-container",2),n.YNc(4,ZSe,5,4,"ng-container",3),n.qZA()(),n.TgZ(5,"div",4),n.YNc(6,NSe,2,1,"div",5),n.YNc(7,BSe,2,1,"div",5),n.YNc(8,FSe,2,1,"div",6),n.YNc(9,USe,2,1,"div",7),n.qZA()),2&r&&(n.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),n.xp6(1),n.Gre("mat-step-icon-state-",e.state," mat-step-icon"),n.ekj("mat-step-icon-selected",e.selected),n.xp6(1),n.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),n.xp6(1),n.Q6J("ngIf",e._templateLabel()),n.xp6(1),n.Q6J("ngIf",e._stringLabel()),n.xp6(1),n.Q6J("ngIf",e.optional&&"error"!=e.state),n.xp6(1),n.Q6J("ngIf","error"==e.state))},directives:[Vn,ln.wG,Ct.RF,Ct.n9,Ct.tP,Ct.ED,Ct.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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}\n"],encapsulation:2,changeDetection:0});var bte={horizontalStepTransition:(0,rn.X$)("horizontalStepTransition",[(0,rn.SB)("previous",(0,rn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,rn.SB)("current",(0,rn.oB)({transform:"none",visibility:"inherit"})),(0,rn.SB)("next",(0,rn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,rn.eR)("* => *",(0,rn.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,rn.X$)("verticalStepTransition",[(0,rn.SB)("previous",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("next",(0,rn.oB)({height:"0px",visibility:"hidden"})),(0,rn.SB)("current",(0,rn.oB)({height:"*",visibility:"inherit"})),(0,rn.eR)("* <=> current",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])},k2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.templateRef=r});k2.\u0275fac=function(r){return new(r||k2)(n.Y36(n.Rgc))},k2.\u0275dir=n.lG2({type:k2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var T2=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._template=r});T2.\u0275fac=function(r){return new(r||T2)(n.Y36(n.Rgc))},T2.\u0275dir=n.lG2({type:T2,selectors:[["ng-template","matStepContent",""]]});var Hc=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=Io.w.EMPTY,l}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,xo.w)(function(){return o._stepper.selectionChange.pipe((0,mr.U)(function(a){return a.selectedStep===o}),(0,ua.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new yo.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}(f0);Hc.\u0275fac=function(r){return new(r||Hc)(n.Y36((0,n.Gpc)(function(){return Qu})),n.Y36(ln.rD,4),n.Y36(n.s_b),n.Y36(vte,8))},Hc.\u0275cmp=n.Xpm({type:Hc,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Yh,5),n.Suo(i,T2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.stepLabel=o.first),n.iGM(o=n.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[n._Bn([{provide:ln.rD,useExisting:Hc},{provide:f0,useExisting:Hc}]),n.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(n.F$t(),n.YNc(0,jSe,2,1,"ng-template"))},directives:[yo.Pl],encapsulation:2,changeDetection:0});var p0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(fp);p0.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(p0)))(e||p0)}}(),p0.\u0275dir=n.lG2({type:p0,features:[n.qOj]});var xw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p0);xw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(xw)))(e||xw)}}(),xw.\u0275dir=n.lG2({type:xw,selectors:[["mat-horizontal-stepper"]],features:[n.qOj]});var Dw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(p0);Dw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Dw)))(e||Dw)}}(),Dw.\u0275dir=n.lG2({type:Dw,selectors:[["mat-vertical-stepper"]],features:[n.qOj]});var Qu=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;(0,j.Z)(this,e),(l=r.call(this,i,o,a,s)).steps=new n.n_E,l.animationDone=new n.vpe,l.labelPosition="end",l._iconOverrides={},l._animationDone=new qn.xQ;var u=a.nativeElement.nodeName.toLowerCase();return l.orientation="mat-vertical-stepper"===u?"vertical":"horizontal",l}return(0,V.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;(0,Ht.Z)((0,sn.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,Yr.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,OM.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Yr.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}}]),e}(fp);Qu.\u0275fac=function(r){return new(r||Qu)(n.Y36(Es.Is,8),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Ct.K0))},Qu.\u0275cmp=n.Xpm({type:Qu,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Hc,5),n.Suo(i,k2,5)),2&r)&&(n.iGM(o=n.CRH())&&(e._steps=o),n.iGM(o=n.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(Sw,5),2&r)&&(n.iGM(i=n.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(r,e){2&r&&(n.uIk("aria-orientation",e.orientation),n.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))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[n._Bn([{provide:fp,useExisting:Qu},{provide:xw,useExisting:Qu},{provide:Dw,useExisting:Qu}]),n.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",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&&(n.ynx(0,0),n.YNc(1,GSe,5,2,"ng-container",1),n.YNc(2,KSe,2,1,"ng-container",1),n.BQk(),n.YNc(3,JSe,1,23,"ng-template",null,2,n.W1O)),2&r&&(n.Q6J("ngSwitch",e.orientation),n.xp6(1),n.Q6J("ngSwitchCase","horizontal"),n.xp6(1),n.Q6J("ngSwitchCase","vertical"))},directives:[Sw,Ct.RF,Ct.n9,Ct.sg,Ct.tP,Ct.O5],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-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-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.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-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[bte.horizontalStepTransition,bte.verticalStepTransition]},changeDetection:0});var Aw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(C2);Aw.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Aw)))(e||Aw)}}(),Aw.\u0275dir=n.lG2({type:Aw,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("type",e.type)},inputs:{type:"type"},features:[n.qOj]});var Ow=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(w2);Ow.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Ow)))(e||Ow)}}(),Ow.\u0275dir=n.lG2({type:Ow,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&n.Ikx("type",e.type)},inputs:{type:"type"},features:[n.qOj]});var Iw=(0,V.Z)(function t(){(0,j.Z)(this,t)});function exe(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.image," ")}}Iw.\u0275fac=function(r){return new(r||Iw)},Iw.\u0275mod=n.oAB({type:Iw}),Iw.\u0275inj=n.cJS({providers:[XSe,ln.rD],imports:[[ln.BQ,Ct.ez,yo.eL,Fh,Mw,rg,ln.si],ln.BQ]});var Cte=function(){return{standalone:!0}};function txe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedImage=a}),n.YNc(1,exe,2,2,"mat-option",24),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("ngModelOptions",n.DdM(3,Cte))("ngModel",i.selectedImage),n.xp6(1),n.Q6J("ngForOf",i.dockerImages)}}function nxe(t,r){1&t&&(n.TgZ(0,"div")(1,"mat-form-field",16),n._UZ(2,"input",32),n.qZA()())}function rxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var E2=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,this.consoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new UH,this.virtualMachineForm=this.formBuilder.group({filename:new ne.NI(null,ne.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new ne.NI("1",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),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()}))}}]),t}();function ixe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}E2.\u0275fac=function(r){return new(r||E2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Ml),n.Y36(dp),n.Y36(Yd.X))},E2.\u0275cmp=n.Xpm({type:E2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"New Docker container template"),n.qZA()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(11,"Run this Docker container locally"),n.qZA()()(),n.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(16,"Existing image"),n.qZA(),n.TgZ(17,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(18,"New image"),n.qZA()(),n.YNc(19,txe,2,4,"mat-select",13),n.YNc(20,nxe,3,0,"div",14),n.qZA()(),n.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),n._UZ(24,"input",17),n.qZA()()(),n.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),n._UZ(28,"input",19),n.qZA()()(),n.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),n.qZA()()(),n.TgZ(32,"mat-step",22)(33,"mat-select",23),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),n.YNc(34,rxe,2,2,"mat-option",24),n.qZA()(),n.TgZ(35,"mat-step",25)(36,"mat-form-field",16)(37,"textarea",26),n.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),n.qZA()()()()(),n.TgZ(38,"div",27)(39,"button",28),n.NdJ("click",function(){return e.goBack()}),n._uU(40,"Cancel"),n.qZA(),n.TgZ(41,"button",29),n.NdJ("click",function(){return e.addTemplate()}),n._uU(42,"Add template"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),n.xp6(1),n.Q6J("formGroup",e.virtualMachineForm),n.xp6(6),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected),n.xp6(1),n.Q6J("completed",e.containerNameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.containerNameForm),n.xp6(3),n.Q6J("completed",e.networkAdaptersForm.get("adapters").value),n.xp6(1),n.Q6J("formGroup",e.networkAdaptersForm),n.xp6(3),n.Q6J("completed",e.dockerTemplate.start_command),n.xp6(2),n.Q6J("ngModel",e.dockerTemplate.start_command),n.xp6(1),n.Q6J("completed",e.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(17,Cte))("ngModel",e.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(3),n.Q6J("ngModel",e.dockerTemplate.environment))},directives:[Qu,Hc,_s,Ys,ne._Y,ne.JL,ne.sg,Ct.O5,Oi.gD,ne.JJ,ne.On,Ct.sg,ln.ey,Fn.KE,sr,ne.Fj,ne.u,ne.wV,Tn],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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function oxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function axe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function sxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function lxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}M2.\u0275fac=function(r){return new(r||M2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},M2.\u0275cmp=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,ixe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy Docker container template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[Ct.O5,Tn,Vn,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u],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 h0=function(){return{standalone:!0}};function uxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",12)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",12)(12,"mat-select",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.category=a}),n.YNc(13,axe,2,2,"mat-option",16),n.qZA()(),n.TgZ(14,"mat-form-field",12)(15,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.symbol=a}),n.qZA()(),n.TgZ(16,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(17,"Choose symbol"),n.qZA(),n._UZ(18,"br")(19,"br"),n.TgZ(20,"mat-form-field",12)(21,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.start_command=a}),n.qZA()(),n.TgZ(22,"mat-form-field",12)(23,"input",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.adapters=a}),n.qZA()(),n.TgZ(24,"mat-form-field",21)(25,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_type=a}),n.YNc(26,sxe,2,2,"mat-option",16),n.qZA()(),n.TgZ(27,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_auto_start=a}),n._uU(28," Auto start console "),n.qZA(),n.TgZ(29,"mat-form-field",21)(30,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_resolution=a}),n.YNc(31,lxe,2,2,"mat-option",16),n.qZA()(),n.TgZ(32,"mat-form-field",12)(33,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_http_port=a}),n.qZA()(),n.TgZ(34,"mat-form-field",12)(35,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.console_http_path=a}),n.qZA()()(),n.TgZ(36,"h6"),n._uU(37,"Environment"),n.qZA(),n.TgZ(38,"mat-form-field",12)(39,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.environment=a}),n.qZA()()(),n.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),n._uU(43," Advanced "),n.qZA()(),n.TgZ(44,"h6"),n._uU(45,"Extra hosts"),n.qZA(),n.TgZ(46,"mat-form-field",12)(47,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.extra_hosts=a}),n.qZA()()(),n.TgZ(48,"mat-expansion-panel")(49,"mat-expansion-panel-header")(50,"mat-panel-title"),n._uU(51," Usage "),n.qZA()(),n.TgZ(52,"mat-form-field",12)(53,"textarea",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().dockerTemplate.usage=a}),n.qZA()()()(),n.TgZ(54,"div",28)(55,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(56,"Cancel"),n.qZA(),n.TgZ(57,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(58,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.name),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.default_name_format),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(25,h0))("ngModel",i.dockerTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(26,h0))("ngModel",i.dockerTemplate.start_command),n.xp6(2),n.Q6J("ngModel",i.dockerTemplate.adapters),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(27,h0))("ngModel",i.dockerTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(28,h0))("ngModel",i.dockerTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(29,h0))("ngModel",i.dockerTemplate.console_resolution),n.xp6(1),n.Q6J("ngForOf",i.consoleResolutions),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(30,h0))("ngModel",i.dockerTemplate.console_http_port),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(31,h0))("ngModel",i.dockerTemplate.console_http_path),n.xp6(4),n.Q6J("ngModel",i.dockerTemplate.environment),n.xp6(8),n.Q6J("ngModel",i.dockerTemplate.extra_hosts),n.xp6(6),n.Q6J("ngModel",i.dockerTemplate.usage)}}function cxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",31),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var dxe=function(r){return{shadowed:r}},S2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function fxe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function pxe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function hxe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function mxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(19,"mat-icon"),n._uU(20,"delete"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function _xe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,mxe,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.dockerTemplates)}}function gxe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,_xe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}S2.\u0275fac=function(r){return new(r||S2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36($n),n.Y36(dp),n.Y36(ne.qu),n.Y36(kr))},S2.\u0275cmp=n.Xpm({type:S2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,oxe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Docker image configuration"),n.qZA()()()(),n.YNc(8,uxe,59,32,"div",7),n.qZA(),n.YNc(9,cxe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,dxe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.dockerTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,ne.Fj,sr,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,ne.wV,Ui,mu],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 t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();x2.\u0275fac=function(r){return new(r||x2)(n.Y36(xr),n.Y36(vr),n.Y36(Uc),n.Y36(kr))},x2.\u0275cmp=n.Xpm({type:x2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,fxe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Docker container templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,pxe,3,1,"button",7),n.qZA()()(),n.YNc(10,hxe,1,0,"app-empty-templates-list",8),n.YNc(11,gxe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.dockerTemplates.length),n.xp6(1),n.Q6J("ngIf",e.dockerTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 jc=function(){function t(){(0,j.Z)(this,t),this.countSource=new qn.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new qn.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,V.Z)(t,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),t}();jc.\u0275fac=function(r){return new(r||jc)},jc.\u0275prov=n.Yz7({token:jc,factory:jc.\u0275fac,providedIn:"root"});var vxe=["primaryValueBar"],yxe=(0,ln.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}(),"primary"),bxe=new n.OlP("mat-progress-bar-location",{providedIn:"root",factory:function Cxe(){var t=(0,n.f3M)(Ct.K0),r=t?t.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var wxe=new n.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),kxe=0,m0=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;(0,j.Z)(this,e),(f=r.call(this,i))._ngZone=o,f._animationMode=a,f._changeDetectorRef=u,f._isNoopAnimation=!1,f._value=0,f._bufferValue=0,f.animationEnd=new n.vpe,f._animationEndSubscription=Io.w.EMPTY,f.mode="determinate",f.progressbarId="mat-progress-bar-".concat(kxe++);var h=s?s.getPathname().split("#")[0]:"";return f._rectangleFillValue="url('".concat(h,"#").concat(f.progressbarId,"')"),f._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(f.color=f.defaultColor=l.color),f.mode=l.mode||f.mode),f}return(0,V.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=wte((0,Un.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=wte(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,Pf.R)(a,"transitionend").pipe((0,Ei.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}(yxe);function wte(t){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,t))}m0.\u0275fac=function(r){return new(r||m0)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ta.Qb,8),n.Y36(bxe,8),n.Y36(wxe,8),n.Y36(n.sBO))},m0.\u0275cmp=n.Xpm({type:m0,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(vxe,5),2&r)&&(n.iGM(i=n.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&&(n.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.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&&(n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),n._UZ(4,"circle",3),n.qZA()(),n._UZ(5,"rect",4),n.qZA(),n.kcU(),n._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),n.qZA()),2&r&&(n.xp6(3),n.Q6J("id",e.progressbarId),n.xp6(2),n.uIk("fill",e._rectangleFillValue),n.xp6(1),n.Q6J("ngStyle",e._bufferTransform()),n.xp6(1),n.Q6J("ngStyle",e._primaryTransform()))},directives:[Ct.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.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)}}\n'],encapsulation:2,changeDetection:0});var Pw=(0,V.Z)(function t(){(0,j.Z)(this,t)});Pw.\u0275fac=function(r){return new(r||Pw)},Pw.\u0275mod=n.oAB({type:Pw}),Pw.\u0275inj=n.cJS({imports:[[Ct.ez,ln.BQ],ln.BQ]});var qh=function(){function t(r,e,i){(0,j.Z)(this,t),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,V.Z)(t,[{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()}}]),t}();qh.\u0275fac=function(r){return new(r||qh)(n.Y36(AH),n.Y36(uZ),n.Y36(jc))},qh.\u0275cmp=n.Xpm({type:qh,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&&(n.TgZ(0,"p"),n._uU(1),n.qZA(),n.TgZ(2,"div",0)(3,"div",1),n._UZ(4,"mat-progress-bar",2),n.qZA(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return e.cancelItem()}),n._uU(7,"Cancel"),n.qZA()()()),2&r&&(n.xp6(1),n.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),n.xp6(3),n.Q6J("value",e.uploadProgress))},directives:[m0,Tn],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var HH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),zc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();zc.\u0275fac=function(r){return new(r||zc)(n.LFG(Wo.zw))},zc.\u0275prov=n.Yz7({token:zc,factory:zc.\u0275fac});var Kh=function(){function t(){(0,j.Z)(this,t),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,V.Z)(t,[{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}}}}]),t}();function Txe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function Exe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function Mxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Sxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function xxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",20)(1,"mat-select",39),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw(2).onChassisChosen(a)}),n.YNc(2,Sxe,2,2,"mat-option",22),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function Dxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-checkbox",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).isEtherSwitchRouter=a}),n._uU(1," This is an EtherSwitch router "),n.qZA()}if(2&t){var i=n.oxw(2);n.Q6J("ngModel",i.isEtherSwitchRouter)}}function Axe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}Kh.\u0275fac=function(r){return new(r||Kh)},Kh.\u0275prov=n.Yz7({token:Kh,factory:Kh.\u0275fac});var kte=function(){return{standalone:!0}};function Oxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",43),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,Axe,2,2,"mat-option",22),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,kte)),n.xp6(1),n.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function Ixe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Oxe,2,5,"mat-select",42),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][e])}}var Pxe=function(){return[0,1,2,3,4,5,6,7]};function Rxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Ixe,2,1,"div",41),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Pxe)))}function Lxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Zxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",43),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkModulesForTemplate[l]=s}),n.YNc(1,Lxe,2,2,"mat-option",22),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","WIC ",i,""),n.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",n.DdM(4,kte)),n.xp6(1),n.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function Nxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Zxe,2,5,"mat-select",42),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][e])}}var Bxe=function(){return[0,1,2,3]};function Fxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Nxe,2,1,"div",41),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Bxe)))}function Uxe(t,r){if(1&t){var e=n.EpF();n.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),n.NdJ("click",function(){return n.CHM(e),n.oxw().setControllerType("local")}),n._uU(6,"Run this IOS router locally"),n.qZA()()(),n.TgZ(7,"mat-step",15)(8,"input",16,17),n.NdJ("change",function(a){return n.CHM(e),n.oxw().addImage(a)}),n.qZA(),n.TgZ(10,"button",18),n.NdJ("click",function(){return n.CHM(e),n.MAs(9).click()}),n._uU(11,"Click to add image"),n.qZA(),n._uU(12," or create from existing one "),n.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().onImageChosen(a)}),n.YNc(16,Exe,2,2,"mat-option",22),n.qZA()()()(),n.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),n._UZ(20,"input",24),n.qZA(),n.TgZ(21,"mat-form-field",20)(22,"mat-select",25),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().onPlatformChosen(a)}),n.YNc(23,Mxe,2,2,"mat-option",22),n.qZA()(),n.YNc(24,xxe,3,1,"mat-form-field",26),n.qZA(),n.YNc(25,Dxe,2,1,"mat-checkbox",27),n.qZA(),n.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),n._UZ(29,"input",29),n.TgZ(30,"span",30),n._uU(31,"MB"),n.qZA()(),n.TgZ(32,"mat-label")(33,"a",31),n._uU(34,"Check for minimum and maximum RAM requirement"),n.qZA()()()(),n.TgZ(35,"mat-step",32),n.YNc(36,Rxe,2,2,"div",33),n.qZA(),n.TgZ(37,"mat-step",34),n.YNc(38,Fxe,2,2,"div",33),n.qZA(),n.TgZ(39,"mat-step",35)(40,"mat-form-field",20)(41,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlepc=a}),n.qZA()()()()(),n.TgZ(42,"div",37)(43,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(44,"Cancel"),n.qZA(),n.TgZ(45,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(46,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",i.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",i.iosImageForm.get("imageName").value),n.xp6(1),n.Q6J("uploader",i.uploader),n.xp6(5),n.Q6J("formGroup",i.iosImageForm),n.xp6(3),n.Q6J("ngForOf",i.iosImages),n.xp6(1),n.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),n.xp6(1),n.Q6J("formGroup",i.iosNameForm),n.xp6(5),n.Q6J("ngForOf",i.platforms),n.xp6(1),n.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),n.xp6(1),n.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),n.xp6(1),n.Q6J("completed",i.iosMemoryForm.get("memory").value),n.xp6(1),n.Q6J("formGroup",i.iosMemoryForm),n.xp6(6),n.s9C("href",i.ciscoUrl,n.LSH),n.xp6(3),n.Q6J("ngIf",i.selectedPlatform),n.xp6(2),n.Q6J("ngIf",i.iosNameForm.get("platform").value),n.xp6(3),n.Q6J("ngModel",i.iosTemplate.idlepc)}}var D2=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.uploadServiceService=h,this.snackBar=v,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 HH,this.iosImageForm=this.formBuilder.group({imageName:new ne.NI(null,[ne.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new ne.NI(null,[ne.kI.required]),platform:new ne.NI(null,[ne.kI.required]),chassis:new ne.NI(null,[ne.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{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=ms(),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()}}]),t}();function Hxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}D2.\u0275fac=function(r){return new(r||D2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(ne.qu),n.Y36(kr),n.Y36(Ml),n.Y36(Kh),n.Y36(Yd.X),n.Y36(jc),n.Y36(Fc))},D2.\u0275cmp=n.Xpm({type:D2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,Txe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New IOS router template"),n.qZA()()()(),n.YNc(8,Uxe,47,17,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.iosTemplate))},directives:[Ct.O5,Tn,Vn,Qu,Hc,_s,Ys,Zc,ne._Y,ne.JL,ne.sg,Fn.KE,Oi.gD,ne.JJ,ne.u,Ct.sg,ln.ey,sr,ne.Fj,Ui,ne.On,ne.wV,Fn.R9,Fn.hX],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 A2=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function jxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function zxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Wxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}A2.\u0275fac=function(r){return new(r||A2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},A2.\u0275cmp=n.Xpm({type:A2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,Hxe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy IOS router template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.formGroup),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u],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 Jh=function(){return{standalone:!0}};function Vxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",41),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,Wxe,2,2,"mat-option",14),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,Jh)),n.xp6(1),n.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function Yxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Vxe,2,5,"mat-select",40),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][e])}}var Tte=function(){return[0,1,2,3,4,5,6,7]};function Gxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Yxe,2,1,"div",39),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Tte)))}function qxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function Kxe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",41),n.NdJ("ngModelChange",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).networkAdaptersForTemplate[l]=s}),n.YNc(1,qxe,2,2,"mat-option",14),n.qZA()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.MGl("placeholder","Slot ",i,""),n.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",n.DdM(4,Jh)),n.xp6(1),n.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function Jxe(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Kxe,2,5,"mat-select",40),n.qZA()),2&t){var e=r.$implicit,i=n.oxw(3);n.xp6(1),n.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][e])}}function Qxe(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,Jxe,2,1,"div",39),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,Tte)))}function Xxe(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function $xe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",42),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic0=a}),n.YNc(2,Xxe,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function e2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function t2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",43),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic1=a}),n.YNc(2,e2e,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function n2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",38),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function r2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",44),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iosTemplate.wic2=a}),n.YNc(2,n2e,2,2,"mat-option",14),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",n.DdM(3,Jh)),n.xp6(1),n.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function i2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",7)(7,"mat-form-field",8)(8,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",8)(10,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-label"),n._uU(12),n.qZA(),n._UZ(13,"br")(14,"br"),n.TgZ(15,"mat-label"),n._uU(16),n.qZA(),n._UZ(17,"br")(18,"br"),n.TgZ(19,"mat-form-field",8)(20,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.symbol=a}),n.qZA()(),n.TgZ(21,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(22,"Choose symbol"),n.qZA(),n._UZ(23,"br")(24,"br"),n.TgZ(25,"mat-form-field",8)(26,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.category=a}),n.YNc(27,jxe,2,2,"mat-option",14),n.qZA()(),n.TgZ(28,"mat-form-field",8)(29,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.image=a}),n.qZA()(),n.TgZ(30,"mat-form-field",8)(31,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.startup_config=a}),n.qZA()(),n.TgZ(32,"mat-form-field",8)(33,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.private_config=a}),n.qZA()()(),n.TgZ(34,"mat-form-field",18)(35,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.console_type=a}),n.YNc(36,zxe,2,2,"mat-option",14),n.qZA()(),n.TgZ(37,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.console_auto_start=a}),n._uU(38," Auto start console "),n.qZA()(),n.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),n._uU(42," Memories and disks "),n.qZA()(),n.TgZ(43,"form",7)(44,"mat-form-field",8)(45,"input",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.ram=a}),n.qZA(),n.TgZ(46,"span",22),n._uU(47,"MB"),n.qZA()(),n.TgZ(48,"mat-form-field",8)(49,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.nvram=a}),n.qZA(),n.TgZ(50,"span",22),n._uU(51,"MB"),n.qZA()(),n.TgZ(52,"mat-form-field",8)(53,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.iomem=a}),n.qZA()(),n.TgZ(54,"mat-form-field",8)(55,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.disk0=a}),n.qZA()(),n.TgZ(56,"mat-form-field",8)(57,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.disk1=a}),n.qZA()()(),n.TgZ(58,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.auto_delete_disks=a}),n._uU(59," Automatically delete NVRAM and disk files "),n.qZA()(),n.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),n._uU(63," Slots "),n.qZA()(),n.TgZ(64,"h6"),n._uU(65,"Adapters"),n.qZA(),n.YNc(66,Gxe,2,2,"div",27),n.YNc(67,Qxe,2,2,"div",27),n._UZ(68,"br")(69,"br"),n.TgZ(70,"h6"),n._uU(71,"WICs"),n.qZA(),n.YNc(72,$xe,3,4,"div",27),n.YNc(73,t2e,3,4,"div",27),n.YNc(74,r2e,3,4,"div",27),n.qZA(),n.TgZ(75,"mat-expansion-panel")(76,"mat-expansion-panel-header")(77,"mat-panel-title"),n._uU(78," Advanced "),n.qZA()(),n.TgZ(79,"form",7)(80,"mat-form-field",8)(81,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.system_id=a}),n.qZA()(),n.TgZ(82,"mat-form-field",8)(83,"input",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.mac_addr=a}),n.qZA()(),n.TgZ(84,"mat-form-field",8)(85,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlepc=a}),n.qZA()(),n.TgZ(86,"mat-form-field",8)(87,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlemax=a}),n.qZA()(),n.TgZ(88,"mat-form-field",8)(89,"input",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.idlesleep=a}),n.qZA()(),n.TgZ(90,"mat-form-field",8)(91,"input",33),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.exec_area=a}),n.qZA()()(),n.TgZ(92,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.mmap=a}),n._uU(93," Enable mmap support "),n.qZA(),n._UZ(94,"br")(95,"br"),n.TgZ(96,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.sparsemem=a}),n._uU(97," Enable sparse memory supoport "),n.qZA()(),n.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),n._uU(101," Usage "),n.qZA()(),n.TgZ(102,"mat-form-field",8)(103,"textarea",34),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iosTemplate.usage=a}),n.qZA()()()(),n.TgZ(104,"div",35)(105,"button",36),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(106,"Cancel"),n.qZA(),n.TgZ(107,"button",37),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(108,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.name),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.default_name_format),n.xp6(2),n.hij("Platform - ",i.iosTemplate.platform,""),n.xp6(4),n.hij("Chassis - ",i.iosTemplate.chassis,""),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(40,Jh))("ngModel",i.iosTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.image),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.startup_config),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(41,Jh))("ngModel",i.iosTemplate.private_config),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.console_auto_start),n.xp6(6),n.Q6J("formGroup",i.memoryForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.ram),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.nvram),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.iomem),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.disk0),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.disk1),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.auto_delete_disks),n.xp6(8),n.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),n.xp6(5),n.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),n.xp6(1),n.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),n.xp6(5),n.Q6J("formGroup",i.advancedForm),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.system_id),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(42,Jh))("ngModel",i.iosTemplate.mac_addr),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(43,Jh))("ngModel",i.iosTemplate.idlepc),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.idlemax),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.idlesleep),n.xp6(2),n.Q6J("ngModel",i.iosTemplate.exec_area),n.xp6(1),n.Q6J("ngModel",i.iosTemplate.mmap),n.xp6(4),n.Q6J("ngModel",i.iosTemplate.sparsemem),n.xp6(7),n.Q6J("ngModel",i.iosTemplate.usage)}}function o2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",45),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var a2e=function(r){return{shadowed:r}},O2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required),iomemory:new ne.NI("",ne.kI.required),disk0:new ne.NI("",ne.kI.required),disk1:new ne.NI("",ne.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new ne.NI("",ne.kI.required),idlemax:new ne.NI("",ne.kI.required),idlesleep:new ne.NI("",ne.kI.required),execarea:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function s2e(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function l2e(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function u2e(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function c2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22)(19,"mat-icon"),n._uU(20,"edit"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(15),n.s9C("routerLink",i.template_id)}}function d2e(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,c2e,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.iosTemplates)}}function f2e(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,d2e,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}O2.\u0275fac=function(r){return new(r||O2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36($n),n.Y36(ne.qu),n.Y36(Kh),n.Y36(kr))},O2.\u0275cmp=n.Xpm({type:O2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Dynamips IOS Router configuration"),n.qZA()()(),n.YNc(5,i2e,109,44,"div",4),n.qZA(),n.YNc(6,o2e,1,2,"app-symbols-menu",5)),2&r&&(n.Q6J("ngClass",n.VKq(3,a2e,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.iosTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},directives:[Ct.mk,Ct.O5,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Fn.hX,Tn,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,mu],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 t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();I2.\u0275fac=function(r){return new(r||I2)(n.Y36(xr),n.Y36(vr),n.Y36(zc),n.Y36(kr))},I2.\u0275cmp=n.Xpm({type:I2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,s2e,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"IOS router templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,l2e,3,1,"button",7),n.qZA()()(),n.YNc(10,u2e,1,0,"app-empty-templates-list",8),n.YNc(11,f2e,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.iosTemplates.length),n.xp6(1),n.Q6J("ngIf",e.iosTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 jH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Wc=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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)}}]),t}();function p2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function h2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function m2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.path),n.xp6(1),n.hij(" ",e.path," ")}}Wc.\u0275fac=function(r){return new(r||Wc)(n.LFG(Wo.zw))},Wc.\u0275prov=n.Yz7({token:Wc,factory:Wc.\u0275fac});var Ete=function(){return{standalone:!0}};function _2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",15)(1,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.path=a}),n.YNc(2,m2e,2,2,"mat-option",20),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",n.DdM(3,Ete)),n.xp6(1),n.Q6J("ngForOf",i.iouImages)}}function g2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",28,29),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",30),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA(),n.TgZ(5,"mat-form-field",31),n._UZ(6,"input",32),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("uploader",i.uploader)}}var P2=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,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 jH,this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{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=ms(),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()}}]),t}();function v2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}P2.\u0275fac=function(r){return new(r||P2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Ml),n.Y36(Yd.X),n.Y36(jc),n.Y36(Fc))},P2.\u0275cmp=n.Xpm({type:P2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,p2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New IOU device template"),n.qZA()()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(14,"Run this IOU device locally"),n.qZA()()(),n.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),n._UZ(18,"input",16),n.qZA()()(),n.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(23,"Existing image"),n.qZA(),n.TgZ(24,"mat-radio-button",18),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(25,"New image"),n.qZA()(),n.TgZ(26,"mat-form-field",15)(27,"mat-select",19),n.NdJ("ngModelChange",function(o){return e.selectedType=o}),n.YNc(28,h2e,2,2,"mat-option",20),n.qZA()(),n.YNc(29,_2e,3,4,"mat-form-field",21),n.YNc(30,g2e,7,1,"div",22),n.qZA()()()(),n.TgZ(31,"div",23)(32,"button",24),n.NdJ("click",function(){return e.goBack()}),n._uU(33,"Cancel"),n.qZA(),n.TgZ(34,"button",25),n.NdJ("click",function(){return e.addTemplate()}),n._uU(35,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.templateNameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.templateNameForm),n.xp6(4),n.Q6J("formGroup",e.imageForm),n.xp6(7),n.Q6J("ngModel",e.selectedType)("ngModelOptions",n.DdM(11,Ete)),n.xp6(1),n.Q6J("ngForOf",e.types),n.xp6(1),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected))},directives:[Ct.O5,Tn,Vn,Qu,Hc,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Zc],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 R2=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),t}();R2.\u0275fac=function(r){return new(r||R2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},R2.\u0275cmp=n.Xpm({type:R2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,v2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy IOU device template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u],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 t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),t}();function y2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function b2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function C2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function w2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",2)(1,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iouTemplate.ram=a}),n.qZA(),n.TgZ(2,"span",37),n._uU(3,"MB"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iouTemplate.ram)}}function k2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",2)(1,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).iouTemplate.nvram=a}),n.qZA(),n.TgZ(2,"span",37),n._uU(3,"MB"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.iouTemplate.nvram)}}lg.\u0275fac=function(r){return new(r||lg)},lg.\u0275prov=n.Yz7({token:lg,factory:lg.\u0275fac});var Mte=function(){return{standalone:!0}};function T2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",2)(10,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",2)(12,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",2)(18,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.category=a}),n.YNc(19,b2e,2,2,"mat-option",18),n.qZA()(),n.TgZ(20,"input",19,20),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(22,"button",21),n.NdJ("click",function(){return n.CHM(e),n.MAs(21).click()}),n._uU(23,"Browse"),n.qZA(),n.TgZ(24,"mat-form-field",22)(25,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.path=a}),n.qZA()(),n.TgZ(26,"mat-form-field",2)(27,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.startup_config=a}),n.qZA()(),n.TgZ(28,"mat-form-field",2)(29,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.private_config=a}),n.qZA()()(),n.TgZ(30,"mat-form-field",26)(31,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.console_type=a}),n.YNc(32,C2e,2,2,"mat-option",18),n.qZA()(),n.TgZ(33,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.console_auto_start=a}),n._uU(34," Auto start console "),n.qZA(),n._UZ(35,"br"),n.TgZ(36,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.l1_keepalives=a}),n._uU(37," Enable layer 1 keepalive messages (non-functional) "),n.qZA(),n._UZ(38,"br"),n.TgZ(39,"mat-checkbox",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().defaultSettings=a}),n._uU(40," Use default IOU values for memories "),n.qZA(),n.YNc(41,w2e,4,1,"mat-form-field",29),n.YNc(42,k2e,4,1,"mat-form-field",29),n.qZA(),n.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),n._uU(46," Network "),n.qZA()(),n.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.ethernet_adapters=a}),n.qZA()(),n.TgZ(50,"mat-form-field",2)(51,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.serial_adapters=a}),n.qZA()()()(),n.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),n._uU(55," Usage "),n.qZA()(),n.TgZ(56,"mat-form-field",2)(57,"textarea",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().iouTemplate.usage=a}),n.qZA()()()(),n.TgZ(58,"div",33)(59,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(60,"Cancel"),n.qZA(),n.TgZ(61,"button",34),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(62,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.name),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(22,Mte))("ngModel",i.iouTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(6),n.Q6J("ngModel",i.iouTemplate.path),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.startup_config),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(23,Mte))("ngModel",i.iouTemplate.private_config),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.iouTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.iouTemplate.l1_keepalives),n.xp6(3),n.Q6J("ngModel",i.defaultSettings),n.xp6(2),n.Q6J("ngIf",!i.defaultSettings),n.xp6(1),n.Q6J("ngIf",!i.defaultSettings),n.xp6(5),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.ethernet_adapters),n.xp6(2),n.Q6J("ngModel",i.iouTemplate.serial_adapters),n.xp6(6),n.Q6J("ngModel",i.iouTemplate.usage)}}function E2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",39),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var M2e=function(r){return{shadowed:r}},L2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),initialConfig:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function S2e(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function x2e(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function D2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",16)(1,"mat-list-item",17),n._uU(2),n.qZA(),n.TgZ(3,"button",18)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,19)(8,"button",20),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()(),n.TgZ(13,"button",20),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",21)(19,"mat-icon"),n._uU(20,"edit"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Edit"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(15),n.s9C("routerLink",i.template_id)}}function A2e(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,D2e,23,4,"div",15),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.iouTemplates)}}function O2e(t,r){if(1&t&&(n.TgZ(0,"div",13)(1,"div",14),n.YNc(2,A2e,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}L2.\u0275fac=function(r){return new(r||L2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36($n),n.Y36(lg),n.Y36(kr),n.Y36(ne.qu))},L2.\u0275cmp=n.Xpm({type:L2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),n.YNc(5,y2e,3,0,"button",5),n.qZA(),n.TgZ(6,"div",6)(7,"h1",7),n._uU(8,"IOU device configuration"),n.qZA()()()()(),n.YNc(9,T2e,63,24,"div",8),n.qZA(),n.YNc(10,E2e,1,2,"app-symbols-menu",9)),2&r&&(n.Q6J("ngClass",n.VKq(4,M2e,e.isSymbolSelectionOpened)),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.iouTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,mu],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 t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();Z2.\u0275fac=function(r){return new(r||Z2)(n.Y36(xr),n.Y36(vr),n.Y36(Wc),n.Y36(kr))},Z2.\u0275cmp=n.Xpm({type:Z2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"IOU device templates"),n.qZA()(),n.TgZ(10,"div",3),n.YNc(11,S2e,3,1,"button",7),n.qZA()()(),n.YNc(12,x2e,1,0,"app-empty-templates-list",8),n.YNc(13,O2e,3,1,"div",9),n.qZA(),n.TgZ(14,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),n.xp6(7),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.iouTemplates.length),n.xp6(1),n.Q6J("ngIf",e.iouTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Tn,ta,Vn,Ct.O5,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 N2=function(){function t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();N2.\u0275fac=function(r){return new(r||N2)(n.Y36(xr))},N2.\u0275cmp=n.Xpm({type:N2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),n._uU(6,"arrow_back"),n.qZA()()(),n.TgZ(7,"div",5)(8,"h1",6),n._uU(9,"Template preferences"),n.qZA()()()(),n.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),n._uU(14," Built-in "),n.qZA(),n.TgZ(15,"mat-list-item",9),n._uU(16," Dynamips "),n.qZA(),n.TgZ(17,"mat-list-item",9),n._uU(18," IOS on Unix "),n.qZA(),n.TgZ(19,"mat-list-item",9),n._uU(20," VPCS "),n.qZA(),n.TgZ(21,"mat-list-item",9),n._uU(22," QEMU "),n.qZA(),n.TgZ(23,"mat-list-item",9),n._uU(24," VirtualBox "),n.qZA(),n.TgZ(25,"mat-list-item",9),n._uU(26," VMware "),n.qZA(),n.TgZ(27,"mat-list-item",9),n._uU(28," Docker "),n.qZA()()()()()),2&r&&(n.xp6(4),n.MGl("routerLink","/controller/",e.controllerId,"/projects"),n.xp6(9),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),n.xp6(2),n.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},directives:[Tn,ta,Vn,Vs,os],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 zH=(0,V.Z)(function t(){(0,j.Z)(this,t)}),gu=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();gu.\u0275fac=function(r){return new(r||gu)(n.LFG(Wo.zw))},gu.\u0275prov=n.Yz7({token:gu,factory:gu.\u0275fac});var Qh=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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["e1000","e1000-82544gc","e1000-82545em","e1000e","rocker","Intel Gigabit Ethernet","i82550","i82551","i82557a","i82557b","i82557c","i82558a","i82558b","i82559a","i82559b","i82559c","i82559er","i82562","i82801","ne2k_pci","pcnet","rtl8139","virtio","virtio-net-pci","vmxnet3"]}},{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"]}}]),t}();function I2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function P2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function R2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function L2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.filename," ")}}Qh.\u0275fac=function(r){return new(r||Qh)},Qh.\u0275prov=n.Yz7({token:Qh,factory:Qh.\u0275fac});var WH=function(){return{standalone:!0}};function Z2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-select",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedImage=a}),n.YNc(1,L2e,2,2,"mat-option",19),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("ngModelOptions",n.DdM(3,WH))("ngModel",i.selectedImage),n.xp6(1),n.Q6J("ngForOf",i.qemuImages)}}function N2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",33,34),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",35),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA(),n.TgZ(5,"mat-form-field",36)(6,"input",37),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().chosenImage=a}),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("uploader",i.uploader),n.xp6(5),n.Q6J("ngModel",i.chosenImage)}}var B2=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.snackBar=h,this.uploadServiceService=v,this.selectPlatform=[],this.consoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new zH,this.nameForm=this.formBuilder.group({templateName:new ne.NI(null,ne.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new ne.NI("256",ne.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{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=ms(),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()}))}}]),t}();function B2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}B2.\u0275fac=function(r){return new(r||B2)(n.Y36(xr),n.Y36(vr),n.Y36(gu),n.Y36($n),n.Y36(kr),n.Y36(ne.qu),n.Y36(Ml),n.Y36(Qh),n.Y36(Yd.X),n.Y36(Fc),n.Y36(jc))},B2.\u0275cmp=n.Xpm({type:B2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,I2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New QEMU VM template"),n.qZA()()()(),n.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),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(14,"Run this QEMU VM locally"),n.qZA()()(),n.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),n._UZ(18,"input",16),n.qZA(),n._UZ(19,"br"),n.qZA()(),n.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),n.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),n.YNc(24,P2e,2,2,"mat-option",19),n.qZA()(),n._UZ(25,"br"),n.TgZ(26,"mat-form-field",15),n._UZ(27,"input",20),n.TgZ(28,"span",21),n._uU(29,"MB"),n.qZA()()()(),n.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),n.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),n.YNc(33,R2e,2,2,"mat-option",19),n.qZA()()(),n.TgZ(34,"mat-step",24)(35,"form",14)(36,"mat-radio-group",11)(37,"mat-radio-button",12),n.NdJ("click",function(){return e.setDiskImage("existingImage")}),n._uU(38,"Existing image"),n.qZA(),n.TgZ(39,"mat-radio-button",25),n.NdJ("click",function(){return e.setDiskImage("newImage")}),n._uU(40,"New image"),n.qZA()(),n._UZ(41,"br")(42,"br"),n.YNc(43,Z2e,2,4,"mat-select",26),n.YNc(44,N2e,7,2,"div",27),n.qZA()()()(),n.TgZ(45,"div",28)(46,"button",29),n.NdJ("click",function(){return e.goBack()}),n._uU(47,"Cancel"),n.qZA(),n.TgZ(48,"button",30),n.NdJ("click",function(){return e.addTemplate()}),n._uU(49,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("linear",!0),n.xp6(1),n.Q6J("completed",e.isLocalComputerChosen),n.xp6(4),n.Q6J("completed",e.nameForm.get("templateName").value),n.xp6(1),n.Q6J("formGroup",e.nameForm),n.xp6(4),n.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),n.xp6(1),n.Q6J("formGroup",e.memoryForm),n.xp6(2),n.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",n.DdM(17,WH)),n.xp6(1),n.Q6J("ngForOf",e.selectPlatform),n.xp6(6),n.Q6J("completed",e.qemuTemplate.console_type),n.xp6(2),n.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",n.DdM(18,WH)),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(2),n.Q6J("formGroup",e.diskForm),n.xp6(8),n.Q6J("ngIf",!e.newImageSelected),n.xp6(1),n.Q6J("ngIf",e.newImageSelected))},directives:[Ct.O5,Tn,Vn,Qu,Hc,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,ne.wV,Fn.R9,Zc],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 t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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=ms(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),t}();function F2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Adapter number"),n.qZA())}function U2e(t,r){if(1&t&&(n.TgZ(0,"td",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("Adapter ",e.adapter_number,"")}}function H2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Port name"),n.qZA())}function j2e(t,r){if(1&t&&(n.TgZ(0,"td",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("Ethernet ",e.adapter_number,"")}}function z2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Adapter type"),n.qZA())}function W2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",14),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function V2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",11)(1,"mat-select",12),n.NdJ("ngModelChange",function(s){return n.CHM(e).$implicit.adapter_type=s}),n.YNc(2,W2e,2,2,"mat-option",13),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngModel",i.adapter_type),n.xp6(1),n.Q6J("ngForOf",o.networkTypes)}}function Y2e(t,r){1&t&&(n.TgZ(0,"th",10),n._uU(1,"Actions"),n.qZA())}function G2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",11)(1,"button",15),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().delete(a)}),n.TgZ(2,"mat-icon",16),n._uU(3,"delete"),n.qZA()()()}}function q2e(t,r){1&t&&n._UZ(0,"tr",17)}function K2e(t,r){1&t&&n._UZ(0,"tr",18)}F2.\u0275fac=function(r){return new(r||F2)(n.Y36(xr),n.Y36(vr),n.Y36(gu),n.Y36($n),n.Y36(kr),n.Y36(ne.qu))},F2.\u0275cmp=n.Xpm({type:F2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,B2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"Copy QEMU VM template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),n.NdJ("ngModelChange",function(o){return e.templateName=o}),n.qZA()()()(),n.TgZ(13,"div",12)(14,"button",13),n.NdJ("click",function(){return e.goBack()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",14),n.NdJ("click",function(){return e.addTemplate()}),n._uU(17,"Copy template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(6),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.templateName))},directives:[Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u],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 ug=function(){function t(){(0,j.Z)(this,t),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,V.Z)(t,[{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})}}]),t}();ug.\u0275fac=function(r){return new(r||ug)},ug.\u0275cmp=n.Xpm({type:ug,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&&(n.TgZ(0,"table",0),n.ynx(1,1),n.YNc(2,F2e,2,0,"th",2),n.YNc(3,U2e,2,1,"td",3),n.BQk(),n.ynx(4,4),n.YNc(5,H2e,2,0,"th",2),n.YNc(6,j2e,2,1,"td",3),n.BQk(),n.ynx(7,5),n.YNc(8,z2e,2,0,"th",2),n.YNc(9,V2e,3,2,"td",3),n.BQk(),n.ynx(10,6),n.YNc(11,Y2e,2,0,"th",2),n.YNc(12,G2e,4,0,"td",3),n.BQk(),n.YNc(13,q2e,1,0,"tr",7),n.YNc(14,K2e,1,0,"tr",8),n.qZA(),n.TgZ(15,"button",9),n.NdJ("click",function(){return e.onAdd()}),n._uU(16,"Add"),n.qZA()),2&r&&(n.Q6J("dataSource",e.adapters),n.xp6(13),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[ca,aa,fa,Sa,da,xa,Oi.gD,ne.JJ,ne.On,Ct.sg,ln.ey,Tn,vi,Vn,Da,Oa,Aa,Ia],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 J2e=["customAdapters"],_0=function(){function t(){(0,j.Z)(this,t),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new n.vpe,this.saveConfigurationEmitter=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();_0.\u0275fac=function(r){return new(r||_0)},_0.\u0275cmp=n.Xpm({type:_0,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(J2e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Custom adapters configuration"),n.qZA()()(),n.TgZ(5,"div",4)(6,"div",5),n._UZ(7,"app-custom-adapters-table",6,7),n.qZA(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.configureCustomAdapters()}),n._uU(13,"Apply"),n.qZA(),n._UZ(14,"br"),n.qZA()()()),2&r&&(n.xp6(7),n.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},directives:[ug,Tn],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 Q2e=["customAdaptersConfigurator"];function X2e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function $2e(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function eDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function tDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function nDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function rDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function iDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function oDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function aDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function sDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function lDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[0]),n.xp6(1),n.AsE(" ",e[1]," (",e[0],") ")}}function uDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",14)(1,"input",58),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).qemuTemplate.cpu_throttling=a}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function cDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",57),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function dDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.symbol=a}),n.qZA()()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.category=a}),n.YNc(19,$2e,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",14)(21,"mat-select",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.platform=a}),n.YNc(22,eDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-form-field",14)(24,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.ram=a}),n.qZA(),n.TgZ(25,"span",23),n._uU(26,"MB"),n.qZA()(),n.TgZ(27,"mat-form-field",14)(28,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.cpus=a}),n.qZA()(),n.TgZ(29,"mat-form-field",14)(30,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.boot_priority=a}),n.YNc(31,tDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(32,"mat-form-field",14)(33,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.on_close=a}),n.YNc(34,nDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(35,"mat-form-field",27)(36,"mat-select",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.console_type=a}),n.YNc(37,rDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(38,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.console_auto_start=a}),n._uU(39," Auto start console "),n.qZA()(),n.TgZ(40,"mat-expansion-panel")(41,"mat-expansion-panel-header")(42,"mat-panel-title"),n._uU(43," HDD "),n.qZA()(),n.TgZ(44,"mat-card"),n._UZ(45,"mat-card-title"),n.TgZ(46,"mat-card-subtitle"),n._uU(47," HDA (Primary Master) "),n.qZA(),n.TgZ(48,"mat-card-content")(49,"mat-form-field",14)(50,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hda_disk_image=a}),n.qZA()(),n.TgZ(51,"mat-form-field",14)(52,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hda_disk_interface=a}),n.YNc(53,iDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(54,"mat-card"),n._UZ(55,"mat-card-title"),n.TgZ(56,"mat-card-subtitle"),n._uU(57," HDB (Primary Slave) "),n.qZA(),n.TgZ(58,"mat-card-content")(59,"mat-form-field",14)(60,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdb_disk_image=a}),n.qZA()(),n.TgZ(61,"mat-form-field",14)(62,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdb_disk_interface=a}),n.YNc(63,oDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(64,"mat-card"),n._UZ(65,"mat-card-title"),n.TgZ(66,"mat-card-subtitle"),n._uU(67," HDC (Secondary Master) "),n.qZA(),n.TgZ(68,"mat-card-content")(69,"mat-form-field",14)(70,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdc_disk_image=a}),n.qZA()(),n.TgZ(71,"mat-form-field",14)(72,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdc_disk_interface=a}),n.YNc(73,aDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(74,"mat-card"),n._UZ(75,"mat-card-title"),n.TgZ(76,"mat-card-subtitle"),n._uU(77," HDD (Secondary Slave) "),n.qZA(),n.TgZ(78,"mat-card-content")(79,"mat-form-field",14)(80,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdd_disk_image=a}),n.qZA()(),n.TgZ(81,"mat-form-field",14)(82,"mat-select",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.hdd_disk_interface=a}),n.YNc(83,sDe,2,2,"mat-option",20),n.qZA()()()()(),n.TgZ(84,"mat-expansion-panel")(85,"mat-expansion-panel-header")(86,"mat-panel-title"),n._uU(87," CD/DVD "),n.qZA()(),n.TgZ(88,"div")(89,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(92).click()}),n._uU(90,"Browse"),n.qZA(),n.TgZ(91,"input",33,34),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadCdromImageFile(a)}),n.qZA(),n.TgZ(93,"mat-form-field",35)(94,"input",36),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.cdrom_image=a}),n.qZA()()()(),n.TgZ(95,"mat-expansion-panel")(96,"mat-expansion-panel-header")(97,"mat-panel-title"),n._uU(98," Network "),n.qZA()(),n.TgZ(99,"mat-form-field",14)(100,"input",37),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.adapters=a}),n.qZA()(),n.TgZ(101,"mat-form-field",14)(102,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.first_port_name=a}),n.qZA()(),n.TgZ(103,"mat-form-field",14)(104,"input",39),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.port_name_format=a}),n.qZA()(),n.TgZ(105,"mat-form-field",14)(106,"input",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(107,"mat-form-field",14)(108,"input",41),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.mac_address=a}),n.qZA()(),n.TgZ(109,"mat-form-field",14)(110,"mat-select",42),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.adapter_type=a}),n.YNc(111,lDe,2,3,"mat-option",20),n.qZA()(),n.TgZ(112,"button",43),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(113," Configure custom adapters"),n.qZA(),n._UZ(114,"br"),n.qZA(),n.TgZ(115,"mat-expansion-panel")(116,"mat-expansion-panel-header")(117,"mat-panel-title"),n._uU(118," Advanced "),n.qZA()(),n.TgZ(119,"mat-card"),n._UZ(120,"mat-card-title"),n.TgZ(121,"mat-card-subtitle"),n._uU(122," Linux boot specific settings "),n.qZA(),n.TgZ(123,"mat-card-content")(124,"div")(125,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(128).click()}),n._uU(126,"Browse"),n.qZA(),n.TgZ(127,"input",33,44),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadInitrdFile(a)}),n.qZA(),n.TgZ(129,"mat-form-field",35)(130,"input",45),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.initrd=a}),n.qZA()()(),n.TgZ(131,"div")(132,"button",32),n.NdJ("click",function(){return n.CHM(e),n.oxw().filekerenelimage.click()}),n._uU(133," Browse "),n.qZA(),n.TgZ(134,"input",33,46),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadKernelImageFile(a)}),n.qZA(),n.TgZ(136,"mat-form-field",35)(137,"input",47),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.kernel_image=a}),n.qZA()()(),n.TgZ(138,"mat-form-field",14)(139,"input",48),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.kernel_command_line=a}),n.qZA()()()(),n.TgZ(140,"mat-card"),n._UZ(141,"mat-card-title"),n.TgZ(142,"mat-card-subtitle"),n._uU(143," Bios "),n.qZA(),n.TgZ(144,"mat-card-content")(145,"div")(146,"button",32),n.NdJ("click",function(){return n.CHM(e),n.MAs(149).click()}),n._uU(147,"Browse"),n.qZA(),n.TgZ(148,"input",33,49),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadBiosFile(a)}),n.qZA(),n.TgZ(150,"mat-form-field",35)(151,"input",50),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.bios_image=a}),n.qZA()()()()(),n.TgZ(152,"mat-card"),n._UZ(153,"mat-card-title"),n.TgZ(154,"mat-card-subtitle"),n._uU(155," Optimization "),n.qZA(),n.TgZ(156,"mat-card-content")(157,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().activateCpuThrottling=a}),n._uU(158," Activate CPU throttling "),n.qZA(),n.YNc(159,uDe,2,1,"mat-form-field",51),n.TgZ(160,"mat-form-field",14)(161,"mat-select",52),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.process_priority=a}),n.YNc(162,cDe,2,2,"mat-option",20),n.qZA()()()(),n.TgZ(163,"mat-card"),n._UZ(164,"mat-card-title"),n.TgZ(165,"mat-card-subtitle"),n._uU(166," Additional settings "),n.qZA(),n.TgZ(167,"mat-card-content")(168,"mat-form-field",14)(169,"input",53),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.options=a}),n.qZA()(),n.TgZ(170,"mat-checkbox",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.linked_clone=a}),n._uU(171," Use as a linked base VM "),n.qZA()()()(),n.TgZ(172,"mat-expansion-panel")(173,"mat-expansion-panel-header")(174,"mat-panel-title"),n._uU(175," Usage "),n.qZA()(),n.TgZ(176,"mat-form-field",14)(177,"textarea",54),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuTemplate.usage=a}),n.qZA()()()(),n.TgZ(178,"div",55)(179,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(180,"Cancel"),n.qZA(),n.TgZ(181,"button",56),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(182,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.name),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.symbol),n.xp6(6),n.Q6J("ngModel",i.qemuTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.platform),n.xp6(1),n.Q6J("ngForOf",i.selectPlatform),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.ram),n.xp6(4),n.Q6J("ngModel",i.qemuTemplate.cpus),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.boot_priority),n.xp6(1),n.Q6J("ngForOf",i.bootPriorities),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.console_auto_start),n.xp6(12),n.Q6J("ngModel",i.qemuTemplate.hda_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(11),n.Q6J("ngModel",i.qemuTemplate.cdrom_image),n.xp6(6),n.Q6J("ngModel",i.qemuTemplate.adapters),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.mac_address),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(19),n.Q6J("ngModel",i.qemuTemplate.initrd),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.kernel_image),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.kernel_command_line),n.xp6(12),n.Q6J("ngModel",i.qemuTemplate.bios_image),n.xp6(6),n.Q6J("ngModel",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngIf",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngModel",i.qemuTemplate.process_priority),n.xp6(1),n.Q6J("ngForOf",i.priorities),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.options),n.xp6(1),n.Q6J("ngModel",i.qemuTemplate.linked_clone),n.xp6(7),n.Q6J("ngModel",i.qemuTemplate.usage)}}function fDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",59),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var pDe=function(r){return{shadowed:r}},U2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function hDe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function mDe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function _De(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function gDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).copyTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"content_copy"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Copy"),n.qZA()(),n.TgZ(18,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(19,"mat-icon"),n._uU(20,"delete"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function vDe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,gDe,23,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.qemuTemplates)}}function yDe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,vDe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}U2.\u0275fac=function(r){return new(r||U2)(n.Y36(xr),n.Y36(vr),n.Y36(gu),n.Y36($n),n.Y36(Qh),n.Y36(ne.qu),n.Y36(kr))},U2.\u0275cmp=n.Xpm({type:U2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Q2e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,X2e,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"QEMU VM configuration"),n.qZA()()()(),n.YNc(8,dDe,183,48,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,fDe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,pDe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.qemuTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,ne.wV,Fn.R9,Ui,Si,nw,rw,Qy,_0,mu],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 H2=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,V.Z)(t,[{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"])}}]),t}();H2.\u0275fac=function(r){return new(r||H2)(n.Y36(xr),n.Y36(vr),n.Y36(gu),n.Y36(kr))},H2.\u0275cmp=n.Xpm({type:H2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,hDe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"QEMU VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,mDe,3,1,"button",7),n.qZA()()(),n.YNc(10,_De,1,0,"app-empty-templates-list",8),n.YNc(11,yDe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.qemuTemplates.length),n.xp6(1),n.Q6J("ngIf",e.qemuTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 Xh=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.compute_id,"/virtualbox/vms"))}}]),t}();function bDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function CDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",18),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.vmname," ")}}function wDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedVM=a}),n.YNc(5,CDe,2,2,"mat-option",14),n.qZA()()(),n.TgZ(6,"mat-checkbox",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.linked_clone=a}),n._uU(7," Use as a linked base VM (experimental) "),n.qZA()(),n.TgZ(8,"div",16)(9,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(12,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.vmForm),n.xp6(2),n.Q6J("ngModel",i.selectedVM),n.xp6(1),n.Q6J("ngForOf",i.virtualMachines),n.xp6(1),n.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}Xh.\u0275fac=function(r){return new(r||Xh)(n.LFG(Wo.zw))},Xh.\u0275prov=n.Yz7({token:Xh,factory:Xh.\u0275fac});var j2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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.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=ms(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),t}();j2.\u0275fac=function(r){return new(r||j2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh),n.Y36($n),n.Y36(Ml),n.Y36(kr),n.Y36(ne.qu))},j2.\u0275cmp=n.Xpm({type:j2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,bDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VirtualBox VM template"),n.qZA()()()(),n.YNc(8,wDe,13,4,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.virtualBoxTemplate))},directives:[Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,Oi.gD,ne.JJ,ne.u,Ct.sg,ln.ey,Ui,ne.On],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 cg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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)"]}}]),t}();cg.\u0275fac=function(r){return new(r||cg)},cg.\u0275prov=n.Yz7({token:cg,factory:cg.\u0275fac});var kDe=["customAdaptersConfigurator"];function TDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function EDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function MDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function SDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function xDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",37),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var Rw=function(){return{standalone:!0}};function DDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.category=a}),n.YNc(19,EDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",21)(21,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.console_type=a}),n.YNc(22,MDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.console_auto_start=a}),n._uU(24," Auto start console "),n.qZA(),n.TgZ(25,"mat-form-field",14)(26,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.ram=a}),n.qZA(),n.TgZ(27,"span",25),n._uU(28,"MB"),n.qZA()(),n.TgZ(29,"mat-form-field",14)(30,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.on_close=a}),n.YNc(31,SDe,2,2,"mat-option",20),n.qZA()()(),n.TgZ(32,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.headless=a}),n._uU(33," Start VM in headless mode "),n.qZA(),n._UZ(34,"br"),n.TgZ(35,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.linked_clone=a}),n._uU(36," Use as a linked base VM (experimental) "),n.qZA()(),n.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),n._uU(40," Network "),n.qZA()(),n.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.adapters=a}),n.qZA()(),n.TgZ(44,"mat-form-field",14)(45,"input",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.first_port_name=a}),n.qZA()(),n.TgZ(46,"mat-form-field",14)(47,"input",30),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.port_name_format=a}),n.qZA()(),n.TgZ(48,"mat-form-field",14)(49,"input",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(50,"mat-form-field",14)(51,"mat-select",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.adapter_type=a}),n.YNc(52,xDe,2,2,"mat-option",20),n.qZA()()(),n.TgZ(53,"button",33),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(54," Configure custom adapters"),n.qZA(),n._UZ(55,"br"),n.TgZ(56,"mat-checkbox",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.use_any_adapter=a}),n._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),n.qZA()(),n.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),n._uU(61," Usage "),n.qZA()(),n.TgZ(62,"mat-form-field",14)(63,"textarea",34),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().virtualBoxTemplate.usage=a}),n.qZA()()()(),n.TgZ(64,"div",35)(65,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(66,"Cancel"),n.qZA(),n.TgZ(67,"button",36),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(68,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.name),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(29,Rw))("ngModel",i.virtualBoxTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(30,Rw))("ngModel",i.virtualBoxTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(31,Rw))("ngModel",i.virtualBoxTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.virtualBoxTemplate.ram),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(32,Rw))("ngModel",i.virtualBoxTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.virtualBoxTemplate.headless),n.xp6(3),n.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),n.xp6(6),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.adapters),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(33,Rw))("ngModel",i.virtualBoxTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(34,Rw))("ngModel",i.virtualBoxTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(4),n.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),n.xp6(7),n.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function ADe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",38),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var ODe=function(r){return{shadowed:r}},z2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new ne.NI("",ne.kI.required),nameFormat:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function IDe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function PDe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function RDe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function LDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o)}}function ZDe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,LDe,13,3,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.virtualBoxTemplates)}}function NDe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,ZDe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}z2.\u0275fac=function(r){return new(r||z2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh),n.Y36($n),n.Y36(ne.qu),n.Y36(cg),n.Y36(kr))},z2.\u0275cmp=n.Xpm({type:z2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(kDe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,TDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VirtualBox VM configuration"),n.qZA()()()(),n.YNc(8,DDe,69,35,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,ADe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,ODe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.virtualBoxTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,_0,mu],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 W2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();W2.\u0275fac=function(r){return new(r||W2)(n.Y36(xr),n.Y36(vr),n.Y36(Xh))},W2.\u0275cmp=n.Xpm({type:W2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,IDe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VirtualBox VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,PDe,3,1,"button",7),n.qZA()()(),n.YNc(10,RDe,1,0,"app-empty-templates-list",8),n.YNc(11,NDe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.virtualBoxTemplates.length),n.xp6(1),n.Q6J("ngIf",e.virtualBoxTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 $h=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.compute_id,"/vmware/vms"))}}]),t}();function BDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function FDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",18),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.vmname," ")}}$h.\u0275fac=function(r){return new(r||$h)(n.LFG(Wo.zw))},$h.\u0275prov=n.Yz7({token:$h,factory:$h.\u0275fac});var UDe=function(){return{standalone:!0}};function HDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().selectedVM=a}),n.YNc(5,FDe,2,2,"mat-option",14),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-checkbox",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.linked_clone=a}),n._uU(8," Use as a linked base VM (experimental) "),n.qZA()()(),n.TgZ(9,"div",16)(10,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().addTemplate()}),n._uU(13,"Add template"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.templateNameForm),n.xp6(2),n.Q6J("ngModel",i.selectedVM),n.xp6(1),n.Q6J("ngForOf",i.virtualMachines),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(5,UDe))("ngModel",i.vmwareTemplate.linked_clone)}}var V2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{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.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=ms(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),t}();V2.\u0275fac=function(r){return new(r||V2)(n.Y36(xr),n.Y36(vr),n.Y36($h),n.Y36($n),n.Y36(Ml),n.Y36(kr),n.Y36(ne.qu))},V2.\u0275cmp=n.Xpm({type:V2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,BDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VMware VM template"),n.qZA()()()(),n.YNc(8,HDe,14,6,"div",7),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vmwareTemplate))},directives:[Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,Oi.gD,ne.JJ,ne.u,Ct.sg,ln.ey,Ui,ne.On],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 dg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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"]}}]),t}();dg.\u0275fac=function(r){return new(r||dg)},dg.\u0275prov=n.Yz7({token:dg,factory:dg.\u0275fac});var jDe=["customAdaptersConfigurator"];function zDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function WDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function VDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function YDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function GDe(t,r){if(1&t&&(n.TgZ(0,"mat-option",35),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var Lw=function(){return{standalone:!0}};function qDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),n._uU(5," General settings "),n.qZA()(),n.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.name=a}),n.qZA()(),n.TgZ(9,"mat-form-field",14)(10,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.default_name_format=a}),n.qZA()(),n.TgZ(11,"mat-form-field",14)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.symbol=a}),n.qZA()(),n.TgZ(13,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(14,"Choose symbol"),n.qZA(),n._UZ(15,"br")(16,"br"),n.TgZ(17,"mat-form-field",14)(18,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.category=a}),n.YNc(19,WDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(20,"mat-form-field",21)(21,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.console_type=a}),n.YNc(22,VDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(23,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.console_auto_start=a}),n._uU(24," Auto start console "),n.qZA(),n.TgZ(25,"mat-form-field",14)(26,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.on_close=a}),n.YNc(27,YDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(28,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.headless=a}),n._uU(29," Start VM in headless mode "),n.qZA(),n._UZ(30,"br")(31,"br"),n.TgZ(32,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.linked_clone=a}),n._uU(33," Use as a linked base VM (experimental) "),n.qZA()()(),n.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),n._uU(37," Network "),n.qZA()(),n.TgZ(38,"mat-form-field",14)(39,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.adapters=a}),n.qZA()(),n.TgZ(40,"mat-form-field",14)(41,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.first_port_name=a}),n.qZA()(),n.TgZ(42,"mat-form-field",14)(43,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.port_name_format=a}),n.qZA()(),n.TgZ(44,"mat-form-field",14)(45,"input",28),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.port_segment_size=a}),n.qZA()(),n.TgZ(46,"mat-form-field",14)(47,"mat-select",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.adapter_type=a}),n.YNc(48,GDe,2,2,"mat-option",20),n.qZA()(),n.TgZ(49,"button",30),n.NdJ("click",function(){return n.CHM(e),n.oxw().setCustomAdaptersConfiguratorState(!0)}),n._uU(50," Configure custom adapters"),n.qZA(),n._UZ(51,"br"),n.TgZ(52,"mat-checkbox",31),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.use_any_adapter=a}),n._uU(53," Allow GNS3 to override non custom VMware adapter "),n.qZA()(),n.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),n._uU(57," Usage "),n.qZA()(),n.TgZ(58,"mat-form-field",14)(59,"textarea",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vmwareTemplate.usage=a}),n.qZA()()()(),n.TgZ(60,"div",33)(61,"button",11),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(62,"Cancel"),n.qZA(),n.TgZ(63,"button",34),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(64,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.name),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(27,Lw))("ngModel",i.vmwareTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(28,Lw))("ngModel",i.vmwareTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(29,Lw))("ngModel",i.vmwareTemplate.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(30,Lw))("ngModel",i.vmwareTemplate.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(31,Lw))("ngModel",i.vmwareTemplate.headless),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(32,Lw))("ngModel",i.vmwareTemplate.linked_clone),n.xp6(7),n.Q6J("ngModel",i.vmwareTemplate.adapters),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.first_port_name),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.port_name_format),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.port_segment_size),n.xp6(2),n.Q6J("ngModel",i.vmwareTemplate.adapter_type),n.xp6(1),n.Q6J("ngForOf",i.networkTypes),n.xp6(4),n.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),n.xp6(7),n.Q6J("ngModel",i.vmwareTemplate.usage)}}function KDe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",36),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var JDe=function(r){return{shadowed:r}},Y2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function QDe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function XDe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function $De(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function eAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(9,"mat-icon"),n._uU(10,"delete"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o)}}function tAe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,eAe,13,3,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.vmwareTemplates)}}function nAe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,tAe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}Y2.\u0275fac=function(r){return new(r||Y2)(n.Y36(xr),n.Y36(vr),n.Y36($h),n.Y36($n),n.Y36(ne.qu),n.Y36(dg),n.Y36(kr))},Y2.\u0275cmp=n.Xpm({type:Y2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(jDe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,zDe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VMware VM configuration"),n.qZA()()()(),n.YNc(8,qDe,65,33,"div",7),n.qZA(),n.TgZ(9,"app-custom-adapters",8,9),n.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),n.qZA(),n.YNc(11,KDe,1,2,"app-symbols-menu",10)),2&r&&(n.Q6J("ngClass",n.VKq(7,JDe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vmwareTemplate),n.xp6(1),n.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,El,Kl,Jl,hu,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,_0,mu],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 t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();G2.\u0275fac=function(r){return new(r||G2)(n.Y36(xr),n.Y36(vr),n.Y36($h))},G2.\u0275cmp=n.Xpm({type:G2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,QDe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VMware VM templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,XDe,3,1,"button",7),n.qZA()()(),n.YNc(10,$De,1,0,"app-empty-templates-list",8),n.YNc(11,nAe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.vmwareTemplates.length),n.xp6(1),n.Q6J("ngIf",e.vmwareTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 em=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();function rAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}em.\u0275fac=function(r){return new(r||em)(n.LFG(Wo.zw))},em.\u0275prov=n.Yz7({token:em,factory:em.\u0275fac});var q2=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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 ne.NI(null,[ne.kI.required])})}return(0,V.Z)(t,[{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=ms(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),t}();q2.\u0275fac=function(r){return new(r||q2)(n.Y36(xr),n.Y36(vr),n.Y36(em),n.Y36(kr),n.Y36($n),n.Y36(Ml),n.Y36(ne.qu),n.Y36(Yd.X))},q2.\u0275cmp=n.Xpm({type:q2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,rAe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"New VPCS node template"),n.qZA()()()(),n.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),n.NdJ("click",function(){return e.setControllerType("local")}),n._uU(12,"Run the VPCS node locally"),n.qZA()(),n.TgZ(13,"form",11)(14,"mat-form-field",12),n._UZ(15,"input",13),n.qZA()()(),n.TgZ(16,"div",14)(17,"button",15),n.NdJ("click",function(){return e.goBack()}),n._uU(18,"Cancel"),n.qZA(),n.TgZ(19,"button",16),n.NdJ("click",function(){return e.addTemplate()}),n._uU(20,"Add template"),n.qZA()()()()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(9),n.Q6J("formGroup",e.templateNameForm))},directives:[Ct.O5,Tn,Vn,Si,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u],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 tm=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),t}();function iAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n.TgZ(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()}}function oAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function aAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}tm.\u0275fac=function(r){return new(r||tm)},tm.\u0275prov=n.Yz7({token:tm,factory:tm.\u0275fac});var VH=function(){return{standalone:!0}};function sAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",13)(6,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.default_name_format=a}),n.qZA()(),n.TgZ(7,"mat-form-field",13)(8,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.base_script_file=a}),n.qZA()(),n.TgZ(9,"mat-form-field",13)(10,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.symbol=a}),n.qZA()(),n.TgZ(11,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().chooseSymbol()}),n._uU(12,"Choose symbol"),n.qZA(),n._UZ(13,"br")(14,"br"),n.TgZ(15,"mat-form-field",13)(16,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.category=a}),n.YNc(17,oAe,2,2,"mat-option",20),n.qZA()(),n.TgZ(18,"mat-form-field",21)(19,"mat-select",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.console_type=a}),n.YNc(20,aAe,2,2,"mat-option",20),n.qZA()(),n.TgZ(21,"mat-checkbox",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().vpcsTemplate.console_auto_start=a}),n._uU(22," Auto start console "),n.qZA()()(),n.TgZ(23,"div",24)(24,"button",9),n.NdJ("click",function(){return n.CHM(e),n.oxw().goBack()}),n._uU(25,"Cancel"),n.qZA(),n.TgZ(26,"button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n._uU(27,"Save"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.name),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.default_name_format),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.base_script_file),n.xp6(2),n.Q6J("ngModel",i.vpcsTemplate.symbol),n.xp6(6),n.Q6J("ngModelOptions",n.DdM(13,VH))("ngModel",i.vpcsTemplate.category),n.xp6(1),n.Q6J("ngForOf",i.categories),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(14,VH))("ngModel",i.vpcsTemplate.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(15,VH))("ngModel",i.vpcsTemplate.console_auto_start)}}function lAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-symbols-menu",27),n.NdJ("symbolChangedEmitter",function(a){return n.CHM(e),n.oxw().symbolChanged(a)}),n.qZA()}if(2&t){var i=n.oxw();n.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var uAe=function(r){return{shadowed:r}},K2=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),defaultName:new ne.NI("",ne.kI.required),scriptFile:new ne.NI("",ne.kI.required),symbol:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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}}]),t}();function cAe(t,r){if(1&t&&(n.TgZ(0,"button",12)(1,"mat-icon"),n._uU(2,"arrow_back"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function dAe(t,r){if(1&t&&(n.TgZ(0,"button",13)(1,"mat-icon"),n._uU(2,"add_circle_outline"),n.qZA()()),2&t){var e=n.oxw();n.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function fAe(t,r){1&t&&n._UZ(0,"app-empty-templates-list")}function pAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",17)(1,"mat-list-item",18),n._uU(2),n.qZA(),n.TgZ(3,"button",19)(4,"mat-icon"),n._uU(5,"more_vert"),n.qZA()(),n.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),n._uU(10,"edit"),n.qZA(),n.TgZ(11,"span"),n._uU(12,"Edit"),n.qZA()(),n.TgZ(13,"button",22),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).deleteTemplate(l)}),n.TgZ(14,"mat-icon"),n._uU(15,"delete"),n.qZA(),n.TgZ(16,"span"),n._uU(17,"Delete"),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.MAs(7);n.xp6(1),n.s9C("routerLink",i.template_id),n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.s9C("routerLink",i.template_id)}}function hAe(t,r){if(1&t&&(n.TgZ(0,"mat-nav-list"),n.YNc(1,pAe,18,4,"div",16),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",e.vpcsTemplates)}}function mAe(t,r){if(1&t&&(n.TgZ(0,"div",14)(1,"div",15),n.YNc(2,hAe,2,1,"mat-nav-list",8),n.qZA()()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.controller)}}K2.\u0275fac=function(r){return new(r||K2)(n.Y36(xr),n.Y36(vr),n.Y36(em),n.Y36($n),n.Y36(ne.qu),n.Y36(tm),n.Y36(kr))},K2.\u0275cmp=n.Xpm({type:K2,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,iAe,3,0,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VPCS device configuration"),n.qZA()()()(),n.YNc(8,sAe,28,16,"div",7),n.qZA(),n.YNc(9,lAe,1,2,"app-symbols-menu",8)),2&r&&(n.Q6J("ngClass",n.VKq(4,uAe,e.isSymbolSelectionOpened)),n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(4),n.Q6J("ngIf",e.vpcsTemplate),n.xp6(1),n.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},directives:[Ct.mk,Ct.O5,Tn,Vn,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,mu],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 J2=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,V.Z)(t,[{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()}}]),t}();J2.\u0275fac=function(r){return new(r||J2)(n.Y36(xr),n.Y36(vr),n.Y36(em))},J2.\u0275cmp=n.Xpm({type:J2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,cAe,3,1,"button",4),n.qZA(),n.TgZ(5,"div",5)(6,"h1",6),n._uU(7,"VPCS node templates"),n.qZA()(),n.TgZ(8,"div",3),n.YNc(9,dAe,3,1,"button",7),n.qZA()()(),n.YNc(10,fAe,1,0,"app-empty-templates-list",8),n.YNc(11,mAe,3,1,"div",9),n.qZA(),n.TgZ(12,"app-delete-template",10,11),n.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),n.qZA()),2&r&&(n.xp6(4),n.Q6J("ngIf",e.controller),n.xp6(5),n.Q6J("ngIf",e.controller),n.xp6(1),n.Q6J("ngIf",!e.vpcsTemplates.length),n.xp6(1),n.Q6J("ngIf",e.vpcsTemplates.length),n.xp6(1),n.Q6J("controller",e.controller))},directives:[Ct.O5,Tn,ta,Vn,vi,_u,Vs,Ct.sg,os,Pa,ss,Hr,pa],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 Xl=m(9971);function YH(){YH=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function _Ae(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(null==e?null:e.name)}}function gAe(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.Oqu(e)}}function vAe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"form",1),n.NdJ("ngSubmit",function(){n.CHM(e);var a=n.oxw();return a.export_project_form.valid&&a.exportPortableProject()}),n.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),n._uU(4,"Export Project"),n.qZA()(),n.TgZ(5,"div",5)(6,"button",6),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(7,"mat-icon"),n._uU(8,"close"),n.qZA()()()(),n._UZ(9,"mat-divider"),n.TgZ(10,"div",7)(11,"div",2)(12,"div",8),n._uU(13,"Compression:"),n.qZA(),n.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw().selectCompression(a)}),n.YNc(17,_Ae,2,2,"mat-option",12),n.qZA()()()(),n.TgZ(18,"div",2)(19,"div",8),n._uU(20,"Compression level:"),n.qZA(),n.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),n.YNc(24,gAe,2,2,"mat-option",12),n.qZA()()()(),n.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),n._uU(29," Include base images "),n.qZA()()()(),n.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),n._uU(34," Include snapshots "),n.qZA()()()(),n.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),n._uU(39," Reset MAC addresses"),n.qZA()()()()(),n._UZ(40,"mat-divider"),n.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),n._uU(45,"Export"),n.qZA(),n.TgZ(46,"button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n._uU(47,"Cancel"),n.qZA()()()()()}if(2&t){var i=n.oxw();n.Q6J("formGroup",i.export_project_form),n.xp6(17),n.Q6J("ngForOf",i.compression_methods),n.xp6(7),n.Q6J("ngForOf",i.compression_filter_value),n.xp6(20),n.Q6J("disabled",i.isExport)}}var Zw=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){return no(this,void 0,void 0,YH().mark(function e(){return YH().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.controller=this.data.controllerDetails,this.project=this.data.projectDetails,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:["",ne.kI.required],compression_level:[""],include_base_image:[!1,ne.kI.required],include_snapshots:[!1,ne.kI.required],reset_mac_address:[!1,ne.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()}}]),t}();Zw.\u0275fac=function(r){return new(r||Zw)(n.Y36(Ar),n.Y36(na),n.Y36(Xl.Y),n.Y36(ne.qu))},Zw.\u0275cmp=n.Xpm({type:Zw,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&&n.YNc(0,vAe,48,4,"form",0),2&r&&n.Q6J("ngIf",e.export_project_form)},directives:[Ct.O5,ne._Y,ne.JL,ne.sg,Vr,Tn,Vn,t0.d,Fn.KE,Oi.gD,ne.JJ,ne.u,ne.Q7,Ct.sg,ln.ey,Ui,Zr],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),xZ=m(5735),DZ=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(xZ.o),nm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(DZ);nm.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(nm)))(e||nm)}}(),nm.\u0275prov=n.Yz7({token:nm,factory:nm.\u0275fac});var rm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(DZ);rm.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(rm)))(e||rm)}}(),rm.\u0275prov=n.Yz7({token:rm,factory:rm.\u0275fac});var im=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(DZ);im.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(im)))(e||im)}}(),im.\u0275prov=n.Yz7({token:im,factory:im.\u0275fac});var om=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(DZ);om.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(om)))(e||om)}}(),om.\u0275prov=n.Yz7({token:om,factory:om.\u0275fac});var g0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Nw=(0,V.Z)(function t(){(0,j.Z)(this,t)}),pp=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}}]),t}();function Ste(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,i)}return e}function Vc(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Ste(Object(e),!0).forEach(function(i){(0,Ex.Z)(t,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Ste(Object(e)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}return t}pp.\u0275fac=function(r){return new(r||pp)},pp.\u0275prov=n.Yz7({token:pp,factory:pp.\u0275fac});function Gs(t){return t>=48&&t<=57}function pg(t){return Gs(t)||t>=65&&t<=70||t>=97&&t<=102}function qH(t){return t>=65&&t<=90}function OZ(t){return function CAe(t){return qH(t)||function bAe(t){return t>=97&&t<=122}(t)}(t)||function wAe(t){return t>=128}(t)||95===t}function xte(t){return OZ(t)||Gs(t)||45===t}function kAe(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t}function IZ(t){return 10===t||13===t||12===t}function v0(t){return IZ(t)||32===t||9===t}function _p(t,r){return!(92!==t||IZ(r)||0===r)}function PZ(t,r,e){return 45===t?OZ(r)||45===r||_p(r,e):!!OZ(t)||92===t&&_p(t,r)}function KH(t,r,e){return 43===t||45===t?Gs(r)?2:46===r&&Gs(e)?3:0:46===t?Gs(r)?2:0:Gs(t)?1:0}function Dte(t){return 65279===t||65534===t?1:0}for(var JH=new Array(128),hg=0;hg<JH.length;hg++)JH[hg]=(v0(hg)?130:Gs(hg)&&131)||OZ(hg)&&132||kAe(hg)&&133||hg||128;function XH(t){return t<128?JH[t]:132}function Bw(t,r){return r<t.length?t.charCodeAt(r):0}function $H(t,r,e){return 13===e&&10===Bw(t,r+1)?2:1}function Fw(t,r,e){var i=t.charCodeAt(r);return qH(i)&&(i|=32),i===e}function X2(t,r,e,i){if(e-r!==i.length||r<0||e>t.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=t.charCodeAt(o);if(qH(s)&&(s|=32),s!==a)return!1}return!0}function LZ(t,r){for(;r<t.length&&v0(t.charCodeAt(r));r++);return r}function ej(t,r){for(;r<t.length&&Gs(t.charCodeAt(r));r++);return r}function Uw(t,r){if(pg(Bw(t,(r+=2)-1))){for(var e=Math.min(t.length,r+5);r<e&&pg(Bw(t,r));r++);var i=Bw(t,r);v0(i)&&(r+=$H(t,r,i))}return r}function ZZ(t,r){for(;r<t.length;r++){var e=t.charCodeAt(r);if(!xte(e)){if(_p(e,Bw(t,r+1))){r=Uw(t,r)-1;continue}break}}return r}function NZ(t,r){var e=t.charCodeAt(r);if((43===e||45===e)&&(e=t.charCodeAt(r+=1)),Gs(e)&&(r=ej(t,r+1),e=t.charCodeAt(r)),46===e&&Gs(t.charCodeAt(r+1))&&(r=ej(t,r+=2)),Fw(t,r,101)){var i=0;(45===(e=t.charCodeAt(r+1))||43===e)&&(i=1,e=t.charCodeAt(r+2)),Gs(e)&&(r=ej(t,r+1+i+1))}return r}function tj(t,r){for(;r<t.length;r++){var e=t.charCodeAt(r);if(41===e){r++;break}_p(e,Bw(t,r+1))&&(r=Uw(t,r))}return r}function Ite(t){if(1===t.length&&!pg(t.charCodeAt(0)))return t[0];var r=parseInt(t,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var Pte=["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 BZ(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===t||t.length<r?new Uint32Array(Math.max(r+1024,16384)):t}function Zte(t){for(var r=t.source,e=r.length,i=r.length>0?Dte(r.charCodeAt(0)):0,o=BZ(t.lines,e),a=BZ(t.columns,e),s=t.startLine,l=t.startColumn,u=i;u<e;u++){var f=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===f||13===f||12===f)&&(13===f&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,t.lines=o,t.columns=a,t.computed=!0}var xAe=function(){function t(){(0,j.Z)(this,t),this.lines=null,this.columns=null,this.computed=!1}return(0,V.Z)(t,[{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||Zte(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||Zte(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]}}}}]),t}(),Gc=16777215,DAe=new Map([[2,22],[21,22],[19,20],[23,24]]),AAe=function(){function t(r,e){(0,j.Z)(this,t),this.setSource(r,e)}return(0,V.Z)(t,[{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=BZ(this.offsetAndType,e.length+1),s=BZ(this.balance,e.length+1),l=0,u=0,f=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(C,B,G){switch(C){default:s[l]=o;break;case u:var q=f&Gc;for(f=s[q],u=f>>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]=f,u=DAe.get(C),f=u<<24|l}a[l++]=C<<24|G,-1===h&&(h=B)}),a[l]=0|o,s[l]=o,s[o]=o;0!==f;){var v=f&Gc;f=s[v],s[v]=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]&Gc:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&X2(this.source,this.offsetAndType[e-1]&Gc,this.offsetAndType[e]&Gc,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Gc:this.offsetAndType[this.tokenCount]&Gc: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]&Gc,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&Gc):(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&Gc):(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]&Gc: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&Gc;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:Pte[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),t}();function FZ(t,r){function e(C){return C<l?t.charCodeAt(C):0}function i(){return PZ(e(f=NZ(t,f)),e(f+1),e(f+2))?(h=12,void(f=ZZ(t,f))):37===e(f)?(h=11,void f++):void(h=10)}function o(){var C=f;return f=ZZ(t,f),X2(t,C,f,"url")&&40===e(f)?34===e(f=LZ(t,f+1))||39===e(f)?(h=2,void(f=C+4)):void function s(){for(h=7,f=LZ(t,f);f<t.length;f++){var C=t.charCodeAt(f);switch(XH(C)){case 41:return void f++;case 130:return 41===e(f=LZ(t,f))||f>=t.length?void(f<t.length&&f++):(f=tj(t,f),void(h=8));case 34:case 39:case 40:case 133:return f=tj(t,f),void(h=8);case 92:if(_p(C,e(f+1))){f=Uw(t,f)-1;break}return f=tj(t,f),void(h=8)}}}():40===e(f)?(h=2,void f++):void(h=1)}function a(C){for(C||(C=e(f++)),h=5;f<t.length;f++){var B=t.charCodeAt(f);switch(XH(B)){case C:return void f++;case 130:if(IZ(B))return f+=$H(t,f,B),void(h=6);break;case 92:if(f===t.length-1)break;var G=e(f+1);IZ(G)?f+=$H(t,f+1,G):_p(B,G)&&(f=Uw(t,f)-1)}}}for(var h,l=(t=String(t||"")).length,u=Dte(e(0)),f=u;f<l;){var v=t.charCodeAt(f);switch(XH(v)){case 130:h=13,f=LZ(t,f+1);break;case 34:case 39:a();break;case 35:xte(e(f+1))||_p(e(f+1),e(f+2))?(h=4,f=ZZ(t,f+1)):(h=9,f++);break;case 40:h=21,f++;break;case 41:h=22,f++;break;case 43:case 46:KH(v,e(f+1),e(f+2))?i():(h=9,f++);break;case 44:h=18,f++;break;case 45:KH(v,e(f+1),e(f+2))?i():45===e(f+1)&&62===e(f+2)?(h=15,f+=3):PZ(v,e(f+1),e(f+2))?o():(h=9,f++);break;case 47:42===e(f+1)?(h=25,f=-1===(f=t.indexOf("*/",f+2))?t.length:f+2):(h=9,f++);break;case 58:h=16,f++;break;case 59:h=17,f++;break;case 60:33===e(f+1)&&45===e(f+2)&&45===e(f+3)?(h=14,f+=4):(h=9,f++);break;case 64:PZ(e(f+1),e(f+2),e(f+3))?(h=3,f=ZZ(t,f+1)):(h=9,f++);break;case 91:h=19,f++;break;case 92:_p(v,e(f+1))?o():(h=9,f++);break;case 93:h=20,f++;break;case 123:h=23,f++;break;case 125:h=24,f++;break;case 131:i();break;case 132:o();break;default:h=9,f++}r(h,u,u=f)}}function nj(){nj=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var Hw=null,y0=function(t){function r(){(0,j.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,V.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Hw?(a=Hw,Hw=Hw.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=Hw,Hw=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:t,value:nj().mark(function e(){var i;return nj().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,cn.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(f){a.e(f)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,$t.Z)(this)}},{key:"toJSON",value:function(){return(0,$t.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,cn.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 UZ(t,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:t,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(t,": ").concat(r,"\n"))}})}function Fte(t,r){var e=t.source,i=t.line,o=t.column;function a(C,B){return s.slice(C,B).map(function(G,q){return String(C+q+1).padStart(f)+" |"+G}).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),f=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 v=l;v<=u;v++)v>=0&&v<s.length&&(s[v]=s[v].replace(/\t/g," "),s[v]=(h>0&&s[v].length>h?"\u2026":"")+s[v].substr(h,98)+(s[v].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+f+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function Ute(t,r,e,i,o){return Object.assign(UZ("SyntaxError",t),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return Fte({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(t,"\n")+Fte({source:r,line:i,column:o},2)}})}function OAe(t){for(var r=this.createList(),e=!1,i={recognizer:t};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=t.getNode.call(this,i);if(void 0===o)break;e&&(t.onWhiteSpace&&t.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&t.onWhiteSpace&&t.onWhiteSpace.call(this,null,r,i),r}var Hte=function(){};function RAe(t){return function(){return this[t]()}}function oj(t){var r=Object.create(null);for(var e in t){var i=t[e],o=i.parse||i;o&&(r[e]=o)}return r}function ZAe(t){var r="",e="<unknown>",i=!1,o=Hte,a=!1,s=new xAe,l=Object.assign(new AAe,function LAe(t){var r={context:Object.create(null),scope:Object.assign(Object.create(null),t.scope),atrule:oj(t.atrule),pseudo:oj(t.pseudo),node:oj(t.node)};for(var e in t.parseContext)switch(typeof t.parseContext[e]){case"function":r.context[e]=t.parseContext[e];break;case"string":r.context[e]=RAe(t.parseContext[e])}return Vc(Vc({config:r},r),r.node)}(t||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:OAe,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 y0},createSingleNodeList:function(h){return(new y0).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,v){var C=this.tokenIndex;try{return h.call(this)}catch(G){if(a)throw G;var B=v.call(this,C);return a=!0,o(G,B),a=!1,B}},lookupNonWSType:function(h){var v;do{if(13!==(v=this.lookupType(h++)))return v}while(0!==v);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,v){return r.substring(h,v)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,v){return Fw(r,h,v)},cmpStr:function(h,v,C){return X2(r,h,v,C)},consume:function(h){var v=this.tokenStart;return this.eat(h),this.substrToCursor(v)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var v=r.substring(this.tokenStart,NZ(r,this.tokenStart));return this.eat(h),v},eat:function(h){if(this.tokenType!==h){var v=Pte[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(G){return G.toUpperCase()}),C="".concat(/[[\](){}]/.test(v)?'"'.concat(v,'"'):v," is expected"),B=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(B=this.tokenEnd-1,C="Identifier is expected but function found"):C="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),B++,C="Name is expected");break;case 11:10===this.tokenType&&(B=this.tokenEnd,C="Percent sign is expected")}this.error(C,B)}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,v){return i?s.getLocationRange(h,v,e):null},getLocationFromList:function(h){if(i){var v=this.getFirstListNode(h),C=this.getLastListNode(h);return s.getLocationRange(null!==v?v.loc.start.offset-s.startOffset:this.tokenStart,null!==C?C.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,v){var C=void 0!==v&&v<r.length?s.getLocation(v):this.eof?s.getLocation(function EAe(t,r){for(;r>=0&&v0(t.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new Ute(h||"Unexpected input",r,C.offset,C.line,C.column)}});return Object.assign(function(h,v){r=h,v=v||{},l.setSource(r,FZ),s.setSource(r,v.offset,v.line,v.column),e=v.filename||"<unknown>",i=Boolean(v.positions),o="function"==typeof v.onParseError?v.onParseError:Hte,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in v)||Boolean(v.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in v)||Boolean(v.parseRulePrelude),l.parseValue=!("parseValue"in v)||Boolean(v.parseValue),l.parseCustomProperty="parseCustomProperty"in v&&Boolean(v.parseCustomProperty);var C=v,B=C.context,G=void 0===B?"default":B,q=C.onComment;if(!(G in l.context))throw new Error("Unknown context `"+G+"`");"function"==typeof q&&l.forEachToken(function(he,Ye,Me){if(25===he){var Fe=l.getLocation(Ye,Me),ft=X2(r,Me-2,Me,"*/")?r.slice(Ye+2,Me-2):r.slice(Ye+2,Me);q(ft,Fe)}});var ae=l.context[G].call(l,v);return l.eof||l.error(),ae},{SyntaxError:Ute,config:l.config})}var NAe=m(3058),Wte=new Set(["Atrule","Selector","Declaration"]);var aj=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},Vte=[[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],["/","*"]],HAe=Vte.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 Yte(t){var r=new Set(t.map(function(e){var i=(0,Ut.Z)(e,2),o=i[0],a=i[1];return aj(o)<<16|aj(a)}));return function(e,i,o){var a=aj(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 jAe=Yte(Vte),Gte=Yte(HAe);function WAe(t,r){var e=this;if("function"!=typeof r)t.children.forEach(this.node,this);else{var i=null;t.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function VAe(t){var r=this;FZ(t,function(e,i,o){r.token(e,t.slice(i,o))})}function YAe(t){var r=new Map;for(var e in t.node){var i=t.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,f={node:function(C){if(!r.has(C.type))throw new Error("Unknown node type: "+C.type);r.get(C.type).call(h,C)},tokenBefore:Gte,token:function(C,B){u=this.tokenBefore(u,C,B),this.emit(B,C,!1),9===C&&92===B.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(C){l+=C},result:function(){return l}};s&&("function"==typeof s.decorator&&(f=s.decorator(f)),s.sourceMap&&(f=function BAe(t){var r=new NAe.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,f=t.node;t.node=function(C){if(C.loc&&C.loc.start&&Wte.has(C.type)){var B=C.loc.start.line,G=C.loc.start.column-1;(i.line!==B||i.column!==G)&&(i.line=B,i.column=G,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:C.loc.source,original:i,generated:e}))}f.call(this,C),u&&Wte.has(C.type)&&(o.line=s,o.column=l)};var h=t.emit;t.emit=function(C,B,G){for(var q=0;q<C.length;q++)10===C.charCodeAt(q)?(s++,l=0):l++;h(C,B,G)};var v=t.result;return t.result=function(){return u&&r.addMapping(a),{css:v(),map:r}},t}(f)),s.mode in Y&&(f.tokenBefore=Y[s.mode]));var h={node:function(C){return f.node(C)},children:WAe,token:function(C,B){return f.token(C,B)},tokenize:VAe};return f.node(a),f.result()}}var sj=Object.prototype.hasOwnProperty,$2=function(){};function qte(t){return"function"==typeof t?t:$2}function Kte(t,r){return function(e,i,o){e.type===r&&t.call(this,e,i,o)}}function qAe(t,r){var e=r.structure,i=[];for(var o in e)if(!1!==sj.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,cn.Z)(a);try{for(l.s();!(u=l.n()).done;){var f=u.value;null===f?s.nullable=!0:"string"==typeof f?s.type="node":Array.isArray(f)&&(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 Jte(t,r){var e=t.fields.slice(),i=t.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var f;o&&(f=s[i],s[i]=a);var v,h=(0,cn.Z)(e);try{for(h.s();!(v=h.n()).done;){var C=v.value,B=a[C.name];if(!C.nullable||B)if("list"===C.type){if(r?B.reduceRight(u,!1):B.reduce(u,!1))return!0}else if(l(B))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=f)}}function Qte(t){var r=t.StyleSheet,e=t.Atrule,i=t.Rule,o=t.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:t.DeclarationList}}}function JAe(t){var r=function KAe(t){var r={};for(var e in t.node)if(sj.call(t.node,e)){var i=t.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=qAe(0,i)}return r}(t),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)sj.call(r,s)&&null!==r[s]&&(e[s]=Jte(r[s],!1),i[s]=Jte(r[s],!0));var l=Qte(e),u=Qte(i),f=function(v,C){function B(Me,Fe,ft){var ht=G.call(Ye,Me,Fe,ft);return ht===o||ht!==a&&!!(ae.hasOwnProperty(Me.type)&&ae[Me.type](Me,Ye,B,he)||q.call(Ye,Me,Fe,ft)===o)}var G=$2,q=$2,ae=e,he=function(Fe,ft,ht,Re){return Fe||B(ft,ht,Re)},Ye={break:o,skip:a,root:v,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof C)G=C;else if(C&&(G=qte(C.enter),q=qte(C.leave),C.reverse&&(ae=i),C.visit)){if(l.hasOwnProperty(C.visit))ae=C.reverse?u[C.visit]:l[C.visit];else if(!r.hasOwnProperty(C.visit))throw new Error("Bad value `"+C.visit+"` for `visit` option (should be: "+Object.keys(r).sort().join(", ")+")");G=Kte(G,C.visit),q=Kte(q,C.visit)}if(G===$2&&q===$2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");B(v)};return f.break=o,f.skip=a,f.find=function(h,v){var C=null;return f(h,function(B,G,q){if(v.call(this,B,G,q))return C=B,o}),C},f.findLast=function(h,v){var C=null;return f(h,{reverse:!0,enter:function(G,q,ae){if(v.call(this,G,q,ae))return C=G,o}}),C},f.findAll=function(h,v){var C=[];return f(h,function(B,G,q){v.call(this,B,G,q)&&C.push(B)}),C},f}function QAe(t){return t}function lj(t,r,e,i){var o;switch(t.type){case"Group":o=function eOe(t,r,e,i){var o=" "===t.combinator||i?t.combinator:" "+t.combinator+" ",a=t.terms.map(function(s){return lj(s,r,e,i)}).join(o);return t.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(t,r,e,i)+(t.disallowEmpty?"!":"");break;case"Multiplier":return lj(t.term,r,e,i)+r(function XAe(t){var r=t.min,e=t.max,i=t.comma;return 0===r&&0===e?"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(t),t);case"Type":o="<"+t.name+(t.opts?r(function $Ae(t){if("Range"===t.type)return" ["+(null===t.min?"-\u221e":t.min)+","+(null===t.max?"\u221e":t.max)+"]";throw new Error("Unknown node type `"+t.type+"`")}(t.opts),t.opts):"")+">";break;case"Property":o="<'"+t.name+"'>";break;case"Keyword":o=t.name;break;case"AtKeyword":o="@"+t.name;break;case"Function":o=t.name+"(";break;case"String":case"Token":o=t.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+t.type+"`")}return r(o,t)}function uj(t,r){var e=QAe,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)),lj(t,e,i,o)}var Xte={offset:0,line:1,column:1};function HZ(t,r){var e=t&&t.loc&&t.loc[r];return e?"line"in e?eD(e):e:null}function eD(t,r){var a={offset:t.offset,line:t.line,column:t.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 tD=function(r,e){var i=UZ("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},nOe=function(r,e,i,o){var a=UZ("SyntaxMatchError",r),s=function tOe(t,r){for(var h,v,e=t.tokens,i=t.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,f="",C=0;C<e.length;C++){var B=e[C].value;C===i&&(l=B.length,s=f.length),null!==a&&e[C].node===a&&(C<=i?u++:u=0),f+=B}return i===e.length||u>1?(h=HZ(a||r,"end")||eD(Xte,f),v=eD(h)):(h=HZ(a,"start")||eD(HZ(r,"start")||Xte,f.slice(0,s)),v=HZ(a,"end")||eD(h,f.substr(s,l))),{css:f,mismatchOffset:s,mismatchLength:l,start:h,end:v}}(o,i),l=s.css,u=s.mismatchOffset,f=s.mismatchLength,h=s.start,v=s.end;return a.rawMessage=r,a.syntax=e?uj(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=f,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:v},a},jZ=new Map,jw=new Map,cj=function rOe(t){if(jZ.has(t))return jZ.get(t);var r=t.toLowerCase(),e=jZ.get(r);if(void 0===e){var i=dj(r,0),o=i?"":ene(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return jZ.set(t,e),e},$te=function iOe(t){if(jw.has(t))return jw.get(t);var r=t,e=t[0];"/"===e?e="/"===t[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=dj(r,e.length);if(!i&&(r=r.toLowerCase(),jw.has(r))){var o=jw.get(r);return jw.set(t,o),o}var a=i?"":ene(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 jw.set(t,l),l};function dj(t,r){return r=r||0,t.length-r>=2&&45===t.charCodeAt(r)&&45===t.charCodeAt(r+1)}function ene(t,r){if(r=r||0,t.length-r>=3&&45===t.charCodeAt(r)&&45!==t.charCodeAt(r+1)){var e=t.indexOf("-",r+2);if(-1!==e)return t.substring(r,e+1)}return""}var zw=!0;function pj(t,r){return null!==t&&9===t.type&&t.value.charCodeAt(0)===r}function rD(t,r,e){for(;null!==t&&(13===t.type||25===t.type);)t=e(++r);return r}function _g(t,r,e,i){if(!t)return 0;var o=t.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<t.value.length;r++)if(!Gs(t.value.charCodeAt(r)))return 0;return i+1}function hj(t,r,e){var i=!1,o=rD(t,r,e);if(null===(t=e(o)))return r;if(10!==t.type){if(!pj(t,43)&&!pj(t,45))return r;if(i=!0,o=rD(e(++o),o,e),null===(t=e(o))||10!==t.type)return 0}if(!i){var a=t.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return _g(t,i?0:1,i,o)}function mj(t,r){return null!==t&&9===t.type&&t.value.charCodeAt(0)===r}function iD(t,r,e){for(var i=0,o=r;o<t.value.length;o++){var a=t.value.charCodeAt(o);if(45===a&&e&&0!==i)return iD(t,r+i+1,!1),6;if(!pg(a)||++i>6)return 0}return i}function WZ(t,r,e){if(!t)return 0;for(;mj(e(r),63);){if(++t>6)return 0;r++}return r}var dOe=["unset","initial","inherit"],fOe=["calc(","-moz-calc(","-webkit-calc("],_j=new Map([[2,22],[21,22],[19,20],[23,24]]);function Kd(t,r){return r<t.length?t.charCodeAt(r):0}function gj(t,r){return X2(t,0,t.length,r)}function rne(t,r){for(var e=0;e<r.length;e++)if(gj(t,r[e]))return!0;return!1}function ine(t,r){return r===t.length-2&&(92===Kd(t,r)&&Gs(Kd(t,r+1)))}function VZ(t,r,e){if(t&&"Range"===t.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==t.min&&i<t.min||null!==t.max&&i>t.max)return!0}return!1}function one(t,r){var e=0,i=[],o=0;e:do{switch(t.type){case 24:case 22:case 20:if(t.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=_j.get(t.type)}o++}while(t=r(o));return o}function qc(t){return function(r,e,i){return null===r?0:2===r.type&&rne(r.value,fOe)?one(r,e):t(r,e,i)}}function ia(t){return function(r){return null===r||r.type!==t?0:1}}function am(t){return t&&(t=new Set(t)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=NZ(r.value,0);if(null!==t){var a=r.value.indexOf("\\",o),s=-1!==a&&ine(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===t.has(s.toLowerCase()))return 0}return VZ(i,r.value,o)?0:1}}function ane(t){return"function"!=typeof t&&(t=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:t(r,e,i)}}var vj={"ident-token":ia(1),"function-token":ia(2),"at-keyword-token":ia(3),"hash-token":ia(4),"string-token":ia(5),"bad-string-token":ia(6),"url-token":ia(7),"bad-url-token":ia(8),"delim-token":ia(9),"number-token":ia(10),"percentage-token":ia(11),"dimension-token":ia(12),"whitespace-token":ia(13),"CDO-token":ia(14),"CDC-token":ia(15),"colon-token":ia(16),"semicolon-token":ia(17),"comma-token":ia(18),"[-token":ia(19),"]-token":ia(20),"(-token":ia(21),")-token":ia(22),"{-token":ia(23),"}-token":ia(24),string:ia(5),ident:ia(1),"custom-ident":function wOe(t){if(null===t||1!==t.type)return 0;var r=t.value.toLowerCase();return rne(r,dOe)||gj(r,"default")?0:1},"custom-property-name":function kOe(t){return null===t||1!==t.type||45!==Kd(t.value,0)||45!==Kd(t.value,1)?0:1},"hex-color":function TOe(t){if(null===t||4!==t.type)return 0;var r=t.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!pg(Kd(t.value,e)))return 0;return 1},"id-selector":function EOe(t){return null!==t&&4===t.type&&PZ(Kd(t.value,1),Kd(t.value,2),Kd(t.value,3))?1:0},"an-plus-b":function aOe(t,r){var e=0;if(!t)return 0;if(10===t.type)return _g(t,0,false,e);if(1===t.type&&45===t.value.charCodeAt(0)){if(!Fw(t.value,1,110))return 0;switch(t.value.length){case 2:return hj(r(++e),e,r);case 3:return 45!==t.value.charCodeAt(2)?0:(e=rD(r(++e),e,r),_g(t=r(e),0,zw,e));default:return 45!==t.value.charCodeAt(2)?0:_g(t,3,zw,e)}}else if(1===t.type||pj(t,43)&&1===r(e+1).type){if(1!==t.type&&(t=r(++e)),null===t||!Fw(t.value,0,110))return 0;switch(t.value.length){case 1:return hj(r(++e),e,r);case 2:return 45!==t.value.charCodeAt(1)?0:(e=rD(r(++e),e,r),_g(t=r(e),0,zw,e));default:return 45!==t.value.charCodeAt(1)?0:_g(t,2,zw,e)}}else if(12===t.type){for(var i=t.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<t.value.length&&Gs(t.value.charCodeAt(a));a++);return a!==o&&Fw(t.value,a,110)?a+1===t.value.length?hj(r(++e),e,r):45!==t.value.charCodeAt(a+1)?0:a+2===t.value.length?(e=rD(r(++e),e,r),_g(t=r(e),0,zw,e)):_g(t,a+2,zw,e):0}return 0},urange:function cOe(t,r){var e=0;if(null===t||1!==t.type||!Fw(t.value,0,117)||null===(t=r(++e)))return 0;if(mj(t,43))return null===(t=r(++e))?0:1===t.type?WZ(iD(t,0,!0),++e,r):mj(t,63)?WZ(1,++e,r):0;if(10===t.type){var i=iD(t,1,!0);return 0===i?0:null===(t=r(++e))?e:12===t.type||10===t.type?function uOe(t,r){return t.value.charCodeAt(0)===r}(t,45)&&iD(t,1,!1)?e+1:0:WZ(i,e,r)}return 12===t.type?WZ(iD(t,1,!0),++e,r):0},"declaration-value":function MOe(t,r){if(!t)return 0;var e=0,i=[],o=0;e:do{switch(t.type){case 6:case 8:break e;case 24:case 22:case 20:if(t.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===t.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=_j.get(t.type)}o++}while(t=r(o));return o},"any-value":function SOe(t,r){if(!t)return 0;var e=0,i=[],o=0;e:do{switch(t.type){case 6:case 8:break e;case 24:case 22:case 20:if(t.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=_j.get(t.type)}o++}while(t=r(o));return o},dimension:qc(am(null)),angle:qc(am(["deg","grad","rad","turn"])),decibel:qc(am(["db"])),frequency:qc(am(["hz","khz"])),flex:qc(am(["fr"])),length:qc(ane(am(["px","mm","cm","in","pt","pc","q","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]))),resolution:qc(am(["dpi","dpcm","dppx","x"])),semitones:qc(am(["st"])),time:qc(am(["s","ms"])),percentage:qc(function xOe(t,r,e){return null===t||11!==t.type||VZ(e,t.value,t.value.length-1)?0:1}),zero:ane(),number:qc(function DOe(t,r,e){if(null===t)return 0;var i=NZ(t.value,0);return!(i===t.value.length)&&!ine(t.value,i)||VZ(e,t.value,i)?0:1}),integer:qc(function AOe(t,r,e){if(null===t||10!==t.type)return 0;for(var i=43===Kd(t.value,0)||45===Kd(t.value,0)?1:0;i<t.value.length;i++)if(!Gs(Kd(t.value,i)))return 0;return VZ(e,t.value,i)?0:1}),"-ms-legacy-expression":function COe(t){return t+="(",function(r,e){return null!==r&&gj(r.value,t)?one(r,e):0}}("expression")};function OOe(t,r,e){return Object.assign(UZ("SyntaxError",t),{input:r,offset:e,rawMessage:t,message:t+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var NOe=function(){function t(r){(0,j.Z)(this,t),this.str=r,this.pos=0}return(0,V.Z)(t,[{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 OOe(e,this.str,this.pos)}}]),t}(),wj=new Uint8Array(128).map(function(t,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),yne={" ":1,"&&":2,"||":3,"|":4};function KZ(t){return t.substringToPos(t.findWsEnd(t.pos))}function JZ(t){for(var r=t.pos;r<t.str.length;r++){var e=t.str.charCodeAt(r);if(e>=128||0===wj[e])break}return t.pos===r&&t.error("Expect a keyword"),t.substringToPos(r)}function QZ(t){for(var r=t.pos;r<t.str.length;r++){var e=t.str.charCodeAt(r);if(e<48||e>57)break}return t.pos===r&&t.error("Expect a number"),t.substringToPos(r)}function VOe(t){var r=t.str.indexOf("'",t.pos+1);return-1===r&&(t.pos=t.str.length,t.error("Expect an apostrophe")),t.substringToPos(r+1)}function bne(t){var r,e=null;return t.eat(123),r=QZ(t),44===t.charCode()?(t.pos++,125!==t.charCode()&&(e=QZ(t))):e=r,t.eat(125),{min:Number(r),max:e?Number(e):0}}function oD(t,r){var e=function YOe(t){var r=null,e=!1;switch(t.charCode()){case 42:t.pos++,r={min:0,max:0};break;case 43:t.pos++,r={min:1,max:0};break;case 63:t.pos++,r={min:0,max:1};break;case 35:t.pos++,e=!0,r=123===t.charCode()?bne(t):{min:1,max:0};break;case 123:r=bne(t);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(t);return null!==e?(e.term=r,e):r}function kj(t){var r=t.peek();return""===r?null:{type:"Token",value:r}}function KOe(t){var r,e=null;return t.eat(60),r=JZ(t),40===t.charCode()&&41===t.nextCharCode()&&(t.pos+=2,r+="()"),91===t.charCodeAt(t.findWsEnd(t.pos))&&(KZ(t),e=function qOe(t){var r=null,e=null,i=1;return t.eat(91),45===t.charCode()&&(t.peek(),i=-1),-1==i&&8734===t.charCode()?t.peek():r=i*Number(QZ(t)),KZ(t),t.eat(44),KZ(t),8734===t.charCode()?t.peek():(i=1,45===t.charCode()&&(t.peek(),i=-1),e=i*Number(QZ(t))),t.eat(93),null===r&&null===e?null:{type:"Range",min:r,max:e}}(t)),t.eat(62),oD(t,{type:"Type",name:r,opts:e})}function QOe(t,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 yne[l]-yne[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<t.length;o++){var s=t[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),t.splice(o,1),o--):(-1!==a&&o-a>1&&(t.splice(a,o-a,e(t.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&t.splice(a,o-a,e(t.slice(a,o),i))}return i}function Cne(t){for(var i,r=[],e={},o=null,a=t.pos;i=$Oe(t);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(t.pos=a,t.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=t.pos);return null!==o&&"Combinator"===o.type&&(t.pos-=a,t.error("Unexpected combinator")),{type:"Group",terms:r,combinator:QOe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function $Oe(t){var r=t.charCode();if(r<128&&1===wj[r])return function JOe(t){var r=JZ(t);return 40===t.charCode()?(t.pos++,{type:"Function",name:r}):oD(t,{type:"Keyword",name:r})}(t);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return oD(t,function XOe(t){var r;return t.eat(91),r=Cne(t),t.eat(93),r.explicit=!0,33===t.charCode()&&(t.pos++,r.disallowEmpty=!0),r}(t));case 60:return 39===t.nextCharCode()?function GOe(t){var r;return t.eat(60),t.eat(39),r=JZ(t),t.eat(39),t.eat(62),oD(t,{type:"Property",name:r})}(t):KOe(t);case 124:return{type:"Combinator",value:t.substringToPos(t.pos+(124===t.nextCharCode()?2:1))};case 38:return t.pos++,t.eat(38),{type:"Combinator",value:"&&"};case 44:return t.pos++,{type:"Comma"};case 39:return oD(t,{type:"String",value:VOe(t)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:KZ(t)};case 64:return(r=t.nextCharCode())<128&&1===wj[r]?(t.pos++,{type:"AtKeyword",name:JZ(t)}):kj(t);case 123:if((r=t.nextCharCode())<48||r>57)return kj(t);break;default:return kj(t)}}function wne(t){var r=new NOe(t),e=Cne(r);return r.pos!==t.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var aD=function(){};function kne(t){return"function"==typeof t?t:aD}var tIe={decorator:function(r){var e=[],i=null;return Vc(Vc({},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 rIe(t,r){return"string"==typeof t?function nIe(t){var r=[];return FZ(t,function(e,i,o){return r.push({type:e,value:t.slice(i,o),node:null})}),r}(t):r.generate(t,tIe)}var Mo={type:"Match"},No={type:"Mismatch"},Tj={type:"DisallowEmpty"};function Al(t,r,e){return r===Mo&&e===No||t===Mo&&r===Mo&&e===Mo?t:("If"===t.type&&t.else===No&&r===Mo&&(r=t.then,t=t.match),{type:"If",match:t,then:r,else:e})}function Tne(t){return t.length>2&&40===t.charCodeAt(t.length-2)&&41===t.charCodeAt(t.length-1)}function Ene(t){return"Keyword"===t.type||"AtKeyword"===t.type||"Function"===t.type||"Type"===t.type&&Tne(t.name)}function Ej(t,r,e){switch(t){case" ":for(var i=Mo,o=r.length-1;o>=0;o--){i=Al(r[o],i,No)}return i;case"|":for(var s=No,l=null,u=r.length-1;u>=0;u--){var f=r[u];if(Ene(f)&&(null===l&&u>0&&Ene(r[u-1])&&(s=Al({type:"Enum",map:l=Object.create(null)},Mo,s)),null!==l)){var h=(Tne(f.name)?f.name.slice(0,-1):f.name).toLowerCase();if(!(h in l)){l[h]=f;continue}}l=null,s=Al(f,Mo,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var v=No,C=function(Ye){var Me=r[Ye],Fe=void 0;Fe=r.length>1?Ej(t,r.filter(function(ft){return ft!==Me}),!1):Mo,v=Al(Me,Fe,v)},B=r.length-1;B>=0;B--)C(B);return v;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var G=e?Mo:No,q=function(Ye){var Me=r[Ye],Fe=void 0;Fe=r.length>1?Ej(t,r.filter(function(ft){return ft!==Me}),!0):Mo,G=Al(Me,Fe,G)},ae=r.length-1;ae>=0;ae--)q(ae);return G}}function Mj(t){if("function"==typeof t)return{type:"Generic",fn:t};switch(t.type){case"Group":var r=Ej(t.combinator,t.terms.map(Mj),!1);return t.disallowEmpty&&(r=Al(r,Tj,No)),r;case"Multiplier":return function aIe(t){var r=Mo,e=Mj(t.term);if(0===t.max)e=Al(e,Tj,No),(r=Al(e,null,No)).then=Al(Mo,Mo,r),t.comma&&(r.then.else=Al({type:"Comma",syntax:t},r,No));else for(var i=t.min||1;i<=t.max;i++)t.comma&&r!==Mo&&(r=Al({type:"Comma",syntax:t},r,No)),r=Al(e,Al(Mo,Mo,r),No);if(0===t.min)r=Al(Mo,Mo,r);else for(var o=0;o<t.min-1;o++)t.comma&&r!==Mo&&(r=Al({type:"Comma",syntax:t},r,No)),r=Al(e,r,No);return r}(t);case"Type":case"Property":return{type:t.type,name:t.name,syntax:t};case"Keyword":return{type:t.type,name:t.name.toLowerCase(),syntax:t};case"AtKeyword":return{type:t.type,name:"@"+t.name.toLowerCase(),syntax:t};case"Function":return{type:t.type,name:t.name.toLowerCase()+"(",syntax:t};case"String":return 3===t.value.length?{type:"Token",value:t.value.charAt(1),syntax:t}:{type:t.type,value:t.value.substr(1,t.value.length-2).replace(/\\'/g,"'"),syntax:t};case"Token":return{type:t.type,value:t.value,syntax:t};case"Comma":return{type:t.type,syntax:t};default:throw new Error("Unknown node type:",t.type)}}function XZ(t,r){return"string"==typeof t&&(t=wne(t)),{type:"MatchGraph",match:Mj(t),syntax:r||null,source:t}}var Mne=Object.prototype.hasOwnProperty;function Dne(t){for(var r=null,e=null,i=t;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function xj(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;e++){var i=r.charCodeAt(e),o=t.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function Ane(t){return null===t||(18===t.type||2===t.type||21===t.type||19===t.type||23===t.type||function fIe(t){return 9===t.type&&"?"!==t.value}(t))}function One(t){return null===t||(22===t.type||20===t.type||24===t.type||9===t.type)}function Ine(t,r,e){function i(){do{Ye++,he=Ye<t.length?t[Ye]:null}while(null!==he&&(13===he.type||25===he.type))}function o(pt){var xt=Ye+pt;return xt<t.length?t[xt]:null}function a(pt,xt){return{nextState:pt,matchStack:Fe,syntaxStack:v,thenStack:C,tokenIndex:Ye,prev:xt}}function s(pt){C={nextState:pt,matchStack:Fe,syntaxStack:v,prev:C}}function l(pt){B=a(pt,B)}function u(){Fe={type:1,syntax:r.syntax,token:he,prev:Fe},i(),G=null,Ye>Me&&(Me=Ye)}function h(){Fe=2===Fe.type?Fe.prev:{type:3,syntax:v.syntax,token:Fe.token,prev:Fe},v=v.prev}var v=null,C=null,B=null,G=null,q=0,ae=null,he=null,Ye=-1,Me=0,Fe={type:0,syntax:null,token:null,prev:null};for(i();null===ae&&++q<15e3;)switch(r.type){case"Match":if(null===C){if(null!==he&&(Ye!==t.length-1||"\\0"!==he.value&&"\\9"!==he.value)){r=No;break}ae="Match";break}if((r=C.nextState)===Tj){if(C.matchStack===Fe){r=No;break}r=Mo}for(;C.syntaxStack!==v;)h();C=C.prev;break;case"Mismatch":if(null!==G&&!1!==G)(null===B||Ye>B.tokenIndex)&&(B=G,G=!1);else if(null===B){ae="Mismatch";break}r=B.nextState,C=B.thenStack,v=B.syntaxStack,Fe=B.matchStack,Ye=B.tokenIndex,he=Ye<t.length?t[Ye]:null,B=B.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==No&&l(r.else),r.then!==Mo&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var ft=r.syntax.terms;if(r.index===ft.length){if(0===r.mask||r.syntax.all){r=No;break}r=Mo;break}if(r.mask===(1<<ft.length)-1){r=Mo;break}for(;r.index<ft.length;r.index++){var ht=1<<r.index;if(0==(r.mask&ht)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|ht}),r=ft[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==he){var Re=he.value.toLowerCase();if(-1!==Re.indexOf("\\")&&(Re=Re.replace(/\\[09].*$/,"")),Mne.call(r.map,Re)){r=r.map[Re];break}}r=No;break;case"Generic":var ut=null!==v?v.opts:null,kt=Ye+Math.floor(r.fn(he,o,ut));if(!isNaN(kt)&&kt>Ye){for(;Ye<kt;)u();r=Mo}else r=No;break;case"Type":case"Property":var x="Type"===r.type?"types":"properties",g=Mne.call(e,x)?e[x][r.name]:null;if(!g||!g.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==G&&null!==he&&"Type"===r.type)if("custom-ident"===r.name&&1===he.type||"length"===r.name&&"0"===he.value){null===G&&(G=a(r,B)),r=No;break}v={syntax:r.syntax,opts:r.syntax.opts||null!==v&&v.opts||null,prev:v},Fe={type:2,syntax:r.syntax,token:Fe.token,prev:Fe},r=g.match;break;case"Keyword":var H=r.name;if(null!==he){var te=he.value;if(-1!==te.indexOf("\\")&&(te=te.replace(/\\[09].*$/,"")),xj(te,H)){u(),r=Mo;break}}r=No;break;case"AtKeyword":case"Function":if(null!==he&&xj(he.value,r.name)){u(),r=Mo;break}r=No;break;case"Token":if(null!==he&&he.value===r.value){u(),r=Mo;break}r=No;break;case"Comma":null!==he&&18===he.type?Ane(Fe.token)?r=No:(u(),r=One(he)?No:Mo):r=Ane(Fe.token)||One(he)?Mo:No;break;case"String":for(var re="",ye=Ye;ye<t.length&&re.length<r.value.length;ye++)re+=t[ye].value;if(xj(re,r.value)){for(;Ye<ye;)u();r=Mo}else r=No;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,ae){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),ae="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Fe=null;break;case"Match":for(;null!==v;)h();break;default:Fe=null}return{tokens:t,reason:ae,iterations:q,match:Fe,longestMatch:Me}}function Pne(t,r,e){var i=Ine(t,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=Dne(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 Rne(t){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===t)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function pIe(t,r){return Dj(this,t,function(e){return"Type"===e.type&&e.name===r})}function hIe(t,r){return Dj(this,t,function(e){return"Property"===e.type&&e.name===r})}function mIe(t){return Dj(this,t,function(r){return"Keyword"===r.type})}function Dj(t,r,e){var i=Rne.call(t,r);return null!==i&&i.some(e)}function Lne(t){return"node"in t?t.node:Lne(t.match[0])}function Zne(t){return"node"in t?t.node:Zne(t.match[t.match.length-1])}function Nne(t,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=Lne(l),f=Zne(l);t.syntax.walk(r,function(h,v,C){if(h===u){var B=new y0;do{if(B.appendData(v.data),v.data===f)break;v=v.next}while(null!==v);s.push({parent:C,nodes:B})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var sD=Object.prototype.hasOwnProperty;function Aj(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&t>=0}function Bne(t){return Boolean(t)&&Aj(t.offset)&&Aj(t.line)&&Aj(t.column)}function _Ie(t,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!==sD.call(i,a)){if("type"===a)i.type!==t&&o(i,"Wrong node type `"+i.type+"`, expected `"+t+"`");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(Bne(i.loc.start)){if(Bne(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 y0)}}}else o(i,"Unknown field `"+a+"` for "+t+" node type");s||o(i,"Bad value for `"+t+"."+a+"`")}}for(var f in r)sD.call(r,f)&&!1===sD.call(i,f)&&o(i,"Field `"+t+"."+f+"` is missed")}}function gIe(t,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+t+'"'};for(var a in e)if(!1!==sD.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 f=l[u];if(f===String||f===Boolean)s.push(f.name);else if(null===f)s.push("null");else if("string"==typeof f)s.push("<"+f+">");else{if(!Array.isArray(f))throw new Error("Wrong value `"+f+"` in `"+t+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:_Ie(t,i)}}var yIe=XZ("inherit | initial | unset"),bIe=XZ("inherit | initial | unset | <-ms-legacy-expression>");function Oj(t,r,e){var i={};for(var o in t)t[o].syntax&&(i[o]=e?t[o].syntax:uj(t[o].syntax,{compact:r}));return i}function CIe(t,r,e){for(var i={},o=0,a=Object.entries(t);o<a.length;o++){var s=(0,Ut.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:uj(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&Oj(u.descriptors,r,e)}}return i}function Jd(t,r,e){return Vc({matched:t,iterations:e,error:r},M)}function lD(t,r,e,i){var a,o=rIe(e,t.syntax);return function wIe(t){for(var r=0;r<t.length;r++)if("var("===t[r].value.toLowerCase())return!0;return!1}(o)?Jd(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Pne(o,t.valueCommonSyntax,t)),i&&a.match||(a=Pne(o,r.match,t)).match?Jd(a.match,null,a.iterations):Jd(null,new nOe(a.reason,r.syntax,e,a),a.iterations))}var Fne=function(){function t(r,e,i){if((0,j.Z)(this,t),this.valueCommonSyntax=yIe,this.syntax=e,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function vIe(t){var r={};if(t.node)for(var e in t.node)if(sD.call(t.node,e)){var i=t.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=gIe(e,i)}return r}(r),r){if(r.types)for(var o in r.types)this.addType_(o,r.types[o]);if(r.generic)for(var a in this.generic=!0,vj)this.addType_(a,vj[a]);if(r.atrules)for(var s in r.atrules)this.addAtrule_(s,r.atrules[s]);if(r.properties)for(var l in r.properties)this.addProperty_(l,r.properties[l])}}return(0,V.Z)(t,[{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=XZ(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:wne(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:XZ(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),i===vj["-ms-legacy-expression"]&&(this.valueCommonSyntax=bIe))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new tD("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?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=cj(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new tD("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 tD("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);return o?Jd(null,o):i?lD(this,this.getAtrule(e).prelude,i,!1):Jd(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return Jd(null,a);var s=this.getAtrule(e),l=cj(i);return lD(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?Jd(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if($te(e).custom)return Jd(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?Jd(null,o):lD(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?lD(this,o,i,!1):Jd(null,new tD("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")),lD(this,e,i,!1)):Jd(null,new tD("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return Nne(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return Nne(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=cj(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=$te(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,f,h){if(f.has(u))return f.get(u);f.set(u,!1),null!==h.syntax&&function eIe(t,r,e){var o=aD,a=aD;if("function"==typeof r?o=r:r&&(o=kne(r.enter),a=kne(r.leave)),o===aD&&a===aD)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)}(t)}(h.syntax,function(v){if("Type"===v.type||"Property"===v.type){var C="Type"===v.type?l.types:l.properties,B="Type"===v.type?i:o;(!hasOwnProperty.call(C,v.name)||e(l,v.name,B,C[v.name]))&&f.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,$t.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,$t.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,types:Oj(this.types,!i,e),properties:Oj(this.properties,!i,e),atrules:CIe(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),t}(),Ww=Object.prototype.hasOwnProperty,kIe={generic:!0,types:Pj,atrules:{prelude:jne,descriptors:jne},properties:Pj,parseContext:function TIe(t,r){return Object.assign(t,r)},scope:function Une(t,r){for(var e in r)Ww.call(r,e)&&(eN(t[e])?Une(t[e],Ij(r[e])):t[e]=Ij(r[e]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function eN(t){return t&&t.constructor===Object}function Ij(t){return eN(t)?Vc({},t):t}function Hne(t,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof t?t+r:r.replace(/^\s*\|\s*/,""):r||null}function Pj(t,r){if("string"==typeof r)return Hne(t,r);var e=Vc({},t);for(var i in r)Ww.call(r,i)&&(e[i]=Hne(Ww.call(t,i)?t[i]:void 0,r[i]));return e}function jne(t,r){var e=Pj(t,r);return!eN(e)||Object.keys(e).length?e:null}function uD(t,r,e){for(var i in e)if(!1!==Ww.call(e,i))if(!0===e[i])i in r&&Ww.call(r,i)&&(t[i]=Ij(r[i]));else if(e[i])if("function"==typeof e[i]){var o=e[i];t[i]=o({},t[i]),t[i]=o(t[i]||{},r[i])}else if(eN(e[i])){var a={};for(var s in t[i])a[s]=uD({},t[i][s],e[i]);for(var l in r[i])a[l]=uD(a[l]||{},r[i][l],e[i]);t[i]=a}else if(Array.isArray(e[i])){for(var u={},f=e[i].reduce(function(ae,he){return ae[he]=!0,ae},{}),h=0,v=Object.entries(t[i]||{});h<v.length;h++){var C=(0,Ut.Z)(v[h],2),B=C[0],G=C[1];u[B]={},G&&uD(u[B],G,f)}for(var q in r[i])Ww.call(r[i],q)&&(u[q]||(u[q]={}),r[i]&&r[i][q]&&uD(u[q],r[i][q],f));t[i]=u}return t}var Rj=function(t,r){return uD(t,r,kIe)};function zne(t){var r=ZAe(t),e=JAe(t),i=YAe(t),o=function GAe(t){return{fromPlainObject:function(e){return t(e,{enter:function(o){o.children&&!(o.children instanceof y0)&&(o.children=(new y0).fromArray(o.children))}}),e},toPlainObject:function(e){return t(e,{leave:function(o){o.children&&o.children instanceof y0&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(f){return new Fne(f,l,l.lexer.structure)},tokenize:FZ,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(f){var h=Rj({},t);return zne("function"==typeof f?f(h,Object.assign):Rj(h,f))}};return l.lexer=new Fne({generic:!0,types:t.types,atrules:t.atrules,properties:t.properties,node:t.node},l),l}var b0=!0;function nN(t,r){var e=this.tokenStart+t,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)Gs(this.charCodeAt(e))||this.error("Integer is expected",e)}function Vw(t){return nN.call(this,0,t)}function gg(t,r){if(!this.cmpChar(this.tokenStart+t,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+t)}}function Lj(){for(var t=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++t);if(10!==e){if(!this.isDelim(43,t)&&!this.isDelim(45,t))return null;r=this.isDelim(43,t)?43:45;do{e=this.lookupType(++t)}while(13===e||25===e);10!==e&&(this.skip(t),Vw.call(this,b0))}return t>0&&this.skip(t),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),Vw.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var xIe="AnPlusB",DIe={a:[String,null],b:[String,null]};function Wne(){var t=this.tokenStart,r=null,e=null;if(10===this.tokenType)Vw.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",gg.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=Lj.call(this);break;case 3:gg.call(this,2,45),this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10);break;default:gg.call(this,2,45),nN.call(this,3,b0),this.next(),e=this.substrToCursor(t+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()),gg.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=Lj.call(this);break;case 2:gg.call(this,1,45),this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10);break;default:gg.call(this,1,45),nN.call(this,2,b0),this.next(),e=this.substrToCursor(t+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&&Gs(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),gg.call(this,s-this.tokenStart,110),r=this.substring(t,s),s+1===this.tokenEnd?(this.next(),e=Lj.call(this)):(gg.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),Vw.call(this,b0),e="-"+this.consume(10)):(nN.call(this,s-this.tokenStart+2,b0),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(t,this.tokenStart),a:r,b:e}}function AIe(t){if(t.a){var r=("+1"===t.a||"1"===t.a?"n":"-1"===t.a&&"-n")||t.a+"n";if(t.b){var e="-"===t.b[0]||"+"===t.b[0]?t.b:"+"+t.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(t.b)}function Vne(t){return this.Raw(t,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function OIe(){for(var r,t=1;r=this.lookupType(t);t++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var IIe="Atrule",PIe="atrule",RIe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Yne(){var r,e,t=this.tokenStart,i=null,o=null;switch(this.eat(3),e=(r=this.substrToCursor(t+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,r),Vne):Vne.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].block?this.atrule[e].block.call(this):this.Block(OIe.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:r,prelude:i,block:o}}function LIe(t){this.token(3,"@"+t.name),null!==t.prelude&&this.node(t.prelude),t.block?this.node(t.block):this.token(17,";")}var ZIe="AtrulePrelude",NIe="atrulePrelude",BIe={children:[[]]};function Gne(t){var r=null;return null!==t&&(t=t.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,t)&&"function"==typeof this.atrule[t].prelude?this.atrule[t].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 FIe(t){this.children(t)}function zIe(){this.eof&&this.error("Unexpected end of input");var t=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(t,this.tokenStart),name:this.substrToCursor(t)}}function WIe(){var t=this.tokenStart,r=this.charCodeAt(t);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(t)}var VIe="AttributeSelector",YIe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Kne(){var r,t=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=zIe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=WIe.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(t,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function GIe(t){this.token(9,"["),this.node(t.name),null!==t.matcher&&(this.tokenize(t.matcher),this.node(t.value)),null!==t.flags&&this.token(1,t.flags),this.token(9,"]")}function Jne(t){return this.Raw(t,null,!0)}function qIe(){return this.parseWithFallback(this.Rule,Jne)}function Qne(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}function KIe(){if(17===this.tokenType)return Qne.call(this,this.tokenIndex);var t=this.parseWithFallback(this.Declaration,Qne);return 17===this.tokenType&&this.next(),t}var JIe="Block",QIe="block",XIe={children:[["Atrule","Rule","Declaration"]]};function Xne(t){var r=t?KIe:qIe,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,Jne));break;default:i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function $Ie(t){var r=this;this.token(23,"{"),this.children(t,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var ePe="Brackets",tPe={children:[[]]};function $ne(t,r){var i,e=this.tokenStart;return this.eat(19),i=t.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function nPe(t){this.token(9,"["),this.children(t),this.token(9,"]")}var rPe="CDC",iPe=[];function ere(){var t=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(t,this.tokenStart)}}function oPe(){this.token(15,"--\x3e")}var aPe="CDO",sPe=[];function tre(){var t=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(t,this.tokenStart)}}function lPe(){this.token(14,"\x3c!--")}var cPe="ClassSelector",dPe={name:String};function nre(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function fPe(t){this.token(9,"."),this.token(1,t.name)}var _Pe="Combinator",gPe={name:String};function ire(){var r,t=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(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:r}}function vPe(t){this.tokenize(t.name)}var CPe="Comment",wPe={value:String};function ore(){var t=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-t+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(t,this.tokenStart),value:this.substring(t+2,r)}}function kPe(t){this.token(25,"/*"+t.value+"*/")}function DPe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!0)}function APe(t){return this.Raw(t,this.consumeUntilExclamationMarkOrSemicolon,!1)}function OPe(){var t=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(t)&&this.error(),r}var IPe="Declaration",PPe="declaration",RPe={important:[Boolean,String],property:String,value:["Value","Raw"]};function lre(){var l,t=this.tokenStart,r=this.tokenIndex,e=ZPe.call(this),i=dj(e),o=i?this.parseCustomProperty:this.parseValue,a=i?APe:DPe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(OPe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var f=u-this.tokenIndex;f<=0;f++)if(13===this.lookupType(f)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=NPe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:e,value:l}}function LPe(t){this.token(1,t.property),this.token(16,":"),this.node(t.value),t.important&&(this.token(9,"!"),this.token(1,!0===t.important?"important":t.important))}function ZPe(){var t=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(t)}function NPe(){this.eat(9),this.skipSC();var t=this.consume(1);return"important"===t||t}function BPe(t){return this.Raw(t,this.consumeUntilSemicolonIncluded,!0)}var FPe="DeclarationList",UPe={children:[["Declaration"]]};function ure(){for(var t=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:t.push(this.parseWithFallback(this.Declaration,BPe))}return{type:"DeclarationList",loc:this.getLocationFromList(t),children:t}}function HPe(t){var r=this;this.children(t,function(e){"Declaration"===e.type&&r.token(17,";")})}var jPe="Dimension",zPe={value:String,unit:String};function cre(){var t=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(t,this.tokenStart),value:r,unit:this.substring(t+r.length,this.tokenStart)}}function WPe(t){this.token(12,t.value+t.unit)}var VPe="Function",YPe="function",GPe={name:String,children:[[]]};function dre(t,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):t.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function qPe(t){this.token(2,t.name+"("),this.children(t),this.token(22,")")}var KPe="XXX",JPe="Hash",QPe={value:String};function fre(){var t=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t+1)}}function XPe(t){this.token(4,"#"+t.value)}var $Pe="Identifier",e3e={name:String};function pre(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function t3e(t){this.token(1,t.name)}var n3e="IdSelector",r3e={name:String};function hre(){var t=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t+1)}}function i3e(t){this.token(9,"#"+t.name)}var o3e="MediaFeature",a3e={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function mre(){var r,t=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(t,this.tokenStart),name:r,value:e}}function s3e(t){this.token(21,"("),this.token(1,t.name),null!==t.value&&(this.token(16,":"),this.node(t.value)),this.token(22,")")}var l3e="MediaQuery",u3e={children:[["Identifier","MediaFeature","WhiteSpace"]]};function _re(){var t=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}t.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(t),children:t}}function c3e(t){this.children(t)}var d3e="MediaQueryList",f3e={children:[["MediaQuery"]]};function gre(){var t=this.createList();for(this.skipSC();!this.eof&&(t.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(t),children:t}}function p3e(t){var r=this;this.children(t,function(){return r.token(18,",")})}var h3e="Nth",m3e={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function vre(){this.skipSC();var i,t=this.tokenStart,r=t,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(t,r),nth:i,selector:e}}function _3e(t){this.node(t.nth),null!==t.selector&&(this.token(1,"of"),this.node(t.selector))}var g3e="Number",v3e={value:String};function yre(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function y3e(t){this.token(10,t.value)}var b3e="Operator",C3e={value:String};function bre(){var t=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function w3e(t){this.tokenize(t.value)}var k3e="Parentheses",T3e={children:[[]]};function Cre(t,r){var i,e=this.tokenStart;return this.eat(21),i=t.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function E3e(t){this.token(21,"("),this.children(t),this.token(22,")")}var M3e="Percentage",S3e={value:String};function wre(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function x3e(t){this.token(11,t.value+"%")}var D3e="PseudoClassSelector",A3e="function",O3e={name:String,children:[["Raw"],null]};function kre(){var e,i,t=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(t,this.tokenStart),name:e,children:r}}function I3e(t){this.token(16,":"),null===t.children?this.token(1,t.name):(this.token(2,t.name+"("),this.children(t),this.token(22,")"))}var P3e="PseudoElementSelector",R3e="function",L3e={name:String,children:[["Raw"],null]};function Tre(){var e,i,t=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(t,this.tokenStart),name:e,children:r}}function Z3e(t){this.token(16,":"),this.token(16,":"),null===t.children?this.token(1,t.name):(this.token(2,t.name+"("),this.children(t),this.token(22,")"))}function Ere(){this.skipSC();for(var t=this.consume(10),r=0;r<t.length;r++){var e=t.charCodeAt(r);!Gs(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-t.length+r)}return 0===Number(t)&&this.error("Zero number is not allowed",this.tokenStart-t.length),t}var F3e="Ratio",U3e={left:String,right:String};function Mre(){var e,t=this.tokenStart,r=Ere.call(this);return this.skipSC(),this.eatDelim(47),e=Ere.call(this),{type:"Ratio",loc:this.getLocation(t,this.tokenStart),left:r,right:e}}function H3e(t){this.token(10,t.left),this.token(9,"/"),this.token(10,t.right)}function j3e(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var z3e="Raw",W3e={value:String};function Sre(t,r,e){var o,i=this.getTokenStart(t);return this.skipUntilBalanced(t,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?j3e.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function V3e(t){this.tokenize(t.value)}function xre(t){return this.Raw(t,this.consumeUntilLeftCurlyBracket,!0)}function Y3e(){var t=this.SelectorList();return"Raw"!==t.type&&!1===this.eof&&23!==this.tokenType&&this.error(),t}var G3e="Rule",q3e="rule",K3e={prelude:["SelectorList","Raw"],block:["Block"]};function Dre(){var e,i,t=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Y3e,xre):xre.call(this,t),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function J3e(t){this.node(t.prelude),this.node(t.block)}var Q3e="Selector",X3e={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Are(){var t=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(t)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(t),children:t}}function $3e(t){this.children(t)}var e6e="SelectorList",t6e="selector",n6e={children:[["Selector","Raw"]]};function Ore(){for(var t=this.createList();!this.eof&&(t.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(t),children:t}}function r6e(t){var r=this;this.children(t,function(){return r.token(18,",")})}function Rre(t){for(var r=t.length,e=t.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&t.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=t.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=t.substr(s+1));break}if(_p(92,l=t.charCodeAt(++s))){var u=s-1,f=Uw(t,u);s=f-1,a+=Ite(t.substring(u+1,f))}else 13===l&&10===t.charCodeAt(s+1)&&s++}else a+=t[s]}return a}var o6e="String",a6e={value:String};function Lre(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Rre(this.consume(5))}}function s6e(t){this.token(5,function i6e(t,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<t.length;s++){var l=t.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+t.charAt(s),a=!1):(a&&(pg(l)||v0(l))&&(o+=" "),o+=t.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(t.value))}function Zre(t){return this.Raw(t,null,!1)}var u6e="StyleSheet",c6e="stylesheet",d6e={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Nre(){for(var e,t=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,Zre);break;default:e=this.parseWithFallback(this.Rule,Zre)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:r}}function f6e(t){this.children(t)}function Bj(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var h6e="TypeSelector",m6e={name:String};function Fre(){var t=this.tokenStart;return this.isDelim(124)?(this.next(),Bj.call(this)):(Bj.call(this),this.isDelim(124)&&(this.next(),Bj.call(this))),{type:"TypeSelector",loc:this.getLocation(t,this.tokenStart),name:this.substrToCursor(t)}}function _6e(t){this.tokenize(t.name)}function cD(t,r){for(var e=0,i=this.tokenStart+t;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return cD.call(this,t+e+1,!1),-1;pg(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 iN(t){for(var r=0;this.isDelim(63);)++r>t&&this.error("Too many question marks"),this.next()}function g6e(t){this.charCodeAt(this.tokenStart)!==t&&this.error((43===t?"Plus sign":"Hyphen minus")+" is expected")}function v6e(){var t=0;switch(this.tokenType){case 10:if(t=cD.call(this,1,!0),this.isDelim(63)){iN.call(this,6-t);break}if(12===this.tokenType||10===this.tokenType){g6e.call(this,45),cD.call(this,1,!1);break}break;case 12:(t=cD.call(this,1,!0))>0&&iN.call(this,6-t);break;default:if(this.eatDelim(43),1===this.tokenType){(t=cD.call(this,0,!0))>0&&iN.call(this,6-t);break}if(this.isDelim(63)){this.next(),iN.call(this,5);break}this.error("Hex digit or question mark is expected")}}var y6e="UnicodeRange",b6e={value:String};function jre(){var t=this.tokenStart;return this.eatIdent("u"),v6e.call(this),{type:"UnicodeRange",loc:this.getLocation(t,this.tokenStart),value:this.substrToCursor(t)}}function C6e(t){this.tokenize(t.value)}var x6e="Url",D6e={value:String};function Wre(){var r,t=this.tokenStart;switch(this.tokenType){case 7:r=function M6e(t){for(var r=t.length,e=4,i=41===t.charCodeAt(r-1)?r-2:r-1,o="";e<i&&v0(t.charCodeAt(e));)e++;for(;e<i&&v0(t.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=t.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=t.substr(a+1));break}if(_p(92,s=t.charCodeAt(++a))){var l=a-1,u=Uw(t,l);a=u-1,o+=Ite(t.substring(l+1,u))}else 13===s&&10===t.charCodeAt(a+1)&&a++}else o+=t[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=Rre(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(t,this.tokenStart),value:r}}function A6e(t){this.token(7,function S6e(t){for(var r="",e=!1,i=0;i<t.length;i++){var o=t.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+="\\"+t.charAt(i),e=!1):(e&&pg(o)&&(r+=" "),r+=t.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(t.value))}var O6e="Value",I6e={children:[[]]};function Vre(){var t=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(t,this.tokenStart),children:r}}function P6e(t){this.children(t)}var R6e=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),L6e="WhiteSpace",Z6e={value:String};function Yre(){return this.eat(13),R6e}function N6e(t){this.token(13,t.value)}var B6e=Vc(Vc({generic:!0},{generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","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>",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>?","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-sum> )","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()>|<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()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",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>? )","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>","fit-content()":"fit-content( [<length>|<percentage>] )","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()>|<-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]]? )",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>","layer()":"layer( <layer-name> )","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> )","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] )","name-repeat":"repeat( [<positive-integer>|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> )","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>]]","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> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","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> )","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>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","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]","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-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}","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>",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>","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>","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","layer-name":"<ident> ['.' <ident>]*","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<integer> / <integer>",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb","single-animation-timeline":"auto|none|<timeline-name>","timeline-name":"<custom-ident>|<string>",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",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]>","positive-integer":"<integer [0,\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",animation:"<single-animation>#","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":"<box>#","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-color":"auto|<color>",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||layout||style||paint]",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>?]+|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-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>","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","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>"}}}}),{},{node:Rt});function qre(t){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,t.recognizer);case 19:return this.Brackets(this.readSequence,t.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,t.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 W6e={getNode:qre};var eRe={onWhiteSpace:function X6e(t,r){null!==r.last&&"Combinator"!==r.last.type&&null!==t&&"Combinator"!==t.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function $6e(){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()}}}};function Jre(t){return null!==t&&"Operator"===t.type&&("-"===t.value[t.value.length-1]||"+"===t.value[t.value.length-1])}var rRe={getNode:qre,onWhiteSpace:function(r,e){Jre(r)&&(r.value=" "+r.value),Jre(e.last)&&(e.last.value+=" ")},expression:function tRe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function nRe(){var t=this.createList();if(this.skipSC(),t.push(this.Identifier()),this.skipSC(),18===this.tokenType){t.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}t.push(e)}return t}},oRe={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 lRe(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function uRe(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):Qre.call(this)}function Qre(){var r,t=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(lRe,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(uRe,this.scope.AtrulePrelude);break;default:break e}t.push(r)}return t}var cRe={parse:{prelude:function(){var r=Qre.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){return this.Block(!1)}}},C0={parse:function(){return this.createSingleNodeList(this.SelectorList())}},Xre={parse:function(){return this.createSingleNodeList(this.Identifier())}},oN={parse:function(){return this.createSingleNodeList(this.Nth())}},hRe={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:It,atrule:{"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:oRe,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){return this.Block(!1)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:cRe},pseudo:{dir:Xre,has:C0,lang:Xre,matches:C0,is:C0,"-moz-any":C0,"-webkit-any":C0,where:C0,not:C0,"nth-child":oN,"nth-last-child":oN,"nth-last-of-type":oN,"nth-of-type":oN,slotted:{parse:function(){return this.createSingleNodeList(this.Selector())}}},node:on},mRe={node:Rt},Kc=function(t){return zne(Rj({},t))}(Vc(Vc(Vc({},B6e),hRe),mRe));Kc.tokenize;var Hj=Kc.parse,tie=Kc.generate,ec=(Kc.lexer,Kc.createLexer,Kc.walk,Kc.find,Kc.findLast,Kc.findAll,Kc.toPlainObject,Kc.fromPlainObject,Kc.fork,function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){var i=Hj(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"))}})}),tie(i)}}]),t}());ec.\u0275fac=function(r){return new(r||ec)},ec.\u0275prov=n.Yz7({token:ec,factory:ec.\u0275fac});var gs=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){return e.font_family===t.DEFAULT_FONT&&e.font_size===t.DEFAULT_SIZE&&(e.font_family=t.REPLACE_BY_FONT,e.font_size=t.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=Hj(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(v){"Identifier"===v.type&&(o=v),"String"===v.type&&(o=v,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(v){"Dimension"===v.type&&(a=v)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var f=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=f.font_family:o.value=f.font_family,a.value=f.font_size}return tie(i)}}]),t}();gs.DEFAULT_FONT="TypeWriter",gs.DEFAULT_SIZE=10,gs.REPLACE_BY_FONT="Noto Sans",gs.REPLACE_BY_SIZE=11,gs.\u0275fac=function(r){return new(r||gs)},gs.\u0275prov=n.Yz7({token:gs,factory:gs.\u0275fac});var vg=function(){function t(r,e,i){(0,j.Z)(this,t),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,V.Z)(t,[{key:"convert",value:function(e,i){var o=new Nw;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}}]),t}();vg.\u0275fac=function(r){return new(r||vg)(n.LFG(pp),n.LFG(ec),n.LFG(gs))},vg.\u0275prov=n.Yz7({token:vg,factory:vg.\u0275fac});var _Re=(0,V.Z)(function t(){(0,j.Z)(this,t)}),yg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new _Re;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}}]),t}();yg.\u0275fac=function(r){return new(r||yg)},yg.\u0275prov=n.Yz7({token:yg,factory:yg.\u0275fac});var bg=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new g0;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}}]),t}();bg.\u0275fac=function(r){return new(r||bg)(n.LFG(vg),n.LFG(yg),n.LFG(pp),n.LFG(ec),n.LFG(gs))},bg.\u0275prov=n.Yz7({token:bg,factory:bg.\u0275fac});var nie=(0,V.Z)(function t(){(0,j.Z)(this,t),this.isSelected=!1,this.isMultiplied=!1}),dD=(0,V.Z)(function t(){(0,j.Z)(this,t)}),w0=function(){function t(r){(0,j.Z)(this,t),this.labelToMapLabel=r}return(0,V.Z)(t,[{key:"convert",value:function(e,i){var o=new dD;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}}]),t}();w0.\u0275fac=function(r){return new(r||w0)(n.LFG(vg))},w0.\u0275prov=n.Yz7({token:w0,factory:w0.\u0275fac});var Cg=function(){function t(r){(0,j.Z)(this,t),this.linkNodeToMapLinkNode=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new nie;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}}]),t}();Cg.\u0275fac=function(r){return new(r||Cg)(n.LFG(w0))},Cg.\u0275prov=n.Yz7({token:Cg,factory:Cg.\u0275fac});var sm=(0,V.Z)(function t(){(0,j.Z)(this,t)}),lm=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new sm;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}}]),t}();lm.\u0275fac=function(r){return new(r||lm)},lm.\u0275prov=n.Yz7({token:lm,factory:lm.\u0275fac});var gRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),k0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new gRe;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),t}();k0.\u0275fac=function(r){return new(r||k0)},k0.\u0275prov=n.Yz7({token:k0,factory:k0.\u0275fac});var vRe=(0,V.Z)(function t(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,j.Z)(this,t),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),um=function(){function t(){(0,j.Z)(this,t),this.layers={}}return(0,V.Z)(t,[{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 vRe,this.layers[e].index=Number(e)),this.layers[e]}}]),t}();um.\u0275fac=function(r){return new(r||um)},um.\u0275prov=n.Yz7({token:um,factory:um.\u0275fac});var yp=function(){function t(){(0,j.Z)(this,t),this.LINK_WIDTH=2}return(0,V.Z)(t,[{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 f=Math.atan(a/s);l=-e*Math.cos(f),u=e*Math.sin(f)}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,f=l<u?l+","+u:u+","+l,h=1;f in o?h=o[f].push(s):o[f]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),t}();yp.\u0275fac=function(r){return new(r||yp)},yp.\u0275prov=n.Yz7({token:yp,factory:yp.\u0275fac});var bp=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.multiLinkCalculator=h}return(0,V.Z)(t,[{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())}}]),t}();bp.\u0275fac=function(r){return new(r||bp)(n.LFG(nm),n.LFG(rm),n.LFG(im),n.LFG(om),n.LFG(bg),n.LFG(Cg),n.LFG(lm),n.LFG(k0),n.LFG(um),n.LFG(yp))},bp.\u0275prov=n.Yz7({token:bp,factory:bp.\u0275fac});var aN=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.x=r,this.y=e}),rie=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.width=r,this.height=e}),yRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.x=r,this.y=e,this.k=i}),qs=function(){function t(){(0,j.Z)(this,t),this.centerZeroZeroPoint=!0,this.size=new rie(0,0),this.transformation=new yRe(0,0,1)}return(0,V.Z)(t,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new aN(this.size.width/2,this.size.height/2):new aN(0,0)}}]),t}();qs.\u0275fac=function(r){return new(r||qs)},qs.\u0275prov=n.Yz7({token:qs,factory:qs.\u0275fac});var Cp=function(){function t(){(0,j.Z)(this,t),this.changesDetected=new n.vpe,this.hasBeenDrawn=!1}return(0,V.Z)(t,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),t}();Cp.\u0275fac=function(r){return new(r||Cp)},Cp.\u0275prov=n.Yz7({token:Cp,factory:Cp.\u0275fac});var wg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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 rie(o,a)}}]),t}();wg.\u0275fac=function(r){return new(r||wg)},wg.\u0275prov=n.Yz7({token:wg,factory:wg.\u0275fac});var Qd=(0,V.Z)(function t(){(0,j.Z)(this,t),this.isReadOnly=!1});Qd.\u0275fac=function(r){return new(r||Qd)},Qd.\u0275prov=n.Yz7({token:Qd,factory:Qd.\u0275fac});var jj=(0,V.Z)(function t(){(0,j.Z)(this,t)}),bRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(jj),CRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(jj),wRe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,V.Z)(e)}(jj),sN=function(){function t(){(0,j.Z)(this,t),this.start=new n.vpe,this.drag=new n.vpe,this.end=new n.vpe}return(0,V.Z)(t,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return W_().on("start",function(s){o=Kn.sourceEvent.clientX,a=Kn.sourceEvent.clientY,(i=new bRe(s)).dx=Kn.dx,i.dy=Kn.dy,i.x=Kn.x,i.y=Kn.y,e.start.emit(i)}).on("drag",function(s){var l=new CRe(s);l.dx=Kn.sourceEvent.clientX-o,l.dy=Kn.sourceEvent.clientY-a,o=Kn.sourceEvent.clientX,a=Kn.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new wRe(s);l.dx=Kn.x-i.x,l.dy=Kn.y-i.y,e.end.emit(l)})}}]),t}(),kRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.datum=r,this.dx=e,this.dy=i}),Yw=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(kRe),TRe=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),ERe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.x=r,this.y=e}),MRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.datum=r,this.x=e,this.y=i}),SRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.savedText=r,this.x=e,this.y=i}),xRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.textDrawingId=r,this.editedText=e,this.textElement=i}),DRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.drawing=e}),Gw=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.link=e}),ARe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.interfaceLabel=e}),ORe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.label=e}),Ol=function(){function t(){(0,j.Z)(this,t),this.selection={},this.selected=new n.vpe,this.unselected=new n.vpe}return(0,V.Z)(t,[{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}}]),t}();Ol.\u0275fac=function(r){return new(r||Ol)},Ol.\u0275prov=n.Yz7({token:Ol,factory:Ol.\u0275fac});var Xd=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new n.vpe,this.draggable=new sN,this.enabled=!0}return(0,V.Z)(t,[{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(v){return[[v.source,v.nodes[0]],[v.target,v.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(v){return"translate(".concat(v[0].x,", ").concat(v[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(v){return i.enabled?[v[1]]:[]}),f=u.enter().append("g").classed("interface_label_container",!0);f.append("rect").attr("class","interface_label_selection"),f.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(v){return"".concat(v.id)});var h=u.merge(f).on("contextmenu",function(v,C){event.preventDefault(),o.onContextMenu.emit(new ARe(event,v))});h.select("text.interface_label").text(function(v){return v.label.text}).attr("style",function(v){var C=i.cssFixer.fix(v.label.style);return C=i.fontFixer.fixStyles(C)}).attr("x",function(v){return v.label.x}).attr("y",function(v){return v.label.y}).attr("transform",function(v){return"rotate(".concat(v.label.rotation,", ").concat(v.label.x,", ").concat(v.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(v){return i.selectionManager.isSelected(v)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(v){var C=gi(this),G=h.select('text[interface_label_id="'.concat(v.id,'"]')).node().getBBox();C.attr("width",G.width+4),C.attr("height",G.height+4),C.attr("x",G.x-2),C.attr("y",G.y-2),C.attr("transform","rotate(".concat(v.label.rotation,", ").concat(G.x-2,", ").concat(G.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),t}();Xd.SURROUNDING_TEXT_BORDER=5,Xd.\u0275fac=function(r){return new(r||Xd)(n.LFG(ec),n.LFG(gs),n.LFG(Ol),n.LFG(Qd))},Xd.\u0275prov=n.Yz7({token:Xd,factory:Xd.\u0275fac});var iie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.width=i,this.height=o}),kg=(0,V.Z)(function t(){(0,j.Z)(this,t),this.selected=new qn.xQ});kg.\u0275fac=function(r){return new(r||kg)},kg.\u0275prov=n.Yz7({token:kg,factory:kg.\u0275fac});var wp=function(){function t(r,e){(0,j.Z)(this,t),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new qn.xQ,this.contextMenuOpened=new n.vpe,this.enabled=!1}return(0,V.Z)(t,[{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==Kn.button)return e.on("contextmenu",function(){Kn.preventDefault()}),void i.contextMenuOpened.emit(Kn);var o=gi(window),a=this.parentElement,s=i.transformation(Rd(a));i.startSelection(s),e.selectAll(t.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Rd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Rd(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 iie(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]}}]),t}();wp.SELECTABLE_CLASS=".selectable",wp.\u0275fac=function(r){return new(r||wp)(n.LFG(qs),n.LFG(kg))},wp.\u0275prov=n.Yz7({token:wp,factory:wp.\u0275fac});var Tg=function(){function t(r){(0,j.Z)(this,t),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=S$().scaleExtent([.5,8])}return(0,V.Z)(t,[{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"===Kn.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Kn;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,f=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(f,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),t}();Tg.\u0275fac=function(r){return new(r||Tg)(n.LFG(qs))},Tg.\u0275prov=n.Yz7({token:Tg,factory:Tg.\u0275fac});var IRe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.event=r,this.node=e}),oie=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(IRe),kp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new n.vpe,this.draggable=new sN}return(0,V.Z)(t,[{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 ORe(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=gi(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,'"]'))}}]),t}();kp.NODE_LABEL_MARGIN=3,kp.\u0275fac=function(r){return new(r||kp)(n.LFG(ec),n.LFG(gs),n.LFG(Ol),n.LFG(Qd))},kp.\u0275prov=n.Yz7({token:kp,factory:kp.\u0275fac});var Jc=(0,V.Z)(function t(){(0,j.Z)(this,t),this.dragged=new n.vpe,this.labelDragged=new n.vpe,this.clicked=new n.vpe});Jc.\u0275fac=function(r){return new(r||Jc)},Jc.\u0275prov=n.Yz7({token:Jc,factory:Jc.\u0275fac});var dl=function(){function t(){(0,j.Z)(this,t),this.symbolScalingSubject=new qn.xQ,this.isScrollDisabled=new qn.xQ,this.isMapLocked=new qn.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new qn.xQ,this.mapRenderedEmitter=new n.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,V.Z)(t,[{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")}}]),t}();dl.\u0275fac=function(r){return new(r||dl)},dl.\u0275prov=n.Yz7({token:dl,factory:dl.\u0275fac,providedIn:"root"});var Eg=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new n.vpe,this.onContextConsoleMenu=new n.vpe,this.onNodeClicked=new n.vpe}return(0,V.Z)(t,[{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 MRe(u,Kn.pageX,Kn.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,f){Kn.preventDefault(),o.onContextMenu.emit(new oie(Kn,u))}).on("dblclick",function(u,f){Kn.preventDefault(),o.onContextConsoleMenu.emit(new oie(Kn,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){gi(this).attr("class","over")}).on("mouseout",function(u){gi(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)}}]),t}();Eg.\u0275fac=function(r){return new(r||Eg)(n.LFG(Ol),n.LFG(kp),n.LFG(Jc),n.LFG(dl))},Eg.\u0275prov=n.Yz7({token:Eg,factory:Eg.\u0275fac});var Tp=function(){function t(r,e){(0,j.Z)(this,t),this.nodeWidget=r,this.mapSettings=e,this.draggable=new sN}return(0,V.Z)(t,[{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,'"]'))}}]),t}();Tp.NODE_LABEL_MARGIN=3,Tp.\u0275fac=function(r){return new(r||Tp)(n.LFG(Eg),n.LFG(Qd))},Tp.\u0275prov=n.Yz7({token:Tp,factory:Tp.\u0275fac});var PRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Mg=function(){function t(){(0,j.Z)(this,t),this.drawingLine=new PRe,this.drawing=!1,this.data={}}return(0,V.Z)(t,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new aN(e,i),this.drawingLine.end=new aN(e,i);this.selection.on("mousemove",function(u,f){var v=Rd(a.selection.select("g.canvas").node());a.drawingLine.end.x=v[0],a.drawingLine.end.y=v[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=v5(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),f=u.enter().append("path");u.merge(f).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),t}();Mg.\u0275fac=function(r){return new(r||Mg)},Mg.\u0275prov=n.Yz7({token:Mg,factory:Mg.\u0275fac});var aie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.status=i,this.port=o}),T0=function(){function t(r){(0,j.Z)(this,t),this._mapSettingsService=r,this.mapSettingsService=r}return(0,V.Z)(t,[{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=gi(this),l=s.select("path"),u=[];if(l.node()){var f=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var v=a.nodes.find(function(ye){return ye.nodeId===a.source.id}).label.text,C=a.nodes.find(function(ye){return ye.nodeId===a.target.id}).label.text;u=[new aie(f.x,f.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,v),new aie(h.x,h.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.target.status,C)]}}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 B=s.selectAll("rect.status_started").data(u.filter(function(ye){return"started"===ye.status})),G=B.enter().append("rect");B.merge(G).attr("class","status_started").attr("width",function(ye){return 8*ye.port.length+10}).attr("height",20).attr("x",function(ye){return ye.x-30}).attr("y",function(ye){return ye.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),B.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(ye){return"started"===ye.status})),ae=q.enter().append("text");q.merge(ae).attr("class","status_started_label").text(function(ye){return ye.port}).attr("x",function(ye){return ye.x-25}).attr("y",function(ye){return ye.y+5}).attr("fill","black"),q.exit().remove();var he=s.selectAll("rect.status_stopped").data(u.filter(function(ye){return"stopped"===ye.status})),Ye=he.enter().append("rect");he.merge(Ye).attr("class","status_stopped").attr("width",function(ye){return 8*ye.port.length+10}).attr("height",20).attr("x",function(ye){return ye.x-30}).attr("y",function(ye){return ye.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),he.exit().remove();var Me=s.selectAll("text.status_stopped_label").data(u.filter(function(ye){return"stopped"===ye.status})),Fe=Me.enter().append("text");Me.merge(Fe).attr("class","status_stopped_label").text(function(ye){return ye.port}).attr("x",function(ye){return ye.x-25}).attr("y",function(ye){return ye.y+5}).attr("fill","black"),Me.exit().remove();var ft=s.selectAll("rect.status_suspended").data(u.filter(function(ye){return"suspended"===ye.status})),ht=ft.enter().append("rect");ft.merge(ht).attr("class","status_suspended").attr("width",function(ye){return 8*ye.port.length+10}).attr("height",20).attr("x",function(ye){return ye.x-30}).attr("y",function(ye){return ye.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),ft.exit().remove();var Re=s.selectAll("text.status_suspended_label").data(u.filter(function(ye){return"suspended"===ye.status})),ut=Re.enter().append("text");Re.merge(ut).attr("class","status_suspended_label").text(function(ye){return ye.port}).attr("x",function(ye){return ye.x-25}).attr("y",function(ye){return ye.y+5}).attr("fill","black"),Re.exit().remove()}else{var kt=s.selectAll("circle.status_started").data(u.filter(function(ye){return"started"===ye.status})),x=kt.enter().append("circle");kt.merge(x).attr("class","status_started").attr("cx",function(ye){return ye.x}).attr("cy",function(ye){return ye.y}).attr("r",6).attr("text",function(ye){return ye.port}).attr("fill","#2ecc71"),kt.exit().remove();var g=s.selectAll("rect.status_stopped").data(u.filter(function(ye){return"stopped"===ye.status})),O=g.enter().append("rect");g.merge(O).attr("class","status_stopped").attr("x",function(ye){return ye.x-5}).attr("y",function(ye){return ye.y-5}).attr("width",10).attr("height",10).attr("fill","red"),g.exit().remove();var te=s.selectAll("circle.status_suspended").data(u.filter(function(ye){return"suspended"===ye.status})),re=te.enter().append("circle");te.merge(re).attr("class","status_suspended").attr("cx",function(ye){return ye.x}).attr("cy",function(ye){return ye.y}).attr("r",6).attr("fill","#FFFF00"),te.exit().remove()}})}}]),t}();T0.\u0275fac=function(r){return new(r||T0)(n.LFG(dl))},T0.\u0275prov=n.Yz7({token:T0,factory:T0.\u0275fac});var sie=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,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"}}]),t}(),RRe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.source=r,this.target=e,this.style=i}),Sg=function(){function t(){(0,j.Z)(this,t),this.onContextMenu=new n.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,V.Z)(t,[{key:"linktoEthernetLink",value:function(e){return new RRe([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,f=event;i.onContextMenu.emit(new Gw(f,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return sie.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=Zd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),t}();Sg.\u0275fac=function(r){return new(r||Sg)},Sg.\u0275prov=n.Yz7({token:Sg,factory:Sg.\u0275fac});var LRe=(0,V.Z)(function t(r,e,i,o,a){(0,j.Z)(this,t),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),xg=function(){function t(){(0,j.Z)(this,t),this.onContextMenu=new n.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,V.Z)(t,[{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,f=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*f[0],i.y+s/2+15*f[1]],v=[o.x-a/2-15*f[0],o.y-s/2-15*f[1]];return new LRe([i.x,i.y],h,v,[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,f=event;i.onContextMenu.emit(new Gw(f,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 sie.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=Zd();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()})}}]),t}();xg.\u0275fac=function(r){return new(r||xg)},xg.\u0275prov=n.Yz7({token:xg,factory:xg.\u0275fac});var Dg=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new n.vpe}return(0,V.Z)(t,[{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=Kn;i.onContextMenu.emit(new Gw(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=Kn;i.onContextMenu.emit(new Gw(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.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Kn;i.onContextMenu.emit(new Gw(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.capturing&&l.suspend||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=Kn;i.onContextMenu.emit(new Gw(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)}}]),t}();Dg.\u0275fac=function(r){return new(r||Dg)(n.LFG(yp),n.LFG(Xd),n.LFG(T0),n.LFG(Ol),n.LFG(Sg),n.LFG(xg))},Dg.\u0275prov=n.Yz7({token:Dg,factory:Dg.\u0275fac});var cm=function(){function t(r,e){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,V.Z)(t,[{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(f){return f.target&&f.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,'"]'))}}]),t}();cm.\u0275fac=function(r){return new(r||cm)(n.LFG(yp),n.LFG(Dg))},cm.\u0275prov=n.Yz7({token:cm,factory:cm.\u0275fac});var ZRe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),sa=(0,V.Z)(function t(){(0,j.Z)(this,t)}),NRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new sa,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 f=e.attributes.getNamedItem("cx");f&&(i.cx=parseInt(f.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var v=e.attributes.getNamedItem("rx");v&&(i.rx=parseInt(v.value,10));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,10)),i}}]),t}(),lN=(0,V.Z)(function t(){(0,j.Z)(this,t)}),BRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new lN,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}}]),t}(),E0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),FRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new E0,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 f=e.attributes.getNamedItem("y1");f&&(i.y1=parseInt(f.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),t}(),dm=(0,V.Z)(function t(){(0,j.Z)(this,t)}),URe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new dm,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 f=e.attributes.getNamedItem("width");f&&(i.width=parseInt(f.value,10));var h=e.attributes.getNamedItem("height");return h&&(i.height=parseInt(h.value,10)),i}}]),t}(),M0=(0,V.Z)(function t(){(0,j.Z)(this,t)}),HRe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new M0;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 f=e.attributes.getNamedItem("text-decoration");return f&&(i.text_decoration=f.value),i}}]),t}(),Ep=function(){function t(){(0,j.Z)(this,t),this.parser=new DOMParser,this.elementParsers={text:new HRe,image:new BRe,rect:new URe,line:new FRe,ellipse:new NRe}}return(0,V.Z)(t,[{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 f=(l=a.children[u]).nodeName;if(f in this.elementParsers){s=this.elementParsers[f];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}}]),t}();Ep.\u0275fac=function(r){return new(r||Ep)},Ep.\u0275prov=n.Yz7({token:Ep,factory:Ep.\u0275fac});var Ag=function(){function t(r){(0,j.Z)(this,t),this.fontFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof M0?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var v=i.fontFixer.fix(h),C=[];return v.font_family&&C.push('font-family: "'.concat(h.font_family,'"')),v.font_size&&C.push("font-size: ".concat(h.font_size,"pt")),v.font_weight&&C.push("font-weight: ".concat(h.font_weight)),C.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,v){return 0===v?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=gi(this).selectAll("tspan"),v=this.getBBox().height/h.size();return"translate(".concat(t.MARGIN,", ").concat(v-t.MARGIN,")")}),o.exit().remove()}}]),t}();Ag.MARGIN=4,Ag.\u0275fac=function(r){return new(r||Ag)(n.LFG(gs))},Ag.\u0275prov=n.Yz7({token:Ag,factory:Ag.\u0275fac});var S0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof lN?[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()}}]),t}();S0.\u0275fac=function(r){return new(r||S0)},S0.\u0275prov=n.Yz7({token:S0,factory:S0.\u0275fac});var tc=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"fix",value:function(e){return e in t.MAPPING?t.MAPPING[e]:e}}]),t}();tc.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"5, 5, 1, 5","25, 25, 5, 25, 5":"5, 2, 5, 2, 5"},tc.\u0275fac=function(r){return new(r||tc)},tc.\u0275prov=n.Yz7({token:tc,factory:tc.\u0275fac});var x0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof dm?[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}),o.exit().remove()}}]),t}();x0.\u0275fac=function(r){return new(r||x0)(n.LFG(tc))},x0.\u0275prov=n.Yz7({token:x0,factory:x0.\u0275fac});var D0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof E0?[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()}}]),t}();D0.\u0275fac=function(r){return new(r||D0)(n.LFG(tc))},D0.\u0275prov=n.Yz7({token:D0,factory:D0.\u0275fac});var A0=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof sa?[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()}}]),t}();A0.\u0275fac=function(r){return new(r||A0)(n.LFG(tc))},A0.\u0275prov=n.Yz7({token:A0,factory:A0.\u0275fac});var O0=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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,V.Z)(t,[{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 dm||l.element instanceof sa}).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 dm||l.element instanceof sa}).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 sa?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof sa?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 sa?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof sa?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 sa?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof sa?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 sa?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof sa?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)})}}]),t}();O0.\u0275fac=function(r){return new(r||O0)(n.LFG(Ag),n.LFG(S0),n.LFG(x0),n.LFG(D0),n.LFG(A0),n.LFG(Ol),n.LFG(dl))},O0.\u0275prov=n.Yz7({token:O0,factory:O0.\u0275fac});var Mp=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new sN,this.draggingEnabled=!1,this.resizingFinished=new n.vpe,this.onContextMenu=new n.vpe,this.svgToDrawingConverter=new Ep}return(0,V.Z)(t,[{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(Re){return Re.drawings.forEach(function(ut){try{ut.element=i.svgToDrawingConverter.convert(ut.svg)}catch(kt){}}),Re.drawings},function(Re){return Re.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(Re){return Re.id}).on("contextmenu",function(Re){Kn.preventDefault(),i.onContextMenu.emit(new DRe(Kn,Re))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,f,h,G,q,ae,he,v=!1,C=W_().on("start",function(Re){document.body.style.cursor="ns-resize",f=Re.y}).on("drag",function(Re){var ut=Kn;v?(u=l-(ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Re.element.height+u<0?(v=!1,l=f,Re.element.height=Math.abs(Re.element.height+ut.dy)):(Re.y=ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Re.element.height+=u,Re.element instanceof sa&&(Re.element.cy=Re.element.cy+u/2<0?1:Re.element.cy+=u/2,Re.element.ry=Re.element.ry+u/2<0?1:Re.element.ry+=u/2))):Re.element.height+ut.dy<0?(v=!0,l=f,Re.element.height=Math.abs(Re.element.height+ut.dy)):(Re.element.height+=ut.dy,Re.element instanceof sa&&(Re.element.cy=Re.element.cy+ut.dy/2<0?1:Re.element.cy+=ut.dy/2,Re.element.ry=Re.element.ry+ut.dy/2<0?1:Re.element.ry+=ut.dy/2)),i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))}),B=W_().on("start",function(Re){l=Kn.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+Re.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Re){var ut=Kn;v?Re.element.height+ut.dy<0?(v=!1,l=h,Re.element.height=Math.abs(Re.element.height+ut.dy)):(Re.element.height+=ut.dy,Re.element instanceof sa&&(Re.element.cy=Re.element.cy+ut.dy/2<0?1:Re.element.cy+=ut.dy/2,Re.element.ry=Re.element.ry+ut.dy/2<0?1:Re.element.ry+=ut.dy/2)):(u=l-(ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Re.element.height+u<0?(l=h,v=!0,Re.element.height=Math.abs(Re.element.height+ut.dy)):(Re.y=ut.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Re.element.height+=u,Re.element instanceof sa&&(Re.element.cy=Re.element.cy+u/2<0?1:Re.element.cy+=u/2,Re.element.ry=Re.element.ry+u/2<0?1:Re.element.ry+=u/2))),i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))}),Ye=!1,Me=W_().on("start",function(Re){G=Kn.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),he=G+Re.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Re){var ut=Kn;Ye?Re.element.width+ut.dx<0?(G=he,Ye=!1,Re.element.width=Math.abs(Re.element.width+ut.dx)):(Re.element instanceof sa&&(Re.element.cx=Re.element.cx+ut.dx/2<0?1:Re.element.cx+=ut.dx/2,Re.element.rx=Re.element.rx+ut.dx/2<0?1:Re.element.rx+=ut.dx/2),Re.element.width=Re.element.width+ut.dx<0?1:Re.element.width+=ut.dx):(q=G-(ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),G=ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Re.element.width+q<0?(G=he,Ye=!0,Re.element.width=Math.abs(Re.element.width+ut.dx)):(Re.x=ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Re.element.width+=q,Re.element instanceof sa&&(Re.element.cx=Re.element.cx+q/2<0?1:Re.element.cx+=q/2,Re.element.rx=Re.element.rx+q/2<0?1:Re.element.rx+=q/2))),i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))}),Fe=W_().on("start",function(Re){document.body.style.cursor="ew-resize",ae=Re.x}).on("drag",function(Re){var ut=Kn;Ye?(q=G-(ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),G=ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Re.element.width+q<0?(G=ae,Ye=!1,Re.element.width=Math.abs(Re.element.width+ut.dx)):(Re.x=ut.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Re.element.width+=q,Re.element instanceof sa&&(Re.element.cx=Re.element.cx+q/2<0?1:Re.element.cx+=q/2,Re.element.rx=Re.element.rx+q/2<0?1:Re.element.rx+=q/2))):Re.element.width+ut.dx<0?(G=ae,Ye=!0,Re.element.width=Math.abs(Re.element.width+ut.dx)):(Re.element instanceof sa&&(Re.element.cx=Re.element.cx+ut.dx/2<0?1:Re.element.cx+=ut.dx/2,Re.element.rx=Re.element.rx+ut.dx/2<0?1:Re.element.rx+=ut.dx/2),Re.element.width=Re.element.width+ut.dx<0?1:Re.element.width+=ut.dx),i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))}),ft=W_().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Re){var ut=Kn;Re.element.width+=ut.dx,Re.element.height+=ut.dy,Re.element.x2+=ut.dx,Re.element.y2+=ut.dy,i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))}),ht=W_().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Re){var ut=Kn;Re.element.width+=ut.dx,Re.element.height+=ut.dy,Re.element.x1+=ut.dx,Re.element.y1+=ut.dy,i.redrawDrawing(e,Re)}).on("end",function(Re){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Re))});s.select("line.bottom").call(C),s.select("line.top").call(B),s.select("line.right").call(Me),s.select("line.left").call(Fe),s.select("circle.right").call(ft),s.select("circle.left").call(ht)}},{key:"createResizingEvent",value:function(e){var i=new ZRe;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,'"]'))}}]),t}();Mp.\u0275fac=function(r){return new(r||Mp)(n.LFG(O0),n.LFG(Ep),n.LFG(qs),n.LFG(Qd))},Mp.\u0275prov=n.Yz7({token:Mp,factory:Mp.\u0275fac});var I0=function(){function t(r,e,i){(0,j.Z)(this,t),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,V.Z)(t,[{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"),f=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(f)}}]),t}();I0.\u0275fac=function(r){return new(r||I0)(n.LFG(cm),n.LFG(Tp),n.LFG(Mp))},I0.\u0275prov=n.Yz7({token:I0,factory:I0.\u0275fac});var Og=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,V.Z)(t,[{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,f=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")}),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()}}]),t}();Og.\u0275fac=function(r){return new(r||Og)(n.LFG(Tp),n.LFG(Mg),n.LFG(wp),n.LFG(Tg),n.LFG(I0),n.LFG(um))},Og.\u0275prov=n.Yz7({token:Og,factory:Og.\u0275fac});var Sp=function(){function t(){(0,j.Z)(this,t),this.isSelectionToolActivated=new qn.xQ,this.isMovingToolActivated=new qn.xQ,this.isTextEditingToolActivated=new qn.xQ,this.isTextAddingToolActivated=new qn.xQ,this.isDrawLinkToolActivated=new qn.xQ}return(0,V.Z)(t,[{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)}}]),t}();Sp.\u0275fac=function(r){return new(r||Sp)},Sp.\u0275prov=n.Yz7({token:Sp,factory:Sp.\u0275fac});var $d=function(){function t(r){(0,j.Z)(this,t),this.context=r,this.scaleChangeEmitter=new n.vpe,this.currentScale=1}return(0,V.Z)(t,[{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)}}]),t}();$d.\u0275fac=function(r){return new(r||$d)(n.LFG(qs))},$d.\u0275prov=n.Yz7({token:$d,factory:$d.\u0275fac});var fm=(0,V.Z)(function t(){(0,j.Z)(this,t),this.movingModeState=new n.vpe});fm.\u0275fac=function(r){return new(r||fm)},fm.\u0275prov=n.Yz7({token:fm,factory:fm.\u0275fac});var fD=function(){function t(r,e,i){(0,j.Z)(this,t),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,V.Z)(t,[{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){gi(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,f=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")})},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)}}]),t}();fD.\u0275fac=function(r){return new(r||fD)(n.Y36(n.SBq),n.Y36(fm),n.Y36(qs))},fD.\u0275dir=n.lG2({type:fD,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&n.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var pD=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,V.Z)(t,[{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,gi(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,f=e.context.transformation.k;return e.mapsScaleService.setScale(f),"translate(".concat(l,", ").concat(u,") scale(").concat(f,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),t}();pD.\u0275fac=function(r){return new(r||pD)(n.Y36(n.SBq),n.Y36(fm),n.Y36(qs),n.Y36($d))},pD.\u0275dir=n.lG2({type:pD,selectors:[["","zoomingCanvas",""]]});var Il=(0,V.Z)(function t(){(0,j.Z)(this,t),this.dragged=new n.vpe,this.resized=new n.vpe,this.selected=new n.vpe,this.pointToAddSelected=new n.vpe,this.saved=new n.vpe,this.textAdded=new n.vpe,this.textEdited=new n.vpe,this.textSaved=new n.vpe});Il.\u0275fac=function(r){return new(r||Il)},Il.\u0275prov=n.Yz7({token:Il,factory:Il.\u0275fac});var hD=function(){function t(r,e){(0,j.Z)(this,t),this.drawingsEventSource=r,this.context=e}return(0,V.Z)(t,[{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 ERe(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()}}]),t}();hD.\u0275fac=function(r){return new(r||hD)(n.Y36(Il),n.Y36(qs))},hD.\u0275cmp=n.Xpm({type:hD,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var mD=function(){function t(r,e){(0,j.Z)(this,t),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new TRe(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),t}();mD.\u0275fac=function(r){return new(r||mD)(n.Y36(Mp),n.Y36(Il))},mD.\u0275cmp=n.Xpm({type:mD,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(n.F$t(),n.Hsn(0))},styles:[""]});var P0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),t}();P0.\u0275fac=function(r){return new(r||P0)},P0.\u0275prov=n.Yz7({token:P0,factory:P0.\u0275fac});var _D=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.onSelection=this.selectionEventSource.selected.subscribe(function(i){var o=e.graphDataManager.getNodes().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),a=e.graphDataManager.getLinks().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),s=e.graphDataManager.getDrawings().filter(function(C){return e.inRectangleHelper.inRectangle(i,C.x,C.y)}),l=e.graphDataManager.getNodes().filter(function(C){if(void 0===C.label)return!1;var B=C.x+C.label.x,G=C.y+C.label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).map(function(C){return C.label}),u=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.source||2!=C.nodes.length||void 0===C.nodes[0].label)return!1;var B=C.source.x+C.nodes[0].label.x,G=C.source.y+C.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).map(function(C){return C.nodes[0]}),f=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.target||2!=C.nodes.length||void 0===C.nodes[1].label)return!1;var B=C.target.x+C.nodes[1].label.x,G=C.target.y+C.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,B,G)}).map(function(C){return C.nodes[1]}),h=[].concat((0,$t.Z)(u),(0,$t.Z)(f)),v=[].concat((0,$t.Z)(o),(0,$t.Z)(a),(0,$t.Z)(s),(0,$t.Z)(l),(0,$t.Z)(h));e.selectionManager.setSelected(v)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),t}();_D.\u0275fac=function(r){return new(r||_D)(n.Y36(kg),n.Y36(bp),n.Y36(P0),n.Y36(Ol))},_D.\u0275cmp=n.Xpm({type:_D,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){},styles:[""]});var gD=function(){function t(r,e){(0,j.Z)(this,t),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,V.Z)(t,[{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()}}]),t}();gD.\u0275fac=function(r){return new(r||gD)(n.Y36(Ol),n.Y36(Cp))},gD.\u0275cmp=n.Xpm({type:gD,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){},styles:[""]});var fl=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"createLink",value:function(e,i,o,a,s,l,u,f,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:f,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 i.x=Math.round(i.x),i.y=Math.round(i.y),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"))}}]),t}();fl.\u0275fac=function(r){return new(r||fl)(n.LFG(Wo.zw))},fl.\u0275prov=n.Yz7({token:fl,factory:fl.\u0275fac});var pm=m(6215),vs=m(5366),zRe=["temporaryTextElement"],vD=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.fontFixer=h,this.ngZone=v,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new n.vpe}return(0,V.Z)(t,[{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 SRe(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=gi(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,gi(s[a]).attr("visibility","hidden"),gi(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 v,f=[],h=(0,cn.Z)(o.label.style.split(";"));try{for(h.s();!(v=h.n()).done;){var C=v.value;f.push({property:C.split(": ")[0],value:C.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var B={font_family:f.find(function(q){return"font-family"===q.property})?f.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:f.find(function(q){return"font-size"===q.property})?Number(f.find(function(q){return"font-size"===q.property}).value):10,font_weight:f.find(function(q){return"font-weight"===q.property})?f.find(function(q){return"font-weight"===q.property}).value:"normal"};B=e.fontFixer.fix(B),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",f.find(function(q){return"fill"===q.property})?f.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",B.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(B.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",B.font_weight);e.textListener=function(){var ae=e.temporaryTextElement.nativeElement.innerText,he=e.linksDataSource.get(e.editedLink.linkId);he.nodes.find(function(Ye){return Ye.node_id===e.editedNode.node_id}).label.text=ae,e.linkService.updateLink(e.controller,he).subscribe(function(Ye){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=gi(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,gi(s[a]).attr("visibility","hidden"),gi(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,f=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=f.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 C=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new xRe(e.editingDrawingId,C.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")}}]),t}();vD.\u0275fac=function(r){return new(r||vD)(n.Y36(Il),n.Y36(Sp),n.Y36(qs),n.Y36(n.Qsj),n.Y36($d),n.Y36(fl),n.Y36(pm.F),n.Y36(vs.G),n.Y36(Ol),n.Y36(gs),n.Y36(n.R0b))},vD.\u0275cmp=n.Xpm({type:vD,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(zRe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0,1),n._uU(2),n.qZA()),2&r&&(n.Udp("top",e.topPosition)("left",e.leftPosition),n.xp6(2),n.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 Qc=(0,V.Z)(function t(){(0,j.Z)(this,t),this.created=new n.vpe,this.edited=new n.vpe,this.interfaceDragged=new n.vpe});Qc.\u0275fac=function(r){return new(r||Qc)},Qc.\u0275prov=n.Yz7({token:Qc,factory:Qc.\u0275fac});var yD=function(){function t(r,e,i,o,a,s,l,u,f,h,v){(0,j.Z)(this,t),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=f,this.linksEventSource=h,this.mapSettingsService=v,this.isMapLocked=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=gi(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,To.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 g0&&0===a.filter(function(s){return s instanceof g0&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof sm&&0===a.filter(function(s){return s instanceof sm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Nw&&0===a.filter(function(s){return s instanceof Nw&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof dD&&0===a.filter(function(s){return s instanceof dD&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,To.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 g0}),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(he){return void 0!==he.target&&he.target.id===q.id||void 0!==he.source&&he.source.id===q.id}).forEach(function(he){e.linksWidget.redrawLink(i,he)})}),a.filter(function(q){return q instanceof sm}).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 Nw}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Ye){return Ye.id===q.nodeId}).length>0)){var he=e.graphDataManager.getNodes().filter(function(Ye){return Ye.id===q.nodeId})[0];he.label.x+=o.dx,he.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof dD}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Ye){return Ye.id===q.nodeId}).length>0)){var he=e.graphDataManager.getLinks().filter(function(Ye){return Ye.nodes[0].id===q.id||Ye.nodes[1].id===q.id})[0];he.nodes[0].id===q.id&&(he.nodes[0].label.x+=o.dx,he.nodes[0].label.y+=o.dy),he.nodes[1].id===q.id&&(he.nodes[1].label.x+=o.dx,he.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,he)}})}}),this.end=(0,To.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 g0}),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 Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof sm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Nw}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){u.filter(function(he){return he.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Yw(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof dD}).filter(function(q){return 0===l.filter(function(ae){return ae.id===q.nodeId}).length}).forEach(function(q){u.filter(function(he){return he.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Yw(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),t}();yD.\u0275fac=function(r){return new(r||yD)(n.Y36(Tp),n.Y36(Mp),n.Y36(cm),n.Y36(kp),n.Y36(Xd),n.Y36(Ol),n.Y36(Jc),n.Y36(Il),n.Y36(bp),n.Y36(Qc),n.Y36(dl))},yD.\u0275cmp=n.Xpm({type:yD,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var bD=function(){function t(r,e){(0,j.Z)(this,t),this.linksWidget=r,this.linksEventSource=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=gi(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),t}();bD.\u0275fac=function(r){return new(r||bD)(n.Y36(cm),n.Y36(Qc))},bD.\u0275cmp=n.Xpm({type:bD,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){},styles:[""]});var WRe=["svg"],VRe=["textEditor"],qw=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B){(0,j.Z)(this,t),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=f,this.graphLayout=h,this.toolsService=v,this.mapScaleService=C,this.mapSettingsService=B,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,V.Z)(t,[{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=gi(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()}}]),t}();qw.\u0275fac=function(r){return new(r||qw)(n.Y36(bp),n.Y36(qs),n.Y36(Cp),n.Y36(wg),n.Y36(Qd),n.Y36(n.SBq),n.Y36(Xd),n.Y36(wp),n.Y36(Tg),n.Y36(Og),n.Y36(Sp),n.Y36($d),n.Y36(dl))},qw.\u0275cmp=n.Xpm({type:qw,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(WRe,5),n.Gf(VRe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.svgRef=i.first),n.iGM(i=n.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&n.NdJ("resize",function(o){return e.onResize(o)},!1,n.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:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1)(2,"filter",2),n._UZ(3,"feColorMatrix",3),n.qZA(),n.TgZ(4,"defs")(5,"pattern",4),n._UZ(6,"path",5),n.qZA()(),n.TgZ(7,"defs")(8,"pattern",6),n._UZ(9,"path",7),n.qZA()(),n._UZ(10,"rect",8)(11,"rect",9),n.qZA(),n.kcU(),n._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=n.MAs(1);n.xp6(5),n.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),n.xp6(1),n.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),n.uIk("stroke-width",e.gridVisibility),n.xp6(2),n.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),n.xp6(1),n.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),n.uIk("stroke-width",e.gridVisibility),n.xp6(3),n.Q6J("svg",i),n.xp6(4),n.Q6J("controller",e.controller)("svg",i),n.xp6(2),n.Q6J("svg",i),n.xp6(1),n.Q6J("svg",i)}},directives:[fD,pD,hD,mD,_D,gD,vD,yD,bD],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var YRe=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function GRe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",1)(1,"button",2),n.NdJ("click",function(){return n.CHM(e),n.oxw().onNoClick()}),n._uU(2,"No"),n.qZA(),n.TgZ(3,"button",3),n.NdJ("click",function(){return n.CHM(e),n.oxw().onYesClick()}),n._uU(4," Yes "),n.qZA()()}}function qRe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",1)(1,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onNoClick()}),n._uU(2,"Ok"),n.qZA()()}}var Kw=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,V.Z)(t,[{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)}}]),t}();Kw.\u0275fac=function(r){return new(r||Kw)(n.Y36(Ar),n.Y36(na))},Kw.\u0275cmp=n.Xpm({type:Kw,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&&(n.TgZ(0,"span"),n._uU(1),n.qZA(),n.YNc(2,GRe,5,0,"div",0),n.YNc(3,qRe,3,0,"div",0)),2&r&&(n.xp6(1),n.Oqu(e.confirmationMessage),n.xp6(1),n.Q6J("ngIf",!e.isOpen),n.xp6(1),n.Q6J("ngIf",e.isOpen))},directives:[Ct.O5,Zr,Tn],styles:[""]});var Cu=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),t}();function KRe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function JRe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}function QRe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project with this name exists"),n.qZA())}Cu.\u0275fac=function(r){return new(r||Cu)},Cu.\u0275prov=n.Yz7({token:Cu,factory:Cu.\u0275fac});var XRe=function(r){return{"is-invalid":r}},Jw=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,this.projectNameValidator.get],[YRe(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=ms(),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])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kw,{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()})})})}}]),t}();function $Re(t,r){}Jw.\u0275fac=function(r){return new(r||Jw)(n.Y36(Ar),n.Y36(kr),n.Y36(ri),n.Y36(Xl.Y),n.Y36($n),n.Y36(ne.qu),n.Y36(Cu))},Jw.\u0275cmp=n.Xpm({type:Jw,selectors:[["app-add-blank-project-dialog"]],features:[n._Bn([Cu])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new project"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,KRe,2,0,"mat-error",4),n.YNc(6,JRe,2,0,"mat-error",4),n.YNc(7,QRe,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"div",5)(9,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(12," Add project "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.projectNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,XRe,null==e.form.projectName?null:e.form.projectName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var eLe={bottomSheetState:(0,rn.X$)("state",[(0,rn.SB)("void, hidden",(0,rn.oB)({transform:"translateY(100%)"})),(0,rn.SB)("visible",(0,rn.oB)({transform:"translateY(0%)"})),(0,rn.eR)("visible => void, visible => hidden",(0,rn.ru)([(0,rn.jt)("".concat(ln.mZ.COMPLEX," ").concat(ln.yN.ACCELERATION_CURVE)),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])),(0,rn.eR)("void => visible",(0,rn.ru)([(0,rn.jt)("".concat(ln.mZ.EXITING," ").concat(ln.yN.DECELERATION_CURVE)),(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})]))])},tLe=new n.OlP("MatBottomSheetData"),zj=(0,V.Z)(function t(){(0,j.Z)(this,t),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),CD=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this))._elementRef=i,v._changeDetectorRef=o,v._focusTrapFactory=a,v._interactivityChecker=s,v._ngZone=l,v.bottomSheetConfig=h,v._animationState="void",v._animationStateChanged=new n.vpe,v._elementFocusedBeforeOpened=null,v.attachDomPortal=function(C){return v._validatePortalAttached(),v._setPanelClass(),v._savePreviouslyFocusedElement(),v._portalOutlet.attachDomPortal(C)},v._document=f,v._breakpointSubscription=u.observe([og_Medium,og_Large,og_XLarge]).subscribe(function(){v._toggleClass("mat-bottom-sheet-container-medium",u.isMatched(og_Medium)),v._toggleClass("mat-bottom-sheet-container-large",u.isMatched(og_Large)),v._toggleClass("mat-bottom-sheet-container-xlarge",u.isMatched(og_XLarge))}),v}return(0,V.Z)(e,[{key:"attachComponentPortal",value:function(o){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(o)}},{key:"attachTemplatePortal",value:function(o){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(o)}},{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(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"hidden"===o.toState?this._restoreFocus():"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}},{key:"_validatePortalAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_setPanelClass",value:function(){var o;(o=this._elementRef.nativeElement.classList).add.apply(o,(0,$t.Z)((0,Un.Eq)(this.bottomSheetConfig.panelClass||[])))}},{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._elementRef.nativeElement;switch(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(o)),this.bottomSheetConfig.autoFocus){case!1:case"dialog":var a=(0,Zi.ht)();a!==o&&!o.contains(a)&&o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.bottomSheetConfig.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&o&&"function"==typeof o.focus){var a=(0,Zi.ht)(),s=this._elementRef.nativeElement;(!a||a===this._document.body||a===s||s.contains(a))&&o.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var o=this;this._elementFocusedBeforeOpened=(0,Zi.ht)(),this._elementRef.nativeElement.focus&&this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){return o._elementRef.nativeElement.focus()})})}}]),e}(yo.en);CD.\u0275fac=function(r){return new(r||CD)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ai.qV),n.Y36(Ai.ic),n.Y36(n.R0b),n.Y36(Uh),n.Y36(Ct.K0,8),n.Y36(zj))},CD.\u0275cmp=n.Xpm({type:CD,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(yo.Pl,7),2&r)&&(n.iGM(i=n.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(r,e){1&r&&n.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(n.uIk("aria-label",null==e.bottomSheetConfig?null:e.bottomSheetConfig.ariaLabel),n.d8E("@state",e._animationState))},features:[n.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&n.YNc(0,$Re,0,0,"ng-template",0)},directives:[yo.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)}\n"],encapsulation:2,data:{animation:[eLe.bottomSheetState]}});var R0=(0,V.Z)(function t(){(0,j.Z)(this,t)});R0.\u0275fac=function(r){return new(r||R0)},R0.\u0275mod=n.oAB({type:R0}),R0.\u0275inj=n.cJS({imports:[[Ao.U8,ln.BQ,yo.eL],ln.BQ]});var uN=function(){function t(r,e){var i=this;(0,j.Z)(this,t),this._overlayRef=e,this._afterDismissed=new qn.xQ,this._afterOpened=new qn.xQ,this.containerInstance=r,this.disableClose=r.bottomSheetConfig.disableClose,r._animationStateChanged.pipe((0,Ei.h)(function(o){return"done"===o.phaseName&&"visible"===o.toState}),(0,to.q)(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),r._animationStateChanged.pipe((0,Ei.h)(function(o){return"done"===o.phaseName&&"hidden"===o.toState}),(0,to.q)(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),e.dispose()}),e.detachments().pipe((0,to.q)(1)).subscribe(function(){i._afterDismissed.next(i._result),i._afterDismissed.complete()}),(0,To.T)(e.backdropClick(),e.keydownEvents().pipe((0,Ei.h)(function(o){return o.keyCode===Gr.hY}))).subscribe(function(o){!i.disableClose&&("keydown"!==o.type||!(0,Gr.Vb)(o))&&(o.preventDefault(),i.dismiss())})}return(0,V.Z)(t,[{key:"dismiss",value:function(e){var i=this;this._afterDismissed.closed||(this.containerInstance._animationStateChanged.pipe((0,Ei.h)(function(o){return"start"===o.phaseName}),(0,to.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._overlayRef.dispose()},o.totalTime+100),i._overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit())}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}}]),t}(),nLe=new n.OlP("mat-bottom-sheet-default-options"),ef=function(){function t(r,e,i,o){(0,j.Z)(this,t),this._overlay=r,this._injector=e,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null}return(0,V.Z)(t,[{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 o=this,a=function rLe(t,r){return Object.assign(Object.assign({},t),r)}(this._defaultOptions||new zj,i),s=this._createOverlay(a),l=this._attachContainer(s,a),u=new uN(l,s);if(e instanceof n.Rgc)l.attachTemplatePortal(new yo.UE(e,null,{$implicit:a.data,bottomSheetRef:u}));else{var f=new yo.C5(e,void 0,this._createInjector(a,u)),h=l.attachComponentPortal(f);u.instance=h.instance}return u.afterDismissed().subscribe(function(){o._openedBottomSheetRef==u&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){return u.containerInstance.enter()}),this._openedBottomSheetRef.dismiss()):u.containerInstance.enter(),this._openedBottomSheetRef=u,u}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}},{key:"_attachContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=n.zs3.create({parent:o||this._injector,providers:[{provide:zj,useValue:i}]}),s=new yo.C5(CD,i.viewContainerRef,a);return e.attach(s).instance}},{key:"_createOverlay",value:function(e){var i=new Ao.X_({direction:e.direction,hasBackdrop:e.hasBackdrop,disposeOnNavigation:e.closeOnNavigation,maxWidth:"100%",scrollStrategy:e.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0")});return e.backdropClass&&(i.backdropClass=e.backdropClass),this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=[{provide:uN,useValue:i},{provide:tLe,useValue:e.data}];return e.direction&&(!o||!o.get(Es.Is,null,n.XFs.Optional))&&a.push({provide:Es.Is,useValue:{value:e.direction,change:(0,pr.of)()}}),n.zs3.create({parent:o||this._injector,providers:a})}}]),t}();ef.\u0275fac=function(r){return new(r||ef)(n.LFG(Ao.aV),n.LFG(n.zs3),n.LFG(ef,12),n.LFG(nLe,8))},ef.\u0275prov=n.Yz7({token:ef,factory:ef.\u0275fac,providedIn:R0});var iLe=function(r){return{lightTheme:r}},Xc=function(){function t(r,e){(0,j.Z)(this,t),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,V.Z)(t,[{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)}}]),t}();Xc.\u0275fac=function(r){return new(r||Xc)(n.Y36(uN),n.Y36(qu.f))},Xc.\u0275cmp=n.Xpm({type:Xc,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&&(n.TgZ(0,"div",0)(1,"div",1),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"No"),n.qZA(),n.TgZ(6,"button",2),n.NdJ("click",function(){return e.onYesClick()}),n._uU(7,"Yes"),n.qZA()()()),2&r&&(n.Q6J("ngClass",n.VKq(2,iLe,e.isLightThemeEnabled)),n.xp6(2),n.Oqu(e.message))},directives:[Ct.mk,Tn],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 tf=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),t}();tf.\u0275fac=function(r){return new(r||tf)},tf.\u0275prov=n.Yz7({token:tf,factory:tf.\u0275fac});var so=m(3251);function Wj(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var L0={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var aLe=/[&<>"']/,sLe=/[&<>"']/g,lLe=/[<>"']|&(?!#?\w+;)/,uLe=/[<>"']|&(?!#?\w+;)/g,cLe={"&":"&","<":"<",">":">",'"':""","'":"'"},lie=function(r){return cLe[r]};function Ks(t,r){if(r){if(aLe.test(t))return t.replace(sLe,lie)}else if(lLe.test(t))return t.replace(uLe,lie);return t}var dLe=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function uie(t){return t.replace(dLe,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 fLe=/(^|[^\[])\^/g;function Vo(t,r){t="string"==typeof t?t:t.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(fLe,"$1"),t=t.replace(o,a),e},getRegex:function(){return new RegExp(t,r)}};return e}var pLe=/[^\w:]/g,hLe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cie(t,r,e){if(t){var i;try{i=decodeURIComponent(uie(e)).replace(pLe,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!hLe.test(e)&&(e=function vLe(t,r){cN[" "+t]||(mLe.test(t)?cN[" "+t]=t+"/":cN[" "+t]=fN(t,"/",!0));var e=-1===(t=cN[" "+t]).indexOf(":");return"//"===r.substring(0,2)?e?r:t.replace(_Le,"$1")+r:"/"===r.charAt(0)?e?r:t.replace(gLe,"$1")+r:t+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var cN={},mLe=/^[^:]+:\/*[^/]*$/,_Le=/^([^:]+:)[\s\S]*$/,gLe=/^([^:]+:\/*[^/]*)[\s\S]*$/;var dN={exec:function(){}};function nf(t){for(var e,i,r=1;r<arguments.length;r++)for(i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function die(t,r){var i=t.replace(/\|/g,function(a,s,l){for(var u=!1,f=s;--f>=0&&"\\"===l[f];)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 fN(t,r,e){var i=t.length;if(0===i)return"";for(var o=0;o<i;){var a=t.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return t.slice(0,i-o)}function fie(t){t&&t.sanitize&&!t.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")}function pie(t,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=t),r>>=1,t+=t;return e+t}function hie(t,r,e,i){var o=r.href,a=r.title?Ks(r.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[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:Ks(s)}}var pN=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0}return(0,V.Z)(t,[{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:fN(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function bLe(t,r){var e=t.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,Ut.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():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=fN(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}var s={type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:[]};return this.lexer.inline(s.text,s.tokens),s}}},{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,"");return{type:"blockquote",raw:i[0],tokens:this.lexer.blockTokens(o,[]),text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,f,h,v,C,B,G,q,ae=i[1].trim(),he=ae.length>1,Ye={type:"list",raw:"",ordered:he,start:he?+ae.slice(0,-1):"",loose:!1,items:[]};ae=he?"\\d{1,9}\\".concat(ae.slice(-1)):"\\".concat(ae),this.options.pedantic&&(ae=he?ae:"[*+-]");for(var Me=new RegExp("^( {0,3}".concat(ae,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Me.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),v=i[2].split("\n",1)[0],C=e.split("\n",1)[0],this.options.pedantic?(l=2,G=v.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,G=v.slice(l),l+=i[1].length),f=!1,!v&&/^ *$/.test(C)&&(o+=C+"\n",e=e.substring(C.length+1),q=!0),!q)for(var Fe=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),ft=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));e&&(v=B=e.split("\n",1)[0],this.options.pedantic&&(v=v.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!Fe.test(v)&&!ft.test(e));){if(v.search(/[^ ]/)>=l||!v.trim())G+="\n"+v.slice(l);else{if(f)break;G+="\n"+v}!f&&!v.trim()&&(f=!0),o+=B+"\n",e=e.substring(B.length+1)}Ye.loose||(h?Ye.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(G))&&(s="[ ] "!==a[0],G=G.replace(/^\[[ xX]\] +/,""))),Ye.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:G}),Ye.raw+=o}Ye.items[Ye.items.length-1].raw=o.trimRight(),Ye.items[Ye.items.length-1].text=G.trimRight(),Ye.raw=Ye.raw.trimRight();var ht=Ye.items.length;for(u=0;u<ht;u++){this.lexer.state.top=!1,Ye.items[u].tokens=this.lexer.blockTokens(Ye.items[u].text,[]);var Re=Ye.items[u].tokens.filter(function(kt){return"space"===kt.type}),ut=Re.every(function(kt){var H,x=kt.raw.split(""),g=0,O=(0,cn.Z)(x);try{for(O.s();!(H=O.n()).done;){if("\n"===H.value&&(g+=1),g>1)return!0}}catch(re){O.e(re)}finally{O.f()}return!1});!Ye.loose&&Re.length&&ut&&(Ye.loose=!0,Ye.items[u].loose=!0)}return Ye}}},{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]};return this.options.sanitize&&(o.type="paragraph",o.text=this.options.sanitizer?this.options.sanitizer(i[0]):Ks(i[0]),o.tokens=[],this.lexer.inline(o.text,o.tokens)),o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i)return i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),{type:"def",tag:i[1].toLowerCase().replace(/\s+/g," "),raw:i[0],href:i[2],title:i[3]}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:die(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,f,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]=die(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,o.header[l].tokens);for(a=o.rows.length,l=0;l<a;l++)for(f=o.rows[l],u=0;u<f.length;u++)f[u].tokens=[],this.lexer.inline(f[u].text,f[u].tokens);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i){var o={type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o={type:"paragraph",raw:i[0],text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i){var o={type:"text",raw:i[0],text:i[0],tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Ks(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]):Ks(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=fN(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function yLe(t,r){if(-1===t.indexOf(r[1]))return-1;for(var e=t.length,i=0,o=0;o<e;o++)if("\\"===t[o])o++;else if(t[o]===r[0])i++;else if(t[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 f=i[2],h="";if(this.options.pedantic){var v=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(f);v&&(f=v[1],h=v[3])}else h=i[3]?i[3].slice(1,-1):"";return f=f.trim(),/^</.test(f)&&(f=this.options.pedantic&&!/>$/.test(o)?f.slice(1):f.slice(1,-1)),hie(i,{href:f&&f.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()])||!a.href){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return hie(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\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\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][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\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\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\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]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\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-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,f,l=a[0].length-1,h=l,v=0,C="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(C.lastIndex=0,i=i.slice(-1*e.length+l);null!=(a=C.exec(i));)if(u=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(f=u.length,a[3]||a[4]){h+=f;continue}if((a[5]||a[6])&&l%3&&!((l+f)%3)){v+=f;continue}if(!((h-=f)>0)){if(f=Math.min(f,f+h+v),Math.min(l,f)%2){var B=e.slice(1,l+a.index+f);return{type:"em",raw:e.slice(0,l+a.index+f+1),text:B,tokens:this.lexer.inlineTokens(B,[])}}var G=e.slice(2,l+a.index+f-1);return{type:"strong",raw:e.slice(0,l+a.index+f+1),text:G,tokens:this.lexer.inlineTokens(G,[])}}}}}}},{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=Ks(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=Ks(this.options.mangle?i(o[1]):o[1])):s=a=Ks(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=Ks(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=Ks(o[0]),s="www."===o[1]?"http://"+a:a}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]):Ks(o[0]):o[0]:Ks(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),t}(),Qr={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>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:dN,lheading:/^([^\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?'|\([^()]*\))/};Qr.def=Vo(Qr.def).replace("label",Qr._label).replace("title",Qr._title).getRegex(),Qr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Qr.listItemStart=Vo(/^( *)(bull) */).replace("bull",Qr.bullet).getRegex(),Qr.list=Vo(Qr.list).replace(/bull/g,Qr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Qr.def.source+")").getRegex(),Qr._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",Qr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Qr.html=Vo(Qr.html,"i").replace("comment",Qr._comment).replace("tag",Qr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qr.paragraph=Vo(Qr._paragraph).replace("hr",Qr.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",Qr._tag).getRegex(),Qr.blockquote=Vo(Qr.blockquote).replace("paragraph",Qr.paragraph).getRegex(),Qr.normal=nf({},Qr),Qr.gfm=nf({},Qr.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Qr.gfm.table=Vo(Qr.gfm.table).replace("hr",Qr.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",Qr._tag).getRegex(),Qr.gfm.paragraph=Vo(Qr._paragraph).replace("hr",Qr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Qr.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",Qr._tag).getRegex(),Qr.pedantic=nf({},Qr.normal,{html:Vo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Qr._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:dN,paragraph:Vo(Qr.normal._paragraph).replace("hr",Qr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Qr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Er={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:dN,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:dN,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function CLe(t){return t.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 mie(t){var e,i,r="",o=t.length;for(e=0;e<o;e++)i=t.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}Er._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Er.punctuation=Vo(Er.punctuation).replace(/punctuation/g,Er._punctuation).getRegex(),Er.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Er.escapedEmSt=/\\\*|\\_/g,Er._comment=Vo(Qr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Er.emStrong.lDelim=Vo(Er.emStrong.lDelim).replace(/punct/g,Er._punctuation).getRegex(),Er.emStrong.rDelimAst=Vo(Er.emStrong.rDelimAst,"g").replace(/punct/g,Er._punctuation).getRegex(),Er.emStrong.rDelimUnd=Vo(Er.emStrong.rDelimUnd,"g").replace(/punct/g,Er._punctuation).getRegex(),Er._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Er._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Er._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])?)+(?![-_])/,Er.autolink=Vo(Er.autolink).replace("scheme",Er._scheme).replace("email",Er._email).getRegex(),Er._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Er.tag=Vo(Er.tag).replace("comment",Er._comment).replace("attribute",Er._attribute).getRegex(),Er._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Er._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Er._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Er.link=Vo(Er.link).replace("label",Er._label).replace("href",Er._href).replace("title",Er._title).getRegex(),Er.reflink=Vo(Er.reflink).replace("label",Er._label).replace("ref",Qr._label).getRegex(),Er.nolink=Vo(Er.nolink).replace("ref",Qr._label).getRegex(),Er.reflinkSearch=Vo(Er.reflinkSearch,"g").replace("reflink",Er.reflink).replace("nolink",Er.nolink).getRegex(),Er.normal=nf({},Er),Er.pedantic=nf({},Er.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:Vo(/^!?\[(label)\]\((.*?)\)/).replace("label",Er._label).getRegex(),reflink:Vo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Er._label).getRegex()}),Er.gfm=nf({},Er.normal,{escape:Vo(Er.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Er.gfm.url=Vo(Er.gfm.url,"i").replace("email",Er.gfm._extended_email).getRegex(),Er.breaks=nf({},Er.gfm,{br:Vo(Er.br).replace("{2,}","*").getRegex(),text:Vo(Er.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Z0=function(){function t(r){(0,j.Z)(this,t),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||L0,this.options.tokenizer=this.options.tokenizer||new pN,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:Qr.normal,inline:Er.normal};this.options.pedantic?(e.block=Qr.pedantic,e.inline=Er.pedantic):this.options.gfm&&(e.block=Qr.gfm,this.options.breaks?e.inline=Er.breaks:e.inline=Er.gfm),this.tokenizer.rules=e}return(0,V.Z)(t,[{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 a,s,l,u,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(h,v,C){return v+" ".repeat(C.length)});e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(h){return!!(a=h.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a);continue}if(a=this.tokenizer.code(e)){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,this.inlineQueue[this.inlineQueue.length-1].src=s.text);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text);continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),o.push(a);continue}if(l=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var h=1/0,v=e.slice(1),C=void 0;i.options.extensions.startBlock.forEach(function(B){"number"==typeof(C=B.call({lexer:this},v))&&C>=0&&(h=Math.min(h,C))}),h<1/0&&h>=0&&(l=e.substring(0,h+1))}(),this.state.top&&(a=this.tokenizer.paragraph(l))){s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):o.push(a);continue}if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return this.state.top=!0,o}},{key:"inline",value:function(e,i){this.inlineQueue.push({src:e,tokens:i})}},{key:"inlineTokens",value:function(e){var a,s,l,f,h,v,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var C=Object.keys(this.tokens.links);if(C.length>0)for(;null!=(f=this.tokenizer.rules.inline.reflinkSearch.exec(u));)C.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,f.index)+"["+pie("a",f[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(f=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,f.index)+"["+pie("a",f[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(f=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,f.index)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(h||(v=""),h=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(G){return!!(a=G.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))){if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.tag(e)){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);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){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);continue}if(a=this.tokenizer.emStrong(e,u,v)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),o.push(a);continue}if(a=this.tokenizer.autolink(e,mie)){e=e.substring(a.raw.length),o.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e,mie))){e=e.substring(a.raw.length),o.push(a);continue}if(l=e,this.options.extensions&&this.options.extensions.startInline&&function(){var G=1/0,q=e.slice(1),ae=void 0;i.options.extensions.startInline.forEach(function(he){"number"==typeof(ae=he.call({lexer:this},q))&&ae>=0&&(G=Math.min(G,ae))}),G<1/0&&G>=0&&(l=e.substring(0,G+1))}(),a=this.tokenizer.inlineText(l,CLe)){e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(v=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);continue}if(e){var B="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(B);break}throw new Error(B)}}return o}}],[{key:"rules",get:function(){return{block:Qr,inline:Er}}},{key:"lex",value:function(e,i){return new t(i).lex(e)}},{key:"lexInline",value:function(e,i){return new t(i).inlineTokens(e)}}]),t}(),hN=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0}return(0,V.Z)(t,[{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+Ks(a,!0)+'">'+(o?e:Ks(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Ks(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=cie(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+Ks(e)+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=cie(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}}]),t}(),Vj=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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""}}]),t}(),Yj=function(){function t(){(0,j.Z)(this,t),this.seen={}}return(0,V.Z)(t,[{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)}}]),t}(),N0=function(){function t(r){(0,j.Z)(this,t),this.options=r||L0,this.options.renderer=this.options.renderer||new hN,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Vj,this.slugger=new Yj}return(0,V.Z)(t,[{key:"parse",value:function(e){var a,s,l,u,f,h,v,C,B,G,q,ae,he,Ye,Me,Fe,ft,ht,Re,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",ut=e.length;for(a=0;a<ut;a++)if(G=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[G.type]&&(!1!==(Re=this.options.extensions.renderers[G.type].call({parser:this},G))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(G.type)))o+=Re||"";else switch(G.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(G.tokens),G.depth,uie(this.parseInline(G.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(G.text,G.lang,G.escaped);continue;case"table":for(C="",v="",u=G.header.length,s=0;s<u;s++)v+=this.renderer.tablecell(this.parseInline(G.header[s].tokens),{header:!0,align:G.align[s]});for(C+=this.renderer.tablerow(v),B="",u=G.rows.length,s=0;s<u;s++){for(v="",f=(h=G.rows[s]).length,l=0;l<f;l++)v+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:G.align[l]});B+=this.renderer.tablerow(v)}o+=this.renderer.table(C,B);continue;case"blockquote":B=this.parse(G.tokens),o+=this.renderer.blockquote(B);continue;case"list":for(q=G.ordered,ae=G.start,he=G.loose,u=G.items.length,B="",s=0;s<u;s++)Fe=(Me=G.items[s]).checked,ft=Me.task,Ye="",Me.task&&(ht=this.renderer.checkbox(Fe),he?Me.tokens.length>0&&"paragraph"===Me.tokens[0].type?(Me.tokens[0].text=ht+" "+Me.tokens[0].text,Me.tokens[0].tokens&&Me.tokens[0].tokens.length>0&&"text"===Me.tokens[0].tokens[0].type&&(Me.tokens[0].tokens[0].text=ht+" "+Me.tokens[0].tokens[0].text)):Me.tokens.unshift({type:"text",text:ht}):Ye+=ht),Ye+=this.parse(Me.tokens,he),B+=this.renderer.listitem(Ye,ft,Fe);o+=this.renderer.list(B,q,ae);continue;case"html":o+=this.renderer.html(G.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(G.tokens));continue;case"text":for(B=G.tokens?this.parseInline(G.tokens):G.text;a+1<ut&&"text"===e[a+1].type;)B+="\n"+((G=e[++a]).tokens?this.parseInline(G.tokens):G.text);o+=i?this.renderer.paragraph(B):B;continue;default:var kt='Token with "'+G.type+'" type was not found.';if(this.options.silent)return void console.error(kt);throw new Error(kt)}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 f='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(f);throw new Error(f)}return o}}],[{key:"parse",value:function(e,i){return new t(i).parse(e)}},{key:"parseInline",value:function(e,i){return new t(i).parseInline(e)}}]),t}();function ii(t,r,e){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if("function"==typeof r&&(e=r,r=null),fie(r=nf({},ii.defaults,r||{})),e){var o,i=r.highlight;try{o=Z0.lex(t,r)}catch(u){return e(u)}var a=function(f){var h;if(!f)try{r.walkTokens&&ii.walkTokens(o,r.walkTokens),h=N0.parse(o,r)}catch(v){f=v}return r.highlight=i,f?e(f):e(null,h)};if(!i||i.length<3||(delete r.highlight,!o.length))return a();var s=0;return ii.walkTokens(o,function(u){"code"===u.type&&(s++,setTimeout(function(){i(u.text,u.lang,function(f,h){if(f)return a(f);null!=h&&h!==u.text&&(u.text=h,u.escaped=!0),0===--s&&a()})},0))}),void(0===s&&a())}try{var l=Z0.lex(t,r);return r.walkTokens&&ii.walkTokens(l,r.walkTokens),N0.parse(l,r)}catch(u){if(u.message+="\nPlease report this to https://github.com/markedjs/marked.",r.silent)return"<p>An error occurred:</p><pre>"+Ks(u.message+"",!0)+"</pre>";throw u}}ii.options=ii.setOptions=function(t){return nf(ii.defaults,t),function oLe(t){L0=t}(ii.defaults),ii},ii.getDefaults=Wj,ii.defaults=L0,ii.use=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];var a,i=nf.apply(void 0,[{}].concat(r)),o=ii.defaults.extensions||{renderers:{},childTokens:{}};r.forEach(function(s){if(s.extensions&&(a=!0,s.extensions.forEach(function(u){if(!u.name)throw new Error("extension name required");if(u.renderer){var f=o.renderers?o.renderers[u.name]:null;o.renderers[u.name]=f?function(){for(var h=arguments.length,v=new Array(h),C=0;C<h;C++)v[C]=arguments[C];var B=u.renderer.apply(this,v);return!1===B&&(B=f.apply(this,v)),B}:u.renderer}if(u.tokenizer){if(!u.level||"block"!==u.level&&"inline"!==u.level)throw new Error("extension level must be 'block' or 'inline'");o[u.level]?o[u.level].unshift(u.tokenizer):o[u.level]=[u.tokenizer],u.start&&("block"===u.level?o.startBlock?o.startBlock.push(u.start):o.startBlock=[u.start]:"inline"===u.level&&(o.startInline?o.startInline.push(u.start):o.startInline=[u.start]))}u.childTokens&&(o.childTokens[u.name]=u.childTokens)})),s.renderer&&function(){var u=ii.defaults.renderer||new hN,f=function(C){var B=u[C];u[C]=function(){for(var G=arguments.length,q=new Array(G),ae=0;ae<G;ae++)q[ae]=arguments[ae];var he=s.renderer[C].apply(u,q);return!1===he&&(he=B.apply(u,q)),he}};for(var h in s.renderer)f(h);i.renderer=u}(),s.tokenizer&&function(){var u=ii.defaults.tokenizer||new pN,f=function(C){var B=u[C];u[C]=function(){for(var G=arguments.length,q=new Array(G),ae=0;ae<G;ae++)q[ae]=arguments[ae];var he=s.tokenizer[C].apply(u,q);return!1===he&&(he=B.apply(u,q)),he}};for(var h in s.tokenizer)f(h);i.tokenizer=u}(),s.walkTokens){var l=ii.defaults.walkTokens;i.walkTokens=function(u){s.walkTokens.call(this,u),l&&l.call(this,u)}}a&&(i.extensions=o),ii.setOptions(i)})},ii.walkTokens=function(t,r){var i,e=(0,cn.Z)(t);try{var o=function(){var s=i.value;switch(r.call(ii,s),s.type){case"table":var u,l=(0,cn.Z)(s.header);try{for(l.s();!(u=l.n()).done;){var f=u.value;ii.walkTokens(f.tokens,r)}}catch(ae){l.e(ae)}finally{l.f()}var v,h=(0,cn.Z)(s.rows);try{for(h.s();!(v=h.n()).done;){var G,C=v.value,B=(0,cn.Z)(C);try{for(B.s();!(G=B.n()).done;){var q=G.value;ii.walkTokens(q.tokens,r)}}catch(ae){B.e(ae)}finally{B.f()}}}catch(ae){h.e(ae)}finally{h.f()}break;case"list":ii.walkTokens(s.items,r);break;default:ii.defaults.extensions&&ii.defaults.extensions.childTokens&&ii.defaults.extensions.childTokens[s.type]?ii.defaults.extensions.childTokens[s.type].forEach(function(ae){ii.walkTokens(s[ae],r)}):s.tokens&&ii.walkTokens(s.tokens,r)}};for(e.s();!(i=e.n()).done;)o()}catch(a){e.e(a)}finally{e.f()}},ii.parseInline=function(t,r){if(null==t)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");fie(r=nf({},ii.defaults,r||{}));try{var e=Z0.lexInline(t,r);return r.walkTokens&&ii.walkTokens(e,r.walkTokens),N0.parseInline(e,r)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",r.silent)return"<p>An error occurred:</p><pre>"+Ks(i.message+"",!0)+"</pre>";throw i}},ii.Parser=N0,ii.parser=N0.parse,ii.Renderer=hN,ii.TextRenderer=Vj,ii.Lexer=Z0,ii.lexer=Z0.lex,ii.Tokenizer=pN,ii.Slugger=Yj,ii.parse=ii;var wLe=ii.options,kLe=ii.setOptions,TLe=ii.use,ELe=ii.walkTokens,MLe=ii.parseInline,SLe=ii,xLe=N0.parse,DLe=Z0.lex,wD=function(){function t(r,e){(0,j.Z)(this,t),this.elementRef=r,this.renderer=e}return(0,V.Z)(t,[{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=_n(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),t}();function ALe(t,r){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"div",4),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.s9C("text",e.markdown)}}wD.\u0275fac=function(r){return new(r||wD)(n.Y36(n.SBq),n.Y36(n.Qsj))},wD.\u0275dir=n.lG2({type:wD,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[n.TTD]});var kD=function(){function t(r){(0,j.Z)(this,t),this.projectService=r,this.markdown=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e.markdown=i)})}}]),t}();kD.\u0275fac=function(r){return new(r||kD)(n.Y36(Xl.Y))},kD.\u0275cmp=n.Xpm({type:kD,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&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),n.NdJ("ngModelChange",function(o){return e.markdown=o}),n.qZA()(),n.TgZ(3,"mat-tab",2),n.YNc(4,ALe,2,1,"span",3),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngModel",e.markdown),n.xp6(2),n.Q6J("ngIf",e.markdown))},directives:[so.SP,so.uX,sr,ne.Fj,ne.JJ,ne.On,Ct.O5,wD],styles:[".textWrapper{height:500px!important;overflow-y:scroll}.editorWrapper{background-color:#fff;color:#000;height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var OLe=["editor"];function ILe(t,r){if(1&t&&(n.TgZ(0,"mat-tab",27),n._UZ(1,"app-readme-editor",28,29),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("controller",e.controller)("project",e.project)}}function PLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Name"),n.qZA())}function RLe(t,r){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("",e.name," ")}}function LLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Value"),n.qZA())}function ZLe(t,r){if(1&t&&(n.TgZ(0,"td",31),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.value)}}function NLe(t,r){1&t&&(n.TgZ(0,"th",30),n._uU(1,"Actions"),n.qZA())}function BLe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",31)(1,"button",32),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().deleteVariable(a)}),n.TgZ(2,"mat-icon",33),n._uU(3,"delete"),n.qZA()()()}}function FLe(t,r){1&t&&n._UZ(0,"tr",34)}function ULe(t,r){1&t&&n._UZ(0,"tr",35)}var mN=function(){return{standalone:!0}},TD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,a.get]),height:new ne.NI("",[ne.kI.required,a.get]),nodeGridSize:new ne.NI("",[ne.kI.required,a.get]),drawingGridSize:new ne.NI("",[ne.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new ne.NI("",[ne.kI.required]),value:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{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.")}}]),t}();function HLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function jLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}TD.\u0275fac=function(r){return new(r||TD)(n.Y36(Ar),n.Y36(ne.qu),n.Y36(Xl.Y),n.Y36($n),n.Y36(tf))},TD.\u0275cmp=n.Xpm({type:TD,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(OLe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1,"Edit project"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),n._UZ(7,"input",5),n.qZA(),n.TgZ(8,"mat-form-field",4),n._UZ(9,"input",6),n.qZA(),n.TgZ(10,"mat-form-field",4),n._UZ(11,"input",7),n.qZA(),n.TgZ(12,"mat-form-field",4),n._UZ(13,"input",8),n.qZA(),n.TgZ(14,"mat-form-field",4),n._UZ(15,"input",9),n.qZA()(),n.TgZ(16,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),n._uU(17," Open this project in the background when GNS3 controller starts "),n.qZA(),n.TgZ(18,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),n._uU(19," Start all nodes when this project is opened "),n.qZA(),n.TgZ(20,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.auto_close=o}),n._uU(21," Leave this project running in the background after closing "),n.qZA(),n.TgZ(22,"mat-checkbox",10),n.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),n._uU(23," Show interface labels at start "),n.qZA()(),n.YNc(24,ILe,3,2,"mat-tab",11),n.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),n._UZ(28,"input",13),n.qZA(),n.TgZ(29,"mat-form-field",4),n._UZ(30,"input",14),n.qZA()(),n.TgZ(31,"button",15),n.NdJ("click",function(){return e.addVariable()}),n._uU(32,"Add variable"),n.qZA(),n.TgZ(33,"table",16),n.ynx(34,17),n.YNc(35,PLe,2,0,"th",18),n.YNc(36,RLe,2,1,"td",19),n.BQk(),n.ynx(37,20),n.YNc(38,LLe,2,0,"th",18),n.YNc(39,ZLe,2,1,"td",19),n.BQk(),n.ynx(40,21),n.YNc(41,NLe,2,0,"th",18),n.YNc(42,BLe,4,0,"td",19),n.BQk(),n.YNc(43,FLe,1,0,"tr",22),n.YNc(44,ULe,1,0,"tr",23),n.qZA()()()(),n.TgZ(45,"div",24)(46,"button",25),n.NdJ("click",function(){return e.onNoClick()}),n._uU(47,"Cancel"),n.qZA(),n.TgZ(48,"button",26),n.NdJ("click",function(){return e.onYesClick()}),n._uU(49,"Apply"),n.qZA()()),2&r&&(n.xp6(5),n.Q6J("formGroup",e.formGroup),n.xp6(11),n.Q6J("ngModelOptions",n.DdM(14,mN))("ngModel",e.project.auto_open),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(15,mN))("ngModel",e.project.auto_start),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(16,mN))("ngModel",e.auto_close),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,mN))("ngModel",e.project.show_interface_labels),n.xp6(2),n.Q6J("ngIf",e.controller&&e.project),n.xp6(2),n.Q6J("formGroup",e.variableFormGroup),n.xp6(7),n.Q6J("dataSource",e.variables),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Vr,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Ui,ne.On,Ct.O5,kD,Tn,ca,aa,fa,Sa,da,xa,vi,Vn,Da,Oa,Aa,Ia,Zr],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 zLe=function(r){return{empty:r}},WLe=function(r){return{"is-invalid":r}},Qw=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,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 n.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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(qh,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kw,{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=ms();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)}}]),t}();Qw.\u0275fac=function(r){return new(r||Qw)(n.Y36(ri),n.Y36(Ar),n.Y36(na),n.Y36(ne.qu),n.Y36(Xl.Y),n.Y36(Cu),n.Y36($n),n.Y36(jc),n.Y36(Fc))},Qw.\u0275cmp=n.Xpm({type:Qw,selectors:[["app-import-project-dialog"]],features:[n._Bn([Cu])],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=n.EpF();n.TgZ(0,"h1",0),n._uU(1,"Import project"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),n.NdJ("change",function(a){return e.uploadProjectFile(a)}),n.qZA(),n.TgZ(6,"button",5),n.NdJ("click",function(){return n.CHM(i),n.MAs(5).click()}),n._uU(7," Choose file "),n.qZA(),n.TgZ(8,"mat-form-field",6),n._UZ(9,"input",7),n.YNc(10,HLe,2,0,"mat-error",8),n.YNc(11,jLe,2,0,"mat-error",8),n.qZA(),n.TgZ(12,"button",9)(13,"mat-icon",10),n.NdJ("click",function(){return e.onDeleteClick()}),n._uU(14,"clear"),n.qZA()(),n.TgZ(15,"div",11)(16,"button",12),n.NdJ("click",function(){return e.onNoClick()}),n._uU(17,"Cancel"),n.qZA(),n.TgZ(18,"button",13),n.NdJ("click",function(){return e.onImportClick()}),n._uU(19," Import "),n.qZA()()()(),n.TgZ(20,"div",1)(21,"div",14)(22,"span"),n._uU(23),n.qZA()(),n.TgZ(24,"div",11)(25,"button",13),n.NdJ("click",function(){return e.onNoClick()}),n._uU(26," Finish "),n.qZA()()()}2&r&&(n.xp6(2),n.Q6J("hidden",e.isFirstStepCompleted),n.xp6(1),n.Q6J("formGroup",e.projectNameForm),n.xp6(1),n.Q6J("uploader",e.uploader),n.xp6(4),n.Q6J("ngClass",n.VKq(12,zLe,!e.isDeleteVisible)),n.xp6(1),n.Q6J("ngClass",n.VKq(14,WLe,e.form.projectName.errors)),n.xp6(1),n.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),n.xp6(1),n.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),n.xp6(1),n.Q6J("hidden",!e.isDeleteVisible),n.xp6(6),n.Q6J("disabled",!e.isImportEnabled),n.xp6(2),n.Q6J("hidden",!e.isFirstStepCompleted),n.xp6(3),n.Oqu(e.resultMessage),n.xp6(2),n.Q6J("disabled",!e.isFinishEnabled))},directives:[Vr,ne._Y,ne.JL,ne.sg,Zc,Tn,vi,Fn.KE,Ct.mk,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Vn,Zr],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 VLe=function(r){return{lightTheme:r}},Xw=function(){function t(r,e){(0,j.Z)(this,t),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,V.Z)(t,[{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)}}]),t}();function YLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is required"),n.qZA())}function GLe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Project name is incorrect"),n.qZA())}Xw.\u0275fac=function(r){return new(r||Xw)(n.Y36(uN),n.Y36(qu.f))},Xw.\u0275cmp=n.Xpm({type:Xw,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&&(n.TgZ(0,"div",0)(1,"div",1),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"No"),n.qZA(),n.TgZ(6,"button",3),n.NdJ("click",function(){return e.onYesClick()}),n._uU(7,"Yes"),n.qZA()()()),2&r&&(n.Q6J("ngClass",n.VKq(2,VLe,e.isLightThemeEnabled)),n.xp6(2),n.hij("Do you want to navigate to ",e.projectMessage,"?"))},directives:[Ct.mk,Tn],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 qLe=function(r){return{"is-invalid":r}},ED=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new n.vpe,this.projectNameForm=this.formBuilder.group({projectName:new ne.NI(null,[ne.kI.required,s.get])})}return(0,V.Z)(t,[{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()}}]),t}();ED.\u0275fac=function(r){return new(r||ED)(n.Y36(Ar),n.Y36(Xl.Y),n.Y36(vs.G),n.Y36($n),n.Y36(ne.qu),n.Y36(Cu))},ED.\u0275cmp=n.Xpm({type:ED,selectors:[["app-save-project-dialog"]],features:[n._Bn([Cu])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Save project as"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,YLe,2,0,"mat-error",4),n.YNc(6,GLe,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"div",5)(8,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(11,"Save project"),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.projectNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(4,qLe,null==e.form.projectName?null:e.form.projectName.errors)),n.xp6(1),n.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)),n.xp6(1),n.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)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var B0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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."}}]),t}();function KLe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e," ")}}B0.\u0275fac=function(r){return new(r||B0)},B0.\u0275prov=n.Yz7({token:B0,factory:B0.\u0275fac});var MD=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,V.Z)(t,[{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()}}]),t}();MD.\u0275fac=function(r){return new(r||MD)(n.Y36(Ar),n.Y36(B0))},MD.\u0275cmp=n.Xpm({type:MD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),n.YNc(6,KLe,2,1,"div",5),n.qZA()(),n.TgZ(7,"mat-tab",6)(8,"div",4),n._uU(9),n.qZA()(),n.TgZ(10,"mat-tab",7)(11,"div",4),n._uU(12),n.qZA()()()(),n.TgZ(13,"div",8)(14,"button",9),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(15,"Close"),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.node.name),n.xp6(5),n.Q6J("ngForOf",e.infoList),n.xp6(3),n.hij(" ",e.usage," "),n.xp6(3),n.hij(" ",e.commandLine," "))},directives:[Vr,so.SP,so.uX,Ct.sg,Zr,Tn],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var SD=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"showNode",value:function(){var i=this.dialog.open(MD,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),t}();SD.\u0275fac=function(r){return new(r||SD)(n.Y36(ri))},SD.\u0275cmp=n.Xpm({type:SD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.showNode()}),n.TgZ(1,"mat-icon"),n._uU(2,"info"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Show node information"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var ti=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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)}}]),t}();function JLe(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Port : VPI : VCI"),n.qZA())}function QLe(t,r){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portIn)}}function XLe(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Port : VPI : VCI"),n.qZA())}function $Le(t,r){if(1&t&&(n.TgZ(0,"td",28),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portOut)}}function e5e(t,r){1&t&&(n.TgZ(0,"th",27),n._uU(1,"Actions"),n.qZA())}function t5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",28)(1,"button",29),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",30),n._uU(3,"delete"),n.qZA()()()}}function n5e(t,r){1&t&&n._UZ(0,"tr",31)}function r5e(t,r){1&t&&n._UZ(0,"tr",32)}function i5e(t,r){if(1&t&&(n.TgZ(0,"table",19),n.ynx(1,20),n.YNc(2,JLe,2,0,"th",21),n.YNc(3,QLe,2,1,"td",22),n.BQk(),n.ynx(4,23),n.YNc(5,XLe,2,0,"th",21),n.YNc(6,$Le,2,1,"td",22),n.BQk(),n.ynx(7,24),n.YNc(8,e5e,2,0,"th",21),n.YNc(9,t5e,4,0,"td",22),n.BQk(),n.YNc(10,n5e,1,0,"tr",25),n.YNc(11,r5e,1,0,"tr",26),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.nodeMappingsDataSource),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}ti.\u0275fac=function(r){return new(r||ti)(n.LFG(Wo.zw))},ti.\u0275prov=n.Yz7({token:ti,factory:ti.\u0275fac});var xD=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceVci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationVci:new ne.NI("",ne.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new ne.NI("",ne.kI.required),destinationVpi:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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,cn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Ut.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(f){o.e(f)}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,Ut.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Ex.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()}}]),t}();function o5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Name"),n.qZA())}function a5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}function s5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Local port"),n.qZA())}function l5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.rport)}}function u5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Type"),n.qZA())}function c5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.rhost)}}function d5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Remote port"),n.qZA())}function f5e(t,r){if(1&t&&(n.TgZ(0,"td",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.lport)}}function p5e(t,r){1&t&&(n.TgZ(0,"th",18),n._uU(1,"Actions"),n.qZA())}function h5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"delete"),n.qZA()()()}}function m5e(t,r){1&t&&n._UZ(0,"tr",22)}function _5e(t,r){1&t&&n._UZ(0,"tr",23)}function g5e(t,r){if(1&t&&(n.TgZ(0,"table",8),n.ynx(1,9),n.YNc(2,o5e,2,0,"th",10),n.YNc(3,a5e,2,1,"td",11),n.BQk(),n.ynx(4,12),n.YNc(5,s5e,2,0,"th",10),n.YNc(6,l5e,2,1,"td",11),n.BQk(),n.ynx(7,13),n.YNc(8,u5e,2,0,"th",10),n.YNc(9,c5e,2,1,"td",11),n.BQk(),n.ynx(10,14),n.YNc(11,d5e,2,0,"th",10),n.YNc(12,f5e,2,1,"td",11),n.BQk(),n.ynx(13,15),n.YNc(14,p5e,2,0,"th",10),n.YNc(15,h5e,4,0,"td",11),n.BQk(),n.YNc(16,m5e,1,0,"tr",16),n.YNc(17,_5e,1,0,"tr",17),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.dataSourceUdp),n.xp6(16),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}function v5e(t,r){1&t&&n._UZ(0,"br")}xD.\u0275fac=function(r){return new(r||xD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu))},xD.\u0275cmp=n.Xpm({type:xD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),n.YNc(6,i5e,12,3,"table",4),n._UZ(7,"br"),n.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()(),n.TgZ(11,"mat-checkbox",8),n.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),n._uU(12," Use VPI only (VP tunnel) "),n.qZA(),n.TgZ(13,"form",5),n._uU(14," Source "),n.TgZ(15,"mat-form-field",6)(16,"input",9),n.NdJ("ngModelChange",function(o){return e.sourcePort=o}),n.qZA()()(),n.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),n.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),n.qZA()()(),n.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),n.NdJ("ngModelChange",function(o){return e.sourceVci=o}),n.qZA()(),n._uU(23," Destination "),n.TgZ(24,"mat-form-field",6)(25,"input",12),n.NdJ("ngModelChange",function(o){return e.destinationPort=o}),n.qZA()()(),n.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),n.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),n.qZA()()(),n.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),n.NdJ("ngModelChange",function(o){return e.destinationVci=o}),n.qZA()()(),n.TgZ(32,"button",15),n.NdJ("click",function(){return e.add()}),n._uU(33,"Add"),n.qZA()()()()(),n.TgZ(34,"div",16)(35,"button",17),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(36,"Cancel"),n.qZA(),n.TgZ(37,"button",18),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(38,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.nodeMappingsDataSource.length),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(1),n.Q6J("ngModel",e.useVpiOnly),n.xp6(2),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngModel",e.sourcePort),n.xp6(1),n.Q6J("formGroup",e.abstractForm),n.xp6(2),n.Q6J("ngModel",e.sourceVpi),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.sourceVci),n.xp6(3),n.Q6J("ngModel",e.destinationPort),n.xp6(1),n.Q6J("formGroup",e.abstractForm),n.xp6(2),n.Q6J("ngModel",e.destinationVpi),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.destinationVci))},directives:[Vr,Si,Ct.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ui,ne.On,ne.wV,Zr],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 DD=function(){function t(r){(0,j.Z)(this,t),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,V.Z)(t,[{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})}}]),t}();DD.\u0275fac=function(r){return new(r||DD)(n.Y36(Ku))},DD.\u0275cmp=n.Xpm({type:DD,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&&(n.YNc(0,g5e,18,3,"table",0),n.YNc(1,v5e,1,0,"br",1),n.TgZ(2,"mat-form-field",2)(3,"input",3),n.NdJ("ngModelChange",function(o){return e.newPort.name=o}),n.qZA()(),n.TgZ(4,"mat-form-field",2)(5,"input",4),n.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),n.qZA()(),n.TgZ(6,"mat-form-field",2)(7,"input",5),n.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),n.qZA()(),n.TgZ(8,"mat-form-field",2)(9,"input",6),n.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),n.qZA()(),n.TgZ(10,"button",7),n.NdJ("click",function(){return e.onAddUdpInterface()}),n._uU(11,"Add"),n.qZA()),2&r&&(n.Q6J("ngIf",e.dataSourceUdp.length),n.xp6(1),n.Q6J("ngIf",e.dataSourceUdp.length),n.xp6(2),n.Q6J("ngModel",e.newPort.name),n.xp6(2),n.Q6J("ngModel",e.newPort.lport),n.xp6(2),n.Q6J("ngModel",e.newPort.rhost),n.xp6(2),n.Q6J("ngModel",e.newPort.rport))},directives:[Ct.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ne.wV],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 y5e=["udpTunnels"];function b5e(t,r){if(1&t&&(n.TgZ(0,"div",16)(1,"div",16),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function C5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function w5e(t,r){if(1&t&&(n.TgZ(0,"div",16)(1,"div",16),n._uU(2),n.qZA(),n._UZ(3,"br")(4,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.name)}}function k5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",30),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var T5e=function(){return{standalone:!0}};function E5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n.YNc(2,b5e,5,1,"div",10),n.TgZ(3,"mat-form-field",11)(4,"mat-select",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().ethernetInterface=a}),n.YNc(5,C5e,2,2,"mat-option",13),n.qZA()(),n.TgZ(6,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddEthernetInterface()}),n._uU(7,"Add"),n.qZA()(),n.TgZ(8,"mat-tab",15),n.YNc(9,w5e,5,1,"div",10),n.TgZ(10,"mat-form-field",16)(11,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().tapInterface=a}),n.qZA()(),n.TgZ(12,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().onAddTapInterface()}),n._uU(13,"Add"),n.qZA()(),n.TgZ(14,"mat-tab",18),n._UZ(15,"app-udp-tunnels",19,20),n.qZA(),n.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(21,"mat-form-field",11)(22,"mat-select",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(23,k5e,2,2,"mat-option",13),n.qZA()(),n.TgZ(24,"mat-form-field",16)(25,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_host=a}),n.qZA()(),n.TgZ(26,"mat-form-field",16)(27,"input",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_port=a}),n.qZA()(),n.TgZ(28,"mat-form-field",16)(29,"input",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.remote_console_http_path=a}),n.qZA()()(),n.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngForOf",i.portsMappingEthernet),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(15,T5e))("ngModel",i.ethernetInterface),n.xp6(1),n.Q6J("ngForOf",i.ethernetInterfaces),n.xp6(4),n.Q6J("ngForOf",i.portsMappingTap),n.xp6(2),n.Q6J("ngModel",i.tapInterface),n.xp6(4),n.Q6J("dataSourceUdp",i.portsMappingUdp),n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_host),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_port),n.xp6(2),n.Q6J("ngModel",i.node.properties.remote_console_http_path),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var AD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function M5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),n._uU(3),n.qZA(),n.TgZ(4,"span",7)(5,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e).$implicit.port_name=a}),n.qZA()()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.hij(" Adapter ",i.adapter_number," "),n.xp6(2),n.Q6J("ngModel",i.port_name)}}function S5e(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div",6)(2,"span",7),n._uU(3," Adapter number "),n.qZA(),n.TgZ(4,"span",7),n._uU(5," Port name "),n.qZA()(),n.TgZ(6,"div")(7,"mat-list"),n.YNc(8,M5e,6,2,"mat-list-item",8),n.qZA()()()),2&t){var e=n.oxw();n.xp6(8),n.Q6J("ngForOf",e.adapters)}}AD.\u0275fac=function(r){return new(r||AD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(Ku))},AD.\u0275cmp=n.Xpm({type:AD,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(y5e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,E5e,33,16,"mat-tab-group",5),n.qZA(),n._UZ(7,"div"),n.qZA()(),n.TgZ(8,"div",6)(9,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(12,"Apply"),n.qZA()()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,Ct.sg,Fn.KE,Oi.gD,ne.JJ,ne.On,ln.ey,Tn,sr,ne.Fj,DD,ne._Y,ne.JL,ne.sg,ne.u,Zr],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 OD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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,V.Z)(t,[{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()}}]),t}();OD.\u0275fac=function(r){return new(r||OD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(dp))},OD.\u0275cmp=n.Xpm({type:OD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,S5e,9,1,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(5,"Cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(7,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configure custom adapters for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf",e.node))},directives:[Vr,Ct.O5,Hh,Ct.sg,os,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],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 x5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",5)(1,"textarea",6),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().configuration=a}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.configuration)}}var ID=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,V.Z)(t,[{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()}}]),t}();function D5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",29),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function A5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",29),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}ID.\u0275fac=function(r){return new(r||ID)(n.Y36(Ar),n.Y36(ti),n.Y36($n))},ID.\u0275cmp=n.Xpm({type:ID,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,x5e,2,1,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(5,"Cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(7,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Edit network configuration for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf",e.node))},directives:[Vr,Ct.O5,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var Gj=function(){return{standalone:!0}};function O5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",11)(7,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.start_command=a}),n.qZA()(),n.TgZ(8,"mat-form-field",11)(9,"input",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.adapters=a}),n.qZA()(),n.TgZ(10,"mat-form-field",11)(11,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.memory=a}),n.qZA(),n.TgZ(12,"span",16),n._uU(13,"MB"),n.qZA()(),n.TgZ(14,"mat-form-field",11)(15,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cpus=a}),n.qZA()(),n.TgZ(16,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().configureCustomAdapters()}),n._uU(17," Configure custom adapters "),n.qZA(),n.TgZ(18,"mat-form-field",19)(19,"mat-select",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(20,D5e,2,2,"mat-option",21),n.qZA()(),n.TgZ(21,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(22," Auto start console "),n.qZA(),n.TgZ(23,"mat-form-field",11)(24,"mat-select",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_resolution=a}),n.YNc(25,A5e,2,2,"mat-option",21),n.qZA()(),n.TgZ(26,"mat-form-field",11)(27,"input",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_http_port=a}),n.qZA()(),n.TgZ(28,"mat-form-field",11)(29,"input",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_http_path=a}),n.qZA()(),n.TgZ(30,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().editNetworkConfiguration()}),n._uU(31," Edit network configuration "),n.qZA()(),n.TgZ(32,"h6"),n._uU(33,"Environment"),n.qZA(),n.TgZ(34,"mat-form-field",11)(35,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.environment=a}),n.qZA()()(),n.TgZ(36,"mat-tab",27)(37,"h6"),n._uU(38,"Extra hosts"),n.qZA(),n.TgZ(39,"mat-form-field",11)(40,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.extra_hosts=a}),n.qZA()(),n._UZ(41,"br"),n.TgZ(42,"h6"),n._uU(43,"Additional directories"),n.qZA(),n.TgZ(44,"mat-form-field",11)(45,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.extra_volumes=a}),n.qZA()()(),n.TgZ(46,"mat-tab",28)(47,"mat-form-field",11)(48,"textarea",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.properties.start_command),n.xp6(2),n.Q6J("ngModel",i.node.properties.adapters),n.xp6(2),n.Q6J("ngModel",i.node.properties.memory),n.xp6(4),n.Q6J("ngModel",i.node.properties.cpus),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(20,Gj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(21,Gj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(22,Gj))("ngModel",i.node.properties.console_resolution),n.xp6(1),n.Q6J("ngForOf",i.consoleResolutions),n.xp6(2),n.Q6J("ngModel",i.node.properties.console_http_port),n.xp6(2),n.Q6J("ngModel",i.node.properties.console_http_path),n.xp6(6),n.Q6J("ngModel",i.node.properties.environment),n.xp6(5),n.Q6J("ngModel",i.node.properties.extra_hosts),n.xp6(5),n.Q6J("ngModel",i.node.properties.extra_volumes),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var PD=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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=["640x480","800x600","1024x768","1280x800","1280x1024","1366x768","1920x1080"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required),adapter:new ne.NI("",ne.kI.required),memory:new ne.NI("",s.get),cpus:new ne.NI("",s.get),startCommand:new ne.NI(""),consoleHttpPort:new ne.NI("",ne.kI.required),consoleHttpPath:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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(OD,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open(ID,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()}}]),t}();function I5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function P5e(t,r){if(1&t&&n._UZ(0,"app-ports",17,18),2&t){var e=n.oxw(2);n.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}PD.\u0275fac=function(r){return new(r||PD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(dp),n.Y36(tf),n.Y36(ri))},PD.\u0275cmp=n.Xpm({type:PD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,O5e,49,23,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Fn.R9,Tn,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,Zr],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 R5e=function(){return{standalone:!0}};function L5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(5,"mat-form-field",12)(6,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(7,I5e,2,2,"mat-option",14),n.qZA()()(),n.YNc(8,P5e,2,1,"app-ports",15),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("formGroup",i.inputForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(6,R5e))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngIf",i.node.properties)}}var RD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();RD.\u0275fac=function(r){return new(r||RD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(Ku))},RD.\u0275cmp=n.Xpm({type:RD,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(sg,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2),n.YNc(4,L5e,9,7,"div",3),n.qZA()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(9,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(3),n.Q6J("ngIf",e.node))},directives:[Vr,Ct.O5,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,sg,Zr,Tn],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 Z5e=function(){return{standalone:!0}},LD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function N5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",23),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function B5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,N5e,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n._UZ(11,"br"),n.qZA(),n.TgZ(12,"mat-tab",17),n._UZ(13,"br"),n.TgZ(14,"form",10)(15,"mat-form-field",11)(16,"input",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(17,"span",19),n._uU(18,"MB"),n.qZA()(),n.TgZ(19,"mat-form-field",11)(20,"input",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.nvram=a}),n.qZA(),n.TgZ(21,"span",19),n._uU(22,"MB"),n.qZA()()()(),n.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.console_auto_start),n.xp6(5),n.Q6J("formGroup",i.memoryForm),n.xp6(2),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.nvram),n.xp6(5),n.Q6J("ngModel",i.node.properties.usage)}}LD.\u0275fac=function(r){return new(r||LD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(tm))},LD.\u0275cmp=n.Xpm({type:LD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()(),n.TgZ(9,"mat-form-field",6)(10,"input",8),n.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),n.qZA()()()()()()(),n.TgZ(11,"div",9)(12,"button",10),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",11),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(15,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(2),n.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",n.DdM(5,Z5e)))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,ne.On,Zr,Tn],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 ZD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new ne.NI("",ne.kI.required),nvram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function F5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function U5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,F5e,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n._UZ(11,"br"),n.TgZ(12,"mat-form-field",11)(13,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(14,"span",18),n._uU(15,"MB"),n.qZA()(),n.TgZ(16,"mat-form-field",11)(17,"input",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.nvram=a}),n.qZA(),n.TgZ(18,"span",18),n._uU(19,"MB"),n.qZA()()(),n.TgZ(20,"mat-tab",20),n._UZ(21,"br"),n.TgZ(22,"form",10)(23,"mat-form-field",11)(24,"input",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.ethernet_adapters=a}),n.qZA()(),n.TgZ(25,"mat-form-field",11)(26,"input",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.serial_adapters=a}),n.qZA()()()(),n.TgZ(27,"mat-tab",23)(28,"mat-form-field",11)(29,"textarea",24),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.console_auto_start),n.xp6(4),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.nvram),n.xp6(5),n.Q6J("formGroup",i.networkForm),n.xp6(2),n.Q6J("ngModel",i.node.ethernet_adapters),n.xp6(2),n.Q6J("ngModel",i.node.serial_adapters),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}ZD.\u0275fac=function(r){return new(r||ZD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(Kh))},ZD.\u0275cmp=n.Xpm({type:ZD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,B5e,26,9,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,Zr,Tn],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 ND=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new ne.NI("",ne.kI.required),serialAdapters:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();ND.\u0275fac=function(r){return new(r||ND)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(lg))},ND.\u0275cmp=n.Xpm({type:ND,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"],["matInput","","type","number","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["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"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,U5e,30,11,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,Zr,Tn],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 BD=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function H5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function j5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function z5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}function W5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function V5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.value),n.xp6(1),n.hij(" ",e.name," ")}}function Y5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div"),n._uU(1," Size options "),n.TgZ(2,"mat-form-field",6)(3,"mat-select",8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.preallocation=a}),n.YNc(4,j5e,2,2,"mat-option",9),n.qZA()(),n.TgZ(5,"mat-form-field",6)(6,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.cluster_size=a}),n.YNc(7,z5e,2,2,"mat-option",9),n.qZA()(),n._uU(8," Refcounts "),n.TgZ(9,"mat-form-field",6)(10,"mat-select",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.lazy_refcounts=a}),n.YNc(11,W5e,2,2,"mat-option",9),n.qZA()(),n.TgZ(12,"mat-form-field",6)(13,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.refcount_bits=a}),n.YNc(14,V5e,2,2,"mat-option",9),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngModel",i.qemuImg.preallocation),n.xp6(1),n.Q6J("ngForOf",i.preallocationsOptions),n.xp6(2),n.Q6J("ngModel",i.qemuImg.cluster_size),n.xp6(1),n.Q6J("ngForOf",i.clusterSizeOptions),n.xp6(3),n.Q6J("ngModel",i.qemuImg.lazy_refcounts),n.xp6(1),n.Q6J("ngForOf",i.lazyRefcountsOptions),n.xp6(2),n.Q6J("ngModel",i.qemuImg.refcount_bits),n.xp6(1),n.Q6J("ngForOf",i.clusterSizeOptions)}}function G5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("dynamic")}),n._uU(3,"Dynamic"),n.qZA(),n.TgZ(4,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("fixed")}),n._uU(5,"Fixed"),n.qZA()()()}}function q5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",16),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function K5e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div"),n._uU(1," Adapter type"),n._UZ(2,"br"),n.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("ide")}),n._uU(5,"IDE"),n.qZA(),n.TgZ(6,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("lsilogic")}),n._uU(7,"LSI Logic"),n.qZA(),n.TgZ(8,"mat-radio-button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("buslogic")}),n._uU(9,"BusLogic"),n.qZA(),n.TgZ(10,"mat-radio-button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().setAdapterType("legacyESX")}),n._uU(11,"Legacy (ESX)"),n.qZA()(),n._UZ(12,"br")(13,"br"),n._uU(14," Image file sizing mode"),n._UZ(15,"br"),n.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("streamOptimized")}),n._uU(18,"Stream optimized"),n.qZA(),n.TgZ(19,"mat-radio-button",22),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("twoGbMaxExtentSparse")}),n._uU(20,"Split every 2GB (sparse)"),n.qZA(),n.TgZ(21,"mat-radio-button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("twoGbMaxExtentFlat")}),n._uU(22,"Split every 2GB (flat)"),n.qZA(),n.TgZ(23,"mat-radio-button",25),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("monolithicSparse")}),n._uU(24,"Monolithic sparse"),n.qZA(),n.TgZ(25,"mat-radio-button",26),n.NdJ("click",function(){return n.CHM(e),n.oxw().setSubformat("monolithicFlat")}),n._uU(26,"Monolithic flat"),n.qZA()(),n._UZ(27,"br")(28,"br"),n.TgZ(29,"mat-select",27),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().qemuImg.zeroed_grain=a}),n.YNc(30,q5e,2,2,"mat-option",9),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(29),n.Q6J("ngModel",i.qemuImg.zeroed_grain),n.xp6(1),n.Q6J("ngForOf",i.zeroedGrainOptions)}}BD.\u0275fac=function(r){return new(r||BD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu))},BD.\u0275cmp=n.Xpm({type:BD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()()()()()(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(13,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",e.node.name))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Zr,Tn],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 FD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),path:new ne.NI("",ne.kI.required),size:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();FD.\u0275fac=function(r){return new(r||FD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(gu))},FD.\u0275cmp=n.Xpm({type:FD,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&&(n.TgZ(0,"h1",0),n._uU(1,"Qemu image configurator"),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),n.qZA()()(),n.TgZ(9,"mat-form-field",6)(10,"mat-select",8),n.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),n.YNc(11,H5e,2,2,"mat-option",9),n.qZA()(),n.YNc(12,Y5e,15,8,"div",10),n.YNc(13,G5e,6,0,"div",10),n.YNc(14,K5e,31,2,"div",10),n.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),n.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),n.qZA()(),n.TgZ(18,"mat-form-field",6)(19,"input",12),n.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),n.qZA()()()()()()(),n.TgZ(20,"div",13)(21,"button",14),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(22,"Cancel"),n.qZA(),n.TgZ(23,"button",15),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(24,"Apply"),n.qZA()()),2&r&&(n.xp6(6),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.qemuImg.qemu_img),n.xp6(2),n.Q6J("ngModel",e.qemuImg.format),n.xp6(1),n.Q6J("ngForOf",e.formatOptions),n.xp6(1),n.Q6J("ngIf","qcow2"===e.qemuImg.format),n.xp6(1),n.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),n.xp6(1),n.Q6J("ngIf","vmdk"===e.qemuImg.format),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.qemuImg.path),n.xp6(2),n.Q6J("ngModel",e.qemuImg.size))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ct.O5,_s,Ys,ne.wV,Zr,Tn],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 J5e=["customAdapters"];function Q5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function X5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function $5e(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}function eZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function tZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function nZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function rZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function iZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function oZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function aZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function sZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.filename),n.xp6(1),n.hij(" ",e.filename," ")}}function lZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function uZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",11)(1,"input",50),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw(2).node.properties.cpu_throttling=a}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("ngModel",i.node.properties.cpu_throttling)}}function cZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",49),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var dZe=function(){return{standalone:!0}};function fZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",11)(7,"mat-select",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.platform=a}),n.YNc(8,Q5e,2,2,"mat-option",14),n.qZA()(),n.TgZ(9,"mat-form-field",11)(10,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(11,"span",16),n._uU(12,"MB"),n.qZA()()(),n.TgZ(13,"mat-form-field",11)(14,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cpus=a}),n.qZA()(),n.TgZ(15,"mat-form-field",11)(16,"mat-select",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.boot_priority=a}),n.YNc(17,X5e,2,2,"mat-option",14),n.qZA()(),n.TgZ(18,"mat-form-field",11)(19,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(20,$5e,2,2,"mat-option",14),n.qZA()(),n.TgZ(21,"mat-form-field",20)(22,"mat-select",21),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(23,eZe,2,2,"mat-option",14),n.qZA()(),n.TgZ(24,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.console_auto_start=a}),n._uU(25," Auto start console "),n.qZA()(),n.TgZ(26,"mat-tab",23)(27,"mat-card")(28,"button",24),n.NdJ("click",function(){return n.CHM(e),n.oxw().openQemuImageCreator()}),n._uU(29," Create Qemu image "),n.qZA(),n._UZ(30,"mat-card-title"),n.TgZ(31,"mat-card-subtitle"),n._uU(32," HDA (Primary Master) "),n.qZA(),n.TgZ(33,"mat-card-content")(34,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hda_disk_image=a}),n.YNc(35,tZe,2,2,"mat-option",14),n.qZA(),n.TgZ(36,"mat-form-field",11)(37,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hda_disk_interface=a}),n.YNc(38,nZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(39,"mat-card"),n._UZ(40,"mat-card-title"),n.TgZ(41,"mat-card-subtitle"),n._uU(42," HDB (Primary Slave) "),n.qZA(),n.TgZ(43,"mat-card-content")(44,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdb_disk_image=a}),n.YNc(45,rZe,2,2,"mat-option",14),n.qZA(),n.TgZ(46,"mat-form-field",11)(47,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdb_disk_interface=a}),n.YNc(48,iZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(49,"mat-card"),n._UZ(50,"mat-card-title"),n.TgZ(51,"mat-card-subtitle"),n._uU(52," HDC (Secondary Master) "),n.qZA(),n.TgZ(53,"mat-card-content")(54,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdc_disk_image=a}),n.YNc(55,oZe,2,2,"mat-option",14),n.qZA(),n.TgZ(56,"mat-form-field",11)(57,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdc_disk_interface=a}),n.YNc(58,aZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(59,"mat-card"),n._UZ(60,"mat-card-title"),n.TgZ(61,"mat-card-subtitle"),n._uU(62," HDD (Secondary Slave) "),n.qZA(),n.TgZ(63,"mat-card-content")(64,"mat-select",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdd_disk_image=a}),n.YNc(65,sZe,2,2,"mat-option",14),n.qZA(),n.TgZ(66,"mat-form-field",11)(67,"mat-select",26),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.hdd_disk_interface=a}),n.YNc(68,lZe,2,2,"mat-option",14),n.qZA()()()()(),n.TgZ(69,"mat-tab",27)(70,"div")(71,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(74).click()}),n._uU(72,"Browse"),n.qZA(),n.TgZ(73,"input",29,30),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadCdromImageFile(a)}),n.qZA(),n.TgZ(75,"mat-form-field",31)(76,"input",32),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.cdrom_image=a}),n.qZA()()()(),n.TgZ(77,"mat-tab",33),n._UZ(78,"br")(79,"br"),n.TgZ(80,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.replicate_network_connection_state=a}),n._uU(81," Replicate network connection state "),n.qZA(),n._UZ(82,"app-custom-adapters-table",34,35),n.qZA(),n.TgZ(84,"mat-tab",36)(85,"mat-card"),n._UZ(86,"mat-card-title"),n.TgZ(87,"mat-card-subtitle"),n._uU(88," Linux boot specific settings "),n.qZA(),n.TgZ(89,"mat-card-content")(90,"div")(91,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(94).click()}),n._uU(92," Browse "),n.qZA(),n.TgZ(93,"input",29,37),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadInitrdFile(a)}),n.qZA(),n.TgZ(95,"mat-form-field",31)(96,"input",38),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.initrd=a}),n.qZA()()(),n.TgZ(97,"div")(98,"button",28),n.NdJ("click",function(){return n.CHM(e),n.oxw().filekerenelimage.click()}),n._uU(99," Browse "),n.qZA(),n.TgZ(100,"input",29,39),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadKernelImageFile(a)}),n.qZA(),n.TgZ(102,"mat-form-field",31)(103,"input",40),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.kernel_image=a}),n.qZA()()(),n.TgZ(104,"mat-form-field",11)(105,"input",41),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.kernel_command_line=a}),n.qZA()()()(),n.TgZ(106,"mat-card"),n._UZ(107,"mat-card-title"),n.TgZ(108,"mat-card-subtitle"),n._uU(109," Bios "),n.qZA(),n.TgZ(110,"mat-card-content")(111,"div")(112,"button",28),n.NdJ("click",function(){return n.CHM(e),n.MAs(115).click()}),n._uU(113," Browse "),n.qZA(),n.TgZ(114,"input",29,42),n.NdJ("change",function(a){return n.CHM(e),n.oxw().uploadBiosFile(a)}),n.qZA(),n.TgZ(116,"mat-form-field",31)(117,"input",43),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.bios_image=a}),n.qZA()()()()(),n.TgZ(118,"mat-card"),n._UZ(119,"mat-card-title"),n.TgZ(120,"mat-card-subtitle"),n._uU(121," Optimization "),n.qZA(),n.TgZ(122,"mat-card-content")(123,"mat-checkbox",22),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().activateCpuThrottling=a}),n._uU(124," Activate CPU throttling "),n.qZA(),n.YNc(125,uZe,2,1,"mat-form-field",44),n.TgZ(126,"mat-form-field",11)(127,"mat-select",45),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.process_priority=a}),n.YNc(128,cZe,2,2,"mat-option",14),n.qZA()()()(),n.TgZ(129,"mat-card"),n._UZ(130,"mat-card-title"),n.TgZ(131,"mat-card-subtitle"),n._uU(132," Additional settings "),n.qZA(),n.TgZ(133,"mat-card-content")(134,"mat-form-field",11)(135,"input",46),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.options=a}),n.qZA()()()()(),n.TgZ(136,"mat-tab",47)(137,"mat-form-field",11)(138,"textarea",48),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",n.DdM(45,dZe)),n.xp6(1),n.Q6J("ngForOf",i.selectPlatform),n.xp6(2),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModel",i.node.properties.cpus),n.xp6(2),n.Q6J("ngModel",i.node.properties.boot_priority),n.xp6(1),n.Q6J("ngForOf",i.bootPriorities),n.xp6(2),n.Q6J("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(2),n.Q6J("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModel",i.node.properties.console_auto_start),n.xp6(10),n.Q6J("ngModel",i.node.properties.hda_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hda_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdb_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdb_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdc_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdc_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(6),n.Q6J("ngModel",i.node.properties.hdd_disk_image),n.xp6(1),n.Q6J("ngForOf",i.qemuImages),n.xp6(2),n.Q6J("ngModel",i.node.properties.hdd_disk_interface),n.xp6(1),n.Q6J("ngForOf",i.diskInterfaces),n.xp6(8),n.Q6J("ngModel",i.node.properties.cdrom_image),n.xp6(4),n.Q6J("ngModel",i.node.properties.replicate_network_connection_state),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(14),n.Q6J("ngModel",i.node.properties.initrd),n.xp6(7),n.Q6J("ngModel",i.node.properties.kernel_image),n.xp6(2),n.Q6J("ngModel",i.node.properties.kernel_command_line),n.xp6(12),n.Q6J("ngModel",i.node.properties.bios_image),n.xp6(6),n.Q6J("ngModel",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngIf",i.activateCpuThrottling),n.xp6(2),n.Q6J("ngModel",i.node.properties.process_priority),n.xp6(1),n.Q6J("ngForOf",i.priorities),n.xp6(7),n.Q6J("ngModel",i.node.properties.options),n.xp6(3),n.Q6J("ngModel",i.node.properties.usage)}}var UD=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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(FD,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()}}]),t}();function pZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Port : DLCI"),n.qZA())}function hZe(t,r){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portIn)}}function mZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Port : DLCI"),n.qZA())}function _Ze(t,r){if(1&t&&(n.TgZ(0,"td",25),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.portOut)}}function gZe(t,r){1&t&&(n.TgZ(0,"th",24),n._uU(1,"Actions"),n.qZA())}function vZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",25)(1,"button",26),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).delete(a)}),n.TgZ(2,"mat-icon",27),n._uU(3,"delete"),n.qZA()()()}}function yZe(t,r){1&t&&n._UZ(0,"tr",28)}function bZe(t,r){1&t&&n._UZ(0,"tr",29)}function CZe(t,r){if(1&t&&(n.TgZ(0,"table",16),n.ynx(1,17),n.YNc(2,pZe,2,0,"th",18),n.YNc(3,hZe,2,1,"td",19),n.BQk(),n.ynx(4,20),n.YNc(5,mZe,2,0,"th",18),n.YNc(6,_Ze,2,1,"td",19),n.BQk(),n.ynx(7,21),n.YNc(8,gZe,2,0,"th",18),n.YNc(9,vZe,4,0,"td",19),n.BQk(),n.YNc(10,yZe,1,0,"tr",22),n.YNc(11,bZe,1,0,"tr",23),n.qZA()),2&t){var e=n.oxw();n.Q6J("dataSource",e.nodeMappingsDataSource),n.xp6(10),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns)}}UD.\u0275fac=function(r){return new(r||UD)(n.Y36(ri),n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(gu),n.Y36(Qh))},UD.\u0275cmp=n.Xpm({type:UD,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(J5e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,fZe,139,46,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,ne.wV,Fn.R9,Ui,Tn,nw,rw,Qy,ug,Zr],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 HD=function(){function t(r,e,i,o){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new ne.NI("",ne.kI.required),sourceDlci:new ne.NI("",ne.kI.required),destinationPort:new ne.NI("",ne.kI.required),destinationDlci:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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,cn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Ut.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(f){o.e(f)}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,Ut.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,Ex.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()}}]),t}();HD.\u0275fac=function(r){return new(r||HD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu))},HD.\u0275cmp=n.Xpm({type:HD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),n.YNc(6,CZe,12,3,"table",4),n._UZ(7,"br"),n.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()(),n.TgZ(11,"form",5),n._uU(12," Source "),n.TgZ(13,"mat-form-field",6)(14,"input",8),n.NdJ("ngModelChange",function(o){return e.sourcePort=o}),n.qZA()(),n.TgZ(15,"mat-form-field",6)(16,"input",9),n.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),n.qZA()(),n._uU(17," Destination "),n.TgZ(18,"mat-form-field",6)(19,"input",10),n.NdJ("ngModelChange",function(o){return e.destinationPort=o}),n.qZA()(),n.TgZ(20,"mat-form-field",6)(21,"input",11),n.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),n.qZA()()(),n.TgZ(22,"button",12),n.NdJ("click",function(){return e.add()}),n._uU(23,"Add"),n.qZA()()()()(),n.TgZ(24,"div",13)(25,"button",14),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(26,"Cancel"),n.qZA(),n.TgZ(27,"button",15),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(28,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.nodeMappingsDataSource.length),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(1),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngModel",e.sourcePort),n.xp6(2),n.Q6J("ngModel",e.sourceDlci),n.xp6(3),n.Q6J("ngModel",e.destinationPort),n.xp6(2),n.Q6J("ngModel",e.destinationDlci))},directives:[Vr,Si,Ct.O5,ca,aa,fa,Sa,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Zr],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 wZe=["customAdapters"];function kZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function TZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",26),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}var qj=function(){return{standalone:!0}};function EZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,kZe,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n.TgZ(11,"mat-form-field",11)(12,"input",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.ram=a}),n.qZA(),n.TgZ(13,"span",18),n._uU(14,"MB"),n.qZA()(),n.TgZ(15,"mat-form-field",11)(16,"mat-select",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(17,TZe,2,2,"mat-option",15),n.qZA()()(),n.TgZ(18,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.headless=a}),n._uU(19," Start VM in headless mode "),n.qZA()(),n.TgZ(20,"mat-tab",21),n._UZ(21,"br"),n.TgZ(22,"mat-checkbox",20),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.use_any_adapter=a}),n._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),n.qZA(),n._UZ(24,"app-custom-adapters-table",22,23),n.qZA(),n.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,qj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(18,qj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModel",i.node.properties.ram),n.xp6(4),n.Q6J("ngModelOptions",n.DdM(19,qj))("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.node.properties.headless),n.xp6(4),n.Q6J("ngModel",i.node.properties.use_any_adapter),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(4),n.Q6J("ngModel",i.node.properties.usage)}}var jD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),ram:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();jD.\u0275fac=function(r){return new(r||jD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(cg))},jD.\u0275cmp=n.Xpm({type:jD,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(wZe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,EZe,29,20,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ne.wV,Fn.R9,ug,Zr,Tn],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 MZe=["customAdapters"];function SZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function xZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",24),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}var Kj=function(){return{standalone:!0}};function DZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9),n._UZ(2,"br"),n.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.name=a}),n.qZA()(),n.TgZ(6,"mat-form-field",13)(7,"mat-select",14),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_type=a}),n.YNc(8,SZe,2,2,"mat-option",15),n.qZA()(),n.TgZ(9,"mat-checkbox",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.console_auto_start=a}),n._uU(10," Auto start console "),n.qZA(),n.TgZ(11,"mat-form-field",11)(12,"mat-select",17),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.on_close=a}),n.YNc(13,xZe,2,2,"mat-option",15),n.qZA()()(),n.TgZ(14,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.headless=a}),n._uU(15," Start VM in headless mode "),n.qZA(),n._UZ(16,"br"),n.TgZ(17,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.linked_clone=a}),n._uU(18," Use a linked base VM (experimental) "),n.qZA()(),n.TgZ(19,"mat-tab",19),n._UZ(20,"br"),n.TgZ(21,"mat-checkbox",18),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.use_any_adapter=a}),n._uU(22," Allow GNS3 to override non custom VMware adapter "),n.qZA(),n._UZ(23,"app-custom-adapters-table",20,21),n.qZA(),n.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().node.properties.usage=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("formGroup",i.generalSettingsForm),n.xp6(2),n.Q6J("ngModel",i.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(17,Kj))("ngModel",i.node.console_type),n.xp6(1),n.Q6J("ngForOf",i.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(18,Kj))("ngModel",i.node.console_auto_start),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(19,Kj))("ngModel",i.node.properties.on_close),n.xp6(1),n.Q6J("ngForOf",i.onCloseOptions),n.xp6(1),n.Q6J("ngModel",i.node.properties.headless),n.xp6(3),n.Q6J("ngModel",i.node.properties.linked_clone),n.xp6(4),n.Q6J("ngModel",i.node.properties.use_any_adapter),n.xp6(2),n.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),n.xp6(4),n.Q6J("ngModel",i.node.properties.usage)}}var zD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();function AZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}zD.\u0275fac=function(r){return new(r||zD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(dg))},zD.\u0275cmp=n.Xpm({type:zD,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(MZe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),n.YNc(6,DZe,28,20,"mat-tab-group",5),n.qZA()()()(),n.TgZ(7,"div",6)(8,"button",7),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(9,"Cancel"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(11,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("ngIf",e.name))},directives:[Vr,Si,Ct.O5,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,ug,Zr,Tn],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 _ie=function(){return{standalone:!0}},WD=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();WD.\u0275fac=function(r){return new(r||WD)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu),n.Y36(tm))},WD.\u0275cmp=n.Xpm({type:WD,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()(),n.TgZ(9,"mat-form-field",8)(10,"mat-select",9),n.NdJ("ngModelChange",function(o){return e.node.console_type=o}),n.YNc(11,AZe,2,2,"mat-option",10),n.qZA()(),n.TgZ(12,"mat-checkbox",11),n.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),n._uU(13," Auto start console "),n.qZA()()()()()(),n.TgZ(14,"div",12)(15,"button",13),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(16,"Cancel"),n.qZA(),n.TgZ(17,"button",14),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(18,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configurator for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(8,_ie))("ngModel",e.node.console_type),n.xp6(1),n.Q6J("ngForOf",e.consoleTypes),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(9,_ie))("ngModel",e.node.console_auto_start))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Oi.gD,ne.On,Ct.sg,ln.ey,Ui,Zr,Tn],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 VD=function(){function t(r){(0,j.Z)(this,t),this.dialog=r,this.conf={autoFocus:!1,width:"800px",disableClose:!0}}return(0,V.Z)(t,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(WD,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(LD,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(RD,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(AD,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(ZD,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(ND,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(UD,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(jD,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(zD,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(PD,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(BD,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(HD,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(xD,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),t}();function OZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"play_arrow"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start"),n.qZA()()}}VD.\u0275fac=function(r){return new(r||VD)(n.Y36(ri))},VD.\u0275cmp=n.Xpm({type:VD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.configureNode()}),n.TgZ(1,"mat-icon"),n._uU(2,"settings_applications"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Configure"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var YD=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})})}}]),t}();function IZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().suspendNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Suspend"),n.qZA()()}}YD.\u0275fac=function(r){return new(r||YD)(n.Y36(ti),n.Y36($n))},YD.\u0275cmp=n.Xpm({type:YD,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,OZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStoppedStatus)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var GD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r}return(0,V.Z)(t,[{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){})})}}]),t}();function PZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().stopNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"stop"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Stop"),n.qZA()()}}GD.\u0275fac=function(r){return new(r||GD)(n.Y36(ti))},GD.\u0275cmp=n.Xpm({type:GD,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,IZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStartedStatus)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var qD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r}return(0,V.Z)(t,[{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){})})}}]),t}();function RZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().reloadNodes()}),n.TgZ(1,"mat-icon"),n._uU(2,"refresh"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Reload"),n.qZA()()}}qD.\u0275fac=function(r){return new(r||qD)(n.Y36(ti))},qD.\u0275cmp=n.Xpm({type:qD,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,PZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.isNodeWithStartedStatus)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var KD=function(){function t(r){(0,j.Z)(this,t),this.nodeService=r,this.filteredNodes=[]}return(0,V.Z)(t,[{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){})})}}]),t}();KD.\u0275fac=function(r){return new(r||KD)(n.Y36(ti))},KD.\u0275cmp=n.Xpm({type:KD,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&&n.YNc(0,RZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.filteredNodes.length>0)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var eu=function(){function t(r,e,i){(0,j.Z)(this,t),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new n.vpe,this.closeNodeConsoleTrigger=new qn.xQ,this.consoleResized=new qn.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,V.Z)(t,[{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(as.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws")}},{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){"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 for them: ",a=0;e.forEach(function(s){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)}}]),t}();eu.\u0275fac=function(r){return new(r||eu)(n.LFG(kr),n.LFG($n),n.LFG(dl))},eu.\u0275prov=n.Yz7({token:eu,factory:eu.\u0275fac});var JD=function(){function t(r){(0,j.Z)(this,t),this.nodeConsoleService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),t}();JD.\u0275fac=function(r){return new(r||JD)(n.Y36(eu))},JD.\u0275cmp=n.Xpm({type:JD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"http"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Web console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var QD=function(){function t(r){(0,j.Z)(this,t),this.nodeConsoleService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),t}();QD.\u0275fac=function(r){return new(r||QD)(n.Y36(eu))},QD.\u0275cmp=n.Xpm({type:QD,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"http"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Web console in new tab"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var hm=m(9449);function XD(){XD=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}var $D=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return no(this,void 0,void 0,XD().mark(function e(){var i,a,s,l,u;return XD().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(v){return"started"===v.status}).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,cn.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){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 no(this,void 0,void 0,XD().mark(function i(){return XD().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)}))}}]),t}();$D.\u0275fac=function(r){return new(r||$D)(n.Y36(sl),n.Y36(vr),n.Y36(hm.g),n.Y36($n),n.Y36(ti))},$D.\u0275cmp=n.Xpm({type:$D,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.console()}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var eA=function(){function t(r,e){(0,j.Z)(this,t),this.toasterService=r,this.nodeService=e}return(0,V.Z)(t,[{key:"openConsole",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.startConsole()})}},{key:"startConsole",value:function(){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else if(("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),"telnet"===this.node.console_type||"vnc"===this.node.console_type||"spice"===this.node.console_type)try{location.assign("gns3+".concat(this.node.console_type,"://").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))}catch(e){this.toasterService.error(e)}else this.toasterService.error("Supported console types: telnet, vnc, spice.")}}]),t}();eA.\u0275fac=function(r){return new(r||eA)(n.Y36($n),n.Y36(ti))},eA.\u0275cmp=n.Xpm({type:eA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openConsole()}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Console"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var tA=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),t}();tA.\u0275fac=function(r){return new(r||tA)(n.Y36(sl))},tA.\u0275cmp=n.Xpm({type:tA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.open()}),n.TgZ(1,"mat-icon"),n._uU(2,"tab"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Open file explorer"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var nA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})}}]),t}();nA.\u0275fac=function(r){return new(r||nA)(n.Y36(ti),n.Y36($n))},nA.\u0275cmp=n.Xpm({type:nA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.isolate()}),n.TgZ(1,"mat-icon"),n._uU(2,"gps_off"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Isolate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var rA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e}return(0,V.Z)(t,[{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)})}}]),t}();rA.\u0275fac=function(r){return new(r||rA)(n.Y36(ti),n.Y36($n))},rA.\u0275cmp=n.Xpm({type:rA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.unisolate()}),n.TgZ(1,"mat-icon"),n._uU(2,"gps_not_fixed"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Un-isolate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var iA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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()}}]),t}();iA.\u0275fac=function(r){return new(r||iA)(n.Y36(Ar),n.Y36(ti),n.Y36($n),n.Y36(ne.qu))},iA.\u0275cmp=n.Xpm({type:iA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.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),n.NdJ("ngModelChange",function(o){return e.node.name=o}),n.qZA()()()()()()(),n.TgZ(9,"div",8)(10,"button",9),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",10),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(13,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Change hostname for node ",e.name,""),n.xp6(5),n.Q6J("formGroup",e.inputForm),n.xp6(2),n.Q6J("ngModel",e.node.name))},directives:[Vr,Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Zr,Tn],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var oA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(iA,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),t}();oA.\u0275fac=function(r){return new(r||oA)(n.Y36(ri))},oA.\u0275cmp=n.Xpm({type:oA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.changeHostname()}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Change hostname"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var aA=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e}return(0,V.Z)(t,[{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()})}}]),t}();aA.\u0275fac=function(r){return new(r||aA)(n.Y36(Ar),n.Y36(ti))},aA.\u0275cmp=n.Xpm({type:aA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),n.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),n.qZA()()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSelectClick()}),n._uU(9,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Change symbol for node: ",e.node.name,""),n.xp6(3),n.Q6J("controller",e.controller)("symbol",e.symbol))},directives:[Vr,bw,Zr,Tn],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 sA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(aA,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),t}();sA.\u0275fac=function(r){return new(r||sA)(n.Y36(ri))},sA.\u0275cmp=n.Xpm({type:sA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.changeSymbol()}),n.TgZ(1,"mat-icon"),n._uU(2,"find_replace"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Change symbol"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var ls=function(){function t(r,e){(0,j.Z)(this,t),this.httpController=r,this.svgToDrawingConverter=e}return(0,V.Z)(t,[{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))}}]),t}();ls.\u0275fac=function(r){return new(r||ls)(n.LFG(Wo.zw),n.LFG(Ep))},ls.\u0275prov=n.Yz7({token:ls,factory:ls.\u0275fac});var qa=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(xZ.o);qa.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(qa)))(e||qa)}}(),qa.\u0275prov=n.Yz7({token:qa,factory:qa.\u0275fac});var lA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,V.Z)(t,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,cn.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,cn.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var f=u.value;this.drawingService.duplicate(this.controller,f.project_id,f).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)))}}]),t}();lA.\u0275fac=function(r){return new(r||lA)(n.Y36(ti),n.Y36(vs.G),n.Y36(ls),n.Y36(qa),n.Y36($n))},lA.\u0275cmp=n.Xpm({type:lA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.duplicate()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_none"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Duplicate"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var $c=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i="";if(e.element instanceof dm)i='<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,'" />');else if(e.element instanceof sa)i='<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,'" />');else if(e.element instanceof E0)i='<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,'" />');else{if(!(e.element instanceof M0))return"";i='<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(i,"</svg>")}}]),t}();$c.\u0275fac=function(r){return new(r||$c)},$c.\u0275prov=n.Yz7({token:$c,factory:$c.\u0275fac});var Ig=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),t}();Ig.\u0275fac=function(r){return new(r||Ig)},Ig.\u0275prov=n.Yz7({token:Ig,factory:Ig.\u0275fac});var Jj=function(){return{standalone:!0}};function LZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",3)(1,"input",12),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().element.stroke_dasharray=a}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModelOptions",n.DdM(2,Jj))("ngModel",i.element.stroke_dasharray)}}var uA=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,this.formGroup=this.formBuilder.group({borderWidth:new ne.NI("",[ne.kI.required,u.get]),rotation:new ne.NI("",[ne.kI.required,f.get])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.element=new ZZe,this.drawing.element instanceof dm||this.drawing.element instanceof sa?(this.element.fill=this.drawing.element.fill,this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof E0&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=this.drawing.element.stroke_dasharray,this.element.stroke_width=this.drawing.element.stroke_width),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 e=this;if(this.formGroup.valid){this.element.stroke_width=this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof dm||this.drawing.element instanceof sa?(this.drawing.element.fill=this.element.fill,this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof E0&&(this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width);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")}}]),t}();uA.\u0275fac=function(r){return new(r||uA)(n.Y36(Ar),n.Y36(lm),n.Y36($c),n.Y36(ls),n.Y36(qa),n.Y36(ne.qu),n.Y36($n),n.Y36(tf),n.Y36(Ig))},uA.\u0275cmp=n.Xpm({type:uA,selectors:[["app-style-editor"]],decls:18,vars:8,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number"],["class","form-field",4,"ngIf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Border style","type","text",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(r,e){1&r&&(n.TgZ(0,"h1",0),n._uU(1,"Style editor"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"input",4),n.NdJ("ngModelChange",function(o){return e.element.fill=o}),n.qZA()(),n.TgZ(6,"mat-form-field",3)(7,"input",5),n.NdJ("ngModelChange",function(o){return e.element.stroke=o}),n.qZA()(),n.TgZ(8,"mat-form-field",3),n._UZ(9,"input",6),n.qZA(),n.YNc(10,LZe,2,3,"mat-form-field",7),n.TgZ(11,"mat-form-field",3),n._UZ(12,"input",8),n.qZA()()(),n.TgZ(13,"div",9)(14,"button",10),n.NdJ("click",function(){return e.onNoClick()}),n._uU(15,"Cancel"),n.qZA(),n.TgZ(16,"button",11),n.NdJ("click",function(){return e.onYesClick()}),n._uU(17,"Apply"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.formGroup),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(6,Jj))("ngModel",e.element.fill),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(7,Jj))("ngModel",e.element.stroke),n.xp6(3),n.Q6J("ngIf",e.element.stroke_dasharray))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ne.wV,ne.u,Ct.O5,Zr,Tn],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 ZZe=(0,V.Z)(function t(){(0,j.Z)(this,t)});function NZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().editStyle()}),n.TgZ(1,"mat-icon"),n._uU(2,"style"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit style"),n.qZA()()}}var cA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r,this.isImageDrawing=!1}return(0,V.Z)(t,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof lN}},{key:"editStyle",value:function(){var i=this.dialog.open(uA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing}}]),t}();cA.\u0275fac=function(r){return new(r||cA)(n.Y36(ri))},cA.\u0275cmp=n.Xpm({type:cA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[n.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&n.YNc(0,NZe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.isImageDrawing)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var BZe=["textArea"],dA=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G){(0,j.Z)(this,t),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=f,this.linksDataSource=h,this.formBuilder=v,this.toasterService=C,this.rotationValidator=B,this.fontFixer=G}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new ne.NI("",[ne.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 M0,o=(0,cn.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)}}]),t}();dA.\u0275fac=function(r){return new(r||dA)(n.Y36(Ar),n.Y36(lm),n.Y36($c),n.Y36(ls),n.Y36(qa),n.Y36(n.Qsj),n.Y36(ti),n.Y36(vs.G),n.Y36(fl),n.Y36(pm.F),n.Y36(ne.qu),n.Y36($n),n.Y36(Ig),n.Y36(gs))},dA.\u0275cmp=n.Xpm({type:dA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(BZe,7),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1,"Text editor"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),n.qZA()(),n.TgZ(5,"form",4)(6,"mat-form-field",2),n._UZ(7,"input",5),n.qZA()(),n.TgZ(8,"textarea",6,7),n.NdJ("ngModelChange",function(o){return e.element.text=o}),n.qZA()(),n.TgZ(10,"div",8)(11,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(12,"Cancel"),n.qZA(),n.TgZ(13,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(14,"Apply"),n.qZA()()),2&r&&(n.xp6(4),n.Q6J("ngModel",e.element.fill),n.xp6(1),n.Q6J("formGroup",e.formGroup),n.xp6(3),n.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},directives:[Vr,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ne._Y,ne.JL,ne.sg,ne.u,Zr,Tn],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 fA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(dA,{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}}]),t}();function FZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",6)(1,"textarea",7,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().config=a}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("ngModel",i.config)}}function UZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().config=a}),n.qZA()(),n.TgZ(4,"mat-tab",11)(5,"textarea",10,8),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().privateConfig=a}),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngModel",i.config),n.xp6(3),n.Q6J("ngModel",i.privateConfig)}}fA.\u0275fac=function(r){return new(r||fA)(n.Y36(ri))},fA.\u0275cmp=n.Xpm({type:fA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.editText()}),n.TgZ(1,"mat-icon"),n._uU(2,"text_format"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit text"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var pA=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,V.Z)(t,[{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()}}]),t}();function HZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().editConfig()}),n.TgZ(1,"mat-icon"),n._uU(2,"settings"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit config"),n.qZA()()}}pA.\u0275fac=function(r){return new(r||pA)(n.Y36(Ar),n.Y36(ti),n.Y36($n))},pA.\u0275cmp=n.Xpm({type:pA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.YNc(2,FZe,3,1,"div",1),n.YNc(3,UZe,7,2,"mat-tab-group",2),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(6,"Cancel"),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(8,"Apply"),n.qZA()()),2&r&&(n.xp6(1),n.hij("Configuration for node ",e.node.name,""),n.xp6(1),n.Q6J("ngIf","vpcs"===e.node.node_type),n.xp6(1),n.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},directives:[Vr,Ct.O5,ne.Fj,ne.JJ,ne.On,so.SP,so.uX,Zr,Tn],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var hA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"editConfig",value:function(){var i=this.dialog.open(pA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),t}();hA.\u0275fac=function(r){return new(r||hA)(n.Y36(ri))},hA.\u0275cmp=n.Xpm({type:hA,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&&n.YNc(0,HZe,5,0,"button",0),2&r&&n.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var $w=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),t}();function jZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().exportConfig()}),n.TgZ(1,"mat-icon"),n._uU(2,"call_made"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Export config"),n.qZA()()}}$w.\u0275fac=function(r){return new(r||$w)(n.Y36(Ar))},$w.\u0275cmp=n.Xpm({type:$w,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&&(n.TgZ(0,"h1",0),n._uU(1,"Choose configuration file"),n.qZA(),n.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),n.NdJ("click",function(){return e.close("startup-config")}),n._uU(6,"startup configuration"),n.qZA()(),n.TgZ(7,"div")(8,"button",3),n.NdJ("click",function(){return e.close("private-config")}),n._uU(9,"private configuration"),n.qZA()()()())},directives:[Vr,Tn],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var mA=function(){function t(r,e){(0,j.Z)(this,t),this.nodeService=r,this.dialog=e}return(0,V.Z)(t,[{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($w,{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)}}]),t}();mA.\u0275fac=function(r){return new(r||mA)(n.Y36(ti),n.Y36(ri))},mA.\u0275cmp=n.Xpm({type:mA,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&&n.YNc(0,jZe,5,0,"button",0),2&r&&n.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var zZe=["fileInput"],_A=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,V.Z)(t,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open($w,{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)}}]),t}();_A.\u0275fac=function(r){return new(r||_A)(n.Y36(ti),n.Y36($n),n.Y36(ri))},_A.\u0275cmp=n.Xpm({type:_A,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(zZe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"input",0,1),n.NdJ("change",function(o){return e.importConfig(o)}),n.qZA(),n.TgZ(2,"button",2),n.NdJ("click",function(){return e.triggerClick()}),n.TgZ(3,"mat-icon"),n._uU(4,"call_received"),n.qZA(),n.TgZ(5,"span"),n._uU(6,"Import config"),n.qZA()())},directives:[Hr,Vn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var gA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{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){})})}}]),t}();gA.\u0275fac=function(r){return new(r||gA)(n.Y36(vs.G),n.Y36(qa),n.Y36(ti),n.Y36(ls))},gA.\u0275cmp=n.Xpm({type:gA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.moveLayerUp()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_up"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Move layer up"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var vA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{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){})})}}]),t}();vA.\u0275fac=function(r){return new(r||vA)(n.Y36(vs.G),n.Y36(qa),n.Y36(ti),n.Y36(ls))},vA.\u0275cmp=n.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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.moveLayerDown()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_down"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Move layer down"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var yA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,$t.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,$t.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){})})}}]),t}();yA.\u0275fac=function(r){return new(r||yA)(n.Y36(vs.G),n.Y36(qa),n.Y36(ti),n.Y36(ls))},yA.\u0275cmp=n.Xpm({type:yA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.bringToFront()}),n.TgZ(1,"mat-icon"),n._uU(2,"vertical_align_top"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Bring to front"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var Pg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"startCapture",value:function(e,i,o,a){location.assign("gns3+pcap://".concat(e.host,":").concat(e.port,"?project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&name=").concat(a))}}]),t}();function WZe(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e[1]),n.xp6(1),n.hij(" ",e[0]," ")}}Pg.\u0275fac=function(r){return new(r||Pg)},Pg.\u0275prov=n.Yz7({token:Pg,factory:Pg.\u0275fac});var VZe=function(){return{standalone:!0}},bA=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI("",ne.kI.required),fileName:new ne.NI("",ne.kI.required)})}return(0,V.Z)(t,[{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))}},{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()}}]),t}();function YZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"loupe"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start capture"),n.qZA()()}}bA.\u0275fac=function(r){return new(r||bA)(n.Y36(Ar),n.Y36(fl),n.Y36(ne.qu),n.Y36($n),n.Y36(vs.G),n.Y36(Pg))},bA.\u0275cmp=n.Xpm({type:bA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Packet capture"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),n.YNc(6,WZe,2,2,"mat-option",5),n.qZA()(),n.TgZ(7,"mat-form-field",3),n._UZ(8,"input",6),n.qZA(),n.TgZ(9,"mat-checkbox",7),n.NdJ("ngModelChange",function(o){return e.startProgram=o}),n._uU(10," Start the capture visualization program "),n.qZA()()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(15,"Ok"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.inputForm),n.xp6(3),n.Q6J("ngForOf",e.linkTypes),n.xp6(3),n.Q6J("ngModelOptions",n.DdM(4,VZe))("ngModel",e.startProgram))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,Oi.gD,ne.JJ,ne.u,ne.Fj,Ct.sg,ln.ey,sr,Ui,ne.On,Zr,Tn],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var CA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"startCapture",value:function(){var i=this.dialog.open(bA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();function GZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().stopCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause_circle_filled"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Stop capture"),n.qZA()()}}CA.\u0275fac=function(r){return new(r||CA)(n.Y36(ri))},CA.\u0275cmp=n.Xpm({type:CA,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&&n.YNc(0,YZe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.link.capturing)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var wA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),t}();function qZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().startCapture()}),n.TgZ(1,"mat-icon"),n._uU(2,"search"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Start Wireshark"),n.qZA()()}}wA.\u0275fac=function(r){return new(r||wA)(n.Y36(fl))},wA.\u0275cmp=n.Xpm({type:wA,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&&n.YNc(0,GZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.capturing)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var kA=function(){function t(r){(0,j.Z)(this,t),this.packetCaptureService=r}return(0,V.Z)(t,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),t}();function KZe(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"h6"),n._uU(2),n.qZA(),n.TgZ(3,"span",6),n._uU(4),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.hij(" ",e.name," "),n.xp6(2),n.hij(" ",e.description," ")}}kA.\u0275fac=function(r){return new(r||kA)(n.Y36(Pg))},kA.\u0275cmp=n.Xpm({type:kA,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&&n.YNc(0,qZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.capturing)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var TA=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),t}();function JZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.frequency_drop[0]=a}),n.qZA()()(),n.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.packet_loss[0]=a}),n.qZA()()(),n.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.delay[0]=a}),n.qZA()(),n.TgZ(10,"mat-form-field",10)(11,"input",16),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.delay[1]=a}),n.qZA()()(),n.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.corrupt[0]=a}),n.qZA()()(),n.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().filters.bpf[0]=a}),n.qZA()()()()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngModel",i.filters.frequency_drop[0]),n.xp6(3),n.Q6J("ngModel",i.filters.packet_loss[0]),n.xp6(3),n.Q6J("ngModel",i.filters.delay[0]),n.xp6(2),n.Q6J("ngModel",i.filters.delay[1]),n.xp6(3),n.Q6J("ngModel",i.filters.corrupt[0]),n.xp6(3),n.Q6J("ngModel",i.filters.bpf[0])}}TA.\u0275fac=function(r){return new(r||TA)(n.Y36(Ar))},TA.\u0275cmp=n.Xpm({type:TA,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&&(n.TgZ(0,"h1",0),n._uU(1),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,KZe,5,2,"div",2),n.qZA(),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(6,"Close"),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.title),n.xp6(2),n.Q6J("ngForOf",e.messages))},directives:[Vr,Ct.sg,Zr,Tn],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var EA=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,V.Z)(t,[{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(TA,{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}}]),t}();EA.\u0275fac=function(r){return new(r||EA)(n.Y36(Ar),n.Y36(fl),n.Y36(ri))},EA.\u0275cmp=n.Xpm({type:EA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Packet filters"),n.qZA(),n.TgZ(2,"div",1),n.YNc(3,JZe,18,6,"mat-tab-group",2),n.qZA(),n.TgZ(4,"div",3),n._UZ(5,"div",4),n.TgZ(6,"div",5)(7,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(8,"Cancel"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){return e.onResetClick()}),n._uU(10,"Reset"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onYesClick()}),n._uU(12,"Apply"),n.qZA(),n._UZ(13,"div",8),n.TgZ(14,"button",6),n.NdJ("click",function(){return e.onHelpClick()}),n._uU(15,"Help"),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("ngIf",e.filters))},directives:[Vr,Ct.O5,so.SP,so.uX,Fn.KE,sr,ne.wV,ne.Fj,ne.JJ,ne.On,Zr,Tn],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 MA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(EA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();function QZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().resumeLink()}),n.TgZ(1,"mat-icon"),n._uU(2,"play_arrow"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Resume"),n.qZA()()}}MA.\u0275fac=function(r){return new(r||MA)(n.Y36(ri))},MA.\u0275cmp=n.Xpm({type:MA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.openPacketFilters()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_list"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Packet filters"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var SA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),t}();function XZe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",1),n.NdJ("click",function(){return n.CHM(e),n.oxw().suspendLink()}),n.TgZ(1,"mat-icon"),n._uU(2,"pause"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Suspend"),n.qZA()()}}SA.\u0275fac=function(r){return new(r||SA)(n.Y36(fl))},SA.\u0275cmp=n.Xpm({type:SA,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&&n.YNc(0,QZe,5,0,"button",0),2&r&&n.Q6J("ngIf",e.link.suspend)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var xA=function(){function t(r){(0,j.Z)(this,t),this.linkService=r}return(0,V.Z)(t,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),t}();function $Ze(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}xA.\u0275fac=function(r){return new(r||xA)(n.Y36(fl))},xA.\u0275cmp=n.Xpm({type:xA,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&&n.YNc(0,XZe,5,0,"button",0),2&r&&n.Q6J("ngIf",!e.link.suspend)},directives:[Ct.O5,Hr,Vn],encapsulation:2});var DA=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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"],this.formGroup=this.formBuilder.group({color:new ne.NI("",[ne.kI.required]),width:new ne.NI("",[ne.kI.required,u.get]),type:new ne.NI("",[ne.kI.required])})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e,i;(null===(e=this.link.link_style)||void 0===e?void 0: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?void 0: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")}}]),t}();DA.\u0275fac=function(r){return new(r||DA)(n.Y36(Ar),n.Y36(ne.qu),n.Y36($n),n.Y36(fl),n.Y36(pm.F),n.Y36(Qc),n.Y36(Cg),n.Y36(tf))},DA.\u0275cmp=n.Xpm({type:DA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Style editor"),n.qZA(),n.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),n._UZ(5,"input",4),n.qZA(),n.TgZ(6,"mat-form-field",3),n._UZ(7,"input",5),n.qZA(),n.TgZ(8,"mat-form-field",3)(9,"mat-select",6),n.YNc(10,$Ze,2,2,"mat-option",7),n.qZA()()()(),n.TgZ(11,"div",8)(12,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(13,"Cancel"),n.qZA(),n.TgZ(14,"button",10),n.NdJ("click",function(){return e.onYesClick()}),n._uU(15,"Apply"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.formGroup),n.xp6(7),n.Q6J("ngForOf",e.borderTypes))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,ne.wV,Oi.gD,Ct.sg,ln.ey,Zr,Tn],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 AA=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(DA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),t}();AA.\u0275fac=function(r){return new(r||AA)(n.Y36(ri))},AA.\u0275cmp=n.Xpm({type:AA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[n.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.editStyle()}),n.TgZ(1,"mat-icon"),n._uU(2,"style"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Edit style"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var OA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,V.Z)(t,[{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(){var e=this;this.nodes.forEach(function(i){i.locked=!i.locked,e.nodeService.updateNode(e.controller,i).subscribe(function(o){e.nodesDataSource.update(o)})}),this.drawings.forEach(function(i){i.locked=!i.locked,e.drawingService.update(e.controller,i).subscribe(function(o){e.drawingsDataSource.update(o)})})}}]),t}();OA.\u0275fac=function(r){return new(r||OA)(n.Y36(vs.G),n.Y36(qa),n.Y36(ti),n.Y36(ls))},OA.\u0275cmp=n.Xpm({type:OA,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[n.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.lock()}),n.TgZ(1,"mat-icon"),n._uU(2,"lock"),n.qZA(),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&r&&(n.xp6(4),n.Oqu(e.command))},directives:[Hr,Vn],encapsulation:2});var IA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.nodesDataSource=r,this.drawingsDataSource=e,this.linksDataSource=i,this.nodeService=o,this.drawingService=a,this.linkService=s,this.bottomSheet=l}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(Xc);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(){})})}}]),t}();IA.\u0275fac=function(r){return new(r||IA)(n.Y36(vs.G),n.Y36(qa),n.Y36(pm.F),n.Y36(ti),n.Y36(ls),n.Y36(fl),n.Y36(ef))},IA.\u0275cmp=n.Xpm({type:IA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.confirmDelete()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Delete"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var PA=function(){function t(r,e){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e}return(0,V.Z)(t,[{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){})})}}]),t}();PA.\u0275fac=function(r){return new(r||PA)(n.Y36(vs.G),n.Y36(ti))},PA.\u0275cmp=n.Xpm({type:PA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.alignHorizontally()}),n.TgZ(1,"mat-icon"),n._uU(2,"more_horiz"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Align horizontally"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var RA=function(){function t(r,e){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e}return(0,V.Z)(t,[{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){})})}}]),t}();function eNe(t,r){if(1&t&&n._UZ(0,"app-show-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function tNe(t,r){if(1&t&&n._UZ(0,"app-config-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function nNe(t,r){if(1&t&&n._UZ(0,"app-start-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function rNe(t,r){if(1&t&&n._UZ(0,"app-suspend-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function iNe(t,r){if(1&t&&n._UZ(0,"app-stop-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function oNe(t,r){if(1&t&&n._UZ(0,"app-reload-node-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function aNe(t,r){if(1&t&&n._UZ(0,"app-http-console-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function sNe(t,r){if(1&t&&n._UZ(0,"app-http-console-new-tab-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function lNe(t,r){if(1&t&&n._UZ(0,"app-console-device-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function uNe(t,r){if(1&t&&n._UZ(0,"app-console-device-action-browser",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function cNe(t,r){if(1&t&&n._UZ(0,"app-open-file-explorer-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function dNe(t,r){if(1&t&&n._UZ(0,"app-isolate-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function fNe(t,r){if(1&t&&n._UZ(0,"app-unisolate-node-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function pNe(t,r){if(1&t&&n._UZ(0,"app-change-hostname-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function hNe(t,r){if(1&t&&n._UZ(0,"app-change-symbol-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function mNe(t,r){if(1&t&&n._UZ(0,"app-duplicate-action",16),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function _Ne(t,r){if(1&t&&n._UZ(0,"app-edit-style-action",17),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function gNe(t,r){if(1&t&&n._UZ(0,"app-edit-text-action",18),2&t){var e=n.oxw();n.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 vNe(t,r){if(1&t&&n._UZ(0,"app-edit-config-action",19),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function yNe(t,r){if(1&t&&n._UZ(0,"app-export-config-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function bNe(t,r){if(1&t&&n._UZ(0,"app-import-config-action",14),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("node",e.nodes[0])}}function CNe(t,r){if(1&t&&n._UZ(0,"app-move-layer-up-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function wNe(t,r){if(1&t&&n._UZ(0,"app-move-layer-down-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function kNe(t,r){if(1&t&&n._UZ(0,"app-bring-to-front-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function TNe(t,r){if(1&t&&n._UZ(0,"app-start-capture-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function ENe(t,r){if(1&t&&n._UZ(0,"app-stop-capture-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function MNe(t,r){if(1&t&&n._UZ(0,"app-start-capture-on-started-link-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function SNe(t,r){if(1&t&&n._UZ(0,"app-packet-filters-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function xNe(t,r){if(1&t&&n._UZ(0,"app-resume-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function DNe(t,r){if(1&t&&n._UZ(0,"app-suspend-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function ANe(t,r){if(1&t&&n._UZ(0,"app-reset-link-action",22),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("link",e.links[0])}}function ONe(t,r){if(1&t&&n._UZ(0,"app-edit-link-style-action",21),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function INe(t,r){if(1&t&&n._UZ(0,"app-lock-action",20),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function PNe(t,r){if(1&t&&n._UZ(0,"app-delete-action",23),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function RNe(t,r){if(1&t&&n._UZ(0,"app-align-horizontally-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}function LNe(t,r){if(1&t&&n._UZ(0,"app-align-vertically-action",15),2&t){var e=n.oxw();n.Q6J("controller",e.controller)("nodes",e.nodes)}}RA.\u0275fac=function(r){return new(r||RA)(n.Y36(vs.G),n.Y36(ti))},RA.\u0275cmp=n.Xpm({type:RA,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.alignVertically()}),n.TgZ(1,"mat-icon"),n._uU(2,"more_vert"),n.qZA(),n.TgZ(3,"span"),n._uU(4,"Align vertically"),n.qZA()())},directives:[Hr,Vn],encapsulation:2});var ek=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{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 M0,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}}]),t}();function ZNe(t,r){if(1&t&&(n.TgZ(0,"mat-option",19),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function NNe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-form-field",16)(1,"mat-select",17),n.NdJ("selectionChange",function(a){return n.CHM(e),n.oxw(2)._changePageSize(a.value)}),n.YNc(2,ZNe,2,2,"mat-option",18),n.qZA()()}if(2&t){var i=n.oxw(2);n.Q6J("appearance",i._formFieldAppearance)("color",i.color),n.xp6(1),n.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),n.xp6(1),n.Q6J("ngForOf",i._displayedPageSizeOptions)}}function BNe(t,r){if(1&t&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Oqu(e.pageSize)}}function FNe(t,r){if(1&t&&(n.TgZ(0,"div",12)(1,"div",13),n._uU(2),n.qZA(),n.YNc(3,NNe,3,6,"mat-form-field",14),n.YNc(4,BNe,2,1,"div",15),n.qZA()),2&t){var e=n.oxw();n.xp6(2),n.hij(" ",e._intl.itemsPerPageLabel," "),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length>1),n.xp6(1),n.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function UNe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){return n.CHM(e),n.oxw().firstPage()}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",22),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),n.uIk("aria-label",i._intl.firstPageLabel)}}function HNe(t,r){if(1&t){var e=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"button",23),n.NdJ("click",function(){return n.CHM(e),n.oxw().lastPage()}),n.O4$(),n.TgZ(1,"svg",7),n._UZ(2,"path",24),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),n.uIk("aria-label",i._intl.lastPageLabel)}}ek.\u0275fac=function(r){return new(r||ek)(n.Y36(An.H7),n.Y36(n.sBO),n.Y36(sl),n.Y36(Xl.Y))},ek.\u0275cmp=n.Xpm({type:ek,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Pa,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0),n._UZ(1,"span",1),n.TgZ(2,"mat-menu",2,3),n.YNc(4,eNe,1,2,"app-show-node-action",4),n.YNc(5,tNe,1,2,"app-config-node-action",4),n.YNc(6,nNe,1,2,"app-start-node-action",5),n.YNc(7,rNe,1,2,"app-suspend-node-action",5),n.YNc(8,iNe,1,2,"app-stop-node-action",5),n.YNc(9,oNe,1,2,"app-reload-node-action",5),n.YNc(10,aNe,1,2,"app-http-console-action",5),n.YNc(11,sNe,1,2,"app-http-console-new-tab-action",5),n.YNc(12,lNe,1,2,"app-console-device-action",5),n.YNc(13,uNe,1,2,"app-console-device-action-browser",4),n.YNc(14,cNe,1,2,"app-open-file-explorer-action",4),n.YNc(15,dNe,1,2,"app-isolate-node-action",4),n.YNc(16,fNe,1,2,"app-unisolate-node-action",4),n.YNc(17,pNe,1,2,"app-change-hostname-action",4),n.YNc(18,hNe,1,2,"app-change-symbol-action",4),n.YNc(19,mNe,1,4,"app-duplicate-action",6),n.YNc(20,_Ne,1,3,"app-edit-style-action",7),n.YNc(21,gNe,1,7,"app-edit-text-action",8),n.YNc(22,vNe,1,3,"app-edit-config-action",9),n.YNc(23,yNe,1,2,"app-export-config-action",4),n.YNc(24,bNe,1,2,"app-import-config-action",4),n.YNc(25,CNe,1,3,"app-move-layer-up-action",10),n.YNc(26,wNe,1,3,"app-move-layer-down-action",10),n.YNc(27,kNe,1,3,"app-bring-to-front-action",10),n.YNc(28,TNe,1,3,"app-start-capture-action",11),n.YNc(29,ENe,1,2,"app-stop-capture-action",12),n.YNc(30,MNe,1,3,"app-start-capture-on-started-link-action",11),n.YNc(31,SNe,1,3,"app-packet-filters-action",11),n.YNc(32,xNe,1,2,"app-resume-link-action",12),n.YNc(33,DNe,1,2,"app-suspend-link-action",12),n.YNc(34,ANe,1,2,"app-reset-link-action",12),n.YNc(35,ONe,1,3,"app-edit-link-style-action",11),n.YNc(36,INe,1,3,"app-lock-action",10),n.YNc(37,PNe,1,4,"app-delete-action",13),n.YNc(38,RNe,1,2,"app-align-horizontally-action",5),n.YNc(39,LNe,1,2,"app-align-vertically-action",5),n.qZA()()),2&r){var i=n.MAs(3);n.Udp("left",e.leftPosition)("top",e.topPosition),n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(3),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),n.xp6(1),n.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),n.xp6(1),n.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),n.xp6(1),n.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},directives:[Pa,ss,Ct.O5,SD,VD,YD,GD,qD,KD,JD,QD,$D,eA,tA,nA,rA,oA,sA,lA,cA,fA,hA,mA,_A,gA,vA,yA,CA,wA,kA,MA,SA,xA,AA,OA,IA,PA,RA],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 mm=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.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)}});mm.\u0275fac=function(r){return new(r||mm)},mm.\u0275prov=n.Yz7({token:mm,factory:mm.\u0275fac,providedIn:"root"});var zNe={provide:mm,deps:[[new n.FiY,new n.tp0,mm]],useFactory:function jNe(t){return t||new mm}},VNe=new n.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),YNe=(0,ln.Id)((0,ln.dB)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),_N=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;if((0,j.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.page=new n.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,f=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=f&&(s._hidePageSize=f),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,V.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,Un.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,Un.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,Un.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,Un.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,Un.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,Un.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}(YNe);_N.\u0275fac=function(r){n.$Z()},_N.\u0275dir=n.lG2({type:_N,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[n.qOj]});var ed=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,V.Z)(e)}(_N);ed.\u0275fac=function(r){return new(r||ed)(n.Y36(mm),n.Y36(n.sBO),n.Y36(VNe,8))},ed.\u0275cmp=n.Xpm({type:ed,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[n.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","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&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,FNe,5,3,"div",2),n.TgZ(3,"div",3)(4,"div",4),n._uU(5),n.qZA(),n.YNc(6,UNe,3,5,"button",5),n.TgZ(7,"button",6),n.NdJ("click",function(){return e.previousPage()}),n.O4$(),n.TgZ(8,"svg",7),n._UZ(9,"path",8),n.qZA()(),n.kcU(),n.TgZ(10,"button",9),n.NdJ("click",function(){return e.nextPage()}),n.O4$(),n.TgZ(11,"svg",7),n._UZ(12,"path",10),n.qZA()(),n.YNc(13,HNe,3,5,"button",11),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("ngIf",!e.hidePageSize),n.xp6(3),n.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),n.xp6(1),n.Q6J("ngIf",e.showFirstLastButtons),n.xp6(1),n.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),n.uIk("aria-label",e._intl.previousPageLabel),n.xp6(3),n.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),n.uIk("aria-label",e._intl.nextPageLabel),n.xp6(3),n.Q6J("ngIf",e.showFirstLastButtons))},directives:[Fn.KE,Oi.gD,ln.ey,Tn,Ct.O5,Ct.sg,vi],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{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0});var tk=(0,V.Z)(function t(){(0,j.Z)(this,t)});tk.\u0275fac=function(r){return new(r||tk)},tk.\u0275mod=n.oAB({type:tk}),tk.\u0275inj=n.cJS({providers:[zNe],imports:[[Ct.ez,Fh,Oi.LD,Gy,ln.BQ]]});var GNe=m(1452),nk=function(){function t(r){(0,j.Z)(this,t),this.dialogRef=r}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),t}();function qNe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function KNe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.hij("Console type: ",e.appliance.qemu.console_type,"")}}nk.\u0275fac=function(r){return new(r||nk)(n.Y36(Ar))},nk.\u0275cmp=n.Xpm({type:nk,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&&(n.TgZ(0,"span"),n._uU(1),n.qZA(),n.TgZ(2,"div",0)(3,"button",1),n.NdJ("click",function(){return e.onNoClick()}),n._uU(4,"No"),n.qZA(),n.TgZ(5,"button",2),n.NdJ("click",function(){return e.onYesClick()}),n._uU(6," Yes "),n.qZA()()),2&r&&(n.xp6(1),n.Oqu(e.confirmationMessage))},directives:[Zr,Tn],styles:[""]});var LA=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),t}();LA.\u0275fac=function(r){return new(r||LA)(n.Y36(Ar),n.Y36(na))},LA.\u0275cmp=n.Xpm({type:LA,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2),n.qZA()(),n.TgZ(3,"div",2)(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"div"),n._uU(7),n.qZA(),n.TgZ(8,"div"),n._uU(9),n.qZA(),n.YNc(10,qNe,2,1,"div",3),n.YNc(11,KNe,2,1,"div",3),n.qZA(),n.TgZ(12,"div",4)(13,"button",5),n.NdJ("click",function(){return e.onNoClick()}),n._uU(14,"Close"),n.qZA()()),2&r&&(n.xp6(2),n.Oqu(e.appliance.name),n.xp6(3),n.hij("Vendor: ",e.appliance.vendor_name,""),n.xp6(2),n.hij("Status: ",e.appliance.status,""),n.xp6(2),n.hij("Maintainer: ",e.appliance.maintainer,""),n.xp6(1),n.Q6J("ngIf",e.appliance.qemu),n.xp6(1),n.Q6J("ngIf",e.appliance.qemu))},directives:[Vr,Ju,Ct.O5,Zr,Tn],encapsulation:2});var JNe=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function QNe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template name is required"),n.qZA())}function XNe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template name is incorrect"),n.qZA())}function $Ne(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Template with this name exists"),n.qZA())}var eBe=function(r){return{"is-invalid":r}},Rg=function(){function t(r,e,i,o,a,s,l,u){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new ne.NI(i,[ne.kI.required,this.templateNameValidator.get],[JNe(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()}}]),t}();Rg.\u0275fac=function(r){return new(r||Rg)(n.Y36(Ar),n.Y36(kr),n.Y36(ri),n.Y36($n),n.Y36(ne.qu),n.Y36(Cu),n.Y36(Gd),n.Y36(na))},Rg.\u0275cmp=n.Xpm({type:Rg,selectors:[["app-template-name-dialog"]],features:[n._Bn([Cu])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Please enter name for the new template"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(5,QNe,2,0,"mat-error",4),n.YNc(6,XNe,2,0,"mat-error",4),n.YNc(7,$Ne,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"div",5)(9,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(10,"Cancel"),n.qZA(),n.TgZ(11,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(12," Add template "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.templateNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,eBe,null==e.form.templateName?null:e.form.templateName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Zr,Tn],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var F0=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.N.current_version,"/images/upload/").concat(o,"?allow_raw_image=true")}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),t}();F0.\u0275fac=function(r){return new(r||F0)(n.LFG(Wo.zw))},F0.\u0275prov=n.Yz7({token:F0,factory:F0.\u0275fac});function nBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",3),n.NdJ("@arrowPosition.start",function(){return n.CHM(e),n.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return n.CHM(e),n.oxw()._disableViewStateAnimation=!1}),n._UZ(1,"div",4),n.TgZ(2,"div",5),n._UZ(3,"div",6)(4,"div",7)(5,"div",8),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),n.xp6(2),n.Q6J("@indicator",i._getArrowDirectionState()),n.xp6(1),n.Q6J("@leftPointer",i._getArrowDirectionState()),n.xp6(1),n.Q6J("@rightPointer",i._getArrowDirectionState())}}var Lg=ln.mZ.ENTERING+" "+ln.yN.STANDARD_CURVE,rk={indicator:(0,rn.X$)("indicator",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"translateY(0px)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"translateY(10px)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Lg))]),leftPointer:(0,rn.X$)("leftPointer",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"rotate(-45deg)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"rotate(45deg)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Lg))]),rightPointer:(0,rn.X$)("rightPointer",[(0,rn.SB)("active-asc, asc",(0,rn.oB)({transform:"rotate(45deg)"})),(0,rn.SB)("active-desc, desc",(0,rn.oB)({transform:"rotate(-45deg)"})),(0,rn.eR)("active-asc <=> active-desc",(0,rn.jt)(Lg))]),arrowOpacity:(0,rn.X$)("arrowOpacity",[(0,rn.SB)("desc-to-active, asc-to-active, active",(0,rn.oB)({opacity:1})),(0,rn.SB)("desc-to-hint, asc-to-hint, hint",(0,rn.oB)({opacity:.54})),(0,rn.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,rn.oB)({opacity:0})),(0,rn.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,rn.jt)("0ms")),(0,rn.eR)("* <=> *",(0,rn.jt)(Lg))]),arrowPosition:(0,rn.X$)("arrowPosition",[(0,rn.eR)("* => desc-to-hint, * => desc-to-active",(0,rn.jt)(Lg,(0,rn.F4)([(0,rn.oB)({transform:"translateY(-25%)"}),(0,rn.oB)({transform:"translateY(0)"})]))),(0,rn.eR)("* => hint-to-desc, * => active-to-desc",(0,rn.jt)(Lg,(0,rn.F4)([(0,rn.oB)({transform:"translateY(0)"}),(0,rn.oB)({transform:"translateY(25%)"})]))),(0,rn.eR)("* => asc-to-hint, * => asc-to-active",(0,rn.jt)(Lg,(0,rn.F4)([(0,rn.oB)({transform:"translateY(25%)"}),(0,rn.oB)({transform:"translateY(0)"})]))),(0,rn.eR)("* => hint-to-asc, * => active-to-asc",(0,rn.jt)(Lg,(0,rn.F4)([(0,rn.oB)({transform:"translateY(0)"}),(0,rn.oB)({transform:"translateY(-25%)"})]))),(0,rn.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,rn.oB)({transform:"translateY(0)"})),(0,rn.SB)("hint-to-desc, active-to-desc, desc",(0,rn.oB)({transform:"translateY(-25%)"})),(0,rn.SB)("hint-to-asc, active-to-asc, asc",(0,rn.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,rn.X$)("allowChildren",[(0,rn.eR)("* <=> *",[(0,rn.IO)("@*",(0,rn.pV)(),{optional:!0})])])};var _m=(0,V.Z)(function t(){(0,j.Z)(this,t),this.changes=new qn.xQ});_m.\u0275fac=function(r){return new(r||_m)},_m.\u0275prov=n.Yz7({token:_m,factory:_m.\u0275fac,providedIn:"root"});var oBe={provide:_m,deps:[[new n.FiY,new n.tp0,_m]],useFactory:function iBe(t){return t||new _m}},aBe=new n.OlP("MAT_SORT_DEFAULT_OPTIONS"),sBe=(0,ln.dB)((0,ln.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}())),td=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new qn.xQ,o.start="asc",o._direction="",o.sortChange=new n.vpe,o}return(0,V.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,Un.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?void 0:l.disableClear),f=function lBe(t,r){var e=["asc","desc"];return"desc"==t&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=f.indexOf(this.direction)+1;return h>=f.length&&(h=0),f[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(sBe);td.\u0275fac=function(r){return new(r||td)(n.Y36(aBe,8))},td.\u0275dir=n.lG2({type:td,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:[n.qOj,n.TTD]});var uBe=(0,ln.Id)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),gm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this))._intl=i,h._changeDetectorRef=o,h._sort=a,h._columnDef=s,h._focusMonitor=l,h._elementRef=u,h._ariaDescriber=f,h._showIndicatorHint=!1,h._viewState={},h._arrowDirection="",h._disableViewStateAnimation=!1,h.arrowPosition="after",h._sortActionDescription="Sort",h._handleStateChanges(),h}return(0,V.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,Un.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===Gr.L_||o.keyCode===Gr.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,To.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}(uBe);gm.\u0275fac=function(r){return new(r||gm)(n.Y36(_m),n.Y36(n.sBO),n.Y36(td,8),n.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),n.Y36(Ai.tE),n.Y36(n.SBq),n.Y36(Ai.$s,8))},gm.\u0275cmp=n.Xpm({type:gm,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&n.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&&(n.uIk("aria-sort",e._getAriaSortAttribute()),n.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:[n.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&&(n.F$t(),n.TgZ(0,"div",0)(1,"div",1),n.Hsn(2),n.qZA(),n.YNc(3,nBe,6,6,"div",2),n.qZA()),2&r&&(n.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),n.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),n.xp6(3),n.Q6J("ngIf",e._renderArrow()))},directives:[Ct.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-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}\n"],encapsulation:2,data:{animation:[rk.indicator,rk.leftPointer,rk.rightPointer,rk.arrowOpacity,rk.arrowPosition,rk.allowChildren]},changeDetection:0});var ik=(0,V.Z)(function t(){(0,j.Z)(this,t)});ik.\u0275fac=function(r){return new(r||ik)},ik.\u0275mod=n.oAB({type:ik}),ik.\u0275inj=n.cJS({providers:[oBe],imports:[[Ct.ez,ln.BQ]]});var ZA=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),t}();ZA.\u0275fac=function(r){return new(r||ZA)},ZA.\u0275pipe=n.Yjl({name:"datasourcefilter",type:ZA,pure:!0});var cBe=["stepper"];function dBe(t,r){1&t&&n._uU(0,"Please select how you want to create new template")}function fBe(t,r){if(1&t&&n._uU(0),2&t){var e=n.oxw();n.Oqu(e.actionTitle)}}function pBe(t,r){if(1&t&&(n.TgZ(0,"mat-option",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}function hBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}function mBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function _Be(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Emulator "),n.qZA())}function gBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.emulator," ")}}function vBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Vendor "),n.qZA())}function yBe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.vendor_name," ")}}function bBe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function CBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",34)(1,"button",35),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().install(a)}),n.TgZ(2,"mat-icon",36),n._uU(3,"archive"),n.qZA()(),n.TgZ(4,"button",37),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().showInfo(a)}),n.TgZ(5,"mat-icon",38),n._uU(6,"info"),n.qZA()()()}}function wBe(t,r){1&t&&n._UZ(0,"mat-header-row")}function kBe(t,r){1&t&&n._UZ(0,"mat-row")}function TBe(t,r){if(1&t&&n._uU(0),2&t){var e=n.oxw(2);n.Oqu(e.secondActionTitle)}}function EBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function MBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function SBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,EBe,3,0,"span",32),n.YNc(5,MBe,3,0,"span",32),n.TgZ(6,"input",46,47),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.bios_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.bios_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.bios_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function xBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function DBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function ABe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,xBe,3,0,"span",32),n.YNc(5,DBe,3,0,"span",32),n.TgZ(6,"input",46,51),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.hda_disk_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.hda_disk_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.hda_disk_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function OBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function IBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function PBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,OBe,3,0,"span",32),n.YNc(5,IBe,3,0,"span",32),n.TgZ(6,"input",46,52),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.hdb_disk_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.hdb_disk_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.hdb_disk_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function RBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",49),n._uU(2,"check"),n.qZA()())}function LBe(t,r){1&t&&(n.TgZ(0,"span")(1,"mat-icon",50),n._uU(2,"close"),n.qZA()())}function ZBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",45)(1,"span"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n.YNc(4,RBe,3,0,"span",32),n.YNc(5,LBe,3,0,"span",32),n.TgZ(6,"input",46,53),n.NdJ("change",function(s){n.CHM(e);var l=n.oxw().$implicit;return n.oxw(3).importImage(s,l.images.cdrom_image)}),n.qZA(),n.TgZ(8,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(7).click()}),n._uU(9,"Import"),n.qZA(),n.TgZ(10,"button",48),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().$implicit;return n.oxw(3).downloadImageFromVersion(s.images.cdrom_image)}),n._uU(11," Download "),n.qZA()()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw(3);n.xp6(2),n.hij(" ",i.images.cdrom_image," "),n.xp6(2),n.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),n.xp6(1),n.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),n.xp6(1),n.Q6J("uploader",o.uploaderImage)}}function NBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",42)(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createQemuTemplateFromVersion(l)}),n._uU(6," Create "),n.qZA()()(),n.YNc(7,SBe,12,4,"div",44),n.YNc(8,ABe,12,4,"div",44),n.YNc(9,PBe,12,4,"div",44),n.YNc(10,ZBe,12,4,"div",44),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.AsE("",o.applianceToInstall.name," version ",i.name,""),n.xp6(4),n.Q6J("ngIf",i.images.bios_image),n.xp6(1),n.Q6J("ngIf",i.images.hda_disk_image),n.xp6(1),n.Q6J("ngIf",i.images.hdb_disk_image),n.xp6(1),n.Q6J("ngIf",i.images.cdrom_image)}}function BBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"div"),n.YNc(8,NBe,11,6,"div",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.versions)}}function FBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).createDockerTemplate()}),n._uU(2," Create docker template "),n.qZA()()}}function UBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"input",46,51),n.NdJ("change",function(s){var u=n.CHM(e).$implicit;return n.oxw(3).importImage(s,u.filename)}),n.qZA(),n.TgZ(7,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(6).click()}),n._uU(8,"Import"),n.qZA(),n.TgZ(9,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createIosTemplate(l)}),n._uU(10," Create "),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.hij(" ",i.filename," "),n.xp6(2),n.Q6J("uploader",o.uploaderImage)}}function HBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-list"),n.YNc(8,UBe,11,2,"mat-list-item",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.images)}}function jBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div")(5,"input",46,51),n.NdJ("change",function(s){var u=n.CHM(e).$implicit;return n.oxw(3).importImage(s,u.filename)}),n.qZA(),n.TgZ(7,"button",48),n.NdJ("click",function(){return n.CHM(e),n.MAs(6).click()}),n._uU(8,"Import"),n.qZA(),n.TgZ(9,"button",43),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw(3).createIouTemplate(l)}),n._uU(10," Create "),n.qZA()()()()}if(2&t){var i=r.$implicit,o=n.oxw(3);n.xp6(3),n.hij(" ",i.filename," "),n.xp6(2),n.Q6J("uploader",o.uploaderImage)}}function zBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div"),n._uU(2," Install required files "),n.TgZ(3,"button",39),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).refreshImages()}),n.TgZ(4,"mat-icon",40),n._uU(5,"refresh"),n.qZA()(),n._UZ(6,"br"),n.TgZ(7,"mat-list"),n.YNc(8,jBe,11,2,"mat-list-item",41),n.qZA()()()}if(2&t){var i=n.oxw(2);n.xp6(8),n.Q6J("ngForOf",i.applianceToInstall.images)}}function WBe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-step"),n.YNc(1,TBe,1,1,"ng-template",3),n.TgZ(2,"mat-card",9),n.YNc(3,BBe,9,1,"div",32),n.YNc(4,FBe,3,0,"div",32),n.YNc(5,HBe,9,1,"div",32),n.YNc(6,zBe,9,1,"div",32),n.qZA(),n.TgZ(7,"div")(8,"button",30),n._uU(9,"Back"),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return n.CHM(e),n.oxw().onCloseClick()}),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.qemu),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.docker),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.dynamips),n.xp6(1),n.Q6J("ngIf",i.applianceToInstall.iou)}}var VBe=function(){return{standalone:!0}},YBe=function(){return[5,10,20,50,100]},ok=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G,q){(0,j.Z)(this,t),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=f,this.dialog=h,this.computeService=v,this.changeDetectorRef=C,this.progressService=B,this.snackBar=G,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,V.Z)(t,[{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 _w(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 _w(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new eg({}),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({}),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(as.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 f=JSON.parse(l.result);f.docker&&(u="docker"),f.dynamips&&(u="dynamips"),f.iou&&(u="iou"),f.qemu&&(u="qemu");var h=i.applianceService.getUploadPath(i.controller,u,a);i.uploader.queue.forEach(function(C){return C.url=h});var v=i.uploader.queue[0];v.options&&(v.options.disableMultipart=!0),v.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(v)},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 _w(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?Qj(o.name,a.name,s):"emulator"===e.active?Qj(o.emulator,a.emulator,s):"vendor"===e.active?Qj(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(LA,{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(nk,{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 f=i.applianceService.getUploadPath(i.controller,u,a);i.uploaderImage.queue.forEach(function(v){return v.url=f});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(nk,{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 jH;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.port_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ms(),o.path=e.filename,o.template_type="iou";var a=this.dialog.open(Rg,{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 HH;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.port_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ms(),o.image=e.filename,o.template_type="dynamips";var a=this.dialog.open(Rg,{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 UH;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.port_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=ms(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(Rg,{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 zH;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.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ms(),o.hda_disk_image=e.images.hda_disk_image,o.hdb_disk_image=e.images.hdb_disk_image,o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(Rg,{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 GNe.ArrayBuffer,u=new FileReader,f=0;function h(v){var C=Math.min(e.size,v+s);u.readAsArrayBuffer(e.slice(v,C))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(v){l.append(v.target.result),(f+=s)<e.size?h(f):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(qh,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),t}();function Qj(t,r,e){return((t=t.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}ok.\u0275fac=function(r){return new(r||ok)(n.Y36(Ar),n.Y36(F0),n.Y36(n.sBO),n.Y36($n),n.Y36(gu),n.Y36(Uc),n.Y36(zc),n.Y36(Wc),n.Y36(Gd),n.Y36(ri),n.Y36(Yd.X),n.Y36(n.sBO),n.Y36(ul),n.Y36(Fc),n.Y36(jc))},ok.\u0275cmp=n.Xpm({type:ok,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(ed,7),n.Gf(cBe,7)),2&r)&&(n.iGM(i=n.CRH())&&(e.paginator=i.first),n.iGM(i=n.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",""]],template:function(r,e){if(1&r){var i=n.EpF();n.TgZ(0,"h1",0),n._uU(1,"Add new template"),n.qZA(),n.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),n.YNc(5,dBe,1,0,"ng-template",3),n.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),n.NdJ("click",function(){return e.setAction("install")}),n._uU(8,"Install new appliance from the GNS controller"),n.qZA(),n._UZ(9,"br"),n.TgZ(10,"mat-radio-button",6),n.NdJ("click",function(){return e.setAction("import")}),n._uU(11,"Import an appliance file"),n.qZA()(),n.TgZ(12,"div")(13,"button",7),n._uU(14,"Next"),n.qZA(),n.TgZ(15,"button",8),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(16,"Cancel"),n.qZA()()(),n.TgZ(17,"mat-step"),n.YNc(18,fBe,1,1,"ng-template",3),n.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),n.NdJ("ngModelChange",function(a){return e.searchText=a}),n.qZA()(),n.TgZ(23,"mat-select",13),n.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),n.YNc(24,pBe,2,2,"mat-option",14),n.qZA()(),n.TgZ(25,"mat-table",15,16),n.NdJ("matSortChange",function(a){return e.sortData(a)}),n.ALo(27,"datasourcefilter"),n.ynx(28,17),n.YNc(29,hBe,2,0,"mat-header-cell",18),n.YNc(30,mBe,2,1,"mat-cell",19),n.BQk(),n.ynx(31,20),n.YNc(32,_Be,2,0,"mat-header-cell",18),n.YNc(33,gBe,2,1,"mat-cell",19),n.BQk(),n.ynx(34,21),n.YNc(35,vBe,2,0,"mat-header-cell",18),n.YNc(36,yBe,2,1,"mat-cell",19),n.BQk(),n.ynx(37,22),n.YNc(38,bBe,2,0,"mat-header-cell",18),n.YNc(39,CBe,7,0,"mat-cell",23),n.BQk(),n.YNc(40,wBe,1,0,"mat-header-row",24),n.YNc(41,kBe,1,0,"mat-row",25),n.qZA(),n._UZ(42,"mat-paginator",26),n.qZA(),n.TgZ(43,"mat-card",9)(44,"input",27,28),n.NdJ("change",function(a){return e.addAppliance(a)}),n.qZA(),n.TgZ(46,"button",29),n.NdJ("click",function(){return n.CHM(i),n.MAs(45).click()}),n._uU(47," Click to import appliance "),n.qZA()(),n.TgZ(48,"div")(49,"button",30),n._uU(50,"Back"),n.qZA(),n.TgZ(51,"button",31),n.NdJ("click",function(){return e.updateAppliances()}),n._uU(52," Update from online registry "),n.qZA(),n.TgZ(53,"button",8),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(54,"Cancel"),n.qZA()()(),n.YNc(55,WBe,12,5,"mat-step",32),n.qZA()}2&r&&(n.xp6(2),n.Q6J("linear",!1),n.xp6(17),n.Q6J("hidden","install"!==e.action),n.xp6(3),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngModelOptions",n.DdM(17,VBe))("ngModel",e.category),n.xp6(1),n.Q6J("ngForOf",e.categories),n.xp6(1),n.Q6J("dataSource",n.xi3(27,14,e.dataSource,e.searchText)),n.xp6(15),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(18,YBe)),n.xp6(1),n.Q6J("hidden","install"===e.action),n.xp6(1),n.Q6J("uploader",e.uploader),n.xp6(7),n.Q6J("hidden","install"!==e.action),n.xp6(4),n.Q6J("ngIf",e.applianceToInstall))},directives:[Vr,Qu,Hc,Yh,_s,Ys,Tn,Aw,Si,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Oi.gD,Ct.sg,ln.ey,ca,td,aa,fa,Sa,da,xa,vi,Vn,Da,Oa,Aa,Ia,ed,Zc,Ow,Ct.O5,Hh,os],pipes:[ZA],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,rn.X$)("detailExpand",[(0,rn.SB)("collapsed",(0,rn.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var GBe=m(2033),qBe='<?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">',U0_xmlns="http://www.w3.org/2000/xmlns/",U0_xlink="http://www.w3.org/1999/xlink",U0_svg="http://www.w3.org/2000/svg",gie="untitled";function JBe(){var t=document.createElementNS(U0_svg,"svg");document.body.appendChild(t),t.style.all="initial";var r=getComputedStyle(t);return document.body.removeChild(t),t=null,r}function XBe(t,r){function e(s){for(var u,f,l=getComputedStyle(s),h="",v=0,C=l.length;v<C;v++)u=l[v],(f=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(f,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(f){if(f&&f.hasChildNodes())for(var h=f.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(t),a=o.length;a--;)e(o[a])}function $Be(t){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(" "),t.prepend(r)}var eFe=function QBe(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(t instanceof SVGElement))throw new Error("SVG element is required");t.setAttribute("version","1.1"),t.removeAttribute("xmlns"),t.removeAttribute("xlink"),t.hasAttributeNS(U0_xmlns,"xmlns")||t.setAttributeNS(U0_xmlns,"xmlns",U0_svg),t.hasAttributeNS(U0_xmlns,"xmlns:xlink")||t.setAttributeNS(U0_xmlns,"xmlns:xlink",U0_xlink),"inline"===i?XBe(t,JBe()):"internal"===i&&$Be(t);var o=(new XMLSerializer).serializeToString(t),a=t.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:t.getAttribute("class"),id:t.getAttribute("id"),name:t.getAttribute("name"),childElementCount:t.childElementCount,source:qBe+o};return s};function nFe(t,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",t),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var iFe=function rFe(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gie,e=URL.createObjectURL(new Blob([t.source],{type:"text/xml"}));nFe("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var lk,yN,sFe=function(r,e,i){return iFe(eFe(r,i),e||function tFe(t){if(!(t instanceof SVGElement))throw new Error("SVG Element is required");return t.getAttribute("id")||t.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||gie}(r))},ak={UKNOWN:"Unknown"},Xj={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:ak.UKNOWN},vN={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")},sk={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"),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")},Zg={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:ak.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"},vie=[Zg.PS4,Zg.CHROME_BOOK,Zg.MAC,Zg.DELL,Zg.ASUS,Zg.UNKNOWN],lFe={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:ak.UKNOWN},uFe={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:ak.UKNOWN.toLowerCase()},yie={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/},dFe=Object.assign(Object.assign(Object.assign(Object.assign({},vN),sk),yie),{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/]}}]}}),$j={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)/},ez={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/},fFe=Object.keys($j).reduce(function(t,r){return t[r]=$j[r],t},{}),bie=Object.keys(ez).reduce(function(t,r){return t[Xj[r]]=ez[r],t},{}),xp=Object.freeze({__proto__:null,GENERAL:ak,BROWSERS:Xj,MOBILES_RE:vN,TABLETS_RE:sk,DEVICES:Zg,DESKTOP_DEVICES:vie,OS:lFe,OS_VERSIONS:uFe,OS_RE:yie,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:dFe,OS_VERSIONS_RE_MAP:$j,BROWSER_VERSIONS_RE_MAP:ez,OS_VERSIONS_RE:fFe,BROWSER_VERSIONS_RE:bie}),pFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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}}]),t}();!function(t){t.Mobile="mobile",t.Tablet="tablet",t.Desktop="desktop",t.Unknown="unknown"}(lk||(lk={})),function(t){t.Portrait="portrait",t.Landscape="landscape"}(yN||(yN={}));var tz="iPad",uk=function(){function t(r){(0,j.Z)(this,t),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new pFe,this.deviceType="",this.orientation="",(0,Ct.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,V.Z)(t,[{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(xp[l.const]).reduce(function(u,f){return"device"===xp[l.const][f]&&(0,Ct.NF)(e.platformId)&&(e.reTree.test(e.userAgent,sk[tz])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[xp[l.const][f]]=tz,Object):(u[xp[l.const][f]]=e.reTree.test(i,xp["".concat(l.const,"_RE")][f]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(xp[l.const]).map(function(u){return xp[l.const][u]}).reduce(function(u,f){return"device"===l.prop&&u===xp[l.const].ANDROID?e[l.prop][f]?f:u:u===xp[l.const].UNKNOWN&&e[l.prop][f]?f:u},xp[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==Xj.UNKNOWN){var a=bie[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?yN.Landscape:yN.Portrait:this.orientation=ak.UKNOWN,this.deviceType=this.isTablet()?lk.Tablet:this.isMobile(this.userAgent)?lk.Mobile:this.isDesktop(this.userAgent)?lk.Desktop:lk.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(vN).find(function(a){return e.reTree.test(i,vN[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,Ct.NF)(this.platformId)&&(this.reTree.test(this.userAgent,sk[tz])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(sk).find(function(a){return!!e.reTree.test(i,sk[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==Zg.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&vie.indexOf(this.device)>-1}}]),t}();function hFe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Name for screenshot is required"),n.qZA())}function mFe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Entered name is incorrect"),n.qZA())}uk.\u0275fac=function(r){return new(r||uk)(n.LFG(n.Lbi))},uk.\u0275prov=n.Yz7({token:uk,factory:uk.\u0275fac,providedIn:"root"});var _Fe=function(r){return{"is-invalid":r}},NA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.NI("screenshot-".concat(Date.now()),[ne.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,V.Z)(t,[{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)}}]),t}();NA.\u0275fac=function(r){return new(r||NA)(n.Y36(Ar),n.Y36($n),n.Y36(ne.qu),n.Y36(sl),n.Y36(uk))},NA.\u0275cmp=n.Xpm({type:NA,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&&(n.TgZ(0,"h1",0),n._uU(1,"Take a screenshot"),n.qZA(),n.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),n.NdJ("click",function(){return e.setFiletype("svg")}),n._uU(4,"SVG"),n.qZA(),n.TgZ(5,"mat-radio-button",3),n.NdJ("click",function(){return e.setFiletype("png")}),n._uU(6,"PNG"),n.qZA()(),n.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),n.NdJ("keydown",function(o){return e.onKeyDown(o)}),n.qZA(),n.YNc(10,hFe,2,0,"mat-error",7),n.YNc(11,mFe,2,0,"mat-error",7),n.qZA(),n.TgZ(12,"div",8)(13,"button",9),n.NdJ("click",function(){return e.onNoClick()}),n._uU(14,"Cancel"),n.qZA(),n.TgZ(15,"button",10),n.NdJ("click",function(){return e.onAddClick()}),n._uU(16,"Take a screenshot"),n.qZA()()()),2&r&&(n.xp6(5),n.Q6J("disabled",!e.isPngAvailable),n.xp6(2),n.Q6J("formGroup",e.nameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(5,_Fe,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),n.xp6(1),n.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)),n.xp6(1),n.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)))},directives:[Vr,_s,Ys,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Zr,Tn],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var H0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new M0;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}}]),t}();H0.\u0275fac=function(r){return new(r||H0)},H0.\u0275prov=n.Yz7({token:H0,factory:H0.\u0275fac});var j0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new sa;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}}]),t}();j0.\u0275fac=function(r){return new(r||j0)},j0.\u0275prov=n.Yz7({token:j0,factory:j0.\u0275fac});var z0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new dm;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e}}]),t}();z0.\u0275fac=function(r){return new(r||z0)},z0.\u0275prov=n.Yz7({token:z0,factory:z0.\u0275fac});var W0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"getDrawingElement",value:function(){var e=new E0;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}}]),t}();W0.\u0275fac=function(r){return new(r||W0)},W0.\u0275prov=n.Yz7({token:W0,factory:W0.\u0275fac});var Ng=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new sm;return i.element=this.factory.getDrawingElement(),i}}]),t}();Ng.\u0275fac=function(r){return new(r||Ng)(n.LFG(H0),n.LFG(j0),n.LFG(z0),n.LFG(W0))},Ng.\u0275prov=n.Yz7({token:Ng,factory:Ng.\u0275fac});var BA=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new n.vpe}return(0,V.Z)(t,[{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()}}]),t}();function nz(){nz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}BA.\u0275fac=function(r){return new(r||BA)(n.Y36(ls),n.Y36(qa),n.Y36(Il),n.Y36(Ng),n.Y36($c))},BA.\u0275cmp=n.Xpm({type:BA,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[n.TTD],decls:0,vars:0,template:function(r,e){},styles:[""]});var Cie=function(r){return{selected:r}};function gFe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().addDrawing("line")}),n.O4$(),n.TgZ(1,"svg",13),n._UZ(2,"line",14),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(1,Cie,i.drawTools.isLineChosen))}}function vFe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().addDrawing("line")}),n.O4$(),n.TgZ(1,"svg",13),n._UZ(2,"line",15),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(1,Cie,i.drawTools.isLineChosen))}}var yFe=function(r,e){return{unmarkedLight:r,marked:e}},bFe=function(r){return{unmarkedLight:r}},ck=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.toolsService=r,this.mapSettingsService=e,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{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(NA,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.saveImage(o)})}},{key:"saveImage",value:function(e){return no(this,void 0,void 0,nz().mark(function i(){var o,a,s,l,u,f,h,v,C;return nz().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,f=u.split("--\x3e"),o[a]=f[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(v=document.createElement("div")).innerHTML=h,C=v.firstChild,GBe.saveSvgAsPng(C,"".concat(e.name,".png")),q.next=23;break;case 21:gi("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),sFe(gi("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:"changeLockValue",value:function(){this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked)}},{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(){}}]),t}();ck.\u0275fac=function(r){return new(r||ck)(n.Y36(Sp),n.Y36(dl),n.Y36(ls),n.Y36(cp),n.Y36(ri),n.Y36(qu.f))},ck.\u0275cmp=n.Xpm({type:ck,selectors:[["app-project-map-menu"]],inputs:{project:"project",controller:"controller"},decls:24,vars:15,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=n.EpF();n.TgZ(0,"button",0),n.NdJ("click",function(){return e.addDrawing("text")}),n.TgZ(1,"mat-icon",1),n._uU(2,"create"),n.qZA()(),n.TgZ(3,"input",2,3),n.NdJ("change",function(a){return e.uploadImageFile(a)}),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return n.CHM(i),n.MAs(4).click()}),n.TgZ(6,"mat-icon"),n._uU(7,"image"),n.qZA()(),n.TgZ(8,"button",5),n.NdJ("click",function(){return e.addDrawing("rectangle")}),n.TgZ(9,"mat-icon",1),n._uU(10,"crop_3_2"),n.qZA()(),n.TgZ(11,"button",6),n.NdJ("click",function(){return e.addDrawing("ellipse")}),n.TgZ(12,"mat-icon",1),n._uU(13,"panorama_fish_eye"),n.qZA()(),n.YNc(14,gFe,3,3,"button",7),n.YNc(15,vFe,3,3,"button",7),n.TgZ(16,"button",8),n.NdJ("click",function(){return e.changeLockValue()}),n.TgZ(17,"mat-icon",1),n._uU(18,"lock"),n.qZA()(),n.TgZ(19,"button",9),n.NdJ("click",function(){return e.takeScreenshot()}),n.TgZ(20,"mat-icon",1),n._uU(21,"photo_camera"),n.qZA()(),n.TgZ(22,"app-drawing-added",10),n.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),n.qZA(),n._UZ(23,"div",11)}2&r&&(n.xp6(1),n.Q6J("ngClass",e.getCssClassForIcon("text")),n.xp6(8),n.Q6J("ngClass",e.getCssClassForIcon("rectangle")),n.xp6(3),n.Q6J("ngClass",e.getCssClassForIcon("ellipse")),n.xp6(2),n.Q6J("ngIf",!e.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",e.isLightThemeEnabled),n.xp6(2),n.Q6J("ngClass",n.WLB(10,yFe,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),n.xp6(3),n.Q6J("ngClass",n.VKq(13,bFe,!e.isLocked&&e.isLightThemeEnabled)),n.xp6(2),n.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},directives:[Tn,vi,Vn,Ct.mk,Ct.O5,BA],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 CFe=["text"],FA=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,V.Z)(t,[{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=_n(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),t}();FA.\u0275fac=function(r){return new(r||FA)(n.Y36(Ar),n.Y36(Xl.Y),n.Y36(n.SBq),n.Y36(n.Qsj))},FA.\u0275cmp=n.Xpm({type:FA,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(CFe,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"h1",0),n._uU(1,"Project README"),n.qZA(),n._UZ(2,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onNoClick()}),n._uU(5,"Close"),n.qZA()())},directives:[Vr,Zr,Tn],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var Bg=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new n.vpe,this.linkNotificationEmitter=new n.vpe,this.drawingNotificationEmitter=new n.vpe,this.infoNotificationEmitter=new n.vpe,this.warningNotificationEmitter=new n.vpe,this.errorNotificationEmitter=new n.vpe}return(0,V.Z)(t,[{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)}}]),t}();Bg.\u0275fac=function(r){return new(r||Bg)(n.LFG(vs.G),n.LFG(pm.F),n.LFG(qa))},Bg.\u0275prov=n.Yz7({token:Bg,factory:Bg.\u0275fac});var wFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),kFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Dp=function(){function t(r,e,i){(0,j.Z)(this,t),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,V.Z)(t,[{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 kFe;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}}]),t}();Dp.\u0275fac=function(r){return new(r||Dp)(n.LFG(pp),n.LFG(ec),n.LFG(gs))},Dp.\u0275prov=n.Yz7({token:Dp,factory:Dp.\u0275fac});var TFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Fg=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new TFe;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}}]),t}();Fg.\u0275fac=function(r){return new(r||Fg)},Fg.\u0275prov=n.Yz7({token:Fg,factory:Fg.\u0275fac});var vm=function(){function t(r,e){(0,j.Z)(this,t),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new wFe;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}}]),t}();vm.\u0275fac=function(r){return new(r||vm)(n.LFG(Dp),n.LFG(Fg))},vm.\u0275prov=n.Yz7({token:vm,factory:vm.\u0275fac});var EFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),V0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new EFe;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}}]),t}();V0.\u0275fac=function(r){return new(r||V0)},V0.\u0275prov=n.Yz7({token:V0,factory:V0.\u0275fac});var MFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),SFe=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Ug=function(){function t(r){(0,j.Z)(this,t),this.mapLabelToLabel=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new SFe;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),t}();Ug.\u0275fac=function(r){return new(r||Ug)(n.LFG(Dp))},Ug.\u0275prov=n.Yz7({token:Ug,factory:Ug.\u0275fac});var Y0=function(){function t(r){(0,j.Z)(this,t),this.mapLinkNodeToMapLinkNode=r}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=this,o=new MFe;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}}]),t}();Y0.\u0275fac=function(r){return new(r||Y0)(n.LFG(Ug))},Y0.\u0275prov=n.Yz7({token:Y0,factory:Y0.\u0275fac});var bN=m(9740),G0=function(){function t(r){(0,j.Z)(this,t),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,V.Z)(t,[{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}}]),t}();G0.\u0275fac=function(r){return new(r||G0)(n.LFG(pp))},G0.\u0275prov=n.Yz7({token:G0,factory:G0.\u0275fac});var q0=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(as.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(as.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),t}();q0.\u0275fac=function(r){return new(r||q0)},q0.\u0275prov=n.Yz7({token:q0,factory:q0.\u0275fac});var xFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"d",value:function(e){var i,o,a,s,l,u,f,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===(f=null==e?void 0:e.target)||void 0===f?void 0:f.height)/2]],v=Zd();return v.moveTo(h[0][0],h[0][1]),v.lineTo(h[1][0],h[1][1]),v.toString()}}]),t}(),DFe=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,f=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*f[0],i.y+s/2+15*f[1]],v=[o.x-a/2-15*f[0],o.y-s/2-15*f[1]];return[[i.x,i.y],h,v,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=Zd();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()}}]),t}();function OFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"circle",3)),2&t){var e=n.oxw(2);n.uIk("cx",e.point.x)("cy",e.point.y)}}function IFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"rect",4)),2&t){var e=n.oxw(2);n.uIk("x",e.point.x-5)("y",e.point.y-5)}}function PFe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,OFe,1,2,"circle",1),n.YNc(2,IFe,1,2,"rect",2),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf","started"==e.status),n.xp6(1),n.Q6J("ngIf","stopped"==e.status)}}var dk=function(){function t(r,e){(0,j.Z)(this,t),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,V.Z)(t,[{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}}]),t}();dk.STOPPED_STATUS_RECT_WIDTH=10,dk.\u0275fac=function(r){return new(r||dk)(n.Y36(n.SBq),n.Y36(n.sBO))},dk.\u0275cmp=n.Xpm({type:dk,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&&n.YNc(0,PFe,3,2,"g",0),2&r&&n.Q6J("ngIf",e.status&&e.point&&e.direction)},directives:[Ct.O5],styles:[""]});var RFe=["textSvg"],UA=function(){function t(r,e,i,o){(0,j.Z)(this,t),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,V.Z)(t,[{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,")")}}}]),t}();UA.\u0275fac=function(r){return new(r||UA)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(An.H7),n.Y36(ec))},UA.\u0275cmp=n.Xpm({type:UA,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf(RFe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"g",0),n._UZ(1,"rect",1),n.TgZ(2,"text",2,3),n._uU(4),n.qZA()()),2&r&&(n.uIk("transform",e.transform),n.xp6(1),n.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),n.xp6(1),n.uIk("style",e.sanitizedStyle,n.Ckj)("x",e.borderSize)("y",-e.borderSize),n.xp6(2),n.hij(" ",e.text," "))},styles:[""]});var ZFe=["path"];function BFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",5,6)),2&t){var e=n.oxw();n.uIk("d",e.d)}}function FFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",7,6)),2&t){var e=n.oxw();n.uIk("d",e.d)}}function UFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),n.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 HFe(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),n.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 HA=function(){function t(r,e){(0,j.Z)(this,t),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new xFe,this.serialLinkStrategy=new DFe}return(0,V.Z)(t,[{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)}}]),t}();HA.\u0275fac=function(r){return new(r||HA)(n.Y36(yp),n.Y36(n.sBO))},HA.\u0275cmp=n.Xpm({type:HA,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf(ZFe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,BFe,2,1,"path",1),n.YNc(2,FFe,2,1,"path",2),n._UZ(3,"g",3)(4,"g",3),n.YNc(5,UFe,1,6,"g",4),n.YNc(6,HFe,1,6,"g",4),n.qZA()),2&r&&(n.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),n.xp6(1),n.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),n.xp6(1),n.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),n.xp6(1),n.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),n.xp6(1),n.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),n.xp6(1),n.Q6J("ngIf",e.showInterfaceLabels),n.xp6(1),n.Q6J("ngIf",e.showInterfaceLabels))},directives:[Ct.O5,dk,UA],styles:[""]});var wie=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.x=r,this.y=e,this.dx=i,this.dy=o}),fk=function(){function t(r){(0,j.Z)(this,t),this.elementRef=r,this.dragging=new n.vpe,this.dragged=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=fo.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(f){return f.preventDefault()});i.subscribe(function(f){e.posX=e.item.x,e.posY=e.item.y,e.startX=f.clientX,e.startY=f.clientY});var o=fo.y.fromEvent(document,"mouseup").do(function(f){f.preventDefault()}),a=fo.y.fromEvent(document,"mousemove").do(function(f){return f.stopPropagation()}),s=fo.y.fromEvent(document,"scroll").startWith({}),l=fo.y.combineLatest(a,s),u=i.mergeMap(function(f){return l.map(function(h){var v=(0,Ut.Z)(h,2),C=v[0];v[1];return C}).do(function(h){var v=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-v),e.item.y=Math.round(e.posY-C),e.dragging.emit(new wie(e.item.x,e.item.y,-v,-C))}).skipUntil(o.take(1).do(function(h){var v=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-v),e.item.y=Math.round(e.posY-C),e.dragged.emit(new wie(e.item.x,e.item.y,-v,-C))})).take(1)});this.draggable=u.subscribe(function(f){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),t}();fk.\u0275fac=function(r){return new(r||fk)(n.Y36(n.SBq))},fk.\u0275cmp=n.Xpm({type:fk,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&&(n.F$t(),n.Hsn(0))},styles:[""]});var WFe=["label"],VFe=["image"],pk=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,V.Z)(t,[{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 Yw(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+t.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-t.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),t}();pk.NODE_LABEL_MARGIN=3,pk.\u0275fac=function(r){return new(r||pk)(n.Y36(ec),n.Y36(gs),n.Y36(An.H7),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Jc))},pk.\u0275cmp=n.Xpm({type:pk,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(WFe,5),n.Gf(VFe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.label=i.first),n.iGM(i=n.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[n.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&&(n.O4$(),n.TgZ(0,"g",0)(1,"image",1,2),n.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),n.qZA(),n.TgZ(3,"text",3,4),n._uU(5),n.qZA()()),2&r&&(n.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),n.xp6(1),n.Q6J("app-draggable",e.node),n.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"),n.xp6(2),n.uIk("style",e.label_style,n.Ckj)("x",e.label_x)("y",e.label_y),n.xp6(2),n.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},directives:[fk],styles:[""],changeDetection:0});var jA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();jA.\u0275fac=function(r){return new(r||jA)(n.Y36(tc))},jA.\u0275cmp=n.Xpm({type:jA,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&&(n.O4$(),n._UZ(0,"ellipse",0)),2&r&&n.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)},styles:[""]});var zA=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}}]),t}();zA.\u0275fac=function(r){return new(r||zA)},zA.\u0275cmp=n.Xpm({type:zA,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&&(n.O4$(),n._UZ(0,"image",0)),2&r&&n.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)},styles:[""]});var WA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();WA.\u0275fac=function(r){return new(r||WA)(n.Y36(tc))},WA.\u0275cmp=n.Xpm({type:WA,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&&(n.O4$(),n._UZ(0,"line",0)),2&r)&&n.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)},styles:[""]});var VA=function(){function t(r){(0,j.Z)(this,t),this.qtDasharrayFixer=r}return(0,V.Z)(t,[{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}}]),t}();VA.\u0275fac=function(r){return new(r||VA)(n.Y36(tc))},VA.\u0275cmp=n.Xpm({type:VA,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:7,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(n.O4$(),n._UZ(0,"rect",0)),2&r&&n.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)},styles:[""]});var QFe=["text"];function $Fe(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"tspan",3),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.uIk("dy",0==i?"0em":"1.4em"),n.xp6(1),n.hij(" ",e," ")}}var hk=function(){function t(r,e){(0,j.Z)(this,t),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,V.Z)(t,[{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(t.MARGIN,", ").concat(i-t.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),t}();hk.MARGIN=4,hk.\u0275fac=function(r){return new(r||hk)(n.Y36(gs),n.Y36(An.H7))},hk.\u0275cmp=n.Xpm({type:hk,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&n.Gf(QFe,5),2&r)&&(n.iGM(i=n.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&&(n.O4$(),n.TgZ(0,"text",0,1),n.YNc(2,$Fe,2,2,"tspan",2),n.qZA()),2&r){var i=n.MAs(1);n.uIk("style",e.style,n.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),n.xp6(2),n.Q6J("ngForOf",e.lines)}},directives:[Ct.sg],styles:[""]});function t4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",6)),2&t){var e=n.oxw();n.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function n4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",7)),2&t){var e=n.oxw();n.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function r4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",8)),2&t){var e=n.oxw();n.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function i4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",9)),2&t){var e=n.oxw();n.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function o4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",10)),2&t){var e=n.oxw();n.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var YA=function(){function t(r,e,i){(0,j.Z)(this,t),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,V.Z)(t,[{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 Yw(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof sa:"image"===i?e instanceof lN:"line"===i?e instanceof E0:"rect"===i?e instanceof dm:"text"===i&&e instanceof M0)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),t}();YA.\u0275fac=function(r){return new(r||YA)(n.Y36(Ep),n.Y36(Il),n.Y36(n.sBO))},YA.\u0275cmp=n.Xpm({type:YA,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&&(n.O4$(),n.TgZ(0,"g",0),n.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),n.YNc(1,t4e,1,1,"g",1),n.YNc(2,n4e,1,1,"g",2),n.YNc(3,r4e,1,1,"g",3),n.YNc(4,i4e,1,1,"g",4),n.YNc(5,o4e,1,1,"g",5),n.qZA()),2&r&&(n.Q6J("app-draggable",e.drawing),n.uIk("transform",e.transformation),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),n.xp6(1),n.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},directives:[fk,Ct.O5,jA,zA,WA,VA,hk],styles:[""]});function s4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"path",2)),2&t){var e=n.oxw();n.uIk("d",e.d)}}var GA=function(){function t(r){(0,j.Z)(this,t),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=fo.y.fromEvent(this.svg,"mousedown").do(function(f){return f.preventDefault()});i.subscribe(function(f){f.target===e.svg&&(e.started=!0,e.startX=(null==f?void 0:f.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==f?void 0:f.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=fo.y.fromEvent(document,"mouseup").do(function(f){f.preventDefault()}),a=fo.y.fromEvent(document,"mousemove").do(function(f){return f.stopPropagation()}),s=fo.y.fromEvent(document,"scroll").startWith({}),l=fo.y.combineLatest([a,s]),u=i.mergeMap(function(f){return l.map(function(h){var v=(0,Ut.Z)(h,2),C=v[0];v[1];return C}).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(f){})}},{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 iie(o,a,s,l))}}]),t}();GA.\u0275fac=function(r){return new(r||GA)(n.Y36(n.sBO))},GA.\u0275cmp=n.Xpm({type:GA,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&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,s4e,1,1,"path",1),n.qZA()),2&r&&(n.xp6(1),n.Q6J("ngIf",e.visible))},directives:[Ct.O5],styles:[""]});var l4e=["svg"];function u4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",12)),2&t){var e=r.$implicit,i=n.oxw(2);n.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function c4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",13)),2&t){var e=r.$implicit,i=n.oxw(2);n.Q6J("app-node",e)("symbols",i.symbols)}}function d4e(t,r){if(1&t&&(n.O4$(),n._UZ(0,"g",14)),2&t){var e=r.$implicit;n.Q6J("app-drawing",e)}}function f4e(t,r){if(1&t&&(n.O4$(),n.TgZ(0,"g")(1,"g",6),n.YNc(2,u4e,1,2,"g",7),n.qZA(),n.TgZ(3,"g",8),n.YNc(4,c4e,1,2,"g",9),n.qZA(),n.TgZ(5,"g",10),n.YNc(6,d4e,1,1,"g",11),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Q6J("ngForOf",e.links),n.xp6(2),n.Q6J("ngForOf",e.nodes),n.xp6(2),n.Q6J("ngForOf",e.drawings)}}var qA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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,V.Z)(t,[{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 qs;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){}}]),t}();qA.\u0275fac=function(r){return new(r||qA)(n.Y36(bp),n.Y36(qs),n.Y36(Cp),n.Y36(wg),n.Y36(n.sBO),n.Y36(um),n.Y36(Og))},qA.\u0275cmp=n.Xpm({type:qA,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(l4e,5),2&r)&&(n.iGM(i=n.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&n.NdJ("resize",function(o){return e.onResize(o)},!1,n.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:[n.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&&(n.O4$(),n.TgZ(0,"svg",0,1)(2,"g"),n.YNc(3,f4e,7,3,"g",2),n.qZA(),n._UZ(4,"g",3),n.TgZ(5,"filter",4),n._UZ(6,"feColorMatrix",5),n.qZA()()),2&r){var i=n.MAs(1);n.uIk("width",e.width)("height",e.height),n.xp6(2),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngForOf",e.layers),n.xp6(1),n.Q6J("app-selection",i)}},directives:[Ct.sg,HA,pk,YA,GA],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var KA=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),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 ne.NI(1,[ne.kI.compose([ne.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new ne.NI(0,ne.kI.required),left:new ne.NI(0,ne.kI.required)})}return(0,V.Z)(t,[{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.")}}]),t}();KA.\u0275fac=function(r){return new(r||KA)(n.Y36(Ar),n.Y36(Gd),n.Y36(ne.qu),n.Y36(na),n.Y36($n),n.Y36(tf))},KA.\u0275cmp=n.Xpm({type:KA,selectors:[["app-template-list-dialog"]],decls:0,vars:0,template:function(r,e){},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 p4e(t,r){if(1&t&&(n.TgZ(0,"mat-option",11),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e," ")}}var CN=function(r,e){return{templateText:r,lightTemplateText:e}};function h4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+1])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,CN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+1].name)}}function m4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+2])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,CN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+2].name)}}function _4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",14)(1,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(3).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw(2).index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l+3])}),n._UZ(2,"img",16),n.qZA(),n.TgZ(3,"div",17),n._uU(4),n.qZA()()}if(2&t){var i=n.oxw(2).index,o=n.oxw();n.xp6(2),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(3,CN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i+3].name)}}function g4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"span",13)(1,"span",14)(2,"div",15),n.NdJ("dragStart",function(s){return n.CHM(e),n.oxw(2).dragStart(s)})("dragEnd",function(s){n.CHM(e);var l=n.oxw().index,u=n.oxw();return u.dragEnd(s,u.filteredTemplates[l])}),n._UZ(3,"img",16),n.qZA(),n.TgZ(4,"div",17),n._uU(5),n.qZA()(),n.YNc(6,h4e,5,6,"span",18),n.YNc(7,m4e,5,6,"span",18),n.YNc(8,_4e,5,6,"span",18),n.qZA()}if(2&t){var i=n.oxw().index,o=n.oxw();n.xp6(3),n.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),n.LSH),n.xp6(1),n.Q6J("ngClass",n.WLB(6,CN,!o.isLightThemeEnabled,o.isLightThemeEnabled)),n.xp6(1),n.Oqu(o.filteredTemplates[i].name),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+1]),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+2]),n.xp6(1),n.Q6J("ngIf",o.filteredTemplates[i+3])}}function v4e(t,r){if(1&t&&(n.TgZ(0,"mat-list-item"),n.YNc(1,g4e,9,9,"span",12),n.qZA()),2&t){var e=r.index;n.xp6(1),n.Q6J("ngIf",e%4==0)}}var kie=function(){return{standalone:!0}},JA=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new n.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,V.Z)(t,[{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(KA,{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()}}]),t}();JA.\u0275fac=function(r){return new(r||JA)(n.Y36(ri),n.Y36(Gd),n.Y36($d),n.Y36(cp),n.Y36(An.H7),n.Y36(qu.f),n.Y36(Ao.Xj))},JA.\u0275cmp=n.Xpm({type:JA,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 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&&(n.TgZ(0,"button",0)(1,"mat-icon"),n._uU(2,"add"),n.qZA()(),n.TgZ(3,"mat-menu",null,1)(5,"button",2),n.NdJ("click",function(){return e.openDialog()}),n.TgZ(6,"mat-icon"),n._uU(7,"add_to_queue"),n.qZA(),n.TgZ(8,"span"),n._uU(9,"Open dialog to configure"),n.qZA()(),n.TgZ(10,"mat-form-field",3),n.NdJ("click",function(a){return a.stopPropagation()}),n.TgZ(11,"input",4),n.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),n.qZA()(),n.TgZ(12,"mat-form-field",5),n.NdJ("click",function(a){return a.stopPropagation()}),n.TgZ(13,"mat-select",6),n.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),n.YNc(14,p4e,2,2,"mat-option",7),n.qZA()(),n.TgZ(15,"div",8)(16,"div",9),n.YNc(17,v4e,2,1,"mat-list-item",10),n.qZA()()()),2&r){var i=n.MAs(4);n.Q6J("matMenuTriggerFor",i),n.xp6(11),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(7,kie)),n.xp6(2),n.Q6J("ngModelOptions",n.DdM(8,kie))("ngModel",e.selectedType),n.xp6(1),n.Q6J("ngForOf",e.templateTypes),n.xp6(3),n.Q6J("ngForOf",e.filteredTemplates)}},directives:[Tn,vi,Pa,Vn,ss,Hr,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Oi.gD,Ct.sg,ln.ey,os,Ct.O5,ty,Ct.mk],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 QA=function(){function t(r,e){(0,j.Z)(this,t),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),t}();function rz(){rz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}QA.\u0275fac=function(r){return new(r||QA)(n.Y36(na),n.Y36(Ar))},QA.\u0275cmp=n.Xpm({type:QA,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),n._uU(3),n.qZA()()(),n._UZ(4,"mat-divider"),n.TgZ(5,"mat-dialog-content")(6,"p",3),n._uU(7),n.qZA()(),n.TgZ(8,"mat-dialog-actions",4)(9,"button",5),n._uU(10,"No"),n.qZA(),n.TgZ(11,"button",6),n.NdJ("click",function(){return e.confirmAction()}),n._uU(12,"Yes"),n.qZA()()),2&r&&(n.xp6(3),n.hij("Confirm ",e.confirmActionData.actionType," All"),n.xp6(4),n.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},directives:[t0.d,Ju,Zr,Tn,d0],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 XA=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f}return(0,V.Z)(t,[{key:"startConsoleForAllNodes",value:function(){return no(this,void 0,void 0,rz().mark(function e(){var i,o,a,s,l,u;return rz().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,cn.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(QA,{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()})}}]),t}();XA.\u0275fac=function(r){return new(r||XA)(n.Y36(ti),n.Y36(eu),n.Y36(vs.G),n.Y36($n),n.Y36(vr),n.Y36(hm.g),n.Y36(dl),n.Y36(sl),n.Y36(ri))},XA.\u0275cmp=n.Xpm({type:XA,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&&(n.TgZ(0,"div",0)(1,"button",1),n.NdJ("click",function(){return e.startConsoleForAllNodes()}),n.TgZ(2,"mat-icon"),n._uU(3,"web_asset"),n.qZA()(),n.TgZ(4,"button",2),n.NdJ("click",function(){return e.confirmControlsActions("start")}),n.TgZ(5,"mat-icon"),n._uU(6,"play_arrow"),n.qZA()(),n.TgZ(7,"button",3),n.NdJ("click",function(){return e.confirmControlsActions("suspend")}),n.TgZ(8,"mat-icon"),n._uU(9,"pause"),n.qZA()(),n.TgZ(10,"button",4),n.NdJ("click",function(){return e.confirmControlsActions("stop")}),n.TgZ(11,"mat-icon"),n._uU(12,"stop"),n.qZA()(),n.TgZ(13,"button",5),n.NdJ("click",function(){return e.confirmControlsActions("reload")}),n.TgZ(14,"mat-icon"),n._uU(15,"replay"),n.qZA()(),n.TgZ(16,"button",6),n.NdJ("click",function(){return e.confirmControlsActions("reset")}),n.TgZ(17,"mat-icon"),n._uU(18,"compare_arrows"),n.qZA()()())},directives:[Tn,vi,Vn],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var $A=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new eg({}),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 zH).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 jH).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.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new HH).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 UH).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(C){return C.url=h});var v=i.uploader.queue[0];i.uploader.uploadItem(v)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(as.N.current_version,"/").concat(i,"/images/").concat(o)}}]),t}();$A.\u0275fac=function(r){return new(r||$A)(n.Y36($n),n.Y36(Uc),n.Y36(gu),n.Y36(Wc),n.Y36(zc))},$A.\u0275cmp=n.Xpm({type:$A,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var K0=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"onCancelClick",value:function(){this.dialogRef.close(t.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),t}();K0.\u0275fac=function(r){return new(r||K0)(n.Y36(Ar),n.Y36(na))},K0.\u0275cmp=n.Xpm({type:K0,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&&(n.TgZ(0,"h1",0),n._uU(1,"Operation in progress"),n.qZA(),n.TgZ(2,"div",1),n._UZ(3,"mat-progress-bar",2),n.qZA(),n.TgZ(4,"div",3)(5,"button",4),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(6,"Cancel"),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("value",e.value))},directives:[Vr,Ju,m0,Zr,Tn],styles:[""]});var y4e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),ym=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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"),{})}}]),t}();ym.\u0275fac=function(r){return new(r||ym)(n.LFG(Wo.zw))},ym.\u0275prov=n.Yz7({token:ym,factory:ym.\u0275fac});var eO=function(){function t(r,e,i,o,a,s){var l=this;(0,j.Z)(this,t),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new y4e,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new ne.NI("",ne.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(f){l.snapshots.push(f.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,V.Z)(t,[{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()}}]),t}();eO.\u0275fac=function(r){return new(r||eO)(n.Y36(Ar),n.Y36(ne.qu),n.Y36($n),n.Y36(ym),n.Y36(vs.G),n.Y36(na))},eO.\u0275cmp=n.Xpm({type:eO,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&&(n.TgZ(0,"div",0)(1,"h1",1),n._uU(2,"Create snapshot"),n.qZA(),n.TgZ(3,"button",2),n.NdJ("click",function(){return e.onNoClick()}),n._uU(4," Go to snapshots "),n.qZA()(),n.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),n._UZ(8,"input",6),n.qZA()()(),n.TgZ(9,"div",7)(10,"button",8),n.NdJ("click",function(){return e.onNoClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",9),n.NdJ("click",function(){return e.onAddClick()}),n._uU(13,"Add"),n.qZA()()),2&r&&(n.xp6(3),n.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),n.xp6(3),n.Q6J("formGroup",e.inputForm))},directives:[Vr,Tn,ta,Ju,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Zr],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 Hg=function(){function t(r){(0,j.Z)(this,t),this.dialog=r}return(0,V.Z)(t,[{key:"open",value:function(){return this.dialog.open(K0,{width:"250px",autoFocus:!1,disableClose:!0})}}]),t}();Hg.\u0275fac=function(r){return new(r||Hg)(n.LFG(ri))},Hg.\u0275prov=n.Yz7({token:Hg,factory:Hg.\u0275fac});var tO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(eO,{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===K0.CANCELLED&&l.unsubscribe()})}})}}]),t}();tO.\u0275fac=function(r){return new(r||tO)(n.Y36(ri),n.Y36(ym),n.Y36(Hg),n.Y36($n))},tO.\u0275cmp=n.Xpm({type:tO,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&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.createSnapshotModal()}),n.TgZ(1,"mat-icon"),n._uU(2,"filter_none"),n.qZA()())},directives:[Tn,vi,Vn],styles:[""]});var b4e=(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function C4e(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",9),n._UZ(1,"rect",10),n.qZA())}function w4e(t,r){1&t&&(n.O4$(),n.TgZ(0,"svg",9),n._UZ(1,"rect",11),n.qZA())}function k4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw(2).chooseInterface(s)}),n.YNc(1,C4e,2,0,"svg",7),n.YNc(2,w4e,2,0,"svg",7),n.TgZ(3,"span",8),n._uU(4),n.qZA()()}if(2&t){var i=r.$implicit;n.Q6J("disabled",!i.available),n.xp6(1),n.Q6J("ngIf",i.available),n.xp6(1),n.Q6J("ngIf",!i.available),n.xp6(2),n.Oqu(i.name)}}function T4e(t,r){if(1&t&&(n.TgZ(0,"div",1),n._UZ(1,"span",2),n.TgZ(2,"mat-menu",3,4),n.YNc(4,k4e,5,4,"button",5),n.qZA()()),2&t){var e=n.MAs(3),i=n.oxw();n.Udp("left",i.leftPosition)("top",i.topPosition),n.xp6(1),n.Q6J("matMenuTriggerFor",e),n.xp6(1),n.Udp("min-height",0),n.xp6(2),n.Q6J("ngForOf",i.ports)}}var mk=function(){function t(r,e){(0,j.Z)(this,t),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new n.vpe}return(0,V.Z)(t,[{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})}}]),t}();mk.\u0275fac=function(r){return new(r||mk)(n.Y36(An.H7),n.Y36(n.sBO))},mk.\u0275cmp=n.Xpm({type:mk,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(Pa,5),2&r)&&(n.iGM(i=n.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&&n.YNc(0,T4e,5,8,"div",0),2&r&&n.Q6J("ngIf",e.node)},directives:[Ct.O5,Pa,ss,Ct.sg,Hr],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 nO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,V.Z)(t,[{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 b4e(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),t}();nO.\u0275fac=function(r){return new(r||nO)(n.Y36(Mg),n.Y36(Jc),n.Y36(Qc),n.Y36(vm),n.Y36(bg),n.Y36(yg))},nO.\u0275cmp=n.Xpm({type:nO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(mk,5),2&r)&&(n.iGM(i=n.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(n.TgZ(0,"app-node-select-interface",0),n.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),n.qZA()),2&r&&n.Q6J("links",e.links)},directives:[mk],styles:[""]});var rO=function(){function t(r,e,i){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();rO.\u0275fac=function(r){return new(r||rO)(n.Y36(ls),n.Y36(qa),n.Y36(Il))},rO.\u0275cmp=n.Xpm({type:rO,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var iO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,V.Z)(t,[{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()}}]),t}();iO.\u0275fac=function(r){return new(r||iO)(n.Y36(ls),n.Y36(qa),n.Y36(Il),n.Y36($c))},iO.\u0275cmp=n.Xpm({type:iO,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var oO=function(){function t(r,e,i){(0,j.Z)(this,t),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();oO.\u0275fac=function(r){return new(r||oO)(n.Y36(fl),n.Y36(pm.F),n.Y36(Qc))},oO.\u0275cmp=n.Xpm({type:oO,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var aO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,V.Z)(t,[{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,f=45/s*a,h=0,v=0,C=0,B=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,v=Math.floor(e.sourceNode.height/2)+Math.round(f)+5,C=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),B=Math.floor(e.targetNode.height/2)-Math.round(f)+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),v=Math.floor(e.sourceNode.height/2)+Math.round(f)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,B=Math.floor(e.targetNode.height/2)-Math.round(f)-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),v=Math.floor(e.sourceNode.height/2)-Math.round(f)-5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)-Math.round(u)-5,B=Math.floor(e.targetNode.height/2)+Math.round(f)+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),v=Math.floor(e.sourceNode.height/2)-Math.round(f)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,B=Math.floor(e.targetNode.height/2)+Math.round(f)+5);var G=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),ae=this.mapNodeToNode.convert(e.targetNode),he=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,G,q,ae,he,h,v,C,B).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Ye){i.linksDataSource.set(Ye)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),t}();aO.\u0275fac=function(r){return new(r||aO)(n.Y36(Xl.Y),n.Y36(fl),n.Y36(pm.F),n.Y36(Qc),n.Y36(vm),n.Y36(Fg))},aO.\u0275cmp=n.Xpm({type:aO,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var sO=function(){function t(r,e,i){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,V.Z)(t,[{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()}}]),t}();sO.\u0275fac=function(r){return new(r||sO)(n.Y36(vs.G),n.Y36(ti),n.Y36(Jc))},sO.\u0275cmp=n.Xpm({type:sO,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){},styles:[""]});var lO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,V.Z)(t,[{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()}}]),t}();lO.\u0275fac=function(r){return new(r||lO)(n.Y36(vs.G),n.Y36(ti),n.Y36(Jc),n.Y36(Dp))},lO.\u0275cmp=n.Xpm({type:lO,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var uO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new n.vpe}return(0,V.Z)(t,[{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()}}]),t}();uO.\u0275fac=function(r){return new(r||uO)(n.Y36(ls),n.Y36(qa),n.Y36(Il),n.Y36(Ng),n.Y36($c),n.Y36(qs))},uO.\u0275cmp=n.Xpm({type:uO,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){},styles:[""]});var cO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,V.Z)(t,[{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 sm;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()}}]),t}();cO.\u0275fac=function(r){return new(r||cO)(n.Y36(ls),n.Y36(qa),n.Y36(Il),n.Y36($c))},cO.\u0275cmp=n.Xpm({type:cO,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){},styles:[""]});var Tie=m(4147).i8,jg=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(xZ.o);jg.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(jg)))(e||jg)}}(),jg.\u0275prov=n.Yz7({token:jg,factory:jg.\u0275fac});var E4e=["console"];function M4e(t,r){if(1&t&&(n.TgZ(0,"span",12),n._uU(1),n._UZ(2,"br"),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.message," ")}}var wN=function(r){return{lightTheme:r}},dO=function(){function t(r,e,i,o,a,s,l,u,f){(0,j.Z)(this,t),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=f,this.version=Tie,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 ne.NI(0)}return(0,V.Z)(t,[{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)):"spice"===o.console_type?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)):this.showCommand("Supported console types: telnet, vnc, spice.")):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)}}]),t}();dO.\u0275fac=function(r){return new(r||dO)(n.Y36(Bg),n.Y36(ti),n.Y36(vs.G),n.Y36(jg),n.Y36(Wo.zw),n.Y36(qu.f),n.Y36(n.sBO),n.Y36(eu),n.Y36(n.sBO))},dO.\u0275cmp=n.Xpm({type:dO,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(E4e,5),2&r)&&(n.iGM(i=n.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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n._uU(3," Apply filter "),n.qZA(),n.TgZ(4,"mat-menu",3,4)(6,"button",5),n.NdJ("click",function(){return e.applyFilter("all")}),n._uU(7,"all"),n.qZA(),n.TgZ(8,"button",5),n.NdJ("click",function(){return e.applyFilter("errors")}),n._uU(9,"errors"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return e.applyFilter("warnings")}),n._uU(11,"warnings"),n.qZA(),n.TgZ(12,"button",5),n.NdJ("click",function(){return e.applyFilter("info")}),n._uU(13,"info"),n.qZA(),n.TgZ(14,"button",5),n.NdJ("click",function(){return e.applyFilter("map updates")}),n._uU(15,"map updates"),n.qZA(),n.TgZ(16,"button",5),n.NdJ("click",function(){return e.applyFilter("controller requests")}),n._uU(17,"controller requests"),n.qZA()()()(),n.TgZ(18,"div",6,7),n.YNc(20,M4e,3,1,"span",8),n.qZA(),n.TgZ(21,"div",9)(22,"mat-icon",10),n._uU(23,"keyboard_arrow_right"),n.qZA(),n.TgZ(24,"input",11),n.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),n.qZA()()),2&r){var i=n.MAs(5);n.xp6(2),n.Q6J("ngClass",n.VKq(8,wN,e.isLightThemeEnabled))("matMenuTriggerFor",i),n.xp6(16),n.Q6J("ngClass",n.VKq(10,wN,e.isLightThemeEnabled))("ngStyle",e.style),n.xp6(2),n.Q6J("ngForOf",e.filteredEvents),n.xp6(1),n.Q6J("ngClass",n.VKq(12,wN,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("ngClass",n.VKq(14,wN,e.isLightThemeEnabled))("ngModel",e.command)}},directives:[Ct.mk,Pa,ss,Hr,Ct.PC,Ct.sg,Vn,ne.Fj,ne.JJ,ne.On],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 Eie=m(4793),Mie=m(986),Sie=m(9162),S4e=["terminal"],fO=function(){function t(r,e){(0,j.Z)(this,t),this.consoleService=r,this.themeService=e,this.term=new Eie.Terminal,this.fitAddon=new Sie.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,V.Z)(t,[{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 Mie.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)})}}]),t}();function x4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",10),n.NdJ("mousemove",function(o){return n.CHM(e),n.oxw().dragWidget(o)},!1,n.evT)("mouseup",function(){return n.CHM(e),n.oxw().toggleDragging(!1)},!1,n.evT),n.qZA()}}function D4e(t,r){1&t&&(n.TgZ(0,"div",11),n._uU(1,"GNS3 console"),n.qZA())}fO.\u0275fac=function(r){return new(r||fO)(n.Y36(eu),n.Y36(qu.f))},fO.\u0275cmp=n.Xpm({type:fO,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(S4e,5),2&r)&&(n.iGM(i=n.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&&n._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{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;right:0;left:0;top:0;bottom: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{cursor:text}.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;left:0;top:0;bottom:0;right: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}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var pO=function(r){return{lightThemeConsoleHeader:r}};function A4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",11),n._uU(1),n.qZA(),n.TgZ(2,"button",7),n.NdJ("click",function(){n.CHM(e);var s=n.oxw().index;return n.oxw().removeTab(s)}),n.TgZ(3,"mat-icon"),n._uU(4,"close"),n.qZA()()}if(2&t){var i=n.oxw().$implicit,o=n.oxw();n.xp6(1),n.Oqu(i.name),n.xp6(1),n.Q6J("ngClass",n.VKq(2,pO,o.isLightThemeEnabled))}}function O4e(t,r){if(1&t&&(n.TgZ(0,"mat-tab",12),n.YNc(1,A4e,5,4,"ng-template",4),n.qZA()),2&t){var e=n.oxw();n.Q6J("label",e.tab)}}function I4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().minimize(!0)}),n.TgZ(1,"mat-icon"),n._uU(2,"remove"),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("ngClass",n.VKq(1,pO,i.isLightThemeEnabled))}}function P4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().minimize(!1)}),n.TgZ(1,"mat-icon"),n._uU(2,"web_asset"),n.qZA()()}if(2&t){var i=n.oxw();n.Q6J("ngClass",n.VKq(1,pO,i.isLightThemeEnabled))}}function R4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",13),n.NdJ("mouseover",function(s){return n.CHM(e),n.oxw().disableScroll(s)})("mouseout",function(s){return n.CHM(e),n.oxw().enableScroll(s)}),n._UZ(1,"app-web-console",14),n.qZA()}if(2&t){var i=r.index,o=n.oxw();n.Q6J("hidden",o.isMinimized),n.xp6(1),n.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var L4e=function(r){return{lightTheme:r}},Z4e=function(){return{right:!0,left:!0,bottom:!0,top:!0}},hO=function(){function t(r,e,i){(0,j.Z)(this,t),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new n.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 ne.NI(0)}return(0,V.Z)(t,[{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 f=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(f,"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)}}]),t}();function mO(){mO=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}hO.\u0275fac=function(r){return new(r||hO)(n.Y36(eu),n.Y36(qu.f),n.Y36(dl))},hO.\u0275cmp=n.Xpm({type:hO,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&&(n.YNc(0,x4e,1,0,"div",0),n.TgZ(1,"div",1),n.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),n.TgZ(2,"div",2)(3,"mat-tab-group",3),n.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),n.TgZ(4,"mat-tab"),n.YNc(5,D4e,2,0,"ng-template",4),n.qZA(),n.YNc(6,O4e,2,1,"mat-tab",5),n.qZA(),n.YNc(7,I4e,3,3,"button",6),n.YNc(8,P4e,3,3,"button",6),n.TgZ(9,"button",7),n.NdJ("click",function(){return e.close()}),n.TgZ(10,"mat-icon"),n._uU(11,"close"),n.qZA()()(),n._UZ(12,"app-log-console",8),n.YNc(13,R4e,2,4,"div",9),n.qZA()),2&r&&(n.Q6J("ngIf",e.isDraggingEnabled),n.xp6(1),n.Q6J("ngClass",n.VKq(16,L4e,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",n.DdM(18,Z4e))("enableGhostResize",!0),n.xp6(1),n.Q6J("ngClass",n.VKq(19,pO,e.isLightThemeEnabled)),n.xp6(1),n.Q6J("selectedIndex",e.selected.value),n.xp6(3),n.Q6J("ngForOf",e.nodes),n.xp6(1),n.Q6J("ngIf",!e.isMinimized),n.xp6(1),n.Q6J("ngIf",e.isMinimized),n.xp6(1),n.Q6J("ngClass",n.VKq(21,pO,e.isLightThemeEnabled)),n.xp6(3),n.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),n.xp6(1),n.Q6J("ngForOf",e.nodes))},directives:[Ct.O5,UM.E$,Ct.mk,Ct.PC,so.SP,so.uX,so.uD,Ct.sg,Tn,Vn,dO,fO],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 N4e=["topologySummaryContainer"];function B4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-d3-map",37),n.NdJ("nodeDragged",function(a){return n.CHM(e),n.oxw(2).onNodeDragged(a)})("drawingDragged",function(a){return n.CHM(e),n.oxw(2).onDrawingDragged(a)})("onLinkCreated",function(a){return n.CHM(e),n.oxw(2).onLinkCreated(a)})("onDrawingResized",function(a){return n.CHM(e),n.oxw(2).onDrawingResized(a)}),n.qZA()}if(2&t){var i=n.oxw(2);n.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 F4e(t,r){if(1&t&&n._UZ(0,"app-experimental-map",38),2&t){var e=n.oxw(2);n.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 U4e(t,r){1&t&&n._UZ(0,"mat-icon",39)}function H4e(t,r){1&t&&n._UZ(0,"mat-icon",40)}var kN=function(r){return{lightTheme:r}},j4e=function(r){return{selected:r}};function z4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",41)(1,"app-template",42),n.NdJ("onNodeCreation",function(a){return n.CHM(e),n.oxw(2).onNodeCreation(a)}),n.qZA(),n.TgZ(2,"button",43),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).toggleDrawLineMode()}),n.TgZ(3,"mat-icon"),n._uU(4,"timeline"),n.qZA()()()}if(2&t){var i=n.oxw(2);n.Q6J("ngClass",n.VKq(5,kN,i.isLightThemeEnabled)),n.xp6(1),n.Q6J("controller",i.controller)("project",i.project),n.xp6(1),n.Q6J("ngClass",n.VKq(7,j4e,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function W4e(t,r){if(1&t&&(n.TgZ(0,"div",25),n._UZ(1,"app-snapshot-menu-item",12),n.qZA()),2&t){var e=n.oxw(2);n.xp6(1),n.Q6J("controller",e.controller)("project",e.project)}}function V4e(t,r){if(1&t&&n._UZ(0,"app-draw-link-tool",44),2&t){var e=n.oxw(2);n.Q6J("links",e.links)}}function Y4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-console-wrapper",45),n.NdJ("closeConsole",function(a){return n.CHM(e),n.oxw(2).toggleShowConsole(a)}),n.qZA()}if(2&t){var i=n.oxw(2);n.Q6J("controller",i.controller)("project",i.project)}}var G4e=function(r,e){return{unmarkedLight:r,marked:e}},q4e=function(){return["/controllers"]},K4e=function(r){return["/controller",r,"projects"]},J4e=function(r){return["/controller",r,"image-manager"]},Q4e=function(r){return{visible:r}};function X4e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2),n.YNc(1,B4e,1,10,"app-d3-map",3),n.YNc(2,F4e,1,11,"app-experimental-map",4),n.TgZ(3,"div",5)(4,"button",6),n.YNc(5,U4e,1,0,"mat-icon",7),n.YNc(6,H4e,1,0,"mat-icon",8),n.qZA(),n.TgZ(7,"div",9),n.YNc(8,z4e,5,9,"div",10),n.TgZ(9,"div",11),n._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),n.qZA()(),n.TgZ(12,"div")(13,"button",14),n.NdJ("click",function(){n.CHM(e);var u=n.oxw();return u.toggleShowTopologySummary(!u.isTopologySummaryVisible)}),n.TgZ(14,"mat-icon"),n._uU(15,"toc"),n.qZA()()(),n.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),n._uU(20,"developer_board"),n.qZA(),n.TgZ(21,"span"),n._uU(22,"Controllers"),n.qZA()(),n.TgZ(23,"button",17)(24,"mat-icon"),n._uU(25,"work"),n.qZA(),n.TgZ(26,"span"),n._uU(27,"Projects"),n.qZA()(),n.TgZ(28,"button",17)(29,"mat-icon"),n._uU(30,"settings_applications"),n.qZA(),n.TgZ(31,"span"),n._uU(32,"Template preferences"),n.qZA()(),n.TgZ(33,"button",17)(34,"mat-icon"),n._uU(35,"collections"),n.qZA(),n.TgZ(36,"span"),n._uU(37,"Image manager"),n.qZA()(),n.TgZ(38,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addNewTemplate()}),n.TgZ(39,"mat-icon"),n._uU(40,"control_point"),n.qZA(),n.TgZ(41,"span"),n._uU(42,"New template"),n.qZA()(),n._UZ(43,"app-import-appliance",12),n.TgZ(44,"button",19)(45,"mat-icon"),n._uU(46,"settings"),n.qZA(),n.TgZ(47,"span"),n._uU(48,"Project settings"),n.qZA()(),n.TgZ(49,"button",19)(50,"mat-icon"),n._uU(51,"view_module"),n.qZA(),n.TgZ(52,"span"),n._uU(53,"Map settings"),n.qZA()()(),n.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().addNewProject()}),n.TgZ(58,"mat-icon"),n._uU(59,"add"),n.qZA(),n.TgZ(60,"span"),n._uU(61,"Add new blank project"),n.qZA()(),n.TgZ(62,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().saveProject()}),n.TgZ(63,"mat-icon"),n._uU(64,"save"),n.qZA(),n.TgZ(65,"span"),n._uU(66,"Save project as"),n.qZA()(),n.TgZ(67,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().editProject()}),n.TgZ(68,"mat-icon"),n._uU(69,"edit"),n.qZA(),n.TgZ(70,"span"),n._uU(71,"Edit project"),n.qZA()(),n.TgZ(72,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().exportProject()}),n.TgZ(73,"mat-icon"),n._uU(74,"call_made"),n.qZA(),n.TgZ(75,"span"),n._uU(76,"Export project"),n.qZA()(),n.TgZ(77,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().importProject()}),n.TgZ(78,"mat-icon"),n._uU(79,"call_received"),n.qZA(),n.TgZ(80,"span"),n._uU(81,"Import project"),n.qZA()(),n.TgZ(82,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().closeProject()}),n.TgZ(83,"mat-icon"),n._uU(84,"close"),n.qZA(),n.TgZ(85,"span"),n._uU(86,"Close project"),n.qZA()(),n.TgZ(87,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteProject()}),n.TgZ(88,"mat-icon"),n._uU(89,"delete"),n.qZA(),n.TgZ(90,"span"),n._uU(91,"Delete project"),n.qZA()()()(),n.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowInterfaceLabels(u.checked)}),n._uU(96," Show interface labels "),n.qZA(),n._UZ(97,"br"),n.TgZ(98,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowConsole(u.checked)}),n._uU(99," Show console "),n.qZA(),n._UZ(100,"br"),n.TgZ(101,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleShowTopologySummary(u.checked)}),n._uU(102," Show topology/controllers summary "),n.qZA(),n._UZ(103,"br"),n.TgZ(104,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleNotifications(u.checked)}),n._uU(105," Show notifications "),n.qZA(),n._UZ(106,"br"),n.TgZ(107,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleLayers(u.checked)}),n._uU(108," Show layers "),n.qZA(),n._UZ(109,"br"),n.TgZ(110,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleGrid(u.checked)}),n._uU(111," Show grid "),n.qZA(),n._UZ(112,"br"),n.TgZ(113,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleSnapToGrid(u.checked)}),n._uU(114," Snap to grid "),n.qZA(),n._UZ(115,"br"),n.TgZ(116,"mat-checkbox",23),n.NdJ("change",function(u){return n.CHM(e),n.oxw().toggleSymbolScaling(u.checked)}),n._uU(117," Scale symbols "),n.qZA(),n._UZ(118,"br"),n.qZA()()(),n.TgZ(119,"div",24)(120,"div",25)(121,"button",26),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleMovingMode()}),n.TgZ(122,"mat-icon"),n._uU(123,"near_me"),n.qZA()(),n.TgZ(124,"button",27),n.NdJ("click",function(){return n.CHM(e),n.oxw().toggleMovingMode()}),n.TgZ(125,"mat-icon"),n._uU(126,"zoom_out_map"),n.qZA()(),n.TgZ(127,"button",28),n.NdJ("click",function(){return n.CHM(e),n.oxw().zoomIn()}),n.TgZ(128,"mat-icon"),n._uU(129,"zoom_in"),n.qZA()(),n.TgZ(130,"button",29),n.NdJ("click",function(){return n.CHM(e),n.oxw().resetZoom()}),n.TgZ(131,"mat-icon"),n._uU(132,"adjust"),n.qZA()(),n.TgZ(133,"button",30),n.NdJ("click",function(){return n.CHM(e),n.oxw().zoomOut()}),n.TgZ(134,"mat-icon"),n._uU(135,"zoom_out"),n.qZA()()(),n.TgZ(136,"div",25),n._UZ(137,"app-project-map-menu",12),n.qZA(),n.YNc(138,W4e,2,2,"div",31),n.qZA(),n._UZ(139,"app-progress"),n.YNc(140,V4e,1,1,"app-draw-link-tool",32),n._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),n.TgZ(147,"app-text-added",34),n.NdJ("drawingSaved",function(){return n.CHM(e),n.oxw().onDrawingSaved()}),n.qZA(),n._UZ(148,"app-text-edited",33),n.TgZ(149,"div",35),n.YNc(150,Y4e,1,2,"app-console-wrapper",36),n.qZA()()}if(2&t){var i=n.MAs(17),o=n.MAs(55),a=n.MAs(93),s=n.oxw();n.Q6J("ngClass",n.VKq(53,kN,s.isLightThemeEnabled)),n.xp6(1),n.Q6J("ngIf",!s.settings.angular_map),n.xp6(1),n.Q6J("ngIf",s.settings.angular_map),n.xp6(1),n.Q6J("ngClass",n.VKq(55,kN,s.isLightThemeEnabled)),n.xp6(1),n.Q6J("matMenuTriggerFor",i),n.xp6(1),n.Q6J("ngIf",!s.isLightThemeEnabled),n.xp6(1),n.Q6J("ngIf",s.isLightThemeEnabled),n.xp6(2),n.Q6J("ngIf",!s.readonly),n.xp6(2),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("project",s.project)("controller",s.controller),n.xp6(2),n.Q6J("ngClass",n.WLB(57,G4e,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),n.xp6(3),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("routerLink",n.DdM(60,q4e)),n.xp6(5),n.Q6J("routerLink",n.VKq(61,K4e,s.controller.id)),n.xp6(5),n.MGl("routerLink","/controller/",s.controller.id,"/preferences"),n.xp6(5),n.Q6J("routerLink",n.VKq(63,J4e,s.controller.id)),n.xp6(10),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("matMenuTriggerFor",o),n.xp6(5),n.Q6J("matMenuTriggerFor",a),n.xp6(5),n.Q6J("overlapTrigger",!1),n.xp6(38),n.Q6J("overlapTrigger",!1),n.xp6(3),n.Q6J("ngModel",s.isInterfaceLabelVisible),n.xp6(3),n.Q6J("ngModel",s.isConsoleVisible),n.xp6(3),n.Q6J("ngModel",s.isTopologySummaryVisible),n.xp6(3),n.Q6J("ngModel",s.notificationsVisibility),n.xp6(3),n.Q6J("ngModel",s.layersVisibility),n.xp6(3),n.Q6J("ngModel",s.gridVisibility),n.xp6(3),n.Q6J("ngModel",s.project.snap_to_grid),n.xp6(3),n.Q6J("ngModel",s.symbolScaling),n.xp6(3),n.Q6J("ngClass",n.VKq(65,kN,s.isLightThemeEnabled)),n.xp6(2),n.Q6J("color",s.tools.moving?"basic":"primary"),n.xp6(3),n.Q6J("color",s.tools.moving?"primary":"basic"),n.xp6(13),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("ngIf",!s.readonly),n.xp6(2),n.Q6J("ngIf",s.tools.draw_link),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("controller",s.controller)("project",s.project),n.xp6(1),n.Q6J("controller",s.controller),n.xp6(1),n.Q6J("ngClass",n.VKq(67,Q4e,!s.isConsoleVisible)),n.xp6(1),n.Q6J("ngIf",s.project)}}function $4e(t,r){}var _O=function(){function t(r,e,i,o,a,s,l,u,f,h,v,C,B,G,q,ae,he,Ye,Me,Fe,ft,ht,Re,ut,kt,x,g,O,H,te,re,ye,pt,xt,Ce,st,Lt,Hn,er,Zn,Cn,ma,Tr,zr,Wn,In,yr){(0,j.Z)(this,t),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=f,this.drawingsWidget=h,this.linkWidget=v,this.labelWidget=C,this.interfaceLabelWidget=B,this.mapNodeToNode=G,this.mapDrawingToDrawing=q,this.mapLabelToLabel=ae,this.mapLinkToLink=he,this.mapLinkNodeToLinkNode=Ye,this.nodesDataSource=Me,this.linksDataSource=Fe,this.drawingsDataSource=ft,this.settingsService=ht,this.toolsService=Re,this.selectionManager=ut,this.selectionTool=kt,this.recentlyOpenedProjectService=x,this.movingEventSource=g,this.mapScaleService=O,this.nodeCreatedLabelStylesFixer=H,this.toasterService=te,this.dialog=re,this.router=ye,this.mapNodesDataSource=pt,this.mapLinksDataSource=xt,this.mapDrawingsDataSource=Ce,this.mapSymbolsDataSource=st,this.mapSettingsService=Lt,this.ethernetLinkWidget=Hn,this.serialLinkWidget=er,this.bottomSheet=Zn,this.notificationService=Cn,this.themeService=ma,this.title=Tr,this.nodeConsoleService=zr,this.symbolService=Wn,this.cd=In,this.viewContainerRef=yr,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 Io.w}return(0,V.Z)(t,[{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 no(this,void 0,void 0,mO().mark(function e(){var i,o;return mO().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 no(e,void 0,void 0,mO().mark(function a(){var s;return mO().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(as.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,el.D)(e.controllerService.get(a)).pipe((0,Ea.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,mr.U)(function(l){return l}))}),(0,Ea.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 fo.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(Xc);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 g0}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(f){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof sm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(f){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,Ea.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,Ea.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(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkToLink.convert(v.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],v.event.pageY,v.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(v){var C=e.mapNodeToNode.convert(v.node);e.contextMenu.openMenuForNode(C,v.event.pageY,v.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(v){var C=e.mapDrawingToDrawing.convert(v.drawing);e.contextMenu.openMenuForDrawing(C,v.event.pageY,v.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(v){var C=e.mapLabelToLabel.convert(v.label),B=e.nodes.find(function(G){return G.node_id===v.label.nodeId});e.contextMenu.openMenuForLabel(C,B,v.event.screenY-60,v.event.screenX)}),f=this.interfaceLabelWidget.onContextMenu.subscribe(function(v){var C=e.mapLinkNodeToLinkNode.convert(v.interfaceLabel),B=e.links.find(function(G){return G.link_id===v.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(C,B,v.event.pageY,v.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(v){var C=e.selectionManager.getSelected();if(!(C.length<2)&&v instanceof MouseEvent){var B=[],G=[],q=[],ae=[];C.forEach(function(he){he instanceof sm?B.push(e.mapDrawingToDrawing.convert(he)):he instanceof g0?G.push(e.mapNodeToNode.convert(he)):he instanceof Nw?q.push(e.mapLabelToLabel.convert(he)):he instanceof nie&&ae.push(e.mapLinkToLink.convert(he))}),e.contextMenu.openMenuForListOfElements(B,G,q,ae,v.pageY,v.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(f),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(ut){var kt=ut.svg.split('"'),x=parseInt(kt[1],10),g=parseInt(kt[3],10);ut.element={width:g,height:x}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(ut){var kt=new e8e;kt.node=ut,kt.top=ut.y,kt.left=ut.x,kt.bottom=ut.y+ut.height,kt.right=ut.x+ut.width,ut.y+ut.label.y<kt.top&&(kt.top=ut.y+ut.label.y),ut.x+ut.label.x<kt.left&&(kt.left=ut.x+ut.label.x),ut.y+ut.label.y>kt.bottom&&(kt.bottom=ut.y+ut.label.y),ut.x+ut.label.x>kt.right&&(kt.right=ut.x+ut.label.x),s.push(kt)});var l=s.sort(function(ut,kt){return ut.left-kt.left})[0],u=s.sort(function(ut,kt){return ut.right-kt.right})[s.length-1],f=s.sort(function(ut,kt){return ut.top-kt.top})[0],h=s.sort(function(ut,kt){return ut.bottom-kt.bottom})[s.length-1],v=[];this.drawings.forEach(function(ut){var kt=new t8e;kt.drawing=ut,kt.top=ut.y,kt.left=ut.x,kt.bottom=ut.y+ut.element.height,kt.right=ut.x+ut.element.width,v.push(kt)});var C=v.sort(function(ut,kt){return ut.left-kt.left})[0],B=v.sort(function(ut,kt){return ut.right-kt.right})[v.length-1],G=v.sort(function(ut,kt){return ut.top-kt.top})[0],q=v.sort(function(ut,kt){return ut.bottom-kt.bottom})[v.length-1];C&&l?(e=l.left<C.left?l.left:C.left,i=u.right>B.right?u.right:B.right,o=f.top<G.top?f.top:G.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!C?(e=l.left,i=u.right,o=f.top,a=h.bottom):C&&!l?(e=C.left,i=B.right,o=G.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var he=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Ye=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Me=i-e,Fe=a-o,ft=Me/he,ht=Fe/Ye,Re=1/Math.max(ft,ht);Re!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Re),this.project.scene_width=this.project.scene_width*Re,this.project.scene_height=this.project.scene_height*Re,ht<Me?(this.scrollX=e*Re-(he-Me*Re)/2+this.project.scene_width/2,this.scrollY=o*Re+this.project.scene_height/2):(this.scrollX=e*Re+this.project.scene_width/2,this.scrollY=o*Re-(Ye-Fe*Re)/2+this.project.scene_height/2)):(this.scrollX=e*Re+this.project.scene_width/2,this.scrollY=o*Re+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(Jw,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(ED,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(TD,{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(Qw,{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(Xw);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(Zw,{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(Xc);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(Xc);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(ok,{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(FA,{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()}}]),t}();_O.\u0275fac=function(r){return new(r||_O)(n.Y36(xr),n.Y36(vr),n.Y36(Xl.Y),n.Y36(ti),n.Y36(ls),n.Y36(ul),n.Y36(Bg),n.Y36(Cp),n.Y36(Eg),n.Y36(Mp),n.Y36(Dg),n.Y36(kp),n.Y36(Xd),n.Y36(vm),n.Y36(V0),n.Y36(Dp),n.Y36(Y0),n.Y36(Ug),n.Y36(vs.G),n.Y36(pm.F),n.Y36(qa),n.Y36(hm.g),n.Y36(Sp),n.Y36(Ol),n.Y36(wp),n.Y36(bN.p),n.Y36(fm),n.Y36($d),n.Y36(G0),n.Y36($n),n.Y36(ri),n.Y36(kr),n.Y36(nm),n.Y36(rm),n.Y36(im),n.Y36(om),n.Y36(dl),n.Y36(Sg),n.Y36(xg),n.Y36(ef),n.Y36(q0),n.Y36(qu.f),n.Y36(An.Dx),n.Y36(eu),n.Y36(cp),n.Y36(n.sBO),n.Y36(n.s_b))},_O.\u0275cmp=n.Xpm({type:_O,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(ek,5),n.Gf(qw,5),n.Gf(ck,5),n.Gf(N4e,5,n.s_b)),2&r)&&(n.iGM(i=n.CRH())&&(e.contextMenu=i.first),n.iGM(i=n.CRH())&&(e.mapChild=i.first),n.iGM(i=n.CRH())&&(e.projectMapMenuComponent=i.first),n.iGM(i=n.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&&(n.YNc(0,X4e,151,69,"div",0),n.YNc(1,$4e,0,0,"ng-template",null,1,n.W1O)),2&r&&n.Q6J("ngIf",e.project)},directives:[Ct.O5,Ct.mk,qw,qA,Tn,vi,Pa,Vn,JA,XA,ek,ss,Hr,ta,$A,Ui,ne.JJ,ne.On,ck,tO,qy,nO,rO,iO,oO,aO,sO,lO,uO,cO,hO],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:0px;left:0px;right:0px;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:0px;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:0px;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:0px;left:92px;right:0px;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}.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 e8e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),t8e=(0,V.Z)(function t(){(0,j.Z)(this,t)}),gO=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.projectService=e}return(0,V.Z)(t,[{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()})}}]),t}();function iz(){iz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function n8e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.xp6(1),n.AsE("",i+1,". ",null==e?null:e.filename,"")}}function r8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"h1",1),n._uU(2,"Do you want delete all projects?"),n.qZA(),n.TgZ(3,"div",2)(4,"p"),n._uU(5,"Your selected projects"),n.qZA(),n.YNc(6,n8e,2,2,"p",3),n.qZA(),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteAll()}),n._uU(9,"Delete"),n.qZA(),n.TgZ(10,"button",6),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function i8e(t,r){1&t&&(n.TgZ(0,"div")(1,"h1",7),n._uU(2,"Please wait."),n.qZA(),n.TgZ(3,"div",8),n._UZ(4,"mat-spinner",9),n.qZA()())}function o8e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw(),i=e.index,o=e.$implicit;n.xp6(1),n.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}gO.\u0275fac=function(r){return new(r||gO)(n.Y36(Ar),n.Y36(Xl.Y))},gO.\u0275cmp=n.Xpm({type:gO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Save project as"),n.qZA(),n.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("ngModelChange",function(o){return e.name=o}),n.qZA()()(),n.TgZ(5,"div",4)(6,"button",5),n.NdJ("click",function(){return e.onCloseClick()}),n._uU(7,"Cancel"),n.qZA(),n.TgZ(8,"button",6),n.NdJ("click",function(){return e.onSaveClick()}),n._uU(9,"Save project"),n.qZA()()),2&r&&(n.xp6(4),n.Q6J("ngModel",e.name))},directives:[Vr,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Zr,Tn],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var a8e=function(r){return{"deleted-error-text":r}};function s8e(t,r){if(1&t&&(n.TgZ(0,"p",12),n.YNc(1,o8e,2,2,"span",0),n.qZA()),2&t){var e=r.$implicit;n.Q6J("ngClass",n.VKq(2,a8e,null==e||null==e.error?null:e.error.message)),n.xp6(1),n.Q6J("ngIf",null!=e)}}function l8e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"Project can't be deleted because image used in one or more template."),n.qZA(),n.YNc(3,s8e,2,4,"p",11),n.qZA()),2&t){var e=n.oxw(2);n.xp6(3),n.Q6J("ngForOf",e.deleteFliesDetails)}}function u8e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5",13),n._uU(2),n.qZA()()),2&t){var e=n.oxw(2);n.xp6(2),n.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function c8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",2),n.YNc(2,l8e,4,1,"div",0),n.YNc(3,u8e,3,1,"div",0),n.qZA(),n.TgZ(4,"div",4)(5,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close(!1)}),n._uU(6,"Close"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngIf",i.deleteFliesDetails.length>0),n.xp6(1),n.Q6J("ngIf",i.fileNotDeleted.length>0)}}var vO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return no(this,void 0,void 0,iz().mark(function e(){return iz().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,Vd.K)(function(a){return(0,pr.of)(a)})))}),fo.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})}}]),t}();function d8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw();return a?s.selectAllImages():null}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function f8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell")(1,"mat-checkbox",25),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw();return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function p8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",26),n._uU(1," Name "),n.qZA())}vO.\u0275fac=function(r){return new(r||vO)(n.Y36(na),n.Y36(Ar),n.Y36(Xl.Y),n.Y36($n))},vO.\u0275cmp=n.Xpm({type:vO,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&&(n.YNc(0,r8e,12,1,"div",0),n.YNc(1,i8e,5,0,"div",0),n.YNc(2,c8e,7,2,"div",0)),2&r&&(n.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},directives:[Ct.O5,Vr,Ju,Ct.sg,Zr,Tn,d0,ql,Ct.mk],styles:[""]});var h8e=function(r,e){return["/controller",r,"project",e]};function m8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",27),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("routerLink",n.WLB(2,h8e,i.controller.id,e.project_id)),n.xp6(1),n.Oqu(e.name)}}function _8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",28),n._uU(1," Actions "),n.qZA())}function g8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",35),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().open(o)}),n.TgZ(1,"mat-icon",36),n._uU(2,"play_arrow"),n.qZA()()}}function v8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",37),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().close(o)}),n.TgZ(1,"mat-icon",38),n._uU(2,"pause"),n.qZA()()}}function y8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",39),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().duplicate(o)}),n.TgZ(1,"mat-icon",40),n._uU(2,"save"),n.qZA()()}}function b8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",29),n.YNc(1,g8e,3,0,"button",30),n.YNc(2,v8e,3,0,"button",31),n.YNc(3,y8e,3,0,"button",32),n.TgZ(4,"button",33),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().exportSelectProject(s)}),n.TgZ(5,"mat-icon",34),n._uU(6,"arrow_downward"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(1),n.Q6J("ngIf","closed"==i.status),n.xp6(1),n.Q6J("ngIf","opened"==i.status),n.xp6(1),n.Q6J("ngIf","closed"==i.status)}}function C8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",42),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).deleteAllFiles()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function w8e(t,r){if(1&t&&(n.TgZ(0,"mat-header-cell",28),n.YNc(1,C8e,3,0,"button",41),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function k8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",44),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().delete(o)}),n.TgZ(1,"mat-icon",45),n._uU(2,"delete"),n.qZA()()}}function T8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",28),n.YNc(1,k8e,3,0,"button",43),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function E8e(t,r){1&t&&n._UZ(0,"mat-header-row")}function M8e(t,r){1&t&&n._UZ(0,"mat-row")}var S8e=function(){return{standalone:!0}},_k=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.recentlyOpenedProjectService=h,this.projectDatabase=new x8e,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new po.Ov(!0,[])}return(0,V.Z)(t,[{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 D8e(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(Xc);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(Xc);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(gO,{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(Jw,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(Qw,{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(Xw);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(f){f&&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(vO,{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(Zw,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),t}();_k.\u0275fac=function(r){return new(r||_k)(n.Y36(xr),n.Y36(Xl.Y),n.Y36(hm.g),n.Y36(ul),n.Y36(ri),n.Y36(kr),n.Y36(ef),n.Y36($n),n.Y36(sl),n.Y36(bN.p))},_k.\u0275cmp=n.Xpm({type:_k,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(td,7),2&r)&&(n.iGM(i=n.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 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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Projects"),n.qZA(),n.TgZ(5,"button",4),n.NdJ("click",function(){return e.addBlankProject()}),n._uU(6," Add blank project "),n.qZA(),n.TgZ(7,"button",5),n.NdJ("click",function(){return e.importProject()}),n._uU(8," Import project "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),n.NdJ("ngModelChange",function(o){return e.searchText=o}),n.qZA()()(),n.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),n.ALo(16,"projectsfilter"),n.ynx(17,12),n.YNc(18,d8e,2,2,"mat-header-cell",13),n.YNc(19,f8e,2,1,"mat-cell",14),n.BQk(),n.ynx(20,15),n.YNc(21,p8e,2,0,"mat-header-cell",16),n.YNc(22,m8e,3,5,"mat-cell",14),n.BQk(),n.ynx(23,17),n.YNc(24,_8e,2,0,"mat-header-cell",18),n.YNc(25,b8e,7,3,"mat-cell",19),n.BQk(),n.ynx(26,20),n.YNc(27,w8e,2,1,"mat-header-cell",18),n.YNc(28,T8e,2,1,"mat-cell",21),n.BQk(),n.YNc(29,E8e,1,0,"mat-header-row",22),n.YNc(30,M8e,1,0,"mat-row",23),n.qZA()()()()),2&r&&(n.xp6(11),n.Q6J("ngModel",e.searchText)("ngModelOptions",n.DdM(8,S8e)),n.xp6(3),n.Q6J("dataSource",n.xi3(16,5,e.dataSource,e.searchText)),n.xp6(15),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.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 x8e=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{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()))}}]),t}(),D8e=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o){var a;return(0,j.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return To.T.apply(void 0,a).pipe((0,mr.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],f=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+f)?f:+f)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2);function nc(){nc=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function A8e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"You must enter a value"),n.qZA())}function O8e(t,r){if(1&t&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e.key),n.xp6(1),n.hij(" ",e.name," ")}}var yO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 ne.cw({name:new ne.NI("",[ne.kI.required]),location:new ne.NI(""),path:new ne.NI(""),ubridge_path:new ne.NI(""),host:new ne.NI("",[ne.kI.required]),port:new ne.NI("",[ne.kI.required,ne.kI.min(1)]),protocol:new ne.NI("http:")})}return(0,V.Z)(t,[{key:"getLocations",value:function(){return no(this,void 0,void 0,nc().mark(function e(){var i,o;return nc().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 no(this,void 0,void 0,nc().mark(function e(){var i;return nc().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 no(this,void 0,void 0,nc().mark(function e(){var i;return nc().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 no(this,void 0,void 0,nc().mark(function e(){return nc().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 no(this,void 0,void 0,nc().mark(function e(){return nc().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 no(this,void 0,void 0,nc().mark(function e(){var o,a,s,i=this;return nc().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(f){var h=i.controllerForm.get("path"),v=i.controllerForm.get("ubridge_path");"local"===f?(h.setValue(o),h.setValidators([ne.kI.required]),v.setValue(a),v.setValidators([ne.kI.required])):(h.setValue(""),h.clearValidators(),v.setValue(""),v.clearValidators()),[h,v].forEach(function(C){C.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()}}]),t}();function J0(){J0=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}yO.\u0275fac=function(r){return new(r||yO)(n.Y36(Ar),n.Y36(sl),n.Y36(vr),n.Y36($n),n.Y36(na))},yO.\u0275cmp=n.Xpm({type:yO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Add controller"),n.qZA(),n.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),n._UZ(5,"input",3),n.YNc(6,A8e,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"mat-form-field"),n._UZ(8,"input",5),n.qZA(),n.TgZ(9,"mat-form-field"),n._UZ(10,"input",6),n.qZA(),n.TgZ(11,"mat-form-field")(12,"mat-select",7),n.YNc(13,O8e,2,2,"mat-option",8),n.qZA()()(),n.TgZ(14,"div",9)(15,"button",10),n.NdJ("click",function(){return e.onNoClick()}),n._uU(16,"Cancel"),n.qZA(),n.TgZ(17,"button",11),n.NdJ("click",function(){return e.onAddClick()}),n._uU(18,"Add"),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.controllerForm),n.xp6(4),n.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),n.xp6(7),n.Q6J("ngForOf",e.protocols))},directives:[Vr,ne._Y,ne.JL,ne.sg,Ju,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Oi.gD,Ct.sg,ln.ey,Zr,Tn],encapsulation:2});var zg=function(){function t(r){var e=this;(0,j.Z)(this,t),this.electronService=r,this.controllerStatusChanged=new qn.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,V.Z)(t,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return no(this,void 0,void 0,J0().mark(function i(){var o;return J0().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 no(this,void 0,void 0,J0().mark(function i(){return J0().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 no(this,void 0,void 0,J0().mark(function e(){return J0().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)}}]),t}();zg.\u0275fac=function(r){return new(r||zg)(n.LFG(sl))},zg.\u0275prov=n.Yz7({token:zg,factory:zg.\u0275fac});var oz=m(5887);function bm(){bm=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function I8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-card",2)(1,"mat-card-content",3),n._uU(2," We've discovered GNS3 controller on "),n.TgZ(3,"b"),n._uU(4),n.qZA(),n._uU(5,", would you like to add to the list? "),n.qZA(),n.TgZ(6,"mat-card-actions",4)(7,"button",5),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.ignore(a.discoveredController)}),n._uU(8,"NO"),n.qZA(),n.TgZ(9,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.accept(a.discoveredController)}),n._uU(10,"YES"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(4),n.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function P8e(t,r){1&t&&n._UZ(0,"mat-divider")}var gk=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized&&this.discoverFirstController(),this.controllerService.serviceInitialized.subscribe(function(i){return no(e,void 0,void 0,bm().mark(function o(){return bm().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 no(this,void 0,void 0,bm().mark(function e(){var i;return bm().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 no(this,void 0,void 0,bm().mark(function e(){var o,i=this;return bm().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o=[],this.defaultControllers.forEach(function(l){return no(i,void 0,void 0,bm().mark(function u(){var f;return bm().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return(f=new rZ).host=l.host,f.port=l.port,C.next=5,this.versionService.get(f).toPromise().catch(function(B){return null});case 5:C.sent&&o.push(f);case 7:case"end":return C.stop()}},u,this)}))}),s.abrupt("return",o);case 3:case"end":return s.stop()}},e,this)}))}},{key:"discoverFirstAvailableController",value:function(){var e=this;(0,Bc.D)([(0,el.D)(this.controllerService.findAll()).pipe((0,mr.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Ut.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 oz.Observable.of(null)}))}),new oz.Observable(function(o){(0,Bc.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 rZ;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return oz.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})}}]),t}();function Q0(){Q0=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function R8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," ID "),n.qZA())}function L8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.id," ")}}function Z8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Name "),n.qZA())}gk.\u0275fac=function(r){return new(r||gk)(n.Y36(zh),n.Y36(vr),n.Y36(up),n.Y36(xr))},gk.\u0275cmp=n.Xpm({type:gk,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&&(n.YNc(0,I8e,11,2,"mat-card",0),n.YNc(1,P8e,1,0,"mat-divider",1)),2&r&&(n.Q6J("ngIf",e.discoveredController),n.xp6(1),n.Q6J("ngIf",e.discoveredController))},directives:[Ct.O5,Si,Qy,Yx,Tn,t0.d],styles:[""]});var N8e=function(r){return["/controller",r,"login"]};function B8e(t,r){if(1&t&&(n.TgZ(0,"a",22),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit;n.Q6J("routerLink",n.VKq(2,N8e,e.id)),n.xp6(1),n.Oqu(e.name)}}function F8e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit;n.xp6(1),n.Oqu(e.name)}}function U8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,B8e,2,4,"a",20),n.YNc(2,F8e,2,1,"span",21),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),n.xp6(1),n.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function H8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Location "),n.qZA())}function j8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.location," ")}}function z8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Host "),n.qZA())}function W8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.host," ")}}function V8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Port "),n.qZA())}function Y8e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.port," ")}}function G8e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function q8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().openProjects(o)}),n.TgZ(1,"mat-icon",31),n._uU(2,"arrow_forward"),n.qZA()()}}function K8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",32),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().startController(o)}),n.TgZ(1,"mat-icon",33),n._uU(2,"play_arrow"),n.qZA()()}}function J8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",34),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().stopController(o)}),n.TgZ(1,"mat-icon",35),n._uU(2,"stop"),n.qZA()()}}function Q8e(t,r){1&t&&n._UZ(0,"mat-spinner",36),2&t&&n.Q6J("diameter",24)}function X8e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",23),n.YNc(1,q8e,3,0,"button",24),n.YNc(2,K8e,3,0,"button",25),n.YNc(3,J8e,3,0,"button",26),n.YNc(4,Q8e,1,1,"mat-spinner",27),n.TgZ(5,"button",28),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().deleteController(l)}),n.TgZ(6,"mat-icon",29),n._uU(7,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),n.xp6(1),n.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function $8e(t,r){1&t&&n._UZ(0,"mat-header-row")}function eUe(t,r){1&t&&n._UZ(0,"mat-row")}function tUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",37),n.NdJ("click",function(){return n.CHM(e),n.oxw().startLocalController()}),n._uU(1," Start local controller "),n.qZA()}}var bO=function(){function t(r,e,i,o,a,s,l,u,f,h){(0,j.Z)(this,t),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=f,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,V.Z)(t,[{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 no(e,void 0,void 0,Q0().mark(function o(){return Q0().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 nUe(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(yO,{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(Xc);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 no(this,void 0,void 0,Q0().mark(function i(){return Q0().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 no(this,void 0,void 0,Q0().mark(function i(){return Q0().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)}))}}]),t}();bO.\u0275fac=function(r){return new(r||bO)(n.Y36(ri),n.Y36(vr),n.Y36(up),n.Y36(zg),n.Y36(n.sBO),n.Y36(sl),n.Y36(cH),n.Y36(ef),n.Y36(xr),n.Y36(kr))},bO.\u0275cmp=n.Xpm({type:bO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Controllers"),n.qZA()(),n.TgZ(4,"div",2),n._UZ(5,"app-controller-discovery"),n.TgZ(6,"div",3)(7,"mat-table",4,5),n.ynx(9,6),n.YNc(10,R8e,2,0,"mat-header-cell",7),n.YNc(11,L8e,2,1,"mat-cell",8),n.BQk(),n.ynx(12,9),n.YNc(13,Z8e,2,0,"mat-header-cell",7),n.YNc(14,U8e,3,2,"mat-cell",8),n.BQk(),n.ynx(15,10),n.YNc(16,H8e,2,0,"mat-header-cell",7),n.YNc(17,j8e,2,1,"mat-cell",8),n.BQk(),n.ynx(18,11),n.YNc(19,z8e,2,0,"mat-header-cell",7),n.YNc(20,W8e,2,1,"mat-cell",8),n.BQk(),n.ynx(21,12),n.YNc(22,V8e,2,0,"mat-header-cell",7),n.YNc(23,Y8e,2,1,"mat-cell",8),n.BQk(),n.ynx(24,13),n.YNc(25,G8e,2,0,"mat-header-cell",7),n.YNc(26,X8e,8,4,"mat-cell",14),n.BQk(),n.YNc(27,$8e,1,0,"mat-header-row",15),n.YNc(28,eUe,1,0,"mat-row",16),n.qZA()(),n.TgZ(29,"div",17),n.YNc(30,tUe,2,0,"button",18),n.TgZ(31,"button",19),n.NdJ("click",function(){return e.createModal()}),n._uU(32,"Add Controller"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("dataSource",e.dataSource),n.xp6(20),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns),n.xp6(2),n.Q6J("ngIf",e.isElectronApp))},directives:[gk,ca,aa,fa,Sa,da,xa,Ct.O5,Ws,Tn,vi,Vn,ql,Da,Oa,Aa,Ia],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 nUe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this;return(0,To.T)(this.controllerDatabase.dataChange).pipe((0,mr.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2),X0=function(){function t(r){(0,j.Z)(this,t),this.electronService=r}return(0,V.Z)(t,[{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"'}}}]),t}();X0.\u0275fac=function(r){return new(r||X0)(n.LFG(sl))},X0.\u0275prov=n.Yz7({token:X0,factory:X0.\u0275fac});var Wg=function(){function t(r,e){(0,j.Z)(this,t),this.defaultConsoleService=r,this.settingsService=e}return(0,V.Z)(t,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),t}();Wg.\u0275fac=function(r){return new(r||Wg)(n.LFG(X0),n.LFG(hm.g))},Wg.\u0275prov=n.Yz7({token:Wg,factory:Wg.\u0275fac});var CO=function(){function t(r,e,i){(0,j.Z)(this,t),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new ne.cw({command:new ne.NI("")})}return(0,V.Z)(t,[{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()}}]),t}();CO.\u0275fac=function(r){return new(r||CO)(n.Y36(kr),n.Y36(Wg),n.Y36($n))},CO.\u0275cmp=n.Xpm({type:CO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Console settings"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),n._UZ(9,"textarea",7),n.qZA(),n.TgZ(10,"div",8),n._uU(11," The following variables are replaced by GNS3:"),n._UZ(12,"br"),n._uU(13," %h: console IP or hostname"),n._UZ(14,"br"),n._uU(15," %p: console port"),n._UZ(16,"br"),n._uU(17," %s: path of the serial connection"),n._UZ(18,"br"),n._uU(19," %d: title of the console"),n._UZ(20,"br"),n._uU(21," %i: Project UUID"),n._UZ(22,"br"),n._uU(23," %c: controller URL (http://user:password@controller:port) "),n.qZA()()(),n.TgZ(24,"div",9)(25,"button",10),n.NdJ("click",function(){return e.goBack()}),n._uU(26,"Cancel"),n.qZA(),n.TgZ(27,"button",11),n.NdJ("click",function(){return e.save()}),n._uU(28,"Save"),n.qZA(),n._UZ(29,"br"),n.qZA()()()),2&r&&(n.xp6(7),n.Q6J("formGroup",e.consoleForm))},directives:[Si,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Tn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var $0=function(){function t(r){(0,j.Z)(this,t),this.httpClient=r}return(0,V.Z)(t,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),t}();$0.\u0275fac=function(r){return new(r||$0)(n.LFG(Hu.eN))},$0.\u0275prov=n.Yz7({token:$0,factory:$0.\u0275fac});var wO=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,V.Z)(t,[{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")}}]),t}();wO.\u0275fac=function(r){return new(r||wO)(n.Y36(hm.g),n.Y36($n),n.Y36(Wg),n.Y36(qu.f),n.Y36(dl),n.Y36($0))},wO.\u0275cmp=n.Xpm({type:wO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1"),n._uU(3,"Settings"),n.qZA()(),n.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),n._uU(10," Local settings "),n.qZA(),n.TgZ(11,"mat-panel-description"),n._uU(12," Customize your local settings "),n.qZA()(),n.TgZ(13,"div")(14,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),n._uU(15,"Send anonymous crash reports"),n.qZA(),n._UZ(16,"br"),n.TgZ(17,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),n._uU(18,"Integrate link labels to links"),n.qZA(),n._UZ(19,"br"),n.TgZ(20,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.openReadme=o}),n._uU(21,"Automatically open project README files"),n.qZA(),n._UZ(22,"br"),n.TgZ(23,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),n._uU(24,"Send anonymous usage statistics"),n.qZA(),n._UZ(25,"br"),n.TgZ(26,"mat-checkbox",5),n.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),n._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),n.qZA()()(),n.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),n._uU(31," Theme settings "),n.qZA(),n.TgZ(32,"mat-panel-description"),n._uU(33," Customize theme settings "),n.qZA()(),n.TgZ(34,"div",6)(35,"button",7),n.NdJ("click",function(){return e.setDarkMode(!1)}),n._uU(36,"Switch to light theme"),n.qZA(),n.TgZ(37,"button",7),n.NdJ("click",function(){return e.setDarkMode(!0)}),n._uU(38,"Switch to dark theme"),n.qZA()()(),n.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),n._uU(42," Updates "),n.qZA(),n.TgZ(43,"mat-panel-description"),n._uU(44," Check for updates "),n.qZA()(),n.TgZ(45,"div",6)(46,"button",8),n.NdJ("click",function(){return e.checkForUpdates()}),n._uU(47,"Check for updates"),n.qZA()()()()(),n.TgZ(48,"div",9)(49,"button",10),n.NdJ("click",function(){return e.save()}),n._uU(50,"Save settings"),n.qZA()()()()),2&r&&(n.xp6(7),n.Q6J("expanded",!0),n.xp6(7),n.Q6J("ngModel",e.settings.crash_reports),n.xp6(3),n.Q6J("ngModel",e.integrateLinksLabelsToLinks),n.xp6(3),n.Q6J("ngModel",e.openReadme),n.xp6(3),n.Q6J("ngModel",e.settings.anonymous_statistics),n.xp6(3),n.Q6J("ngModel",e.openConsolesInWidget),n.xp6(2),n.Q6J("expanded",!1),n.xp6(11),n.Q6J("expanded",!1))},directives:[El,Kl,Jl,hu,Jx,Ui,ne.JJ,ne.On,Tn],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var kO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),t}();kO.\u0275fac=function(r){return new(r||kO)},kO.\u0275pipe=n.Yjl({name:"namefilter",type:kO,pure:!0});var TO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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,f=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+f+"/"+u+"/"+l}}]),t}();function rUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",18),n._uU(1," Name "),n.qZA())}function iUe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.name," ")}}function oUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",18),n._uU(1," Date "),n.qZA())}function aUe(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.ALo(2,"datefilter"),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,e.created_at)," ")}}function sUe(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Actions "),n.qZA())}function lUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",19)(1,"button",20),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().restoreSnapshot(a)}),n.TgZ(2,"mat-icon",21),n._uU(3,"restore"),n.qZA()(),n.TgZ(4,"button",22),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw().deleteSnapshot(a)}),n.TgZ(5,"mat-icon",23),n._uU(6,"delete"),n.qZA()()()}}function uUe(t,r){1&t&&n._UZ(0,"mat-header-row")}function cUe(t,r){1&t&&n._UZ(0,"mat-row")}TO.\u0275fac=function(r){return new(r||TO)},TO.\u0275pipe=n.Yjl({name:"datefilter",type:TO,pure:!0});var EO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,V.Z)(t,[{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===K0.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 fUe(t,r,e){return t=t.toLowerCase(),r=r.toLowerCase(),(t<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function dUe(t,r,e){return(t<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),t}();EO.\u0275fac=function(r){return new(r||EO)(n.Y36(xr),n.Y36(ym),n.Y36(Hg),n.Y36($n))},EO.\u0275cmp=n.Xpm({type:EO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Snapshots"),n.qZA()()(),n.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),n.NdJ("ngModelChange",function(o){return e.searchText=o}),n.qZA()(),n.TgZ(9,"mat-table",7,8),n.NdJ("matSortChange",function(o){return e.sortData(o)}),n.ALo(11,"namefilter"),n.ynx(12,9),n.YNc(13,rUe,2,0,"mat-header-cell",10),n.YNc(14,iUe,2,1,"mat-cell",11),n.BQk(),n.ynx(15,12),n.YNc(16,oUe,2,0,"mat-header-cell",10),n.YNc(17,aUe,3,3,"mat-cell",11),n.BQk(),n.ynx(18,13),n.YNc(19,sUe,2,0,"mat-header-cell",14),n.YNc(20,lUe,7,0,"mat-cell",15),n.BQk(),n.YNc(21,uUe,1,0,"mat-header-row",16),n.YNc(22,cUe,1,0,"mat-row",17),n.qZA()()()()),2&r&&(n.xp6(8),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("dataSource",n.xi3(11,4,e.snapshots,e.searchText)),n.xp6(12),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Si,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,gm,da,xa,Tn,vi,Vn,Da,Oa,Aa,Ia],pipes:[kO,TO],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var xie=new n.OlP("MatChipRemove"),Die=new n.OlP("MatChipAvatar"),Aie=new n.OlP("MatChipTrailingIcon"),hUe=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r}),mUe=(0,ln.sb)((0,ln.pj)((0,ln.Kr)(hUe),"primary"),-1),vk=(0,V.Z)(function t(){(0,j.Z)(this,t)});vk.\u0275fac=function(r){return new(r||vk)},vk.\u0275dir=n.lG2({type:vk,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[n._Bn([{provide:Die,useExisting:vk}])]});var yk=(0,V.Z)(function t(){(0,j.Z)(this,t)});yk.\u0275fac=function(r){return new(r||yk)},yk.\u0275dir=n.lG2({type:yk,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[n._Bn([{provide:Aie,useExisting:yk}])]});var Vg=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f,h){var v;return(0,j.Z)(this,e),(v=r.call(this,i))._ngZone=o,v._changeDetectorRef=l,v._hasFocus=!1,v.chipListSelectable=!0,v._chipListMultiple=!1,v._chipListDisabled=!1,v._selected=!1,v._selectable=!0,v._disabled=!1,v._removable=!0,v._onFocus=new qn.xQ,v._onBlur=new qn.xQ,v.selectionChange=new n.vpe,v.destroyed=new n.vpe,v.removed=new n.vpe,v._addHostClassName(),v._chipRippleTarget=u.createElement("div"),v._chipRippleTarget.classList.add("mat-chip-ripple"),v._elementRef.nativeElement.appendChild(v._chipRippleTarget),v._chipRipple=new ln.IR((0,Mx.Z)(v),o,v._chipRippleTarget,a),v._chipRipple.setupTriggerEvents(i),v.rippleConfig=s||{},v._animationsDisabled="NoopAnimations"===f,v.tabIndex=null!=h&&parseInt(h)||-1,v}return(0,V.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,Un.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,Un.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,Un.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,Un.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 Gr.yY:case Gr.ZH:this.remove(),o.preventDefault();break;case Gr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,to.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}(mUe);Vg.\u0275fac=function(r){return new(r||Vg)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Zi.t4),n.Y36(ln.Y2,8),n.Y36(n.sBO),n.Y36(Ct.K0),n.Y36(Ta.Qb,8),n.$8M("tabindex"))},Vg.\u0275dir=n.lG2({type:Vg,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,Die,5),n.Suo(i,Aie,5),n.Suo(i,xie,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.avatar=o.first),n.iGM(o=n.CRH())&&(e.trailingIcon=o.first),n.iGM(o=n.CRH())&&(e.removeIcon=o.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(r,e){1&r&&n.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&&(n.uIk("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),n.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",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[n.qOj]});var bk=function(){function t(r,e){(0,j.Z)(this,t),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,V.Z)(t,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),t}();bk.\u0275fac=function(r){return new(r||bk)(n.Y36(Vg),n.Y36(n.SBq))},bk.\u0275dir=n.lG2({type:bk,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._handleClick(o)})},features:[n._Bn([{provide:xie,useExisting:bk}])]});var Oie=new n.OlP("mat-chips-default-options"),_Ue=0,MO=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(_Ue++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,V.Z)(t,[{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,Un.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,Un.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===Gr.Mf&&!(0,Gr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===Gr.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===Gr.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,Gr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),t}();MO.\u0275fac=function(r){return new(r||MO)(n.Y36(n.SBq),n.Y36(Oie))},MO.\u0275dir=n.lG2({type:MO,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&n.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&&(n.Ikx("id",e.id),n.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:[n.TTD]});var gUe=(0,ln.FD)(function(){return(0,V.Z)(function t(r,e,i,o){(0,j.Z)(this,t),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o})}()),vUe=0,yUe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.value=e}),eb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u,f){var h;return(0,j.Z)(this,e),(h=r.call(this,u,s,l,f))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new qn.xQ,h._uid="mat-chip-list-".concat(vUe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(v,C){return v===C},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new n.vpe,h.valueChange=new n.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,Mx.Z)(h)),h}return(0,V.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.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,Un.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(ne.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Un.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,Un.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){var a=this;this._selectable=(0,Un.Ig)(o),this.chips&&this.chips.forEach(function(s){return s.chipListSelectable=a._selectable})}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return To.T.apply(void 0,(0,$t.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Ai.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,ua.O)(null),(0,Yr.R)(this._destroyed)).subscribe(function(){o.disabled&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new po.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){this._ariaDescribedby=o.join(" ")}},{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 yUe(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})}}]),e}(gUe);eb.\u0275fac=function(r){return new(r||eb)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Es.Is,8),n.Y36(ne.F,8),n.Y36(ne.sg,8),n.Y36(ln.rD),n.Y36(ne.a5,10))},eb.\u0275cmp=n.Xpm({type:eb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,Vg,5),2&r)&&(n.iGM(o=n.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(r,e){1&r&&n.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(n.Ikx("id",e._uid),n.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("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),n.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{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:[n._Bn([{provide:Fn.Eo,useExisting:eb}]),n.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.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-animation-noopable.mat-standard-chip{transition:none;animation:none}.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:focus{outline:dotted 2px}.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}\n'],encapsulation:2,changeDetection:0});var Ck=(0,V.Z)(function t(){(0,j.Z)(this,t)});Ck.\u0275fac=function(r){return new(r||Ck)},Ck.\u0275mod=n.oAB({type:Ck}),Ck.\u0275inj=n.cJS({providers:[ln.rD,{provide:Oie,useValue:{separatorKeyCodes:[Gr.K5]}}],imports:[[ln.BQ]]});var bUe=function(){return["Load average","(last 1 minute)"]},CUe=function(){return["Load average","(last 5 minutes)"]},wUe=function(){return["Load average","(last 15 minutes)"]},SO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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]}}]),t}();function kUe(t,r){1&t&&(n.TgZ(0,"div"),n._uU(1,"Statistics not loaded"),n.qZA())}function TUe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n._UZ(2,"app-status-chart",2),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.compute_name," "),n.xp6(1),n.Q6J("computeStatistics",e)}}SO.\u0275fac=function(r){return new(r||SO)},SO.\u0275cmp=n.Xpm({type:SO,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&&(n.TgZ(0,"mat-card")(1,"div",0),n._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),n.qZA(),n.TgZ(6,"div",0),n._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),n.qZA(),n.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),n._uU(13),n.qZA()(),n.TgZ(14,"mat-chip-list")(15,"mat-chip",3),n._uU(16),n.qZA()(),n.TgZ(17,"mat-chip-list")(18,"mat-chip",3),n._uU(19),n.qZA()()(),n.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),n._uU(23),n.qZA()(),n.TgZ(24,"mat-chip-list")(25,"mat-chip",3),n._uU(26),n.qZA()(),n.TgZ(27,"mat-chip-list")(28,"mat-chip",3),n._uU(29),n.qZA()()()()),2&r&&(n.xp6(2),n.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),n.xp6(1),n.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),n.xp6(1),n.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),n.xp6(1),n.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),n.xp6(2),n.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",n.DdM(111,bUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(1),n.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",n.DdM(112,CUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(1),n.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",n.DdM(113,wUe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),n.xp6(4),n.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),n.xp6(3),n.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),n.xp6(3),n.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),n.xp6(4),n.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),n.xp6(3),n.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),n.xp6(3),n.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},directives:[Si,Zy,eb,Vg],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 xO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,V.Z)(t,[{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)})})}}]),t}();xO.\u0275fac=function(r){return new(r||xO)(n.Y36(xr),n.Y36(Yd.X),n.Y36(vr),n.Y36($n))},xO.\u0275cmp=n.Xpm({type:xO,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(n.YNc(0,kUe,2,0,"div",0),n.YNc(1,TUe,3,2,"div",1)),2&r&&(n.Q6J("ngIf",!e.computeStatistics.length),n.xp6(1),n.Q6J("ngForOf",e.computeStatistics))},directives:[Ct.O5,Ct.sg,SO],styles:[""]});var DO=function(){function t(r){(0,j.Z)(this,t),this.route=r,this.controllerId=""}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),t}();DO.\u0275fac=function(r){return new(r||DO)(n.Y36(xr))},DO.\u0275cmp=n.Xpm({type:DO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"System status"),n.qZA()()(),n.TgZ(5,"div",4),n._UZ(6,"app-status-info"),n.qZA()())},directives:[xO],styles:[""]});var EUe=["terminal"],wk=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new Io.w,this.term=new Eie.Terminal,this.fitAddon=new Sie.FitAddon}return(0,V.Z)(t,[{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 Mie.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)}}]),t}();wk.\u0275fac=function(r){return new(r||wk)(n.Y36(eu),n.Y36(vr),n.Y36(xr),n.Y36(An.Dx),n.Y36(ti))},wk.\u0275cmp=n.Xpm({type:wk,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(EUe,5),2&r)&&(n.iGM(i=n.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&n._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{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;right:0;left:0;top:0;bottom: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{cursor:text}.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;left:0;top:0;bottom:0;right: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}\n'],encapsulation:2});var tb=function(){function t(r,e){(0,j.Z)(this,t),this.consoleService=r,this.bottomSheet=e}return(0,V.Z)(t,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(Xc);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}}]),t}();function az(){az=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}tb.\u0275fac=function(r){return new(r||tb)(n.LFG(eu),n.LFG(ef))},tb.\u0275prov=n.Yz7({token:tb,factory:tb.\u0275fac});var ni=function(){function t(r,e,i){(0,j.Z)(this,t),this.controllerService=r,this.loginService=e,this.router=i}return(0,V.Z)(t,[{key:"canActivate",value:function(e,i){return no(this,void 0,void 0,az().mark(function o(){var s,l,a=this;return az().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,f.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=f.sent,f.prev=5,f.next=8,this.loginService.getLoggedUser(l);case 8:f.next=12;break;case 10:f.prev=10,f.t0=f.catch(5);case 12:return f.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 f.stop()}},o,this,[[5,10]])}))}}]),t}();ni.\u0275fac=function(r){return new(r||ni)(n.LFG(vr),n.LFG(jh),n.LFG(kr))},ni.\u0275prov=n.Yz7({token:ni,factory:ni.\u0275fac});var MUe=["*",[["mat-toolbar-row"]]],xUe=(0,ln.pj)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}()),AO=(0,V.Z)(function t(){(0,j.Z)(this,t)});AO.\u0275fac=function(r){return new(r||AO)},AO.\u0275dir=n.lG2({type:AO,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var OO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,V.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}(xUe);OO.\u0275fac=function(r){return new(r||OO)(n.Y36(n.SBq),n.Y36(Zi.t4),n.Y36(Ct.K0))},OO.\u0275cmp=n.Xpm({type:OO,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,AO,5),2&r)&&(n.iGM(o=n.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&n.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[n.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(MUe),n.Hsn(0),n.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%}\n"],encapsulation:2,changeDetection:0});var kk=(0,V.Z)(function t(){(0,j.Z)(this,t)});function sz(){sz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function DUe(t,r){1&t&&(n.TgZ(0,"button",15),n._UZ(1,"mat-icon",16),n.qZA())}function AUe(t,r){if(1&t&&(n.TgZ(0,"button",17),n._UZ(1,"mat-icon",16),n.qZA()),2&t){n.oxw();var e=n.MAs(46);n.Q6J("matMenuTriggerFor",e)}}function OUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().listProjects()}),n._uU(1," Projects "),n.qZA()}}function IUe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){return n.CHM(e),n.oxw().backToProject()}),n._uU(1," Back to project "),n.qZA()}}function PUe(t,r){if(1&t&&(n.TgZ(0,"button",19)(1,"mat-icon"),n._uU(2,"more_vert"),n.qZA()()),2&t){n.oxw();var e=n.MAs(9);n.Q6J("matMenuTriggerFor",e)}}kk.\u0275fac=function(r){return new(r||kk)},kk.\u0275mod=n.oAB({type:kk}),kk.\u0275inj=n.cJS({imports:[[ln.BQ],ln.BQ]});var RUe=function(r){return["controller",r,"systemstatus"]},LUe=function(r){return["controller",r,"settings"]},ZUe=function(r){return["controller",r,"management","users"]},NUe=function(r){return["controller",r,"help"]},BUe=function(r){return["/controller",r,"loggeduser"]},FUe=function(){return["/controllers"]},UUe=function(r){return["/controller",r,"projects"]},HUe=function(r){return["controller",r,"preferences"]},jUe=function(r){return["controller",r,"image-manager"]},IO=function(){function t(r,e,i,o,a,s,l,u,f,h){var v=this;(0,j.Z)(this,t),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=f,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Tie,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new Io.w,this.router.events.subscribe(function(C){C instanceof Zh&&(v.controllerId=v.route.children[0].snapshot.paramMap.get("controller_id"),v.getData())})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof Zh&&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("http://".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 no(this,void 0,void 0,sz().mark(function i(){return sz().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(ok,{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()}}]),t}();IO.\u0275fac=function(r){return new(r||IO)(n.Y36(sl),n.Y36(bN.p),n.Y36(zg),n.Y36($n),n.Y36(ul),n.Y36(ri),n.Y36(kr),n.Y36(xr),n.Y36(vr),n.Y36(Xl.Y))},IO.\u0275cmp=n.Xpm({type:IO,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&n.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,n.Jf7)},decls:77,vars:42,consts:[["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"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["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&&(n.TgZ(0,"header")(1,"mat-toolbar",0),n.YNc(2,DUe,2,0,"button",1),n.YNc(3,AUe,2,1,"button",2),n.YNc(4,OUe,2,0,"button",3),n.YNc(5,IUe,2,0,"button",3),n._UZ(6,"span",4),n.YNc(7,PUe,3,1,"button",5),n.TgZ(8,"mat-menu",null,6)(10,"button",7)(11,"mat-icon"),n._uU(12,"info"),n.qZA(),n.TgZ(13,"span"),n._uU(14,"System status"),n.qZA()(),n.TgZ(15,"button",7)(16,"mat-icon"),n._uU(17,"settings"),n.qZA(),n.TgZ(18,"span"),n._uU(19,"Settings"),n.qZA()(),n.TgZ(20,"button",7)(21,"mat-icon"),n._uU(22,"groups"),n.qZA(),n.TgZ(23,"span"),n._uU(24,"Management"),n.qZA()(),n.TgZ(25,"button",7)(26,"mat-icon"),n._uU(27,"help"),n.qZA(),n.TgZ(28,"span"),n._uU(29,"Help"),n.qZA()(),n.TgZ(30,"button",7)(31,"mat-icon"),n._uU(32,"person"),n.qZA(),n.TgZ(33,"span"),n._uU(34,"User info"),n.qZA()(),n.TgZ(35,"button",8),n.NdJ("click",function(){return e.goToDocumentation()}),n.TgZ(36,"mat-icon"),n._uU(37,"person"),n.qZA(),n.TgZ(38,"span"),n._uU(39,"API documentation"),n.qZA()(),n.TgZ(40,"button",8),n.NdJ("click",function(){return e.logout()}),n.TgZ(41,"mat-icon"),n._uU(42,"highlight_off"),n.qZA(),n.TgZ(43,"span"),n._uU(44,"Logout"),n.qZA()()(),n.TgZ(45,"mat-menu",9,10)(47,"button",11)(48,"mat-icon"),n._uU(49,"developer_board"),n.qZA(),n.TgZ(50,"span"),n._uU(51,"Controllers"),n.qZA()(),n.TgZ(52,"button",11)(53,"mat-icon"),n._uU(54,"work"),n.qZA(),n.TgZ(55,"span"),n._uU(56,"Projects"),n.qZA()(),n.TgZ(57,"button",7)(58,"mat-icon"),n._uU(59,"settings_applications"),n.qZA(),n.TgZ(60,"span"),n._uU(61,"Template preferences"),n.qZA()(),n.TgZ(62,"button",7)(63,"mat-icon"),n._uU(64,"collections"),n.qZA(),n.TgZ(65,"span"),n._uU(66,"Image manager"),n.qZA()(),n.TgZ(67,"button",12),n.NdJ("click",function(){return e.addNewTemplate()}),n.TgZ(68,"mat-icon"),n._uU(69,"control_point"),n.qZA(),n.TgZ(70,"span"),n._uU(71,"New template"),n.qZA()()()()(),n.TgZ(72,"main",13),n._UZ(73,"router-outlet"),n.qZA(),n._UZ(74,"app-progress"),n.TgZ(75,"footer",14),n._uU(76),n.qZA()),2&r&&(n.xp6(2),n.Q6J("ngIf",!e.isLoginPage&&"/controllers"==e.router.url),n.xp6(1),n.Q6J("ngIf",!e.isLoginPage&&"/controllers"!=e.router.url),n.xp6(1),n.Q6J("ngIf",!e.recentlyOpenedProjectId&&e.controllerIdProjectList),n.xp6(1),n.Q6J("ngIf",e.recentlyOpenedProjectId&&e.recentlyOpenedcontrollerId&&!e.isLoginPage),n.xp6(2),n.Q6J("ngIf",!e.isLoginPage&&"/controllers"!=e.router.url),n.xp6(3),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(25,RUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(27,LUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(29,ZUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(31,NUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(33,BUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId),n.xp6(5),n.Q6J("disabled",!e.controllerId),n.xp6(5),n.Q6J("overlapTrigger",!1),n.xp6(2),n.Q6J("routerLink",n.DdM(35,FUe)),n.xp6(5),n.Q6J("routerLink",n.VKq(36,UUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(38,HUe,e.controllerId)),n.xp6(5),n.Q6J("disabled",!e.controllerId)("routerLink",n.VKq(40,jUe,e.controllerId)),n.xp6(14),n.hij("GNS3 Web UI \xa9 2022 - v",e.uiVersion,""))},directives:[OO,Ct.O5,Tn,Vn,vi,Pa,ss,Hr,ta,Bh,qy],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 rc=function(){function t(r){(0,j.Z)(this,t),this.controllerService=r}return(0,V.Z)(t,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),t}();rc.\u0275fac=function(r){return new(r||rc)(n.LFG(vr))},rc.\u0275prov=n.Yz7({token:rc,factory:rc.\u0275fac});var Iie=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},Pie=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.list(r)}),(0,mr.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function Rie(t){t.get("password").value===t.get("confirmPassword").value||t.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var pl=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/users/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/users/".concat(i,"/groups"))}},{key:"getPermissionsByUserId",value:function(e,i){return this.httpController.get(e,"/users/".concat(i,"/permissions"))}},{key:"addPermission",value:function(e,i,o){return this.httpController.put(e,"/users/".concat(i,"/permissions/").concat(o.permission_id),{})}},{key:"removePermission",value:function(e,i,o){return this.httpController.delete(e,"/users/".concat(i,"/permissions/").concat(o.permission_id))}}]),t}();pl.\u0275fac=function(r){return new(r||pl)(n.LFG(Wo.zw))},pl.\u0275prov=n.Yz7({token:pl,factory:pl.\u0275fac});var wu=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),t}();wu.\u0275fac=function(r){return new(r||wu)(n.LFG(Wo.zw))},wu.\u0275prov=n.Yz7({token:wu,factory:wu.\u0275fac,providedIn:"root"});var zUe=["panel"];function WUe(t,r){if(1&t&&(n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA()),2&t){var e=r.id,i=n.oxw();n.Q6J("id",i.id)("ngClass",i._classList),n.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var YUe=0,GUe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.option=e}),qUe=(0,ln.Kr)(function(){return(0,V.Z)(function t(){(0,j.Z)(this,t)})}()),Lie=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function KUe(){return{autoActiveFirstOption:!1}}});var PO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=Io.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new n.vpe,l.opened=new n.vpe,l.closed=new n.vpe,l.optionActivated=new n.vpe,l._classList={},l.id="mat-autocomplete-".concat(YUe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l}return(0,V.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,Un.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,Un.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 Ai.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 GUe(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}(qUe);PO.\u0275fac=function(r){return new(r||PO)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Lie),n.Y36(Zi.t4))},PO.\u0275dir=n.lG2({type:PO,viewQuery:function(r,e){var i;(1&r&&(n.Gf(n.Rgc,7),n.Gf(zUe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.template=i.first),n.iGM(i=n.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]});var rf=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,V.Z)(e)}(PO);rf.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(rf)))(e||rf)}}(),rf.\u0275cmp=n.Xpm({type:rf,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(n.Suo(i,ln.K7,5),n.Suo(i,ln.ey,5)),2&r)&&(n.iGM(o=n.CRH())&&(e.optionGroups=o),n.iGM(o=n.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:ln.HF,useExisting:rf}]),n.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(n.F$t(),n.YNc(0,WUe,3,4,"ng-template"))},directives:[Ct.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}\n"],encapsulation:2,changeDetection:0});var Zie=new n.OlP("mat-autocomplete-scroll-strategy");var QUe={provide:Zie,deps:[Ao.aV],useFactory:function JUe(t){return function(){return t.scrollStrategies.reposition()}}},XUe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return of}),multi:!0};var RO=function(){function t(r,e,i,o,a,s,l,u,f,h,v){var C=this;(0,j.Z)(this,t),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=f,this._viewportRuler=h,this._defaults=v,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Io.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qn.xQ,this._windowBlurHandler=function(){C._canOpenOnNextFocus=C._document.activeElement!==C._element.nativeElement||C.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,H5.P)(function(){var B=C.autocomplete?C.autocomplete.options:null;return B?B.changes.pipe((0,ua.O)(B),(0,xo.w)(function(){return To.T.apply(void 0,(0,$t.Z)(B.map(function(G){return G.onSelectionChange})))})):C._zone.onStable.pipe((0,to.q)(1),(0,xo.w)(function(){return C.optionSelections}))}),this._scrollStrategy=s}return(0,V.Z)(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,Un.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._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,To.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Ei.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Ei.h)(function(){return e._overlayAttached})):(0,pr.of)()).pipe((0,mr.U)(function(i){return i instanceof ln.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,To.T)((0,Pf.R)(this._document,"click"),(0,Pf.R)(this._document,"auxclick"),(0,Pf.R)(this._document,"touchend")).pipe((0,Ei.h)(function(i){var o=(0,Zi.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().then(function(){return i._setTriggerValue(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,Gr.Vb)(e);if(i===Gr.hY&&!o&&e.preventDefault(),this.activeOption&&i===Gr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===Gr.LH||i===Gr.JH;i===Gr.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)}}},{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._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,to.q)(1)),o=this.autocomplete.options.changes.pipe((0,hs.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,BH.g)(0));return(0,To.T)(i,o).pipe((0,xo.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.autocomplete.opened.emit())}),e.panelClosingActions}),(0,to.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,o=null!=i?i:"";this._formField?this._formField._control.value=o:this._element.nativeElement.value=o,this._previousValue=o}},{key:"_setValueAndClose",value:function(e){var i=e&&e.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(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 yo.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,o.keydownEvents().subscribe(function(s){(s.keyCode===Gr.hY&&!(0,Gr.Vb)(s)||s.keyCode===Gr.LH&&(0,Gr.Vb)(s,"altKey"))&&(e._closeKeyEventStream.next(),e._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),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 Ao.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,ln.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,ln.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}}]),t}();RO.\u0275fac=function(r){return new(r||RO)(n.Y36(n.SBq),n.Y36(Ao.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Zie),n.Y36(Es.Is,8),n.Y36(Fn.G_,9),n.Y36(Ct.K0,8),n.Y36(ka.rL),n.Y36(Lie,8))},RO.\u0275dir=n.lG2({type:RO,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]});var of=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){var i;return(0,j.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,V.Z)(e)}(RO);of.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(of)))(e||of)}}(),of.\u0275dir=n.lG2({type:of,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&n.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&&n.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:[n._Bn([XUe]),n.qOj]});var LO=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.elementRef=r});LO.\u0275fac=function(r){return new(r||LO)(n.Y36(n.SBq))},LO.\u0275dir=n.lG2({type:LO});var ZO=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(LO);ZO.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(ZO)))(e||ZO)}}(),ZO.\u0275dir=n.lG2({type:ZO,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[n.qOj]});var Tk=(0,V.Z)(function t(){(0,j.Z)(this,t)});function $Ue(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is required"),n.qZA())}function e7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is incorrect"),n.qZA())}function t7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this username exists"),n.qZA())}function n7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is required"),n.qZA())}function r7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is invalid"),n.qZA())}function i7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"A password between 6 and 100 characters is required."),n.qZA())}function o7e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password and Confirm password must be the same. "),n.qZA())}function a7e(t,r){if(1&t&&(n.TgZ(0,"mat-option",20),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function s7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",21)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"mat-icon",22),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().deleteGroup(s)}),n._uU(5,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.Oqu(i.name)}}Tk.\u0275fac=function(r){return new(r||Tk)},Tk.\u0275mod=n.oAB({type:Tk}),Tk.\u0275inj=n.cJS({providers:[QUe],imports:[[Ao.U8,ln.Ng,ln.BQ,Ct.ez],ka.ZD,ln.Ng,ln.BQ]});var NO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new ne.NI}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new ne.cw({username:new ne.NI(null,[ne.kI.required,ne.kI.minLength(3),ne.kI.pattern("[a-zA-Z0-9_-]+$")],[Iie(this.controller,this.userService)]),full_name:new ne.NI,email:new ne.NI(null,[ne.kI.email,ne.kI.required],[Pie(this.controller,this.userService)]),password:new ne.NI(null,[ne.kI.required,ne.kI.minLength(6),ne.kI.maxLength(100)]),confirmPassword:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required]),is_active:new ne.NI(!0)},{validators:[Rie]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,ua.O)(""),(0,mr.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:""}}]),t}();function l7e(t,r){if(1&t&&(n.TgZ(0,"li"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}NO.\u0275fac=function(r){return new(r||NO)(n.Y36(Ar),n.Y36(pl),n.Y36($n),n.Y36(wu))},NO.\u0275cmp=n.Xpm({type:NO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new user"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2),n._UZ(4,"input",3),n.YNc(5,$Ue,2,0,"mat-error",4),n.YNc(6,e7e,2,0,"mat-error",4),n.YNc(7,t7e,2,0,"mat-error",4),n.qZA(),n.TgZ(8,"mat-form-field",2),n._UZ(9,"input",5),n.qZA(),n.TgZ(10,"mat-form-field",2),n._UZ(11,"input",6),n.YNc(12,n7e,2,0,"mat-error",4),n.YNc(13,r7e,2,0,"mat-error",4),n.qZA(),n.TgZ(14,"mat-form-field",2),n._UZ(15,"input",7),n.YNc(16,i7e,2,0,"mat-error",4),n.qZA(),n.TgZ(17,"mat-form-field",2),n._UZ(18,"input",8),n.YNc(19,o7e,2,0,"mat-error",4),n.qZA(),n.TgZ(20,"mat-checkbox",9),n._uU(21,"Is active"),n.qZA(),n._UZ(22,"mat-divider",10),n.TgZ(23,"h6"),n._uU(24," Add user to groups : "),n.qZA(),n.TgZ(25,"mat-form-field",2)(26,"mat-label"),n._uU(27,"Groups"),n.qZA(),n._UZ(28,"input",11),n.TgZ(29,"mat-autocomplete",12,13),n.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),n.YNc(31,a7e,2,2,"mat-option",14),n.ALo(32,"async"),n.qZA()(),n.TgZ(33,"div",15),n.YNc(34,s7e,6,1,"div",16),n.qZA(),n.TgZ(35,"div",17)(36,"button",18),n.NdJ("click",function(){return e.onCancelClick()}),n._uU(37,"Cancel"),n.qZA(),n.TgZ(38,"button",19),n.NdJ("click",function(){return e.onAddClick()}),n._uU(39," Add user "),n.qZA()()()),2&r){var i=n.MAs(30);n.xp6(2),n.Q6J("formGroup",e.addUserForm),n.xp6(3),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),n.xp6(5),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),n.xp6(3),n.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),n.xp6(3),n.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),n.xp6(9),n.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.lcZ(32,14,e.filteredGroups)),n.xp6(3),n.Q6J("ngForOf",e.groupsToAdd),n.xp6(4),n.Q6J("disabled",!e.addUserForm.valid)}},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Ui,t0.d,Fn.hX,of,ne.oH,rf,Ct.sg,ln.ey,Vn,Zr,Tn],pipes:[Ct.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 Ek=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();Ek.\u0275fac=function(r){return new(r||Ek)(n.Y36(Ar),n.Y36(na))},Ek.\u0275cmp=n.Xpm({type:Ek,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure you want to delete the following users ?"),n.qZA(),n.TgZ(2,"ul"),n.YNc(3,l7e,2,2,"li",1),n.qZA(),n.TgZ(4,"div",2)(5,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(6,"No, cancel"),n.qZA(),n.TgZ(7,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(8," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("ngForOf",e.data.users))},directives:[Vr,Ct.sg,Zr,Tn],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var BO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:[]}}]),t}();BO.\u0275fac=function(r){return new(r||BO)},BO.\u0275pipe=n.Yjl({name:"userFilter",type:BO,pure:!0});var u7e=["usersPaginator"],c7e=["usersSort"];function d7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function f7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function p7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Username"),n.qZA())}var h7e=function(r,e){return["/controller",r,"management","users",e]};function m7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",37),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.WLB(3,h7e,i.controller.id,e.user_id))("matTooltip",e.username),n.xp6(1),n.Oqu(e.username)}}function _7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Full Name"),n.qZA())}function g7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",38),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.full_name),n.xp6(1),n.Oqu(e.full_name)}}function v7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Mail"),n.qZA())}function y7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",38),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.email),n.xp6(1),n.Oqu(e.email)}}function b7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",39),n._uU(1," Active"),n.qZA())}function C7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",40),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.is_active)}}function w7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Last Login"),n.qZA())}function k7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",41),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.last_login)}}function T7e(t,r){1&t&&(n.TgZ(0,"mat-header-cell",36),n._uU(1," Last Update"),n.qZA())}function E7e(t,r){if(1&t&&(n.TgZ(0,"mat-cell",41),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.updated_at?e.updated_at:e.created_at)}}function M7e(t,r){1&t&&n._UZ(0,"mat-header-cell",33)}function S7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",33)(1,"button",42),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete(a)}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function x7e(t,r){1&t&&n._UZ(0,"mat-header-row")}function D7e(t,r){1&t&&n._UZ(0,"mat-row")}var A7e=function(){return{standalone:!0}},O7e=function(){return[5,10,20]};function I7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"User Management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteMultiple()}),n._uU(6," Delete Users "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addUser()}),n._uU(8," Add User "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),n.ALo(17,"userFilter"),n.ynx(18,14),n.YNc(19,d7e,2,2,"mat-header-cell",15),n.YNc(20,f7e,2,1,"mat-cell",16),n.BQk(),n.ynx(21,17),n.YNc(22,p7e,2,0,"mat-header-cell",18),n.YNc(23,m7e,3,6,"mat-cell",19),n.BQk(),n.ynx(24,20),n.YNc(25,_7e,2,0,"mat-header-cell",18),n.YNc(26,g7e,3,2,"mat-cell",19),n.BQk(),n.ynx(27,21),n.YNc(28,v7e,2,0,"mat-header-cell",18),n.YNc(29,y7e,3,2,"mat-cell",19),n.BQk(),n.ynx(30,22),n.YNc(31,b7e,2,0,"mat-header-cell",23),n.YNc(32,C7e,2,1,"mat-cell",24),n.BQk(),n.ynx(33,25),n.YNc(34,w7e,2,0,"mat-header-cell",18),n.YNc(35,k7e,2,1,"mat-cell",26),n.BQk(),n.ynx(36,27),n.YNc(37,T7e,2,0,"mat-header-cell",18),n.YNc(38,E7e,2,1,"mat-cell",26),n.BQk(),n.ynx(39,28),n.YNc(40,M7e,1,0,"mat-header-cell",15),n.YNc(41,S7e,4,0,"mat-cell",16),n.BQk(),n.YNc(42,x7e,1,0,"mat-header-row",29),n.YNc(43,D7e,1,0,"mat-row",30),n.qZA(),n._UZ(44,"mat-paginator",31,32),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,A7e)),n.xp6(3),n.Q6J("dataSource",n.xi3(17,7,i.dataSource,i.searchText)),n.xp6(28),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,O7e))}}function P7e(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",43),n.qZA())}var FO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new _w,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new po.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,V.Z)(t,[{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(NO,{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(Ek,{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(Ek,{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())})}}]),t}();function R7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),n._uU(3),n.qZA(),n.TgZ(4,"mat-list-item"),n._uU(5),n.qZA(),n.TgZ(6,"mat-list-item"),n._uU(7),n.qZA()(),n.TgZ(8,"div",6)(9,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().copyToken()}),n._uU(10,"Click to copy access token"),n.qZA(),n._UZ(11,"br"),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(3),n.hij(" Username: ",i.user.username," "),n.xp6(2),n.hij(" Full name: ",i.user.full_name," "),n.xp6(2),n.hij(" Email: ",i.user.email," ")}}FO.\u0275fac=function(r){return new(r||FO)(n.Y36(xr),n.Y36(kr),n.Y36(pl),n.Y36(ul),n.Y36(vr),n.Y36(ri),n.Y36($n))},FO.\u0275cmp=n.Xpm({type:FO,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(u7e,5),n.Gf(c7e,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.usersPaginator=i),n.iGM(i=n.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&&(n.YNc(0,I7e,46,12,"div",0),n.YNc(1,P7e,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[Ct.O5,Tn,ne._Y,ne.JL,ne.F,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,vi,Vn,Da,Oa,Aa,Ia,ed,ql],pipes:[BO],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;bottom:0;left:0;right:0;top:0;width:175px}"]});var UO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,V.Z)(t,[{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")}}]),t}();UO.\u0275fac=function(r){return new(r||UO)(n.Y36(xr),n.Y36(vr),n.Y36(pl),n.Y36($n))},UO.\u0275cmp=n.Xpm({type:UO,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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),n._uU(4,"Logged in user info"),n.qZA()()(),n.TgZ(5,"div",4),n.YNc(6,R7e,12,3,"mat-card",5),n.qZA()()),2&r&&(n.xp6(6),n.Q6J("ngIf",e.user))},directives:[Ct.O5,Si,Hh,os,Tn],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var Yg=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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(as.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(as.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))}}]),t}();function lz(){lz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function L7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),n._uU(4,"Would you like to automatically install appliances for this image?"),n.qZA()(),n.TgZ(5,"div",3)(6,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(7,"mat-icon"),n._uU(8,"close"),n.qZA()()()(),n.TgZ(9,"div",5)(10,"mat-radio-group",6),n.NdJ("change",function(a){return n.CHM(e),n.oxw().selectInstallApplianceOption(a)}),n.TgZ(11,"mat-radio-button",7),n._uU(12," Yes "),n.qZA(),n.TgZ(13,"mat-radio-button",8),n._uU(14," No "),n.qZA()()(),n.TgZ(15,"div",9)(16,"button",10),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.isInstallAppliance=!a.isInstallAppliance}),n._uU(17,"Next"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(10),n.Q6J("value",i.install_appliance),n.xp6(1),n.Q6J("checked",i.install_appliance),n.xp6(2),n.Q6J("checked",!i.install_appliance)}}function Z7e(t,r){1&t&&(n.TgZ(0,"h5"),n._uU(1,"Please Select image"),n.qZA())}function N7e(t,r){1&t&&(n.TgZ(0,"p",17),n._uU(1,"Uploaded image details"),n.qZA())}function B7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",18)(1,"input",19,20),n.NdJ("onFileSelected",function(a){return n.CHM(e),n.oxw(2).uploadImageFile(a)}),n.qZA(),n.TgZ(3,"button",21),n.NdJ("click",function(){return n.CHM(e),n.MAs(2).click()}),n._uU(4,"Browse"),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("uploader",i.uploaderImage)}}function F7e(t,r){if(1&t&&n._UZ(0,"mat-progress-bar",26),2&t){var e=n.oxw(4);n.Q6J("value",e.uploadProgress.progress)}}function U7e(t,r){1&t&&n._UZ(0,"mat-progress-bar",26),2&t&&n.Q6J("value",0)}function H7e(t,r){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,F7e,1,1,"mat-progress-bar",25),n.YNc(2,U7e,1,1,"mat-progress-bar",25),n.qZA()),2&t){var e=n.oxw().$implicit,i=n.oxw(2);n.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function j7e(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=n.oxw().$implicit,i=n.oxw(2);n.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),n.xp6(1),n.hij(" ",i.uploadProgress.progress+" %"," ")}}function z7e(t,r){1&t&&(n.TgZ(0,"div",27),n._uU(1),n.qZA()),2&t&&(n.xp6(1),n.hij(" ","0 %"," "))}Yg.\u0275fac=function(r){return new(r||Yg)(n.LFG(Wo.zw))},Yg.\u0275prov=n.Yz7({token:Yg,factory:Yg.\u0275fac,providedIn:"root"});var W7e=function(r){return{"uploaded-error-text":r}};function V7e(t,r){if(1&t&&(n.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),n._uU(3),n.qZA()(),n.YNc(4,H7e,3,5,"div",23),n.YNc(5,j7e,2,4,"div",23),n.YNc(6,z7e,2,1,"div",24),n.qZA()),2&t){var e=r.$implicit,i=r.index,o=n.oxw(2);n.xp6(1),n.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),n.xp6(1),n.Q6J("ngClass",n.VKq(11,W7e,e.isError)),n.xp6(1),n.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),n.xp6(1),n.Q6J("ngIf",!e.isUploaded),n.xp6(1),n.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),n.xp6(1),n.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 Y7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",9)(1,"button",10),n.NdJ("click",function(){n.CHM(e);var o=n.oxw(2);return o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1)}),n._uU(2," Cancel "),n.qZA()()}}function G7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",11)(2,"div",12),n.YNc(3,Z7e,2,0,"h5",0),n.YNc(4,N7e,2,0,"p",13),n.qZA(),n.YNc(5,B7e,5,1,"div",14),n.TgZ(6,"div")(7,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close()}),n.TgZ(8,"mat-icon"),n._uU(9,"close"),n.qZA()()()(),n.YNc(10,V7e,7,13,"div",15),n.YNc(11,Y7e,3,0,"div",16),n.qZA()}if(2&t){var i=n.oxw();n.xp6(3),n.Q6J("ngIf",i.uploaderImage.queue.length<=0),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length>0),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length<=0),n.xp6(1),n.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),n.xp6(4),n.Q6J("ngForOf",i.uploaderImage.queue),n.xp6(1),n.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var HO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new eg({}),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 no(this,void 0,void 0,lz().mark(function i(){var o,a,s;return lz().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,cn.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(f){o.e(f)}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),f=e.uploaderImage.queue[o];f.url=u,f.options&&(f.options.disableMultipart=!0),f.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(f)},l.readAsText(s)})}}]),t}();function uz(){uz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}function q7e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit,i=r.index;n.xp6(1),n.AsE("",i+1,". ",null==e?null:e.filename,"")}}function K7e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"h1",1),n._uU(2,"Do you want delete all files ?."),n.qZA(),n.TgZ(3,"div",2)(4,"p"),n._uU(5,"Your selected files"),n.qZA(),n.YNc(6,q7e,2,2,"p",3),n.qZA(),n.TgZ(7,"div",4)(8,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().deleteAll()}),n._uU(9,"Delete"),n.qZA(),n.TgZ(10,"button",6),n._uU(11,"Cancel"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(6),n.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function J7e(t,r){1&t&&(n.TgZ(0,"div")(1,"h1",7),n._uU(2,"Please wait."),n.qZA(),n.TgZ(3,"div",8),n._UZ(4,"mat-spinner",9),n.qZA()())}function Q7e(t,r){if(1&t&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&t){var e=n.oxw(),i=e.index,o=e.$implicit;n.xp6(1),n.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}HO.\u0275fac=function(r){return new(r||HO)(n.Y36(na),n.Y36(Ar),n.Y36(Yg),n.Y36($n),n.Y36(jc))},HO.\u0275cmp=n.Xpm({type:HO,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",".qcow2, .bin,.image,.qcow2,.vmdk,.img,.tmp","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&&(n.YNc(0,L7e,18,3,"div",0),n.YNc(1,G7e,12,8,"div",0)),2&r&&(n.Q6J("ngIf",!e.isInstallAppliance),n.xp6(1),n.Q6J("ngIf",e.isInstallAppliance))},directives:[Ct.O5,Tn,Vn,Ju,_s,Ys,Zr,Zc,Ct.sg,Ct.mk,m0],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:0px;top:0px}.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,rn.X$)("detailExpand",[(0,rn.SB)("collapsed",(0,rn.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,rn.SB)("expanded",(0,rn.oB)({height:"*",visibility:"visible"})),(0,rn.eR)("expanded <=> collapsed",(0,rn.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var X7e=function(r){return{"deleted-error-text":r}};function $7e(t,r){if(1&t&&(n.TgZ(0,"p",12),n.YNc(1,Q7e,2,2,"span",0),n.qZA()),2&t){var e=r.$implicit;n.Q6J("ngClass",n.VKq(2,X7e,null==e||null==e.error?null:e.error.message)),n.xp6(1),n.Q6J("ngIf",null!=e)}}function e9e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"Images can't be deleted because image used in one or more template."),n.qZA(),n.YNc(3,$7e,2,4,"p",11),n.qZA()),2&t){var e=n.oxw(2);n.xp6(3),n.Q6J("ngForOf",e.deleteFliesDetails)}}function t9e(t,r){if(1&t&&(n.TgZ(0,"div")(1,"h5",13),n._uU(2),n.qZA()()),2&t){var e=n.oxw(2);n.xp6(2),n.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function n9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",2),n.YNc(2,e9e,4,1,"div",0),n.YNc(3,t9e,3,1,"div",0),n.qZA(),n.TgZ(4,"div",4)(5,"button",10),n.NdJ("click",function(){return n.CHM(e),n.oxw().dialogRef.close(!1)}),n._uU(6,"Close"),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngIf",i.deleteFliesDetails.length>0),n.xp6(1),n.Q6J("ngIf",i.fileNotDeleted.length>0)}}var jO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return no(this,void 0,void 0,uz().mark(function e(){return uz().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,Vd.K)(function(a){return(0,pr.of)(a)})))}),fo.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})}}]),t}();jO.\u0275fac=function(r){return new(r||jO)(n.Y36(na),n.Y36(Ar),n.Y36(Yg),n.Y36($n))},jO.\u0275cmp=n.Xpm({type:jO,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&&(n.YNc(0,K7e,12,1,"div",0),n.YNc(1,J7e,5,0,"div",0),n.YNc(2,n9e,7,2,"div",0)),2&r&&(n.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),n.xp6(1),n.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},directives:[Ct.O5,Vr,Ju,Ct.sg,Zr,Tn,d0,ql,Ct.mk],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var r9e=function(){function t(){(0,j.Z)(this,t),this.dataChange=new go.X([])}return(0,V.Z)(t,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),t}(),i9e=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,V.Z)(e,[{key:"connect",value:function(){var o=this;return(0,To.T)(this.controllerDatabase.dataChange).pipe((0,mr.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(po.o2);function o9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell")(1,"mat-checkbox",19),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw();return a?s.selectAllImages():null}),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function a9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell")(1,"mat-checkbox",20),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw();return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function s9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," File Name "),n.qZA())}function l9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",21),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.filename)}}function u9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Image Type "),n.qZA())}function c9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.image_type," ")}}function d9e(t,r){1&t&&(n.TgZ(0,"mat-header-cell"),n._uU(1," Image Size "),n.qZA())}function f9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function p9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",23),n.NdJ("click",function(){return n.CHM(e),n.oxw(2).deleteAllFiles()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function h9e(t,r){if(1&t&&(n.TgZ(0,"mat-header-cell"),n.YNc(1,p9e,3,0,"button",22),n.qZA()),2&t){var e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function m9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",23),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().deleteFile(o.path)}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function _9e(t,r){if(1&t&&(n.TgZ(0,"mat-cell"),n.YNc(1,m9e,3,0,"button",22),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("ngIf",i.selection.isSelected(e))}}function g9e(t,r){1&t&&n._UZ(0,"mat-header-row")}function v9e(t,r){1&t&&n._UZ(0,"mat-row")}var zO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new r9e,this.isAllDelete=!1,this.selection=new po.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,V.Z)(t,[{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 i9e(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(HO,{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(jO,{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")})}}]),t}();function y9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password must be between 6 and 100 characters. "),n.qZA())}function b9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Password and Confirm password must be the same. "),n.qZA())}zO.\u0275fac=function(r){return new(r||zO)(n.Y36(Yg),n.Y36(ul),n.Y36(xr),n.Y36(vr),n.Y36(zh),n.Y36(ri),n.Y36($n))},zO.\u0275cmp=n.Xpm({type:zO,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"],[1,"table-link"],["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&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),n._uU(5,"Image Manager"),n.qZA()(),n.TgZ(6,"div",4)(7,"button",5),n.NdJ("click",function(){return e.addImageDialog()}),n.TgZ(8,"mat-icon"),n._uU(9,"add"),n.qZA(),n._uU(10," Add Image "),n.qZA()()()(),n.TgZ(11,"div",6),n._UZ(12,"app-controller-discovery"),n.TgZ(13,"div",7)(14,"mat-table",8,9),n.ynx(16,10),n.YNc(17,o9e,2,2,"mat-header-cell",11),n.YNc(18,a9e,2,1,"mat-cell",12),n.BQk(),n.ynx(19,13),n.YNc(20,s9e,2,0,"mat-header-cell",11),n.YNc(21,l9e,3,1,"mat-cell",12),n.BQk(),n.ynx(22,14),n.YNc(23,u9e,2,0,"mat-header-cell",11),n.YNc(24,c9e,2,1,"mat-cell",12),n.BQk(),n.ynx(25,15),n.YNc(26,d9e,2,0,"mat-header-cell",11),n.YNc(27,f9e,2,1,"mat-cell",12),n.BQk(),n.ynx(28,16),n.YNc(29,h9e,2,1,"mat-header-cell",11),n.YNc(30,_9e,2,1,"mat-cell",12),n.BQk(),n.YNc(31,g9e,1,0,"mat-header-row",17),n.YNc(32,v9e,1,0,"mat-row",18),n.qZA()()()()),2&r&&(n.xp6(14),n.Q6J("dataSource",e.dataSource),n.xp6(17),n.Q6J("matHeaderRowDef",e.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",e.displayedColumns))},directives:[Tn,Vn,gk,ca,aa,fa,Sa,Ui,da,xa,Ct.O5,Da,Oa,Aa,Ia],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}"]});var WO=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.user=this.data.user,this.editPasswordForm=new ne.cw({password:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required]),confirmPassword:new ne.NI(null,[ne.kI.minLength(6),ne.kI.maxLength(100),ne.kI.required])},{validators:[Rie]})}},{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)})}}}]),t}();WO.\u0275fac=function(r){return new(r||WO)(n.Y36(Ar),n.Y36(na),n.Y36(pl),n.Y36($n))},WO.\u0275cmp=n.Xpm({type:WO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Change password for user : "),n.qZA(),n.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),n._UZ(5,"input",3),n.YNc(6,y9e,2,0,"mat-error",4),n.qZA(),n.TgZ(7,"mat-form-field",2),n._UZ(8,"input",5),n.YNc(9,b9e,2,0,"mat-error",4),n.qZA(),n.TgZ(10,"div",6)(11,"button",7),n.NdJ("click",function(){return e.onCancel()}),n._uU(12,"Cancel"),n.qZA(),n.TgZ(13,"button",8),n.NdJ("click",function(){return e.onPasswordSave()}),n._uU(14," Change password "),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("formGroup",e.editPasswordForm),n.xp6(3),n.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),n.xp6(3),n.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),n.xp6(4),n.Q6J("disabled",!e.editPasswordForm.valid))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Zr,Tn],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var cz=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,null,[{key:"getIdNameFromKey",value:function(e){return/{([^)]+)}/.exec(e)[1]}},{key:"findElementInObjectListFn",value:function(e){return function(o){var a=o.find(function(s){return s.name===e});if(!a)throw new Error("entry not found");return a}}},{key:"buildRequestURL",value:function(e,i,o){return function(a){var s="".concat(e.protocol,"//").concat(e.host,":").concat(e.port).concat(a.path);return o&&o.forEach(function(l){s=s.replace(l.key,l.value)}),i&&(s="".concat(s,"/").concat(i)),s}}},{key:"createResponseObject",value:function(e,i,o,a){var s=e?t.getIdNameFromKey(e):void 0;return function(l){return l instanceof Array||(l=[l]),0===l.length?(0,pr.of)([]):"{link_id}"===e?t.setLinkObjectInformation(l,i,o,a):t.setGenericObjectInformation(l,s)}}},{key:"setGenericObjectInformation",value:function(e,i){var o=Object.keys(e[0]),a=o.find(function(l){return l.match(/_id$|filename/)}),s=o.find(function(l){return l.match(/name/)});return e=e.map(function(l){return{id:l[i]||l[a],name:l[s]}}),(0,pr.of)(e)}},{key:"setLinkObjectInformation",value:function(e,i,o,a){return(0,Bc.D)(e.map(function(s){return t.getLinkInformation(s,i,o,a)}))}},{key:"getLinkInformation",value:function(e,i,o,a){var s=e.nodes.map(function(l){return o.getListByObjectId(a,"{node_id}",l.node_id,i)});return(0,Bc.D)(s).pipe((0,mr.U)(function(l){var u=l.reduce(function(f,h){return f.concat(h)},[]).map(function(f){return f.name}).join(" <-> ");return{id:e.link_id,name:u}}))}}]),t}(),C9e=function(){function t(){(0,j.Z)(this,t),this.cache=new Map}return(0,V.Z)(t,[{key:"update",value:function(e,i,o,a,s){var l=this.generateKey(e,i,o,a);this.cache.set(l,{expired:Date.now()+1e4,data:s})}},{key:"get",value:function(e,i,o,a){var s=this.generateKey(e,i,o,a),l=this.cache.get(s);if(l&&l.expired>Date.now())return l.data}},{key:"generateKey",value:function(e,i,o,a){return"".concat(e.id,"-").concat(i,"-").concat(o,"-").concat(a.map(function(s){return"".concat(s.key,"+").concat(s.value)}).join("."))}},{key:"searchByName",value:function(e){var i=[];return this.cache.forEach(function(o){o.data.forEach(function(a){a.name.includes(e)&&i.push(a)})}),i}}]),t}(),af=function(){function t(r){var e=this;(0,j.Z)(this,t),this.httpClient=r,this.cache=new C9e,this.allowed=["projects","images","templates","computes","symbols","notifications"],this.data=new Z1.t(1),this.objs=new Z1.t(1),this.bracketIdRegex=new RegExp("{(.*?)}","g"),this.uuidRegex=new RegExp("[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"),this.finalBracketIdRegex=new RegExp("{(.*?)}$"),this.loadLocalInformation(),this.data.subscribe(function(i){localStorage.setItem("api-definition",JSON.stringify(i))}),this.objs.subscribe(function(i){localStorage.setItem("api-definition-objs",JSON.stringify(i))}),this.httpClient.get("https://apiv3.gns3.net/openapi.json").subscribe(function(i){var o=e.apiObjectModelAdapter(i),a=e.apiPathModelAdapter(i);e.data.next(a),e.objs.next(o)})}return(0,V.Z)(t,[{key:"apiObjectModelAdapter",value:function(e){var i=this;function o(l){var u=e.paths[l];return!!u&&Object.keys(u).includes("get")}return Object.keys(e.paths).filter(function(l){return l.match(i.finalBracketIdRegex)}).filter(o).map(function a(l){var u=l.split("/");return{name:u.pop(),path:u.join("/")}}).filter(function(l){return o(l.path)})}},{key:"apiPathModelAdapter",value:function(e){var i=this;return Object.keys(e.paths).map(function(a){var s=a.split("/").filter(function(l){return!(""===l||"v3"===l)});return{originalPath:a,path:s.join("/"),subPaths:s}}).filter(function(a){return i.allowed.includes(a.subPaths[0])}).map(function(a){var s=Object.keys(e.paths[a.originalPath]);return Object.assign({methods:s.map(function(l){return l.toUpperCase()})},a)})}},{key:"getMethods",value:function(e){return this.getPath(e).pipe((0,mr.U)(function(i){var o=new Set;return i.forEach(function(a){a.methods.forEach(function(s){return o.add(s)})}),Array.from(o)}))}},{key:"getPath",value:function(e){var i=this;return this.data.asObservable().pipe((0,mr.U)(function(o){var a=e.split("/").filter(function(l){return!(""===l||"v3"===l)}),s=o;return a.forEach(function(l,u){if("*"!==l){var f=s.filter(function(h){var v;return null===(v=h.subPaths[u])||void 0===v?void 0:v.includes(l)});0===f.length&&(f=s.filter(function(h){var v;return null===(v=h.subPaths[u])||void 0===v?void 0:v.match(i.bracketIdRegex)})),s=f}}),s}))}},{key:"loadLocalInformation",value:function(){var e=JSON.parse(localStorage.getItem("api-definition"));e&&this.data.next(e);var i=JSON.parse(localStorage.getItem("api-definition-objs"));i&&this.objs.next(i)}},{key:"getPathNextElement",value:function(e){return this.getPath(e.join("/")).pipe((0,mr.U)(function(i){var o=new Set;return i.forEach(function(a){a.subPaths[e.length]&&o.add(a.subPaths[e.length])}),Array.from(o)}))}},{key:"getKeysForPath",value:function(e){var i=this;return this.getPath(e).pipe((0,mr.U)(function(o){var a=e.split("/").filter(function(s){return!(""===s||"v3"===s)});return o[0].subPaths.map(function(s,l){if(s.match(i.bracketIdRegex))return{key:s,value:a[l]}})}),(0,mr.U)(function(o){return o.filter(function(a){return void 0!==a})}))}},{key:"getListByObjectId",value:function(e,i,o,a){var s=this,l=this.cache.get(e,i,o,a);return l?(0,pr.of)(l):this.objs.pipe((0,mr.U)(cz.findElementInObjectListFn(i)),(0,mr.U)(cz.buildRequestURL(e,o,a)),(0,xo.w)(function(u){return s.httpClient.get(u,{headers:{Authorization:"Bearer ".concat(e.authToken)}})}),(0,xo.w)(cz.createResponseObject(i,a,this,e)),(0,hs.b)(function(u){return s.cache.update(e,i,o,a,u)}),(0,to.q)(1))}},{key:"getIdByObjNameFromCache",value:function(e){return this.cache.searchByName(e)}}]),t}();af.\u0275fac=function(r){return new(r||af)(n.LFG(Hu.eN))},af.\u0275prov=n.Yz7({token:af,factory:af.\u0275fac,providedIn:"root"});var Mk=function(){function t(r){(0,j.Z)(this,t),this.apiInformation=r}return(0,V.Z)(t,[{key:"transform",value:function(e,i){var o=this;return i?this.apiInformation.getKeysForPath(e).pipe((0,xo.w)(function(a){if(0===a.length)return(0,pr.of)([]);var s=a.map(function(l){return o.apiInformation.getListByObjectId(i,l.key,l.value,a)});return(0,Bc.D)(s)}),(0,mr.U)(function(a){var s="".concat(e);return a.forEach(function(l){l[0].id&&l[0].name&&(s=s.replace(l[0].id,l[0].name))}),s})):(0,pr.of)(e)}}]),t}();function w9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onClick()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_left"),n.qZA()()}}function k9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",4),n.NdJ("click",function(){return n.CHM(e),n.oxw().onClick()}),n.TgZ(1,"mat-icon"),n._uU(2,"keyboard_arrow_right"),n.qZA()()}}Mk.\u0275fac=function(r){return new(r||Mk)(n.Y36(af,16))},Mk.\u0275pipe=n.Yjl({name:"displayPath",type:Mk,pure:!0});var T9e=function(r,e){return{allow:r,left:e}},Gg=function(){function t(){(0,j.Z)(this,t),this.click=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onClick",value:function(){this.click.emit()}},{key:"getToolTip",value:function(){return"\n action: ".concat(this.permission.action,"\n methods: ").concat(this.permission.methods.join(","),"\n original path: ").concat(this.permission.path,"\n ")}}]),t}();function E9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is required "),n.qZA())}function M9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Username is incorrect "),n.qZA())}function S9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this username exists "),n.qZA())}function x9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is required "),n.qZA())}function D9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Email is invalid "),n.qZA())}function A9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"User with this email exists "),n.qZA())}Gg.\u0275fac=function(r){return new(r||Gg)},Gg.\u0275cmp=n.Xpm({type:Gg,selectors:[["app-editable-permission"]],inputs:{permission:"permission",controller:"controller",side:"side"},outputs:{click:"click"},decls:10,vars:14,consts:[["matTooltipClass","permission-tooltip",1,"box",3,"matTooltip","ngClass"],["mat-button","",3,"click",4,"ngIf"],[1,"content"],[1,"center"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n.YNc(1,w9e,3,0,"button",1),n.TgZ(2,"div",2)(3,"div",3),n._uU(4),n.qZA(),n.TgZ(5,"div",3),n._uU(6),n.ALo(7,"async"),n.ALo(8,"displayPath"),n.qZA()(),n.YNc(9,k9e,3,0,"button",1),n.qZA()),2&r&&(n.Q6J("matTooltip",e.getToolTip())("ngClass",n.WLB(11,T9e,"ALLOW"===e.permission.action,"LEFT"===e.side)),n.xp6(1),n.Q6J("ngIf","RIGHT"===e.side),n.xp6(3),n.Oqu(e.permission.methods.join(",")),n.xp6(2),n.Oqu(n.lcZ(7,6,n.xi3(8,8,e.permission.path,e.controller))),n.xp6(3),n.Q6J("ngIf","LEFT"===e.side))},directives:[vi,Ct.mk,Ct.O5,Tn,Vn],pipes:[Ct.Ov,Mk],styles:[".box[_ngcontent-%COMP%]{display:flex;flex-direction:row;border:1px solid;border-radius:20px;margin:10px;font-size:12px;font-family:monospace;justify-items:center;background-color:#8208085c;justify-content:flex-start}.left[_ngcontent-%COMP%]{justify-content:flex-end}.allow[_ngcontent-%COMP%]{background-color:#054c0561}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-around}.content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:20px}.center[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}button[_ngcontent-%COMP%]{border-radius:20px}"]});var O9e=function(r,e){return["/controller",r,"management","groups",e]};function I9e(t,r){if(1&t&&(n.TgZ(0,"li")(1,"a",26),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(1),n.Q6J("routerLink",n.WLB(2,O9e,i.controller.id,e.user_group_id)),n.xp6(1),n.Oqu(e.name)}}function P9e(t,r){if(1&t&&n._UZ(0,"app-editable-permission",27),2&t){var e=r.$implicit,i=n.oxw();n.Q6J("permission",e)("controller",i.controller)}}var R9e=function(r){return["/controller",r,"management","users"]},L9e=function(r,e){return["/controller",r,"management","users",e,"permissions"]},VO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.changingPassword=!1}return(0,V.Z)(t,[{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.permissions=i.permissions,e.initForm()})}},{key:"initForm",value:function(){this.editUserForm=new ne.cw({username:new ne.NI(this.user.username,[ne.kI.required,ne.kI.minLength(3),ne.kI.pattern("[a-zA-Z0-9_-]+$")],[Iie(this.controller,this.userService,this.user.username)]),full_name:new ne.NI(this.user.full_name),email:new ne.NI(this.user.email,[ne.kI.email,ne.kI.required],[Pie(this.controller,this.userService,this.user.email)]),is_active:new ne.NI(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(WO,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),t}();VO.\u0275fac=function(r){return new(r||VO)(n.Y36(pl),n.Y36($n),n.Y36(xr),n.Y36(kr),n.Y36(ri))},VO.\u0275cmp=n.Xpm({type:VO,selectors:[["app-user-detail"]],decls:54,vars:22,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","Permissions"],["mat-button","",3,"routerLink"],[3,"permission","controller",4,"ngFor","ngForOf"],[1,"table-link",3,"routerLink"],[3,"permission","controller"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7,"User Details"),n.qZA()()(),n.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),n._UZ(14,"input",11),n.YNc(15,E9e,2,0,"mat-error",12),n.YNc(16,M9e,2,0,"mat-error",12),n.YNc(17,S9e,2,0,"mat-error",12),n.qZA(),n.TgZ(18,"mat-form-field",10),n._UZ(19,"input",13),n.qZA(),n.TgZ(20,"mat-form-field",10),n._UZ(21,"input",14),n.YNc(22,x9e,2,0,"mat-error",12),n.YNc(23,D9e,2,0,"mat-error",12),n.YNc(24,A9e,2,0,"mat-error",12),n.qZA(),n.TgZ(25,"mat-checkbox",15),n._uU(26,"Is active"),n.qZA(),n.TgZ(27,"div")(28,"mat-checkbox",16),n._uU(29,"Is Superadmin"),n.qZA()(),n.TgZ(30,"div",17)(31,"button",18),n.NdJ("click",function(){return e.onEditClick()}),n._uU(32," Edit user "),n.qZA()()(),n.TgZ(33,"button",19),n.NdJ("click",function(){return e.onChangePassword()}),n._uU(34," Change Password "),n.qZA(),n.TgZ(35,"div")(36,"div"),n._uU(37),n.qZA(),n.TgZ(38,"div"),n._uU(39),n.qZA(),n.TgZ(40,"div"),n._uU(41),n.qZA(),n.TgZ(42,"div"),n._uU(43),n.qZA()()()(),n.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),n.YNc(47,I9e,3,5,"li",22),n.qZA()()(),n.TgZ(48,"mat-tab",23)(49,"div")(50,"button",24)(51,"mat-icon"),n._uU(52,"edit"),n.qZA()()(),n.YNc(53,P9e,1,2,"app-editable-permission",25),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(17,R9e,e.controller.id)),n.xp6(9),n.Q6J("formGroup",e.editUserForm),n.xp6(3),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),n.xp6(1),n.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),n.xp6(5),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),n.xp6(1),n.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),n.xp6(4),n.Q6J("checked",e.user.is_superadmin),n.xp6(3),n.Q6J("disabled",!e.editUserForm.valid),n.xp6(6),n.hij("Creation date: ",e.user.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.user.updated_at,""),n.xp6(2),n.hij("Last login: ",e.user.last_login,""),n.xp6(2),n.hij("UUID: ",e.user.user_id,""),n.xp6(4),n.Q6J("ngForOf",e.groups),n.xp6(3),n.Q6J("routerLink",n.WLB(19,L9e,e.controller.id,e.user.user_id)),n.xp6(3),n.Q6J("ngForOf",e.permissions))},directives:[Tn,vi,ta,Vn,so.SP,so.uX,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.O5,Fn.TO,Ui,Zr,Ct.sg,Ws,Gg],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var nb=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();function Z9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"a",2,3),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().activeLink=l}),n._uU(2),n.qZA()}if(2&t){var i=r.$implicit,o=n.MAs(1);n.MGl("routerLink","./",i,""),n.Q6J("active",o.isActive),n.xp6(2),n.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}nb.\u0275fac=function(r){return new(r||nb)(n.LFG(vr),n.LFG(pl))},nb.\u0275prov=n.Yz7({token:nb,factory:nb.\u0275fac,providedIn:"root"});var YO=function(){function t(r,e,i){(0,j.Z)(this,t),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","permissions"],this.activeLink=this.links[0]}return(0,V.Z)(t,[{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})}}]),t}();YO.\u0275fac=function(r){return new(r||YO)(n.Y36(xr),n.Y36(kr),n.Y36(vr))},YO.\u0275cmp=n.Xpm({type:YO,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&&(n.TgZ(0,"nav",0),n.YNc(1,Z9e,3,3,"a",1),n.qZA(),n._UZ(2,"router-outlet")),2&r&&(n.xp6(1),n.Q6J("ngForOf",e.links))},directives:[so.BU,Ct.sg,Ws,so.Nj,XC,Bh],styles:[""]});var Cm=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"list",value:function(e){return this.httpController.get(e,"/permissions")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/permissions",i)}},{key:"update",value:function(e,i){return this.httpController.put(e,"/permissions/".concat(i.permission_id),i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/permissions/".concat(i))}}]),t}();Cm.\u0275fac=function(r){return new(r||Cm)(n.LFG(Wo.zw))},Cm.\u0275prov=n.Yz7({token:Cm,factory:Cm.\u0275fac,providedIn:"root"});var rb=function(){function t(r,e){(0,j.Z)(this,t),this.permissionService=r,this.controllerService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.y(function(a){var s=e.paramMap.get("controller_id");o.controllerService.get(+s).then(function(l){o.permissionService.list(l).subscribe(function(u){a.next(u),a.complete()})})})}}]),t}();rb.\u0275fac=function(r){return new(r||rb)(n.LFG(Cm),n.LFG(vr))},rb.\u0275prov=n.Yz7({token:rb,factory:rb.\u0275fac,providedIn:"root"});var Sk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Sk.\u0275fac=function(r){return new(r||Sk)(n.LFG(vr),n.LFG(pl))},Sk.\u0275prov=n.Yz7({token:Sk,factory:Sk.\u0275fac,providedIn:"root"});var ib=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.userService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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.getPermissionsByUserId(u,l).subscribe(function(f){a.next(f),a.complete()})})})}}]),t}();ib.\u0275fac=function(r){return new(r||ib)(n.LFG(vr),n.LFG(pl))},ib.\u0275prov=n.Yz7({token:ib,factory:ib.\u0275fac,providedIn:"root"});var N9e=function(r,e){return function(i){return(0,op.H)(500).pipe((0,xo.w)(function(){return e.getGroups(r)}),(0,mr.U)(function(o){return console.log(o),o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},ob=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),t}();function B9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group name is required"),n.qZA())}function F9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group name is incorrect"),n.qZA())}function U9e(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Group with this name exists"),n.qZA())}function H9e(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.AsE(" ",e.username," - ",e.email," ")}}function j9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",16)(2,"div"),n._uU(3),n.qZA(),n.TgZ(4,"div"),n._uU(5),n.qZA(),n.TgZ(6,"mat-icon",17),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().delUser(s)}),n._uU(7,"delete"),n.qZA()()()}if(2&t){var i=r.$implicit;n.xp6(3),n.Oqu(i.username),n.xp6(2),n.Oqu(i.email)}}ob.\u0275fac=function(r){return new(r||ob)},ob.\u0275prov=n.Yz7({token:ob,factory:ob.\u0275fac});var z9e=function(r){return{"is-invalid":r}},GO=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),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 ne.NI}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new ne.NI(null,[ne.kI.required,this.groupNameValidator.get],[N9e(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,ua.O)(""),(0,mr.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:""}}]),t}();function W9e(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}GO.\u0275fac=function(r){return new(r||GO)(n.Y36(Ar),n.Y36(na),n.Y36(ne.qu),n.Y36(ob),n.Y36(wu),n.Y36(pl),n.Y36($n))},GO.\u0275cmp=n.Xpm({type:GO,selectors:[["app-add-group-dialog"]],features:[n._Bn([ob])],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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new group"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),n.NdJ("keydown",function(a){return e.onKeyDown(a)}),n.qZA(),n.YNc(5,B9e,2,0,"mat-error",4),n.YNc(6,F9e,2,0,"mat-error",4),n.YNc(7,U9e,2,0,"mat-error",4),n.qZA()(),n.TgZ(8,"h5"),n._uU(9,"Add users to group: "),n.qZA(),n.TgZ(10,"mat-form-field",5)(11,"mat-label"),n._uU(12,"Users"),n.qZA(),n._UZ(13,"input",6),n.TgZ(14,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),n.YNc(16,H9e,2,3,"mat-option",9),n.ALo(17,"async"),n.qZA()(),n.TgZ(18,"div",10),n.YNc(19,j9e,8,2,"div",11),n.qZA(),n.TgZ(20,"div",12)(21,"button",13),n.NdJ("click",function(){return e.onNoClick()}),n._uU(22,"Cancel"),n.qZA(),n.TgZ(23,"button",14),n.NdJ("click",function(){return e.onAddClick()}),n._uU(24," Add group "),n.qZA()()),2&r){var i=n.MAs(15);n.xp6(2),n.Q6J("formGroup",e.groupNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(12,z9e,null==e.form.groupName?null:e.form.groupName.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),n.xp6(1),n.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),n.xp6(6),n.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.lcZ(17,10,e.filteredUsers)),n.xp6(3),n.Q6J("ngForOf",e.usersToAdd)}},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Fn.hX,of,ne.oH,rf,Ct.sg,ln.ey,Vn,Zr,Tn],pipes:[Ct.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 qO=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();qO.\u0275fac=function(r){return new(r||qO)(n.Y36(Ar),n.Y36(na))},qO.\u0275cmp=n.Xpm({type:qO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure to delete group named: "),n.qZA(),n.YNc(2,W9e,2,1,"p",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(5,"No, cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(7," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngForOf",e.data.groups))},directives:[Vr,Ct.sg,Zr,Tn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var KO=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),t}();KO.\u0275fac=function(r){return new(r||KO)},KO.\u0275pipe=n.Yjl({name:"groupFilter",type:KO,pure:!0});var V9e=["groupsPaginator"],Y9e=["groupsSort"];function G9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"th",28)(1,"mat-checkbox",29),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function q9e(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",30)(1,"mat-checkbox",31),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function K9e(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Name"),n.qZA())}function J9e(t,r){if(1&t&&(n.TgZ(0,"td",33)(1,"a",34),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),n.xp6(1),n.Oqu(e.name)}}function Q9e(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Creation date"),n.qZA())}function X9e(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.created_at," ")}}function $9e(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," Last update"),n.qZA())}function eHe(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.updated_at," ")}}function tHe(t,r){1&t&&(n.TgZ(0,"th",32),n._uU(1," is build in"),n.qZA())}function nHe(t,r){if(1&t&&(n.TgZ(0,"td",33),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij(" ",e.is_builtin," ")}}function rHe(t,r){1&t&&n._UZ(0,"th",35)}function iHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"td",33)(1,"button",36),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete([a])}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function oHe(t,r){1&t&&n._UZ(0,"tr",37)}function aHe(t,r){1&t&&n._UZ(0,"tr",38)}var sHe=function(){return{standalone:!0}},lHe=function(){return[5,10,20]};function uHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"Groups management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.onDelete(a.selection.selected)}),n._uU(6," Delete selected groups "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addGroup()}),n._uU(8," Add group "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"table",11,12),n.ALo(15,"groupFilter"),n.ynx(16,13),n.YNc(17,G9e,2,2,"th",14),n.YNc(18,q9e,2,1,"td",15),n.BQk(),n.ynx(19,16),n.YNc(20,K9e,2,0,"th",17),n.YNc(21,J9e,3,3,"td",18),n.BQk(),n.ynx(22,19),n.YNc(23,Q9e,2,0,"th",17),n.YNc(24,X9e,2,1,"td",18),n.BQk(),n.ynx(25,20),n.YNc(26,$9e,2,0,"th",17),n.YNc(27,eHe,2,1,"td",18),n.BQk(),n.ynx(28,21),n.YNc(29,tHe,2,0,"th",17),n.YNc(30,nHe,2,1,"td",18),n.BQk(),n.ynx(31,22),n.YNc(32,rHe,1,0,"th",23),n.YNc(33,iHe,4,0,"td",18),n.BQk(),n.YNc(34,oHe,1,0,"tr",24),n.YNc(35,aHe,1,0,"tr",25),n.qZA(),n._UZ(36,"mat-paginator",26,27),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,sHe)),n.xp6(2),n.Q6J("dataSource",n.xi3(15,7,i.dataSource,i.searchText)),n.xp6(21),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,lHe))}}function cHe(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",39),n.qZA())}var JO=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),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 po.Ov(!0,[]),this.dataSource=new _w,this.isReady=!1}return(0,V.Z)(t,[{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(GO,{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(qO,{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,Bc.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),t}();function dHe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1," role name is required "),n.qZA())}function fHe(t,r){1&t&&(n.TgZ(0,"mat-error"),n._uU(1," Role name is incorrect "),n.qZA())}JO.\u0275fac=function(r){return new(r||JO)(n.Y36(xr),n.Y36(vr),n.Y36($n),n.Y36(wu),n.Y36(ri))},JO.\u0275cmp=n.Xpm({type:JO,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(V9e,5),n.Gf(Y9e,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.groupsPaginator=i),n.iGM(i=n.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 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&&(n.YNc(0,uHe,38,12,"div",0),n.YNc(1,cHe,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[Ct.O5,Tn,ne._Y,ne.JL,ne.F,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,Vn,Da,Oa,Aa,Ia,ed,ql],pipes:[KO],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;bottom:0;left:0;right:0;top:0;width:175px}"]});var pHe=function(r){return{"is-invalid":r}},QO=function(){function t(r,e,i){(0,j.Z)(this,t),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new ne.NI,description:new ne.NI})}},{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()}}]),t}();function hHe(t,r){if(1&t&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Oqu(e.name)}}QO.\u0275fac=function(r){return new(r||QO)(n.Y36(Ar),n.Y36(na),n.Y36(ne.qu))},QO.\u0275cmp=n.Xpm({type:QO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Create new role"),n.qZA(),n.TgZ(2,"form",1)(3,"mat-form-field"),n._UZ(4,"input",2),n.YNc(5,dHe,2,0,"mat-error",3),n.YNc(6,fHe,2,0,"mat-error",3),n.qZA(),n.TgZ(7,"mat-form-field"),n._UZ(8,"input",4),n.qZA(),n.TgZ(9,"div",5)(10,"button",6),n.NdJ("click",function(){return e.onNoClick()}),n._uU(11,"Cancel"),n.qZA(),n.TgZ(12,"button",7),n.NdJ("click",function(){return e.onAddClick()}),n._uU(13," Add Role "),n.qZA()()()),2&r&&(n.xp6(2),n.Q6J("formGroup",e.roleNameForm),n.xp6(2),n.Q6J("ngClass",n.VKq(4,pHe,null==e.form.name?null:e.form.name.errors)),n.xp6(1),n.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)),n.xp6(1),n.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},directives:[Vr,ne._Y,ne.JL,ne.sg,Fn.KE,sr,ne.Fj,ne.JJ,ne.u,Ct.mk,Ct.O5,Fn.TO,Zr,Tn],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var XO=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),t}();XO.\u0275fac=function(r){return new(r||XO)(n.Y36(Ar),n.Y36(na))},XO.\u0275cmp=n.Xpm({type:XO,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&&(n.TgZ(0,"h1",0),n._uU(1,"Are you sure to delete role named: "),n.qZA(),n.YNc(2,hHe,2,1,"p",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return e.onCancel()}),n._uU(5,"No, cancel"),n.qZA(),n.TgZ(6,"button",4),n.NdJ("click",function(){return e.onDelete()}),n._uU(7," Yes, delete! "),n.qZA()()),2&r&&(n.xp6(2),n.Q6J("ngForOf",e.data.roles))},directives:[Vr,Ct.sg,Zr,Tn],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var Ap=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{key:"get",value:function(e){return this.httpController.get(e,"/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"addPermission",value:function(e,i,o){return this.httpController.put(e,"/roles/".concat(i.role_id,"/permissions/").concat(o.permission_id),{})}},{key:"removePermission",value:function(e,i,o){return this.httpController.delete(e,"/roles/".concat(i.role_id,"/permissions/").concat(o.permission_id))}}]),t}();Ap.\u0275fac=function(r){return new(r||Ap)(n.LFG(Wo.zw))},Ap.\u0275prov=n.Yz7({token:Ap,factory:Ap.\u0275fac,providedIn:"root"});var $O=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),t}();$O.\u0275fac=function(r){return new(r||$O)},$O.\u0275pipe=n.Yjl({name:"roleFilter",type:$O,pure:!0});var mHe=["rolesPaginator"],_He=["rolesSort"];function gHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-header-cell",27)(1,"mat-checkbox",28),n.NdJ("change",function(a){n.CHM(e);var s=n.oxw(2);return a?s.masterToggle():null}),n.qZA()()}if(2&t){var i=n.oxw(2);n.xp6(1),n.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function vHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",27)(1,"mat-checkbox",29),n.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=n.CHM(e).$implicit,f=n.oxw(2);return s?f.selection.toggle(u):null}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",o.selection.isSelected(i))}}function yHe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Name"),n.qZA())}var bHe=function(r,e){return["/controller",r,"management","roles",e]};function CHe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"a",31),n._uU(2),n.qZA()()),2&t){var e=r.$implicit,i=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.WLB(3,bHe,i.controller.id,e.role_id))("matTooltip",e.name),n.xp6(1),n.Oqu(e.name)}}function wHe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Description"),n.qZA())}function kHe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",32),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("matTooltip",e.description),n.xp6(1),n.Oqu(e.description)}}function THe(t,r){1&t&&(n.TgZ(0,"mat-header-cell",30),n._uU(1,"Permissions (Allow)"),n.qZA())}function EHe(t,r){if(1&t&&(n.TgZ(0,"div",35)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.TgZ(5,"div"),n._uU(6),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Oqu(e.action),n.xp6(2),n.Oqu(e.methods.join(",")),n.xp6(2),n.Oqu(e.path)}}function MHe(t,r){if(1&t&&(n.TgZ(0,"mat-cell")(1,"div",33),n.YNc(2,EHe,7,3,"div",34),n.qZA()()),2&t){var e=r.$implicit;n.xp6(2),n.Q6J("ngForOf",e.permissions)}}function SHe(t,r){1&t&&n._UZ(0,"mat-header-cell",27)}function xHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-cell",27)(1,"button",36),n.NdJ("click",function(){var a=n.CHM(e).$implicit;return n.oxw(2).onDelete([a])}),n.TgZ(2,"mat-icon"),n._uU(3,"delete"),n.qZA()()()}}function DHe(t,r){1&t&&n._UZ(0,"mat-header-row")}function AHe(t,r){1&t&&n._UZ(0,"mat-row")}var OHe=function(){return{standalone:!0}},IHe=function(){return[5,10,20]};function PHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),n._uU(4,"Roles Management"),n.qZA(),n.TgZ(5,"button",6),n.NdJ("click",function(){n.CHM(e);var a=n.oxw();return a.onDelete(a.selection.selected)}),n._uU(6," Delete roles "),n.qZA(),n.TgZ(7,"button",7),n.NdJ("click",function(){return n.CHM(e),n.oxw().addRole()}),n._uU(8," Add role "),n.qZA()()(),n.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().searchText=a}),n.qZA()()(),n.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),n.ALo(17,"roleFilter"),n.ynx(18,14),n.YNc(19,gHe,2,2,"mat-header-cell",15),n.YNc(20,vHe,2,1,"mat-cell",16),n.BQk(),n.ynx(21,17),n.YNc(22,yHe,2,0,"mat-header-cell",18),n.YNc(23,CHe,3,6,"mat-cell",19),n.BQk(),n.ynx(24,20),n.YNc(25,wHe,2,0,"mat-header-cell",18),n.YNc(26,kHe,3,2,"mat-cell",19),n.BQk(),n.ynx(27,21),n.YNc(28,THe,2,0,"mat-header-cell",18),n.YNc(29,MHe,3,1,"mat-cell",19),n.BQk(),n.ynx(30,22),n.YNc(31,SHe,1,0,"mat-header-cell",15),n.YNc(32,xHe,4,0,"mat-cell",16),n.BQk(),n.YNc(33,DHe,1,0,"mat-header-row",23),n.YNc(34,AHe,1,0,"mat-row",24),n.qZA(),n._UZ(35,"mat-paginator",25,26),n.qZA()()()}if(2&t){var i=n.oxw();n.xp6(5),n.Q6J("disabled",0==i.selection.selected.length),n.xp6(6),n.Q6J("ngModel",i.searchText)("ngModelOptions",n.DdM(10,OHe)),n.xp6(3),n.Q6J("dataSource",n.xi3(17,7,i.dataSource,i.searchText)),n.xp6(19),n.Q6J("matHeaderRowDef",i.displayedColumns),n.xp6(1),n.Q6J("matRowDefColumns",i.displayedColumns),n.xp6(1),n.Q6J("pageSizeOptions",n.DdM(11,IHe))}}function RHe(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",37),n.qZA())}var Nie,ab,eI=function(){function t(r,e,i,o,a,s,l){(0,j.Z)(this,t),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new _w,this.displayedColumns=["select","name","description","permissions","delete"],this.selection=new po.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,V.Z)(t,[{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(QO,{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(XO,{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,Bc.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),t}();eI.\u0275fac=function(r){return new(r||eI)(n.Y36(xr),n.Y36(kr),n.Y36(Ap),n.Y36(ul),n.Y36(vr),n.Y36(ri),n.Y36($n))},eI.\u0275cmp=n.Xpm({type:eI,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(mHe,5),n.Gf(_He,5)),2&r)&&(n.iGM(i=n.CRH())&&(e.rolesPaginator=i),n.iGM(i=n.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","permissions"],["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"],[1,"permissions-list"],["class","overflow-col permission",4,"ngFor","ngForOf"],[1,"overflow-col","permission"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(n.YNc(0,PHe,37,12,"div",0),n.YNc(1,RHe,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[Ct.O5,Tn,ne._Y,ne.JL,ne.F,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,vi,Ct.sg,Vn,Da,Oa,Aa,Ia,ed,ql],pipes:[$O],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;bottom:0;left:0;right:0;top:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]}),function(t){t.GET="GET",t.HEAD="HEAD",t.POST="POST",t.PATCH="PATCH",t.PUT="PUT",t.DELETE="DELETE"}(Nie||(Nie={})),function(t){t.ALLOW="ALLOW",t.DENY="DENY"}(ab||(ab={}));var LHe=function(){function t(){(0,j.Z)(this,t),this.subPath=[]}return(0,V.Z)(t,[{key:"add",value:function(e){this.subPath.push(e)}},{key:"getDisplayPath",value:function(){return this.subPath.map(function(e){return e.displayValue})}},{key:"removeLast",value:function(){this.subPath.pop()}},{key:"getPath",value:function(){return this.subPath.map(function(e){return e.value})}},{key:"isEmpty",value:function(){return 0===this.subPath.length}},{key:"getVariables",value:function(){return this.subPath.filter(function(e){return e.key}).map(function(e){return{key:e.key,value:e.value}})}},{key:"containStar",value:function(){return this.subPath.map(function(e){return"*"===e.value}).reduce(function(e,i){return e||i},!1)}}]),t}(),ZHe=(0,V.Z)(function t(r,e,i){(0,j.Z)(this,t),this.value=r,this.displayValue=e,this.key=i}),sb=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return i&&""!==i?e.filter(function(o){return o.name.includes(i)||o.id.includes(i)}):e}}]),t}();function NHe(t,r){if(1&t&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.hij("",e,"/")}}function BHe(t,r){if(1&t&&(n.TgZ(0,"mat-option",9),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.s9C("value",e),n.xp6(1),n.Oqu(e)}}function FHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"mat-select",7),n.NdJ("valueChange",function(a){return n.CHM(e),n.oxw().valueChanged(a)}),n.YNc(2,BHe,2,2,"mat-option",8),n.qZA()()}if(2&t){var i=n.oxw();n.xp6(2),n.Q6J("ngForOf",i.values)}}function UHe(t,r){if(1&t&&(n.TgZ(0,"mat-option",9)(1,"span"),n._uU(2),n.qZA()()),2&t){var e=r.$implicit;n.Q6J("value",e.name),n.xp6(2),n.Oqu(e.name)}}function HHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"input",10),n.NdJ("ngModelChange",function(s){return n.CHM(e),n.oxw().completeField=s}),n.qZA(),n.TgZ(2,"mat-autocomplete",null,11)(4,"mat-option",9),n._uU(5,"*"),n.qZA(),n.YNc(6,UHe,3,2,"mat-option",8),n.ALo(7,"filterComplete"),n.qZA()()}if(2&t){var i=n.MAs(3),o=n.oxw();n.xp6(1),n.Q6J("ngModel",o.completeField)("matAutocomplete",i),n.xp6(3),n.Q6J("value","*"),n.xp6(2),n.Q6J("ngForOf",n.xi3(7,4,o.completeData.data,o.completeField))}}function jHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().removePrevious()}),n._uU(1,"cancel"),n.qZA()}}function zHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().getNext()}),n._uU(1,"add_circle_outline"),n.qZA()}}function WHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",13),n.NdJ("click",function(){return n.CHM(e),n.oxw().validComplete()}),n._uU(1,"check_circle "),n.qZA()}}sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275pipe=n.Yjl({name:"filterComplete",type:sb,pure:!0});var tI=function(){function t(r){(0,j.Z)(this,t),this.apiInformationService=r,this.update=new n.vpe,this.path=new LHe,this.values=[]}return(0,V.Z)(t,[{key:"updatePath",value:function(e,i,o){this.path.add(new ZHe(e,i,o)),this.update.emit("/"+this.path.getPath().join("/"))}},{key:"popPath",value:function(){this.path.removeLast(),this.update.emit("/"+this.path.getPath().join("/"))}},{key:"ngOnInit",value:function(){}},{key:"getNext",value:function(){var e=this;this.apiInformationService.getPathNextElement(this.path.getPath()).subscribe(function(i){e.path.containStar()&&(i=i.filter(function(o){return!o.match(e.apiInformationService.bracketIdRegex)})),e.values=i,e.mode="SELECT"})}},{key:"removePrevious",value:function(){return this.mode?this.mode=void 0:this.path.isEmpty()?void 0:this.popPath()}},{key:"valueChanged",value:function(e){var i=this;e.match(this.apiInformationService.bracketIdRegex)&&!this.path.containStar()?this.apiInformationService.getListByObjectId(this.controller,e,void 0,this.path.getVariables()).subscribe(function(o){i.mode="COMPLETE",i.completeData={data:o,key:e}}):(this.updatePath(e,e),this.mode=void 0)}},{key:"validComplete",value:function(){var e=this;if("*"===this.completeField)this.updatePath("*","*");else{var i=this.completeData.data.find(function(o){return e.completeField===o.name});this.updatePath(i.id,i.name,this.completeData.key)}this.mode=void 0,this.completeField=void 0}}]),t}();tI.\u0275fac=function(r){return new(r||tI)(n.Y36(af))},tI.\u0275cmp=n.Xpm({type:tI,selectors:[["app-path-auto-complete"]],inputs:{controller:"controller"},outputs:{update:"update"},decls:12,vars:6,consts:[[1,"path"],[4,"ngFor","ngForOf"],[1,"path-edit-line"],[4,"ngIf"],[1,"command-button"],[3,"click",4,"ngIf"],["matTooltip","validate data",3,"click",4,"ngIf"],[1,"edit-area",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","autofocus","","aria-label","find",1,"complete","edit-area",3,"ngModel","matAutocomplete","ngModelChange"],["auto","matAutocomplete"],[3,"click"],["matTooltip","validate data",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"Path: /"),n.qZA(),n.YNc(3,NHe,2,1,"div",1),n.TgZ(4,"div",2)(5,"div"),n.YNc(6,FHe,3,1,"div",3),n.YNc(7,HHe,8,7,"div",3),n.qZA(),n.TgZ(8,"div",4),n.YNc(9,jHe,2,0,"mat-icon",5),n.YNc(10,zHe,2,0,"mat-icon",5),n.YNc(11,WHe,2,0,"mat-icon",6),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("ngForOf",e.path.getDisplayPath()),n.xp6(3),n.Q6J("ngIf","SELECT"===e.mode),n.xp6(1),n.Q6J("ngIf","COMPLETE"===e.mode),n.xp6(2),n.Q6J("ngIf",!e.path.isEmpty()),n.xp6(1),n.Q6J("ngIf",!e.mode),n.xp6(1),n.Q6J("ngIf","COMPLETE"===e.mode))},directives:[Ct.sg,Ct.O5,Oi.gD,ln.ey,sr,ne.Fj,of,ne.JJ,ne.On,rf,Vn,vi],pipes:[sb],styles:[".path[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}mat-select[_ngcontent-%COMP%]{width:150px}.edit-area[_ngcontent-%COMP%]{border:1px solid}.command-button[_ngcontent-%COMP%]{margin-left:5px}.path-edit-line[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]});var VHe=function(r,e){return{allow:r,deny:e}},xk=function(){function t(){(0,j.Z)(this,t),this.DENY="DENY",this.ALLOW="ALLOW",this.disabled=!0,this.update=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"change",value:function(){this.action===ab.DENY?this.action=ab.ALLOW:this.action=ab.DENY,this.update.emit(this.action)}}]),t}();xk.\u0275fac=function(r){return new(r||xk)},xk.\u0275cmp=n.Xpm({type:xk,selectors:[["app-action-button"]],inputs:{action:"action",disabled:"disabled"},outputs:{update:"update"},decls:2,vars:6,consts:[["mat-button","",3,"ngClass","disabled","click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.change()}),n._uU(1),n.qZA()),2&r&&(n.Q6J("ngClass",n.WLB(3,VHe,"ALLOW"===e.action,"DENY"===e.action))("disabled",e.disabled),n.xp6(1),n.hij(" ",e.action,"\n"))},directives:[Tn,Ct.mk],styles:[".allow[_ngcontent-%COMP%]{background-color:green;border-radius:unset!important}.deny[_ngcontent-%COMP%]{background-color:#8b0000}"]});var YHe=function(r,e){return{enable:r,disabled:e}},Dk=function(){function t(){(0,j.Z)(this,t),this.enable=!1,this.disabled=!0,this.update=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"change",value:function(){this.enable=!this.enable,this.update.emit({name:this.name,enable:this.enable})}}]),t}();function GHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-method-button",13),n.NdJ("update",function(a){return n.CHM(e),n.oxw(2).updateMethod(a)}),n.qZA()()}if(2&t){var i=r.$implicit;n.xp6(1),n.Q6J("name",i)("disabled",!1)}}function qHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"div")(4,"app-path-auto-complete",5),n.NdJ("update",function(a){return n.CHM(e),n.oxw().permission.path=a}),n.qZA()(),n.TgZ(5,"div",6),n._UZ(6,"app-action-button",7),n.YNc(7,GHe,2,2,"div",8),n.ALo(8,"async"),n.TgZ(9,"div",9)(10,"mat-form-field")(11,"input",10),n.NdJ("ngModelChange",function(a){return n.CHM(e),n.oxw().permission.description=a}),n.qZA()()()()(),n.TgZ(12,"div",11)(13,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().reset()}),n.TgZ(14,"mat-icon"),n._uU(15,"cancel"),n.qZA()(),n.TgZ(16,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().save()}),n.TgZ(17,"mat-icon"),n._uU(18,"done"),n.qZA()()()()()}if(2&t){var i=n.oxw();n.xp6(4),n.Q6J("controller",i.controller),n.xp6(2),n.Q6J("disabled",!1)("action",i.permission.action),n.xp6(1),n.Q6J("ngForOf",n.lcZ(8,5,i.apiInformation.getMethods(i.permission.path))),n.xp6(4),n.Q6J("ngModel",i.permission.description)}}function KHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",14)(1,"button",12),n.NdJ("click",function(){return n.CHM(e),n.oxw().edit=!0}),n.TgZ(2,"mat-icon"),n._uU(3,"add"),n.qZA()()()}}Dk.\u0275fac=function(r){return new(r||Dk)},Dk.\u0275cmp=n.Xpm({type:Dk,selectors:[["app-method-button"]],inputs:{enable:"enable",name:"name",disabled:"disabled"},outputs:{update:"update"},decls:2,vars:6,consts:[["mat-button","",3,"disabled","ngClass","click"]],template:function(r,e){1&r&&(n.TgZ(0,"button",0),n.NdJ("click",function(){return e.change()}),n._uU(1),n.qZA()),2&r&&(n.Q6J("disabled",e.disabled)("ngClass",n.WLB(3,YHe,e.enable,e.disabled)),n.xp6(1),n.hij(" ",e.name,"\n"))},directives:[Tn,Ct.mk],styles:["[_nghost-%COMP%]{padding:unset!important}.enable[_ngcontent-%COMP%]{color:green!important}.disabled[_ngcontent-%COMP%]{color:#696969}"]});var Ak=function(){function t(r,e,i){(0,j.Z)(this,t),this.apiInformation=r,this.permissionService=e,this.toasterService=i,this.addPermissionEvent=new n.vpe,this.permission={action:ab.ALLOW,description:"",methods:[],path:"/"},this.edit=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updateMethod",value:function(e){var i=new Set(this.permission.methods);e.enable?i.add(e.name):i.delete(e.name),this.permission.methods=Array.from(i)}},{key:"reset",value:function(){this.permission={action:ab.ALLOW,description:"",methods:[],path:"/"},this.edit=!1}},{key:"save",value:function(){var e=this;this.permissionService.add(this.controller,this.permission).subscribe(function(){e.toasterService.success("permission was created"),e.reset()},function(i){e.toasterService.error("\n ".concat(i.message,"\n ").concat(i.error.message))})}}]),t}();Ak.\u0275fac=function(r){return new(r||Ak)(n.Y36(af),n.Y36(Cm),n.Y36($n))},Ak.\u0275cmp=n.Xpm({type:Ak,selectors:[["app-add-permission-line"]],inputs:{controller:"controller"},outputs:{addPermissionEvent:"addPermissionEvent"},decls:4,vars:2,consts:[[1,"box-border"],[4,"ngIf","ngIfElse"],["add",""],[1,"edit-mode"],[1,"information-box"],[3,"controller","update"],[1,"methods"],[3,"disabled","action"],[4,"ngFor","ngForOf"],[1,"description"],["matInput","","type","text","placeholder","Description",3,"ngModel","ngModelChange"],[1,"button-box"],["mat-button","",3,"click"],[3,"name","disabled","update"],[1,"not-edit"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div",0),n.YNc(1,qHe,19,7,"div",1),n.YNc(2,KHe,4,0,"ng-template",null,2,n.W1O),n.qZA()),2&r){var i=n.MAs(3);n.xp6(1),n.Q6J("ngIf",e.edit)("ngIfElse",i)}},directives:[Ct.O5,tI,xk,Ct.sg,Dk,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Tn,Vn],pipes:[Ct.Ov],styles:[".box-border[_ngcontent-%COMP%]{width:100%;margin-top:20px;border-bottom:1px solid}.edit-mode[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end}.information-box[_ngcontent-%COMP%]{margin-left:10px;width:100%}.information-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}.methods[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.button-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-around}.description[_ngcontent-%COMP%]{width:100%;margin-left:10px;margin-right:10px}.description[_ngcontent-%COMP%] > mat-form-field[_ngcontent-%COMP%]{width:100%}.not-edit[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}"]});var nI=function(){function t(r,e){(0,j.Z)(this,t),this.dialog=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"cancel",value:function(){this.dialog.close(!1)}},{key:"confirm",value:function(){this.dialog.close(!0)}}]),t}();function JHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-method-button",13),n.NdJ("update",function(s){return n.CHM(e),n.oxw().onMethodUpdate(s)}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.Q6J("name",i)("disabled",!o.isEditable)("enable",o.permission.methods.includes(i))}}function QHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",14),n.NdJ("click",function(){return n.CHM(e),n.oxw().isEditable=!0}),n.TgZ(1,"mat-icon"),n._uU(2,"edit"),n.qZA()()}}function XHe(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){return n.CHM(e),n.oxw().onDelete()}),n.TgZ(1,"mat-icon"),n._uU(2,"delete"),n.qZA()()}}function $He(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",16),n.NdJ("click",function(){return n.CHM(e),n.oxw().onSave()}),n.TgZ(1,"mat-icon"),n._uU(2,"check_circle"),n.qZA()()}}function eje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",17),n.NdJ("click",function(){return n.CHM(e),n.oxw().onCancel()}),n.TgZ(1,"mat-icon"),n._uU(2,"cancel"),n.qZA()()}}nI.\u0275fac=function(r){return new(r||nI)(n.Y36(Ar),n.Y36(na))},nI.\u0275cmp=n.Xpm({type:nI,selectors:[["app-delete-permission-dialog"]],decls:18,vars:5,consts:[[1,"description"],[1,"button"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"confirm deleting permission:"),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.TgZ(5,"div"),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.qZA(),n.TgZ(9,"div"),n._uU(10),n.qZA(),n.TgZ(11,"div"),n._uU(12),n.qZA()(),n.TgZ(13,"div",1)(14,"button",2),n.NdJ("click",function(){return e.cancel()}),n._uU(15,"No, cancel"),n.qZA(),n.TgZ(16,"button",3),n.NdJ("click",function(){return e.confirm()}),n._uU(17,"Yes, remove"),n.qZA()()),2&r&&(n.xp6(4),n.Oqu(e.data.permission_id),n.xp6(2),n.Oqu(e.data.path),n.xp6(2),n.Oqu(e.data.methods.join(",")),n.xp6(2),n.Oqu(e.data.action),n.xp6(2),n.Oqu(e.data.description))},directives:[Tn],styles:[".description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-top:20px}.description[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:10px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-top:20px}"]});var rI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.apiInformation=r,this.permissionService=e,this.toasterService=i,this.dialog=o,this.isEditable=!1,this.update=new n.vpe}return(0,V.Z)(t,[{key:"onDelete",value:function(){var e=this;this.dialog.open(nI,{width:"700px",height:"500px",data:this.permission}).afterClosed().subscribe(function(i){i&&e.permissionService.delete(e.controller,e.permission.permission_id).subscribe(function(){e.toasterService.success("Permission was deleted"),e.update.emit()},function(o){e.toasterService.error(o),e.update.emit()})})}},{key:"onSave",value:function(){var e=this;this.permissionService.update(this.controller,this.permission).subscribe(function(){e.toasterService.success("Permission was updated"),e.update.emit()},function(i){e.toasterService.error(i),e.update.emit()})}},{key:"onCancel",value:function(){this.update.emit()}},{key:"onMethodUpdate",value:function(e){var i=new Set(this.permission.methods);e.enable?i.add(e.name):i.delete(e.name),this.permission.methods=Array.from(i)}}]),t}();rI.\u0275fac=function(r){return new(r||rI)(n.Y36(af),n.Y36(Cm),n.Y36($n),n.Y36(ri))},rI.\u0275cmp=n.Xpm({type:rI,selectors:[["app-permission-add-edit-line"]],inputs:{permission:"permission",controller:"controller"},outputs:{update:"update"},decls:24,vars:24,consts:[[1,"permission"],[1,"action-button-bar"],[3,"action","disabled","update"],[1,"methods"],[4,"ngFor","ngForOf"],["matTooltipClass","custom-tooltip",3,"matTooltip"],["appearance","none",1,"permission-input"],["matInput","","type","text","placeholder","Description","matTooltipClass","custom-tooltip",3,"ngModel","matTooltip","readonly","ngModelChange"],[1,"button-bar"],["mat-button","","matTooltip","Edit permission",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete permission",3,"click",4,"ngIf"],["mat-button","","matTooltip","Save Changes","color","primary",3,"click",4,"ngIf"],["mat-button","","matTooltip","Cancel Changes","color","warn",3,"click",4,"ngIf"],[3,"name","disabled","enable","update"],["mat-button","","matTooltip","Edit permission",3,"click"],["mat-button","","matTooltip","Delete permission",3,"click"],["mat-button","","matTooltip","Save Changes","color","primary",3,"click"],["mat-button","","matTooltip","Cancel Changes","color","warn",3,"click"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"app-action-button",2),n.NdJ("update",function(o){return e.permission.action=o}),n.qZA()(),n.TgZ(4,"div",3),n.YNc(5,JHe,2,3,"div",4),n.ALo(6,"async"),n.qZA()(),n.TgZ(7,"div")(8,"div",5),n.ALo(9,"async"),n.ALo(10,"displayPath"),n._uU(11),n.ALo(12,"async"),n.ALo(13,"displayPath"),n.qZA()(),n.TgZ(14,"div")(15,"mat-form-field",6)(16,"input",7),n.NdJ("ngModelChange",function(o){return e.permission.description=o}),n.qZA()()(),n.TgZ(17,"div",8)(18,"div"),n.YNc(19,QHe,3,0,"button",9),n.YNc(20,XHe,3,0,"button",10),n.qZA(),n.TgZ(21,"div"),n.YNc(22,$He,3,0,"button",11),n.YNc(23,eje,3,0,"button",12),n.qZA()()()),2&r&&(n.xp6(3),n.Q6J("action",e.permission.action)("disabled",!e.isEditable),n.xp6(2),n.Q6J("ngForOf",n.lcZ(6,12,e.apiInformation.getMethods(e.permission.path))),n.xp6(3),n.Q6J("matTooltip",n.lcZ(9,14,n.xi3(10,16,e.permission.path,e.controller))),n.xp6(3),n.hij(" ",n.lcZ(12,19,n.xi3(13,21,e.permission.path,e.controller))," "),n.xp6(5),n.Q6J("ngModel",e.permission.description)("matTooltip",e.permission.description)("readonly",!e.isEditable),n.xp6(3),n.Q6J("ngIf",!e.isEditable),n.xp6(1),n.Q6J("ngIf",!e.isEditable),n.xp6(2),n.Q6J("ngIf",e.isEditable),n.xp6(1),n.Q6J("ngIf",e.isEditable))},directives:[xk,Ct.sg,Dk,vi,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,Ct.O5,Tn,Vn],pipes:[Ct.Ov,Mk],styles:[".permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;border-bottom:solid 1px;margin-top:10px;align-items:center}.action-button-bar[_ngcontent-%COMP%]{display:flex;flex-direction:row}.methods[_ngcontent-%COMP%]{display:flex;flex-direction:row;border:1px solid}.permission-input[_ngcontent-%COMP%]{width:300px}.button-bar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{padding:unset!important}"]});var lb=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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)):[]}}]),t}();lb.\u0275fac=function(r){return new(r||lb)},lb.\u0275pipe=n.Yjl({name:"paginator",type:lb,pure:!0});var Ok=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?null==i||""===i?e:e.filter(function(o){return o.path.toLowerCase().includes(i.toLowerCase())}):[]}}]),t}();Ok.\u0275fac=function(r){return new(r||Ok)},Ok.\u0275pipe=n.Yjl({name:"permissionsFilter",type:Ok,pure:!0});var tje=["dynamic"];function nje(t,r){if(1&t&&(n.TgZ(0,"mat-option",12),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function rje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"app-permission-add-edit-line",13),n.NdJ("update",function(){return n.CHM(e),n.oxw(2).refresh()}),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("permission",i)("controller",o.controller)}}var ije=function(){return[5,20,50,100]};function oje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"app-add-permission-line",4),n.NdJ("addPermissionEvent",function(){return n.CHM(e),n.oxw().refresh()}),n.qZA()(),n.TgZ(3,"div",5)(4,"input",6),n.NdJ("ngModelChange",function(s){return n.CHM(e),n.oxw().searchPermissions=s})("input",function(s){return n.CHM(e),n.oxw().changeAutocomplete(s.target.value)}),n.qZA(),n.TgZ(5,"mat-autocomplete",7,8),n.YNc(7,nje,2,2,"mat-option",9),n.ALo(8,"filterComplete"),n.qZA(),n.YNc(9,rje,2,2,"div",10),n.ALo(10,"paginator"),n.ALo(11,"permissionsFilter"),n.TgZ(12,"mat-paginator",11),n.NdJ("page",function(s){return n.CHM(e),n.oxw().pageEvent=s}),n.qZA()()()}if(2&t){var i=n.MAs(6),o=n.oxw();n.xp6(2),n.Q6J("controller",o.controller),n.xp6(2),n.Q6J("ngModel",o.searchPermissions)("matAutocomplete",i),n.xp6(1),n.Q6J("displayWith",o.displayFn),n.xp6(2),n.Q6J("ngForOf",n.xi3(8,8,o.filteredOptions,o.searchPermissions)),n.xp6(2),n.Q6J("ngForOf",n.xi3(10,11,n.xi3(11,14,o.permissions,null==o.searchPermissions?null:o.searchPermissions.id),o.pageEvent)),n.xp6(3),n.Q6J("length",o.permissions.length)("pageSizeOptions",n.DdM(17,ije))}}function aje(t,r){1&t&&(n.TgZ(0,"div"),n._UZ(1,"mat-spinner",14),n.qZA())}var iI=function(){function t(r,e,i,o,a,s){(0,j.Z)(this,t),this.route=r,this.router=e,this.permissionService=i,this.progressService=o,this.controllerService=a,this.apiInformationService=s,this.addPermissionLineComp=Ak,this.newPermissionEdit=!1,this.options=[],this.isReady=!1}return(0,V.Z)(t,[{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:"refresh",value:function(){var e=this;this.permissionService.list(this.controller).subscribe(function(i){e.permissions=i,e.isReady=!0},function(i){e.progressService.setError(i)})}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"changeAutocomplete",value:function(e){this.filteredOptions=this.apiInformationService.getIdByObjNameFromCache(e)}}]),t}();function sje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().addUser(o)}),n._uU(1,"add"),n.qZA()}}function lje(t,r){1&t&&n._UZ(0,"mat-spinner")}function uje(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA(),n.YNc(5,sje,2,0,"mat-icon",6),n.YNc(6,lje,1,0,"mat-spinner",7),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(2),n.Oqu(e.username),n.xp6(2),n.Oqu(e.email),n.xp6(1),n.Q6J("ngIf",!i.loading),n.xp6(1),n.Q6J("ngIf",i.loading)}}iI.\u0275fac=function(r){return new(r||iI)(n.Y36(xr),n.Y36(kr),n.Y36(Cm),n.Y36(ul),n.Y36(vr),n.Y36(af))},iI.\u0275cmp=n.Xpm({type:iI,selectors:[["app-permissions-management"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(tje,5,n.s_b),2&r)&&(n.iGM(i=n.CRH())&&(e.viewContainerRef=i.first))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"add"],[3,"controller","addPermissionEvent"],[1,"permission-content","default-content"],["type","text","matInput","","name","typeInput","placeholder","Search by name",1,"permission-filter",3,"ngModel","matAutocomplete","ngModelChange","input"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],[3,"value"],[3,"permission","controller","update"],[1,"loader"]],template:function(r,e){if(1&r&&(n.YNc(0,oje,13,18,"div",0),n.YNc(1,aje,2,0,"ng-template",null,1,n.W1O)),2&r){var i=n.MAs(2);n.Q6J("ngIf",e.isReady)("ngIfElse",i)}},directives:[Ct.O5,Ak,sr,ne.Fj,of,ne.JJ,ne.On,rf,Ct.sg,ln.ey,rI,ed,ql],pipes:[sb,lb,Ok],styles:[".permission-content[_ngcontent-%COMP%]{max-width:1400px}.add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;bottom:0;left:0;right:0;top:0;width:175px}.permission-filter[_ngcontent-%COMP%]{border-bottom:1px solid;margin:5px;border-bottom-color:#b0bec5}"]});var oI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new go.X([]),this.displayedUsers=new go.X([]),this.loading=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,op.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,Bc.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,Ut.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(f){return f.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})}}]),t}();oI.\u0275fac=function(r){return new(r||oI)(n.Y36(Ar),n.Y36(na),n.Y36(pl),n.Y36(wu),n.Y36($n))},oI.\u0275cmp=n.Xpm({type:oI,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&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.qZA()(),n.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),n._uU(6,"Search user "),n.qZA(),n.TgZ(7,"input",3),n.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),n.qZA()()(),n.YNc(8,uje,7,4,"div",4),n.ALo(9,"async")),2&r&&(n.xp6(2),n.hij("Add User To group: ",e.data.group.name,""),n.xp6(5),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngForOf",n.lcZ(9,3,e.displayedUsers)))},directives:[Fn.KE,Fn.hX,sr,ne.Fj,ne.JJ,ne.On,Ct.sg,Ct.O5,Vn,ql],pipes:[Ct.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 Ik=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),t}();function cje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"mat-icon",8),n.NdJ("click",function(){n.CHM(e);var o=n.oxw().$implicit;return n.oxw().addRole(o)}),n._uU(1,"add"),n.qZA()}}function dje(t,r){1&t&&n._UZ(0,"mat-spinner")}function fje(t,r){if(1&t&&(n.TgZ(0,"div",5)(1,"div"),n._uU(2),n.qZA(),n.YNc(3,cje,2,0,"mat-icon",6),n.YNc(4,dje,1,0,"mat-spinner",7),n.qZA()),2&t){var e=r.$implicit,i=n.oxw();n.xp6(2),n.Oqu(e.name),n.xp6(1),n.Q6J("ngIf",!i.loading),n.xp6(1),n.Q6J("ngIf",i.loading)}}Ik.\u0275fac=function(r){return new(r||Ik)(n.Y36(Ar),n.Y36(na))},Ik.\u0275cmp=n.Xpm({type:Ik,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&&(n.TgZ(0,"div",0)(1,"div"),n._uU(2,"Confirm ?"),n.qZA(),n.TgZ(3,"div"),n._uU(4),n.qZA()(),n.TgZ(5,"div",1)(6,"button",2),n.NdJ("click",function(){return e.onCancel()}),n._uU(7,"No, cancel"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return e.onConfirm()}),n._uU(9,"Yes, remove"),n.qZA()()),2&r&&(n.xp6(4),n.hij("Removing: ",e.data.name,""))},directives:[Tn],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}"]});var aI=function(){function t(r,e,i,o,a){(0,j.Z)(this,t),this.dialog=r,this.data=e,this.groupService=i,this.roleService=o,this.toastService=a,this.roles=new go.X([]),this.displayedRoles=new go.X([]),this.loading=!1}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.getRoles()}},{key:"onSearch",value:function(){var e=this;(0,op.H)(500).subscribe(function(){var i=e.roles.value.filter(function(o){return o.name.includes(e.searchText)});e.displayedRoles.next(i)})}},{key:"getRoles",value:function(){var e=this;(0,Bc.D)([this.roleService.get(this.data.controller),this.groupService.getGroupRole(this.data.controller,this.data.group.user_group_id)]).subscribe(function(i){var o=(0,Ut.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(f){return f.role_id===u.role_id})});e.roles.next(l),e.displayedRoles.next(l)})}},{key:"addRole",value:function(e){var i=this;this.loading=!0,this.groupService.addRoleToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("role ".concat(e.name," was added")),i.getRoles(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding role ".concat(e.name," to group ").concat(i.data.group.name)),i.loading=!1})}}]),t}();aI.\u0275fac=function(r){return new(r||aI)(n.Y36(Ar),n.Y36(na),n.Y36(wu),n.Y36(Ap),n.Y36($n))},aI.\u0275cmp=n.Xpm({type:aI,selectors:[["app-add-role-to-group"]],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&&(n.TgZ(0,"div",0)(1,"h3"),n._uU(2),n.qZA()(),n.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),n._uU(6,"Search user "),n.qZA(),n.TgZ(7,"input",3),n.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),n.qZA()()(),n.YNc(8,fje,5,3,"div",4),n.ALo(9,"async")),2&r&&(n.xp6(2),n.hij("Add Role To group: ",e.data.group.name,""),n.xp6(5),n.Q6J("ngModel",e.searchText),n.xp6(1),n.Q6J("ngForOf",n.lcZ(9,3,e.displayedRoles)))},directives:[Fn.KE,Fn.hX,sr,ne.Fj,ne.JJ,ne.On,Ct.sg,Ct.O5,Vn,ql],pipes:[Ct.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 sI=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),t}();function pje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div")(1,"a",21)(2,"div"),n._uU(3),n.qZA()(),n.TgZ(4,"mat-icon",13),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().openRemoveUserDialog(l)}),n._uU(5,"delete"),n.qZA()()}if(2&t){var i=r.$implicit,o=n.oxw();n.xp6(1),n.hYB("href","/controller/",o.controller.id,"/management/users/",i.user_id,"",n.LSH),n.xp6(2),n.Oqu(i.username)}}function hje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"div",22)(1,"div"),n._uU(2),n.qZA(),n.TgZ(3,"div")(4,"button",19),n.NdJ("click",function(){var s=n.CHM(e).$implicit;return n.oxw().openRemoveRoleDialog(s)}),n.TgZ(5,"mat-icon"),n._uU(6,"delete"),n.qZA()()()()}if(2&t){var i=r.$implicit;n.xp6(2),n.Oqu(i.name)}}sI.\u0275fac=function(r){return new(r||sI)},sI.\u0275pipe=n.Yjl({name:"membersFilter",type:sI,pure:!0});var mje=function(r){return["/controller",r,"management","groups"]},_je=function(){return[5,20,50,100]},lI=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.editGroupForm=new ne.cw({groupname:new ne.NI("")}),this.route.data.subscribe(function(s){a.controller=s.controller,a.group=s.group,a.roles=s.roles,a.members=s.members.sort(function(l,u){return l.username.toLowerCase().localeCompare(u.username.toLowerCase())}),a.editGroupForm.setValue({groupname:a.group.name})})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"onUpdate",value:function(){var e=this;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:"openAddRoleDialog",value:function(){var e=this;this.dialog.open(aI,{width:"700px",height:"500px",data:{controller:this.controller,group:this.group}}).afterClosed().subscribe(function(){e.reloadRoles()})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(oI,{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(Ik,{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:"openRemoveRoleDialog",value:function(e){var i=this;this.dialog.open(Ik,{width:"500px",height:"200px",data:{name:e.name}}).afterClosed().subscribe(function(o){o&&i.groupService.removeRole(i.controller,i.group,e).subscribe(function(){i.toastService.success("Role ".concat(e.name," was removed")),i.reloadRoles()},function(a){i.toastService.error("Error while removing role ".concat(e.name," 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})}},{key:"reloadRoles",value:function(){var e=this;this.groupService.getGroupRole(this.controller,this.group.user_group_id).subscribe(function(i){e.roles=i})}}]),t}();lI.\u0275fac=function(r){return new(r||lI)(n.Y36(xr),n.Y36(ri),n.Y36(wu),n.Y36($n))},lI.\u0275cmp=n.Xpm({type:lI,selectors:[["app-group-details"]],decls:47,vars:22,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"],["matInput","","type","text",3,"ngModel"],["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","Roles"],["mat-button","",3,"click"],["class","roles",4,"ngFor","ngForOf"],[3,"href"],[1,"roles"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7),n.qZA()(),n.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"mat-form-field")(13,"mat-label"),n._uU(14,"Group name:"),n.qZA(),n._UZ(15,"input",7),n.qZA()(),n.TgZ(16,"div")(17,"mat-checkbox",8),n._uU(18,"Is build in"),n.qZA()(),n.TgZ(19,"div",9)(20,"button",10),n.NdJ("click",function(){return e.onUpdate()}),n._uU(21," Update Group "),n.qZA()()(),n.TgZ(22,"div")(23,"div"),n._uU(24),n.qZA(),n.TgZ(25,"div"),n._uU(26),n.qZA(),n.TgZ(27,"div"),n._uU(28),n.qZA()()(),n.TgZ(29,"mat-tab",11)(30,"div",12)(31,"div")(32,"mat-icon",13),n.NdJ("click",function(){return e.openAddUserDialog()}),n._uU(33,"person_add"),n.qZA()(),n.TgZ(34,"div",14)(35,"mat-form-field")(36,"input",15),n.NdJ("ngModelChange",function(o){return e.searchMembers=o}),n.qZA()()(),n.YNc(37,pje,6,3,"div",16),n.ALo(38,"paginator"),n.ALo(39,"membersFilter"),n.TgZ(40,"mat-paginator",17),n.NdJ("page",function(o){return e.pageEvent=o}),n.qZA()()(),n.TgZ(41,"mat-tab",18)(42,"div")(43,"button",19),n.NdJ("click",function(){return e.openAddRoleDialog()}),n.TgZ(44,"mat-icon"),n._uU(45,"group_add"),n.qZA()()(),n.YNc(46,hje,7,1,"div",20),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(19,mje,e.controller.id)),n.xp6(4),n.hij("Groups ",e.group.name," details"),n.xp6(8),n.Q6J("ngModel",e.group.name),n.xp6(2),n.Q6J("checked",e.group.is_builtin),n.xp6(3),n.Q6J("disabled",!e.editGroupForm.valid),n.xp6(4),n.hij("Creation date: ",e.group.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.group.updated_at,""),n.xp6(2),n.hij("UUID: ",e.group.user_group_id,""),n.xp6(8),n.Q6J("ngModel",e.searchMembers),n.xp6(1),n.Q6J("ngForOf",n.xi3(38,13,n.xi3(39,16,e.members,e.searchMembers),e.pageEvent)),n.xp6(3),n.Q6J("length",e.members.length)("pageSizeOptions",n.DdM(21,_je)),n.xp6(6),n.Q6J("ngForOf",e.roles))},directives:[ig,Ws,vi,Vn,so.SP,so.uX,Fn.KE,Fn.hX,sr,ne.Fj,ne.JJ,ne.On,Ui,Zr,Tn,Ct.sg,ed],pipes:[lb,sI],styles:[".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 Pk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Pk.\u0275fac=function(r){return new(r||Pk)(n.LFG(vr),n.LFG(wu))},Pk.\u0275prov=n.Yz7({token:Pk,factory:Pk.\u0275fac,providedIn:"root"});var Rk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();Rk.\u0275fac=function(r){return new(r||Rk)(n.LFG(vr),n.LFG(wu))},Rk.\u0275prov=n.Yz7({token:Rk,factory:Rk.\u0275fac,providedIn:"root"});var Lk=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.groupService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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.getGroupRole(u,l).subscribe(function(f){a.next(f),a.complete()})})})}}]),t}();function gje(t,r){if(1&t&&n._UZ(0,"app-editable-permission",17),2&t){var e=r.$implicit,i=n.oxw();n.Q6J("permission",e)("controller",i.controller)}}Lk.\u0275fac=function(r){return new(r||Lk)(n.LFG(vr),n.LFG(wu))},Lk.\u0275prov=n.Yz7({token:Lk,factory:Lk.\u0275fac,providedIn:"root"});var vje=function(r){return["/controller",r,"management","roles"]},yje=function(r,e){return["/controller",r,"management","roles",e,"permissions"]},uI=function(){function t(r,e,i,o){(0,j.Z)(this,t),this.roleService=r,this.controllerService=e,this.toastService=i,this.route=o,this.editRoleForm=new ne.cw({rolename:new ne.NI,description:new ne.NI})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.role=i.role})}},{key:"onUpdate",value:function(){var e=this;this.roleService.update(this.controller,this.role).subscribe(function(){e.toastService.success("role: ".concat(e.role.name," was updated"))},function(i){e.toastService.error("".concat(i.message,"\n ").concat(i.error.message))})}}]),t}();uI.\u0275fac=function(r){return new(r||uI)(n.Y36(Ap),n.Y36(vr),n.Y36($n),n.Y36(xr))},uI.\u0275cmp=n.Xpm({type:uI,selectors:[["app-role-detail"]],decls:42,vars:17,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"],["matInput","","type","text",3,"ngModel"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[1,"permissions"],[1,"header"],["mat-button","",3,"routerLink"],[3,"permission","controller",4,"ngFor","ngForOf"],[3,"permission","controller"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),n._uU(5,"keyboard_arrow_left"),n.qZA()(),n.TgZ(6,"h1",5),n._uU(7),n.qZA()(),n.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),n._uU(13,"Role name:"),n.qZA(),n._UZ(14,"input",8),n.qZA()(),n.TgZ(15,"div")(16,"mat-form-field")(17,"mat-label"),n._uU(18,"Description:"),n.qZA(),n._UZ(19,"input",8),n.qZA()(),n.TgZ(20,"div"),n._uU(21),n.qZA(),n.TgZ(22,"div"),n._uU(23),n.qZA(),n.TgZ(24,"div"),n._uU(25),n.qZA(),n.TgZ(26,"div")(27,"mat-checkbox",9),n._uU(28,"Is build in"),n.qZA()(),n.TgZ(29,"div",10)(30,"button",11),n.NdJ("click",function(){return e.onUpdate()}),n._uU(31," Update Role "),n.qZA()()(),n._UZ(32,"mat-divider",12),n.TgZ(33,"div",13)(34,"div",14)(35,"div"),n._uU(36,"Permissions"),n.qZA(),n.TgZ(37,"div")(38,"button",15)(39,"mat-icon"),n._uU(40,"edit"),n.qZA()()()(),n.YNc(41,gje,1,2,"app-editable-permission",16),n.qZA()()()()),2&r&&(n.xp6(3),n.Q6J("routerLink",n.VKq(12,vje,e.controller.id)),n.xp6(4),n.hij("Role ",e.role.name," details"),n.xp6(7),n.Q6J("ngModel",e.role.name),n.xp6(5),n.Q6J("ngModel",e.role.description),n.xp6(2),n.hij("Creation date: ",e.role.created_at,""),n.xp6(2),n.hij("Last update Date: ",e.role.updated_at,""),n.xp6(2),n.hij("UUID: ",e.role.role_id,""),n.xp6(2),n.Q6J("checked",e.role.is_builtin),n.xp6(3),n.Q6J("disabled",!e.editRoleForm.valid),n.xp6(2),n.Q6J("vertical",!0),n.xp6(6),n.Q6J("routerLink",n.WLB(14,yje,e.controller.id,e.role.role_id)),n.xp6(3),n.Q6J("ngForOf",e.role.permissions))},directives:[ig,Ws,vi,Vn,Fn.KE,Fn.hX,sr,ne.Fj,ne.JJ,ne.On,Ui,Zr,Tn,t0.d,ta,Ct.sg,Gg],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.permissions[_ngcontent-%COMP%]{width:35vw;display:flex;flex-direction:column;justify-content:stretch}.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}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var ub=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.roleService=e}return(0,V.Z)(t,[{key:"resolve",value:function(e,i){var o=this;return new fo.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(f){a.next(f),a.complete()})})})}}]),t}();function bje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"button",5),n.NdJ("click",function(){return n.CHM(e),n.oxw().update()}),n._uU(1," Apply "),n.qZA()}}function Cje(t,r){1&t&&(n.TgZ(0,"div",9),n._uU(1,"Permission to Add:"),n.qZA())}function wje(t,r){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"app-editable-permission",10),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("permission",e)}}function kje(t,r){1&t&&(n.TgZ(0,"div",9),n._uU(1,"Permission to Remove:"),n.qZA())}function Tje(t,r){if(1&t&&(n.TgZ(0,"div"),n._UZ(1,"app-editable-permission",10),n.qZA()),2&t){var e=r.$implicit;n.xp6(1),n.Q6J("permission",e)}}function Eje(t,r){if(1&t&&(n.TgZ(0,"div",6),n._UZ(1,"p"),n.YNc(2,Cje,2,0,"div",7),n.YNc(3,wje,2,1,"div",8),n.YNc(4,kje,2,0,"div",7),n.YNc(5,Tje,2,1,"div",8),n.qZA()),2&t){var e=n.oxw();n.xp6(2),n.Q6J("ngIf",e.data.add.length>0),n.xp6(1),n.Q6J("ngForOf",e.data.add),n.xp6(1),n.Q6J("ngIf",e.data.remove.length>0),n.xp6(1),n.Q6J("ngForOf",e.data.remove)}}function Mje(t,r){1&t&&(n.TgZ(0,"div",11),n._uU(1," No change "),n.qZA())}ub.\u0275fac=function(r){return new(r||ub)(n.LFG(vr),n.LFG(Ap))},ub.\u0275prov=n.Yz7({token:ub,factory:ub.\u0275fac,providedIn:"root"});var cI=function(){function t(r,e){(0,j.Z)(this,t),this.dialogRef=r,this.data=e}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"close",value:function(){this.dialogRef.close(!1)}},{key:"update",value:function(){this.dialogRef.close(!0)}}]),t}();function Sje(t,r){if(1&t&&(n.TgZ(0,"mat-option",15),n._uU(1),n.qZA()),2&t){var e=r.$implicit;n.Q6J("value",e),n.xp6(1),n.hij(" ",e.name," ")}}function xje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-editable-permission",16),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().remove(l)}),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw();n.Q6J("side","LEFT")("permission",i)("controller",o.controller)}}function Dje(t,r){if(1&t){var e=n.EpF();n.TgZ(0,"app-editable-permission",16),n.NdJ("click",function(){var l=n.CHM(e).$implicit;return n.oxw().add(l)}),n.qZA()}if(2&t){var i=r.$implicit,o=n.oxw();n.Q6J("side","RIGHT")("permission",i)("controller",o.controller)}}cI.\u0275fac=function(r){return new(r||cI)(n.Y36(Ar),n.Y36(na))},cI.\u0275cmp=n.Xpm({type:cI,selectors:[["app-permission-editor-validate-dialog"]],decls:8,vars:3,consts:[[1,"button"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click",4,"ngIf"],["class","change",4,"ngIf","ngIfElse"],["nothingTodo",""],["mat-button","","mat-raised-button","","color","primary",3,"click"],[1,"change"],["class","title",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"title"],[3,"permission"],[1,"noChange"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div")(1,"div",0)(2,"button",1),n.NdJ("click",function(){return e.close()}),n._uU(3," Cancel "),n.qZA(),n.YNc(4,bje,2,0,"button",2),n.qZA(),n.YNc(5,Eje,6,4,"div",3),n.YNc(6,Mje,2,0,"ng-template",null,4,n.W1O),n.qZA()),2&r){var i=n.MAs(7);n.xp6(4),n.Q6J("ngIf",e.data.add.length>0||e.data.remove.length>0),n.xp6(1),n.Q6J("ngIf",e.data.add.length>0||e.data.remove.length>0)("ngIfElse",i)}},directives:[Tn,Ct.O5,Ct.sg,Gg],styles:[".change[_ngcontent-%COMP%]{height:350px;display:flex;flex-direction:column;justify-content:center;overflow-y:auto}.change[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{justify-content:center;justify-items:center;text-align:center}.title[_ngcontent-%COMP%]{font-size:20px}.button[_ngcontent-%COMP%]{position:relative;top:400px;z-index:1}.button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:50px}.noChange[_ngcontent-%COMP%]{display:flex;justify-content:center;justify-items:center}"]});var Bie=function(){return[5,20,50,100]},Zk=function(){function t(r,e){(0,j.Z)(this,t),this.dialog=r,this.apiInformationService=e,this.updatedPermissions=new n.vpe}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){this.reset()}},{key:"add",value:function(e){this.available.delete(e),this.owned.add(e)}},{key:"remove",value:function(e){this.owned.delete(e),this.available.add(e)}},{key:"reset",value:function(){var e=this.ownedPermissions.map(function(i){return i.permission_id});this.owned=new Set(this.ownedPermissions),this.available=new Set(this.availablePermissions.filter(function(i){return!e.includes(i.permission_id)}))}},{key:"update",value:function(){var e=this,i=this.diff(),o=i.add,a=i.remove;this.dialog.open(cI,{width:"700px",height:"500px",data:{add:o,remove:a}}).afterClosed().subscribe(function(s){s&&e.updatedPermissions.emit({add:o,remove:a})})}},{key:"diff",value:function(){var e=this,i=[],o=this.ownedPermissions.map(function(s){return s.permission_id});this.owned.forEach(function(s){o.includes(s.permission_id)||i.push(s)});var a=[];return this.ownedPermissions.forEach(function(s){e.owned.has(s)||a.push(s)}),{add:i,remove:a}}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"changeAutocomplete",value:function(e){this.filteredOptions=this.apiInformationService.getIdByObjNameFromCache(e)}},{key:"ownedArray",get:function(){return Array.from(this.owned.values())}},{key:"availableArray",get:function(){return Array.from(this.available.values())}}]),t}();Zk.\u0275fac=function(r){return new(r||Zk)(n.Y36(ri),n.Y36(af))},Zk.\u0275cmp=n.Xpm({type:Zk,selectors:[["app-permission-editor"]],inputs:{controller:"controller",ownedPermissions:"ownedPermissions",availablePermissions:"availablePermissions"},outputs:{updatedPermissions:"updatedPermissions"},decls:34,vars:28,consts:[[1,"header"],[1,"box","allow"],[1,"box","deny"],["type","text","matInput","","name","typeInput","placeholder","Search by name",1,"permission-filter",3,"ngModel","matAutocomplete","ngModelChange","input"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button","","mat-raised-button","",3,"click"],["mat-button","","mat-raised-button","","color","primary",3,"click"],[1,"editor"],[1,"column"],[1,"title"],[3,"side","permission","controller","click",4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],[3,"vertical"],[3,"value"],[3,"side","permission","controller","click"]],template:function(r,e){if(1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"div"),n._uU(3," Allow: "),n.qZA(),n._UZ(4,"div",1),n.TgZ(5,"div"),n._uU(6," Deny: "),n.qZA(),n._UZ(7,"div",2),n.qZA(),n.TgZ(8,"input",3),n.NdJ("ngModelChange",function(a){return e.searchPermissions=a})("input",function(a){return e.changeAutocomplete(a.target.value)}),n.qZA(),n.TgZ(9,"mat-autocomplete",4,5),n.YNc(11,Sje,2,2,"mat-option",6),n.ALo(12,"filterComplete"),n.qZA(),n.TgZ(13,"div")(14,"button",7),n.NdJ("click",function(){return e.reset()}),n._uU(15,"Reset "),n.qZA(),n.TgZ(16,"button",8),n.NdJ("click",function(){return e.update()}),n._uU(17,"Update "),n.qZA()()(),n.TgZ(18,"div",9)(19,"div",10)(20,"div",11),n._uU(21,"Owned"),n.qZA(),n.YNc(22,xje,1,3,"app-editable-permission",12),n.ALo(23,"paginator"),n.ALo(24,"permissionsFilter"),n.TgZ(25,"mat-paginator",13),n.NdJ("page",function(a){return e.pageEventOwned=a}),n.qZA()(),n._UZ(26,"mat-divider",14),n.TgZ(27,"div",10)(28,"div",11),n._uU(29,"Available"),n.qZA(),n.YNc(30,Dje,1,3,"app-editable-permission",12),n.ALo(31,"paginator"),n.ALo(32,"permissionsFilter"),n.TgZ(33,"mat-paginator",13),n.NdJ("page",function(a){return e.pageEventAvailable=a}),n.qZA()()()),2&r){var i=n.MAs(10);n.xp6(8),n.Q6J("ngModel",e.searchPermissions)("matAutocomplete",i),n.xp6(1),n.Q6J("displayWith",e.displayFn),n.xp6(2),n.Q6J("ngForOf",n.xi3(12,11,e.filteredOptions,e.searchPermissions)),n.xp6(11),n.Q6J("ngForOf",n.xi3(23,14,n.xi3(24,17,e.ownedArray,null==e.searchPermissions?null:e.searchPermissions.id),e.pageEventOwned)),n.xp6(3),n.Q6J("length",e.ownedArray.length)("pageSizeOptions",n.DdM(26,Bie)),n.xp6(1),n.Q6J("vertical",!0),n.xp6(4),n.Q6J("ngForOf",n.xi3(31,20,n.xi3(32,23,e.availableArray,null==e.searchPermissions?null:e.searchPermissions.id),e.pageEventAvailable)),n.xp6(3),n.Q6J("length",e.availableArray.length)("pageSizeOptions",n.DdM(27,Bie))}},directives:[sr,ne.Fj,of,ne.JJ,ne.On,rf,Ct.sg,ln.ey,Tn,Gg,ed,t0.d],pipes:[sb,lb,Ok],styles:[".editor[_ngcontent-%COMP%]{display:flex;justify-content:stretch}.column[_ngcontent-%COMP%]{width:50vw}.header[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row;justify-content:space-between;font-size:20px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-right:30px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:20px}.title[_ngcontent-%COMP%]{font-size:20px;margin-left:20px}.box[_ngcontent-%COMP%]{width:50px;height:25px;border:1px solid;margin-right:20px;margin-left:10px}.allow[_ngcontent-%COMP%]{background-color:#054c0561}.deny[_ngcontent-%COMP%]{background-color:#8208085c}.permission-filter[_ngcontent-%COMP%]{border-bottom:1px solid;margin:5px;border-bottom-color:#b0bec5}"]});var Aje=function(r,e){return["/controller",r,"management","roles",e]},dI=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.toastService=i,this.router=o,this.roleService=a,this.route.data.subscribe(function(l){s.controller=l.controller,s.role=l.role,s.permissions=l.permissions})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updatePermissions",value:function(e){var i=this,o=e.add,a=e.remove,s=[];o.forEach(function(l){s.push(i.roleService.addPermission(i.controller,i.role,l))}),a.forEach(function(l){s.push(i.roleService.removePermission(i.controller,i.role,l))}),(0,Bc.D)(s).subscribe(function(){i.toastService.success("permissions updated"),i.router.navigate(["/controller",i.controller.id,"management","roles",i.role.role_id])},function(l){i.toastService.error("".concat(l.message,"\n ").concat(l.error.message))})}}]),t}();dI.\u0275fac=function(r){return new(r||dI)(n.Y36(xr),n.Y36(ri),n.Y36($n),n.Y36(kr),n.Y36(Ap))},dI.\u0275cmp=n.Xpm({type:dI,selectors:[["app-role-permissions"]],decls:8,vars:8,consts:[[1,"header"],["mat-icon-button","","matTooltip","Back to role detail","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role detail"],[3,"ownedPermissions","availablePermissions","controller","updatedPermissions"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"a",1)(3,"mat-icon",2),n._uU(4,"keyboard_arrow_left"),n.qZA()()(),n.TgZ(5,"div"),n._uU(6),n.qZA()(),n.TgZ(7,"app-permission-editor",3),n.NdJ("updatedPermissions",function(o){return e.updatePermissions(o)}),n.qZA()),2&r&&(n.xp6(2),n.Q6J("routerLink",n.WLB(5,Aje,e.controller.id,e.role.role_id)),n.xp6(4),n.hij(" Edit ",e.role.name," role permissions "),n.xp6(1),n.Q6J("ownedPermissions",e.role.permissions)("availablePermissions",e.permissions)("controller",e.controller))},directives:[ig,Ws,vi,Vn,Zk],styles:[""]});var Oje=function(r,e){return["/controller",r,"management","users",e]},fI=function(){function t(r,e,i,o,a){var s=this;(0,j.Z)(this,t),this.route=r,this.dialog=e,this.toastService=i,this.router=o,this.userService=a,this.route.data.subscribe(function(l){s.controller=l.controller,s.user=l.user,s.userPermissions=l.userPermissions,s.permissions=l.permissions})}return(0,V.Z)(t,[{key:"ngOnInit",value:function(){}},{key:"updatePermissions",value:function(e){var i=this,o=e.add,a=e.remove,s=[];o.forEach(function(l){s.push(i.userService.addPermission(i.controller,i.user.user_id,l))}),a.forEach(function(l){s.push(i.userService.removePermission(i.controller,i.user.user_id,l))}),(0,Bc.D)(s).subscribe(function(){i.toastService.success("permissions updated"),i.router.navigate(["/controller",i.controller.id,"management","users",i.user.user_id])},function(l){i.toastService.error("".concat(l.message,"\n ").concat(l.error.message))})}}]),t}();fI.\u0275fac=function(r){return new(r||fI)(n.Y36(xr),n.Y36(ri),n.Y36($n),n.Y36(kr),n.Y36(pl))},fI.\u0275cmp=n.Xpm({type:fI,selectors:[["app-user-permissions"]],decls:8,vars:8,consts:[[1,"header"],["mat-icon-button","","matTooltip","Back to user detail","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user detail"],[3,"ownedPermissions","availablePermissions","controller","updatedPermissions"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0)(1,"div")(2,"a",1)(3,"mat-icon",2),n._uU(4,"keyboard_arrow_left"),n.qZA()()(),n.TgZ(5,"div"),n._uU(6),n.qZA()(),n.TgZ(7,"app-permission-editor",3),n.NdJ("updatedPermissions",function(o){return e.updatePermissions(o)}),n.qZA()),2&r&&(n.xp6(2),n.Q6J("routerLink",n.WLB(5,Oje,e.controller.id,e.user.user_id)),n.xp6(4),n.hij(" Edit ",e.user.username," role permissions "),n.xp6(1),n.Q6J("ownedPermissions",e.userPermissions)("availablePermissions",e.permissions)("controller",e.controller))},directives:[ig,Ws,vi,Vn,Zk],styles:[""]});var Ije=[{path:"",component:IO,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:bO},{path:"bundled",component:zx},{path:"controller/:controller_id/login",component:r2},{path:"controller/:controller_id/loggeduser",component:UO},{path:"controller/:controller_id/image-manager",component:zO},{path:"controller/:controller_id/projects",component:_k,canActivate:[ni],resolve:{controller:rc}},{path:"controller/:controller_id/help",component:Xx},{path:"controller/:controller_id/settings",component:wO},{path:"controller/:controller_id/settings/console",component:CO},{path:"controller/:controller_id/management/users/:user_id",component:VO,canActivate:[ni],resolve:{user:nb,groups:Sk,permissions:ib,controller:rc}},{path:"installed-software",component:t2},{path:"controller/:controller_id/systemstatus",component:DO,canActivate:[ni]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:Gx,canActivate:[ni]},{path:"controller/:controller_id/project/:project_id/snapshots",component:EO,canActivate:[ni],resolve:{controller:rc}},{path:"controller/:controller_id/preferences",component:N2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin",component:o2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:g2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:m2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:_2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:b2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:v2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:y2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:h2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:s2,canActivate:[ni]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:u2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates",component:I2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:D2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:O2,canActivate:[ni]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:A2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates",component:H2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:F2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:U2,canActivate:[ni]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:B2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/templates",component:J2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:K2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:q2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:W2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:z2,canActivate:[ni]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:j2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/templates",component:G2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:Y2,canActivate:[ni]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:V2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates",component:x2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:S2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:M2,canActivate:[ni]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:E2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates",component:Z2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:L2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:R2,canActivate:[ni]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:P2,canActivate:[ni]},{path:"controller/:controller_id/management",component:YO,children:[{path:"users",component:FO},{path:"groups",component:JO},{path:"roles",component:eI},{path:"permissions",component:iI}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:lI,resolve:{members:Pk,controller:rc,group:Rk,roles:Lk}},{path:"controller/:controller_id/management/roles/:role_id",component:uI,resolve:{role:ub,controller:rc}},{path:"controller/:controller_id/management/roles/:role_id/permissions",component:dI,resolve:{role:ub,controller:rc,permissions:rb}},{path:"controller/:controller_id/management/users/:user_id/permissions",component:fI,resolve:{user:nb,userPermissions:ib,controller:rc,permissions:rb}}]},{path:"controller/:controller_id/project/:project_id",component:_O,canActivate:[ni],canDeactivate:[tb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:wk,canActivate:[ni]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:wk,canActivate:[ni]},{path:"**",component:i2}],Nk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Nk.\u0275fac=function(r){return new(r||Nk)},Nk.\u0275mod=n.oAB({type:Nk}),Nk.\u0275inj=n.cJS({imports:[[Vy.forRoot(Ije,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"})],Vy]});var Pje=function(r,e){return{dark:r,light:e}},pI=function(){function t(r,e,i,o,a,s,l,u){var f=this;(0,j.Z)(this,t),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){f.checkEvent(h)})}return(0,V.Z)(t,[{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 j5?this.progressService.activate():(e instanceof Zh||e instanceof fH||e instanceof P$)&&this.progressService.deactivate()}}]),t}();pI.\u0275fac=function(r){return new(r||pI)(n.Y36(Ao.Xj),n.Y36(lp),n.Y36(An.H7),n.Y36(hm.g),n.Y36(sl),n.Y36(qu.f),n.Y36(kr),n.Y36(ul))},pI.\u0275cmp=n.Xpm({type:pI,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&n.Tol(e.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet")(2,"app-adbutler"),n.qZA()),2&r&&n.Q6J("ngClass",n.WLB(1,Pje,e.darkThemeEnabled,!e.darkThemeEnabled))},directives:[Ct.mk,Bh,gw],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var Rje=(0,V.Z)(function t(){(0,j.Z)(this,t)}),Bk=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i=new Rje;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),t}();Bk.\u0275fac=function(r){return new(r||Bk)},Bk.\u0275prov=n.Yz7({token:Bk,factory:Bk.\u0275fac});var Fk=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return Hj(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}}]),t}();Fk.\u0275fac=function(r){return new(r||Fk)},Fk.\u0275prov=n.Yz7({token:Fk,factory:Fk.\u0275fac});var Lje=[Og,cm,Tp,Eg,kp,Mp,Mg,wp,Tg,I0,Dg,T0,Xd,A0,S0,D0,x0,Ag,O0],Uk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Uk.\u0275fac=function(r){return new(r||Uk)},Uk.\u0275mod=n.oAB({type:Uk}),Uk.\u0275inj=n.cJS({providers:[ec,gs,Ng,H0,j0,z0,W0,yp,Ep,tc,um,Cp,wg,qs,Il,Jc,Qc,fm,$c,lm,vg,Cg,w0,V0,Dp,Ug,Y0,vm,Fg,Bk,bg,yg,k0,bp,nm,rm,im,om,kg,Qd,pp,Fk,Sg,xg].concat((0,$t.Z)(Lje)),imports:[[Ct.ez,ag,rg]]});var cb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(xZ.o);cb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(cb)))(e||cb)}}(),cb.\u0275prov=n.Yz7({token:cb,factory:cb.\u0275fac});var dz=function(t,r){return(dz=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])})(t,r)};function hI(t,r){function e(){this.constructor=t}dz(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Gn=function(){return Gn=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},Gn.apply(this,arguments)};function wm(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function tu(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,s,i=e.call(t),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 ys(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(tu(arguments[r]));return t}var La=m(7312),Fie=Object.prototype.toString;function fz(t){switch(Fie.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return qg(t,Error)}}function Hk(t,r){return Fie.call(t)==="[object "+r+"]"}function Uie(t){return Hk(t,"ErrorEvent")}function Hie(t){return Hk(t,"DOMError")}function jk(t){return Hk(t,"String")}function pz(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function zk(t){return Hk(t,"Object")}function EN(t){return"undefined"!=typeof Event&&qg(t,Event)}function hz(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function qg(t,r){try{return t instanceof r}catch(e){return!1}}function mz(t,r){try{for(var e=t,a=[],s=0,l=0,f=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=Hje(e,r))||s>1&&l+a.length*f+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(v){return"<unknown>"}}function Hje(t,r){var o,a,s,l,u,e=t,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var f=r&&r.length?r.filter(function(v){return e.getAttribute(v)}).map(function(v){return[v,e.getAttribute(v)]}):null;if(f&&f.length)f.forEach(function(v){i.push("["+v[0]+'="'+v[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&jk(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 mI(t,r){return void 0===r&&(r=0),"string"!=typeof t||0===r||t.length<=r?t:t.substr(0,r)+"..."}function jie(t,r){if(!Array.isArray(t))return"";for(var e=[],i=0;i<t.length;i++){var o=t[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function _z(t,r){return!!jk(t)&&(function Bje(t){return Hk(t,"RegExp")}(r)?r.test(t):"string"==typeof r&&-1!==t.indexOf(r))}function Pl(t,r,e){if(r in t){var i=t[r],o=e(i);if("function"==typeof o)try{zie(o,i)}catch(a){}t[r]=o}}function MN(t,r,e){Object.defineProperty(t,r,{value:e,writable:!0,configurable:!0})}function zie(t,r){var e=r.prototype||{};t.prototype=r.prototype=e,MN(t,"__sentry_original__",r)}function gz(t){return t.__sentry_original__}function Wie(t){var r=t;if(fz(t))r=Gn({message:t.message,name:t.name,stack:t.stack},Yie(t));else if(EN(t)){var e=t;r=Gn({type:e.type,target:Vie(e.target),currentTarget:Vie(e.currentTarget)},Yie(e)),"undefined"!=typeof CustomEvent&&qg(t,CustomEvent)&&(r.detail=e.detail)}return r}function Vie(t){try{return function Nje(t){return"undefined"!=typeof Element&&qg(t,Element)}(t)?mz(t):Object.prototype.toString.call(t)}catch(r){return"<unknown>"}}function Yie(t){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e]);return r}function Wje(t,r){void 0===r&&(r=40);var e=Object.keys(Wie(t));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return mI(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:mI(o,r)}return""}function vz(t){var r,e;if(zk(t)){var i={};try{for(var o=wm(Object.keys(t)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==t[s]&&(i[s]=vz(t[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(t)?t.map(vz):t}function Wk(){var t=(0,La.R)(),r=t.crypto||t.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 yz(t){if(!t)return{};var r=t.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 Gie(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function db(t){var r=t.message,e=t.event_id;if(r)return r;var i=Gie(t);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function bz(t,r,e){var i=t.exception=t.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function _I(t,r){var e=Gie(t);if(e){var o=e.mechanism;if(e.mechanism=Gn(Gn(Gn({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=Gn(Gn({},o&&o.data),r.data);e.mechanism.data=a}}}function qie(t){if(t&&t.__sentry_captured__)return!0;try{MN(t,"__sentry_captured__",!0)}catch(r){}return!1}var Ii,Vk=m(3169),Yk="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Yje=(0,La.R)(),Gje="Sentry Logger ",SN=["debug","info","warn","error","log","assert"];function Kie(t){var r=(0,La.R)();if(!("console"in r))return t();var e=r.console,i={};SN.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 t()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function Jie(){var t=!1,r={enable:function(){t=!0},disable:function(){t=!1}};return Yk?SN.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&Kie(function(){var a;(a=Yje.console)[e].apply(a,ys([Gje+"["+e+"]:"],i))})}}):SN.forEach(function(e){r[e]=function(){}}),r}Ii=Yk?(0,La.Y)("logger",Jie):Jie();var qje=m(3295),Qie="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function fb(t){return new Kg(function(r){r(t)})}function gI(t){return new Kg(function(r,e){e(t)})}var Kg=function(){function t(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(hz(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 t.prototype.then=function(r,e){var i=this;return new t(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()})},t.prototype.catch=function(r){return this.then(function(e){return e},r)},t.prototype.finally=function(r){var e=this;return new t(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)})})},t}(),xN=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(r){var e=new t;return r&&(e._breadcrumbs=ys(r._breadcrumbs),e._tags=Gn({},r._tags),e._extra=Gn({},r._extra),e._contexts=Gn({},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=ys(r._eventProcessors),e._requestSession=r._requestSession),e},t.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},t.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},t.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(r){return this._requestSession=r,this},t.prototype.setTags=function(r){return this._tags=Gn(Gn({},this._tags),r),this._notifyScopeListeners(),this},t.prototype.setTag=function(r,e){var i;return this._tags=Gn(Gn({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(r){return this._extra=Gn(Gn({},this._extra),r),this._notifyScopeListeners(),this},t.prototype.setExtra=function(r,e){var i;return this._extra=Gn(Gn({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},t.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(r){return this.setTransactionName(r)},t.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=Gn(Gn({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},t.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof t?e:this}return r instanceof t?(this._tags=Gn(Gn({},this._tags),r._tags),this._extra=Gn(Gn({},this._extra),r._extra),this._contexts=Gn(Gn({},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)):zk(r)&&(r=r,this._tags=Gn(Gn({},this._tags),r.tags),this._extra=Gn(Gn({},this._extra),r.extra),this._contexts=Gn(Gn({},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},t.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},t.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=Gn({timestamp:(0,Vk.yW)()},r);return this._breadcrumbs=ys(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=Gn(Gn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Gn(Gn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Gn(Gn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Gn(Gn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Gn({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=Gn({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=ys(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(ys($ie(),this._eventProcessors),r,e)},t.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=Gn(Gn({},this._sdkProcessingMetadata),r),this},t.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new Kg(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var f=u(Gn({},e),i);hz(f)?f.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,f,i,o+1).then(s).then(null,l)}})},t.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},t.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},t}();function $ie(){return(0,La.Y)("globalEventProcessors",function(){return[]})}function Cz(t){$ie().push(t)}var Kje=function(){function t(r){this.errors=0,this.sid=Wk(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,Vk.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return t.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,Vk.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:Wk()),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)},t.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return vz({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}})},t}(),kz=function(){function t(r,e,i){void 0===e&&(e=new xN),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return t.prototype.isOlderThan=function(r){return this._version<r},t.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},t.prototype.pushScope=function(){var r=xN.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},t.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},t.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:Wk(),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,Gn(Gn({},o),{event_id:i})),i},t.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:Wk(),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,Gn(Gn({},a),{event_id:o})),o},t.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:Wk();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Gn(Gn({},e),{event_id:i})),i},t.prototype.lastEventId=function(){return this._lastEventId},t.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,f=s.maxBreadcrumbs,h=void 0===f?100:f;if(!(h<=0)){var v=(0,Vk.yW)(),C=Gn({timestamp:v},r),B=u?Kie(function(){return u(C,e)}):C;null!==B&&o.addBreadcrumb(B,h)}}},t.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},t.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},t.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},t.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},t.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},t.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},t.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},t.prototype.run=function(r){var e=eoe(this);try{r(this)}finally{eoe(e)}},t.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return Qie&&Ii.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},t.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},t.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,f=((0,La.R)().navigator||{}).userAgent,h=new Kje(Gn(Gn(Gn({release:s,environment:l},i&&{user:i.getUser()}),f&&{userAgent:f}),r));if(i){var v=i.getSession&&i.getSession();v&&"ok"===v.status&&v.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},t.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)}},t.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,ys(i,[s]))},t.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=vI(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);Qie&&Ii.warn("Extension method "+r+" couldn't be found, doing nothing.")},t}();function vI(){var t=(0,La.R)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function eoe(t){var r=vI(),e=Jg(r);return Tz(r,t),e}function nu(){var t=vI();return(!toe(t)||Jg(t).isOlderThan(4))&&Tz(t,new kz),(0,qje.KV)()?function Qje(t){try{var r=vI().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return Jg(t);if(!toe(e)||Jg(e).isOlderThan(4)){var i=Jg(t).getStackTop();Tz(e,new kz(i.client,xN.clone(i.scope)))}return Jg(e)}catch(o){return Jg(t)}}(t):Jg(t)}function toe(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Jg(t){return(0,La.Y)("hub",function(){return new kz},t)}function Tz(t,r){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=r,!0)}function ku(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=nu();if(i&&i[t])return i[t].apply(i,ys(r));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function noe(t,r){return ku("captureException",t,{captureContext:r,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function Xje(t){ku("withScope",t)}var bs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var eze=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],tze=function(){function t(r){void 0===r&&(r={}),this._options=r,this.name=t.id}return t.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(t);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function nze(t,r){return void 0===t&&(t={}),void 0===r&&(r={}),{allowUrls:ys(t.whitelistUrls||[],t.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:ys(t.blacklistUrls||[],t.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:ys(t.ignoreErrors||[],r.ignoreErrors||[],eze),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(a._options,l);return function rze(t,r){return r.ignoreInternal&&function lze(t){try{return"SentryError"===t.exception.values[0].type}catch(r){}return!1}(t)?(bs&&Ii.warn("Event dropped due to being internal Sentry Error.\nEvent: "+db(t)),!0):function ize(t,r){return!(!r||!r.length)&&function sze(t){if(t.message)return[t.message];if(t.exception)try{var r=t.exception.values&&t.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 bs&&Ii.error("Cannot extract message for event "+db(t)),[]}return[]}(t).some(function(e){return r.some(function(i){return _z(e,i)})})}(t,r.ignoreErrors)?(bs&&Ii.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+db(t)),!0):function oze(t,r){if(!r||!r.length)return!1;var e=DN(t);return!!e&&r.some(function(i){return _z(e,i)})}(t,r.denyUrls)?(bs&&Ii.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+db(t)+".\nUrl: "+DN(t)),!0):!function aze(t,r){if(!r||!r.length)return!0;var e=DN(t);return!e||r.some(function(i){return _z(e,i)})}(t,r.allowUrls)&&(bs&&Ii.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+db(t)+".\nUrl: "+DN(t)),!0)}(i,u)?null:i}}return i})},t.id="InboundFilters",t}();function roe(t){void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--){var e=t[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function DN(t){try{if(t.stacktrace)return roe(t.stacktrace.frames);var r;try{r=t.exception.values[0].stacktrace.frames}catch(e){}return r?roe(r):null}catch(e){return bs&&Ii.error("Cannot extract url for event "+db(t)),null}}var ioe,uze=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){ioe=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=gz(this)||this;return ioe.apply(i,r)}},t.id="FunctionToString",t}();function fze(t){if(!t.length)return[];var r=t,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 Gn(Gn({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var Ez="<anonymous>";function Qg(t){try{return t&&"function"==typeof t&&t.name||Ez}catch(r){return Ez}}function AN(){if(!("fetch"in(0,La.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function Mz(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function hze(){if(!AN())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var ON,ha=(0,La.R)(),yI={},ooe={};function _ze(t){if(!ooe[t])switch(ooe[t]=!0,t){case"console":!function gze(){"console"in ha&&SN.forEach(function(t){t in ha.console&&Pl(ha.console,t,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];sf("console",{args:e,level:t}),r&&r.apply(ha.console,e)}})})}();break;case"dom":!function Mze(){if("document"in ha){var t=sf.bind(null,"dom"),r=aoe(t,!0);ha.document.addEventListener("click",r,!1),ha.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=ha[e]&&ha[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Pl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,f=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=f[a]=f[a]||{refCount:0};if(!h.handler){var v=aoe(t);h.handler=v,o.call(this,a,v,l)}h.refCount+=1}catch(C){}return o.call(this,a,s,l)}}),Pl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,f=u.__sentry_instrumentation_handlers__||{},h=f[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete f[a]),0===Object.keys(f).length&&delete u.__sentry_instrumentation_handlers__)}catch(v){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function Cze(){if("XMLHttpRequest"in ha){var t=XMLHttpRequest.prototype;Pl(t,"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:jk(e[0])?e[0].toUpperCase():e[0],url:e[1]};jk(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(f){}sf("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Pl(o,"onreadystatechange",function(u){return function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return l(),u.apply(o,f)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Pl(t,"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]),sf("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function vze(){!function pze(){if(!AN())return!1;var t=(0,La.R)();if(Mz(t.fetch))return!0;var r=!1,e=t.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=Mz(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){Yk&&Ii.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Pl(ha,"fetch",function(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:yze(r),url:bze(r)},startTimestamp:Date.now()};return sf("fetch",Gn({},i)),t.apply(ha,r).then(function(o){return sf("fetch",Gn(Gn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw sf("fetch",Gn(Gn({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function wze(){if(!function mze(){var t=(0,La.R)(),r=t.chrome,e=r&&r.app&&r.app.runtime,i="history"in t&&!!t.history.pushState&&!!t.history.replaceState;return!e&&i}())return;var t=ha.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=ON,l=String(a);ON=l,sf("history",{from:s,to:l})}return e.apply(this,i)}}ha.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=ha.location.href,a=ON;if(ON=o,sf("history",{from:a,to:o}),t)try{return t.apply(this,e)}catch(s){}},Pl(ha.history,"pushState",r),Pl(ha.history,"replaceState",r)}();break;case"error":!function Sze(){Sz=ha.onerror,ha.onerror=function(t,r,e,i,o){return sf("error",{column:i,error:o,line:e,msg:t,url:r}),!!Sz&&Sz.apply(this,arguments)}}();break;case"unhandledrejection":!function xze(){xz=ha.onunhandledrejection,ha.onunhandledrejection=function(t){return sf("unhandledrejection",t),!xz||xz.apply(this,arguments)}}();break;default:return void(Yk&&Ii.warn("unknown instrumentation type:",t))}}function Xg(t,r){yI[t]=yI[t]||[],yI[t].push(r),_ze(t)}function sf(t,r){var e,i;if(t&&yI[t])try{for(var o=wm(yI[t]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){Yk&&Ii.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Qg(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 yze(t){return void 0===t&&(t=[]),"Request"in ha&&qg(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function bze(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ha&&qg(t[0],Request)?t[0].url:String(t[0])}var IN,PN;function aoe(t,r){return void 0===r&&(r=!1),function(e){if(e&&PN!==e&&!function Eze(t){if("keypress"!==t.type)return!1;try{var r=t.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===IN||function Tze(t,r){if(!t||t.type!==r.type)return!0;try{if(t.target!==r.target)return!0}catch(e){}return!1}(PN,e))&&(t({event:e,name:i,global:r}),PN=e),clearTimeout(IN),IN=ha.setTimeout(function(){IN=void 0},1e3)}}}var Sz=null;var xz=null;var Dze=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function Aze(t,r){return t.__proto__=r,t}:function Oze(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r[e]);return t});var Os=function(t){function r(e){var i=this.constructor,o=t.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,Dze(o,i.prototype),o}return hI(r,t),r}(Error),Ize=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function bI(t,r){void 0===r&&(r=!1);var e=t.host,i=t.path,o=t.pass,a=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function loe(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function RN(t){var r="string"==typeof t?function Rze(t){var r=Ize.exec(t);if(!r)throw new Os("Invalid Sentry Dsn: "+t);var e=tu(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],f=void 0===u?"":u,v="",C=e[5],B=C.split("/");if(B.length>1&&(v=B.slice(0,-1).join("/"),C=B.pop()),C){var G=C.match(/^\d+/);G&&(C=G[0])}return loe({host:l,pass:s,path:v,projectId:C,port:f,protocol:i,publicKey:o})}(t):loe(t);return function Lze(t){if(Yk){var r=t.port,e=t.projectId,i=t.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!t[a])throw new Os("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Os("Invalid Sentry Dsn: Invalid projectId "+e);if(!function Pze(t){return"http"===t||"https"===t}(i))throw new Os("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Os("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function pb(t,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return coe("",t,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function uoe(t,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=pb(t,r);return function Fze(t){return function Bze(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(i)>e?uoe(t,r-1,e):i}function coe(t,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function Zze(){var t="function"==typeof WeakSet,r=t?new WeakSet:[];return[function e(o){if(t)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(t)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=tu(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 Uje(t){return"number"==typeof t&&t!=t}(r))return r;var f=function Nze(t,r){try{return"domain"===t&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function Fje(t){return zk(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+Qg(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(t,r);if(!f.startsWith("[object "))return f;if(0===e)return f.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},v=0,C=fz(r)||EN(r)?Wie(r):r;for(var B in C)if(Object.prototype.hasOwnProperty.call(C,B)){if(v>=i){h[B]="[MaxProperties ~]";break}var G=C[B];h[B]=coe(B,G,e-1,i,o),v+=1}return l(r),h}var doe=[];function foe(t){return t.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function jze(t){var r={};return function Uze(t){var r=t.defaultIntegrations&&ys(t.defaultIntegrations)||[],e=t.integrations,i=ys(foe(r));Array.isArray(e)?i=ys(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),foe(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,ys(i.splice(o.indexOf(a),1))),i}(t).forEach(function(e){r[e.name]=e,function Hze(t){-1===doe.indexOf(t.name)&&(t.setupOnce(Cz,nu),doe.push(t.name),bs&&Ii.log("Integration installed: "+t.name))}(e)}),MN(r,"initialized",!0),r}var poe="Not capturing exception because it's already been captured.",zze=function(){function t(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=RN(e.dsn))}return t.prototype.captureException=function(r,e,i){var o=this;if(!qie(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}bs&&Ii.log(poe)},t.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=pz(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},t.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&qie(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}bs&&Ii.log(poe)},t.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?bs&&Ii.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):bs&&Ii.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.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})})},t.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=jze(this._options))},t.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return bs&&Ii.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},t.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=wm(l),f=u.next();!f.done;f=u.next()){var v=f.value.mechanism;if(v&&!1===v.handled){a=!0;break}}}catch(G){i={error:G}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}var C="ok"===r.status;(C&&0===r.errors||C&&a)&&(r.update(Gn(Gn({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},t.prototype._sendSession=function(r){this._getBackend().sendSession(r)},t.prototype._isClientDoneProcessing=function(r){var e=this;return new Kg(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)})},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,f=void 0===u?1e3:u,h=Gn(Gn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:Wk()),timestamp:r.timestamp||(0,Vk.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var v=e;i&&i.captureContext&&(v=xN.clone(v).update(i.captureContext));var C=fb(h);return v&&(C=v.applyToEvent(h,i)),C.then(function(B){return B&&(B.sdkProcessingMetadata=Gn(Gn({},B.sdkProcessingMetadata),{normalizeDepth:pb(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(B,l,f):B})},t.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=Gn(Gn(Gn(Gn(Gn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return Gn(Gn({},a),a.data&&{data:pb(a.data,e,i)})})}),r.user&&{user:pb(r.user,e,i)}),r.contexts&&{contexts:pb(r.contexts,e,i)}),r.extra&&{extra:pb(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=Gn(Gn({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},t.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=mI(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=mI(u.value,l));var f=r.request;f&&f.url&&(f.url=mI(f.url,l))},t.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=ys(r.sdk.integrations||[],e))},t.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},t.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){bs&&Ii.error(o)})},t.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function f(v,C){u.recordLostEvent&&u.recordLostEvent(v,C)}if(!this._isEnabled())return gI(new Os("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(f("sample_rate","event"),gI(new Os("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(v){if(null===v)throw f("event_processor",r.type||"event"),new Os("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?v:function Wze(t){var r="`beforeSend` method has to return `null` or a valid event.";if(hz(t))return t.then(function(e){if(!zk(e)&&null!==e)throw new Os(r);return e},function(e){throw new Os("beforeSend rejected with "+e)});if(!zk(t)&&null!==t)throw new Os(r);return t}(s(v,e))}).then(function(v){if(null===v)throw f("before_send",r.type||"event"),new Os("`beforeSend` returned `null`, will not send event.");var C=i&&i.getSession&&i.getSession();return!h&&C&&o._updateSessionFromEvent(C,v),o._sendEvent(v),v}).then(null,function(v){throw v instanceof Os?v:(o.captureException(v,{data:{__sentry__:!0},originalException:v}),new Os("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+v))})},t.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})},t}();!function(){function t(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=RN(r),this.metadata=e,this._tunnel=i}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return Dz(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return goe(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Az(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return CI(this._dsnObject,this._tunnel)}}();function LN(t,r,e){return{initDsn:t,metadata:r||{},dsn:RN(t),tunnel:e}}function Dz(t){var r=t.protocol?t.protocol+":":"",e=t.port?":"+t.port:"";return r+"//"+t.host+e+(t.path?"/"+t.path:"")+"/api/"}function moe(t,r){return""+Dz(t)+t.projectId+"/"+r+"/"}function _oe(t){return function zje(t){return Object.keys(t).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(t[r])}).join("&")}({sentry_key:t.publicKey,sentry_version:"7"})}function goe(t){return moe(t,"store")}function Az(t){return goe(t)+"?"+_oe(t)}function CI(t,r){return r||function Vze(t){return moe(t,"envelope")}(t)+"?"+_oe(t)}function ZN(t,r){return void 0===r&&(r=[]),[t,r]}function NN(t){var r=tu(t,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=tu(s,2),u=l[0],f=l[1],h=pz(f)?String(f):JSON.stringify(f);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function Oz(t){if(t.metadata&&t.metadata.sdk){var r=t.metadata.sdk;return{name:r.name,version:r.version}}}function voe(t,r){return r&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||r.name,t.sdk.version=t.sdk.version||r.version,t.sdk.integrations=ys(t.sdk.integrations||[],r.integrations||[]),t.sdk.packages=ys(t.sdk.packages||[],r.packages||[])),t}function yoe(t,r){var e=Oz(r),o="aggregates"in t?"sessions":"session";return[ZN(Gn(Gn({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:bI(r.dsn)}),[[{type:o},t]]),o]}var Op,Qze=function(){function t(){}return t.prototype.sendEvent=function(r){return fb({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(r){return fb(!0)},t}(),Xze=function(){function t(r){this._options=r,this._options.dsn||bs&&Ii.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(r,e){throw new Os("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(r,e,i){throw new Os("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function Kze(t,r){var e=Oz(r),i=t.type||"event",a=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return voe(t,r.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,ZN(Gn(Gn({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:bI(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},t]])}(r,LN(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){bs&&Ii.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){bs&&Ii.error("Error while sending event:",o)})},t.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=tu(yoe(r,LN(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){bs&&Ii.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){bs&&Ii.error("Error while sending session:",a)});else bs&&Ii.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Qze},t}();!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(Op||(Op={}));function wI(t,r,e,i){var o={filename:t,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var iWe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,oWe=/\((\S*)(?::(\d+))(?::(\d+))\)/,sWe=[30,function(r){var e=iWe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=oWe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=tu(boe(e[1]||"?",e[2]),2),s=a[0];return wI(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],lWe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,uWe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,dWe=[50,function(r){var e,i=lWe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=uWe.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=tu(boe(l,s),2))[0],wI(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],fWe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,hWe=[40,function(r){var e=fWe.exec(r);return e?wI(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],mWe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,gWe=[10,function(r){var e=mWe.exec(r);return e?wI(e[2],e[3]||"?",+e[1]):void 0}],vWe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,bWe=[20,function(r){var e=vWe.exec(r);return e?wI(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],boe=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 Coe(t){var r=Pz(t),e={type:t&&t.name,value:TWe(t)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function Iz(t){return{exception:{values:[Coe(t)]}}}function Pz(t){var r=t.stacktrace||t.stack||"",e=function kWe(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(wWe.test(t.message))return 1}return 0}(t);try{return function dze(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=t.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 f=[];try{for(var h=wm(i.split("\n").slice(o)),v=h.next();!v.done;v=h.next()){var C=v.value;try{for(var B=(l=void 0,wm(e)),G=B.next();!G.done;G=B.next()){var ae=(0,G.value)(C);if(ae){f.push(ae);break}}}catch(he){l={error:he}}finally{try{G&&!G.done&&(u=B.return)&&u.call(B)}finally{if(l)throw l.error}}}}catch(he){a={error:he}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return fze(f)}}(gWe,bWe,sWe,hWe,dWe)(r,e)}catch(i){}return[]}var wWe=/Minified React error #\d+;/i;function TWe(t){var r=t&&t.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function Rz(t,r,e,i){var o;if(Uie(t)&&t.error)return Iz(t.error);if(Hie(t)||function Zje(t){return Hk(t,"DOMException")}(t)){var s=t;if("stack"in t)o=Iz(t);else{var l=s.name||(Hie(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;bz(o=Lz(u,r,e),u)}return"code"in s&&(o.tags=Gn(Gn({},o.tags),{"DOMException.code":""+s.code})),o}return fz(t)?Iz(t):zk(t)||EN(t)?(o=function CWe(t,r,e){var i={exception:{values:[{type:EN(t)?t.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+Wje(t)}]},extra:{__serialized__:uoe(t)}};if(r){var o=Pz(r);o.length&&(i.stacktrace={frames:o})}return i}(t,r,i),_I(o,{synthetic:!0}),o):(bz(o=Lz(t,r,e),""+t,void 0),_I(o,{synthetic:!0}),o)}function Lz(t,r,e){var i={message:t};if(e&&r){var o=Pz(r);o.length&&(i.stacktrace={frames:o})}return i}function woe(t){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===t||r.length<t}())return gI(new Os("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 Kg(function(l,u){var f=r.length;if(!f)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(v){fb(v).then(function(){--f||(clearTimeout(h),l(!0))},u)})})}}}function Zz(t,r){return t[r]||t.all||0}function koe(t,r,e){return void 0===e&&(e=Date.now()),Zz(t,r)>e}function Toe(t,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=Gn({},t),u=r["x-sentry-rate-limits"],f=r["retry-after"];if(u)try{for(var h=wm(u.trim().split(",")),v=h.next();!v.done;v=h.next()){var B=v.value.split(":",2),G=parseInt(B[0],10),q=1e3*(isNaN(G)?60:G);if(B[1])try{for(var ae=(a=void 0,wm(B[1].split(";"))),he=ae.next();!he.done;he=ae.next()){l[he.value]=e+q}}catch(Me){a={error:Me}}finally{try{he&&!he.done&&(s=ae.return)&&s.call(ae)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Me){i={error:Me}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else f&&(l.all=e+function xWe(t,r){void 0===r&&(r=Date.now());var e=parseInt(""+t,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+t);return isNaN(i)?6e4:i-r}(f,e));return l}function Eoe(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}function Moe(t,r,e){void 0===e&&(e=woe(t.bufferSize||30));var i={};return{send:function a(s){var l=function Gze(t){var r=tu(t,2),e=tu(r[1],1);return tu(e[0],1)[0].type}(s),u="event"===l?"error":l,f={category:u,body:NN(s)};return koe(i,u)?gI({status:"rate_limit",reason:Soe(i,u)}):e.add(function(){return r(f).then(function(C){var B=C.body,G=C.headers,q=C.reason,he=Eoe(C.statusCode);return G&&(i=Toe(i,G)),"success"===he?fb({status:he,reason:q}):gI({status:he,reason:q||B||("rate_limit"===he?Soe(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Soe(t,r){return"Too many "+r+" requests, backing off until: "+new Date(Zz(t,r)).toISOString()}var BN,nd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,lf=(0,La.R)();function Nz(){if(BN)return BN;if(Mz(lf.fetch))return BN=lf.fetch.bind(lf);var t=lf.document,r=lf.fetch;if(t&&"function"==typeof t.createElement)try{var e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),t.head.removeChild(e)}catch(o){nd&&Ii.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return BN=r.bind(lf)}function OWe(t,r){return"[object Navigator]"===Object.prototype.toString.call(lf&&lf.navigator)&&"function"==typeof lf.navigator.sendBeacon?lf.navigator.sendBeacon.bind(lf.navigator)(t,r):AN()?function AWe(t){t.then(null,function(r){console.error(r)})}(Nz()(t,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function Bz(t){return"event"===t?"error":t}var Fz=(0,La.R)(),xoe=function(){function t(r){var e=this;this.options=r,this._buffer=woe(30),this._rateLimits={},this._outcomes={},this._api=LN(r.dsn,r._metadata,r.tunnel),this.url=Az(this._api.dsn),this.options.sendClientReports&&Fz.document&&Fz.document.addEventListener("visibilitychange",function(){"hidden"===Fz.document.visibilityState&&e._flushOutcomes()})}return t.prototype.sendEvent=function(r){return this._sendRequest(function Jze(t,r){var f,e=Oz(r),i=t.type||"event",o="transaction"===i||!!r.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;voe(t,r.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{f=JSON.stringify(t)}catch(q){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=q;try{f=JSON.stringify(pb(t))}catch(ae){var h=ae;f=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var v={body:f,type:i,url:o?CI(r.dsn,r.tunnel):Az(r.dsn)};if(o){var G=ZN(Gn(Gn({event_id:t.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:bI(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},v.body]]);v.body=NN(G)}return v}(r,this._api),r)},t.prototype.sendSession=function(r){return this._sendRequest(function qze(t,r){var e=tu(yoe(t,r),2),i=e[0],o=e[1];return{body:NN(i),type:o,url:CI(r.dsn,r.tunnel)}}(r,this._api),r)},t.prototype.close=function(r){return this._buffer.drain(r)},t.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=Bz(e)+":"+r;nd&&Ii.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(nd&&Ii.log("No outcomes to flush"));nd&&Ii.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=CI(this._api.dsn,this._api.tunnel),o=function PWe(t,r,e){return ZN(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,Vk.yW)(),discarded_events:t}]])}(Object.keys(r).map(function(a){var s=tu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&bI(this._api.dsn));try{OWe(e,NN(o))}catch(a){nd&&Ii.error(a)}}},t.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=Eoe(i.status);this._rateLimits=Toe(this._rateLimits,o),this._isRateLimited(e)&&nd&&Ii.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},t.prototype._disabledUntil=function(r){var e=Bz(r);return new Date(Zz(this._rateLimits,e))},t.prototype._isRateLimited=function(r){var e=Bz(r);return koe(this._rateLimits,e)},t}(),RWe=function(t){function r(e,i){void 0===i&&(i=Nz());var o=t.call(this,e)||this;return o._fetch=i,o}return hI(r,t),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:hze()?"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 Kg(function(s,l){o._fetch(e.url,a).then(function(u){var f={"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:f,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Os?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(xoe);var NWe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return hI(r,t),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 Kg(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var f={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:f,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 Os?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(xoe),BWe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return hI(r,t),r.prototype.eventFromException=function(e,i){return function EWe(t,r,e){var o=Rz(t,r&&r.syntheticException||void 0,e);return _I(o),o.level=Op.Error,r&&r.event_id&&(o.event_id=r.event_id),fb(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=Op.Info),function MWe(t,r,e,i){void 0===r&&(r=Op.Info);var a=Lz(t,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),fb(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=Gn(Gn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=LN(e.dsn,e._metadata,e.tunnel),o=CI(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(AN()){var a=Gn({},e.fetchParameters);return this._newTransport=function IWe(t,r){return void 0===r&&(r=Nz()),Moe({bufferSize:t.bufferSize},function e(i){var o=Gn({body:i.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return r(t.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 RWe(e)}return this._newTransport=function ZWe(t){return Moe({bufferSize:t.bufferSize},function r(e){return new Kg(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",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&a.setRequestHeader(s,t.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new NWe(e)},r}(Xze),FN=(0,La.R)(),Uz=0;function Doe(){return Uz>0}function FWe(){Uz+=1,setTimeout(function(){Uz-=1})}function qk(t,r,e){if(void 0===r&&(r={}),"function"!=typeof t)return t;try{var i=t.__sentry_wrapped__;if(i)return i;if(gz(t))return t}catch(l){return t}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var f=u.map(function(h){return qk(h,r)});return t.apply(this,f)}catch(h){throw FWe(),Xje(function(v){v.addEventProcessor(function(C){return r.mechanism&&(bz(C,void 0,void 0),_I(C,r.mechanism)),C.extra=Gn(Gn({},C.extra),{arguments:u}),C}),noe(h)}),h}};try{for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(o[a]=t[a])}catch(l){}zie(o,t),MN(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return t.name}})}catch(l){}return o}function UWe(t){if(void 0===t&&(t={}),FN.document){if(!t.eventId)return void(nd&&Ii.error("Missing eventId option in showReportDialog call"));if(!t.dsn)return void(nd&&Ii.error("Missing dsn option in showReportDialog call"));var r=FN.document.createElement("script");r.async=!0,r.src=function Yze(t,r){var e=RN(t),i=Dz(e)+"embed/error-page/",o="dsn="+bI(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}(t.dsn,t),t.onLoad&&(r.onload=t.onLoad);var e=FN.document.head||FN.document.body;e&&e.appendChild(r)}}var HWe=["fatal","error","warning","log","info","debug","critical"];function zWe(t){return"warn"===t?Op.Warning:function jWe(t){return-1!==HWe.indexOf(t)}(t)?t:Op.Log}var Aoe=function(){function t(r){this.name=t.id,this._options=Gn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return t.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||nu().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:db(r)},{event:r})},t.prototype.setupOnce=function(){this._options.console&&Xg("console",VWe),this._options.dom&&Xg("dom",function WWe(t){function r(e){var i,o="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?mz(e.event.target,o):mz(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&nu().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&Xg("xhr",YWe),this._options.fetch&&Xg("fetch",GWe),this._options.history&&Xg("history",qWe)},t.id="Breadcrumbs",t}();function VWe(t){var r={category:"console",data:{arguments:t.args,logger:"console"},level:zWe(t.level),message:jie(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message="Assertion failed: "+(jie(t.args.slice(1)," ")||"console.assert"),r.data.arguments=t.args.slice(1)}nu().addBreadcrumb(r,{input:t.args,level:t.level})}function YWe(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var r=t.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;nu().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:t.xhr,input:a})}else;}function GWe(t){!t.endTimestamp||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?nu().addBreadcrumb({category:"fetch",data:t.fetchData,level:Op.Error,type:"http"},{data:t.error,input:t.args}):nu().addBreadcrumb({category:"fetch",data:Gn(Gn({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response}))}function qWe(t){var r=(0,La.R)(),e=t.from,i=t.to,o=yz(r.location.href),a=yz(e),s=yz(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),nu().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var KWe=function(t){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"},t.call(this,BWe,e)||this}return hI(r,t),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,La.R)().document){if(!this._isEnabled())return void(nd&&Ii.error("Trying to call showReportDialog with Sentry Client disabled"));UWe(Gn(Gn({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(Aoe);i&&i.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},r}(zze),JWe=["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"],QWe=function(){function t(r){this.name=t.id,this._options=Gn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return t.prototype.setupOnce=function(){var r=(0,La.R)();this._options.setTimeout&&Pl(r,"setTimeout",Ooe),this._options.setInterval&&Pl(r,"setInterval",Ooe),this._options.requestAnimationFrame&&Pl(r,"requestAnimationFrame",XWe),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Pl(XMLHttpRequest.prototype,"send",$We);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:JWe).forEach(eVe)},t.id="TryCatch",t}();function Ooe(t){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=qk(i,{mechanism:{data:{function:Qg(t)},handled:!0,type:"instrument"}}),t.apply(this,r)}}function XWe(t){return function(r){return t.apply(this,[qk(r,{mechanism:{data:{function:"requestAnimationFrame",handler:Qg(t)},handled:!0,type:"instrument"}})])}}function $We(t){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]&&Pl(i,a,function(s){var l={mechanism:{data:{function:a,handler:Qg(s)},handled:!0,type:"instrument"}},u=gz(s);return u&&(l.mechanism.data.handler=Qg(u)),qk(s,l)})}),t.apply(this,r)}}function eVe(t){var r=(0,La.R)(),e=r[t]&&r[t].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Pl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=qk(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:Qg(a),target:t},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,qk(a,{mechanism:{data:{function:"addEventListener",handler:Qg(a),target:t},handled:!0,type:"instrument"}}),s])}}),Pl(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(f){}return i.call(this,o,l,s)}}))}var Hz=function(){function t(r){this.name=t.id,this._installFunc={onerror:tVe,onunhandledrejection:nVe},this._options=Gn({onerror:!0,onunhandledrejection:!0},r)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(oVe(e),i(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function tVe(){Xg("error",function(t){var r=tu(Roe(),2),e=r[0],i=r[1];if(e.getIntegration(Hz)){var o=t.msg,a=t.url,s=t.line,l=t.column,u=t.error;if(!(Doe()||u&&u.__sentry_own_request__)){var f=void 0===u&&jk(o)?function iVe(t,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=Uie(t)?t.message:t,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),Ioe({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):Ioe(Rz(u||o,void 0,i,!1),a,s,l);f.level=Op.Error,Poe(e,u,f,"onerror")}}})}function nVe(){Xg("unhandledrejection",function(t){var r=tu(Roe(),2),e=r[0],i=r[1];if(e.getIntegration(Hz)){var o=t;try{"reason"in t?o=t.reason:"detail"in t&&"reason"in t.detail&&(o=t.detail.reason)}catch(s){}if(Doe()||o&&o.__sentry_own_request__)return!0;var a=pz(o)?function rVe(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}}(o):Rz(o,void 0,i,!0);a.level=Op.Error,Poe(e,o,a,"onunhandledrejection")}})}function Ioe(t,r,e,i){var o=t.exception=t.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],f=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,v=jk(r)&&r.length>0?r:function jje(){var t=(0,La.R)();try{return t.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:f,filename:v,function:"?",in_app:!0,lineno:h}),t}function oVe(t){nd&&Ii.log("Global Handler attached: "+t)}function Poe(t,r,e,i){_I(e,{handled:!1,type:i}),t.captureEvent(e,{originalException:r})}function Roe(){var t=nu(),r=t.getClient();return[t,r&&r.getOptions().attachStacktrace]}var lVe=function(){function t(r){void 0===r&&(r={}),this.name=t.id,this._key=r.key||"cause",this._limit=r.limit||5}return t.prototype.setupOnce=function(){Cz(function(r,e){var i=nu().getIntegration(t);return i?function uVe(t,r,e,i){if(!(e.exception&&e.exception.values&&i&&qg(i.originalException,Error)))return e;var o=Loe(r,i.originalException,t);return e.exception.values=ys(o,e.exception.values),e}(i._key,i._limit,r,e):r})},t.id="LinkedErrors",t}();function Loe(t,r,e,i){if(void 0===i&&(i=[]),!qg(r[e],Error)||i.length+1>=t)return i;var o=Coe(r[e]);return Loe(t,r[e],e,ys([o],i))}var cVe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(t);if(o){try{if(function dVe(t,r){return!!r&&!(!function fVe(t,r){var e=t.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!Noe(t,r)||!Zoe(t,r))}(t,r)&&!function pVe(t,r){var e=Boe(r),i=Boe(t);return!!(e&&i&&e.type===i.type&&e.value===i.value&&Noe(t,r)&&Zoe(t,r))}(t,r))}(i,o._previousEvent))return nd&&Ii.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})},t.id="Dedupe",t}();function Zoe(t,r){var e=Foe(t),i=Foe(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||(e=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 Noe(t,r){var e=t.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;e=e,i=i;try{return e.join("")===i.join("")}catch(o){return!1}}function Boe(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Foe(t){var r=t.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(t.stacktrace)return t.stacktrace.frames}var hb=(0,La.R)(),hVe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Cz(function(r){if(nu().getIntegration(t)){if(!hb.navigator&&!hb.location&&!hb.document)return r;var e=r.request&&r.request.url||hb.location&&hb.location.href,i=(hb.document||{}).referrer,o=(hb.navigator||{}).userAgent,a=Gn(Gn(Gn({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=Gn(Gn({},e&&{url:e}),{headers:a});return Gn(Gn({},r),{request:s})}return r})},t.id="UserAgent",t}(),mVe=[new tze,new uze,new QWe,new Aoe,new Hz,new lVe,new cVe,new hVe];function Uoe(t){t.startSession({ignoreDuration:!0}),t.captureSession()}!function _Ve(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=mVe),void 0===t.release){var r=(0,La.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(t.release=r.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function $je(t,r){!0===r.debug&&(bs?Ii.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=nu(),i=e.getScope();i&&i.update(r.initialScope);var o=new t(r);e.bindClient(o)}(KWe,t),t.autoSessionTracking&&function gVe(){if(void 0===(0,La.R)().document)return void(nd&&Ii.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=nu();!e.captureSession||(Uoe(e),Xg("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||Uoe(nu())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var Kk=function(){function t(r){(0,j.Z)(this,t),this.injector=r}return(0,V.Z)(t,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof Hu.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";noe(i);as.N.production||console.error(i)}}]),t}();Kk.\u0275fac=function(r){return new(r||Kk)(n.LFG(n.zs3))},Kk.\u0275prov=n.Yz7({token:Kk,factory:Kk.\u0275fac});var mb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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,Ht.Z)((0,sn.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get($n);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(Kk);mb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(mb)))(e||mb)}}(),mb.\u0275prov=n.Yz7({token:mb,factory:mb.\u0275fac});var kI=function(){function t(){(0,j.Z)(this,t)}return(0,V.Z)(t,[{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:[]}}]),t}();kI.\u0275fac=function(r){return new(r||kI)},kI.\u0275pipe=n.Yjl({name:"projectsfilter",type:kI,pure:!0});var Hoe=["*"],yVe=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],wVe=function(){function t(){(0,j.Z)(this,t),this.columnIndex=0,this.rowIndex=0}return(0,V.Z)(t,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,$t.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 kVe(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}}]),t}(),kVe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.row=r,this.col=e}),joe=new n.OlP("MAT_GRID_LIST"),TI=function(){function t(r,e){(0,j.Z)(this,t),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,V.Z)(t,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,Un.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,Un.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),t}();TI.\u0275fac=function(r){return new(r||TI)(n.Y36(n.SBq),n.Y36(joe,8))},TI.\u0275cmp=n.Xpm({type:TI,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&n.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Hoe,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.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}\n"],encapsulation:2,changeDetection:0});var UN=function(){function t(r){(0,j.Z)(this,t),this._element=r}return(0,V.Z)(t,[{key:"ngAfterContentInit",value:function(){(0,ln.E0)(this._lines,this._element)}}]),t}();UN.\u0275fac=function(r){return new(r||UN)(n.Y36(n.SBq))},UN.\u0275cmp=n.Xpm({type:UN,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,ln.X2,5),2&r)&&(n.iGM(o=n.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&&(n.F$t(yVe),n.Hsn(0),n.TgZ(1,"div",0),n.Hsn(2,1),n.qZA(),n.Hsn(3,2))},encapsulation:2,changeDetection:0});var HN=(0,V.Z)(function t(){(0,j.Z)(this,t)});HN.\u0275fac=function(r){return new(r||HN)},HN.\u0275dir=n.lG2({type:HN,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var jN=(0,V.Z)(function t(){(0,j.Z)(this,t)});jN.\u0275fac=function(r){return new(r||jN)},jN.\u0275dir=n.lG2({type:jN,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var zN=(0,V.Z)(function t(){(0,j.Z)(this,t)});zN.\u0275fac=function(r){return new(r||zN)},zN.\u0275dir=n.lG2({type:zN,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var TVe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,jz=function(){function t(){(0,j.Z)(this,t),this._rows=0,this._rowspan=0}return(0,V.Z)(t,[{key:"init",value:function(e,i,o,a){this._gutterSize=zoe(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":_b("(".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",_b(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}}]),t}(),EVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,V.Z)(e,[{key:"init",value:function(o,a,s,l){(0,Ht.Z)((0,sn.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=zoe(this.fixedRowHeight),TVe.test(this.fixedRowHeight)}},{key:"setRowStyles",value:function(o,a){o._setStyle("top",this.getTilePosition(this.fixedRowHeight,a)),o._setStyle("height",_b(this.getTileSize(this.fixedRowHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",_b("".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}(jz),MVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i){var o;return(0,j.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,V.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",_b(this.getTileSize(this.baseTileHeight,o.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",_b("".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}(jz),SVe=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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",_b(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}(jz);function _b(t){return"calc(".concat(t,")")}function zoe(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var EI=function(){function t(r,e){(0,j.Z)(this,t),this._element=r,this._dir=e,this._gutter="1px"}return(0,V.Z)(t,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,Un.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 SVe:e&&e.indexOf(":")>-1?this._tileStyler=new MVe(e):this._tileStyler=new EVe(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new wVe);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])}}]),t}();EI.\u0275fac=function(r){return new(r||EI)(n.Y36(n.SBq),n.Y36(Es.Is,8))},EI.\u0275cmp=n.Xpm({type:EI,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,TI,5),2&r)&&(n.iGM(o=n.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&n.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[n._Bn([{provide:joe,useExisting:EI}])],ngContentSelectors:Hoe,decls:2,vars:0,template:function(r,e){1&r&&(n.F$t(),n.TgZ(0,"div"),n.Hsn(1),n.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}\n"],encapsulation:2,changeDetection:0});var Jk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Jk.\u0275fac=function(r){return new(r||Jk)},Jk.\u0275mod=n.oAB({type:Jk}),Jk.\u0275inj=n.cJS({imports:[[ln.uc,ln.BQ],ln.uc,ln.BQ]});var WN=new n.OlP("CDK_TREE_NODE_OUTLET_NODE"),km=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this._node=e});km.\u0275fac=function(r){return new(r||km)(n.Y36(n.s_b),n.Y36(WN,8))},km.\u0275dir=n.lG2({type:km,selectors:[["","cdkTreeNodeOutlet",""]]});var DVe=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.$implicit=r}),$g=(0,V.Z)(function t(r){(0,j.Z)(this,t),this.template=r});$g.\u0275fac=function(r){return new(r||$g)(n.Y36(n.Rgc))},$g.\u0275dir=n.lG2({type:$g,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var ic=function(){function t(r,e){(0,j.Z)(this,t),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new qn.xQ,this._levels=new Map,this.viewChange=new go.X({start:0,end:Number.MAX_VALUE})}return(0,V.Z)(t,[{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,po.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,I1.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,pr.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Yr.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,f,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(f),i._levels.delete(u.item);else{var v=a.get(f);a.move(v,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 DVe(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),ru.mostRecentTreeNode&&(ru.mostRecentTreeNode.data=e)}}]),t}();ic.\u0275fac=function(r){return new(r||ic)(n.Y36(n.ZZ4),n.Y36(n.sBO))},ic.\u0275cmp=n.Xpm({type:ic,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,$g,5),2&r)&&(n.iGM(o=n.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&n.Gf(km,7),2&r)&&(n.iGM(i=n.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&&n.GkF(0,0)},directives:[km],encapsulation:2});var ru=function(){function t(r,e){(0,j.Z)(this,t),this._elementRef=r,this._tree=e,this._destroyed=new qn.xQ,this._dataChanges=new qn.xQ,t.mostRecentTreeNode=this,this.role="treeitem"}return(0,V.Z)(t,[{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 AVe(t){for(var r=t.parentElement;r&&!OVe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,Un.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){t.mostRecentTreeNode===this&&(t.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"}}]),t}();function OVe(t){var r=t.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}ru.mostRecentTreeNode=null,ru.\u0275fac=function(r){return new(r||ru)(n.Y36(n.SBq),n.Y36(ic))},ru.\u0275dir=n.lG2({type:ru,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&n.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var Tm=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,V.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,I1.b)(a)&&a.pipe((0,Yr.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,Ht.Z)((0,sn.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}(ru);Tm.\u0275fac=function(r){return new(r||Tm)(n.Y36(n.SBq),n.Y36(ic),n.Y36(n.ZZ4))},Tm.\u0275dir=n.lG2({type:Tm,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&n.Suo(i,km,5),2&r)&&(n.iGM(o=n.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[n._Bn([{provide:ru,useExisting:Tm},{provide:WN,useExisting:Tm}]),n.qOj]});var IVe=/([A-Za-z%]+)$/,gb=function(){function t(r,e,i,o){var a=this;(0,j.Z)(this,t),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new qn.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Yr.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,V.Z)(t,[{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,Un.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(IVe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,Un.su)(i),this._setPadding()}}]),t}();gb.\u0275fac=function(r){return new(r||gb)(n.Y36(ru),n.Y36(ic),n.Y36(n.SBq),n.Y36(Es.Is,8))},gb.\u0275dir=n.lG2({type:gb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var vb=function(){function t(r,e){(0,j.Z)(this,t),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,V.Z)(t,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,Un.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()}}]),t}();vb.\u0275fac=function(r){return new(r||vb)(n.Y36(ic),n.Y36(ru))},vb.\u0275dir=n.lG2({type:vb,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&n.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var Qk=(0,V.Z)(function t(){(0,j.Z)(this,t)});Qk.\u0275fac=function(r){return new(r||Qk)},Qk.\u0275mod=n.oAB({type:Qk}),Qk.\u0275inj=n.cJS({});var Xk=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a){var s;return(0,j.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,V.Z)(e,[{key:"ngOnInit",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,ln.sb)((0,ln.Id)(ru)));Xk.\u0275fac=function(r){return new(r||Xk)(n.Y36(n.SBq),n.Y36(ic),n.$8M("tabindex"))},Xk.\u0275dir=n.lG2({type:Xk,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[n._Bn([{provide:ru,useExisting:Xk}]),n.qOj]});var yb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}($g);yb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(yb)))(e||yb)}}(),yb.\u0275dir=n.lG2({type:yb,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[n._Bn([{provide:$g,useExisting:yb}]),n.qOj]});var ev=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s){var l;return(0,j.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,V.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Un.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,Ht.Z)((0,sn.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,Ht.Z)((0,sn.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}(Tm);ev.\u0275fac=function(r){return new(r||ev)(n.Y36(n.SBq),n.Y36(ic),n.Y36(n.ZZ4),n.$8M("tabindex"))},ev.\u0275dir=n.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:[n._Bn([{provide:Tm,useExisting:ev},{provide:ru,useExisting:ev},{provide:WN,useExisting:ev}]),n.qOj]});var bb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.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}(gb);bb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(bb)))(e||bb)}}(),bb.\u0275dir=n.lG2({type:bb,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[n._Bn([{provide:gb,useExisting:bb}]),n.qOj]});var tv=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.viewContainer=r,this._node=e});tv.\u0275fac=function(r){return new(r||tv)(n.Y36(n.s_b),n.Y36(WN,8))},tv.\u0275dir=n.lG2({type:tv,selectors:[["","matTreeNodeOutlet",""]],features:[n._Bn([{provide:km,useExisting:tv}])]});var Cb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ic);Cb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(Cb)))(e||Cb)}}(),Cb.\u0275cmp=n.Xpm({type:Cb,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&n.Gf(tv,7),2&r)&&(n.iGM(i=n.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[n._Bn([{provide:ic,useExisting:Cb}]),n.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&n.GkF(0,0)},directives:[tv],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}\n"],encapsulation:2});var wb=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(vb);wb.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(wb)))(e||wb)}}(),wb.\u0275dir=n.lG2({type:wb,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[n._Bn([{provide:vb,useExisting:wb}]),n.qOj]});var $k=(0,V.Z)(function t(){(0,j.Z)(this,t)});$k.\u0275fac=function(r){return new(r||$k)},$k.\u0275mod=n.oAB({type:$k}),$k.\u0275inj=n.cJS({imports:[[Qk,ln.BQ],ln.BQ]});po.o2,po.o2;var RVe=[tk,Fh,ag,iw,kk,rg,Fn.lN,ow,mw,ww,Pw,$C,Ky,c0,fw,lw,ik,Oi.LD,Gy,Iw,yw,Jk,so.Nh,$k,R0,Ck],kb=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),as.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof Zh&&(gtag("set","page",i.url),gtag("send","pageview"))})});kb.\u0275fac=function(r){return new(r||kb)(n.LFG(kr),n.LFG(hm.g))},kb.\u0275prov=n.Yz7({token:kb,factory:kb.\u0275fac});var eT=function(){function t(r){(0,j.Z)(this,t),this.httpController=r}return(0,V.Z)(t,[{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})}}]),t}();function zz(){zz=function(){return t};var t={},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(x,g,O){return Object.defineProperty(x,g,{value:O,enumerable:!0,configurable:!0,writable:!0}),x[g]}try{l({},"")}catch(x){l=function(O,H,te){return O[H]=te}}function u(x,g,O,H){var pt,xt,Ce,st,te=g&&g.prototype instanceof v?g:v,re=Object.create(te.prototype),ye=new Re(H||[]);return re._invoke=(pt=x,xt=O,Ce=ye,st="suspendedStart",function(Lt,Hn){if("executing"===st)throw new Error("Generator is already running");if("completed"===st){if("throw"===Lt)throw Hn;return{value:void 0,done:!0}}for(Ce.method=Lt,Ce.arg=Hn;;){var er=Ce.delegate;if(er){var Zn=Fe(er,Ce);if(Zn){if(Zn===h)continue;return Zn}}if("next"===Ce.method)Ce.sent=Ce._sent=Ce.arg;else if("throw"===Ce.method){if("suspendedStart"===st)throw st="completed",Ce.arg;Ce.dispatchException(Ce.arg)}else"return"===Ce.method&&Ce.abrupt("return",Ce.arg);st="executing";var Cn=f(pt,xt,Ce);if("normal"===Cn.type){if(st=Ce.done?"completed":"suspendedYield",Cn.arg===h)continue;return{value:Cn.arg,done:Ce.done}}"throw"===Cn.type&&(st="completed",Ce.method="throw",Ce.arg=Cn.arg)}}),re}function f(x,g,O){try{return{type:"normal",arg:x.call(g,O)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var h={};function v(){}function C(){}function B(){}var G={};l(G,o,function(){return this});var q=Object.getPrototypeOf,ae=q&&q(q(ut([])));ae&&ae!==r&&e.call(ae,o)&&(G=ae);var he=B.prototype=v.prototype=Object.create(G);function Ye(x){["next","throw","return"].forEach(function(g){l(x,g,function(O){return this._invoke(g,O)})})}function Me(x,g){function O(te,re,ye,pt){var xt=f(x[te],x,re);if("throw"!==xt.type){var Ce=xt.arg,st=Ce.value;return st&&"object"==typeof st&&e.call(st,"__await")?g.resolve(st.__await).then(function(Lt){O("next",Lt,ye,pt)},function(Lt){O("throw",Lt,ye,pt)}):g.resolve(st).then(function(Lt){Ce.value=Lt,ye(Ce)},function(Lt){return O("throw",Lt,ye,pt)})}pt(xt.arg)}var H;this._invoke=function(te,re){function ye(){return new g(function(pt,xt){O(te,re,pt,xt)})}return H=H?H.then(ye,ye):ye()}}function Fe(x,g){var O=x.iterator[g.method];if(void 0===O){if(g.delegate=null,"throw"===g.method){if(x.iterator.return&&(g.method="return",g.arg=void 0,Fe(x,g),"throw"===g.method))return h;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var H=f(O,x.iterator,g.arg);if("throw"===H.type)return g.method="throw",g.arg=H.arg,g.delegate=null,h;var te=H.arg;return te?te.done?(g[x.resultName]=te.value,g.next=x.nextLoc,"return"!==g.method&&(g.method="next",g.arg=void 0),g.delegate=null,h):te:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,h)}function ft(x){var g={tryLoc:x[0]};1 in x&&(g.catchLoc=x[1]),2 in x&&(g.finallyLoc=x[2],g.afterLoc=x[3]),this.tryEntries.push(g)}function ht(x){var g=x.completion||{};g.type="normal",delete g.arg,x.completion=g}function Re(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ft,this),this.reset(!0)}function ut(x){if(x){var g=x[o];if(g)return g.call(x);if("function"==typeof x.next)return x;if(!isNaN(x.length)){var O=-1,H=function te(){for(;++O<x.length;)if(e.call(x,O))return te.value=x[O],te.done=!1,te;return te.value=void 0,te.done=!0,te};return H.next=H}}return{next:kt}}function kt(){return{value:void 0,done:!0}}return C.prototype=B,l(he,"constructor",B),l(B,"constructor",C),C.displayName=l(B,s,"GeneratorFunction"),t.isGeneratorFunction=function(x){var g="function"==typeof x&&x.constructor;return!!g&&(g===C||"GeneratorFunction"===(g.displayName||g.name))},t.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,l(x,s,"GeneratorFunction")),x.prototype=Object.create(he),x},t.awrap=function(x){return{__await:x}},Ye(Me.prototype),l(Me.prototype,a,function(){return this}),t.AsyncIterator=Me,t.async=function(x,g,O,H,te){void 0===te&&(te=Promise);var re=new Me(u(x,g,O,H),te);return t.isGeneratorFunction(g)?re:re.next().then(function(ye){return ye.done?ye.value:re.next()})},Ye(he),l(he,s,"Generator"),l(he,o,function(){return this}),l(he,"toString",function(){return"[object Generator]"}),t.keys=function(x){var g=[];for(var O in x)g.push(O);return g.reverse(),function H(){for(;g.length;){var te=g.pop();if(te in x)return H.value=te,H.done=!1,H}return H.done=!0,H}},t.values=ut,Re.prototype={constructor:Re,reset:function(g){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(ht),!g)for(var O in this)"t"===O.charAt(0)&&e.call(this,O)&&!isNaN(+O.slice(1))&&(this[O]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if("throw"===g.type)throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var O=this;function H(Ce,st){return ye.type="throw",ye.arg=g,O.next=Ce,st&&(O.method="next",O.arg=void 0),!!st}for(var te=this.tryEntries.length-1;te>=0;--te){var re=this.tryEntries[te],ye=re.completion;if("root"===re.tryLoc)return H("end");if(re.tryLoc<=this.prev){var pt=e.call(re,"catchLoc"),xt=e.call(re,"finallyLoc");if(pt&&xt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0);if(this.prev<re.finallyLoc)return H(re.finallyLoc)}else if(pt){if(this.prev<re.catchLoc)return H(re.catchLoc,!0)}else{if(!xt)throw new Error("try statement without catch or finally");if(this.prev<re.finallyLoc)return H(re.finallyLoc)}}}},abrupt:function(g,O){for(var H=this.tryEntries.length-1;H>=0;--H){var te=this.tryEntries[H];if(te.tryLoc<=this.prev&&e.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var re=te;break}}re&&("break"===g||"continue"===g)&&re.tryLoc<=O&&O<=re.finallyLoc&&(re=null);var ye=re?re.completion:{};return ye.type=g,ye.arg=O,re?(this.method="next",this.next=re.finallyLoc,h):this.complete(ye)},complete:function(g,O){if("throw"===g.type)throw g.arg;return"break"===g.type||"continue"===g.type?this.next=g.arg:"return"===g.type?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):"normal"===g.type&&O&&(this.next=O),h},finish:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.finallyLoc===g)return this.complete(H.completion,H.afterLoc),ht(H),h}},catch:function(g){for(var O=this.tryEntries.length-1;O>=0;--O){var H=this.tryEntries[O];if(H.tryLoc===g){var te=H.completion;if("throw"===te.type){var re=te.arg;ht(H)}return re}}throw new Error("illegal catch attempt")},delegateYield:function(g,O,H){return this.delegate={iterator:ut(g),resultName:O,nextLoc:H},"next"===this.method&&(this.arg=void 0),h}},t}eT.\u0275fac=function(r){return new(r||eT)(n.LFG(Wo.zw))},eT.\u0275prov=n.Yz7({token:eT,factory:eT.\u0275fac});var tT=function(){function t(r,e){(0,j.Z)(this,t),this.controllerService=r,this.loginService=e}return(0,V.Z)(t,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,Vd.K)(function(a){if(401!==a.status&&403!==a.status)return(0,YC._)(a);o.call()}))}},{key:"call",value:function(){var e;return no(this,void 0,void 0,zz().mark(function i(){var o,a,s,l;return zz().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,f.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=f.sent).tokenExpired=!0,f.next=8,this.controllerService.update(s);case 8:if(f.prev=8,!o||!o.isRememberMe){f.next=20;break}return f.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=f.sent,s.authToken=l.access_token,s.tokenExpired=!1,f.next=17,this.controllerService.update(s);case 17:return f.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:f.next=25;break;case 22:throw f.prev=22,f.t0=f.catch(8),f.t0;case 25:case"end":return f.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),t}();tT.\u0275fac=function(r){return new(r||tT)(n.LFG(vr),n.LFG(jh))},tT.\u0275prov=n.Yz7({token:tT,factory:tT.\u0275fac});var LVe=["thumbContainer"],ZVe=["toggleBar"],NVe=["input"],BVe=function(r){return{enterDuration:r}},UVe=new n.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),HVe=0,jVe={provide:ne.JU,useExisting:(0,n.Gpc)(function(){return MI}),multi:!0},zVe=(0,V.Z)(function t(r,e){(0,j.Z)(this,t),this.source=r,this.checked=e}),WVe=(0,ln.sb)((0,ln.pj)((0,ln.Kr)((0,ln.Id)(function(){return(0,V.Z)(function t(r){(0,j.Z)(this,t),this._elementRef=r})}())))),MI=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(i,o,a,s,l,u){var f;return(0,j.Z)(this,e),(f=r.call(this,i))._focusMonitor=o,f._changeDetectorRef=a,f.defaults=l,f._onChange=function(h){},f._onTouched=function(){},f._uniqueId="mat-slide-toggle-".concat(++HVe),f._required=!1,f._checked=!1,f.name=null,f.id=f._uniqueId,f.labelPosition="after",f.ariaLabel=null,f.ariaLabelledby=null,f.change=new n.vpe,f.toggleChange=new n.vpe,f.tabIndex=parseInt(s)||0,f.color=f.defaultColor=l.color||"accent",f._noopAnimations="NoopAnimations"===u,f}return(0,V.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,Un.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,Un.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){a||Promise.resolve().then(function(){return o._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{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:"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:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new zVe(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(WVe);MI.\u0275fac=function(r){return new(r||MI)(n.Y36(n.SBq),n.Y36(Ai.tE),n.Y36(n.sBO),n.$8M("tabindex"),n.Y36(UVe),n.Y36(Ta.Qb,8))},MI.\u0275cmp=n.Xpm({type:MI,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&(n.Gf(LVe,5),n.Gf(ZVe,5),n.Gf(NVe,5)),2&r)&&(n.iGM(i=n.CRH())&&(e._thumbEl=i.first),n.iGM(i=n.CRH())&&(e._thumbBarEl=i.first),n.iGM(i=n.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(n.Ikx("id",e.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),n.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",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"},exportAs:["matSlideToggle"],features:[n._Bn([jVe]),n.qOj],ngContentSelectors:["*"],decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["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"],["thumbContainer",""],[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&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),n.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),n.qZA(),n.TgZ(6,"span",6,7),n._UZ(8,"span",8),n.TgZ(9,"span",9),n._UZ(10,"span",10),n.qZA()()(),n.TgZ(11,"span",11,12),n.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),n.TgZ(13,"span",13),n._uU(14,"\xa0"),n.qZA(),n.Hsn(15),n.qZA()()),2&r){var i=n.MAs(1),o=n.MAs(12);n.uIk("for",e.inputId),n.xp6(2),n.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),n.xp6(2),n.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),n.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),n.xp6(5),n.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",n.VKq(18,BVe,e._noopAnimations?0:150))}},directives:[ln.wG,kZ.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:transparent}.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}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0});var VVe={provide:ne.Cf,useExisting:(0,n.Gpc)(function(){return nT}),multi:!0},nT=function(t){(0,yt.Z)(e,t);var r=(0,mt.Z)(e);function e(){return(0,j.Z)(this,e),r.apply(this,arguments)}return(0,V.Z)(e)}(ne.Zs);nT.\u0275fac=function(){var t;return function(e){return(t||(t=n.n5z(nT)))(e||nT)}}(),nT.\u0275dir=n.lG2({type:nT,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[n._Bn([VVe]),n.qOj]});var Tb=(0,V.Z)(function t(){(0,j.Z)(this,t)});Tb.\u0275fac=function(r){return new(r||Tb)},Tb.\u0275mod=n.oAB({type:Tb}),Tb.\u0275inj=n.cJS({});var rT=(0,V.Z)(function t(){(0,j.Z)(this,t)});rT.\u0275fac=function(r){return new(r||rT)},rT.\u0275mod=n.oAB({type:rT}),rT.\u0275inj=n.cJS({imports:[[Tb,ln.si,ln.BQ,kZ.Q8],Tb,ln.BQ]});var iT=(0,V.Z)(function t(r){(0,j.Z)(this,t),this._googleAnalyticsService=r});iT.\u0275fac=function(r){return new(r||iT)(n.LFG(kb))},iT.\u0275mod=n.oAB({type:iT,bootstrap:[pI]}),iT.\u0275inj=n.cJS({providers:[hm.g,{provide:n.qLn,useClass:mb},{provide:Hu.TP,useClass:tT,multi:!0},lH,zh,Xl.Y,cp,vr,Gd,ti,fl,ls,Wo.zw,ym,Hg,$n,ul,Bg,pm.F,vs.G,cb,jg,Ol,P0,qa,Wo.CJ,up,Cu,Sp,eT,gu,em,Ml,Xh,Ql,zc,i0,r0,n0,Kh,Qh,cg,tm,Ku,$h,dg,Uc,dp,Wc,lg,bN.p,zg,$d,Wg,X0,G0,tf,Ig,dl,B0,Yd.X,Pg,q0,qu.f,kb,eu,rc,ni,tb,An.Dx,F0,$0,jh,pl],imports:[[An.b2,Hu.JF,Nk,ne.u5,ne.UX,Ta.PW,Uu,Uk,VC,WC,lh,Fn.lN,ag,UM.ym,Zf,w_,D$,RVe,HC.forRoot(),Ao.U8,rT,c0,Tk]]}),n.B6R(_k,[Tn,ne._Y,ne.JL,ne.F,Fn.KE,sr,ne.Fj,ne.JJ,ne.On,ca,td,aa,fa,Sa,Ui,da,xa,gm,Ws,Ct.O5,vi,Vn,Da,Oa,Aa,Ia],[kI]),as.N.production&&(0,n.G48)(),An.q6().bootstrapModule(iT).then(function(t){var e=t.injector.get(n.z2F).components[0];(0,An.HJ)(e)}).catch(function(t){return console.log(t)})},7312:function(qe,J,m){"use strict";m.d(J,{R:function(){return M},Y:function(){return U}});var z=m(3295),Y={};function M(){return(0,z.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Y}function U(L,P,D){var y=D||M(),K=y.__SENTRY__=y.__SENTRY__||{};return K[L]||(K[L]=P())}},3295:function(qe,J,m){"use strict";function Y(){return!function z(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function M(L,P){return L.require(P)}m.d(J,{l$:function(){return M},KV:function(){return Y}}),qe=m.hmd(qe)},3169:function(qe,J,m){"use strict";m.d(J,{ph:function(){return K},yW:function(){return y}});var z=m(7312),Y=m(3295);qe=m.hmd(qe);var M={nowSeconds:function(){return Date.now()/1e3}};var P=(0,Y.KV)()?function L(){try{return(0,Y.l$)(qe,"perf_hooks").performance}catch(T){return}}():function U(){var I=(0,z.R)().performance;if(I&&I.now)return{now:function(){return I.now()},timeOrigin:Date.now()-I.now()}}(),D=void 0===P?M:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},y=M.nowSeconds.bind(M),K=D.nowSeconds.bind(D);!function(){var I=(0,z.R)().performance;if(I&&I.now){var T=36e5,w=I.now(),S=Date.now(),N=I.timeOrigin?Math.abs(I.timeOrigin+w-S):T,R=N<T,W=I.timing&&I.timing.navigationStart,ce="number"==typeof W?Math.abs(W+w-S):T;return R||ce<T?N<=ce?("timeOrigin",I.timeOrigin):("navigationStart",W):("dateNow",S)}"none"}()},2072:function(qe,J,m){"use strict";m.d(J,{E$:function(){return Xe},ym:function(){return vt}});var z=m(7685),Y=m(5671),M=m(3144),U=m(9808),L=m(5e3),P=m(8929),D=m(6787),y=m(8896),K=m(7451),F=m(3753),E=m(2994),A=m(8117),k=m(1059),I=m(4850),T=m(7545),w=m(7568),S=m(7625),N=m(1709),R=m(2986),W=m(519),$=m(9664),ce="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function se(nt,Rt){var It=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,on=Math.abs(nt-Rt);return on<It}function ee(nt,Rt,It,on){var _n={top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right};return Rt.top&&(_n.top+=on),Rt.bottom&&(_n.bottom+=on),Rt.left&&(_n.left+=It),Rt.right&&(_n.right+=It),_n.height=_n.bottom-_n.top,_n.width=_n.right-_n.left,_n}function ge(nt){var Rt=nt.clientY,It=nt.rect;return Rt>=It.top&&Rt<=It.bottom}function Oe(nt){var Rt=nt.clientX,It=nt.rect;return Rt>=It.left&&Rt<=It.right}function ot(nt){var Rt=nt.clientX,It=nt.clientY,on=nt.elm,_n=nt.allowedEdges,An=nt.cursorPrecision,Gt=on.nativeElement.getBoundingClientRect(),Zt={};return _n.left&&se(Rt,Gt.left,An)&&ge({clientY:It,rect:Gt})&&(Zt.left=!0),_n.right&&se(Rt,Gt.right,An)&&ge({clientY:It,rect:Gt})&&(Zt.right=!0),_n.top&&se(It,Gt.top,An)&&Oe({clientX:Rt,rect:Gt})&&(Zt.top=!0),_n.bottom&&se(It,Gt.bottom,An)&&Oe({clientX:Rt,rect:Gt})&&(Zt.bottom=!0),Zt}var xe=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function _e(nt,Rt){return nt.left&&nt.top?Rt.topLeft:nt.right&&nt.top?Rt.topRight:nt.left&&nt.bottom?Rt.bottomLeft:nt.right&&nt.bottom?Rt.bottomRight:nt.left||nt.right?Rt.leftOrRight:nt.top||nt.bottom?Rt.topOrBottom:""}function ke(nt){var Rt=nt.edges,It=nt.initialRectangle,on=nt.newRectangle,_n={};return Object.keys(Rt).forEach(function(An){_n[An]=(on[An]||0)-(It[An]||0)}),_n}var Be="resize-active",Xe=function(){function nt(Rt,It,on,_n){(0,Y.Z)(this,nt),this.platformId=Rt,this.renderer=It,this.elm=on,this.zone=_n,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=xe,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new L.vpe,this.resizing=new L.vpe,this.resizeEnd=new L.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=jt.getInstance(It,_n)}return(0,M.Z)(nt,[{key:"ngOnInit",value:function(){var Gt,It=this,on=(0,D.T)(this.pointerEventListeners.pointerDown,this.mousedown),_n=(0,D.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,E.b)(function(Ht){var sn=Ht.event;if(Gt)try{sn.preventDefault()}catch(yt){}}),(0,A.B)()),An=(0,D.T)(this.pointerEventListeners.pointerUp,this.mouseup),Zt=function(){Gt&&Gt.clonedNode&&(It.elm.nativeElement.parentElement.removeChild(Gt.clonedNode),It.renderer.setStyle(It.elm.nativeElement,"visibility","inherit"))},Et=function(){return Object.assign({},xe,It.resizeCursors)};this.resizeEdges$.pipe((0,k.O)(this.resizeEdges),(0,I.U)(function(){return It.resizeEdges&&Object.keys(It.resizeEdges).some(function(Ht){return!!It.resizeEdges[Ht]})}),(0,T.w)(function(Ht){return Ht?_n:y.E}),(0,w.e)(this.mouseMoveThrottleMS),(0,S.R)(this.destroy$)).subscribe(function(Ht){var mt=ot({clientX:Ht.clientX,clientY:Ht.clientY,elm:It.elm,allowedEdges:It.resizeEdges,cursorPrecision:It.resizeCursorPrecision}),cn=Et();if(!Gt){var $t=_e(mt,cn);It.renderer.setStyle(It.elm.nativeElement,"cursor",$t)}It.setElementClass(It.elm,"resize-left-hover",!0===mt.left),It.setElementClass(It.elm,"resize-right-hover",!0===mt.right),It.setElementClass(It.elm,"resize-top-hover",!0===mt.top),It.setElementClass(It.elm,"resize-bottom-hover",!0===mt.bottom)}),on.pipe((0,N.zg)(function(Ht){function sn(cn){return{clientX:cn.clientX-Ht.clientX,clientY:cn.clientY-Ht.clientY}}var yt=function(){var $t={x:1,y:1};return Gt&&(It.resizeSnapGrid.left&&Gt.edges.left?$t.x=+It.resizeSnapGrid.left:It.resizeSnapGrid.right&&Gt.edges.right&&($t.x=+It.resizeSnapGrid.right),It.resizeSnapGrid.top&&Gt.edges.top?$t.y=+It.resizeSnapGrid.top:It.resizeSnapGrid.bottom&&Gt.edges.bottom&&($t.y=+It.resizeSnapGrid.bottom)),$t};function mt(cn,$t){return{x:Math.ceil(cn.clientX/$t.x),y:Math.ceil(cn.clientY/$t.y)}}return(0,D.T)(_n.pipe((0,R.q)(1)).pipe((0,I.U)(function(cn){return[,cn]})),_n.pipe((0,W.G)())).pipe((0,I.U)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];return[j&&sn(j),sn(V)]})).pipe((0,$.h)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];if(!j)return!0;var Jn=yt(),wn=mt(j,Jn),Bt=mt(V,Jn);return wn.x!==Bt.x||wn.y!==Bt.y})).pipe((0,I.U)(function(cn){var j=(0,z.Z)(cn,2)[1],V=yt();return{clientX:Math.round(j.clientX/V.x)*V.x,clientY:Math.round(j.clientY/V.y)*V.y}})).pipe((0,S.R)((0,D.T)(An,on)))})).pipe((0,$.h)(function(){return!!Gt})).pipe((0,I.U)(function(Ht){var sn=Ht.clientX,yt=Ht.clientY;return ee(Gt.startingRect,Gt.edges,sn,yt)})).pipe((0,$.h)(function(Ht){return It.allowNegativeResizes||!!(Ht.height&&Ht.width&&Ht.height>0&&Ht.width>0)})).pipe((0,$.h)(function(Ht){return!It.validateResize||It.validateResize({rectangle:Ht,edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Ht})})}),(0,S.R)(this.destroy$)).subscribe(function(Ht){Gt&&Gt.clonedNode&&(It.renderer.setStyle(Gt.clonedNode,"height","".concat(Ht.height,"px")),It.renderer.setStyle(Gt.clonedNode,"width","".concat(Ht.width,"px")),It.renderer.setStyle(Gt.clonedNode,"top","".concat(Ht.top,"px")),It.renderer.setStyle(Gt.clonedNode,"left","".concat(Ht.left,"px"))),It.resizing.observers.length>0&&It.zone.run(function(){It.resizing.emit({edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Ht}),rectangle:Ht})}),Gt.currentRect=Ht}),on.pipe((0,I.U)(function(Ht){var sn=Ht.clientX,yt=Ht.clientY;return Ht.edges||ot({clientX:sn,clientY:yt,elm:It.elm,allowedEdges:It.resizeEdges,cursorPrecision:It.resizeCursorPrecision})})).pipe((0,$.h)(function(Ht){return Object.keys(Ht).length>0}),(0,S.R)(this.destroy$)).subscribe(function(Ht){Gt&&Zt();var sn=function oe(nt,Rt){var It=0,on=0,_n=nt.nativeElement.style,Gt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(Et){return _n[Et]}).find(function(Et){return!!Et});if(Gt&&Gt.includes("translate")&&(It=Gt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),on=Gt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Rt)return{height:nt.nativeElement.offsetHeight,width:nt.nativeElement.offsetWidth,top:nt.nativeElement.offsetTop-on,bottom:nt.nativeElement.offsetHeight+nt.nativeElement.offsetTop-on,left:nt.nativeElement.offsetLeft-It,right:nt.nativeElement.offsetWidth+nt.nativeElement.offsetLeft-It};var Zt=nt.nativeElement.getBoundingClientRect();return{height:Zt.height,width:Zt.width,top:Zt.top-on,bottom:Zt.bottom-on,left:Zt.left-It,right:Zt.right-It,scrollTop:nt.nativeElement.scrollTop,scrollLeft:nt.nativeElement.scrollLeft}}(It.elm,It.ghostElementPositioning);Gt={edges:Ht,startingRect:sn,currentRect:sn};var yt=Et(),mt=_e(Gt.edges,yt);It.renderer.setStyle(document.body,"cursor",mt),It.setElementClass(It.elm,Be,!0),It.enableGhostResize&&(Gt.clonedNode=It.elm.nativeElement.cloneNode(!0),It.elm.nativeElement.parentElement.appendChild(Gt.clonedNode),It.renderer.setStyle(It.elm.nativeElement,"visibility","hidden"),It.renderer.setStyle(Gt.clonedNode,"position",It.ghostElementPositioning),It.renderer.setStyle(Gt.clonedNode,"left","".concat(Gt.startingRect.left,"px")),It.renderer.setStyle(Gt.clonedNode,"top","".concat(Gt.startingRect.top,"px")),It.renderer.setStyle(Gt.clonedNode,"height","".concat(Gt.startingRect.height,"px")),It.renderer.setStyle(Gt.clonedNode,"width","".concat(Gt.startingRect.width,"px")),It.renderer.setStyle(Gt.clonedNode,"cursor",_e(Gt.edges,yt)),It.renderer.addClass(Gt.clonedNode,"resize-ghost-element"),Gt.clonedNode.scrollTop=Gt.startingRect.scrollTop,Gt.clonedNode.scrollLeft=Gt.startingRect.scrollLeft),It.resizeStart.observers.length>0&&It.zone.run(function(){It.resizeStart.emit({edges:ke({edges:Ht,initialRectangle:sn,newRectangle:sn}),rectangle:ee(sn,{},0,0)})})}),An.pipe((0,S.R)(this.destroy$)).subscribe(function(){Gt&&(It.renderer.removeClass(It.elm.nativeElement,Be),It.renderer.setStyle(document.body,"cursor",""),It.renderer.setStyle(It.elm.nativeElement,"cursor",""),It.resizeEnd.observers.length>0&&It.zone.run(function(){It.resizeEnd.emit({edges:ke({edges:Gt.edges,initialRectangle:Gt.startingRect,newRectangle:Gt.currentRect}),rectangle:Gt.currentRect})}),Zt(),Gt=null)})}},{key:"ngOnChanges",value:function(It){It.resizeEdges&&this.resizeEdges$.next(this.resizeEdges)}},{key:"ngOnDestroy",value:function(){(0,U.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(It,on,_n){_n?this.renderer.addClass(It.nativeElement,on):this.renderer.removeClass(It.nativeElement,on)}}]),nt}();Xe.\u0275fac=function(Rt){return new(Rt||Xe)(L.Y36(L.Lbi),L.Y36(L.Qsj),L.Y36(L.SBq),L.Y36(L.R0b))},Xe.\u0275dir=L.lG2({type:Xe,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:[L.TTD]}),Xe.ctorParameters=function(){return[{type:void 0,decorators:[{type:L.tBr,args:[L.Lbi]}]},{type:L.Qsj},{type:L.SBq},{type:L.R0b}]},Xe.propDecorators={validateResize:[{type:L.IIB}],resizeEdges:[{type:L.IIB}],enableGhostResize:[{type:L.IIB}],resizeSnapGrid:[{type:L.IIB}],resizeCursors:[{type:L.IIB}],resizeCursorPrecision:[{type:L.IIB}],ghostElementPositioning:[{type:L.IIB}],allowNegativeResizes:[{type:L.IIB}],mouseMoveThrottleMS:[{type:L.IIB}],resizeStart:[{type:L.r_U}],resizing:[{type:L.r_U}],resizeEnd:[{type:L.r_U}]};var jt=function(){function nt(Rt,It){(0,Y.Z)(this,nt),this.pointerDown=new K.y(function(on){var _n,An;return It.runOutsideAngular(function(){_n=Rt.listen("document","mousedown",function(Gt){on.next({clientX:Gt.clientX,clientY:Gt.clientY,event:Gt})}),ce&&(An=Rt.listen("document","touchstart",function(Gt){on.next({clientX:Gt.touches[0].clientX,clientY:Gt.touches[0].clientY,event:Gt})}))}),function(){_n(),ce&&An()}}).pipe((0,A.B)()),this.pointerMove=new K.y(function(on){var _n,An;return It.runOutsideAngular(function(){_n=Rt.listen("document","mousemove",function(Gt){on.next({clientX:Gt.clientX,clientY:Gt.clientY,event:Gt})}),ce&&(An=Rt.listen("document","touchmove",function(Gt){on.next({clientX:Gt.targetTouches[0].clientX,clientY:Gt.targetTouches[0].clientY,event:Gt})}))}),function(){_n(),ce&&An()}}).pipe((0,A.B)()),this.pointerUp=new K.y(function(on){var _n,An,Gt;return It.runOutsideAngular(function(){_n=Rt.listen("document","mouseup",function(Zt){on.next({clientX:Zt.clientX,clientY:Zt.clientY,event:Zt})}),ce&&(An=Rt.listen("document","touchend",function(Zt){on.next({clientX:Zt.changedTouches[0].clientX,clientY:Zt.changedTouches[0].clientY,event:Zt})}),Gt=Rt.listen("document","touchcancel",function(Zt){on.next({clientX:Zt.changedTouches[0].clientX,clientY:Zt.changedTouches[0].clientY,event:Zt})}))}),function(){_n(),ce&&(An(),Gt())}}).pipe((0,A.B)())}return(0,M.Z)(nt,null,[{key:"getInstance",value:function(It,on){return nt.instance||(nt.instance=new nt(It,on)),nt.instance}}]),nt}(),rt=function(){function nt(Rt,It,on,_n){(0,Y.Z)(this,nt),this.renderer=Rt,this.element=It,this.zone=on,this.resizableDirective=_n,this.resizeEdges={},this.eventListeners={},this.destroy$=new P.xQ}return(0,M.Z)(nt,[{key:"ngOnInit",value:function(){var It=this;this.zone.runOutsideAngular(function(){It.listenOnTheHost("mousedown").subscribe(function(on){It.onMousedown(on,on.clientX,on.clientY)}),It.listenOnTheHost("mouseup").subscribe(function(on){It.onMouseup(on.clientX,on.clientY)}),ce&&(It.listenOnTheHost("touchstart").subscribe(function(on){It.onMousedown(on,on.touches[0].clientX,on.touches[0].clientY)}),(0,D.T)(It.listenOnTheHost("touchend"),It.listenOnTheHost("touchcancel")).subscribe(function(on){It.onMouseup(on.changedTouches[0].clientX,on.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(It,on,_n){var An=this;It.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(Gt){An.onMousemove(Gt,Gt.targetTouches[0].clientX,Gt.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(Gt){An.onMousemove(Gt,Gt.clientX,Gt.clientY)})),this.resizable.mousedown.next({clientX:on,clientY:_n,edges:this.resizeEdges})}},{key:"onMouseup",value:function(It,on){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:It,clientY:on,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(It,on,_n){this.resizable.mousemove.next({clientX:on,clientY:_n,edges:this.resizeEdges,event:It})}},{key:"unsubscribeEventListeners",value:function(){var It=this;Object.keys(this.eventListeners).forEach(function(on){It.eventListeners[on](),delete It.eventListeners[on]})}},{key:"listenOnTheHost",value:function(It){return(0,F.R)(this.element.nativeElement,It).pipe((0,S.R)(this.destroy$))}}]),nt}();rt.\u0275fac=function(Rt){return new(Rt||rt)(L.Y36(L.Qsj),L.Y36(L.SBq),L.Y36(L.R0b),L.Y36(Xe,8))},rt.\u0275dir=L.lG2({type:rt,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),rt.ctorParameters=function(){return[{type:L.Qsj},{type:L.SBq},{type:L.R0b},{type:Xe,decorators:[{type:L.FiY}]}]},rt.propDecorators={resizeEdges:[{type:L.IIB}],resizableContainer:[{type:L.IIB}]};var vt=(0,M.Z)(function nt(){(0,Y.Z)(this,nt)});vt.\u0275fac=function(Rt){return new(Rt||vt)},vt.\u0275mod=L.oAB({type:vt}),vt.\u0275inj=L.cJS({})},7521:function(qe,J,m){var z;!function(Y,M,U){if(Y){for(var K,L={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:"'"},D={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},y={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},F=1;F<20;++F)L[111+F]="f"+F;for(F=0;F<=9;++F)L[F+96]=F.toString();se.prototype.bind=function(ee,oe,ge){return ee=ee instanceof Array?ee:[ee],this._bindMultiple.call(this,ee,oe,ge),this},se.prototype.unbind=function(ee,oe){return this.bind.call(this,ee,function(){},oe)},se.prototype.trigger=function(ee,oe){return this._directMap[ee+":"+oe]&&this._directMap[ee+":"+oe]({},ee),this},se.prototype.reset=function(){return this._callbacks={},this._directMap={},this},se.prototype.stopCallback=function(ee,oe){if((" "+oe.className+" ").indexOf(" mousetrap ")>-1||ce(oe,this.target))return!1;if("composedPath"in ee&&"function"==typeof ee.composedPath){var Oe=ee.composedPath()[0];Oe!==ee.target&&(oe=Oe)}return"INPUT"==oe.tagName||"SELECT"==oe.tagName||"TEXTAREA"==oe.tagName||oe.isContentEditable},se.prototype.handleKey=function(){var ee=this;return ee._handleKey.apply(ee,arguments)},se.addKeycodes=function(ee){for(var oe in ee)ee.hasOwnProperty(oe)&&(L[oe]=ee[oe]);K=null},se.init=function(){var ee=se(M);for(var oe in ee)"_"!==oe.charAt(0)&&(se[oe]=function(ge){return function(){return ee[ge].apply(ee,arguments)}}(oe))},se.init(),Y.Mousetrap=se,qe.exports&&(qe.exports=se),void 0!==(z=function(){return se}.call(J,m,J,qe))&&(qe.exports=z)}function E(ee,oe,ge){ee.addEventListener?ee.addEventListener(oe,ge,!1):ee.attachEvent("on"+oe,ge)}function A(ee){if("keypress"==ee.type){var oe=String.fromCharCode(ee.which);return ee.shiftKey||(oe=oe.toLowerCase()),oe}return L[ee.which]?L[ee.which]:P[ee.which]?P[ee.which]:String.fromCharCode(ee.which).toLowerCase()}function k(ee,oe){return ee.sort().join(",")===oe.sort().join(",")}function S(ee){return"shift"==ee||"ctrl"==ee||"alt"==ee||"meta"==ee}function R(ee,oe,ge){return ge||(ge=function N(){if(!K)for(var ee in K={},L)ee>95&&ee<112||L.hasOwnProperty(ee)&&(K[L[ee]]=ee);return K}()[ee]?"keydown":"keypress"),"keypress"==ge&&oe.length&&(ge="keydown"),ge}function $(ee,oe){var ge,Oe,ot,xe=[];for(ge=function W(ee){return"+"===ee?["+"]:(ee=ee.replace(/\+{2}/g,"+plus")).split("+")}(ee),ot=0;ot<ge.length;++ot)Oe=ge[ot],y[Oe]&&(Oe=y[Oe]),oe&&"keypress"!=oe&&D[Oe]&&(Oe=D[Oe],xe.push("shift")),S(Oe)&&xe.push(Oe);return{key:Oe,modifiers:xe,action:oe=R(Oe,xe,oe)}}function ce(ee,oe){return null!==ee&&ee!==M&&(ee===oe||ce(ee.parentNode,oe))}function se(ee){var oe=this;if(ee=ee||M,!(oe instanceof se))return new se(ee);oe.target=ee,oe._callbacks={},oe._directMap={};var Oe,ge={},ot=!1,xe=!1,_e=!1;function ke(qt){qt=qt||{};var jt,Xe=!1;for(jt in ge)qt[jt]?Xe=!0:ge[jt]=0;Xe||(_e=!1)}function Be(qt,Xe,jt,rt,vt,nt){var Rt,It,on=[],_n=jt.type;if(!oe._callbacks[qt])return[];for("keyup"==_n&&S(qt)&&(Xe=[qt]),Rt=0;Rt<oe._callbacks[qt].length;++Rt)if(It=oe._callbacks[qt][Rt],(rt||!It.seq||ge[It.seq]==It.level)&&_n==It.action&&("keypress"==_n&&!jt.metaKey&&!jt.ctrlKey||k(Xe,It.modifiers))){var An=!rt&&It.combo==vt,Gt=rt&&It.seq==rt&&It.level==nt;(An||Gt)&&oe._callbacks[qt].splice(Rt,1),on.push(It)}return on}function ct(qt,Xe,jt,rt){oe.stopCallback(Xe,Xe.target||Xe.srcElement,jt,rt)||!1===qt(Xe,jt)&&(function T(ee){ee.preventDefault?ee.preventDefault():ee.returnValue=!1}(Xe),function w(ee){ee.stopPropagation?ee.stopPropagation():ee.cancelBubble=!0}(Xe))}function Mt(qt){"number"!=typeof qt.which&&(qt.which=qt.keyCode);var Xe=A(qt);if(Xe){if("keyup"==qt.type&&ot===Xe)return void(ot=!1);oe.handleKey(Xe,function I(ee){var oe=[];return ee.shiftKey&&oe.push("shift"),ee.altKey&&oe.push("alt"),ee.ctrlKey&&oe.push("ctrl"),ee.metaKey&&oe.push("meta"),oe}(qt),qt)}}function Xt(qt,Xe,jt,rt){function vt(_n){return function(){_e=_n,++ge[qt],function Nt(){clearTimeout(Oe),Oe=setTimeout(ke,1e3)}()}}function nt(_n){ct(jt,_n,qt),"keyup"!==rt&&(ot=A(_n)),setTimeout(ke,10)}ge[qt]=0;for(var Rt=0;Rt<Xe.length;++Rt){var on=Rt+1===Xe.length?nt:vt(rt||$(Xe[Rt+1]).action);en(Xe[Rt],on,rt,qt,Rt)}}function en(qt,Xe,jt,rt,vt){oe._directMap[qt+":"+jt]=Xe;var Rt,nt=(qt=qt.replace(/\s+/g," ")).split(" ");nt.length>1?Xt(qt,nt,Xe,jt):(Rt=$(qt,jt),oe._callbacks[Rt.key]=oe._callbacks[Rt.key]||[],Be(Rt.key,Rt.modifiers,{type:Rt.action},rt,qt,vt),oe._callbacks[Rt.key][rt?"unshift":"push"]({callback:Xe,modifiers:Rt.modifiers,action:Rt.action,seq:rt,level:vt,combo:qt}))}oe._handleKey=function(qt,Xe,jt){var vt,rt=Be(qt,Xe,jt),nt={},Rt=0,It=!1;for(vt=0;vt<rt.length;++vt)rt[vt].seq&&(Rt=Math.max(Rt,rt[vt].level));for(vt=0;vt<rt.length;++vt)if(rt[vt].seq){if(rt[vt].level!=Rt)continue;It=!0,nt[rt[vt].seq]=1,ct(rt[vt].callback,jt,rt[vt].combo,rt[vt].seq)}else It||ct(rt[vt].callback,jt,rt[vt].combo);var on="keypress"==jt.type&&xe;jt.type==_e&&!S(qt)&&!on&&ke(nt),xe=It&&"keydown"==jt.type},oe._bindMultiple=function(qt,Xe,jt){for(var rt=0;rt<qt.length;++rt)en(qt[rt],Xe,jt)},E(ee,"keypress",Mt),E(ee,"keydown",Mt),E(ee,"keyup",Mt)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.Observable=z.Observable,J.Subject=z.Subject;var Y=m(5718);J.AnonymousSubject=Y.AnonymousSubject;var M=m(5718);J.config=M.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 U=m(4822);J.Subscription=U.Subscription,J.ReplaySubject=U.ReplaySubject,J.BehaviorSubject=U.BehaviorSubject,J.Notification=U.Notification,J.EmptyError=U.EmptyError,J.ArgumentOutOfRangeError=U.ArgumentOutOfRangeError,J.ObjectUnsubscribedError=U.ObjectUnsubscribedError,J.UnsubscriptionError=U.UnsubscriptionError,J.pipe=U.pipe;var L=m(9594);J.TestScheduler=L.TestScheduler;var P=m(4822);J.Subscriber=P.Subscriber,J.AsyncSubject=P.AsyncSubject,J.ConnectableObservable=P.ConnectableObservable,J.TimeoutError=P.TimeoutError,J.VirtualTimeScheduler=P.VirtualTimeScheduler;var D=m(8679);J.AjaxResponse=D.AjaxResponse,J.AjaxError=D.AjaxError,J.AjaxTimeoutError=D.AjaxTimeoutError;var y=m(4822),K=m(5718),F=m(5718);J.TimeInterval=F.TimeInterval,J.Timestamp=F.Timestamp;var E=m(6650);J.operators=E;var A={asap:y.asapScheduler,queue:y.queueScheduler,animationFrame:y.animationFrameScheduler,async:y.asyncScheduler};J.Scheduler=A;var k={rxSubscriber:K.rxSubscriber,observable:K.observable,iterator:K.iterator};J.Symbol=k},5010:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.bindCallback=z.bindCallback},9471:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.bindNodeCallback=z.bindNodeCallback},2687:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.combineLatest=z.combineLatest},2750:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.concat=z.concat},2977:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.defer=z.defer},8173:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8679);z.Observable.ajax=Y.ajax},1357:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2301);z.Observable.webSocket=Y.webSocket},2925:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.empty=z.empty},2231:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.forkJoin=z.forkJoin},1897:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.from=z.from},7026:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromEvent=z.fromEvent},6187:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromEventPattern=z.fromEventPattern},1562:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.fromPromise=z.from},9470:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.generate=z.generate},4641:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.if=z.iif},3408:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.interval=z.interval},7975:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.merge=z.merge},3518:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);function Y(){return z.NEVER}J.staticNever=Y,z.Observable.never=Y},1305:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.of=z.of},9566:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.onErrorResumeNext=z.onErrorResumeNext},6839:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.pairs=z.pairs},6034:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.race=z.race},1672:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.range=z.range},987:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.throw=z.throwError,z.Observable.throwError=z.throwError},8366:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.timer=z.timer},1216:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.using=z.using},5991:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);z.Observable.zip=z.zip},9982:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5641);z.Observable.prototype.audit=Y.audit},7980:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4657);z.Observable.prototype.auditTime=Y.auditTime},5615:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2792);z.Observable.prototype.buffer=Y.buffer},3056:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1667);z.Observable.prototype.bufferCount=Y.bufferCount},7551:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4283);z.Observable.prototype.bufferTime=Y.bufferTime},2080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1028);z.Observable.prototype.bufferToggle=Y.bufferToggle},8273:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(188);z.Observable.prototype.bufferWhen=Y.bufferWhen},5500:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8747);z.Observable.prototype.catch=Y._catch,z.Observable.prototype._catch=Y._catch},8413:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(572);z.Observable.prototype.combineAll=Y.combineAll},39:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(648);z.Observable.prototype.combineLatest=Y.combineLatest},2964:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9075);z.Observable.prototype.concat=Y.concat},3569:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6979);z.Observable.prototype.concatAll=Y.concatAll},2243:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3268);z.Observable.prototype.concatMap=Y.concatMap},3768:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3382);z.Observable.prototype.concatMapTo=Y.concatMapTo},1989:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3337);z.Observable.prototype.count=Y.count},4655:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1066);z.Observable.prototype.debounce=Y.debounce},4997:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9959);z.Observable.prototype.debounceTime=Y.debounceTime},7417:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2448);z.Observable.prototype.defaultIfEmpty=Y.defaultIfEmpty},5934:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5514);z.Observable.prototype.delay=Y.delay},7199:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7607);z.Observable.prototype.delayWhen=Y.delayWhen},7613:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5395);z.Observable.prototype.dematerialize=Y.dematerialize},8047:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9440);z.Observable.prototype.distinct=Y.distinct},1381:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3943);z.Observable.prototype.distinctUntilChanged=Y.distinctUntilChanged},1817:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9749);z.Observable.prototype.distinctUntilKeyChanged=Y.distinctUntilKeyChanged},9754:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6764);z.Observable.prototype.do=Y._do,z.Observable.prototype._do=Y._do},2995:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3833);z.Observable.prototype.elementAt=Y.elementAt},598:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8648);z.Observable.prototype.every=Y.every},9574:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(14);z.Observable.prototype.exhaust=Y.exhaust},8124:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4768);z.Observable.prototype.exhaustMap=Y.exhaustMap},230:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(326);z.Observable.prototype.expand=Y.expand},2181:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1973);z.Observable.prototype.filter=Y.filter},5803:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5032);z.Observable.prototype.finally=Y._finally,z.Observable.prototype._finally=Y._finally},3928:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8302);z.Observable.prototype.find=Y.find},9193:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5286);z.Observable.prototype.findIndex=Y.findIndex},9733:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9311);z.Observable.prototype.first=Y.first},5755:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6595);z.Observable.prototype.groupBy=Y.groupBy},8744:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5783);z.Observable.prototype.ignoreElements=Y.ignoreElements},1872:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6866);z.Observable.prototype.isEmpty=Y.isEmpty},3368:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1409);z.Observable.prototype.last=Y.last},1448:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5953);z.Observable.prototype.let=Y.letProto,z.Observable.prototype.letBind=Y.letProto},5772:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8137);z.Observable.prototype.map=Y.map},2172:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1234);z.Observable.prototype.mapTo=Y.mapTo},5136:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2876);z.Observable.prototype.materialize=Y.materialize},600:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8821);z.Observable.prototype.max=Y.max},69:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2136);z.Observable.prototype.merge=Y.merge},7939:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9883);z.Observable.prototype.mergeAll=Y.mergeAll},8345:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(621);z.Observable.prototype.mergeMap=Y.mergeMap,z.Observable.prototype.flatMap=Y.mergeMap},1128:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6881);z.Observable.prototype.flatMapTo=Y.mergeMapTo,z.Observable.prototype.mergeMapTo=Y.mergeMapTo},7943:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8589);z.Observable.prototype.mergeScan=Y.mergeScan},7896:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1348);z.Observable.prototype.min=Y.min},8324:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6134);z.Observable.prototype.multicast=Y.multicast},1736:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(386);z.Observable.prototype.observeOn=Y.observeOn},9473:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8394);z.Observable.prototype.onErrorResumeNext=Y.onErrorResumeNext},8418:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(400);z.Observable.prototype.pairwise=Y.pairwise},8180:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1396);z.Observable.prototype.partition=Y.partition},3373:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9782);z.Observable.prototype.pluck=Y.pluck},5313:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7437);z.Observable.prototype.publish=Y.publish},1860:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5990);z.Observable.prototype.publishBehavior=Y.publishBehavior},2941:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4254);z.Observable.prototype.publishLast=Y.publishLast},4376:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(397);z.Observable.prototype.publishReplay=Y.publishReplay},9762:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9023);z.Observable.prototype.race=Y.race},5507:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(345);z.Observable.prototype.reduce=Y.reduce},522:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2085);z.Observable.prototype.repeat=Y.repeat},6278:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3679);z.Observable.prototype.repeatWhen=Y.repeatWhen},7459:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7080);z.Observable.prototype.retry=Y.retry},6269:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9302);z.Observable.prototype.retryWhen=Y.retryWhen},1080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3266);z.Observable.prototype.sample=Y.sample},3634:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(615);z.Observable.prototype.sampleTime=Y.sampleTime},4051:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8305);z.Observable.prototype.scan=Y.scan},5161:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1289);z.Observable.prototype.sequenceEqual=Y.sequenceEqual},5247:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(896);z.Observable.prototype.share=Y.share},6776:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4791);z.Observable.prototype.shareReplay=Y.shareReplay},7337:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6462);z.Observable.prototype.single=Y.single},8:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3458);z.Observable.prototype.skip=Y.skip},1405:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(801);z.Observable.prototype.skipLast=Y.skipLast},5431:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8249);z.Observable.prototype.skipUntil=Y.skipUntil},1986:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9603);z.Observable.prototype.skipWhile=Y.skipWhile},454:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(295);z.Observable.prototype.startWith=Y.startWith},2738:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1112);z.Observable.prototype.subscribeOn=Y.subscribeOn},8201:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(761);z.Observable.prototype.switch=Y._switch,z.Observable.prototype._switch=Y._switch},7024:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3573);z.Observable.prototype.switchMap=Y.switchMap},1434:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2892);z.Observable.prototype.switchMapTo=Y.switchMapTo},492:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7203);z.Observable.prototype.take=Y.take},6166:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7579);z.Observable.prototype.takeLast=Y.takeLast},1730:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1583);z.Observable.prototype.takeUntil=Y.takeUntil},7499:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7694);z.Observable.prototype.takeWhile=Y.takeWhile},1281:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9259);z.Observable.prototype.throttle=Y.throttle},523:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(4630);z.Observable.prototype.throttleTime=Y.throttleTime},9049:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3578);z.Observable.prototype.timeInterval=Y.timeInterval},9061:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7945);z.Observable.prototype.timeout=Y.timeout},9922:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(3060);z.Observable.prototype.timeoutWith=Y.timeoutWith},2769:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1265);z.Observable.prototype.timestamp=Y.timestamp},1636:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2561);z.Observable.prototype.toArray=Y.toArray},6044:function(){},9773:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9766);z.Observable.prototype.window=Y.window},1798:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(8227);z.Observable.prototype.windowCount=Y.windowCount},6916:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(1868);z.Observable.prototype.windowTime=Y.windowTime},6694:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(30);z.Observable.prototype.windowToggle=Y.windowToggle},9975:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(9687);z.Observable.prototype.windowWhen=Y.windowWhen},6193:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5196);z.Observable.prototype.withLatestFrom=Y.withLatestFrom},7558:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(2357);z.Observable.prototype.zip=Y.zipProto},368:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(7381);z.Observable.prototype.zipAll=Y.zipAll},5641:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.audit=function Y(M){return z.audit(M)(this)}},4657:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.auditTime=function M(U,L){return void 0===L&&(L=z.asyncScheduler),Y.auditTime(U,L)(this)}},2792:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.buffer=function Y(M){return z.buffer(M)(this)}},1667:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferCount=function Y(M,U){return void 0===U&&(U=null),z.bufferCount(M,U)(this)}},4283:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),M=m(6650);J.bufferTime=function U(L){var P=arguments.length,D=z.asyncScheduler;Y.isScheduler(arguments[arguments.length-1])&&(D=arguments[arguments.length-1],P--);var y=null;P>=2&&(y=arguments[1]);var K=Number.POSITIVE_INFINITY;return P>=3&&(K=arguments[2]),M.bufferTime(L,y,K,D)(this)}},1028:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferToggle=function Y(M,U){return z.bufferToggle(M,U)(this)}},188:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.bufferWhen=function Y(M){return z.bufferWhen(M)(this)}},8747:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._catch=function Y(M){return z.catchError(M)(this)}},572:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.combineAll=function Y(M){return z.combineAll(M)(this)}},648:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718);J.combineLatest=function M(){for(var U=[],L=0;L<arguments.length;L++)U[L]=arguments[L];var P=null;return"function"==typeof U[U.length-1]&&(P=U.pop()),1===U.length&&Y.isArray(U[0])&&(U=U[0].slice()),this.lift.call(z.of.apply(void 0,[this].concat(U)),new Y.CombineLatestOperator(P))}},9075:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.concat=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return this.lift.call(z.concat.apply(void 0,[this].concat(M)))}},6979:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatAll=function Y(){return z.concatAll()(this)}},3268:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatMap=function Y(M){return z.concatMap(M)(this)}},3382:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.concatMapTo=function Y(M){return z.concatMapTo(M)(this)}},3337:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.count=function Y(M){return z.count(M)(this)}},1066:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.debounce=function Y(M){return z.debounce(M)(this)}},9959:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.debounceTime=function M(U,L){return void 0===L&&(L=z.asyncScheduler),Y.debounceTime(U,L)(this)}},2448:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.defaultIfEmpty=function Y(M){return void 0===M&&(M=null),z.defaultIfEmpty(M)(this)}},5514:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.delay=function M(U,L){return void 0===L&&(L=z.asyncScheduler),Y.delay(U,L)(this)}},7607:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.delayWhen=function Y(M,U){return z.delayWhen(M,U)(this)}},5395:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.dematerialize=function Y(){return z.dematerialize()(this)}},9440:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinct=function Y(M,U){return z.distinct(M,U)(this)}},3943:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinctUntilChanged=function Y(M,U){return z.distinctUntilChanged(M,U)(this)}},9749:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.distinctUntilKeyChanged=function Y(M,U){return z.distinctUntilKeyChanged(M,U)(this)}},6764:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._do=function Y(M,U,L){return z.tap(M,U,L)(this)}},3833:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.elementAt=function Y(M,U){return z.elementAt.apply(void 0,arguments)(this)}},8648:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.every=function Y(M,U){return z.every(M,U)(this)}},14:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.exhaust=function Y(){return z.exhaust()(this)}},4768:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.exhaustMap=function Y(M){return z.exhaustMap(M)(this)}},326:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.expand=function Y(M,U,L){return void 0===U&&(U=Number.POSITIVE_INFINITY),void 0===L&&(L=void 0),U=(U||0)<1?Number.POSITIVE_INFINITY:U,z.expand(M,U,L)(this)}},1973:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.filter=function Y(M,U){return z.filter(M,U)(this)}},5032:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._finally=function Y(M){return z.finalize(M)(this)}},8302:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.find=function Y(M,U){return z.find(M,U)(this)}},5286:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.findIndex=function Y(M,U){return z.findIndex(M,U)(this)}},9311:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.first=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.first.apply(void 0,M)(this)}},6595:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.groupBy=function Y(M,U,L,P){return z.groupBy(M,U,L,P)(this)}},5783:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.ignoreElements=function Y(){return z.ignoreElements()(this)}},6866:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.isEmpty=function Y(){return z.isEmpty()(this)}},1409:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.last=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.last.apply(void 0,M)(this)}},5953:function(qe,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.letProto=function m(z){return z(this)}},8137:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.map=function Y(M,U){return z.map(M,U)(this)}},1234:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mapTo=function Y(M){return z.mapTo(M)(this)}},2876:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.materialize=function Y(){return z.materialize()(this)}},8821:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.max=function Y(M){return z.max(M)(this)}},2136:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.merge=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return this.lift.call(z.merge.apply(void 0,[this].concat(M)))}},9883:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeAll=function Y(M){return void 0===M&&(M=Number.POSITIVE_INFINITY),z.mergeAll(M)(this)}},621:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeMap=function Y(M,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),z.mergeMap(M,U)(this)}},6881:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeMapTo=function Y(M,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),z.mergeMapTo(M,U)(this)}},8589:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.mergeScan=function Y(M,U,L){return void 0===L&&(L=Number.POSITIVE_INFINITY),z.mergeScan(M,U,L)(this)}},1348:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.min=function Y(M){return z.min(M)(this)}},6134:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.multicast=function Y(M,U){return z.multicast(M,U)(this)}},386:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.observeOn=function Y(M,U){return void 0===U&&(U=0),z.observeOn(M,U)(this)}},8394:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.onErrorResumeNext=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.onErrorResumeNext.apply(void 0,M)(this)}},400:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.pairwise=function Y(){return z.pairwise()(this)}},1396:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.partition=function Y(M,U){return z.partition(M,U)(this)}},9782:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.pluck=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.pluck.apply(void 0,M)(this)}},7437:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publish=function Y(M){return z.publish(M)(this)}},5990:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishBehavior=function Y(M){return z.publishBehavior(M)(this)}},4254:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishLast=function Y(){return z.publishLast()(this)}},397:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.publishReplay=function Y(M,U,L,P){return z.publishReplay(M,U,L,P)(this)}},9023:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.race=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.race.apply(void 0,M)(this)}},345:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.reduce=function Y(M,U){return arguments.length>=2?z.reduce(M,U)(this):z.reduce(M)(this)}},2085:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.repeat=function Y(M){return void 0===M&&(M=-1),z.repeat(M)(this)}},3679:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.repeatWhen=function Y(M){return z.repeatWhen(M)(this)}},7080:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.retry=function Y(M){return void 0===M&&(M=-1),z.retry(M)(this)}},9302:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.retryWhen=function Y(M){return z.retryWhen(M)(this)}},3266:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.sample=function Y(M){return z.sample(M)(this)}},615:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.sampleTime=function M(U,L){return void 0===L&&(L=z.asyncScheduler),Y.sampleTime(U,L)(this)}},8305:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.scan=function Y(M,U){return arguments.length>=2?z.scan(M,U)(this):z.scan(M)(this)}},1289:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.sequenceEqual=function Y(M,U){return z.sequenceEqual(M,U)(this)}},896:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.share=function Y(){return z.share()(this)}},4791:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.shareReplay=function Y(M,U,L){return M&&"object"==typeof M?z.shareReplay(M)(this):z.shareReplay(M,U,L)(this)}},6462:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.single=function Y(M){return z.single(M)(this)}},3458:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skip=function Y(M){return z.skip(M)(this)}},801:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipLast=function Y(M){return z.skipLast(M)(this)}},8249:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipUntil=function Y(M){return z.skipUntil(M)(this)}},9603:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.skipWhile=function Y(M){return z.skipWhile(M)(this)}},295:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.startWith=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.startWith.apply(void 0,M)(this)}},1112:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.subscribeOn=function Y(M,U){return void 0===U&&(U=0),z.subscribeOn(M,U)(this)}},761:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J._switch=function Y(){return z.switchAll()(this)}},3573:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.switchMap=function Y(M){return z.switchMap(M)(this)}},2892:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.switchMapTo=function Y(M){return z.switchMapTo(M)(this)}},7203:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.take=function Y(M){return z.take(M)(this)}},7579:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeLast=function Y(M){return z.takeLast(M)(this)}},1583:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeUntil=function Y(M){return z.takeUntil(M)(this)}},7694:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.takeWhile=function Y(M){return z.takeWhile(M)(this)}},9259:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650),Y=m(5718);J.throttle=function M(U,L){return void 0===L&&(L=Y.defaultThrottleConfig),z.throttle(U,L)(this)}},4630:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),M=m(6650);J.throttleTime=function U(L,P,D){return void 0===P&&(P=z.asyncScheduler),void 0===D&&(D=Y.defaultThrottleConfig),M.throttleTime(L,P,D)(this)}},3578:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeInterval=function M(U){return void 0===U&&(U=z.asyncScheduler),Y.timeInterval(U)(this)}},7945:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeout=function M(U,L){return void 0===L&&(L=z.asyncScheduler),Y.timeout(U,L)(this)}},3060:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timeoutWith=function M(U,L,P){return void 0===P&&(P=z.asyncScheduler),Y.timeoutWith(U,L,P)(this)}},1265:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(6650);J.timestamp=function M(U){return void 0===U&&(U=z.asyncScheduler),Y.timestamp(U)(this)}},2561:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.toArray=function Y(){return z.toArray()(this)}},9766:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.window=function Y(M){return z.window(M)(this)}},8227:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowCount=function Y(M,U){return void 0===U&&(U=0),z.windowCount(M,U)(this)}},1868:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822),Y=m(5718),M=m(6650);J.windowTime=function U(L){var P=z.asyncScheduler,D=null,y=Number.POSITIVE_INFINITY;return Y.isScheduler(arguments[3])&&(P=arguments[3]),Y.isScheduler(arguments[2])?P=arguments[2]:Y.isNumeric(arguments[2])&&(y=Number(arguments[2])),Y.isScheduler(arguments[1])?P=arguments[1]:Y.isNumeric(arguments[1])&&(D=Number(arguments[1])),M.windowTime(L,D,y,P)(this)}},30:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowToggle=function Y(M,U){return z.windowToggle(M,U)(this)}},9687:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.windowWhen=function Y(M){return z.windowWhen(M)(this)}},5196:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.withLatestFrom=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return z.withLatestFrom.apply(void 0,M)(this)}},2357:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(4822);J.zipProto=function Y(){for(var M=[],U=0;U<arguments.length;U++)M[U]=arguments[U];return this.lift.call(z.zip.apply(void 0,[this].concat(M)))}},7381:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0});var z=m(6650);J.zipAll=function Y(M){return z.zipAll(M)(this)}},5887:function(qe,J,m){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),function z(Y){for(var M in Y)J.hasOwnProperty(M)||(J[M]=Y[M])}(m(285))},8679:function(qe,J,m){"use strict";m.r(J),m.d(J,{AjaxError:function(){return Y.iM},AjaxResponse:function(){return Y.vD},AjaxTimeoutError:function(){return Y.cw},ajax:function(){return z.h}});var z=m(8059),Y=m(8452)},4822:function(qe,J,m){"use strict";m.r(J),m.d(J,{ArgumentOutOfRangeError:function(){return ce.W},AsyncSubject:function(){return y.c},BehaviorSubject:function(){return P.X},ConnectableObservable:function(){return Y.c},EMPTY:function(){return nt.E},EmptyError:function(){return se.K},GroupedObservable:function(){return M.T},NEVER:function(){return sn},Notification:function(){return S.P},NotificationKind:function(){return S.W},ObjectUnsubscribedError:function(){return ee.N},Observable:function(){return z.y},ReplaySubject:function(){return D.t},Scheduler:function(){return I.b},Subject:function(){return L.xQ},Subscriber:function(){return w.L},Subscription:function(){return T.w},TimeoutError:function(){return ge.W},UnsubscriptionError:function(){return oe.B},VirtualAction:function(){return k.h},VirtualTimeScheduler:function(){return k.y},animationFrame:function(){return A.r},animationFrameScheduler:function(){return A.Z},asap:function(){return K.e},asapScheduler:function(){return K.E},async:function(){return F.P},asyncScheduler:function(){return F.z},bindCallback:function(){return Be},bindNodeCallback:function(){return Xt},combineLatest:function(){return jt.aj},concat:function(){return rt.z},config:function(){return tn.v},defer:function(){return vt.P},empty:function(){return nt.c},forkJoin:function(){return Rt.D},from:function(){return It.D},fromEvent:function(){return on.R},fromEventPattern:function(){return An},generate:function(){return Gt},identity:function(){return W.y},iif:function(){return Et},interval:function(){return Ut.F},isObservable:function(){return $.b},merge:function(){return Ht.T},never:function(){return yt},noop:function(){return R.Z},observable:function(){return U.L},of:function(){return mt.of},onErrorResumeNext:function(){return cn},pairs:function(){return $t},partition:function(){return Bt},pipe:function(){return N.z},queue:function(){return E.c},queueScheduler:function(){return E.N},race:function(){return dt.S3},range:function(){return de.w},scheduled:function(){return Dt.x},throwError:function(){return Te._},timer:function(){return ue.H},using:function(){return We},zip:function(){return at.$R}});var z=m(7451),Y=m(1762),M=m(4002),U=m(3821),L=m(8929),P=m(591),D=m(839),y=m(2185),K=m(9931),F=m(353),E=m(341),A=m(352),k=m(9027),I=m(2221),T=m(4096),w=m(3489),S=m(9312),N=m(4843),R=m(7876),W=m(5379),$=m(4715),ce=m(4231),se=m(4450),ee=m(5279),oe=m(7964),ge=m(854),Oe=m(4902),ot=m(4850),xe=m(9476),_e=m(6688),ke=m(2866);function Be(Jt,nn,dn){if(nn){if(!(0,ke.K)(nn))return function(){return Be(Jt,dn).apply(void 0,arguments).pipe((0,ot.U)(function(On){return(0,_e.k)(On)?nn.apply(void 0,(0,Oe.Z)(On)):nn(On)}))};dn=nn}return function(){for(var On=arguments.length,Dn=new Array(On),zn=0;zn<On;zn++)Dn[zn]=arguments[zn];var jn,Ln=this,mn={context:Ln,subject:jn,callbackFunc:Jt,scheduler:dn};return new z.y(function(lr){if(dn){var Kt={args:Dn,subscriber:lr,params:mn};return dn.schedule(ct,0,Kt)}if(!jn){jn=new y.c;try{Jt.apply(Ln,[].concat(Dn,[function(){for(var Ue=arguments.length,Ee=new Array(Ue),He=0;He<Ue;He++)Ee[He]=arguments[He];jn.next(Ee.length<=1?Ee[0]:Ee),jn.complete()}]))}catch(tt){(0,xe._)(jn)?jn.error(tt):console.warn(tt)}}return jn.subscribe(lr)})}}function ct(Jt){var nn=this,On=Jt.args,Dn=Jt.subscriber,zn=Jt.params,Ln=zn.callbackFunc,jn=zn.context,mn=zn.scheduler,lr=zn.subject;if(!lr){lr=zn.subject=new y.c;try{Ln.apply(jn,[].concat((0,Oe.Z)(On),[function(){for(var tt=arguments.length,Ue=new Array(tt),Ee=0;Ee<tt;Ee++)Ue[Ee]=arguments[Ee];var He=Ue.length<=1?Ue[0]:Ue;nn.add(mn.schedule(Mt,0,{value:He,subject:lr}))}]))}catch(Kt){lr.error(Kt)}}this.add(lr.subscribe(Dn))}function Mt(Jt){var nn=Jt.value,dn=Jt.subject;dn.next(nn),dn.complete()}function Xt(Jt,nn,dn){if(nn){if(!(0,ke.K)(nn))return function(){return Xt(Jt,dn).apply(void 0,arguments).pipe((0,ot.U)(function(On){return(0,_e.k)(On)?nn.apply(void 0,(0,Oe.Z)(On)):nn(On)}))};dn=nn}return function(){for(var On=arguments.length,Dn=new Array(On),zn=0;zn<On;zn++)Dn[zn]=arguments[zn];var Ln={subject:void 0,args:Dn,callbackFunc:Jt,scheduler:dn,context:this};return new z.y(function(jn){var mn=Ln.context,lr=Ln.subject;if(dn)return dn.schedule(en,0,{params:Ln,subscriber:jn,context:mn});if(!lr){lr=Ln.subject=new y.c;try{Jt.apply(mn,[].concat(Dn,[function(){for(var tt=arguments.length,Ue=new Array(tt),Ee=0;Ee<tt;Ee++)Ue[Ee]=arguments[Ee];var He=Ue.shift();He?lr.error(He):(lr.next(Ue.length<=1?Ue[0]:Ue),lr.complete())}]))}catch(Kt){(0,xe._)(lr)?lr.error(Kt):console.warn(Kt)}}return lr.subscribe(jn)})}}function en(Jt){var nn=this,dn=Jt.params,On=Jt.subscriber,Dn=Jt.context,zn=dn.callbackFunc,Ln=dn.args,jn=dn.scheduler,mn=dn.subject;if(!mn){mn=dn.subject=new y.c;try{zn.apply(Dn,[].concat((0,Oe.Z)(Ln),[function(){for(var Kt=arguments.length,tt=new Array(Kt),Ue=0;Ue<Kt;Ue++)tt[Ue]=arguments[Ue];var Ee=tt.shift();if(Ee)nn.add(jn.schedule(Xe,0,{err:Ee,subject:mn}));else{var He=tt.length<=1?tt[0]:tt;nn.add(jn.schedule(qt,0,{value:He,subject:mn}))}}]))}catch(Yn){this.add(jn.schedule(Xe,0,{err:Yn,subject:mn}))}}this.add(mn.subscribe(On))}function qt(Jt){var nn=Jt.value,dn=Jt.subject;dn.next(nn),dn.complete()}function Xe(Jt){var nn=Jt.err;Jt.subject.error(nn)}var jt=m(6053),rt=m(1961),vt=m(8514),nt=m(8896),Rt=m(567),It=m(3527),on=m(3753),_n=m(7043);function An(Jt,nn,dn){return dn?An(Jt,nn).pipe((0,ot.U)(function(On){return(0,_e.k)(On)?dn.apply(void 0,(0,Oe.Z)(On)):dn(On)})):new z.y(function(On){var zn,Dn=function(){for(var jn=arguments.length,mn=new Array(jn),lr=0;lr<jn;lr++)mn[lr]=arguments[lr];return On.next(1===mn.length?mn[0]:mn)};try{zn=Jt(Dn)}catch(Ln){return void On.error(Ln)}if((0,_n.m)(nn))return function(){return nn(Dn,zn)}})}function Gt(Jt,nn,dn,On,Dn){var zn,Ln;if(1==arguments.length){var jn=Jt;Ln=jn.initialState,nn=jn.condition,dn=jn.iterate,zn=jn.resultSelector||W.y,Dn=jn.scheduler}else void 0===On||(0,ke.K)(On)?(Ln=Jt,zn=W.y,Dn=On):(Ln=Jt,zn=On);return new z.y(function(mn){var lr=Ln;if(Dn)return Dn.schedule(Zt,0,{subscriber:mn,iterate:dn,condition:nn,resultSelector:zn,state:lr});for(;;){if(nn){var Yn=void 0;try{Yn=nn(lr)}catch(tt){return void mn.error(tt)}if(!Yn){mn.complete();break}}var Kt=void 0;try{Kt=zn(lr)}catch(tt){return void mn.error(tt)}if(mn.next(Kt),mn.closed)break;try{lr=dn(lr)}catch(tt){return void mn.error(tt)}}})}function Zt(Jt){var nn=Jt.subscriber,dn=Jt.condition;if(!nn.closed){if(Jt.needIterate)try{Jt.state=Jt.iterate(Jt.state)}catch(zn){return void nn.error(zn)}else Jt.needIterate=!0;if(dn){var On;try{On=dn(Jt.state)}catch(zn){return void nn.error(zn)}if(!On)return void nn.complete();if(nn.closed)return}var Dn;try{Dn=Jt.resultSelector(Jt.state)}catch(zn){return void nn.error(zn)}if(!nn.closed&&(nn.next(Dn),!nn.closed))return this.schedule(Jt)}}function Et(Jt){var nn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.E,dn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt.E;return(0,vt.P)(function(){return Jt()?nn:dn})}var Ut=m(1715),Ht=m(6787),sn=new z.y(R.Z);function yt(){return sn}var mt=m(1086);function cn(){for(var Jt=arguments.length,nn=new Array(Jt),dn=0;dn<Jt;dn++)nn[dn]=arguments[dn];if(0===nn.length)return nt.E;var On=nn[0],Dn=nn.slice(1);return 1===nn.length&&(0,_e.k)(On)?cn.apply(void 0,(0,Oe.Z)(On)):new z.y(function(zn){var Ln=function(){return zn.add(cn.apply(void 0,(0,Oe.Z)(Dn)).subscribe(zn))};return(0,It.D)(On).subscribe({next:function(mn){zn.next(mn)},error:Ln,complete:Ln})})}function $t(Jt,nn){return nn?new z.y(function(dn){var On=Object.keys(Jt),Dn=new T.w;return Dn.add(nn.schedule(j,0,{keys:On,index:0,subscriber:dn,subscription:Dn,obj:Jt})),Dn}):new z.y(function(dn){for(var On=Object.keys(Jt),Dn=0;Dn<On.length&&!dn.closed;Dn++){var zn=On[Dn];Jt.hasOwnProperty(zn)&&dn.next([zn,Jt[zn]])}dn.complete()})}function j(Jt){var nn=Jt.keys,dn=Jt.index,On=Jt.subscriber,Dn=Jt.subscription,zn=Jt.obj;if(!On.closed)if(dn<nn.length){var Ln=nn[dn];On.next([Ln,zn[Ln]]),Dn.add(this.schedule({keys:nn,index:dn+1,subscriber:On,subscription:Dn,obj:zn}))}else On.complete()}var V=m(5884),Jn=m(3071),wn=m(9664);function Bt(Jt,nn,dn){return[(0,wn.h)(nn,dn)(new z.y((0,Jn.s)(Jt))),(0,wn.h)((0,V.f)(nn,dn))(new z.y((0,Jn.s)(Jt)))]}var dt=m(1946),de=m(3103),Te=m(1737),ue=m(8723);function We(Jt,nn){return new z.y(function(dn){var On,Dn;try{On=Jt()}catch(jn){return void dn.error(jn)}try{Dn=nn(On)}catch(jn){return void dn.error(jn)}var Ln=(Dn?(0,It.D)(Dn):nt.E).subscribe(dn);return function(){Ln.unsubscribe(),On&&On.unsubscribe()}})}var at=m(1746),Dt=m(6266),tn=m(2830)},5718:function(qe,J,m){"use strict";m.r(J),m.d(J,{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 L.ug},ArgumentOutOfRangeError:function(){return xe.W},CombineLatestOperator:function(){return R.Ms},EmptyError:function(){return _e.K},GroupedObservable:function(){return ee.T},Immediate:function(){return ke.H},InnerSubscriber:function(){return Y.d},ObjectUnsubscribedError:function(){return Be.N},OuterSubscriber:function(){return M.L},Scheduler:function(){return U.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return $.e},Subscriber:function(){return D.L},TimeInterval:function(){return se.R},TimeoutError:function(){return ct.W},Timestamp:function(){return ce.E},UnsubscriptionError:function(){return Mt.B},WebSocketSubject:function(){return N.p},ajax:function(){return T.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 Nt.e},config:function(){return z.v},defaultThrottleConfig:function(){return oe.d},dispatch:function(){return W.W},errorObject:function(){return Xt},fromIterable:function(){return I},fromPromise:function(){return E},hostReportError:function(){return en.z},identity:function(){return qt.y},isArray:function(){return Xe.k},isArrayLike:function(){return jt.z},isDate:function(){return rt.J},isFunction:function(){return vt.m},isIterable:function(){return nt.T},isNumeric:function(){return Rt.k},isObject:function(){return It.K},isObservable:function(){return on.c},isPromise:function(){return _n.t},isScheduler:function(){return An.K},iterator:function(){return Oe.hZ},noop:function(){return Gt.Z},not:function(){return Zt.f},observable:function(){return ot.L},pipe:function(){return Et.z},root:function(){return Ut.J},rxSubscriber:function(){return ge.b},subscribeTo:function(){return Ht.s},subscribeToArray:function(){return sn.V},subscribeToIterable:function(){return A.u},subscribeToObservable:function(){return yt.h},subscribeToPromise:function(){return K.A},subscribeToResult:function(){return mt.D},toSubscriber:function(){return cn.Y},tryCatch:function(){return V},webSocket:function(){return w.j}});var z=m(2830),Y=m(1869),M=m(826),U=m(2221),L=m(8929),P=m(5283),D=m(3489),y=m(7451),K=m(3445),F=m(8687);function E(Jn,wn){return wn?(0,F.c)(Jn,wn):new y.y((0,K.A)(Jn))}var A=m(3720),k=m(6389);function I(Jn,wn){if(!Jn)throw new Error("Iterable cannot be null");return wn?(0,k.Q)(Jn,wn):new y.y((0,A.u)(Jn))}var $t,T=m(8059),w=m(7623),S=m(8452),N=m(2741),R=m(6053),W=m(3103),$=m(3837),ce=m(7781),se=m(3485),ee=m(4002),oe=m(2444),ge=m(7668),Oe=m(5430),ot=m(3821),xe=m(4231),_e=m(4450),ke=m(1450),Be=m(5279),ct=m(854),Mt=m(7964),Nt=m(5128),Xt={e:{}},en=m(2782),qt=m(5379),Xe=m(6688),jt=m(8515),rt=m(2697),vt=m(7043),nt=m(2198),Rt=m(4241),It=m(7830),on=m(8845),_n=m(8955),An=m(2866),Gt=m(7876),Zt=m(5884),Et=m(4843),Ut=m(797),Ht=m(3071),sn=m(3650),yt=m(1810),mt=m(9054),cn=m(5221);function j(){Xt.e=void 0;try{return $t.apply(this,arguments)}catch(Jn){return Xt.e=Jn,Xt}finally{$t=void 0}}function V(Jn){return $t=Jn,j}},2185:function(qe,J,m){"use strict";m.d(J,{c:function(){return K}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(4096),K=function(F){(0,L.Z)(A,F);var E=(0,P.Z)(A);function A(){var k;return(0,z.Z)(this,A),(k=E.apply(this,arguments)).value=null,k.hasNext=!1,k.hasCompleted=!1,k}return(0,Y.Z)(A,[{key:"_subscribe",value:function(I){return this.hasError?(I.error(this.thrownError),y.w.EMPTY):this.hasCompleted&&this.hasNext?(I.next(this.value),I.complete(),y.w.EMPTY):(0,M.Z)((0,U.Z)(A.prototype),"_subscribe",this).call(this,I)}},{key:"next",value:function(I){this.hasCompleted||(this.value=I,this.hasNext=!0)}},{key:"error",value:function(I){this.hasCompleted||(0,M.Z)((0,U.Z)(A.prototype),"error",this).call(this,I)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,M.Z)((0,U.Z)(A.prototype),"next",this).call(this,this.value),(0,M.Z)((0,U.Z)(A.prototype),"complete",this).call(this)}}]),A}(D.xQ)},591:function(qe,J,m){"use strict";m.d(J,{X:function(){return K}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(5279),K=function(F){(0,L.Z)(A,F);var E=(0,P.Z)(A);function A(k){var I;return(0,z.Z)(this,A),(I=E.call(this))._value=k,I}return(0,Y.Z)(A,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(I){var T=(0,M.Z)((0,U.Z)(A.prototype),"_subscribe",this).call(this,I);return T&&!T.closed&&I.next(this._value),T}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new y.N;return this._value}},{key:"next",value:function(I){(0,M.Z)((0,U.Z)(A.prototype),"next",this).call(this,this._value=I)}}]),A}(D.xQ)},1869:function(qe,J,m){"use strict";m.d(J,{d:function(){return P}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),P=function(D){(0,M.Z)(K,D);var y=(0,U.Z)(K);function K(F,E,A){var k;return(0,z.Z)(this,K),(k=y.call(this)).parent=F,k.outerValue=E,k.outerIndex=A,k.index=0,k}return(0,Y.Z)(K,[{key:"_next",value:function(E){this.parent.notifyNext(this.outerValue,E,this.outerIndex,this.index++,this)}},{key:"_error",value:function(E){this.parent.notifyError(E,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),K}(m(3489).L)},9312:function(qe,J,m){"use strict";m.d(J,{P:function(){return D},W:function(){return P}});var P,y,z=m(5671),Y=m(3144),M=m(8896),U=m(1086),L=m(1737);(y=P||(P={})).NEXT="N",y.ERROR="E",y.COMPLETE="C";var D=function(){function y(K,F,E){(0,z.Z)(this,y),this.kind=K,this.value=F,this.error=E,this.hasValue="N"===K}return(0,Y.Z)(y,[{key:"observe",value:function(F){switch(this.kind){case"N":return F.next&&F.next(this.value);case"E":return F.error&&F.error(this.error);case"C":return F.complete&&F.complete()}}},{key:"do",value:function(F,E,A){switch(this.kind){case"N":return F&&F(this.value);case"E":return E&&E(this.error);case"C":return A&&A()}}},{key:"accept",value:function(F,E,A){return F&&"function"==typeof F.next?this.observe(F):this.do(F,E,A)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,U.of)(this.value);case"E":return(0,L._)(this.error);case"C":return(0,M.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(F){return void 0!==F?new y("N",F):y.undefinedValueNotification}},{key:"createError",value:function(F){return new y("E",void 0,F)}},{key:"createComplete",value:function(){return y.completeNotification}}]),y}();D.completeNotification=new D("C"),D.undefinedValueNotification=new D("N",void 0)},7451:function(qe,J,m){"use strict";m.d(J,{y:function(){return y}});var z=m(5671),Y=m(3144),M=m(9476),U=m(5221),L=m(3821),P=m(4843),D=m(2830),y=function(){function F(E){(0,z.Z)(this,F),this._isScalar=!1,E&&(this._subscribe=E)}return(0,Y.Z)(F,[{key:"lift",value:function(A){var k=new F;return k.source=this,k.operator=A,k}},{key:"subscribe",value:function(A,k,I){var T=this.operator,w=(0,U.Y)(A,k,I);if(T?w.add(T.call(w,this.source)):w.add(this.source||D.v.useDeprecatedSynchronousErrorHandling&&!w.syncErrorThrowable?this._subscribe(w):this._trySubscribe(w)),D.v.useDeprecatedSynchronousErrorHandling&&w.syncErrorThrowable&&(w.syncErrorThrowable=!1,w.syncErrorThrown))throw w.syncErrorValue;return w}},{key:"_trySubscribe",value:function(A){try{return this._subscribe(A)}catch(k){D.v.useDeprecatedSynchronousErrorHandling&&(A.syncErrorThrown=!0,A.syncErrorValue=k),(0,M._)(A)?A.error(k):console.warn(k)}}},{key:"forEach",value:function(A,k){var I=this;return new(k=K(k))(function(T,w){var S;S=I.subscribe(function(N){try{A(N)}catch(R){w(R),S&&S.unsubscribe()}},w,T)})}},{key:"_subscribe",value:function(A){var k=this.source;return k&&k.subscribe(A)}},{key:L.L,value:function(){return this}},{key:"pipe",value:function(){for(var A=arguments.length,k=new Array(A),I=0;I<A;I++)k[I]=arguments[I];return 0===k.length?this:(0,P.U)(k)(this)}},{key:"toPromise",value:function(A){var k=this;return new(A=K(A))(function(I,T){var w;k.subscribe(function(S){return w=S},function(S){return T(S)},function(){return I(w)})})}}]),F}();function K(F){if(F||(F=D.v.Promise||Promise),!F)throw new Error("no Promise impl found");return F}y.create=function(F){return new y(F)}},3292:function(qe,J,m){"use strict";m.d(J,{c:function(){return M}});var z=m(2830),Y=m(2782),M={closed:!0,next:function(L){},error:function(L){if(z.v.useDeprecatedSynchronousErrorHandling)throw L;(0,Y.z)(L)},complete:function(){}}},826:function(qe,J,m){"use strict";m.d(J,{L:function(){return P}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),P=function(D){(0,M.Z)(K,D);var y=(0,U.Z)(K);function K(){return(0,z.Z)(this,K),y.apply(this,arguments)}return(0,Y.Z)(K,[{key:"notifyNext",value:function(E,A,k,I,T){this.destination.next(A)}},{key:"notifyError",value:function(E,A){this.destination.error(E)}},{key:"notifyComplete",value:function(E){this.destination.complete()}}]),K}(m(3489).L)},839:function(qe,J,m){"use strict";m.d(J,{t:function(){return k}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(341),K=m(4096),F=m(7770),E=m(5279),A=m(5283),k=function(T){(0,L.Z)(S,T);var w=(0,P.Z)(S);function S(){var N,R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,$=arguments.length>2?arguments[2]:void 0;return(0,z.Z)(this,S),(N=w.call(this)).scheduler=$,N._events=[],N._infiniteTimeWindow=!1,N._bufferSize=R<1?1:R,N._windowTime=W<1?1:W,W===Number.POSITIVE_INFINITY?(N._infiniteTimeWindow=!0,N.next=N.nextInfiniteTimeWindow):N.next=N.nextTimeWindow,N}return(0,Y.Z)(S,[{key:"nextInfiniteTimeWindow",value:function(R){if(!this.isStopped){var W=this._events;W.push(R),W.length>this._bufferSize&&W.shift()}(0,M.Z)((0,U.Z)(S.prototype),"next",this).call(this,R)}},{key:"nextTimeWindow",value:function(R){this.isStopped||(this._events.push(new I(this._getNow(),R)),this._trimBufferThenGetEvents()),(0,M.Z)((0,U.Z)(S.prototype),"next",this).call(this,R)}},{key:"_subscribe",value:function(R){var ee,W=this._infiniteTimeWindow,$=W?this._events:this._trimBufferThenGetEvents(),ce=this.scheduler,se=$.length;if(this.closed)throw new E.N;if(this.isStopped||this.hasError?ee=K.w.EMPTY:(this.observers.push(R),ee=new A.W(this,R)),ce&&R.add(R=new F.ht(R,ce)),W)for(var oe=0;oe<se&&!R.closed;oe++)R.next($[oe]);else for(var ge=0;ge<se&&!R.closed;ge++)R.next($[ge].value);return this.hasError?R.error(this.thrownError):this.isStopped&&R.complete(),ee}},{key:"_getNow",value:function(){return(this.scheduler||y.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var R=this._getNow(),W=this._bufferSize,$=this._windowTime,ce=this._events,se=ce.length,ee=0;ee<se&&!(R-ce[ee].time<$);)ee++;return se>W&&(ee=Math.max(ee,se-W)),ee>0&&ce.splice(0,ee),ce}}]),S}(D.xQ),I=(0,Y.Z)(function T(w,S){(0,z.Z)(this,T),this.time=w,this.value=S})},2221:function(qe,J,m){"use strict";m.d(J,{b:function(){return M}});var z=m(5671),Y=m(3144),M=function(){function U(L){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.now;(0,z.Z)(this,U),this.SchedulerAction=L,this.now=P}return(0,Y.Z)(U,[{key:"schedule",value:function(P){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,y=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(y,D)}}]),U}();M.now=function(){return Date.now()}},8929:function(qe,J,m){"use strict";m.d(J,{Yc:function(){return k},ug:function(){return T},xQ:function(){return I}});var z=m(3237),Y=m(1120),M=m(3144),U=m(5671),L=m(136),P=m(9388),D=m(7451),y=m(3489),K=m(4096),F=m(5279),E=m(5283),A=m(7668),k=function(w){(0,L.Z)(N,w);var S=(0,P.Z)(N);function N(R){var W;return(0,U.Z)(this,N),(W=S.call(this,R)).destination=R,W}return(0,M.Z)(N)}(y.L),I=function(w){(0,L.Z)(N,w);var S=(0,P.Z)(N);function N(){var R;return(0,U.Z)(this,N),(R=S.call(this)).observers=[],R.closed=!1,R.isStopped=!1,R.hasError=!1,R.thrownError=null,R}return(0,M.Z)(N,[{key:A.b,value:function(){return new k(this)}},{key:"lift",value:function(W){var $=new T(this,this);return $.operator=W,$}},{key:"next",value:function(W){if(this.closed)throw new F.N;if(!this.isStopped)for(var $=this.observers,ce=$.length,se=$.slice(),ee=0;ee<ce;ee++)se[ee].next(W)}},{key:"error",value:function(W){if(this.closed)throw new F.N;this.hasError=!0,this.thrownError=W,this.isStopped=!0;for(var $=this.observers,ce=$.length,se=$.slice(),ee=0;ee<ce;ee++)se[ee].error(W);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new F.N;this.isStopped=!0;for(var W=this.observers,$=W.length,ce=W.slice(),se=0;se<$;se++)ce[se].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(W){if(this.closed)throw new F.N;return(0,z.Z)((0,Y.Z)(N.prototype),"_trySubscribe",this).call(this,W)}},{key:"_subscribe",value:function(W){if(this.closed)throw new F.N;return this.hasError?(W.error(this.thrownError),K.w.EMPTY):this.isStopped?(W.complete(),K.w.EMPTY):(this.observers.push(W),new E.W(this,W))}},{key:"asObservable",value:function(){var W=new D.y;return W.source=this,W}}]),N}(D.y);I.create=function(w,S){return new T(w,S)};var T=function(w){(0,L.Z)(N,w);var S=(0,P.Z)(N);function N(R,W){var $;return(0,U.Z)(this,N),($=S.call(this)).destination=R,$.source=W,$}return(0,M.Z)(N,[{key:"next",value:function(W){var $=this.destination;$&&$.next&&$.next(W)}},{key:"error",value:function(W){var $=this.destination;$&&$.error&&this.destination.error(W)}},{key:"complete",value:function(){var W=this.destination;W&&W.complete&&this.destination.complete()}},{key:"_subscribe",value:function(W){return this.source?this.source.subscribe(W):K.w.EMPTY}}]),N}(I)},5283:function(qe,J,m){"use strict";m.d(J,{W:function(){return P}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),P=function(D){(0,M.Z)(K,D);var y=(0,U.Z)(K);function K(F,E){var A;return(0,z.Z)(this,K),(A=y.call(this)).subject=F,A.subscriber=E,A.closed=!1,A}return(0,Y.Z)(K,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var E=this.subject,A=E.observers;if(this.subject=null,A&&0!==A.length&&!E.isStopped&&!E.closed){var k=A.indexOf(this.subscriber);-1!==k&&A.splice(k,1)}}}}]),K}(m(4096).w)},3489:function(qe,J,m){"use strict";m.d(J,{L:function(){return I}});var z=m(5671),Y=m(3144),M=m(7326),U=m(3237),L=m(1120),P=m(136),D=m(9388),y=m(7043),K=m(3292),F=m(4096),E=m(7668),A=m(2830),k=m(2782),I=function(w){(0,P.Z)(N,w);var S=(0,D.Z)(N);function N(R,W,$){var ce;switch((0,z.Z)(this,N),(ce=S.call(this)).syncErrorValue=null,ce.syncErrorThrown=!1,ce.syncErrorThrowable=!1,ce.isStopped=!1,arguments.length){case 0:ce.destination=K.c;break;case 1:if(!R){ce.destination=K.c;break}if("object"==typeof R){R instanceof N?(ce.syncErrorThrowable=R.syncErrorThrowable,ce.destination=R,R.add((0,M.Z)(ce))):(ce.syncErrorThrowable=!0,ce.destination=new T((0,M.Z)(ce),R));break}default:ce.syncErrorThrowable=!0,ce.destination=new T((0,M.Z)(ce),R,W,$)}return ce}return(0,Y.Z)(N,[{key:E.b,value:function(){return this}},{key:"next",value:function(W){this.isStopped||this._next(W)}},{key:"error",value:function(W){this.isStopped||(this.isStopped=!0,this._error(W))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,U.Z)((0,L.Z)(N.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(W){this.destination.next(W)}},{key:"_error",value:function(W){this.destination.error(W),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var W=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=W,this}}],[{key:"create",value:function(W,$,ce){var se=new N(W,$,ce);return se.syncErrorThrowable=!1,se}}]),N}(F.w),T=function(w){(0,P.Z)(N,w);var S=(0,D.Z)(N);function N(R,W,$,ce){var se;(0,z.Z)(this,N),(se=S.call(this))._parentSubscriber=R;var ee,oe=(0,M.Z)(se);return(0,y.m)(W)?ee=W:W&&(ee=W.next,$=W.error,ce=W.complete,W!==K.c&&(oe=Object.create(W),(0,y.m)(oe.unsubscribe)&&se.add(oe.unsubscribe.bind(oe)),oe.unsubscribe=se.unsubscribe.bind((0,M.Z)(se)))),se._context=oe,se._next=ee,se._error=$,se._complete=ce,se}return(0,Y.Z)(N,[{key:"next",value:function(W){if(!this.isStopped&&this._next){var $=this._parentSubscriber;A.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,W)&&this.unsubscribe():this.__tryOrUnsub(this._next,W)}}},{key:"error",value:function(W){if(!this.isStopped){var $=this._parentSubscriber,ce=A.v.useDeprecatedSynchronousErrorHandling;if(this._error)ce&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,W),this.unsubscribe()):(this.__tryOrUnsub(this._error,W),this.unsubscribe());else if($.syncErrorThrowable)ce?($.syncErrorValue=W,$.syncErrorThrown=!0):(0,k.z)(W),this.unsubscribe();else{if(this.unsubscribe(),ce)throw W;(0,k.z)(W)}}}},{key:"complete",value:function(){var W=this;if(!this.isStopped){var $=this._parentSubscriber;if(this._complete){var ce=function(){return W._complete.call(W._context)};A.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?(this.__tryOrSetError($,ce),this.unsubscribe()):(this.__tryOrUnsub(ce),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(W,$){try{W.call(this._context,$)}catch(ce){if(this.unsubscribe(),A.v.useDeprecatedSynchronousErrorHandling)throw ce;(0,k.z)(ce)}}},{key:"__tryOrSetError",value:function(W,$,ce){if(!A.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,ce)}catch(se){return A.v.useDeprecatedSynchronousErrorHandling?(W.syncErrorValue=se,W.syncErrorThrown=!0,!0):((0,k.z)(se),!0)}return!1}},{key:"_unsubscribe",value:function(){var W=this._parentSubscriber;this._context=null,this._parentSubscriber=null,W.unsubscribe()}}]),N}(I)},4096:function(qe,J,m){"use strict";m.d(J,{w:function(){return D}});var K,z=m(5671),Y=m(3144),M=m(6688),U=m(7830),L=m(7043),P=m(7964),D=function(){function K(F){(0,z.Z)(this,K),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,F&&(this._ctorUnsubscribe=!0,this._unsubscribe=F)}return(0,Y.Z)(K,[{key:"unsubscribe",value:function(){var E;if(!this.closed){var A=this._parentOrParents,k=this._ctorUnsubscribe,I=this._unsubscribe,T=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,A instanceof K)A.remove(this);else if(null!==A)for(var w=0;w<A.length;++w){A[w].remove(this)}if((0,L.m)(I)){k&&(this._unsubscribe=void 0);try{I.call(this)}catch($){E=$ instanceof P.B?y($.errors):[$]}}if((0,M.k)(T))for(var N=-1,R=T.length;++N<R;){var W=T[N];if((0,U.K)(W))try{W.unsubscribe()}catch($){E=E||[],$ instanceof P.B?E=E.concat(y($.errors)):E.push($)}}if(E)throw new P.B(E)}}},{key:"add",value:function(E){var A=E;if(!E)return K.EMPTY;switch(typeof E){case"function":A=new K(E);case"object":if(A===this||A.closed||"function"!=typeof A.unsubscribe)return A;if(this.closed)return A.unsubscribe(),A;if(!(A instanceof K)){var k=A;(A=new K)._subscriptions=[k]}break;default:throw new Error("unrecognized teardown "+E+" added to Subscription.")}var T=A._parentOrParents;if(null===T)A._parentOrParents=this;else if(T instanceof K){if(T===this)return A;A._parentOrParents=[T,this]}else{if(-1!==T.indexOf(this))return A;T.push(this)}var w=this._subscriptions;return null===w?this._subscriptions=[A]:w.push(A),A}},{key:"remove",value:function(E){var A=this._subscriptions;if(A){var k=A.indexOf(E);-1!==k&&A.splice(k,1)}}}]),K}();function y(K){return K.reduce(function(F,E){return F.concat(E instanceof P.B?E.errors:E)},[])}D.EMPTY=((K=new D).closed=!0,K)},2830:function(qe,J,m){"use strict";m.d(J,{v:function(){return Y}});var z=!1,Y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(M){if(M){var U=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+U.stack)}else z&&console.log("RxJS: Back to a better error behavior. Thank you. <3");z=M},get useDeprecatedSynchronousErrorHandling(){return z}}},1177:function(qe,J,m){"use strict";m.d(J,{Ds:function(){return F},IY:function(){return y},ft:function(){return A}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(3489),P=m(7451),D=m(3071),y=function(k){(0,M.Z)(T,k);var I=(0,U.Z)(T);function T(w){var S;return(0,z.Z)(this,T),(S=I.call(this)).parent=w,S}return(0,Y.Z)(T,[{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()}}]),T}(L.L),F=function(k){(0,M.Z)(T,k);var I=(0,U.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T,[{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()}}]),T}(L.L);function A(k,I){if(!I.closed){if(k instanceof P.y)return k.subscribe(I);var T;try{T=(0,D.s)(k)(I)}catch(w){I.error(w)}return T}}},1762:function(qe,J,m){"use strict";m.d(J,{N:function(){return k},c:function(){return A}});var S,z=m(3237),Y=m(1120),M=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(8929),y=m(7451),K=m(3489),F=m(4096),E=m(4327),A=function(S){(0,L.Z)(R,S);var N=(0,P.Z)(R);function R(W,$){var ce;return(0,M.Z)(this,R),(ce=N.call(this)).source=W,ce.subjectFactory=$,ce._refCount=0,ce._isComplete=!1,ce}return(0,U.Z)(R,[{key:"_subscribe",value:function($){return this.getSubject().subscribe($)}},{key:"getSubject",value:function(){var $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var $=this._connection;return $||(this._isComplete=!1,($=this._connection=new F.w).add(this.source.subscribe(new I(this.getSubject(),this))),$.closed&&(this._connection=null,$=F.w.EMPTY)),$}},{key:"refCount",value:function(){return(0,E.x)()(this)}}]),R}(y.y),k={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(S=A.prototype)._subscribe},_isComplete:{value:S._isComplete,writable:!0},getSubject:{value:S.getSubject},connect:{value:S.connect},refCount:{value:S.refCount}},I=function(S){(0,L.Z)(R,S);var N=(0,P.Z)(R);function R(W,$){var ce;return(0,M.Z)(this,R),(ce=N.call(this,W)).connectable=$,ce}return(0,U.Z)(R,[{key:"_error",value:function($){this._unsubscribe(),(0,z.Z)((0,Y.Z)(R.prototype),"_error",this).call(this,$)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,z.Z)((0,Y.Z)(R.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var $=this.connectable;if($){this.connectable=null;var ce=$._connection;$._refCount=0,$._subject=null,$._connection=null,ce&&ce.unsubscribe()}}}]),R}(D.Yc);K.L},3837:function(qe,J,m){"use strict";m.d(J,{e:function(){return y}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),L=m(7451),P=m(9931),D=m(4241),y=function(K){(0,M.Z)(E,K);var F=(0,U.Z)(E);function E(A){var k,I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,z.Z)(this,E),(k=F.call(this)).source=A,k.delayTime=I,k.scheduler=T,(!(0,D.k)(I)||I<0)&&(k.delayTime=0),(!T||"function"!=typeof T.schedule)&&(k.scheduler=P.e),k}return(0,Y.Z)(E,[{key:"_subscribe",value:function(k){var I=this.delayTime,T=this.source;return this.scheduler.schedule(E.dispatch,I,{source:T,subscriber:k})}}],[{key:"create",value:function(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new E(k,I,T)}},{key:"dispatch",value:function(k){var I=k.source,T=k.subscriber;return this.add(I.subscribe(T))}}]),E}(L.y)},6053:function(qe,J,m){"use strict";m.d(J,{Ms:function(){return A},aj:function(){return E}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(2866),P=m(6688),D=m(826),y=m(9054),K=m(3009),F={};function E(){for(var I=arguments.length,T=new Array(I),w=0;w<I;w++)T[w]=arguments[w];var S=void 0,N=void 0;return(0,L.K)(T[T.length-1])&&(N=T.pop()),"function"==typeof T[T.length-1]&&(S=T.pop()),1===T.length&&(0,P.k)(T[0])&&(T=T[0]),(0,K.n)(T,N).lift(new A(S))}var A=function(){function I(T){(0,M.Z)(this,I),this.resultSelector=T}return(0,U.Z)(I,[{key:"call",value:function(w,S){return S.subscribe(new k(w,this.resultSelector))}}]),I}(),k=function(I){(0,z.Z)(w,I);var T=(0,Y.Z)(w);function w(S,N){var R;return(0,M.Z)(this,w),(R=T.call(this,S)).resultSelector=N,R.active=0,R.values=[],R.observables=[],R}return(0,U.Z)(w,[{key:"_next",value:function(N){this.values.push(F),this.observables.push(N)}},{key:"_complete",value:function(){var N=this.observables,R=N.length;if(0===R)this.destination.complete();else{this.active=R,this.toRespond=R;for(var W=0;W<R;W++){var $=N[W];this.add((0,y.D)(this,$,void 0,W))}}}},{key:"notifyComplete",value:function(N){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(N,R,W){var $=this.values,ce=$[W],se=this.toRespond?ce===F?--this.toRespond:this.toRespond:0;$[W]=R,0===se&&(this.resultSelector?this._tryResultSelector($):this.destination.next($.slice()))}},{key:"_tryResultSelector",value:function(N){var R;try{R=this.resultSelector.apply(this,N)}catch(W){return void this.destination.error(W)}this.destination.next(R)}}]),w}(D.L)},1961:function(qe,J,m){"use strict";m.d(J,{z:function(){return M}});var z=m(1086),Y=m(534);function M(){return(0,Y.u)()(z.of.apply(void 0,arguments))}},8514:function(qe,J,m){"use strict";m.d(J,{P:function(){return U}});var z=m(7451),Y=m(3527),M=m(8896);function U(L){return new z.y(function(P){var D;try{D=L()}catch(K){return void P.error(K)}return(D?(0,Y.D)(D):(0,M.c)()).subscribe(P)})}},8452:function(qe,J,m){"use strict";m.d(J,{Ck:function(){return k},Vk:function(){return w},YB:function(){return S},_c:function(){return T},cw:function(){return ot},de:function(){return $},i6:function(){return W},iM:function(){return ee},tB:function(){return I},uX:function(){return R},vD:function(){return ce}});var z=m(3237),Y=m(1120),M=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(797),y=m(7451),K=m(3489);function k(xe){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new W({method:"GET",url:xe,headers:_e})}function I(xe,_e,ke){return new W({method:"POST",url:xe,body:_e,headers:ke})}function T(xe,_e){return new W({method:"DELETE",url:xe,headers:_e})}function w(xe,_e,ke){return new W({method:"PUT",url:xe,body:_e,headers:ke})}function S(xe,_e,ke){return new W({method:"PATCH",url:xe,body:_e,headers:ke})}var N=(0,m(4850).U)(function(xe,_e){return xe.response});function R(xe,_e){return N(new W({method:"GET",url:xe,responseType:"json",headers:_e}))}var xe,W=function(xe){(0,L.Z)(ke,xe);var _e=(0,P.Z)(ke);function ke(Be){var ct;(0,M.Z)(this,ke),ct=_e.call(this);var Mt={async:!0,createXHR:function(){return this.crossDomain?function E(){if(D.J.XMLHttpRequest)return new D.J.XMLHttpRequest;if(D.J.XDomainRequest)return new D.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function A(){if(D.J.XMLHttpRequest)return new D.J.XMLHttpRequest;var xe;try{for(var _e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ke=0;ke<3;ke++)try{if(xe=_e[ke],new D.J.ActiveXObject(xe))break}catch(Be){}return new D.J.ActiveXObject(xe)}catch(Be){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof Be)Mt.url=Be;else for(var Nt in Be)Be.hasOwnProperty(Nt)&&(Mt[Nt]=Be[Nt]);return ct.request=Mt,ct}return(0,U.Z)(ke,[{key:"_subscribe",value:function(ct){return new $(ct,this.request)}}]),ke}(y.y);W.create=((xe=function(ke){return new W(ke)}).get=k,xe.post=I,xe.delete=T,xe.put=w,xe.patch=S,xe.getJSON=R,xe);var $=function(xe){(0,L.Z)(ke,xe);var _e=(0,P.Z)(ke);function ke(Be,ct){var Mt;(0,M.Z)(this,ke),(Mt=_e.call(this,Be)).request=ct,Mt.done=!1;var Nt=ct.headers=ct.headers||{};return!ct.crossDomain&&!Mt.getHeader(Nt,"X-Requested-With")&&(Nt["X-Requested-With"]="XMLHttpRequest"),!Mt.getHeader(Nt,"Content-Type")&&!(D.J.FormData&&ct.body instanceof D.J.FormData)&&void 0!==ct.body&&(Nt["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),ct.body=Mt.serializeBody(ct.body,Mt.getHeader(ct.headers,"Content-Type")),Mt.send(),Mt}return(0,U.Z)(ke,[{key:"next",value:function(ct){this.done=!0;var en,Mt=this.xhr,Nt=this.request,Xt=this.destination;try{en=new ce(ct,Mt,Nt)}catch(qt){return Xt.error(qt)}Xt.next(en)}},{key:"send",value:function(){var ct=this.request,Mt=this.request,Nt=Mt.user,Xt=Mt.method,en=Mt.url,qt=Mt.async,Xe=Mt.password,jt=Mt.headers,rt=Mt.body;try{var vt=this.xhr=ct.createXHR();this.setupEvents(vt,ct),Nt?vt.open(Xt,en,qt,Nt,Xe):vt.open(Xt,en,qt),qt&&(vt.timeout=ct.timeout,vt.responseType=ct.responseType),"withCredentials"in vt&&(vt.withCredentials=!!ct.withCredentials),this.setHeaders(vt,jt),rt?vt.send(rt):vt.send()}catch(nt){this.error(nt)}}},{key:"serializeBody",value:function(ct,Mt){if(!ct||"string"==typeof ct)return ct;if(D.J.FormData&&ct instanceof D.J.FormData)return ct;if(Mt){var Nt=Mt.indexOf(";");-1!==Nt&&(Mt=Mt.substring(0,Nt))}switch(Mt){case"application/x-www-form-urlencoded":return Object.keys(ct).map(function(Xt){return"".concat(encodeURIComponent(Xt),"=").concat(encodeURIComponent(ct[Xt]))}).join("&");case"application/json":return JSON.stringify(ct);default:return ct}}},{key:"setHeaders",value:function(ct,Mt){for(var Nt in Mt)Mt.hasOwnProperty(Nt)&&ct.setRequestHeader(Nt,Mt[Nt])}},{key:"getHeader",value:function(ct,Mt){for(var Nt in ct)if(Nt.toLowerCase()===Mt.toLowerCase())return ct[Nt]}},{key:"setupEvents",value:function(ct,Mt){var Nt=Mt.progressSubscriber;function Xt(rt){var It,vt=Xt.subscriber,nt=Xt.progressSubscriber,Rt=Xt.request;nt&&nt.error(rt);try{It=new ot(this,Rt)}catch(on){It=on}vt.error(It)}if(ct.ontimeout=Xt,Xt.request=Mt,Xt.subscriber=this,Xt.progressSubscriber=Nt,ct.upload&&"withCredentials"in ct){var en,qt;if(Nt)en=function(vt){en.progressSubscriber.next(vt)},D.J.XDomainRequest?ct.onprogress=en:ct.upload.onprogress=en,en.progressSubscriber=Nt;qt=function(vt){var _n,nt=qt,Rt=nt.progressSubscriber,It=nt.subscriber,on=nt.request;Rt&&Rt.error(vt);try{_n=new ee("ajax error",this,on)}catch(An){_n=An}It.error(_n)},ct.onerror=qt,qt.request=Mt,qt.subscriber=this,qt.progressSubscriber=Nt}function Xe(rt){}function jt(rt){var vt=jt.subscriber,nt=jt.progressSubscriber,Rt=jt.request;if(4===this.readyState){var It=1223===this.status?204:this.status,on="text"===this.responseType?this.response||this.responseText:this.response;if(0===It&&(It=on?200:0),It<400)nt&&nt.complete(),vt.next(rt),vt.complete();else{var _n;nt&&nt.error(rt);try{_n=new ee("ajax error "+It,this,Rt)}catch(An){_n=An}vt.error(_n)}}}ct.onreadystatechange=Xe,Xe.subscriber=this,Xe.progressSubscriber=Nt,Xe.request=Mt,ct.onload=jt,jt.subscriber=this,jt.progressSubscriber=Nt,jt.request=Mt}},{key:"unsubscribe",value:function(){var ct=this.done,Mt=this.xhr;!ct&&Mt&&4!==Mt.readyState&&"function"==typeof Mt.abort&&Mt.abort(),(0,z.Z)((0,Y.Z)(ke.prototype),"unsubscribe",this).call(this)}}]),ke}(K.L),ce=(0,U.Z)(function xe(_e,ke,Be){(0,M.Z)(this,xe),this.originalEvent=_e,this.xhr=ke,this.request=Be,this.status=ke.status,this.responseType=ke.responseType||Be.responseType,this.response=ge(this.responseType,ke)}),se=function(){function xe(_e,ke,Be){return Error.call(this),this.message=_e,this.name="AjaxError",this.xhr=ke,this.request=Be,this.status=ke.status,this.responseType=ke.responseType||Be.responseType,this.response=ge(this.responseType,ke),this}return xe.prototype=Object.create(Error.prototype),xe}(),ee=se;function ge(xe,_e){switch(xe){case"json":return function oe(xe){return"response"in xe?xe.responseType?xe.response:JSON.parse(xe.response||xe.responseText||"null"):JSON.parse(xe.responseText||"null")}(_e);case"xml":return _e.responseXML;default:return"response"in _e?_e.response:_e.responseText}}var ot=function Oe(xe,_e){return ee.call(this,"ajax timeout",xe,_e),this.name="AjaxTimeoutError",this}},2741:function(qe,J,m){"use strict";m.d(J,{p:function(){return I}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(8929),y=m(3489),K=m(7451),F=m(4096),E=m(839),A={url:"",deserializer:function(w){return JSON.parse(w.data)},serializer:function(w){return JSON.stringify(w)}},I=function(T){(0,L.Z)(S,T);var w=(0,P.Z)(S);function S(N,R){var W;if((0,z.Z)(this,S),W=w.call(this),N instanceof K.y)W.destination=R,W.source=N;else{var $=W._config=Object.assign({},A);if(W._output=new D.xQ,"string"==typeof N)$.url=N;else for(var ce in N)N.hasOwnProperty(ce)&&($[ce]=N[ce]);if(!$.WebSocketCtor&&WebSocket)$.WebSocketCtor=WebSocket;else if(!$.WebSocketCtor)throw new Error("no WebSocket constructor can be found");W.destination=new E.t}return W}return(0,Y.Z)(S,[{key:"lift",value:function(R){var W=new S(this._config,this.destination);return W.operator=R,W.source=this,W}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new E.t),this._output=new D.xQ}},{key:"multiplex",value:function(R,W,$){var ce=this;return new K.y(function(se){try{ce.next(R())}catch(oe){se.error(oe)}var ee=ce.subscribe(function(oe){try{$(oe)&&se.next(oe)}catch(ge){se.error(ge)}},function(oe){return se.error(oe)},function(){return se.complete()});return function(){try{ce.next(W())}catch(oe){se.error(oe)}ee.unsubscribe()}})}},{key:"_connectSocket",value:function(){var R=this,W=this._config,$=W.WebSocketCtor,ce=W.protocol,se=W.url,ee=W.binaryType,oe=this._output,ge=null;try{ge=ce?new $(se,ce):new $(se),this._socket=ge,ee&&(this._socket.binaryType=ee)}catch(ot){return void oe.error(ot)}var Oe=new F.w(function(){R._socket=null,ge&&1===ge.readyState&&ge.close()});ge.onopen=function(ot){if(!R._socket)return ge.close(),void R._resetState();var _e=R._config.openObserver;_e&&_e.next(ot);var ke=R.destination;R.destination=y.L.create(function(Be){if(1===ge.readyState)try{var ct=R._config.serializer;ge.send(ct(Be))}catch(Mt){R.destination.error(Mt)}},function(Be){var ct=R._config.closingObserver;ct&&ct.next(void 0),Be&&Be.code?ge.close(Be.code,Be.reason):oe.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),R._resetState()},function(){var Be=R._config.closingObserver;Be&&Be.next(void 0),ge.close(),R._resetState()}),ke&&ke instanceof E.t&&Oe.add(ke.subscribe(R.destination))},ge.onerror=function(ot){R._resetState(),oe.error(ot)},ge.onclose=function(ot){R._resetState();var xe=R._config.closeObserver;xe&&xe.next(ot),ot.wasClean?oe.complete():oe.error(ot)},ge.onmessage=function(ot){try{var xe=R._config.deserializer;oe.next(xe(ot))}catch(_e){oe.error(_e)}}}},{key:"_subscribe",value:function(R){var W=this,$=this.source;return $?$.subscribe(R):(this._socket||this._connectSocket(),this._output.subscribe(R),R.add(function(){var ce=W._socket;0===W._output.observers.length&&(ce&&1===ce.readyState&&ce.close(),W._resetState())}),R)}},{key:"unsubscribe",value:function(){var R=this._socket;R&&1===R.readyState&&R.close(),this._resetState(),(0,M.Z)((0,U.Z)(S.prototype),"unsubscribe",this).call(this)}}]),S}(D.ug)},8059:function(qe,J,m){"use strict";m.d(J,{h:function(){return Y}});var Y=m(8452).i6.create},7623:function(qe,J,m){"use strict";m.d(J,{j:function(){return Y}});var z=m(2741);function Y(M){return new z.p(M)}},8896:function(qe,J,m){"use strict";m.d(J,{E:function(){return Y},c:function(){return M}});var z=m(7451),Y=new z.y(function(L){return L.complete()});function M(L){return L?function U(L){return new z.y(function(P){return L.schedule(function(){return P.complete()})})}(L):Y}},567:function(qe,J,m){"use strict";m.d(J,{D:function(){return D}});var z=m(4902),Y=m(7451),M=m(6688),U=m(4850),L=m(7830),P=m(3527);function D(){for(var K=arguments.length,F=new Array(K),E=0;E<K;E++)F[E]=arguments[E];if(1===F.length){var A=F[0];if((0,M.k)(A))return y(A,null);if((0,L.K)(A)&&Object.getPrototypeOf(A)===Object.prototype){var k=Object.keys(A);return y(k.map(function(T){return A[T]}),k)}}if("function"==typeof F[F.length-1]){var I=F.pop();return y(F=1===F.length&&(0,M.k)(F[0])?F[0]:F,null).pipe((0,U.U)(function(T){return I.apply(void 0,(0,z.Z)(T))}))}return y(F,null)}function y(K,F){return new Y.y(function(E){var A=K.length;if(0!==A)for(var k=new Array(A),I=0,T=0,w=function(R){var W=(0,P.D)(K[R]),$=!1;E.add(W.subscribe({next:function(se){$||($=!0,T++),k[R]=se},error:function(se){return E.error(se)},complete:function(){(++I===A||!$)&&(T===A&&E.next(F?F.reduce(function(se,ee,oe){return se[ee]=k[oe],se},{}):k),E.complete())}}))},S=0;S<A;S++)w(S);else E.complete()})}},3527:function(qe,J,m){"use strict";m.d(J,{D:function(){return U}});var z=m(7451),Y=m(3071),M=m(6266);function U(L,P){return P?(0,M.x)(L,P):L instanceof z.y?L:new z.y((0,Y.s)(L))}},3009:function(qe,J,m){"use strict";m.d(J,{n:function(){return U}});var z=m(7451),Y=m(3650),M=m(6454);function U(L,P){return P?(0,M.r)(L,P):new z.y((0,Y.V)(L))}},3753:function(qe,J,m){"use strict";m.d(J,{R:function(){return D}});var z=m(4902),Y=m(7451),M=m(6688),U=m(7043),L=m(4850);Object.prototype.toString;function D(A,k,I,T){return(0,U.m)(I)&&(T=I,I=void 0),T?D(A,k,I).pipe((0,L.U)(function(w){return(0,M.k)(w)?T.apply(void 0,(0,z.Z)(w)):T(w)})):new Y.y(function(w){y(A,k,function S(N){arguments.length>1?w.next(Array.prototype.slice.call(arguments)):w.next(N)},w,I)})}function y(A,k,I,T,w){var S;if(function E(A){return A&&"function"==typeof A.addEventListener&&"function"==typeof A.removeEventListener}(A)){var N=A;A.addEventListener(k,I,w),S=function(){return N.removeEventListener(k,I,w)}}else if(function F(A){return A&&"function"==typeof A.on&&"function"==typeof A.off}(A)){var R=A;A.on(k,I),S=function(){return R.off(k,I)}}else if(function K(A){return A&&"function"==typeof A.addListener&&"function"==typeof A.removeListener}(A)){var W=A;A.addListener(k,I),S=function(){return W.removeListener(k,I)}}else{if(!A||!A.length)throw new TypeError("Invalid event target");for(var $=0,ce=A.length;$<ce;$++)y(A[$],k,I,T,w)}T.add(S)}},1715:function(qe,J,m){"use strict";m.d(J,{F:function(){return U}});var z=m(7451),Y=m(353),M=m(4241);function U(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P;return(!(0,M.k)(P)||P<0)&&(P=0),(!D||"function"!=typeof D.schedule)&&(D=Y.P),new z.y(function(y){return y.add(D.schedule(L,P,{subscriber:y,counter:0,period:P})),y})}function L(P){var D=P.subscriber,y=P.counter,K=P.period;D.next(y),this.schedule({subscriber:D,counter:y+1,period:K},K)}},6787:function(qe,J,m){"use strict";m.d(J,{T:function(){return L}});var z=m(7451),Y=m(2866),M=m(9146),U=m(3009);function L(){for(var P=Number.POSITIVE_INFINITY,D=null,y=arguments.length,K=new Array(y),F=0;F<y;F++)K[F]=arguments[F];var E=K[K.length-1];return(0,Y.K)(E)?(D=K.pop(),K.length>1&&"number"==typeof K[K.length-1]&&(P=K.pop())):"number"==typeof E&&(P=K.pop()),null===D&&1===K.length&&K[0]instanceof z.y?K[0]:(0,M.J)(P)((0,U.n)(K,D))}},1086:function(qe,J,m){"use strict";m.d(J,{of:function(){return U}});var z=m(2866),Y=m(3009),M=m(6454);function U(){for(var L=arguments.length,P=new Array(L),D=0;D<L;D++)P[D]=arguments[D];var y=P[P.length-1];return(0,z.K)(y)?(P.pop(),(0,M.r)(P,y)):(0,Y.n)(P)}},1946:function(qe,J,m){"use strict";m.d(J,{S3:function(){return K}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(6688),P=m(3009),D=m(826),y=m(9054);function K(){for(var A=arguments.length,k=new Array(A),I=0;I<A;I++)k[I]=arguments[I];if(1===k.length){if(!(0,L.k)(k[0]))return k[0];k=k[0]}return(0,P.n)(k,void 0).lift(new F)}var F=function(){function A(){(0,M.Z)(this,A)}return(0,U.Z)(A,[{key:"call",value:function(I,T){return T.subscribe(new E(I))}}]),A}(),E=function(A){(0,z.Z)(I,A);var k=(0,Y.Z)(I);function I(T){var w;return(0,M.Z)(this,I),(w=k.call(this,T)).hasFirst=!1,w.observables=[],w.subscriptions=[],w}return(0,U.Z)(I,[{key:"_next",value:function(w){this.observables.push(w)}},{key:"_complete",value:function(){var w=this.observables,S=w.length;if(0===S)this.destination.complete();else{for(var N=0;N<S&&!this.hasFirst;N++){var R=w[N],W=(0,y.D)(this,R,void 0,N);this.subscriptions&&this.subscriptions.push(W),this.add(W)}this.observables=null}}},{key:"notifyNext",value:function(w,S,N){if(!this.hasFirst){this.hasFirst=!0;for(var R=0;R<this.subscriptions.length;R++)if(R!==N){var W=this.subscriptions[R];W.unsubscribe(),this.remove(W)}this.subscriptions=null}this.destination.next(S)}}]),I}(D.L)},3103:function(qe,J,m){"use strict";m.d(J,{W:function(){return M},w:function(){return Y}});var z=m(7451);function Y(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,L=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new z.y(function(D){void 0===L&&(L=U,U=0);var y=0,K=U;if(P)return P.schedule(M,0,{index:y,count:L,start:U,subscriber:D});for(;;){if(y++>=L){D.complete();break}if(D.next(K++),D.closed)break}})}function M(U){var L=U.start,P=U.index,D=U.count,y=U.subscriber;P>=D?y.complete():(y.next(L),!y.closed&&(U.index=P+1,U.start=L+1,this.schedule(U)))}},1737:function(qe,J,m){"use strict";m.d(J,{_:function(){return Y}});var z=m(7451);function Y(U,L){return L?new z.y(function(P){return L.schedule(M,0,{error:U,subscriber:P})}):new z.y(function(P){return P.error(U)})}function M(U){var L=U.error;U.subscriber.error(L)}},8723:function(qe,J,m){"use strict";m.d(J,{H:function(){return L}});var z=m(7451),Y=m(353),M=m(4241),U=m(2866);function L(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y=arguments.length>1?arguments[1]:void 0,K=arguments.length>2?arguments[2]:void 0,F=-1;return(0,M.k)(y)?F=Number(y)<1?1:Number(y):(0,U.K)(y)&&(K=y),(0,U.K)(K)||(K=Y.P),new z.y(function(E){var A=(0,M.k)(D)?D:+D-K.now();return K.schedule(P,A,{index:0,period:F,subscriber:E})})}function P(D){var y=D.index,K=D.period,F=D.subscriber;if(F.next(y),!F.closed){if(-1===K)return F.complete();D.index=y+1,this.schedule(D,K)}}},1746:function(qe,J,m){"use strict";m.d(J,{$R:function(){return F},mx:function(){return E}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3009),P=m(6688),D=m(3489),y=m(5430),K=m(1177);function F(){for(var w=arguments.length,S=new Array(w),N=0;N<w;N++)S[N]=arguments[N];var R=S[S.length-1];return"function"==typeof R&&S.pop(),(0,L.n)(S,void 0).lift(new E(R))}var E=function(){function w(S){(0,M.Z)(this,w),this.resultSelector=S}return(0,U.Z)(w,[{key:"call",value:function(N,R){return R.subscribe(new A(N,this.resultSelector))}}]),w}(),A=function(w){(0,z.Z)(N,w);var S=(0,Y.Z)(N);function N(R,W){var $;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,M.Z)(this,N),($=S.call(this,R)).resultSelector=W,$.iterators=[],$.active=0,$.resultSelector="function"==typeof W?W:void 0,$}return(0,U.Z)(N,[{key:"_next",value:function(W){var $=this.iterators;(0,P.k)(W)?$.push(new I(W)):"function"==typeof W[y.hZ]?$.push(new k(W[y.hZ]())):$.push(new T(this.destination,this,W))}},{key:"_complete",value:function(){var W=this.iterators,$=W.length;if(this.unsubscribe(),0!==$){this.active=$;for(var ce=0;ce<$;ce++){var se=W[ce];if(se.stillUnsubscribed)this.destination.add(se.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 W=this.iterators,$=W.length,ce=this.destination,se=0;se<$;se++){var ee=W[se];if("function"==typeof ee.hasValue&&!ee.hasValue())return}for(var oe=!1,ge=[],Oe=0;Oe<$;Oe++){var ot=W[Oe],xe=ot.next();if(ot.hasCompleted()&&(oe=!0),xe.done)return void ce.complete();ge.push(xe.value)}this.resultSelector?this._tryresultSelector(ge):ce.next(ge),oe&&ce.complete()}},{key:"_tryresultSelector",value:function(W){var $;try{$=this.resultSelector.apply(this,W)}catch(ce){return void this.destination.error(ce)}this.destination.next($)}}]),N}(D.L),k=function(){function w(S){(0,M.Z)(this,w),this.iterator=S,this.nextResult=S.next()}return(0,U.Z)(w,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var N=this.nextResult;return this.nextResult=this.iterator.next(),N}},{key:"hasCompleted",value:function(){var N=this.nextResult;return Boolean(N&&N.done)}}]),w}(),I=function(){function w(S){(0,M.Z)(this,w),this.array=S,this.index=0,this.length=0,this.length=S.length}return(0,U.Z)(w,[{key:y.hZ,value:function(){return this}},{key:"next",value:function(N){var R=this.index++,W=this.array;return R<this.length?{value:W[R],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}}]),w}(),T=function(w){(0,z.Z)(N,w);var S=(0,Y.Z)(N);function N(R,W,$){var ce;return(0,M.Z)(this,N),(ce=S.call(this,R)).parent=W,ce.observable=$,ce.stillUnsubscribed=!0,ce.buffer=[],ce.isComplete=!1,ce}return(0,U.Z)(N,[{key:y.hZ,value:function(){return this}},{key:"next",value:function(){var W=this.buffer;return 0===W.length&&this.isComplete?{value:null,done:!0}:{value:W.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(W){this.buffer.push(W),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,K.ft)(this.observable,new K.IY(this))}}]),N}(K.Ds)},384:function(qe,J,m){"use strict";m.d(J,{U:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(1177);function P(K){return function(E){return E.lift(new D(K))}}var D=function(){function K(F){(0,M.Z)(this,K),this.durationSelector=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.durationSelector))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k){var I;return(0,M.Z)(this,E),(I=F.call(this,A)).durationSelector=k,I.hasValue=!1,I}return(0,U.Z)(E,[{key:"_next",value:function(k){if(this.value=k,this.hasValue=!0,!this.throttled){var I;try{I=(0,this.durationSelector)(k)}catch(S){return this.destination.error(S)}var w=(0,L.ft)(I,new L.IY(this));!w||w.closed?this.clearThrottle():this.add(this.throttled=w)}}},{key:"clearThrottle",value:function(){var k=this.value,I=this.hasValue,T=this.throttled;T&&(this.remove(T),this.throttled=void 0,T.unsubscribe()),I&&(this.value=void 0,this.hasValue=!1,this.destination.next(k))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),E}(L.Ds)},7568:function(qe,J,m){"use strict";m.d(J,{e:function(){return U}});var z=m(353),Y=m(384),M=m(8723);function U(L){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.P;return(0,Y.U)(function(){return(0,M.H)(L,P)})}},7221:function(qe,J,m){"use strict";m.d(J,{K:function(){return y}});var z=m(3237),Y=m(1120),M=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(1177);function y(E){return function(k){var I=new K(E),T=k.lift(I);return I.caught=T}}var K=function(){function E(A){(0,L.Z)(this,E),this.selector=A}return(0,P.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.selector,this.caught))}}]),E}(),F=function(E){(0,M.Z)(k,E);var A=(0,U.Z)(k);function k(I,T,w){var S;return(0,L.Z)(this,k),(S=A.call(this,I)).selector=T,S.caught=w,S}return(0,P.Z)(k,[{key:"error",value:function(T){if(!this.isStopped){var w;try{w=this.selector(T,this.caught)}catch(R){return void(0,z.Z)((0,Y.Z)(k.prototype),"error",this).call(this,R)}this._unsubscribeAndRecycle();var S=new D.IY(this);this.add(S);var N=(0,D.ft)(w,S);N!==S&&this.add(N)}}}]),k}(D.Ds)},534:function(qe,J,m){"use strict";m.d(J,{u:function(){return Y}});var z=m(9146);function Y(){return(0,z.J)(1)}},1406:function(qe,J,m){"use strict";m.d(J,{b:function(){return Y}});var z=m(1709);function Y(M,U){return(0,z.zg)(M,U,1)}},3906:function(qe,J,m){"use strict";m.d(J,{Q:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K,F))}}var D=function(){function K(F,E){(0,M.Z)(this,K),this.predicate=F,this.source=E}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.predicate,this.source))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k,I){var T;return(0,M.Z)(this,E),(T=F.call(this,A)).predicate=k,T.source=I,T.count=0,T.index=0,T}return(0,U.Z)(E,[{key:"_next",value:function(k){this.predicate?this._tryPredicate(k):this.count++}},{key:"_tryPredicate",value:function(k){var I;try{I=this.predicate(k,this.index++,this.source)}catch(T){return void this.destination.error(T)}I&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),E}(L.L)},13:function(qe,J,m){"use strict";m.d(J,{b:function(){return D}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489),P=m(353);function D(E){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(k){return k.lift(new y(E,A))}}var y=function(){function E(A,k){(0,M.Z)(this,E),this.dueTime=A,this.scheduler=k}return(0,U.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.dueTime,this.scheduler))}}]),E}(),K=function(E){(0,z.Z)(k,E);var A=(0,Y.Z)(k);function k(I,T,w){var S;return(0,M.Z)(this,k),(S=A.call(this,I)).dueTime=T,S.scheduler=w,S.debouncedSubscription=null,S.lastValue=null,S.hasValue=!1,S}return(0,U.Z)(k,[{key:"_next",value:function(T){this.clearDebounce(),this.lastValue=T,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(F,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var T=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(T)}}},{key:"clearDebounce",value:function(){var T=this.debouncedSubscription;null!==T&&(this.remove(T),T.unsubscribe(),this.debouncedSubscription=null)}}]),k}(L.L);function F(E){E.debouncedNext()}},7314:function(qe,J,m){"use strict";m.d(J,{d:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,M.Z)(this,K),this.defaultValue=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.defaultValue))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k){var I;return(0,M.Z)(this,E),(I=F.call(this,A)).defaultValue=k,I.isEmpty=!0,I}return(0,U.Z)(E,[{key:"_next",value:function(k){this.isEmpty=!1,this.destination.next(k)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),E}(L.L)},943:function(qe,J,m){"use strict";m.d(J,{g:function(){return K}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(353),P=m(2697),D=m(3489),y=m(9312);function K(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.P,T=(0,P.J)(k),w=T?+k-I.now():Math.abs(k);return function(S){return S.lift(new F(w,I))}}var F=function(){function k(I,T){(0,M.Z)(this,k),this.delay=I,this.scheduler=T}return(0,U.Z)(k,[{key:"call",value:function(T,w){return w.subscribe(new E(T,this.delay,this.scheduler))}}]),k}(),E=function(k){(0,z.Z)(T,k);var I=(0,Y.Z)(T);function T(w,S,N){var R;return(0,M.Z)(this,T),(R=I.call(this,w)).delay=S,R.scheduler=N,R.queue=[],R.active=!1,R.errored=!1,R}return(0,U.Z)(T,[{key:"_schedule",value:function(S){this.active=!0,this.destination.add(S.schedule(T.dispatch,this.delay,{source:this,destination:this.destination,scheduler:S}))}},{key:"scheduleNotification",value:function(S){if(!0!==this.errored){var N=this.scheduler,R=new A(N.now()+this.delay,S);this.queue.push(R),!1===this.active&&this._schedule(N)}}},{key:"_next",value:function(S){this.scheduleNotification(y.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(y.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){for(var N=S.source,R=N.queue,W=S.scheduler,$=S.destination;R.length>0&&R[0].time-W.now()<=0;)R.shift().notification.observe($);if(R.length>0){var ce=Math.max(0,R[0].time-W.now());this.schedule(S,ce)}else this.unsubscribe(),N.active=!1}}]),T}(D.L),A=(0,U.Z)(function k(I,T){(0,M.Z)(this,k),this.time=I,this.notification=T})},5778:function(qe,J,m){"use strict";m.d(J,{x:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K,F){return function(E){return E.lift(new D(K,F))}}var D=function(){function K(F,E){(0,M.Z)(this,K),this.compare=F,this.keySelector=E}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.compare,this.keySelector))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k,I){var T;return(0,M.Z)(this,E),(T=F.call(this,A)).keySelector=I,T.hasKey=!1,"function"==typeof k&&(T.compare=k),T}return(0,U.Z)(E,[{key:"compare",value:function(k,I){return k===I}},{key:"_next",value:function(k){var I;try{var T=this.keySelector;I=T?T(k):k}catch(N){return this.destination.error(N)}var w=!1;if(this.hasKey)try{w=(0,this.compare)(this.key,I)}catch(N){return this.destination.error(N)}else this.hasKey=!0;w||(this.key=I,this.destination.next(k))}}]),E}(L.L)},9664:function(qe,J,m){"use strict";m.d(J,{h:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K,F){return function(A){return A.lift(new D(K,F))}}var D=function(){function K(F,E){(0,M.Z)(this,K),this.predicate=F,this.thisArg=E}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.predicate,this.thisArg))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k,I){var T;return(0,M.Z)(this,E),(T=F.call(this,A)).predicate=k,T.thisArg=I,T.count=0,T}return(0,U.Z)(E,[{key:"_next",value:function(k){var I;try{I=this.predicate.call(this.thisArg,k,this.count++)}catch(T){return void this.destination.error(T)}I&&this.destination.next(k)}}]),E}(L.L)},537:function(qe,J,m){"use strict";m.d(J,{x:function(){return D}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489),P=m(4096);function D(F){return function(E){return E.lift(new y(F))}}var y=function(){function F(E){(0,M.Z)(this,F),this.callback=E}return(0,U.Z)(F,[{key:"call",value:function(A,k){return k.subscribe(new K(A,this.callback))}}]),F}(),K=function(F){(0,z.Z)(A,F);var E=(0,Y.Z)(A);function A(k,I){var T;return(0,M.Z)(this,A),(T=E.call(this,k)).add(new P.w(I)),T}return(0,U.Z)(A)}(L.L)},7224:function(qe,J,m){"use strict";m.d(J,{P:function(){return D}});var z=m(4450),Y=m(9664),M=m(2986),U=m(7314),L=m(4907),P=m(5379);function D(y,K){var F=arguments.length>=2;return function(E){return E.pipe(y?(0,Y.h)(function(A,k){return y(A,k,E)}):P.y,(0,M.q)(1),F?(0,U.d)(K):(0,L.T)(function(){return new z.K}))}}},4002:function(qe,J,m){"use strict";m.d(J,{T:function(){return T},v:function(){return E}});var z=m(3237),Y=m(1120),M=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(3489),y=m(4096),K=m(7451),F=m(8929);function E(S,N,R,W){return function($){return $.lift(new A(S,N,R,W))}}var A=function(){function S(N,R,W,$){(0,L.Z)(this,S),this.keySelector=N,this.elementSelector=R,this.durationSelector=W,this.subjectSelector=$}return(0,P.Z)(S,[{key:"call",value:function(R,W){return W.subscribe(new k(R,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),S}(),k=function(S){(0,M.Z)(R,S);var N=(0,U.Z)(R);function R(W,$,ce,se,ee){var oe;return(0,L.Z)(this,R),(oe=N.call(this,W)).keySelector=$,oe.elementSelector=ce,oe.durationSelector=se,oe.subjectSelector=ee,oe.groups=null,oe.attemptedToUnsubscribe=!1,oe.count=0,oe}return(0,P.Z)(R,[{key:"_next",value:function($){var ce;try{ce=this.keySelector($)}catch(se){return void this.error(se)}this._group($,ce)}},{key:"_group",value:function($,ce){var se=this.groups;se||(se=this.groups=new Map);var oe,ee=se.get(ce);if(this.elementSelector)try{oe=this.elementSelector($)}catch(ot){this.error(ot)}else oe=$;if(!ee){ee=this.subjectSelector?this.subjectSelector():new F.xQ,se.set(ce,ee);var ge=new T(ce,ee,this);if(this.destination.next(ge),this.durationSelector){var Oe;try{Oe=this.durationSelector(new T(ce,ee))}catch(ot){return void this.error(ot)}this.add(Oe.subscribe(new I(ce,ee,this)))}}ee.closed||ee.next(oe)}},{key:"_error",value:function($){var ce=this.groups;ce&&(ce.forEach(function(se,ee){se.error($)}),ce.clear()),this.destination.error($)}},{key:"_complete",value:function(){var $=this.groups;$&&($.forEach(function(ce,se){ce.complete()}),$.clear()),this.destination.complete()}},{key:"removeGroup",value:function($){this.groups.delete($)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,z.Z)((0,Y.Z)(R.prototype),"unsubscribe",this).call(this))}}]),R}(D.L),I=function(S){(0,M.Z)(R,S);var N=(0,U.Z)(R);function R(W,$,ce){var se;return(0,L.Z)(this,R),(se=N.call(this,$)).key=W,se.group=$,se.parent=ce,se}return(0,P.Z)(R,[{key:"_next",value:function($){this.complete()}},{key:"_unsubscribe",value:function(){var $=this.parent,ce=this.key;this.key=this.parent=null,$&&$.removeGroup(ce)}}]),R}(D.L),T=function(S){(0,M.Z)(R,S);var N=(0,U.Z)(R);function R(W,$,ce){var se;return(0,L.Z)(this,R),(se=N.call(this)).key=W,se.groupSubject=$,se.refCountSubscription=ce,se}return(0,P.Z)(R,[{key:"_subscribe",value:function($){var ce=new y.w,se=this.refCountSubscription,ee=this.groupSubject;return se&&!se.closed&&ce.add(new w(se)),ce.add(ee.subscribe($)),ce}}]),R}(K.y),w=function(S){(0,M.Z)(R,S);var N=(0,U.Z)(R);function R(W){var $;return(0,L.Z)(this,R),($=N.call(this)).parent=W,W.count++,$}return(0,P.Z)(R,[{key:"unsubscribe",value:function(){var $=this.parent;!$.closed&&!this.closed&&((0,z.Z)((0,Y.Z)(R.prototype),"unsubscribe",this).call(this),$.count-=1,0===$.count&&$.attemptedToUnsubscribe&&$.unsubscribe())}}]),R}(y.w)},8127:function(qe,J,m){"use strict";m.d(J,{Z:function(){return D}});var z=m(4450),Y=m(9664),M=m(2821),U=m(4907),L=m(7314),P=m(5379);function D(y,K){var F=arguments.length>=2;return function(E){return E.pipe(y?(0,Y.h)(function(A,k){return y(A,k,E)}):P.y,(0,M.h)(1),F?(0,L.d)(K):(0,U.T)(function(){return new z.K}))}}},4850:function(qe,J,m){"use strict";m.d(J,{U:function(){return D}});var z=m(7326),Y=m(136),M=m(9388),U=m(5671),L=m(3144),P=m(3489);function D(F,E){return function(k){if("function"!=typeof F)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return k.lift(new y(F,E))}}var y=function(){function F(E,A){(0,U.Z)(this,F),this.project=E,this.thisArg=A}return(0,L.Z)(F,[{key:"call",value:function(A,k){return k.subscribe(new K(A,this.project,this.thisArg))}}]),F}(),K=function(F){(0,Y.Z)(A,F);var E=(0,M.Z)(A);function A(k,I,T){var w;return(0,U.Z)(this,A),(w=E.call(this,k)).project=I,w.count=0,w.thisArg=T||(0,z.Z)(w),w}return(0,L.Z)(A,[{key:"_next",value:function(I){var T;try{T=this.project.call(this.thisArg,I,this.count++)}catch(w){return void this.destination.error(w)}this.destination.next(T)}}]),A}(P.L)},7604:function(qe,J,m){"use strict";m.d(J,{h:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,M.Z)(this,K),this.value=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.value))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k){var I;return(0,M.Z)(this,E),(I=F.call(this,A)).value=k,I}return(0,U.Z)(E,[{key:"_next",value:function(k){this.destination.next(this.value)}}]),E}(L.L)},9146:function(qe,J,m){"use strict";m.d(J,{J:function(){return M}});var z=m(1709),Y=m(5379);function M(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,z.zg)(Y.y,U)}},1709:function(qe,J,m){"use strict";m.d(J,{VS:function(){return E},zg:function(){return y}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(4850),P=m(3527),D=m(1177);function y(A,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof k?function(T){return T.pipe(y(function(w,S){return(0,P.D)(A(w,S)).pipe((0,L.U)(function(N,R){return k(w,N,S,R)}))},I))}:("number"==typeof k&&(I=k),function(T){return T.lift(new K(A,I))})}var K=function(){function A(k){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,M.Z)(this,A),this.project=k,this.concurrent=I}return(0,U.Z)(A,[{key:"call",value:function(I,T){return T.subscribe(new F(I,this.project,this.concurrent))}}]),A}(),F=function(A){(0,z.Z)(I,A);var k=(0,Y.Z)(I);function I(T,w){var S,N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,M.Z)(this,I),(S=k.call(this,T)).project=w,S.concurrent=N,S.hasCompleted=!1,S.buffer=[],S.active=0,S.index=0,S}return(0,U.Z)(I,[{key:"_next",value:function(w){this.active<this.concurrent?this._tryNext(w):this.buffer.push(w)}},{key:"_tryNext",value:function(w){var S,N=this.index++;try{S=this.project(w,N)}catch(R){return void this.destination.error(R)}this.active++,this._innerSub(S)}},{key:"_innerSub",value:function(w){var S=new D.IY(this),N=this.destination;N.add(S);var R=(0,D.ft)(w,S);R!==S&&N.add(R)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(w){this.destination.next(w)}},{key:"notifyComplete",value:function(){var w=this.buffer;this.active--,w.length>0?this._next(w.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),I}(D.Ds),E=y},2536:function(qe,J,m){"use strict";m.d(J,{O:function(){return U}});var z=m(5671),Y=m(3144),M=m(1762);function U(P,D){return function(K){var F;if(F="function"==typeof P?P:function(){return P},"function"==typeof D)return K.lift(new L(F,D));var E=Object.create(K,M.N);return E.source=K,E.subjectFactory=F,E}}var L=function(){function P(D,y){(0,z.Z)(this,P),this.subjectFactory=D,this.selector=y}return(0,Y.Z)(P,[{key:"call",value:function(y,K){var F=this.selector,E=this.subjectFactory(),A=F(E).subscribe(y);return A.add(K.subscribe(E)),A}}]),P}()},7770:function(qe,J,m){"use strict";m.d(J,{QV:function(){return D},ht:function(){return K}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489),P=m(9312);function D(E){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(I){return I.lift(new y(E,A))}}var y=function(){function E(A){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,M.Z)(this,E),this.scheduler=A,this.delay=k}return(0,U.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.scheduler,this.delay))}}]),E}(),K=function(E){(0,z.Z)(k,E);var A=(0,Y.Z)(k);function k(I,T){var w,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,M.Z)(this,k),(w=A.call(this,I)).scheduler=T,w.delay=S,w}return(0,U.Z)(k,[{key:"scheduleMessage",value:function(T){this.destination.add(this.scheduler.schedule(k.dispatch,this.delay,new F(T,this.destination)))}},{key:"_next",value:function(T){this.scheduleMessage(P.P.createNext(T))}},{key:"_error",value:function(T){this.scheduleMessage(P.P.createError(T)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){var w=T.notification,S=T.destination;w.observe(S),this.unsubscribe()}}]),k}(L.L),F=(0,U.Z)(function E(A,k){(0,M.Z)(this,E),this.notification=A,this.destination=k})},519:function(qe,J,m){"use strict";m.d(J,{G:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(){return function(K){return K.lift(new D)}}var D=function(){function K(){(0,M.Z)(this,K)}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A){var k;return(0,M.Z)(this,E),(k=F.call(this,A)).hasPrev=!1,k}return(0,U.Z)(E,[{key:"_next",value:function(k){var I;this.hasPrev?I=[this.prev,k]:this.hasPrev=!0,this.prev=k,I&&this.destination.next(I)}}]),E}(L.L)},4327:function(qe,J,m){"use strict";m.d(J,{x:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(){return function(F){return F.lift(new D(F))}}var D=function(){function K(F){(0,M.Z)(this,K),this.connectable=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){var k=this.connectable;k._refCount++;var I=new y(E,k),T=A.subscribe(I);return I.closed||(I.connection=k.connect()),T}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k){var I;return(0,M.Z)(this,E),(I=F.call(this,A)).connectable=k,I}return(0,U.Z)(E,[{key:"_unsubscribe",value:function(){var k=this.connectable;if(k){this.connectable=null;var I=k._refCount;if(I<=0)this.connection=null;else if(k._refCount=I-1,I>1)this.connection=null;else{var T=this.connection,w=k._connection;this.connection=null,w&&(!T||w===T)&&w.unsubscribe()}}else this.connection=null}}]),E}(L.L)},2014:function(qe,J,m){"use strict";m.d(J,{R:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K,F){var E=!1;return arguments.length>=2&&(E=!0),function(k){return k.lift(new D(K,F,E))}}var D=function(){function K(F,E){var A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,M.Z)(this,K),this.accumulator=F,this.seed=E,this.hasSeed=A}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.accumulator,this.seed,this.hasSeed))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k,I,T){var w;return(0,M.Z)(this,E),(w=F.call(this,A)).accumulator=k,w._seed=I,w.hasSeed=T,w.index=0,w}return(0,U.Z)(E,[{key:"seed",get:function(){return this._seed},set:function(k){this.hasSeed=!0,this._seed=k}},{key:"_next",value:function(k){if(this.hasSeed)return this._tryNext(k);this.seed=k,this.destination.next(k)}},{key:"_tryNext",value:function(k){var T,I=this.index++;try{T=this.accumulator(this.seed,k,I)}catch(w){this.destination.error(w)}this.seed=T,this.destination.next(T)}}]),E}(L.L)},8117:function(qe,J,m){"use strict";m.d(J,{B:function(){return L}});var z=m(2536),Y=m(4327),M=m(8929);function U(){return new M.xQ}function L(){return function(P){return(0,Y.x)()((0,z.O)(U)(P))}}},5154:function(qe,J,m){"use strict";m.d(J,{d:function(){return Y}});var z=m(839);function Y(U,L,P){var D;return D=U&&"object"==typeof U?U:{bufferSize:U,windowTime:L,refCount:!1,scheduler:P},function(y){return y.lift(function M(U){var E,k,L=U.bufferSize,P=void 0===L?Number.POSITIVE_INFINITY:L,D=U.windowTime,y=void 0===D?Number.POSITIVE_INFINITY:D,K=U.refCount,F=U.scheduler,A=0,I=!1,T=!1;return function(S){var N;A++,!E||I?(I=!1,E=new z.t(P,y,F),N=E.subscribe(this),k=S.subscribe({next:function(W){E.next(W)},error:function(W){I=!0,E.error(W)},complete:function(){T=!0,k=void 0,E.complete()}}),T&&(k=void 0)):N=E.subscribe(this),this.add(function(){A--,N.unsubscribe(),N=void 0,k&&!T&&K&&0===A&&(k.unsubscribe(),k=void 0,E=void 0)})}}(D))}}},1307:function(qe,J,m){"use strict";m.d(J,{T:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,M.Z)(this,K),this.total=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.total))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k){var I;return(0,M.Z)(this,E),(I=F.call(this,A)).total=k,I.count=0,I}return(0,U.Z)(E,[{key:"_next",value:function(k){++this.count>this.total&&this.destination.next(k)}}]),E}(L.L)},1059:function(qe,J,m){"use strict";m.d(J,{O:function(){return M}});var z=m(1961),Y=m(2866);function M(){for(var U=arguments.length,L=new Array(U),P=0;P<U;P++)L[P]=arguments[P];var D=L[L.length-1];return(0,Y.K)(D)?(L.pop(),function(y){return(0,z.z)(L,y,D)}):function(y){return(0,z.z)(L,y)}}},7545:function(qe,J,m){"use strict";m.d(J,{w:function(){return F}});var z=m(3237),Y=m(1120),M=m(136),U=m(9388),L=m(5671),P=m(3144),D=m(4850),y=m(3527),K=m(1177);function F(k,I){return"function"==typeof I?function(T){return T.pipe(F(function(w,S){return(0,y.D)(k(w,S)).pipe((0,D.U)(function(N,R){return I(w,N,S,R)}))}))}:function(T){return T.lift(new E(k))}}var E=function(){function k(I){(0,L.Z)(this,k),this.project=I}return(0,P.Z)(k,[{key:"call",value:function(T,w){return w.subscribe(new A(T,this.project))}}]),k}(),A=function(k){(0,M.Z)(T,k);var I=(0,U.Z)(T);function T(w,S){var N;return(0,L.Z)(this,T),(N=I.call(this,w)).project=S,N.index=0,N}return(0,P.Z)(T,[{key:"_next",value:function(S){var N,R=this.index++;try{N=this.project(S,R)}catch(W){return void this.destination.error(W)}this._innerSub(N)}},{key:"_innerSub",value:function(S){var N=this.innerSubscription;N&&N.unsubscribe();var R=new K.IY(this),W=this.destination;W.add(R),this.innerSubscription=(0,K.ft)(S,R),this.innerSubscription!==R&&W.add(this.innerSubscription)}},{key:"_complete",value:function(){var S=this.innerSubscription;(!S||S.closed)&&(0,z.Z)((0,Y.Z)(T.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,z.Z)((0,Y.Z)(T.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(S){this.destination.next(S)}}]),T}(K.Ds)},2986:function(qe,J,m){"use strict";m.d(J,{q:function(){return y}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489),P=m(4231),D=m(8896);function y(E){return function(A){return 0===E?(0,D.c)():A.lift(new K(E))}}var K=function(){function E(A){if((0,M.Z)(this,E),this.total=A,this.total<0)throw new P.W}return(0,U.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.total))}}]),E}(),F=function(E){(0,z.Z)(k,E);var A=(0,Y.Z)(k);function k(I,T){var w;return(0,M.Z)(this,k),(w=A.call(this,I)).total=T,w.count=0,w}return(0,U.Z)(k,[{key:"_next",value:function(T){var w=this.total,S=++this.count;S<=w&&(this.destination.next(T),S===w&&(this.destination.complete(),this.unsubscribe()))}}]),k}(L.L)},2821:function(qe,J,m){"use strict";m.d(J,{h:function(){return y}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489),P=m(4231),D=m(8896);function y(E){return function(k){return 0===E?(0,D.c)():k.lift(new K(E))}}var K=function(){function E(A){if((0,M.Z)(this,E),this.total=A,this.total<0)throw new P.W}return(0,U.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new F(k,this.total))}}]),E}(),F=function(E){(0,z.Z)(k,E);var A=(0,Y.Z)(k);function k(I,T){var w;return(0,M.Z)(this,k),(w=A.call(this,I)).total=T,w.ring=new Array,w.count=0,w}return(0,U.Z)(k,[{key:"_next",value:function(T){var w=this.ring,S=this.total,N=this.count++;w.length<S?w.push(T):w[N%S]=T}},{key:"_complete",value:function(){var T=this.destination,w=this.count;if(w>0)for(var S=this.count>=this.total?this.total:this.count,N=this.ring,R=0;R<S;R++){var W=w++%S;T.next(N[W])}T.complete()}}]),k}(L.L)},7625:function(qe,J,m){"use strict";m.d(J,{R:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(1177);function P(K){return function(F){return F.lift(new D(K))}}var D=function(){function K(F){(0,M.Z)(this,K),this.notifier=F}return(0,U.Z)(K,[{key:"call",value:function(E,A){var k=new y(E),I=(0,L.ft)(this.notifier,new L.IY(k));return I&&!k.seenValue?(k.add(I),A.subscribe(k)):k}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A){var k;return(0,M.Z)(this,E),(k=F.call(this,A)).seenValue=!1,k}return(0,U.Z)(E,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),E}(L.Ds)},4290:function(qe,J,m){"use strict";m.d(J,{o:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(3489);function P(K){var F=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(E){return E.lift(new D(K,F))}}var D=function(){function K(F,E){(0,M.Z)(this,K),this.predicate=F,this.inclusive=E}return(0,U.Z)(K,[{key:"call",value:function(E,A){return A.subscribe(new y(E,this.predicate,this.inclusive))}}]),K}(),y=function(K){(0,z.Z)(E,K);var F=(0,Y.Z)(E);function E(A,k,I){var T;return(0,M.Z)(this,E),(T=F.call(this,A)).predicate=k,T.inclusive=I,T.index=0,T}return(0,U.Z)(E,[{key:"_next",value:function(k){var T,I=this.destination;try{T=this.predicate(k,this.index++)}catch(w){return void I.error(w)}this.nextOrComplete(k,T)}},{key:"nextOrComplete",value:function(k,I){var T=this.destination;Boolean(I)?T.next(k):(this.inclusive&&T.next(k),T.complete())}}]),E}(L.L)},2994:function(qe,J,m){"use strict";m.d(J,{b:function(){return K}});var z=m(7326),Y=m(136),M=m(9388),U=m(5671),L=m(3144),P=m(3489),D=m(7876),y=m(7043);function K(A,k,I){return function(w){return w.lift(new F(A,k,I))}}var F=function(){function A(k,I,T){(0,U.Z)(this,A),this.nextOrObserver=k,this.error=I,this.complete=T}return(0,L.Z)(A,[{key:"call",value:function(I,T){return T.subscribe(new E(I,this.nextOrObserver,this.error,this.complete))}}]),A}(),E=function(A){(0,Y.Z)(I,A);var k=(0,M.Z)(I);function I(T,w,S,N){var R;return(0,U.Z)(this,I),(R=k.call(this,T))._tapNext=D.Z,R._tapError=D.Z,R._tapComplete=D.Z,R._tapError=S||D.Z,R._tapComplete=N||D.Z,(0,y.m)(w)?(R._context=(0,z.Z)(R),R._tapNext=w):w&&(R._context=w,R._tapNext=w.next||D.Z,R._tapError=w.error||D.Z,R._tapComplete=w.complete||D.Z),R}return(0,L.Z)(I,[{key:"_next",value:function(w){try{this._tapNext.call(this._context,w)}catch(S){return void this.destination.error(S)}this.destination.next(w)}},{key:"_error",value:function(w){try{this._tapError.call(this._context,w)}catch(S){return void this.destination.error(S)}this.destination.error(w)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(w){return void this.destination.error(w)}return this.destination.complete()}}]),I}(P.L)},2444:function(qe,J,m){"use strict";m.d(J,{P:function(){return D},d:function(){return P}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(1177),P={leading:!0,trailing:!1};function D(F){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(A){return A.lift(new y(F,!!E.leading,!!E.trailing))}}var y=function(){function F(E,A,k){(0,M.Z)(this,F),this.durationSelector=E,this.leading=A,this.trailing=k}return(0,U.Z)(F,[{key:"call",value:function(A,k){return k.subscribe(new K(A,this.durationSelector,this.leading,this.trailing))}}]),F}(),K=function(F){(0,z.Z)(A,F);var E=(0,Y.Z)(A);function A(k,I,T,w){var S;return(0,M.Z)(this,A),(S=E.call(this,k)).destination=k,S.durationSelector=I,S._leading=T,S._trailing=w,S._hasValue=!1,S}return(0,U.Z)(A,[{key:"_next",value:function(I){this._hasValue=!0,this._sendValue=I,this._throttled||(this._leading?this.send():this.throttle(I))}},{key:"send",value:function(){var I=this._hasValue,T=this._sendValue;I&&(this.destination.next(T),this.throttle(T)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(I){var T=this.tryDurationSelector(I);T&&this.add(this._throttled=(0,L.ft)(T,new L.IY(this)))}},{key:"tryDurationSelector",value:function(I){try{return this.durationSelector(I)}catch(T){return this.destination.error(T),null}}},{key:"throttlingDone",value:function(){var I=this._throttled,T=this._trailing;I&&I.unsubscribe(),this._throttled=void 0,T&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),A}(L.Ds)},4907:function(qe,J,m){"use strict";m.d(J,{T:function(){return D}});var z=m(136),Y=m(9388),M=m(5671),U=m(3144),L=m(4450),P=m(3489);function D(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;return function(A){return A.lift(new y(E))}}var y=function(){function E(A){(0,M.Z)(this,E),this.errorFactory=A}return(0,U.Z)(E,[{key:"call",value:function(k,I){return I.subscribe(new K(k,this.errorFactory))}}]),E}(),K=function(E){(0,z.Z)(k,E);var A=(0,Y.Z)(k);function k(I,T){var w;return(0,M.Z)(this,k),(w=A.call(this,I)).errorFactory=T,w.hasValue=!1,w}return(0,U.Z)(k,[{key:"_next",value:function(T){this.hasValue=!0,this.destination.next(T)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var T;try{T=this.errorFactory()}catch(w){T=w}this.destination.error(T)}}]),k}(P.L);function F(){return new L.K}},3485:function(qe,J,m){"use strict";m.d(J,{J:function(){return D},R:function(){return y}});var z=m(3144),Y=m(5671),M=m(353),U=m(2014),L=m(8514),P=m(4850);function D(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.P;return function(F){return(0,L.P)(function(){return F.pipe((0,U.R)(function(E,A){var k=E.current;return{value:A,current:K.now(),last:k}},{current:K.now(),value:void 0,last:void 0}),(0,P.U)(function(E){var A=E.current,k=E.last,I=E.value;return new y(I,A-k)}))})}}var y=(0,z.Z)(function K(F,E){(0,Y.Z)(this,K),this.value=F,this.interval=E})},7781:function(qe,J,m){"use strict";m.d(J,{A:function(){return L},E:function(){return P}});var z=m(3144),Y=m(5671),M=m(353),U=m(4850);function L(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.P;return(0,U.U)(function(y){return new P(y,D.now())})}var P=(0,z.Z)(function D(y,K){(0,Y.Z)(this,D),this.value=y,this.timestamp=K})},6454:function(qe,J,m){"use strict";m.d(J,{r:function(){return M}});var z=m(7451),Y=m(4096);function M(U,L){return new z.y(function(P){var D=new Y.w,y=0;return D.add(L.schedule(function(){y!==U.length?(P.next(U[y++]),P.closed||D.add(this.schedule())):P.complete()})),D})}},6389:function(qe,J,m){"use strict";m.d(J,{Q:function(){return U}});var z=m(7451),Y=m(4096),M=m(5430);function U(L,P){if(!L)throw new Error("Iterable cannot be null");return new z.y(function(D){var K,y=new Y.w;return y.add(function(){K&&"function"==typeof K.return&&K.return()}),y.add(P.schedule(function(){K=L[M.hZ](),y.add(P.schedule(function(){if(!D.closed){var F,E;try{var A=K.next();F=A.value,E=A.done}catch(k){return void D.error(k)}E?D.complete():(D.next(F),this.schedule())}}))})),y})}},8687:function(qe,J,m){"use strict";m.d(J,{c:function(){return M}});var z=m(7451),Y=m(4096);function M(U,L){return new z.y(function(P){var D=new Y.w;return D.add(L.schedule(function(){return U.then(function(y){D.add(L.schedule(function(){P.next(y),D.add(L.schedule(function(){return P.complete()}))}))},function(y){D.add(L.schedule(function(){return P.error(y)}))})})),D})}},6266:function(qe,J,m){"use strict";m.d(J,{x:function(){return A}});var z=m(7451),Y=m(4096),M=m(3821);var L=m(8687),P=m(6454),D=m(6389),y=m(8845),K=m(8955),F=m(8515),E=m(2198);function A(k,I){if(null!=k){if((0,y.c)(k))return function U(k,I){return new z.y(function(T){var w=new Y.w;return w.add(I.schedule(function(){var S=k[M.L]();w.add(S.subscribe({next:function(R){w.add(I.schedule(function(){return T.next(R)}))},error:function(R){w.add(I.schedule(function(){return T.error(R)}))},complete:function(){w.add(I.schedule(function(){return T.complete()}))}}))})),w})}(k,I);if((0,K.t)(k))return(0,L.c)(k,I);if((0,F.z)(k))return(0,P.r)(k,I);if((0,E.T)(k)||"string"==typeof k)return(0,D.Q)(k,I)}throw new TypeError((null!==k&&typeof k||k)+" is not observable")}},6686:function(qe,J,m){"use strict";m.d(J,{o:function(){return D}});var z=m(5671),Y=m(3144),M=m(136),U=m(9388),P=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(E,A){return(0,z.Z)(this,F),K.call(this)}return(0,Y.Z)(F,[{key:"schedule",value:function(A){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),F}(m(4096).w),D=function(y){(0,M.Z)(F,y);var K=(0,U.Z)(F);function F(E,A){var k;return(0,z.Z)(this,F),(k=K.call(this,E,A)).scheduler=E,k.work=A,k.pending=!1,k}return(0,Y.Z)(F,[{key:"schedule",value:function(A){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=A;var I=this.id,T=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(T,I,k)),this.pending=!0,this.delay=k,this.id=this.id||this.requestAsyncId(T,this.id,k),this}},{key:"requestAsyncId",value:function(A,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(A.flush.bind(A,this),I)}},{key:"recycleAsyncId",value:function(A,k){var I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==I&&this.delay===I&&!1===this.pending)return k;clearInterval(k)}},{key:"execute",value:function(A,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var I=this._execute(A,k);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(A,k){var I=!1,T=void 0;try{this.work(A)}catch(w){I=!0,T=!!w&&w||new Error(w)}if(I)return this.unsubscribe(),T}},{key:"_unsubscribe",value:function(){var A=this.id,k=this.scheduler,I=k.actions,T=I.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==T&&I.splice(T,1),null!=A&&(this.id=this.recycleAsyncId(k,A,null)),this.delay=null}}]),F}(P)},198:function(qe,J,m){"use strict";m.d(J,{v:function(){return K}});var z=m(5671),Y=m(3144),M=m(7326),U=m(3237),L=m(1120),P=m(136),D=m(9388),y=m(2221),K=function(F){(0,P.Z)(A,F);var E=(0,D.Z)(A);function A(k){var I,T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.b.now;return(0,z.Z)(this,A),(I=E.call(this,k,function(){return A.delegate&&A.delegate!==(0,M.Z)(I)?A.delegate.now():T()})).actions=[],I.active=!1,I.scheduled=void 0,I}return(0,Y.Z)(A,[{key:"schedule",value:function(I){var T=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,w=arguments.length>2?arguments[2]:void 0;return A.delegate&&A.delegate!==this?A.delegate.schedule(I,T,w):(0,U.Z)((0,L.Z)(A.prototype),"schedule",this).call(this,I,T,w)}},{key:"flush",value:function(I){var T=this.actions;if(this.active)T.push(I);else{var w;this.active=!0;do{if(w=I.execute(I.state,I.delay))break}while(I=T.shift());if(this.active=!1,w){for(;I=T.shift();)I.unsubscribe();throw w}}}}]),A}(y.b)},9027:function(qe,J,m){"use strict";m.d(J,{h:function(){return F},y:function(){return K}});var z=m(3237),Y=m(1120),M=m(5671),U=m(3144),L=m(136),P=m(9388),D=m(6686),K=function(E){(0,L.Z)(k,E);var A=(0,P.Z)(k);function k(){var I,T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,M.Z)(this,k),(I=A.call(this,T,function(){return I.frame})).maxFrames=w,I.frame=0,I.index=-1,I}return(0,U.Z)(k,[{key:"flush",value:function(){for(var S,N,T=this.actions,w=this.maxFrames;(N=T[0])&&N.delay<=w&&(T.shift(),this.frame=N.delay,!(S=N.execute(N.state,N.delay))););if(S){for(;N=T.shift();)N.unsubscribe();throw S}}}]),k}(m(198).v);K.frameTimeFactor=10;var F=function(E){(0,L.Z)(k,E);var A=(0,P.Z)(k);function k(I,T){var w,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.index+=1;return(0,M.Z)(this,k),(w=A.call(this,I,T)).scheduler=I,w.work=T,w.index=S,w.active=!0,w.index=I.index=S,w}return(0,U.Z)(k,[{key:"schedule",value:function(T){var w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,z.Z)((0,Y.Z)(k.prototype),"schedule",this).call(this,T,w);this.active=!1;var S=new k(this.scheduler,this.work);return this.add(S),S.schedule(T,w)}},{key:"requestAsyncId",value:function(T,w){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=T.frame+S;var N=T.actions;return N.push(this),N.sort(k.sortActions),!0}},{key:"recycleAsyncId",value:function(T,w){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(T,w){if(!0===this.active)return(0,z.Z)((0,Y.Z)(k.prototype),"_execute",this).call(this,T,w)}}],[{key:"sortActions",value:function(T,w){return T.delay===w.delay?T.index===w.index?0:T.index>w.index?1:-1:T.delay>w.delay?1:-1}}]),k}(D.o)},352:function(qe,J,m){"use strict";m.d(J,{r:function(){return A},Z:function(){return E}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),y=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(w,S){var N;return(0,z.Z)(this,T),(N=I.call(this,w,S)).scheduler=w,N.work=S,N}return(0,Y.Z)(T,[{key:"requestAsyncId",value:function(S,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==R&&R>0?(0,M.Z)((0,U.Z)(T.prototype),"requestAsyncId",this).call(this,S,N,R):(S.actions.push(this),S.scheduled||(S.scheduled=requestAnimationFrame(function(){return S.flush(null)})))}},{key:"recycleAsyncId",value:function(S,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==R&&R>0||null===R&&this.delay>0)return(0,M.Z)((0,U.Z)(T.prototype),"recycleAsyncId",this).call(this,S,N,R);0===S.actions.length&&(cancelAnimationFrame(N),S.scheduled=void 0)}}]),T}(m(6686).o),F=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T,[{key:"flush",value:function(S){this.active=!0,this.scheduled=void 0;var R,N=this.actions,W=-1,$=N.length;S=S||N.shift();do{if(R=S.execute(S.state,S.delay))break}while(++W<$&&(S=N.shift()));if(this.active=!1,R){for(;++W<$&&(S=N.shift());)S.unsubscribe();throw R}}}]),T}(m(198).v),E=new F(y),A=E},9931:function(qe,J,m){"use strict";m.d(J,{e:function(){return k},E:function(){return A}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(1450),K=function(I){(0,L.Z)(w,I);var T=(0,P.Z)(w);function w(S,N){var R;return(0,z.Z)(this,w),(R=T.call(this,S,N)).scheduler=S,R.work=N,R}return(0,Y.Z)(w,[{key:"requestAsyncId",value:function(N,R){var W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==W&&W>0?(0,M.Z)((0,U.Z)(w.prototype),"requestAsyncId",this).call(this,N,R,W):(N.actions.push(this),N.scheduled||(N.scheduled=D.H.setImmediate(N.flush.bind(N,null))))}},{key:"recycleAsyncId",value:function(N,R){var W=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==W&&W>0||null===W&&this.delay>0)return(0,M.Z)((0,U.Z)(w.prototype),"recycleAsyncId",this).call(this,N,R,W);0===N.actions.length&&(D.H.clearImmediate(R),N.scheduled=void 0)}}]),w}(m(6686).o),E=function(I){(0,L.Z)(w,I);var T=(0,P.Z)(w);function w(){return(0,z.Z)(this,w),T.apply(this,arguments)}return(0,Y.Z)(w,[{key:"flush",value:function(N){this.active=!0,this.scheduled=void 0;var W,R=this.actions,$=-1,ce=R.length;N=N||R.shift();do{if(W=N.execute(N.state,N.delay))break}while(++$<ce&&(N=R.shift()));if(this.active=!1,W){for(;++$<ce&&(N=R.shift());)N.unsubscribe();throw W}}}]),w}(m(198).v),A=new E(K),k=A},353:function(qe,J,m){"use strict";m.d(J,{P:function(){return U},z:function(){return M}});var z=m(6686),M=new(m(198).v)(z.o),U=M},341:function(qe,J,m){"use strict";m.d(J,{c:function(){return A},N:function(){return E}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),y=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(w,S){var N;return(0,z.Z)(this,T),(N=I.call(this,w,S)).scheduler=w,N.work=S,N}return(0,Y.Z)(T,[{key:"schedule",value:function(S){var N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return N>0?(0,M.Z)((0,U.Z)(T.prototype),"schedule",this).call(this,S,N):(this.delay=N,this.state=S,this.scheduler.flush(this),this)}},{key:"execute",value:function(S,N){return N>0||this.closed?(0,M.Z)((0,U.Z)(T.prototype),"execute",this).call(this,S,N):this._execute(S,N)}},{key:"requestAsyncId",value:function(S,N){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==R&&R>0||null===R&&this.delay>0?(0,M.Z)((0,U.Z)(T.prototype),"requestAsyncId",this).call(this,S,N,R):S.flush(this)}}]),T}(m(6686).o),F=function(k){(0,L.Z)(T,k);var I=(0,P.Z)(T);function T(){return(0,z.Z)(this,T),I.apply(this,arguments)}return(0,Y.Z)(T)}(m(198).v),E=new F(y),A=E},5430:function(qe,J,m){"use strict";m.d(J,{hZ:function(){return Y}});var Y=function z(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(qe,J,m){"use strict";m.d(J,{L:function(){return z}});var z="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(qe,J,m){"use strict";m.d(J,{b:function(){return z}});var z="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(qe,J,m){"use strict";m.d(J,{W:function(){return Y}});var Y=function(){function M(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return M.prototype=Object.create(Error.prototype),M}()},4450:function(qe,J,m){"use strict";m.d(J,{K:function(){return Y}});var Y=function(){function M(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return M.prototype=Object.create(Error.prototype),M}()},1450:function(qe,J,m){"use strict";m.d(J,{H:function(){return L}});var z=1,Y=Promise.resolve(),M={};function U(D){return D in M&&(delete M[D],!0)}var L={setImmediate:function(y){var K=z++;return M[K]=!0,Y.then(function(){return U(K)&&y()}),K},clearImmediate:function(y){U(y)}}},5279:function(qe,J,m){"use strict";m.d(J,{N:function(){return Y}});var Y=function(){function M(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return M.prototype=Object.create(Error.prototype),M}()},854:function(qe,J,m){"use strict";m.d(J,{W:function(){return Y}});var Y=function(){function M(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return M.prototype=Object.create(Error.prototype),M}()},7964:function(qe,J,m){"use strict";m.d(J,{B:function(){return Y}});var Y=function(){function M(U){return Error.call(this),this.message=U?"".concat(U.length," errors occurred during unsubscription:\n").concat(U.map(function(L,P){return"".concat(P+1,") ").concat(L.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=U,this}return M.prototype=Object.create(Error.prototype),M}()},5128:function(qe,J,m){"use strict";function z(Y,M){for(var U=0,L=M.length;U<L;U++)for(var P=M[U],D=Object.getOwnPropertyNames(P.prototype),y=0,K=D.length;y<K;y++){var F=D[y];Y.prototype[F]=P.prototype[F]}}m.d(J,{e:function(){return z}})},9476:function(qe,J,m){"use strict";m.d(J,{_:function(){return Y}});var z=m(3489);function Y(M){for(;M;){var U=M,L=U.closed,P=U.destination,D=U.isStopped;if(L||D)return!1;M=P&&P instanceof z.L?P:null}return!0}},2782:function(qe,J,m){"use strict";function z(Y){setTimeout(function(){throw Y},0)}m.d(J,{z:function(){return z}})},5379:function(qe,J,m){"use strict";function z(Y){return Y}m.d(J,{y:function(){return z}})},6688:function(qe,J,m){"use strict";m.d(J,{k:function(){return z}});var z=Array.isArray||function(Y){return Y&&"number"==typeof Y.length}},8515:function(qe,J,m){"use strict";m.d(J,{z:function(){return z}});var z=function(M){return M&&"number"==typeof M.length&&"function"!=typeof M}},2697:function(qe,J,m){"use strict";function z(Y){return Y instanceof Date&&!isNaN(+Y)}m.d(J,{J:function(){return z}})},7043:function(qe,J,m){"use strict";function z(Y){return"function"==typeof Y}m.d(J,{m:function(){return z}})},8845:function(qe,J,m){"use strict";m.d(J,{c:function(){return Y}});var z=m(3821);function Y(M){return M&&"function"==typeof M[z.L]}},2198:function(qe,J,m){"use strict";m.d(J,{T:function(){return Y}});var z=m(5430);function Y(M){return M&&"function"==typeof M[z.hZ]}},4241:function(qe,J,m){"use strict";m.d(J,{k:function(){return Y}});var z=m(6688);function Y(M){return!(0,z.k)(M)&&M-parseFloat(M)+1>=0}},7830:function(qe,J,m){"use strict";function z(Y){return null!==Y&&"object"==typeof Y}m.d(J,{K:function(){return z}})},4715:function(qe,J,m){"use strict";m.d(J,{b:function(){return Y}});var z=m(7451);function Y(M){return!!M&&(M instanceof z.y||"function"==typeof M.lift&&"function"==typeof M.subscribe)}},8955:function(qe,J,m){"use strict";function z(Y){return!!Y&&"function"!=typeof Y.subscribe&&"function"==typeof Y.then}m.d(J,{t:function(){return z}})},2866:function(qe,J,m){"use strict";function z(Y){return Y&&"function"==typeof Y.schedule}m.d(J,{K:function(){return z}})},7876:function(qe,J,m){"use strict";function z(){}m.d(J,{Z:function(){return z}})},5884:function(qe,J,m){"use strict";function z(Y,M){function U(){return!U.pred.apply(U.thisArg,arguments)}return U.pred=Y,U.thisArg=M,U}m.d(J,{f:function(){return z}})},4843:function(qe,J,m){"use strict";m.d(J,{U:function(){return M},z:function(){return Y}});var z=m(5379);function Y(){for(var U=arguments.length,L=new Array(U),P=0;P<U;P++)L[P]=arguments[P];return M(L)}function M(U){return 0===U.length?z.y:1===U.length?U[0]:function(P){return U.reduce(function(D,y){return y(D)},P)}}},797:function(qe,J,m){"use strict";m.d(J,{J:function(){return U}});var z="undefined"!=typeof window&&window,Y="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,U=z||M||Y;!function(){if(!U)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(qe,J,m){"use strict";m.d(J,{s:function(){return F}});var z=m(3650),Y=m(3445),M=m(3720),U=m(1810),L=m(8515),P=m(8955),D=m(7830),y=m(5430),K=m(3821),F=function(A){if(A&&"function"==typeof A[K.L])return(0,U.h)(A);if((0,L.z)(A))return(0,z.V)(A);if((0,P.t)(A))return(0,Y.A)(A);if(A&&"function"==typeof A[y.hZ])return(0,M.u)(A);var k=(0,D.K)(A)?"an invalid object":"'".concat(A,"'"),I="You provided ".concat(k," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(I)}},3650:function(qe,J,m){"use strict";m.d(J,{V:function(){return z}});var z=function(M){return function(U){for(var L=0,P=M.length;L<P&&!U.closed;L++)U.next(M[L]);U.complete()}}},3720:function(qe,J,m){"use strict";m.d(J,{u:function(){return Y}});var z=m(5430),Y=function(U){return function(L){for(var P=U[z.hZ]();;){var D=void 0;try{D=P.next()}catch(y){return L.error(y),L}if(D.done){L.complete();break}if(L.next(D.value),L.closed)break}return"function"==typeof P.return&&L.add(function(){P.return&&P.return()}),L}}},1810:function(qe,J,m){"use strict";m.d(J,{h:function(){return Y}});var z=m(3821),Y=function(U){return function(L){var P=U[z.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(L)}}},3445:function(qe,J,m){"use strict";m.d(J,{A:function(){return Y}});var z=m(2782),Y=function(U){return function(L){return U.then(function(P){L.closed||(L.next(P),L.complete())},function(P){return L.error(P)}).then(null,z.z),L}}},9054:function(qe,J,m){"use strict";m.d(J,{D:function(){return U}});var z=m(1869),Y=m(3071),M=m(7451);function U(L,P,D,y){var K=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new z.d(L,D,y);if(!K.closed)return P instanceof M.y?P.subscribe(K):(0,Y.s)(P)(K)}},5221:function(qe,J,m){"use strict";m.d(J,{Y:function(){return U}});var z=m(3489),Y=m(7668),M=m(3292);function U(L,P,D){if(L){if(L instanceof z.L)return L;if(L[Y.b])return L[Y.b]()}return L||P||D?new z.L(L,P,D):new z.L(M.c)}},6650:function(qe,J,m){"use strict";m.r(J),m.d(J,{audit:function(){return z.U},auditTime:function(){return Y.e},buffer:function(){return K},bufferCount:function(){return T},bufferTime:function(){return $},bufferToggle:function(){return ke},bufferWhen:function(){return Mt},catchError:function(){return en.K},combineAll:function(){return Xe},combineLatest:function(){return Rt},concat:function(){return on},concatAll:function(){return _n.u},concatMap:function(){return An.b},concatMapTo:function(){return Gt},count:function(){return Zt.Q},debounce:function(){return Et},debounceTime:function(){return sn.b},defaultIfEmpty:function(){return yt.d},delay:function(){return mt.g},delayWhen:function(){return $t},dematerialize:function(){return Bt},distinct:function(){return Te},distinctUntilChanged:function(){return at.x},distinctUntilKeyChanged:function(){return Dt},elementAt:function(){return On},endWith:function(){return zn},every:function(){return Ln},exhaust:function(){return lr},exhaustMap:function(){return Ue},expand:function(){return bt},filter:function(){return Jt.h},finalize:function(){return rr.x},find:function(){return pn},findIndex:function(){return Ae},first:function(){return Qe.P},flatMap:function(){return ci.VS},groupBy:function(){return _t.v},ignoreElements:function(){return Wt},isEmpty:function(){return cr},last:function(){return Mr.Z},map:function(){return tt.U},mapTo:function(){return Hi.h},materialize:function(){return Gi},max:function(){return Ja},merge:function(){return or},mergeAll:function(){return Pr.J},mergeMap:function(){return ci.zg},mergeMapTo:function(){return lo},mergeScan:function(){return uo},min:function(){return $r},multicast:function(){return Pi.O},observeOn:function(){return Wi.QV},onErrorResumeNext:function(){return hr},pairwise:function(){return Do.G},partition:function(){return Ko},pluck:function(){return ga},publish:function(){return ws},publishBehavior:function(){return Na},publishLast:function(){return bn},publishReplay:function(){return Li},race:function(){return ei},reduce:function(){return yi},refCount:function(){return Oo.x},repeat:function(){return va},repeatWhen:function(){return Co},retry:function(){return ya},retryWhen:function(){return mo},sample:function(){return io},sampleTime:function(){return Jo},scan:function(){return Go.R},sequenceEqual:function(){return ba},share:function(){return $a.B},shareReplay:function(){return Fa.d},single:function(){return Ua},skip:function(){return Rs.T},skipLast:function(){return iu},skipUntil:function(){return Eu},skipWhile:function(){return Ge},startWith:function(){return un.O},subscribeOn:function(){return Pn},switchAll:function(){return ai},switchMap:function(){return jr.w},switchMapTo:function(){return Xi},take:function(){return dn.q},takeLast:function(){return _a.h},takeUntil:function(){return So.R},takeWhile:function(){return xi.o},tap:function(){return Xo.b},throttle:function(){return Ve.P},throttleTime:function(){return Le},throwIfEmpty:function(){return nn.T},timeInterval:function(){return Pt.J},timeout:function(){return ou},timeoutWith:function(){return Lr},timestamp:function(){return rd.A},toArray:function(){return si},window:function(){return dr},windowCount:function(){return wi},windowTime:function(){return Mu},windowToggle:function(){return Ze},windowWhen:function(){return Ft},withLatestFrom:function(){return yn},zip:function(){return gr},zipAll:function(){return di}});var z=m(384),Y=m(7568),M=m(7326),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(1177);function K(Ne){return function(X){return X.lift(new F(Ne))}}var F=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingNotifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new E(X,this.closingNotifier))}}]),Ne}(),E=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).buffer=[],it.add((0,y.ft)(De,new y.IY((0,M.Z)(it)))),it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"notifyNext",value:function(){var De=this.buffer;this.buffer=[],this.destination.next(De)}}]),X}(y.Ds),A=m(3237),k=m(1120),I=m(3489);function T(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(je){return je.lift(new w(Ne,we))}}var w=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.bufferSize=we,this.startBufferEvery=X,this.subscriberClass=X&&we!==X?N:S}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new this.subscriberClass(X,this.bufferSize,this.startBufferEvery))}}]),Ne}(),S=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).bufferSize=De,it.buffer=[],it}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this.buffer;it.push(De),it.length==this.bufferSize&&(this.destination.next(it),this.buffer=[])}},{key:"_complete",value:function(){var De=this.buffer;De.length>0&&this.destination.next(De),(0,A.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}}]),X}(I.L),N=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).bufferSize=De,At.startBufferEvery=it,At.buffers=[],At.count=0,At}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this.bufferSize,At=this.startBufferEvery,fn=this.buffers,Sn=this.count;this.count++,Sn%At==0&&fn.push([]);for(var Sr=fn.length;Sr--;){var Ti=fn[Sr];Ti.push(De),Ti.length===it&&(fn.splice(Sr,1),this.destination.next(Ti))}}},{key:"_complete",value:function(){for(var De=this.buffers,it=this.destination;De.length>0;){var At=De.shift();At.length>0&&it.next(At)}(0,A.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}}]),X}(I.L),R=m(353),W=m(2866);function $(Ne){var we=arguments.length,X=R.P;(0,W.K)(arguments[arguments.length-1])&&(X=arguments[arguments.length-1],we--);var je=null;we>=2&&(je=arguments[1]);var De=Number.POSITIVE_INFINITY;return we>=3&&(De=arguments[2]),function(At){return At.lift(new ce(Ne,je,De,X))}}var ce=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.bufferTimeSpan=we,this.bufferCreationInterval=X,this.maxBufferSize=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ee(X,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ne}(),se=(0,D.Z)(function Ne(){(0,P.Z)(this,Ne),this.buffer=[]}),ee=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At,fn){var Sn;(0,P.Z)(this,X),(Sn=we.call(this,je)).bufferTimeSpan=De,Sn.bufferCreationInterval=it,Sn.maxBufferSize=At,Sn.scheduler=fn,Sn.contexts=[];var Sr=Sn.openContext();if(Sn.timespanOnly=null==it||it<0,Sn.timespanOnly){var Ti={subscriber:(0,M.Z)(Sn),context:Sr,bufferTimeSpan:De};Sn.add(Sr.closeAction=fn.schedule(oe,De,Ti))}else{var jo={subscriber:(0,M.Z)(Sn),context:Sr},$i={bufferTimeSpan:De,bufferCreationInterval:it,subscriber:(0,M.Z)(Sn),scheduler:fn};Sn.add(Sr.closeAction=fn.schedule(Oe,De,jo)),Sn.add(fn.schedule(ge,it,$i))}return Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var fn,it=this.contexts,At=it.length,Sn=0;Sn<At;Sn++){var Sr=it[Sn],Ti=Sr.buffer;Ti.push(De),Ti.length==this.maxBufferSize&&(fn=Sr)}fn&&this.onBufferFull(fn)}},{key:"_error",value:function(De){this.contexts.length=0,(0,A.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts,it=this.destination;De.length>0;){var At=De.shift();it.next(At.buffer)}(0,A.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(De){this.closeContext(De);var it=De.closeAction;if(it.unsubscribe(),this.remove(it),!this.closed&&this.timespanOnly){De=this.openContext();var At=this.bufferTimeSpan,fn={subscriber:this,context:De,bufferTimeSpan:At};this.add(De.closeAction=this.scheduler.schedule(oe,At,fn))}}},{key:"openContext",value:function(){var De=new se;return this.contexts.push(De),De}},{key:"closeContext",value:function(De){this.destination.next(De.buffer);var it=this.contexts;(it?it.indexOf(De):-1)>=0&&it.splice(it.indexOf(De),1)}}]),X}(I.L);function oe(Ne){var we=Ne.subscriber,X=Ne.context;X&&we.closeContext(X),we.closed||(Ne.context=we.openContext(),Ne.context.closeAction=this.schedule(Ne,Ne.bufferTimeSpan))}function ge(Ne){var we=Ne.bufferCreationInterval,X=Ne.bufferTimeSpan,je=Ne.subscriber,De=Ne.scheduler,it=je.openContext();je.closed||(je.add(it.closeAction=De.schedule(Oe,X,{subscriber:je,context:it})),this.schedule(Ne,we))}function Oe(Ne){var we=Ne.subscriber,X=Ne.context;we.closeContext(X)}var ot=m(4096),xe=m(9054),_e=m(826);function ke(Ne,we){return function(je){return je.lift(new Be(Ne,we))}}var Be=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.openings=we,this.closingSelector=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ct(X,this.openings,this.closingSelector))}}]),Ne}(),ct=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).closingSelector=it,At.contexts=[],At.add((0,xe.D)((0,M.Z)(At),De)),At}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var it=this.contexts,At=it.length,fn=0;fn<At;fn++)it[fn].buffer.push(De)}},{key:"_error",value:function(De){for(var it=this.contexts;it.length>0;){var At=it.shift();At.subscription.unsubscribe(),At.buffer=null,At.subscription=null}this.contexts=null,(0,A.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){for(var De=this.contexts;De.length>0;){var it=De.shift();this.destination.next(it.buffer),it.subscription.unsubscribe(),it.buffer=null,it.subscription=null}this.contexts=null,(0,A.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(De,it){De?this.closeBuffer(De):this.openBuffer(it)}},{key:"notifyComplete",value:function(De){this.closeBuffer(De.context)}},{key:"openBuffer",value:function(De){try{var At=this.closingSelector.call(this,De);At&&this.trySubscribe(At)}catch(fn){this._error(fn)}}},{key:"closeBuffer",value:function(De){var it=this.contexts;if(it&&De){var At=De.buffer,fn=De.subscription;this.destination.next(At),it.splice(it.indexOf(De),1),this.remove(fn),fn.unsubscribe()}}},{key:"trySubscribe",value:function(De){var it=this.contexts,fn=new ot.w,Sn={buffer:[],subscription:fn};it.push(Sn);var Sr=(0,xe.D)(this,De,Sn);!Sr||Sr.closed?this.closeBuffer(Sn):(Sr.context=Sn,this.add(Sr),fn.add(Sr))}}]),X}(_e.L);function Mt(Ne){return function(we){return we.lift(new Nt(Ne))}}var Nt=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Xt(X,this.closingSelector))}}]),Ne}(),Xt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).closingSelector=De,it.subscribing=!1,it.openBuffer(),it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.buffer.push(De)}},{key:"_complete",value:function(){var De=this.buffer;De&&this.destination.next(De),(0,A.Z)((0,k.Z)(X.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 De=this.closingSubscription;De&&(this.remove(De),De.unsubscribe());var At,it=this.buffer;this.buffer&&this.destination.next(it),this.buffer=[];try{At=(0,this.closingSelector)()}catch(Sn){return this.error(Sn)}De=new ot.w,this.closingSubscription=De,this.add(De),this.subscribing=!0,De.add((0,y.ft)(At,new y.IY(this))),this.subscribing=!1}}]),X}(y.Ds),en=m(7221),qt=m(6053);function Xe(Ne){return function(we){return we.lift(new qt.Ms(Ne))}}var jt=m(4902),rt=m(6688),vt=m(3527);function Rt(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];var je=null;return"function"==typeof we[we.length-1]&&(je=we.pop()),1===we.length&&(0,rt.k)(we[0])&&(we=we[0].slice()),function(De){return De.lift.call((0,vt.D)([De].concat((0,jt.Z)(we))),new qt.Ms(je))}}var It=m(1961);function on(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return je.lift.call(It.z.apply(void 0,[je].concat(we)))}}var _n=m(534),An=m(1406);function Gt(Ne,we){return(0,An.b)(function(){return Ne},we)}var Zt=m(3906);function Et(Ne){return function(we){return we.lift(new Ut(Ne))}}var Ut=function(){function Ne(we){(0,P.Z)(this,Ne),this.durationSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ht(X,this.durationSelector))}}]),Ne}(),Ht=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).durationSelector=De,it.hasValue=!1,it}return(0,D.Z)(X,[{key:"_next",value:function(De){try{var it=this.durationSelector.call(this,De);it&&this._tryNext(De,it)}catch(At){this.destination.error(At)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(De,it){var At=this.durationSubscription;this.value=De,this.hasValue=!0,At&&(At.unsubscribe(),this.remove(At)),(At=(0,y.ft)(it,new y.IY(this)))&&!At.closed&&this.add(this.durationSubscription=At)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var De=this.value,it=this.durationSubscription;it&&(this.durationSubscription=void 0,it.unsubscribe(),this.remove(it)),this.value=void 0,this.hasValue=!1,(0,A.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}}}]),X}(y.Ds),sn=m(13),yt=m(7314),mt=m(943),cn=m(7451);function $t(Ne,we){return we?function(X){return new Jn(X,we).lift(new j(Ne))}:function(X){return X.lift(new j(Ne))}}var j=function(){function Ne(we){(0,P.Z)(this,Ne),this.delayDurationSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new V(X,this.delayDurationSelector))}}]),Ne}(),V=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).delayDurationSelector=De,it.completed=!1,it.delayNotifierSubscriptions=[],it.index=0,it}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,it,At,fn,Sn){this.destination.next(De),this.removeSubscription(Sn),this.tryComplete()}},{key:"notifyError",value:function(De,it){this._error(De)}},{key:"notifyComplete",value:function(De){var it=this.removeSubscription(De);it&&this.destination.next(it),this.tryComplete()}},{key:"_next",value:function(De){var it=this.index++;try{var At=this.delayDurationSelector(De,it);At&&this.tryDelay(At,De)}catch(fn){this.destination.error(fn)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(De){De.unsubscribe();var it=this.delayNotifierSubscriptions.indexOf(De);return-1!==it&&this.delayNotifierSubscriptions.splice(it,1),De.outerValue}},{key:"tryDelay",value:function(De,it){var At=(0,xe.D)(this,De,it);At&&!At.closed&&(this.destination.add(At),this.delayNotifierSubscriptions.push(At))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),X}(_e.L),Jn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this)).source=je,it.subscriptionDelay=De,it}return(0,D.Z)(X,[{key:"_subscribe",value:function(De){this.subscriptionDelay.subscribe(new wn(De,this.source))}}]),X}(cn.y),wn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this)).parent=je,it.source=De,it.sourceSubscribed=!1,it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.subscribeToSource()}},{key:"_error",value:function(De){this.unsubscribe(),this.parent.error(De)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),X}(I.L);function Bt(){return function(we){return we.lift(new dt)}}var dt=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new de(X))}}]),Ne}(),de=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"_next",value:function(De){De.observe(this.destination)}}]),X}(I.L);function Te(Ne,we){return function(X){return X.lift(new ue(Ne,we))}}var ue=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.keySelector=we,this.flushes=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new We(X,this.keySelector,this.flushes))}}]),Ne}(),We=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).keySelector=De,At.values=new Set,it&&At.add((0,y.ft)(it,new y.IY((0,M.Z)(At)))),At}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"_next",value:function(De){this.keySelector?this._useKeySelector(De):this._finalizeNext(De,De)}},{key:"_useKeySelector",value:function(De){var it,At=this.destination;try{it=this.keySelector(De)}catch(fn){return void At.error(fn)}this._finalizeNext(it,De)}},{key:"_finalizeNext",value:function(De,it){var At=this.values;At.has(De)||(At.add(De),this.destination.next(it))}}]),X}(y.Ds),at=m(5778);function Dt(Ne,we){return(0,at.x)(function(X,je){return we?we(X[Ne],je[Ne]):X[Ne]===je[Ne]})}var tn=m(4231),Jt=m(9664),nn=m(4907),dn=m(2986);function On(Ne,we){if(Ne<0)throw new tn.W;var X=arguments.length>=2;return function(je){return je.pipe((0,Jt.h)(function(De,it){return it===Ne}),(0,dn.q)(1),X?(0,yt.d)(we):(0,nn.T)(function(){return new tn.W}))}}var Dn=m(1086);function zn(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return(0,It.z)(je,Dn.of.apply(void 0,we))}}function Ln(Ne,we){return function(X){return X.lift(new jn(Ne,we,X))}}var jn=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.predicate=we,this.thisArg=X,this.source=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new mn(X,this.predicate,this.thisArg,this.source))}}]),Ne}(),mn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).predicate=De,fn.thisArg=it,fn.source=At,fn.index=0,fn.thisArg=it||(0,M.Z)(fn),fn}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){this.destination.next(De),this.destination.complete()}},{key:"_next",value:function(De){var it=!1;try{it=this.predicate.call(this.thisArg,De,this.index++,this.source)}catch(At){return void this.destination.error(At)}it||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),X}(I.L);function lr(){return function(Ne){return Ne.lift(new Yn)}}var Yn=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Kt(X))}}]),Ne}(),Kt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){var De;return(0,P.Z)(this,X),(De=we.call(this,je)).hasCompleted=!1,De.hasSubscription=!1,De}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasSubscription||(this.hasSubscription=!0,this.add((0,y.ft)(De,new y.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()}}]),X}(y.Ds),tt=m(4850);function Ue(Ne,we){return we?function(X){return X.pipe(Ue(function(je,De){return(0,vt.D)(Ne(je,De)).pipe((0,tt.U)(function(it,At){return we(je,it,De,At)}))}))}:function(X){return X.lift(new Ee(Ne))}}var Ee=function(){function Ne(we){(0,P.Z)(this,Ne),this.project=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new He(X,this.project))}}]),Ne}(),He=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).project=De,it.hasSubscription=!1,it.hasCompleted=!1,it.index=0,it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasSubscription||this.tryNext(De)}},{key:"tryNext",value:function(De){var it,At=this.index++;try{it=this.project(De,At)}catch(fn){return void this.destination.error(fn)}this.hasSubscription=!0,this._innerSub(it)}},{key:"_innerSub",value:function(De){var it=new y.IY(this),At=this.destination;At.add(it);var fn=(0,y.ft)(De,it);fn!==it&&At.add(fn)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this.destination.next(De)}},{key:"notifyError",value:function(De){this.destination.error(De)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),X}(y.Ds);function bt(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,X=arguments.length>2?arguments[2]:void 0;return we=(we||0)<1?Number.POSITIVE_INFINITY:we,function(je){return je.lift(new Yt(Ne,we,X))}}var Yt=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.project=we,this.concurrent=X,this.scheduler=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new En(X,this.project,this.concurrent,this.scheduler))}}]),Ne}(),En=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).project=De,fn.concurrent=it,fn.scheduler=At,fn.index=0,fn.active=0,fn.hasCompleted=!1,it<Number.POSITIVE_INFINITY&&(fn.buffer=[]),fn}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this.destination;if(it.closed)this._complete();else{var At=this.index++;if(this.active<this.concurrent){it.next(De);try{var Sn=(0,this.project)(De,At);if(this.scheduler){var Sr={subscriber:this,result:Sn,value:De,index:At};this.destination.add(this.scheduler.schedule(X.dispatch,0,Sr))}else this.subscribeToProjection(Sn,De,At)}catch(jo){it.error(jo)}}else this.buffer.push(De)}}},{key:"subscribeToProjection",value:function(De,it,At){this.active++,this.destination.add((0,y.ft)(De,new y.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(De){this._next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De&&De.length>0&&this._next(De.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(De){var it=De.subscriber,At=De.result,fn=De.value,Sn=De.index;it.subscribeToProjection(At,fn,Sn)}}]),X}(y.Ds),rr=m(537);function pn(Ne,we){if("function"!=typeof Ne)throw new TypeError("predicate is not a function");return function(X){return X.lift(new lt(Ne,X,!1,we))}}var lt=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.predicate=we,this.source=X,this.yieldIndex=je,this.thisArg=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Se(X,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ne}(),Se=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).predicate=De,Sn.source=it,Sn.yieldIndex=At,Sn.thisArg=fn,Sn.index=0,Sn}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){var it=this.destination;it.next(De),it.complete(),this.unsubscribe()}},{key:"_next",value:function(De){var it=this.predicate,At=this.thisArg,fn=this.index++;try{it.call(At||this,De,fn,this.source)&&this.notifyComplete(this.yieldIndex?fn:De)}catch(Sr){this.destination.error(Sr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),X}(I.L);function Ae(Ne,we){return function(X){return X.lift(new lt(Ne,X,!0,we))}}var Qe=m(7224),_t=m(4002);function Wt(){return function(we){return we.lift(new gn)}}var gn=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Rn(X))}}]),Ne}(),Rn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){return(0,P.Z)(this,X),we.apply(this,arguments)}return(0,D.Z)(X,[{key:"_next",value:function(De){}}]),X}(I.L);function cr(){return function(Ne){return Ne.lift(new Rr)}}var Rr=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Xr(X))}}]),Ne}(),Xr=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"notifyComplete",value:function(De){var it=this.destination;it.next(De),it.complete()}},{key:"_next",value:function(De){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),X}(I.L),Mr=m(8127),Hi=m(7604),bo=m(9312);function Gi(){return function(we){return we.lift(new Ka)}}var Ka=function(){function Ne(){(0,P.Z)(this,Ne)}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Za(X))}}]),Ne}(),Za=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){return(0,P.Z)(this,X),we.call(this,je)}return(0,D.Z)(X,[{key:"_next",value:function(De){this.destination.next(bo.P.createNext(De))}},{key:"_error",value:function(De){var it=this.destination;it.next(bo.P.createError(De)),it.complete()}},{key:"_complete",value:function(){var De=this.destination;De.next(bo.P.createComplete()),De.complete()}}]),X}(I.L),Go=m(2014),_a=m(2821),qo=m(4843);function yi(Ne,we){return arguments.length>=2?function(je){return(0,qo.z)((0,Go.R)(Ne,we),(0,_a.h)(1),(0,yt.d)(we))(je)}:function(je){return(0,qo.z)((0,Go.R)(function(De,it,At){return Ne(De,it,At+1)}),(0,_a.h)(1))(je)}}function Ja(Ne){return yi("function"==typeof Ne?function(X,je){return Ne(X,je)>0?X:je}:function(X,je){return X>je?X:je})}var zi=m(6787);function or(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){return je.lift.call(zi.T.apply(void 0,[je].concat(we)))}}var Pr=m(9146),ci=m(1709);function lo(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof we?(0,ci.zg)(function(){return Ne},we,X):("number"==typeof we&&(X=we),(0,ci.zg)(function(){return Ne},X))}function uo(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(je){return je.lift(new mi(Ne,we,X))}}var mi=function(){function Ne(we,X,je){(0,P.Z)(this,Ne),this.accumulator=we,this.seed=X,this.concurrent=je}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Bo(X,this.accumulator,this.seed,this.concurrent))}}]),Ne}(),Bo=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At){var fn;return(0,P.Z)(this,X),(fn=we.call(this,je)).accumulator=De,fn.acc=it,fn.concurrent=At,fn.hasValue=!1,fn.hasCompleted=!1,fn.buffer=[],fn.active=0,fn.index=0,fn}return(0,D.Z)(X,[{key:"_next",value:function(De){if(this.active<this.concurrent){var fn,it=this.index++,At=this.destination;try{fn=(0,this.accumulator)(this.acc,De,it)}catch(Sr){return At.error(Sr)}this.active++,this._innerSub(fn)}else this.buffer.push(De)}},{key:"_innerSub",value:function(De){var it=new y.IY(this),At=this.destination;At.add(it);var fn=(0,y.ft)(De,it);fn!==it&&At.add(fn)}},{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(De){var it=this.destination;this.acc=De,this.hasValue=!0,it.next(De)}},{key:"notifyComplete",value:function(){var De=this.buffer;this.active--,De.length>0?this._next(De.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),X}(y.Ds);function $r(Ne){return yi("function"==typeof Ne?function(X,je){return Ne(X,je)<0?X:je}:function(X,je){return X<je?X:je})}var Pi=m(2536),Wi=m(7770);function hr(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return 1===we.length&&(0,rt.k)(we[0])&&(we=we[0]),function(je){return je.lift(new Qa(we))}}var Qa=function(){function Ne(we){(0,P.Z)(this,Ne),this.nextSources=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ri(X,this.nextSources))}}]),Ne}(),Ri=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).destination=je,it.nextSources=De,it}return(0,D.Z)(X,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(De){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var De=this.nextSources.shift();if(De){var it=new y.IY(this),At=this.destination;At.add(it);var fn=(0,y.ft)(De,it);fn!==it&&At.add(fn)}else this.destination.complete()}}]),X}(y.Ds),Do=m(519),_i=m(5884);function Ko(Ne,we){return function(X){return[(0,Jt.h)(Ne,we)(X),(0,Jt.h)((0,_i.f)(Ne,we))(X)]}}function ga(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];var je=we.length;if(0===je)throw new Error("list of properties cannot be empty.");return function(De){return(0,tt.U)(bi(we,je))(De)}}function bi(Ne,we){return function(De){for(var it=De,At=0;At<we;At++){var fn=null!=it?it[Ne[At]]:void 0;if(void 0===fn)return;it=fn}return it}}var Nr=m(8929);function ws(Ne){return Ne?(0,Pi.O)(function(){return new Nr.xQ},Ne):(0,Pi.O)(new Nr.xQ)}var oa=m(591);function Na(Ne){return function(we){return(0,Pi.O)(new oa.X(Ne))(we)}}var vn=m(2185);function bn(){return function(Ne){return(0,Pi.O)(new vn.c)(Ne)}}var oi=m(839);function Li(Ne,we,X,je){X&&"function"!=typeof X&&(je=X);var De="function"==typeof X?X:void 0,it=new oi.t(Ne,we,je);return function(At){return(0,Pi.O)(function(){return it},De)(At)}}var qi=m(1946);function ei(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(De){return 1===we.length&&(0,rt.k)(we[0])&&(we=we[0]),De.lift.call(qi.S3.apply(void 0,[De].concat((0,jt.Z)(we))))}}var Fo=m(8896);function va(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(we){return 0===Ne?(0,Fo.c)():Ne<0?we.lift(new Ki(-1,we)):we.lift(new Ki(Ne-1,we))}}var Ki=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.count=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ci(X,this.count,this.source))}}]),Ne}(),Ci=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).count=De,At.source=it,At}return(0,D.Z)(X,[{key:"complete",value:function(){if(!this.isStopped){var De=this.source,it=this.count;if(0===it)return(0,A.Z)((0,k.Z)(X.prototype),"complete",this).call(this);it>-1&&(this.count=it-1),De.subscribe(this._unsubscribeAndRecycle())}}}]),X}(I.L);function Co(Ne){return function(we){return we.lift(new ks(Ne))}}var ks=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Uo(X,this.notifier,je))}}]),Ne}(),Uo=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).notifier=De,At.source=it,At.sourceIsBeingSubscribedTo=!0,At}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,A.Z)((0,k.Z)(X.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,A.Z)((0,k.Z)(X.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var De=this.notifications,it=this.retriesSubscription;De&&(De.unsubscribe(),this.notifications=void 0),it&&(it.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var De=this._unsubscribe;return this._unsubscribe=null,(0,A.Z)((0,k.Z)(X.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=De,this}},{key:"subscribeToRetries",value:function(){var De;this.notifications=new Nr.xQ;try{De=(0,this.notifier)(this.notifications)}catch(At){return(0,A.Z)((0,k.Z)(X.prototype),"complete",this).call(this)}this.retries=De,this.retriesSubscription=(0,y.ft)(De,new y.IY(this))}}]),X}(y.Ds);function ya(){var Ne=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(we){return we.lift(new Ho(Ne,we))}}var Ho=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.count=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ji(X,this.count,this.source))}}]),Ne}(),Ji=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).count=De,At.source=it,At}return(0,D.Z)(X,[{key:"error",value:function(De){if(!this.isStopped){var it=this.source,At=this.count;if(0===At)return(0,A.Z)((0,k.Z)(X.prototype),"error",this).call(this,De);At>-1&&(this.count=At-1),it.subscribe(this._unsubscribeAndRecycle())}}}]),X}(I.L);function mo(Ne){return function(we){return we.lift(new tr(Ne,we))}}var tr=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.notifier=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Ba(X,this.notifier,this.source))}}]),Ne}(),Ba=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).notifier=De,At.source=it,At}return(0,D.Z)(X,[{key:"error",value:function(De){if(!this.isStopped){var it=this.errors,At=this.retries,fn=this.retriesSubscription;if(At)this.errors=void 0,this.retriesSubscription=void 0;else{it=new Nr.xQ;try{At=(0,this.notifier)(it)}catch(Sr){return(0,A.Z)((0,k.Z)(X.prototype),"error",this).call(this,Sr)}fn=(0,y.ft)(At,new y.IY(this))}this._unsubscribeAndRecycle(),this.errors=it,this.retries=At,this.retriesSubscription=fn,it.next(De)}}},{key:"_unsubscribe",value:function(){var De=this.errors,it=this.retriesSubscription;De&&(De.unsubscribe(),this.errors=void 0),it&&(it.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var De=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=De,this.source.subscribe(this)}}]),X}(y.Ds),Oo=m(4327);function io(Ne){return function(we){return we.lift(new Kr(Ne))}}var Kr=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){var De=new la(X),it=je.subscribe(De);return it.add((0,y.ft)(this.notifier,new y.IY(De))),it}}]),Ne}(),la=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){var je;return(0,P.Z)(this,X),(je=we.apply(this,arguments)).hasValue=!1,je}return(0,D.Z)(X,[{key:"_next",value:function(De){this.value=De,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))}}]),X}(y.Ds);function Jo(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return function(X){return X.lift(new br(Ne,we))}}var br=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.period=we,this.scheduler=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Is(X,this.period,this.scheduler))}}]),Ne}(),Is=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).period=De,At.scheduler=it,At.hasValue=!1,At.add(it.schedule(us,De,{subscriber:(0,M.Z)(At),period:De})),At}return(0,D.Z)(X,[{key:"_next",value:function(De){this.lastValue=De,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),X}(I.L);function us(Ne){var we=Ne.subscriber,X=Ne.period;we.notifyNext(),this.schedule(Ne,X)}function ba(Ne,we){return function(X){return X.lift(new Qi(Ne,we))}}var Qi=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.compareTo=we,this.comparator=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Xa(X,this.compareTo,this.comparator))}}]),Ne}(),Xa=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).compareTo=De,At.comparator=it,At._a=[],At._b=[],At._oneComplete=!1,At.destination.add(De.subscribe(new Ps(je,(0,M.Z)(At)))),At}return(0,D.Z)(X,[{key:"_next",value:function(De){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(De),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 De=this._a,it=this._b,At=this.comparator;De.length>0&&it.length>0;){var fn=De.shift(),Sn=it.shift(),Sr=!1;try{Sr=At?At(fn,Sn):fn===Sn}catch(Ti){this.destination.error(Ti)}Sr||this.emit(!1)}}},{key:"emit",value:function(De){var it=this.destination;it.next(De),it.complete()}},{key:"nextB",value:function(De){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(De),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),X}(I.L),Ps=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).parent=De,it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.parent.nextB(De)}},{key:"_error",value:function(De){this.parent.error(De),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),X}(I.L),$a=m(8117),Fa=m(5154),Tu=m(4450);function Ua(Ne){return function(we){return we.lift(new Qo(Ne,we))}}var Qo=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.predicate=we,this.source=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new es(X,this.predicate,this.source))}}]),Ne}(),es=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).predicate=De,At.source=it,At.seenValue=!1,At.index=0,At}return(0,D.Z)(X,[{key:"applySingleValue",value:function(De){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=De)}},{key:"_next",value:function(De){var it=this.index++;this.predicate?this.tryNext(De,it):this.applySingleValue(De)}},{key:"tryNext",value:function(De,it){try{this.predicate(De,it,this.source)&&this.applySingleValue(De)}catch(At){this.destination.error(At)}}},{key:"_complete",value:function(){var De=this.destination;this.index>0?(De.next(this.seenValue?this.singleValue:void 0),De.complete()):De.error(new Tu.K)}}]),X}(I.L),Rs=m(1307);function iu(Ne){return function(we){return we.lift(new wo(Ne))}}var wo=function(){function Ne(we){if((0,P.Z)(this,Ne),this._skipCount=we,this._skipCount<0)throw new tn.W}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return 0===this._skipCount?je.subscribe(new I.L(X)):je.subscribe(new Ha(X,this._skipCount))}}]),Ne}(),Ha=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je))._skipCount=De,it._count=0,it._ring=new Array(De),it}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this._skipCount,At=this._count++;if(At<it)this._ring[At]=De;else{var fn=At%it,Sn=this._ring,Sr=Sn[fn];Sn[fn]=De,this.destination.next(Sr)}}}]),X}(I.L);function Eu(Ne){return function(we){return we.lift(new ve(Ne))}}var ve=function(){function Ne(we){(0,P.Z)(this,Ne),this.notifier=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Pe(X,this.notifier))}}]),Ne}(),Pe=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;(0,P.Z)(this,X),(it=we.call(this,je)).hasValue=!1;var At=new y.IY((0,M.Z)(it));it.add(At),it.innerSubscription=At;var fn=(0,y.ft)(De,At);return fn!==At&&(it.add(fn),it.innerSubscription=fn),it}return(0,D.Z)(X,[{key:"_next",value:function(De){this.hasValue&&(0,A.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),X}(y.Ds);function Ge(Ne){return function(we){return we.lift(new gt(Ne))}}var gt=function(){function Ne(we){(0,P.Z)(this,Ne),this.predicate=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new St(X,this.predicate))}}]),Ne}(),St=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).predicate=De,it.skipping=!0,it.index=0,it}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this.destination;this.skipping&&this.tryCallPredicate(De),this.skipping||it.next(De)}},{key:"tryCallPredicate",value:function(De){try{var it=this.predicate(De,this.index++);this.skipping=Boolean(it)}catch(At){this.destination.error(At)}}}]),X}(I.L),un=m(1059),Mn=m(3837);function Pn(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(je){return je.lift(new Or(Ne,we))}}var Or=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.scheduler=we,this.delay=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return new Mn.e(je,this.delay,this.scheduler).subscribe(X)}}]),Ne}(),jr=m(7545),ar=m(5379);function ai(){return(0,jr.w)(ar.y)}function Xi(Ne,we){return we?(0,jr.w)(function(){return Ne},we):(0,jr.w)(function(){return Ne})}var So=m(7625),xi=m(4290),Xo=m(2994),Ve=m(2444);function Le(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P,X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ve.d;return function(je){return je.lift(new be(Ne,we,X.leading,X.trailing))}}var be=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.duration=we,this.scheduler=X,this.leading=je,this.trailing=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Je(X,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ne}(),Je=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).duration=De,Sn.scheduler=it,Sn.leading=At,Sn.trailing=fn,Sn._hasTrailingValue=!1,Sn._trailingValue=null,Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){this.throttled?this.trailing&&(this._trailingValue=De,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ke,this.duration,{subscriber:this})),this.leading?this.destination.next(De):this.trailing&&(this._trailingValue=De,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 De=this.throttled;De&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),De.unsubscribe(),this.remove(De),this.throttled=null)}}]),X}(I.L);function Ke(Ne){Ne.subscriber.clearThrottle()}var Pt=m(3485),an=m(854),nr=m(2697);function Lr(Ne,we){var X=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R.P;return function(je){var De=(0,nr.J)(Ne),it=De?+Ne-X.now():Math.abs(Ne);return je.lift(new Ir(it,De,we,X))}}var Ir=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.waitFor=we,this.absoluteTimeout=X,this.withObservable=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new _o(X,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ne}(),_o=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At,fn){var Sn;return(0,P.Z)(this,X),(Sn=we.call(this,je)).absoluteTimeout=De,Sn.waitFor=it,Sn.withObservable=At,Sn.scheduler=fn,Sn.scheduleTimeout(),Sn}return(0,D.Z)(X,[{key:"scheduleTimeout",value:function(){var De=this.action;De?this.action=De.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(X.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(De){this.absoluteTimeout||this.scheduleTimeout(),(0,A.Z)((0,k.Z)(X.prototype),"_next",this).call(this,De)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(De){var it=De.withObservable;De._unsubscribeAndRecycle(),De.add((0,y.ft)(it,new y.IY(De)))}}]),X}(y.Ds),uf=m(1737);function ou(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P;return Lr(Ne,(0,uf._)(new an.W),we)}var rd=m(7781);function oc(Ne,we,X){return 0===X?[we]:(Ne.push(we),Ne)}function si(){return yi(oc,[])}function dr(Ne){return function(X){return X.lift(new ac(Ne))}}var ac=function(){function Ne(we){(0,P.Z)(this,Ne),this.windowBoundaries=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){var De=new Nn(X),it=je.subscribe(De);return it.closed||De.add((0,y.ft)(this.windowBoundaries,new y.IY(De))),it}}]),Ne}(),Nn=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je){var De;return(0,P.Z)(this,X),(De=we.call(this,je)).window=new Nr.xQ,je.next(De.window),De}return(0,D.Z)(X,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var De=this.window;De&&De.complete();var it=this.destination,At=this.window=new Nr.xQ;it.next(At)}}]),X}(y.Ds);function wi(Ne){var we=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(je){return je.lift(new pi(Ne,we))}}var pi=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.windowSize=we,this.startWindowEvery=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Di(X,this.windowSize,this.startWindowEvery))}}]),Ne}(),Di=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).destination=je,At.windowSize=De,At.startWindowEvery=it,At.windows=[new Nr.xQ],At.count=0,je.next(At.windows[0]),At}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var it=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,At=this.destination,fn=this.windowSize,Sn=this.windows,Sr=Sn.length,Ti=0;Ti<Sr&&!this.closed;Ti++)Sn[Ti].next(De);var jo=this.count-fn+1;if(jo>=0&&jo%it==0&&!this.closed&&Sn.shift().complete(),++this.count%it==0&&!this.closed){var $i=new Nr.xQ;Sn.push($i),At.next($i)}}},{key:"_error",value:function(De){var it=this.windows;if(it)for(;it.length>0&&!this.closed;)it.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){var De=this.windows;if(De)for(;De.length>0&&!this.closed;)De.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),X}(I.L),cf=m(4241);function Mu(Ne){var we=R.P,X=null,je=Number.POSITIVE_INFINITY;return(0,W.K)(arguments[3])&&(we=arguments[3]),(0,W.K)(arguments[2])?we=arguments[2]:(0,cf.k)(arguments[2])&&(je=Number(arguments[2])),(0,W.K)(arguments[1])?we=arguments[1]:(0,cf.k)(arguments[1])&&(X=Number(arguments[1])),function(it){return it.lift(new ji(Ne,X,je,we))}}var ji=function(){function Ne(we,X,je,De){(0,P.Z)(this,Ne),this.windowTimeSpan=we,this.windowCreationInterval=X,this.maxWindowSize=je,this.scheduler=De}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ze(X,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ne}(),hl=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(){var je;return(0,P.Z)(this,X),(je=we.apply(this,arguments))._numberOfNextedValues=0,je}return(0,D.Z)(X,[{key:"next",value:function(De){this._numberOfNextedValues++,(0,A.Z)((0,k.Z)(X.prototype),"next",this).call(this,De)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),X}(Nr.xQ),ze=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it,At,fn){var Sn;(0,P.Z)(this,X),(Sn=we.call(this,je)).destination=je,Sn.windowTimeSpan=De,Sn.windowCreationInterval=it,Sn.maxWindowSize=At,Sn.scheduler=fn,Sn.windows=[];var Sr=Sn.openWindow();if(null!==it&&it>=0){var Ti={subscriber:(0,M.Z)(Sn),window:Sr,context:null},jo={windowTimeSpan:De,windowCreationInterval:it,subscriber:(0,M.Z)(Sn),scheduler:fn};Sn.add(fn.schedule(fe,De,Ti)),Sn.add(fn.schedule(ie,it,jo))}else{var $i={subscriber:(0,M.Z)(Sn),window:Sr,windowTimeSpan:De};Sn.add(fn.schedule(me,De,$i))}return Sn}return(0,D.Z)(X,[{key:"_next",value:function(De){for(var it=this.windows,At=it.length,fn=0;fn<At;fn++){var Sn=it[fn];Sn.closed||(Sn.next(De),Sn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Sn))}}},{key:"_error",value:function(De){for(var it=this.windows;it.length>0;)it.shift().error(De);this.destination.error(De)}},{key:"_complete",value:function(){for(var De=this.windows;De.length>0;){var it=De.shift();it.closed||it.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var De=new hl;return this.windows.push(De),this.destination.next(De),De}},{key:"closeWindow",value:function(De){De.complete();var it=this.windows;it.splice(it.indexOf(De),1)}}]),X}(I.L);function me(Ne){var we=Ne.subscriber,X=Ne.windowTimeSpan,je=Ne.window;je&&we.closeWindow(je),Ne.window=we.openWindow(),this.schedule(Ne,X)}function ie(Ne){var we=Ne.windowTimeSpan,X=Ne.subscriber,je=Ne.scheduler,De=Ne.windowCreationInterval,it=X.openWindow(),fn={action:this,subscription:null},Sn={subscriber:X,window:it,context:fn};fn.subscription=je.schedule(fe,we,Sn),this.add(fn.subscription),this.schedule(Ne,De)}function fe(Ne){var we=Ne.subscriber,X=Ne.window,je=Ne.context;je&&je.action&&je.subscription&&je.action.remove(je.subscription),we.closeWindow(X)}function Ze(Ne,we){return function(X){return X.lift(new $e(Ne,we))}}var $e=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.openings=we,this.closingSelector=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new wt(X,this.openings,this.closingSelector))}}]),Ne}(),wt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;return(0,P.Z)(this,X),(At=we.call(this,je)).openings=De,At.closingSelector=it,At.contexts=[],At.add(At.openSubscription=(0,xe.D)((0,M.Z)(At),De,De)),At}return(0,D.Z)(X,[{key:"_next",value:function(De){var it=this.contexts;if(it)for(var At=it.length,fn=0;fn<At;fn++)it[fn].window.next(De)}},{key:"_error",value:function(De){var it=this.contexts;if(this.contexts=null,it)for(var At=it.length,fn=-1;++fn<At;){var Sn=it[fn];Sn.window.error(De),Sn.subscription.unsubscribe()}(0,A.Z)((0,k.Z)(X.prototype),"_error",this).call(this,De)}},{key:"_complete",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var it=De.length,At=-1;++At<it;){var fn=De[At];fn.window.complete(),fn.subscription.unsubscribe()}(0,A.Z)((0,k.Z)(X.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var De=this.contexts;if(this.contexts=null,De)for(var it=De.length,At=-1;++At<it;){var fn=De[At];fn.window.unsubscribe(),fn.subscription.unsubscribe()}}},{key:"notifyNext",value:function(De,it,At,fn,Sn){if(De===this.openings){var Sr;try{Sr=(0,this.closingSelector)(it)}catch(df){return this.error(df)}var jo=new Nr.xQ,$i=new ot.w,Ts={window:jo,subscription:$i};this.contexts.push(Ts);var eo=(0,xe.D)(this,Sr,Ts);eo.closed?this.closeWindow(this.contexts.length-1):(eo.context=Ts,$i.add(eo)),this.destination.next(jo)}else this.closeWindow(this.contexts.indexOf(De))}},{key:"notifyError",value:function(De){this.error(De)}},{key:"notifyComplete",value:function(De){De!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(De.context))}},{key:"closeWindow",value:function(De){if(-1!==De){var it=this.contexts,At=it[De],fn=At.window,Sn=At.subscription;it.splice(De,1),fn.complete(),Sn.unsubscribe()}}}]),X}(_e.L);function Ft(Ne){return function(X){return X.lift(new Vt(Ne))}}var Vt=function(){function Ne(we){(0,P.Z)(this,Ne),this.closingSelector=we}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new Qt(X,this.closingSelector))}}]),Ne}(),Qt=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De){var it;return(0,P.Z)(this,X),(it=we.call(this,je)).destination=je,it.closingSelector=De,it.openWindow(),it}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,it,At,fn,Sn){this.openWindow(Sn)}},{key:"notifyError",value:function(De){this._error(De)}},{key:"notifyComplete",value:function(De){this.openWindow(De)}},{key:"_next",value:function(De){this.window.next(De)}},{key:"_error",value:function(De){this.window.error(De),this.destination.error(De),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 De=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;De&&(this.remove(De),De.unsubscribe());var it=this.window;it&&it.complete();var fn,At=this.window=new Nr.xQ;this.destination.next(At);try{var Sn=this.closingSelector;fn=Sn()}catch(Sr){return this.destination.error(Sr),void this.window.error(Sr)}this.add(this.closingNotification=(0,xe.D)(this,fn))}}]),X}(_e.L);function yn(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(je){var De;"function"==typeof we[we.length-1]&&(De=we.pop());var it=we;return je.lift(new Qn(it,De))}}var Qn=function(){function Ne(we,X){(0,P.Z)(this,Ne),this.observables=we,this.project=X}return(0,D.Z)(Ne,[{key:"call",value:function(X,je){return je.subscribe(new ir(X,this.observables,this.project))}}]),Ne}(),ir=function(Ne){(0,U.Z)(X,Ne);var we=(0,L.Z)(X);function X(je,De,it){var At;(0,P.Z)(this,X),(At=we.call(this,je)).observables=De,At.project=it,At.toRespond=[];var fn=De.length;At.values=new Array(fn);for(var Sn=0;Sn<fn;Sn++)At.toRespond.push(Sn);for(var Sr=0;Sr<fn;Sr++){var Ti=De[Sr];At.add((0,xe.D)((0,M.Z)(At),Ti,void 0,Sr))}return At}return(0,D.Z)(X,[{key:"notifyNext",value:function(De,it,At){this.values[At]=it;var fn=this.toRespond;if(fn.length>0){var Sn=fn.indexOf(At);-1!==Sn&&fn.splice(Sn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(De){if(0===this.toRespond.length){var it=[De].concat((0,jt.Z)(this.values));this.project?this._tryProject(it):this.destination.next(it)}}},{key:"_tryProject",value:function(De){var it;try{it=this.project.apply(this,De)}catch(At){return void this.destination.error(At)}this.destination.next(it)}}]),X}(_e.L),_r=m(1746);function gr(){for(var Ne=arguments.length,we=new Array(Ne),X=0;X<Ne;X++)we[X]=arguments[X];return function(De){return De.lift.call(_r.$R.apply(void 0,[De].concat(we)))}}function di(Ne){return function(we){return we.lift(new _r.mx(Ne))}}},9594:function(qe,J,m){"use strict";m.r(J),m.d(J,{TestScheduler:function(){return R}});var z=m(5671),Y=m(3144),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(7451),y=m(9312),K=m(4096),F=(0,Y.Z)(function W($){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,z.Z)(this,W),this.subscribedFrame=$,this.unsubscribedFrame=ce}),E=function(){function W(){(0,z.Z)(this,W),this.subscriptions=[]}return(0,Y.Z)(W,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new F(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(ce){var se=this.subscriptions,ee=se[ce];se[ce]=new F(ee.subscribedFrame,this.scheduler.now())}}]),W}(),A=m(5128),k=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se,ee){var oe;return(0,z.Z)(this,ce),(oe=$.call(this,function(ge){var Oe=this,ot=Oe.logSubscribedFrame(),xe=new K.w;return xe.add(new K.w(function(){Oe.logUnsubscribedFrame(ot)})),Oe.scheduleMessages(ge),xe})).messages=se,oe.subscriptions=[],oe.scheduler=ee,oe}return(0,Y.Z)(ce,[{key:"scheduleMessages",value:function(ee){for(var oe=this.messages.length,ge=0;ge<oe;ge++){var Oe=this.messages[ge];ee.add(this.scheduler.schedule(function(ot){var xe=ot.message,_e=ot.subscriber;xe.notification.observe(_e)},Oe.frame,{message:Oe,subscriber:ee}))}}}]),ce}(D.y);(0,A.e)(k,[E]);var T=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se,ee){var oe;return(0,z.Z)(this,ce),(oe=$.call(this)).messages=se,oe.subscriptions=[],oe.scheduler=ee,oe}return(0,Y.Z)(ce,[{key:"_subscribe",value:function(ee){var oe=this,ge=oe.logSubscribedFrame(),Oe=new K.w;return Oe.add(new K.w(function(){oe.logUnsubscribedFrame(ge)})),Oe.add((0,M.Z)((0,U.Z)(ce.prototype),"_subscribe",this).call(this,ee)),Oe}},{key:"setup",value:function(){for(var ee=this,oe=ee.messages.length,ge=0;ge<oe;ge++)!function(){var Oe=ee.messages[ge];ee.scheduler.schedule(function(){Oe.notification.observe(ee)},Oe.frame)}()}}]),ce}(m(8929).xQ);(0,A.e)(T,[E]);var w=m(9027),S=m(198),R=function(W){(0,L.Z)(ce,W);var $=(0,P.Z)(ce);function ce(se){var ee;return(0,z.Z)(this,ce),(ee=$.call(this,w.h,750)).assertDeepEqual=se,ee.hotObservables=[],ee.coldObservables=[],ee.flushTests=[],ee.runMode=!1,ee}return(0,Y.Z)(ce,[{key:"createTime",value:function(ee){var oe=ee.indexOf("|");if(-1===oe)throw new Error('marble diagram for time should have a completion marker "|"');return oe*ce.frameTimeFactor}},{key:"createColdObservable",value:function(ee,oe,ge){if(-1!==ee.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==ee.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var Oe=ce.parseMarbles(ee,oe,ge,void 0,this.runMode),ot=new k(Oe,this);return this.coldObservables.push(ot),ot}},{key:"createHotObservable",value:function(ee,oe,ge){if(-1!==ee.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var Oe=ce.parseMarbles(ee,oe,ge,void 0,this.runMode),ot=new T(Oe,this);return this.hotObservables.push(ot),ot}},{key:"materializeInnerObservable",value:function(ee,oe){var ge=this,Oe=[];return ee.subscribe(function(ot){Oe.push({frame:ge.frame-oe,notification:y.P.createNext(ot)})},function(ot){Oe.push({frame:ge.frame-oe,notification:y.P.createError(ot)})},function(){Oe.push({frame:ge.frame-oe,notification:y.P.createComplete()})}),Oe}},{key:"expectObservable",value:function(ee){var Be,oe=this,ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=[],ot={actual:Oe,ready:!1},xe=ce.parseMarblesAsSubscriptions(ge,this.runMode),_e=xe.subscribedFrame===Number.POSITIVE_INFINITY?0:xe.subscribedFrame,ke=xe.unsubscribedFrame;this.schedule(function(){Be=ee.subscribe(function(Mt){var Nt=Mt;Mt instanceof D.y&&(Nt=oe.materializeInnerObservable(Nt,oe.frame)),Oe.push({frame:oe.frame,notification:y.P.createNext(Nt)})},function(Mt){Oe.push({frame:oe.frame,notification:y.P.createError(Mt)})},function(){Oe.push({frame:oe.frame,notification:y.P.createComplete()})})},_e),ke!==Number.POSITIVE_INFINITY&&this.schedule(function(){return Be.unsubscribe()},ke),this.flushTests.push(ot);var ct=this.runMode;return{toBe:function(Nt,Xt,en){ot.ready=!0,ot.expected=ce.parseMarbles(Nt,Xt,en,!0,ct)}}}},{key:"expectSubscriptions",value:function(ee){var oe={actual:ee,ready:!1};this.flushTests.push(oe);var ge=this.runMode;return{toBe:function(ot){var xe="string"==typeof ot?[ot]:ot;oe.ready=!0,oe.expected=xe.map(function(_e){return ce.parseMarblesAsSubscriptions(_e,ge)})}}}},{key:"flush",value:function(){for(var ee=this,oe=this.hotObservables;oe.length>0;)oe.shift().setup();(0,M.Z)((0,U.Z)(ce.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ge){return!ge.ready||(ee.assertDeepEqual(ge.actual,ge.expected),!1)})}},{key:"run",value:function(ee){var oe=ce.frameTimeFactor,ge=this.maxFrames;ce.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,S.v.delegate=this;var Oe={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 ot=ee(Oe);return this.flush(),ot}finally{ce.frameTimeFactor=oe,this.maxFrames=ge,this.runMode=!1,S.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(ee){var oe=this,ge=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof ee)return new F(Number.POSITIVE_INFINITY);for(var Oe=ee.length,ot=-1,xe=Number.POSITIVE_INFINITY,_e=Number.POSITIVE_INFINITY,ke=0,Be=0;Be<Oe;Be++){var ct=ke,Mt=function(vt){ct+=vt*oe.frameTimeFactor},Nt=ee[Be];switch(Nt){case" ":ge||Mt(1);break;case"-":Mt(1);break;case"(":ot=ke,Mt(1);break;case")":ot=-1,Mt(1);break;case"^":if(xe!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");xe=ot>-1?ot:ke,Mt(1);break;case"!":if(_e!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");_e=ot>-1?ot:ke;break;default:if(ge&&Nt.match(/^[0-9]$/)&&(0===Be||" "===ee[Be-1])){var Xt=ee.slice(Be),en=Xt.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(en){Be+=en[0].length-1;var qt=parseFloat(en[1]),Xe=en[2],jt=void 0;switch(Xe){case"ms":jt=qt;break;case"s":jt=1e3*qt;break;case"m":jt=1e3*qt*60}Mt(jt/this.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Nt+"'.")}ke=ct}return _e<0?new F(xe):new F(xe,_e)}},{key:"parseMarbles",value:function(ee,oe,ge){var Oe=this,ot=arguments.length>3&&void 0!==arguments[3]&&arguments[3],xe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==ee.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var _e=ee.length,ke=[],Be=xe?ee.replace(/^[ ]+/,"").indexOf("^"):ee.indexOf("^"),ct=-1===Be?0:Be*-this.frameTimeFactor,Mt="object"!=typeof oe?function(on){return on}:function(on){return ot&&oe[on]instanceof k?oe[on].messages:oe[on]},Nt=-1,Xt=0;Xt<_e;Xt++){var en=ct,qt=function(_n){en+=_n*Oe.frameTimeFactor},Xe=void 0,jt=ee[Xt];switch(jt){case" ":xe||qt(1);break;case"-":case"^":qt(1);break;case"(":Nt=ct,qt(1);break;case")":Nt=-1,qt(1);break;case"|":Xe=y.P.createComplete(),qt(1);break;case"#":Xe=y.P.createError(ge||"error"),qt(1);break;default:if(xe&&jt.match(/^[0-9]$/)&&(0===Xt||" "===ee[Xt-1])){var rt=ee.slice(Xt),vt=rt.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(vt){Xt+=vt[0].length-1;var nt=parseFloat(vt[1]),Rt=vt[2],It=void 0;switch(Rt){case"ms":It=nt;break;case"s":It=1e3*nt;break;case"m":It=1e3*nt*60}qt(It/this.frameTimeFactor);break}}Xe=y.P.createNext(Mt(jt)),qt(1)}Xe&&ke.push({frame:Nt>-1?Nt:ct,notification:Xe}),ct=en}return ke}}]),ce}(w.y)},2301:function(qe,J,m){"use strict";m.r(J),m.d(J,{WebSocketSubject:function(){return Y.p},webSocket:function(){return z.j}});var z=m(7623),Y=m(2741)},5561:function(qe,J,m){"use strict";m(5772)},2033:function(qe,J){"use strict";var m,z;!function(){var Y=J||{};m=[],void 0!==(z=function(){return Y}.apply(J,m))&&(qe.exports=z),Y.default=Y;var M="http://www.w3.org/2000/xmlns/",L="http://www.w3.org/2000/svg",D=/url\(["']?(.+?)["']?\)/,y={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"},K=function(xe){return xe instanceof HTMLElement||xe instanceof SVGElement},F=function(xe){if(!K(xe))throw new Error("an HTMLElement or SVGElement is required; got "+xe)},E=function(xe){return new Promise(function(_e,ke){K(xe)?_e(xe):ke(new Error("an HTMLElement or SVGElement is required; got "+xe))})},k=function(xe){var _e=Object.keys(y).filter(function(ke){return xe.indexOf("."+ke)>0}).map(function(ke){return y[ke]});return _e?_e[0]:(console.error("Unknown font format for "+xe+". Fonts may not be working correctly."),"application/octet-stream")},T=function(xe,_e,ke){var Be=xe.viewBox&&xe.viewBox.baseVal&&xe.viewBox.baseVal[ke]||null!==_e.getAttribute(ke)&&!_e.getAttribute(ke).match(/%$/)&&parseInt(_e.getAttribute(ke))||xe.getBoundingClientRect()[ke]||parseInt(_e.style[ke])||parseInt(window.getComputedStyle(xe).getPropertyValue(ke));return null==Be||isNaN(parseFloat(Be))?0:Be},N=function(xe){for(var _e=window.atob(xe.split(",")[1]),ke=xe.split(",")[0].split(":")[1].split(";")[0],Be=new ArrayBuffer(_e.length),ct=new Uint8Array(Be),Mt=0;Mt<_e.length;Mt++)ct[Mt]=_e.charCodeAt(Mt);return new Blob([Be],{type:ke})},$=function(xe){return Promise.all(Array.from(xe.querySelectorAll("image")).map(function(_e){var ke=_e.getAttributeNS("http://www.w3.org/1999/xlink","href")||_e.getAttribute("href");return ke?(function(xe){return xe&&0===xe.lastIndexOf("http",0)&&-1===xe.lastIndexOf(window.location.host)}(ke)&&(ke+=(-1===ke.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(Be,ct){var Mt=document.createElement("canvas"),Nt=new Image;Nt.crossOrigin="anonymous",Nt.src=ke,Nt.onerror=function(){return ct(new Error("Could not load "+ke))},Nt.onload=function(){Mt.width=Nt.width,Mt.height=Nt.height,Mt.getContext("2d").drawImage(Nt,0,0),_e.setAttributeNS("http://www.w3.org/1999/xlink","href",Mt.toDataURL("image/png")),Be(!0)}})):Promise.resolve(null)}))},ce={},se=function(xe){return Promise.all(xe.map(function(_e){return new Promise(function(ke,Be){if(ce[_e.url])return ke(ce[_e.url]);var ct=new XMLHttpRequest;ct.addEventListener("load",function(){var Mt=function(xe){for(var _e="",ke=new Uint8Array(xe),Be=0;Be<ke.byteLength;Be++)_e+=String.fromCharCode(ke[Be]);return window.btoa(_e)}(ct.response),Nt=_e.text.replace(D,'url("data:'+_e.format+";base64,"+Mt+'")')+"\n";ce[_e.url]=Nt,ke(Nt)}),ct.addEventListener("error",function(Mt){console.warn("Failed to load font from: "+_e.url,Mt),ce[_e.url]=null,ke(null)}),ct.addEventListener("abort",function(Mt){console.warn("Aborted loading font from: "+_e.url,Mt),ke(null)}),ct.open("GET",_e.url),ct.responseType="arraybuffer",ct.send()})})).then(function(_e){return _e.filter(function(ke){return ke}).join("")})},ee=null,ge=function(xe,_e){var ke=_e||{},Be=ke.selectorRemap,ct=ke.modifyStyle,Mt=ke.modifyCss,Nt=ke.fonts,Xt=ke.excludeUnusedCss,en=Mt||function(rt,vt){return(Be?Be(rt):rt)+"{"+(ct?ct(vt):vt)+"}\n"},qt=[],Xe=void 0===Nt,jt=Nt||[];return(ee||(ee=Array.from(document.styleSheets).map(function(xe){try{return{rules:xe.cssRules,href:xe.href}}catch(_e){return console.warn("Stylesheet could not be loaded: "+xe.href,_e),{}}}))).forEach(function(rt){var vt=rt.rules,nt=rt.href;!vt||Array.from(vt).forEach(function(Rt){if(void 0!==Rt.style)if(function(xe,_e){if(_e)try{return xe.querySelector(_e)||xe.parentNode&&xe.parentNode.querySelector(_e)}catch(ke){console.warn('Invalid CSS selector "'+_e+'"',ke)}}(xe,Rt.selectorText))qt.push(en(Rt.selectorText,Rt.style.cssText));else if(Xe&&Rt.cssText.match(/^@font-face/)){var It=function(xe,_e){var ke=xe.cssText.match(D),Be=ke&&ke[1]||"";if(Be&&!Be.match(/^data:/)&&"about:blank"!==Be){var ct=Be.startsWith("../")?_e+"/../"+Be:Be.startsWith("./")?_e+"/."+Be:Be;return{text:xe.cssText,format:k(ct),url:ct}}}(Rt,nt);It&&jt.push(It)}else Xt||qt.push(Rt.cssText)})}),se(jt).then(function(rt){return qt.join("\n")+rt})},Oe=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};Y.prepareSvg=function(ot,xe,_e){F(ot);var ke=xe||{},Be=ke.left,ct=void 0===Be?0:Be,Mt=ke.top,Nt=void 0===Mt?0:Mt,Xt=ke.width,en=ke.height,qt=ke.scale,Xe=void 0===qt?1:qt,jt=ke.responsive,rt=void 0!==jt&&jt,vt=ke.excludeCss,nt=void 0!==vt&&vt;return $(ot).then(function(){var Rt=ot.cloneNode(!0);Rt.style.backgroundColor=(xe||{}).backgroundColor||ot.style.backgroundColor;var It=function(xe,_e,ke,Be){if("svg"===xe.tagName)return{width:ke||T(xe,_e,"width"),height:Be||T(xe,_e,"height")};if(xe.getBBox){var ct=xe.getBBox(),Mt=ct.x,Nt=ct.y;return{width:Mt+ct.width,height:Nt+ct.height}}}(ot,Rt,Xt,en),on=It.width,_n=It.height;if("svg"!==ot.tagName){if(!ot.getBBox)return void console.error("Attempted to render non-SVG element",ot);null!=Rt.getAttribute("transform")&&Rt.setAttribute("transform",Rt.getAttribute("transform").replace(/translate\(.*?\)/,""));var An=document.createElementNS("http://www.w3.org/2000/svg","svg");An.appendChild(Rt),Rt=An}if(Rt.setAttribute("version","1.1"),Rt.setAttribute("viewBox",[ct,Nt,on,_n].join(" ")),Rt.getAttribute("xmlns")||Rt.setAttributeNS(M,"xmlns",L),Rt.getAttribute("xmlns:xlink")||Rt.setAttributeNS(M,"xmlns:xlink","http://www.w3.org/1999/xlink"),rt?(Rt.removeAttribute("width"),Rt.removeAttribute("height"),Rt.setAttribute("preserveAspectRatio","xMinYMin meet")):(Rt.setAttribute("width",on*Xe),Rt.setAttribute("height",_n*Xe)),Array.from(Rt.querySelectorAll("foreignObject > *")).forEach(function(Et){Et.setAttributeNS(M,"xmlns","svg"===Et.tagName?L:"http://www.w3.org/1999/xhtml")}),!nt)return ge(ot,xe).then(function(Et){var Ut=document.createElement("style");Ut.setAttribute("type","text/css"),Ut.innerHTML="<![CDATA[\n"+Et+"\n]]>";var Ht=document.createElement("defs");Ht.appendChild(Ut),Rt.insertBefore(Ht,Rt.firstChild);var sn=document.createElement("div");sn.appendChild(Rt);var yt=sn.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof _e)return{src:yt,width:on,height:_n};_e(yt,on,_n)});var Gt=document.createElement("div");Gt.appendChild(Rt);var Zt=Gt.innerHTML;if("function"!=typeof _e)return{src:Zt,width:on,height:_n};_e(Zt,on,_n)})},Y.svgAsDataUri=function(ot,xe,_e){return F(ot),Y.prepareSvg(ot,xe).then(function(ke){var Be=ke.src,ct=ke.width,Mt=ke.height,Nt="data:image/svg+xml;base64,"+window.btoa(function(xe){return decodeURIComponent(encodeURIComponent(xe).replace(/%([0-9A-F]{2})/g,function(_e,ke){var Be=String.fromCharCode("0x"+ke);return"%"===Be?"%25":Be}))}('<?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 " ">]>'+Be));return"function"==typeof _e&&_e(Nt,ct,Mt),Nt})},Y.svgAsPngUri=function(ot,xe,_e){F(ot);var ke=xe||{},Be=ke.encoderType,ct=void 0===Be?"image/png":Be,Mt=ke.encoderOptions,Nt=void 0===Mt?.8:Mt,Xt=ke.canvg,en=function(Xe){var jt=Xe.src,rt=Xe.width,vt=Xe.height,nt=document.createElement("canvas"),Rt=nt.getContext("2d"),It=window.devicePixelRatio||1;nt.width=rt*It,nt.height=vt*It,nt.style.width=nt.width+"px",nt.style.height=nt.height+"px",Rt.setTransform(It,0,0,It,0,0),Xt?Xt(nt,jt):Rt.drawImage(jt,0,0);var on=void 0;try{on=nt.toDataURL(ct,Nt)}catch(_n){if("undefined"!=typeof SecurityError&&_n instanceof SecurityError||"SecurityError"===_n.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw _n}return"function"==typeof _e&&_e(on,nt.width,nt.height),Promise.resolve(on)};return Xt?Y.prepareSvg(ot,xe).then(en):Y.svgAsDataUri(ot,xe).then(function(qt){return new Promise(function(Xe,jt){var rt=new Image;rt.onload=function(){return Xe(en({src:rt,width:rt.width,height:rt.height}))},rt.onerror=function(){jt("There was an error loading the data URI as an image on the following SVG\n"+window.atob(qt.slice(26))+"Open the following link to see browser's diagnosis\n"+qt)},rt.src=qt})})},Y.download=function(ot,xe,_e){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(N(xe),ot);else{var ke=document.createElement("a");if("download"in ke){ke.download=ot,ke.style.display="none",document.body.appendChild(ke);try{var Be=N(xe),ct=URL.createObjectURL(Be);ke.href=ct,ke.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(ct)})}}catch(Mt){console.error(Mt),console.warn("Error while getting object URL. Falling back to string URL."),ke.href=xe}ke.click(),document.body.removeChild(ke)}else _e&&_e.popup&&(_e.popup.document.title=ot,_e.popup.location.replace(xe))}},Y.saveSvg=function(ot,xe,_e){var ke=Oe();return E(ot).then(function(Be){return Y.svgAsDataUri(Be,_e||{})}).then(function(Be){return Y.download(xe,Be,ke)})},Y.saveSvgAsPng=function(ot,xe,_e){var ke=Oe();return E(ot).then(function(Be){return Y.svgAsPngUri(Be,_e||{})}).then(function(Be){return Y.download(xe,Be,ke)})}}()},6842:function(qe,J,m){var z=m(2472),Y=Object.prototype.hasOwnProperty,M="undefined"!=typeof Map;function U(){this._array=[],this._set=M?new Map:Object.create(null)}U.fromArray=function(P,D){for(var y=new U,K=0,F=P.length;K<F;K++)y.add(P[K],D);return y},U.prototype.size=function(){return M?this._set.size:Object.getOwnPropertyNames(this._set).length},U.prototype.add=function(P,D){var y=M?P:z.toSetString(P),K=M?this.has(P):Y.call(this._set,y),F=this._array.length;(!K||D)&&this._array.push(P),K||(M?this._set.set(P,F):this._set[y]=F)},U.prototype.has=function(P){if(M)return this._set.has(P);var D=z.toSetString(P);return Y.call(this._set,D)},U.prototype.indexOf=function(P){if(M){var D=this._set.get(P);if(D>=0)return D}else{var y=z.toSetString(P);if(Y.call(this._set,y))return this._set[y]}throw new Error('"'+P+'" is not in the set.')},U.prototype.at=function(P){if(P>=0&&P<this._array.length)return this._array[P];throw new Error("No element indexed by "+P)},U.prototype.toArray=function(){return this._array.slice()},J.I=U},3357:function(qe,J,m){var z=m(5773);J.encode=function(K){var E,F="",A=function P(y){return y<0?1+(-y<<1):0+(y<<1)}(K);do{E=31&A,(A>>>=5)>0&&(E|=32),F+=z.encode(E)}while(A>0);return F},J.decode=function(K,F,E){var T,w,A=K.length,k=0,I=0;do{if(F>=A)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(w=z.decode(K.charCodeAt(F++))))throw new Error("Invalid base64 digit: "+K.charAt(F-1));T=!!(32&w),k+=(w&=31)<<I,I+=5}while(T);E.value=function D(y){var F=y>>1;return 1==(1&y)?-F:F}(k),E.rest=F}},5773:function(qe,J){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");J.encode=function(z){if(0<=z&&z<m.length)return m[z];throw new TypeError("Must be between 0 and 63: "+z)},J.decode=function(z){return 65<=z&&z<=90?z-65:97<=z&&z<=122?z-97+26:48<=z&&z<=57?z-48+52:43==z?62:47==z?63:-1}},1490:function(qe,J,m){var z=m(2472);function M(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}M.prototype.unsortedForEach=function(L,P){this._array.forEach(L,P)},M.prototype.add=function(L){!function Y(U,L){var P=U.generatedLine,D=L.generatedLine,y=U.generatedColumn,K=L.generatedColumn;return D>P||D==P&&K>=y||z.compareByGeneratedPositionsInflated(U,L)<=0}(this._last,L)?(this._sorted=!1,this._array.push(L)):(this._last=L,this._array.push(L))},M.prototype.toArray=function(){return this._sorted||(this._array.sort(z.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},J.H=M},3058:function(qe,J,m){var z=m(3357),Y=m(2472),M=m(6842).I,U=m(1490).H;function L(P){P||(P={}),this._file=Y.getArg(P,"file",null),this._sourceRoot=Y.getArg(P,"sourceRoot",null),this._skipValidation=Y.getArg(P,"skipValidation",!1),this._sources=new M,this._names=new M,this._mappings=new U,this._sourcesContents=null}L.prototype._version=3,L.fromSourceMap=function(D){var y=D.sourceRoot,K=new L({file:D.file,sourceRoot:y});return D.eachMapping(function(F){var E={generated:{line:F.generatedLine,column:F.generatedColumn}};null!=F.source&&(E.source=F.source,null!=y&&(E.source=Y.relative(y,E.source)),E.original={line:F.originalLine,column:F.originalColumn},null!=F.name&&(E.name=F.name)),K.addMapping(E)}),D.sources.forEach(function(F){var E=F;null!==y&&(E=Y.relative(y,F)),K._sources.has(E)||K._sources.add(E);var A=D.sourceContentFor(F);null!=A&&K.setSourceContent(F,A)}),K},L.prototype.addMapping=function(D){var y=Y.getArg(D,"generated"),K=Y.getArg(D,"original",null),F=Y.getArg(D,"source",null),E=Y.getArg(D,"name",null);this._skipValidation||this._validateMapping(y,K,F,E),null!=F&&(F=String(F),this._sources.has(F)||this._sources.add(F)),null!=E&&(E=String(E),this._names.has(E)||this._names.add(E)),this._mappings.add({generatedLine:y.line,generatedColumn:y.column,originalLine:null!=K&&K.line,originalColumn:null!=K&&K.column,source:F,name:E})},L.prototype.setSourceContent=function(D,y){var K=D;null!=this._sourceRoot&&(K=Y.relative(this._sourceRoot,K)),null!=y?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Y.toSetString(K)]=y):this._sourcesContents&&(delete this._sourcesContents[Y.toSetString(K)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},L.prototype.applySourceMap=function(D,y,K){var F=y;if(null==y){if(null==D.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');F=D.file}var E=this._sourceRoot;null!=E&&(F=Y.relative(E,F));var A=new M,k=new M;this._mappings.unsortedForEach(function(I){if(I.source===F&&null!=I.originalLine){var T=D.originalPositionFor({line:I.originalLine,column:I.originalColumn});null!=T.source&&(I.source=T.source,null!=K&&(I.source=Y.join(K,I.source)),null!=E&&(I.source=Y.relative(E,I.source)),I.originalLine=T.line,I.originalColumn=T.column,null!=T.name&&(I.name=T.name))}var w=I.source;null!=w&&!A.has(w)&&A.add(w);var S=I.name;null!=S&&!k.has(S)&&k.add(S)},this),this._sources=A,this._names=k,D.sources.forEach(function(I){var T=D.sourceContentFor(I);null!=T&&(null!=K&&(I=Y.join(K,I)),null!=E&&(I=Y.relative(E,I)),this.setSourceContent(I,T))},this)},L.prototype._validateMapping=function(D,y,K,F){if(y&&"number"!=typeof y.line&&"number"!=typeof y.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(!(D&&"line"in D&&"column"in D&&D.line>0&&D.column>=0)||y||K||F){if(D&&"line"in D&&"column"in D&&y&&"line"in y&&"column"in y&&D.line>0&&D.column>=0&&y.line>0&&y.column>=0&&K)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:D,source:K,original:y,name:F}))}},L.prototype._serializeMappings=function(){for(var I,T,w,S,D=0,y=1,K=0,F=0,E=0,A=0,k="",N=this._mappings.toArray(),R=0,W=N.length;R<W;R++){if(I="",(T=N[R]).generatedLine!==y)for(D=0;T.generatedLine!==y;)I+=";",y++;else if(R>0){if(!Y.compareByGeneratedPositionsInflated(T,N[R-1]))continue;I+=","}I+=z.encode(T.generatedColumn-D),D=T.generatedColumn,null!=T.source&&(S=this._sources.indexOf(T.source),I+=z.encode(S-A),A=S,I+=z.encode(T.originalLine-1-F),F=T.originalLine-1,I+=z.encode(T.originalColumn-K),K=T.originalColumn,null!=T.name&&(w=this._names.indexOf(T.name),I+=z.encode(w-E),E=w)),k+=I}return k},L.prototype._generateSourcesContent=function(D,y){return D.map(function(K){if(!this._sourcesContents)return null;null!=y&&(K=Y.relative(y,K));var F=Y.toSetString(K);return Object.prototype.hasOwnProperty.call(this._sourcesContents,F)?this._sourcesContents[F]:null},this)},L.prototype.toJSON=function(){var D={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(D.file=this._file),null!=this._sourceRoot&&(D.sourceRoot=this._sourceRoot),this._sourcesContents&&(D.sourcesContent=this._generateSourcesContent(D.sources,D.sourceRoot)),D},L.prototype.toString=function(){return JSON.stringify(this.toJSON())},J.h=L},2472:function(qe,J){J.getArg=function m(se,ee,oe){if(ee in se)return se[ee];if(3===arguments.length)return oe;throw new Error('"'+ee+'" is a required argument.')};var z=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Y=/^data:.+\,.+$/;function M(se){var ee=se.match(z);return ee?{scheme:ee[1],auth:ee[2],host:ee[3],port:ee[4],path:ee[5]}:null}function U(se){var ee="";return se.scheme&&(ee+=se.scheme+":"),ee+="//",se.auth&&(ee+=se.auth+"@"),se.host&&(ee+=se.host),se.port&&(ee+=":"+se.port),se.path&&(ee+=se.path),ee}J.urlParse=M,J.urlGenerate=U;var D=function P(se){var ee=[];return function(oe){for(var ge=0;ge<ee.length;ge++)if(ee[ge].input===oe){var Oe=ee[0];return ee[0]=ee[ge],ee[ge]=Oe,ee[0].result}var ot=se(oe);return ee.unshift({input:oe,result:ot}),ee.length>32&&ee.pop(),ot}}(function(ee){var oe=ee,ge=M(ee);if(ge){if(!ge.path)return ee;oe=ge.path}for(var Oe=J.isAbsolute(oe),ot=[],xe=0,_e=0;;){if(xe=_e,-1===(_e=oe.indexOf("/",xe))){ot.push(oe.slice(xe));break}for(ot.push(oe.slice(xe,_e));_e<oe.length&&"/"===oe[_e];)_e++}var ke,Be=0;for(_e=ot.length-1;_e>=0;_e--)"."===(ke=ot[_e])?ot.splice(_e,1):".."===ke?Be++:Be>0&&(""===ke?(ot.splice(_e+1,Be),Be=0):(ot.splice(_e,2),Be--));return""===(oe=ot.join("/"))&&(oe=Oe?"/":"."),ge?(ge.path=oe,U(ge)):oe});function y(se,ee){""===se&&(se="."),""===ee&&(ee=".");var oe=M(ee),ge=M(se);if(ge&&(se=ge.path||"/"),oe&&!oe.scheme)return ge&&(oe.scheme=ge.scheme),U(oe);if(oe||ee.match(Y))return ee;if(ge&&!ge.host&&!ge.path)return ge.host=ee,U(ge);var Oe="/"===ee.charAt(0)?ee:D(se.replace(/\/+$/,"")+"/"+ee);return ge?(ge.path=Oe,U(ge)):Oe}J.normalize=D,J.join=y,J.isAbsolute=function(se){return"/"===se.charAt(0)||z.test(se)},J.relative=function K(se,ee){""===se&&(se="."),se=se.replace(/\/$/,"");for(var oe=0;0!==ee.indexOf(se+"/");){var ge=se.lastIndexOf("/");if(ge<0||(se=se.slice(0,ge)).match(/^([^\/]+:\/)?\/*$/))return ee;++oe}return Array(oe+1).join("../")+ee.substr(se.length+1)};var F=!("__proto__"in Object.create(null));function E(se){return se}function I(se){if(!se)return!1;var ee=se.length;if(ee<9||95!==se.charCodeAt(ee-1)||95!==se.charCodeAt(ee-2)||111!==se.charCodeAt(ee-3)||116!==se.charCodeAt(ee-4)||111!==se.charCodeAt(ee-5)||114!==se.charCodeAt(ee-6)||112!==se.charCodeAt(ee-7)||95!==se.charCodeAt(ee-8)||95!==se.charCodeAt(ee-9))return!1;for(var oe=ee-10;oe>=0;oe--)if(36!==se.charCodeAt(oe))return!1;return!0}function R(se,ee){return se===ee?0:null===se?1:null===ee?-1:se>ee?1:-1}J.toSetString=F?E:function A(se){return I(se)?"$"+se:se},J.fromSetString=F?E:function k(se){return I(se)?se.slice(1):se},J.compareByOriginalPositions=function T(se,ee,oe){var ge=R(se.source,ee.source);return 0!==ge||0!==(ge=se.originalLine-ee.originalLine)||(0!==(ge=se.originalColumn-ee.originalColumn)||oe)||0!==(ge=se.generatedColumn-ee.generatedColumn)||0!==(ge=se.generatedLine-ee.generatedLine)?ge:R(se.name,ee.name)},J.compareByOriginalPositionsNoSource=function w(se,ee,oe){var ge;return 0!==(ge=se.originalLine-ee.originalLine)||(0!==(ge=se.originalColumn-ee.originalColumn)||oe)||0!==(ge=se.generatedColumn-ee.generatedColumn)||0!==(ge=se.generatedLine-ee.generatedLine)?ge:R(se.name,ee.name)},J.compareByGeneratedPositionsDeflated=function S(se,ee,oe){var ge=se.generatedLine-ee.generatedLine;return 0!==ge||(0!==(ge=se.generatedColumn-ee.generatedColumn)||oe)||0!==(ge=R(se.source,ee.source))||0!==(ge=se.originalLine-ee.originalLine)||0!==(ge=se.originalColumn-ee.originalColumn)?ge:R(se.name,ee.name)},J.compareByGeneratedPositionsDeflatedNoLine=function N(se,ee,oe){var ge=se.generatedColumn-ee.generatedColumn;return 0!==ge||oe||0!==(ge=R(se.source,ee.source))||0!==(ge=se.originalLine-ee.originalLine)||0!==(ge=se.originalColumn-ee.originalColumn)?ge:R(se.name,ee.name)},J.compareByGeneratedPositionsInflated=function W(se,ee){var oe=se.generatedLine-ee.generatedLine;return 0!==oe||0!==(oe=se.generatedColumn-ee.generatedColumn)||0!==(oe=R(se.source,ee.source))||0!==(oe=se.originalLine-ee.originalLine)||0!==(oe=se.originalColumn-ee.originalColumn)?oe:R(se.name,ee.name)},J.parseSourceMapInput=function $(se){return JSON.parse(se.replace(/^\)]}'[^\n]*\n/,""))},J.computeSourceURL=function ce(se,ee,oe){if(ee=ee||"",se&&("/"!==se[se.length-1]&&"/"!==ee[0]&&(se+="/"),ee=se+ee),oe){var ge=M(oe);if(!ge)throw new Error("sourceMapURL could not be parsed");if(ge.path){var Oe=ge.path.lastIndexOf("/");Oe>=0&&(ge.path=ge.path.substring(0,Oe+1))}ee=y(U(ge),ee)}return D(ee)}},1452:function(qe){qe.exports=function(J){"use strict";var z=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function M(w,S){var N=w[0],R=w[1],W=w[2],$=w[3];R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+S[0]-680876936|0)<<7|N>>>25)+R|0)&R|~N&W)+S[1]-389564586|0)<<12|$>>>20)+N|0)&N|~$&R)+S[2]+606105819|0)<<17|W>>>15)+$|0)&$|~W&N)+S[3]-1044525330|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+S[4]-176418897|0)<<7|N>>>25)+R|0)&R|~N&W)+S[5]+1200080426|0)<<12|$>>>20)+N|0)&N|~$&R)+S[6]-1473231341|0)<<17|W>>>15)+$|0)&$|~W&N)+S[7]-45705983|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+S[8]+1770035416|0)<<7|N>>>25)+R|0)&R|~N&W)+S[9]-1958414417|0)<<12|$>>>20)+N|0)&N|~$&R)+S[10]-42063|0)<<17|W>>>15)+$|0)&$|~W&N)+S[11]-1990404162|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&W|~R&$)+S[12]+1804603682|0)<<7|N>>>25)+R|0)&R|~N&W)+S[13]-40341101|0)<<12|$>>>20)+N|0)&N|~$&R)+S[14]-1502002290|0)<<17|W>>>15)+$|0)&$|~W&N)+S[15]+1236535329|0)<<22|R>>>10)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+S[1]-165796510|0)<<5|N>>>27)+R|0)&W|R&~W)+S[6]-1069501632|0)<<9|$>>>23)+N|0)&R|N&~R)+S[11]+643717713|0)<<14|W>>>18)+$|0)&N|$&~N)+S[0]-373897302|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+S[5]-701558691|0)<<5|N>>>27)+R|0)&W|R&~W)+S[10]+38016083|0)<<9|$>>>23)+N|0)&R|N&~R)+S[15]-660478335|0)<<14|W>>>18)+$|0)&N|$&~N)+S[4]-405537848|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+S[9]+568446438|0)<<5|N>>>27)+R|0)&W|R&~W)+S[14]-1019803690|0)<<9|$>>>23)+N|0)&R|N&~R)+S[3]-187363961|0)<<14|W>>>18)+$|0)&N|$&~N)+S[8]+1163531501|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R&$|W&~$)+S[13]-1444681467|0)<<5|N>>>27)+R|0)&W|R&~W)+S[2]-51403784|0)<<9|$>>>23)+N|0)&R|N&~R)+S[7]+1735328473|0)<<14|W>>>18)+$|0)&N|$&~N)+S[12]-1926607734|0)<<20|R>>>12)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+S[5]-378558|0)<<4|N>>>28)+R|0)^R^W)+S[8]-2022574463|0)<<11|$>>>21)+N|0)^N^R)+S[11]+1839030562|0)<<16|W>>>16)+$|0)^$^N)+S[14]-35309556|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+S[1]-1530992060|0)<<4|N>>>28)+R|0)^R^W)+S[4]+1272893353|0)<<11|$>>>21)+N|0)^N^R)+S[7]-155497632|0)<<16|W>>>16)+$|0)^$^N)+S[10]-1094730640|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+S[13]+681279174|0)<<4|N>>>28)+R|0)^R^W)+S[0]-358537222|0)<<11|$>>>21)+N|0)^N^R)+S[3]-722521979|0)<<16|W>>>16)+$|0)^$^N)+S[6]+76029189|0)<<23|R>>>9)+W|0,R=((R+=((W=((W+=(($=(($+=((N=((N+=(R^W^$)+S[9]-640364487|0)<<4|N>>>28)+R|0)^R^W)+S[12]-421815835|0)<<11|$>>>21)+N|0)^N^R)+S[15]+530742520|0)<<16|W>>>16)+$|0)^$^N)+S[2]-995338651|0)<<23|R>>>9)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+S[0]-198630844|0)<<6|N>>>26)+R|0)|~W))+S[7]+1126891415|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+S[14]-1416354905|0)<<15|W>>>17)+$|0)|~N))+S[5]-57434055|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+S[12]+1700485571|0)<<6|N>>>26)+R|0)|~W))+S[3]-1894986606|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+S[10]-1051523|0)<<15|W>>>17)+$|0)|~N))+S[1]-2054922799|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+S[8]+1873313359|0)<<6|N>>>26)+R|0)|~W))+S[15]-30611744|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+S[6]-1560198380|0)<<15|W>>>17)+$|0)|~N))+S[13]+1309151649|0)<<21|R>>>11)+W|0,R=((R+=(($=(($+=(R^((N=((N+=(W^(R|~$))+S[4]-145523070|0)<<6|N>>>26)+R|0)|~W))+S[11]-1120210379|0)<<10|$>>>22)+N|0)^((W=((W+=(N^($|~R))+S[2]+718787259|0)<<15|W>>>17)+$|0)|~N))+S[9]-343485551|0)<<21|R>>>11)+W|0,w[0]=N+w[0]|0,w[1]=R+w[1]|0,w[2]=W+w[2]|0,w[3]=$+w[3]|0}function U(w){var N,S=[];for(N=0;N<64;N+=4)S[N>>2]=w.charCodeAt(N)+(w.charCodeAt(N+1)<<8)+(w.charCodeAt(N+2)<<16)+(w.charCodeAt(N+3)<<24);return S}function L(w){var N,S=[];for(N=0;N<64;N+=4)S[N>>2]=w[N]+(w[N+1]<<8)+(w[N+2]<<16)+(w[N+3]<<24);return S}function P(w){var R,W,$,ce,se,ee,S=w.length,N=[1732584193,-271733879,-1732584194,271733878];for(R=64;R<=S;R+=64)M(N,U(w.substring(R-64,R)));for(W=(w=w.substring(R-64)).length,$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=0;R<W;R+=1)$[R>>2]|=w.charCodeAt(R)<<(R%4<<3);if($[R>>2]|=128<<(R%4<<3),R>55)for(M(N,$),R=0;R<16;R+=1)$[R]=0;return ce=(ce=8*S).toString(16).match(/(.*?)(.{0,8})$/),se=parseInt(ce[2],16),ee=parseInt(ce[1],16)||0,$[14]=se,$[15]=ee,M(N,$),N}function D(w){var R,W,$,ce,se,ee,S=w.length,N=[1732584193,-271733879,-1732584194,271733878];for(R=64;R<=S;R+=64)M(N,L(w.subarray(R-64,R)));for(W=(w=R-64<S?w.subarray(R-64):new Uint8Array(0)).length,$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=0;R<W;R+=1)$[R>>2]|=w[R]<<(R%4<<3);if($[R>>2]|=128<<(R%4<<3),R>55)for(M(N,$),R=0;R<16;R+=1)$[R]=0;return ce=(ce=8*S).toString(16).match(/(.*?)(.{0,8})$/),se=parseInt(ce[2],16),ee=parseInt(ce[1],16)||0,$[14]=se,$[15]=ee,M(N,$),N}function y(w){var N,S="";for(N=0;N<4;N+=1)S+=z[w>>8*N+4&15]+z[w>>8*N&15];return S}function K(w){var S;for(S=0;S<w.length;S+=1)w[S]=y(w[S]);return w.join("")}function F(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function E(w,S){var $,N=w.length,R=new ArrayBuffer(N),W=new Uint8Array(R);for($=0;$<N;$+=1)W[$]=w.charCodeAt($);return S?W:R}function A(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function k(w,S,N){var R=new Uint8Array(w.byteLength+S.byteLength);return R.set(new Uint8Array(w)),R.set(new Uint8Array(S),w.byteLength),N?R:R.buffer}function I(w){var R,S=[],N=w.length;for(R=0;R<N-1;R+=2)S.push(parseInt(w.substr(R,2),16));return String.fromCharCode.apply(String,S)}function T(){this.reset()}return K(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function w(S,N){return(S=0|S||0)<0?Math.max(S+N,0):Math.min(S,N)}ArrayBuffer.prototype.slice=function(S,N){var ce,se,ee,oe,R=this.byteLength,W=w(S,R),$=R;return N!==J&&($=w(N,R)),W>$?new ArrayBuffer(0):(ce=$-W,se=new ArrayBuffer(ce),ee=new Uint8Array(se),oe=new Uint8Array(this,W,ce),ee.set(oe),se)}}(),T.prototype.append=function(w){return this.appendBinary(F(w)),this},T.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var N,S=this._buff.length;for(N=64;N<=S;N+=64)M(this._hash,U(this._buff.substring(N-64,N)));return this._buff=this._buff.substring(N-64),this},T.prototype.end=function(w){var R,$,S=this._buff,N=S.length,W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(R=0;R<N;R+=1)W[R>>2]|=S.charCodeAt(R)<<(R%4<<3);return this._finish(W,N),$=K(this._hash),w&&($=I($)),this.reset(),$},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(w,S){var R,W,$,N=S;if(w[N>>2]|=128<<(N%4<<3),N>55)for(M(this._hash,w),N=0;N<16;N+=1)w[N]=0;R=(R=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),W=parseInt(R[2],16),$=parseInt(R[1],16)||0,w[14]=W,w[15]=$,M(this._hash,w)},T.hash=function(w,S){return T.hashBinary(F(w),S)},T.hashBinary=function(w,S){var R=K(P(w));return S?I(R):R},T.ArrayBuffer=function(){this.reset()},T.ArrayBuffer.prototype.append=function(w){var R,S=k(this._buff.buffer,w,!0),N=S.length;for(this._length+=w.byteLength,R=64;R<=N;R+=64)M(this._hash,L(S.subarray(R-64,R)));return this._buff=R-64<N?new Uint8Array(S.buffer.slice(R-64)):new Uint8Array(0),this},T.ArrayBuffer.prototype.end=function(w){var W,$,S=this._buff,N=S.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(W=0;W<N;W+=1)R[W>>2]|=S[W]<<(W%4<<3);return this._finish(R,N),$=K(this._hash),w&&($=I($)),this.reset(),$},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var w=T.prototype.getState.call(this);return w.buff=A(w.buff),w},T.ArrayBuffer.prototype.setState=function(w){return w.buff=E(w.buff,!0),T.prototype.setState.call(this,w)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(w,S){var R=K(D(new Uint8Array(w)));return S?I(R):R},T}()},986:function(qe){window,qe.exports=function(J){var m={};function z(Y){if(m[Y])return m[Y].exports;var M=m[Y]={i:Y,l:!1,exports:{}};return J[Y].call(M.exports,M,M.exports,z),M.l=!0,M.exports}return z.m=J,z.c=m,z.d=function(Y,M,U){z.o(Y,M)||Object.defineProperty(Y,M,{enumerable:!0,get:U})},z.r=function(Y){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Y,"__esModule",{value:!0})},z.t=function(Y,M){if(1&M&&(Y=z(Y)),8&M||4&M&&"object"==typeof Y&&Y&&Y.__esModule)return Y;var U=Object.create(null);if(z.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:Y}),2&M&&"string"!=typeof Y)for(var L in Y)z.d(U,L,function(P){return Y[P]}.bind(null,L));return U},z.n=function(Y){var M=Y&&Y.__esModule?function(){return Y.default}:function(){return Y};return z.d(M,"a",M),M},z.o=function(Y,M){return Object.prototype.hasOwnProperty.call(Y,M)},z.p="",z(z.s=0)}([function(J,m,z){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var Y=function(){function U(L,P){this._disposables=[],this._socket=L,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return U.prototype.activate=function(L){var P=this;this._disposables.push(M(this._socket,"message",function(D){var y=D.data;L.write("string"==typeof y?y:new Uint8Array(y))})),this._bidirectional&&(this._disposables.push(L.onData(function(D){return P._sendData(D)})),this._disposables.push(L.onBinary(function(D){return P._sendBinary(D)}))),this._disposables.push(M(this._socket,"close",function(){return P.dispose()})),this._disposables.push(M(this._socket,"error",function(){return P.dispose()}))},U.prototype.dispose=function(){this._disposables.forEach(function(L){return L.dispose()})},U.prototype._sendData=function(L){1===this._socket.readyState&&this._socket.send(L)},U.prototype._sendBinary=function(L){if(1===this._socket.readyState){for(var P=new Uint8Array(L.length),D=0;D<L.length;++D)P[D]=255&L.charCodeAt(D);this._socket.send(P)}},U}();function M(U,L,P){return U.addEventListener(L,P),{dispose:function(){P&&U.removeEventListener(L,P)}}}m.AttachAddon=Y}])},9162:function(qe){self,qe.exports=function(){"use strict";var J={775:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.FitAddon=void 0;var U=function(){function L(){}return L.prototype.activate=function(P){this._terminal=P},L.prototype.dispose=function(){},L.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var D=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(D._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},L.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 D=window.getComputedStyle(this._terminal.element.parentElement),y=parseInt(D.getPropertyValue("height")),K=Math.max(0,parseInt(D.getPropertyValue("width"))),F=window.getComputedStyle(this._terminal.element),E=y-(parseInt(F.getPropertyValue("padding-top"))+parseInt(F.getPropertyValue("padding-bottom"))),A=K-(parseInt(F.getPropertyValue("padding-right"))+parseInt(F.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(A/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(E/P._renderService.dimensions.actualCellHeight))}}}},L}();M.FitAddon=U}},m={};return function z(Y){if(m[Y])return m[Y].exports;var M=m[Y]={exports:{}};return J[Y](M,M.exports,z),M.exports}(775)}()},4793:function(qe){self,qe.exports=function(){"use strict";var J={4567:function(Y,M,U){var L,P=this&&this.__extends||(L=function(w,S){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,S)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function S(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(S.prototype=w.prototype,new S)});Object.defineProperty(M,"__esModule",{value:!0}),M.AccessibilityManager=void 0;var D=U(9042),y=U(6114),K=U(9924),F=U(3656),E=U(844),A=U(5596),k=U(9631),I=function(T){function w(S,N){var R=T.call(this)||this;R._terminal=S,R._renderService=N,R._liveRegionLineCount=0,R._charsToConsume=[],R._charsToAnnounce="",R._accessibilityTreeRoot=document.createElement("div"),R._accessibilityTreeRoot.classList.add("xterm-accessibility"),R._accessibilityTreeRoot.tabIndex=0,R._rowContainer=document.createElement("div"),R._rowContainer.setAttribute("role","list"),R._rowContainer.classList.add("xterm-accessibility-tree"),R._rowElements=[];for(var W=0;W<R._terminal.rows;W++)R._rowElements[W]=R._createAccessibilityTreeNode(),R._rowContainer.appendChild(R._rowElements[W]);if(R._topBoundaryFocusListener=function($){return R._onBoundaryFocus($,0)},R._bottomBoundaryFocusListener=function($){return R._onBoundaryFocus($,1)},R._rowElements[0].addEventListener("focus",R._topBoundaryFocusListener),R._rowElements[R._rowElements.length-1].addEventListener("focus",R._bottomBoundaryFocusListener),R._refreshRowsDimensions(),R._accessibilityTreeRoot.appendChild(R._rowContainer),R._renderRowsDebouncer=new K.TimeBasedDebouncer(R._renderRows.bind(R)),R._refreshRows(),R._liveRegion=document.createElement("div"),R._liveRegion.classList.add("live-region"),R._liveRegion.setAttribute("aria-live","assertive"),R._accessibilityTreeRoot.appendChild(R._liveRegion),!R._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return R._terminal.element.insertAdjacentElement("afterbegin",R._accessibilityTreeRoot),R.register(R._renderRowsDebouncer),R.register(R._terminal.onResize(function($){return R._onResize($.rows)})),R.register(R._terminal.onRender(function($){return R._refreshRows($.start,$.end)})),R.register(R._terminal.onScroll(function(){return R._refreshRows()})),R.register(R._terminal.onA11yChar(function($){return R._onChar($)})),R.register(R._terminal.onLineFeed(function(){return R._onChar("\n")})),R.register(R._terminal.onA11yTab(function($){return R._onTab($)})),R.register(R._terminal.onKey(function($){return R._onKey($.key)})),R.register(R._terminal.onBlur(function(){return R._clearLiveRegion()})),R.register(R._renderService.onDimensionsChange(function(){return R._refreshRowsDimensions()})),R._screenDprMonitor=new A.ScreenDprMonitor,R.register(R._screenDprMonitor),R._screenDprMonitor.setListener(function(){return R._refreshRowsDimensions()}),R.register((0,F.addDisposableDomListener)(window,"resize",function(){return R._refreshRowsDimensions()})),R}return P(w,T),w.prototype.dispose=function(){T.prototype.dispose.call(this),(0,k.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},w.prototype._onBoundaryFocus=function(S,N){var R=S.target,W=this._rowElements[0===N?1:this._rowElements.length-2];if(R.getAttribute("aria-posinset")!==(0===N?"1":""+this._terminal.buffer.lines.length)&&S.relatedTarget===W){var $,ce;if(0===N?($=R,ce=this._rowElements.pop(),this._rowContainer.removeChild(ce)):($=this._rowElements.shift(),ce=R,this._rowContainer.removeChild($)),$.removeEventListener("focus",this._topBoundaryFocusListener),ce.removeEventListener("focus",this._bottomBoundaryFocusListener),0===N){var se=this._createAccessibilityTreeNode();this._rowElements.unshift(se),this._rowContainer.insertAdjacentElement("afterbegin",se)}else se=this._createAccessibilityTreeNode(),this._rowElements.push(se),this._rowContainer.appendChild(se);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===N?-1:1),this._rowElements[0===N?1:this._rowElements.length-2].focus(),S.preventDefault(),S.stopImmediatePropagation()}},w.prototype._onResize=function(S){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var N=this._rowContainer.children.length;N<this._terminal.rows;N++)this._rowElements[N]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[N]);for(;this._rowElements.length>S;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},w.prototype._createAccessibilityTreeNode=function(){var S=document.createElement("div");return S.setAttribute("role","listitem"),S.tabIndex=-1,this._refreshRowDimensions(S),S},w.prototype._onTab=function(S){for(var N=0;N<S;N++)this._onChar(" ")},w.prototype._onChar=function(S){var N=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+=D.tooMuchOutput)),y.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){N._accessibilityTreeRoot.appendChild(N._liveRegion)},0))},w.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,y.isMac&&(0,k.removeElementFromParent)(this._liveRegion)},w.prototype._onKey=function(S){this._clearLiveRegion(),this._charsToConsume.push(S)},w.prototype._refreshRows=function(S,N){this._renderRowsDebouncer.refresh(S,N,this._terminal.rows)},w.prototype._renderRows=function(S,N){for(var R=this._terminal.buffer,W=R.lines.length.toString(),$=S;$<=N;$++){var ce=R.translateBufferLineToString(R.ydisp+$,!0),se=(R.ydisp+$+1).toString(),ee=this._rowElements[$];ee&&(0===ce.length?ee.innerText="\xa0":ee.textContent=ce,ee.setAttribute("aria-posinset",se),ee.setAttribute("aria-setsize",W))}this._announceCharacters()},w.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])}},w.prototype._refreshRowDimensions=function(S){S.style.height=this._renderService.dimensions.actualCellHeight+"px"},w.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},w}(E.Disposable);M.AccessibilityManager=I},3614:function(Y,M){function U(y){return y.replace(/\r?\n/g,"\r")}function L(y,K){return K?"\x1b[200~"+y+"\x1b[201~":y}function P(y,K,F){y=L(y=U(y),F.decPrivateModes.bracketedPasteMode),F.triggerDataEvent(y,!0),K.value=""}function D(y,K,F){var E=F.getBoundingClientRect(),A=y.clientX-E.left-10,k=y.clientY-E.top-10;K.style.width="20px",K.style.height="20px",K.style.left=A+"px",K.style.top=k+"px",K.style.zIndex="1000",K.focus()}Object.defineProperty(M,"__esModule",{value:!0}),M.rightClickHandler=M.moveTextAreaUnderMouseCursor=M.paste=M.handlePasteEvent=M.copyHandler=M.bracketTextForPaste=M.prepareTextForTerminal=void 0,M.prepareTextForTerminal=U,M.bracketTextForPaste=L,M.copyHandler=function(y,K){y.clipboardData&&y.clipboardData.setData("text/plain",K.selectionText),y.preventDefault()},M.handlePasteEvent=function(y,K,F){y.stopPropagation(),y.clipboardData&&P(y.clipboardData.getData("text/plain"),K,F)},M.paste=P,M.moveTextAreaUnderMouseCursor=D,M.rightClickHandler=function(y,K,F,E,A){D(y,K,F),A&&E.rightClickSelect(y),K.value=E.selectionText,K.select()}},4774:function(Y,M){var U,L,P,D,F;function y(F){var E=F.toString(16);return E.length<2?"0"+E:E}function K(F,E){return F<E?(E+.05)/(F+.05):(F+.05)/(E+.05)}Object.defineProperty(M,"__esModule",{value:!0}),M.contrastRatio=M.toPaddedHex=M.rgba=M.rgb=M.css=M.color=M.channels=void 0,(F=U=M.channels||(M.channels={})).toCss=function(E,A,k,I){return void 0!==I?"#"+y(E)+y(A)+y(k)+y(I):"#"+y(E)+y(A)+y(k)},F.toRgba=function(E,A,k,I){return void 0===I&&(I=255),(E<<24|A<<16|k<<8|I)>>>0},(L=M.color||(M.color={})).blend=function(F,E){var A=(255&E.rgba)/255;if(1===A)return{css:E.css,rgba:E.rgba};var k=E.rgba>>24&255,I=E.rgba>>16&255,T=E.rgba>>8&255,w=F.rgba>>24&255,S=F.rgba>>16&255,N=F.rgba>>8&255,R=w+Math.round((k-w)*A),W=S+Math.round((I-S)*A),$=N+Math.round((T-N)*A);return{css:U.toCss(R,W,$),rgba:U.toRgba(R,W,$)}},L.isOpaque=function(F){return 255==(255&F.rgba)},L.ensureContrastRatio=function(F,E,A){var k=D.ensureContrastRatio(F.rgba,E.rgba,A);if(k)return D.toColor(k>>24&255,k>>16&255,k>>8&255)},L.opaque=function(F){var E=(255|F.rgba)>>>0,A=D.toChannels(E),k=A[0],I=A[1],T=A[2];return{css:U.toCss(k,I,T),rgba:E}},L.opacity=function(F,E){var A=Math.round(255*E),k=D.toChannels(F.rgba),I=k[0],T=k[1],w=k[2];return{css:U.toCss(I,T,w,A),rgba:U.toRgba(I,T,w,A)}},L.toColorRGB=function(F){return[F.rgba>>24&255,F.rgba>>16&255,F.rgba>>8&255]},(M.css||(M.css={})).toColor=function(F){switch(F.length){case 7:return{css:F,rgba:(parseInt(F.slice(1),16)<<8|255)>>>0};case 9:return{css:F,rgba:parseInt(F.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(F){function E(A,k,I){var T=A/255,w=k/255,S=I/255;return.2126*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.7152*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.0722*(S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4))}F.relativeLuminance=function(A){return E(A>>16&255,A>>8&255,255&A)},F.relativeLuminance2=E}(P=M.rgb||(M.rgb={})),function(F){function E(k,I,T){for(var w=k>>24&255,S=k>>16&255,N=k>>8&255,R=I>>24&255,W=I>>16&255,$=I>>8&255,ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,S,N));ce<T&&(R>0||W>0||$>0);)R-=Math.max(0,Math.ceil(.1*R)),W-=Math.max(0,Math.ceil(.1*W)),$-=Math.max(0,Math.ceil(.1*$)),ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,S,N));return(R<<24|W<<16|$<<8|255)>>>0}function A(k,I,T){for(var w=k>>24&255,S=k>>16&255,N=k>>8&255,R=I>>24&255,W=I>>16&255,$=I>>8&255,ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,S,N));ce<T&&(R<255||W<255||$<255);)R=Math.min(255,R+Math.ceil(.1*(255-R))),W=Math.min(255,W+Math.ceil(.1*(255-W))),$=Math.min(255,$+Math.ceil(.1*(255-$))),ce=K(P.relativeLuminance2(R,$,W),P.relativeLuminance2(w,S,N));return(R<<24|W<<16|$<<8|255)>>>0}F.ensureContrastRatio=function(k,I,T){var w=P.relativeLuminance(k>>8),S=P.relativeLuminance(I>>8);if(K(w,S)<T)return S<w?E(k,I,T):A(k,I,T)},F.reduceLuminance=E,F.increaseLuminance=A,F.toChannels=function(k){return[k>>24&255,k>>16&255,k>>8&255,255&k]},F.toColor=function(k,I,T){return{css:U.toCss(k,I,T),rgba:U.toRgba(k,I,T)}}}(D=M.rgba||(M.rgba={})),M.toPaddedHex=y,M.contrastRatio=K},7239:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.ColorContrastCache=void 0;var U=function(){function L(){this._color={},this._rgba={}}return L.prototype.clear=function(){this._color={},this._rgba={}},L.prototype.setCss=function(P,D,y){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][D]=y},L.prototype.getCss=function(P,D){return this._rgba[P]?this._rgba[P][D]:void 0},L.prototype.setColor=function(P,D,y){this._color[P]||(this._color[P]={}),this._color[P][D]=y},L.prototype.getColor=function(P,D){return this._color[P]?this._color[P][D]:void 0},L}();M.ColorContrastCache=U},5680:function(Y,M,U){var L=this&&this.__spreadArray||function(I,T,w){if(w||2===arguments.length)for(var S,N=0,R=T.length;N<R;N++)!S&&N in T||(S||(S=Array.prototype.slice.call(T,0,N)),S[N]=T[N]);return I.concat(S||Array.prototype.slice.call(T))};Object.defineProperty(M,"__esModule",{value:!0}),M.ColorManager=M.DEFAULT_ANSI_COLORS=void 0;var P=U(4774),D=U(7239),y=P.css.toColor("#ffffff"),K=P.css.toColor("#000000"),F=P.css.toColor("#ffffff"),E=P.css.toColor("#000000"),A={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};M.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var I=[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")],T=[0,95,135,175,215,255],w=0;w<216;w++){var S=T[w/36%6|0],N=T[w/6%6|0],R=T[w%6];I.push({css:P.channels.toCss(S,N,R),rgba:P.channels.toRgba(S,N,R)})}for(w=0;w<24;w++){var W=8+10*w;I.push({css:P.channels.toCss(W,W,W),rgba:P.channels.toRgba(W,W,W)})}return I}());var k=function(){function I(T,w){this.allowTransparency=w;var S=T.createElement("canvas");S.width=1,S.height=1;var N=S.getContext("2d");if(!N)throw new Error("Could not get rendering context");this._ctx=N,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new D.ColorContrastCache,this.colors={foreground:y,background:K,cursor:F,cursorAccent:E,selectionTransparent:A,selectionOpaque:P.color.blend(K,A),ansi:M.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return I.prototype.onOptionsChange=function(T){"minimumContrastRatio"===T&&this._contrastCache.clear()},I.prototype.setTheme=function(T){void 0===T&&(T={}),this.colors.foreground=this._parseColor(T.foreground,y),this.colors.background=this._parseColor(T.background,K),this.colors.cursor=this._parseColor(T.cursor,F,!0),this.colors.cursorAccent=this._parseColor(T.cursorAccent,E,!0),this.colors.selectionTransparent=this._parseColor(T.selection,A,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(T.black,M.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(T.red,M.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(T.green,M.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(T.yellow,M.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(T.blue,M.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(T.magenta,M.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(T.cyan,M.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(T.white,M.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(T.brightBlack,M.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(T.brightRed,M.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(T.brightGreen,M.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(T.brightYellow,M.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(T.brightBlue,M.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(T.brightMagenta,M.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(T.brightCyan,M.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(T.brightWhite,M.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},I.prototype.restoreColor=function(T){if(void 0!==T)switch(T){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[T]=this._restoreColors.ansi[T]}else for(var w=0;w<this._restoreColors.ansi.length;++w)this.colors.ansi[w]=this._restoreColors.ansi[w]},I.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:L([],this.colors.ansi,!0)}},I.prototype._parseColor=function(T,w,S){if(void 0===S&&(S=this.allowTransparency),void 0===T)return w;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=T,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+T+" is invalid using fallback "+w.css),w;this._ctx.fillRect(0,0,1,1);var N=this._ctx.getImageData(0,0,1,1).data;if(255!==N[3]){if(!S)return console.warn("Color: "+T+" is using transparency, but allowTransparency is false. Using fallback "+w.css+"."),w;var R=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),W=R[0],$=R[1],ce=R[2],se=R[3],ee=Math.round(255*se);return{rgba:P.channels.toRgba(W,$,ce,ee),css:T}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(N[0],N[1],N[2],N[3])}},I}();M.ColorManager=k},9631:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.removeElementFromParent=void 0,M.removeElementFromParent=function(){for(var U,L=[],P=0;P<arguments.length;P++)L[P]=arguments[P];for(var D=0,y=L;D<y.length;D++){var K=y[D];null===(U=null==K?void 0:K.parentElement)||void 0===U||U.removeChild(K)}}},3656:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.addDisposableDomListener=void 0,M.addDisposableDomListener=function(U,L,P,D){U.addEventListener(L,P,D);var y=!1;return{dispose:function(){y||(y=!0,U.removeEventListener(L,P,D))}}}},3551:function(Y,M,U){var L=this&&this.__decorate||function(E,A,k,I){var T,w=arguments.length,S=w<3?A:null===I?I=Object.getOwnPropertyDescriptor(A,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(E,A,k,I);else for(var N=E.length-1;N>=0;N--)(T=E[N])&&(S=(w<3?T(S):w>3?T(A,k,S):T(A,k))||S);return w>3&&S&&Object.defineProperty(A,k,S),S},P=this&&this.__param||function(E,A){return function(k,I){A(k,I,E)}};Object.defineProperty(M,"__esModule",{value:!0}),M.MouseZone=M.Linkifier=void 0;var D=U(8460),y=U(2585),K=function(){function E(A,k,I){this._bufferService=A,this._logService=k,this._unicodeService=I,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new D.EventEmitter,this._onHideLinkUnderline=new D.EventEmitter,this._onLinkTooltip=new D.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(E.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),E.prototype.attachToDom=function(A,k){this._element=A,this._mouseZoneManager=k},E.prototype.linkifyRows=function(A,k){var I=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=A,this._rowsToLinkify.end=k):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,A),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,k)),this._mouseZoneManager.clearAll(A,k),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return I._linkifyRows()},E._timeBeforeLatency))},E.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var A=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var k=A.ydisp+this._rowsToLinkify.start;if(!(k>=A.lines.length)){for(var I=A.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,T=Math.ceil(2e3/this._bufferService.cols),w=this._bufferService.buffer.iterator(!1,k,I,T,T);w.hasNext();)for(var S=w.next(),N=0;N<this._linkMatchers.length;N++)this._doLinkifyRow(S.range.first,S.content,this._linkMatchers[N]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},E.prototype.registerLinkMatcher=function(A,k,I){if(void 0===I&&(I={}),!k)throw new Error("handler must be defined");var T={id:this._nextLinkMatcherId++,regex:A,handler:k,matchIndex:I.matchIndex,validationCallback:I.validationCallback,hoverTooltipCallback:I.tooltipCallback,hoverLeaveCallback:I.leaveCallback,willLinkActivate:I.willLinkActivate,priority:I.priority||0};return this._addLinkMatcherToList(T),T.id},E.prototype._addLinkMatcherToList=function(A){if(0!==this._linkMatchers.length){for(var k=this._linkMatchers.length-1;k>=0;k--)if(A.priority<=this._linkMatchers[k].priority)return void this._linkMatchers.splice(k+1,0,A);this._linkMatchers.splice(0,0,A)}else this._linkMatchers.push(A)},E.prototype.deregisterLinkMatcher=function(A){for(var k=0;k<this._linkMatchers.length;k++)if(this._linkMatchers[k].id===A)return this._linkMatchers.splice(k,1),!0;return!1},E.prototype._doLinkifyRow=function(A,k,I){for(var T,w=this,S=new RegExp(I.regex.source,(I.regex.flags||"")+"g"),N=-1,R=function(){var ce=T["number"!=typeof I.matchIndex?0:I.matchIndex];if(!ce)return W._logService.debug("match found without corresponding matchIndex",T,I),"break";if(N=k.indexOf(ce,N+1),S.lastIndex=N+ce.length,N<0)return"break";var se=W._bufferService.buffer.stringIndexToBufferIndex(A,N);if(se[0]<0)return"break";var ee=W._bufferService.buffer.lines.get(se[0]);if(!ee)return"break";var oe=ee.getFg(se[1]),ge=oe?oe>>9&511:void 0;I.validationCallback?I.validationCallback(ce,function(Oe){w._rowsTimeoutId||Oe&&w._addLink(se[1],se[0]-w._bufferService.buffer.ydisp,ce,I,ge)}):W._addLink(se[1],se[0]-W._bufferService.buffer.ydisp,ce,I,ge)},W=this;null!==(T=S.exec(k))&&"break"!==R(););},E.prototype._addLink=function(A,k,I,T,w){var S=this;if(this._mouseZoneManager&&this._element){var N=this._unicodeService.getStringCellWidth(I),R=A%this._bufferService.cols,W=k+Math.floor(A/this._bufferService.cols),$=(R+N)%this._bufferService.cols,ce=W+Math.floor((R+N)/this._bufferService.cols);0===$&&($=this._bufferService.cols,ce--),this._mouseZoneManager.add(new F(R+1,W+1,$+1,ce+1,function(se){if(T.handler)return T.handler(se,I);var ee=window.open();ee?(ee.opener=null,ee.location.href=I):console.warn("Opening link blocked as opener could not be cleared")},function(){S._onShowLinkUnderline.fire(S._createLinkHoverEvent(R,W,$,ce,w)),S._element.classList.add("xterm-cursor-pointer")},function(se){S._onLinkTooltip.fire(S._createLinkHoverEvent(R,W,$,ce,w)),T.hoverTooltipCallback&&T.hoverTooltipCallback(se,I,{start:{x:R,y:W},end:{x:$,y:ce}})},function(){S._onHideLinkUnderline.fire(S._createLinkHoverEvent(R,W,$,ce,w)),S._element.classList.remove("xterm-cursor-pointer"),T.hoverLeaveCallback&&T.hoverLeaveCallback()},function(se){return!T.willLinkActivate||T.willLinkActivate(se,I)}))}},E.prototype._createLinkHoverEvent=function(A,k,I,T,w){return{x1:A,y1:k,x2:I,y2:T,cols:this._bufferService.cols,fg:w}},E._timeBeforeLatency=200,E=L([P(0,y.IBufferService),P(1,y.ILogService),P(2,y.IUnicodeService)],E)}();M.Linkifier=K;var F=function(A,k,I,T,w,S,N,R,W){this.x1=A,this.y1=k,this.x2=I,this.y2=T,this.clickCallback=w,this.hoverCallback=S,this.tooltipCallback=N,this.leaveCallback=R,this.willLinkActivate=W};M.MouseZone=F},6465:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.Linkifier2=void 0;var K=U(2585),F=U(8460),E=U(844),A=U(3656),k=function(I){function T(w){var S=I.call(this)||this;return S._bufferService=w,S._linkProviders=[],S._linkCacheDisposables=[],S._isMouseOut=!0,S._activeLine=-1,S._onShowLinkUnderline=S.register(new F.EventEmitter),S._onHideLinkUnderline=S.register(new F.EventEmitter),S.register((0,E.getDisposeArrayDisposable)(S._linkCacheDisposables)),S}return P(T,I),Object.defineProperty(T.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),T.prototype.registerLinkProvider=function(w){var S=this;return this._linkProviders.push(w),{dispose:function(){var R=S._linkProviders.indexOf(w);-1!==R&&S._linkProviders.splice(R,1)}}},T.prototype.attachToDom=function(w,S,N){var R=this;this._element=w,this._mouseService=S,this._renderService=N,this.register((0,A.addDisposableDomListener)(this._element,"mouseleave",function(){R._isMouseOut=!0,R._clearCurrentLink()})),this.register((0,A.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,A.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},T.prototype._onMouseMove=function(w){if(this._lastMouseEvent=w,this._element&&this._mouseService){var S=this._positionFromMouseEvent(w,this._element,this._mouseService);if(S){this._isMouseOut=!1;for(var N=w.composedPath(),R=0;R<N.length;R++){var W=N[R];if(W.classList.contains("xterm"))break;if(W.classList.contains("xterm-hover"))return}this._lastBufferCell&&S.x===this._lastBufferCell.x&&S.y===this._lastBufferCell.y||(this._onHover(S),this._lastBufferCell=S)}}},T.prototype._onHover=function(w){if(this._activeLine!==w.y)return this._clearCurrentLink(),void this._askForLink(w,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,w)||(this._clearCurrentLink(),this._askForLink(w,!0))},T.prototype._askForLink=function(w,S){var N,R=this;this._activeProviderReplies&&S||(null===(N=this._activeProviderReplies)||void 0===N||N.forEach(function($){null==$||$.forEach(function(ce){ce.link.dispose&&ce.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=w.y);var W=!1;this._linkProviders.forEach(function($,ce){var se;S?(null===(se=R._activeProviderReplies)||void 0===se?void 0:se.get(ce))&&(W=R._checkLinkProviderResult(ce,w,W)):$.provideLinks(w.y,function(ee){var oe,ge;if(!R._isMouseOut){var Oe=null==ee?void 0:ee.map(function(ot){return{link:ot}});null===(oe=R._activeProviderReplies)||void 0===oe||oe.set(ce,Oe),W=R._checkLinkProviderResult(ce,w,W),(null===(ge=R._activeProviderReplies)||void 0===ge?void 0:ge.size)===R._linkProviders.length&&R._removeIntersectingLinks(w.y,R._activeProviderReplies)}})})},T.prototype._removeIntersectingLinks=function(w,S){for(var N=new Set,R=0;R<S.size;R++){var W=S.get(R);if(W)for(var $=0;$<W.length;$++)for(var ce=W[$],se=ce.link.range.start.y<w?0:ce.link.range.start.x,ee=ce.link.range.end.y>w?this._bufferService.cols:ce.link.range.end.x,oe=se;oe<=ee;oe++){if(N.has(oe)){W.splice($--,1);break}N.add(oe)}}},T.prototype._checkLinkProviderResult=function(w,S,N){var R,W=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(w),ce=!1,se=0;se<w;se++)this._activeProviderReplies.has(se)&&!this._activeProviderReplies.get(se)||(ce=!0);if(!ce&&$){var ee=$.find(function(ge){return W._linkAtPosition(ge.link,S)});ee&&(N=!0,this._handleNewLink(ee))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(se=0;se<this._activeProviderReplies.size;se++){var oe=null===(R=this._activeProviderReplies.get(se))||void 0===R?void 0:R.find(function(ge){return W._linkAtPosition(ge.link,S)});if(oe){N=!0,this._handleNewLink(oe);break}}return N},T.prototype._onClick=function(w){if(this._element&&this._mouseService&&this._currentLink){var S=this._positionFromMouseEvent(w,this._element,this._mouseService);S&&this._linkAtPosition(this._currentLink.link,S)&&this._currentLink.link.activate(w,this._currentLink.link.text)}},T.prototype._clearCurrentLink=function(w,S){this._element&&this._currentLink&&this._lastMouseEvent&&(!w||!S||this._currentLink.link.range.start.y>=w&&this._currentLink.link.range.end.y<=S)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,E.disposeArray)(this._linkCacheDisposables))},T.prototype._handleNewLink=function(w){var S=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(w.link,N)&&(this._currentLink=w,this._currentLink.state={decorations:{underline:void 0===w.link.decorations||w.link.decorations.underline,pointerCursor:void 0===w.link.decorations||w.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,w.link,this._lastMouseEvent),w.link.decorations={},Object.defineProperties(w.link.decorations,{pointerCursor:{get:function(){var W,$;return null===($=null===(W=S._currentLink)||void 0===W?void 0:W.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(W){var $,ce;(null===($=S._currentLink)||void 0===$?void 0:$.state)&&S._currentLink.state.decorations.pointerCursor!==W&&(S._currentLink.state.decorations.pointerCursor=W,S._currentLink.state.isHovered&&(null===(ce=S._element)||void 0===ce||ce.classList.toggle("xterm-cursor-pointer",W)))}},underline:{get:function(){var W,$;return null===($=null===(W=S._currentLink)||void 0===W?void 0:W.state)||void 0===$?void 0:$.decorations.underline},set:function(W){var $,ce,se;(null===($=S._currentLink)||void 0===$?void 0:$.state)&&(null===(se=null===(ce=S._currentLink)||void 0===ce?void 0:ce.state)||void 0===se?void 0:se.decorations.underline)!==W&&(S._currentLink.state.decorations.underline=W,S._currentLink.state.isHovered&&S._fireUnderlineEvent(w.link,W))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(R){var W=0===R.start?0:R.start+1+S._bufferService.buffer.ydisp;S._clearCurrentLink(W,R.end+1+S._bufferService.buffer.ydisp)})))}},T.prototype._linkHover=function(w,S,N){var R;(null===(R=this._currentLink)||void 0===R?void 0:R.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!0),this._currentLink.state.decorations.pointerCursor&&w.classList.add("xterm-cursor-pointer")),S.hover&&S.hover(N,S.text)},T.prototype._fireUnderlineEvent=function(w,S){var N=w.range,R=this._bufferService.buffer.ydisp,W=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-R-1,N.end.x,N.end.y-R-1,void 0);(S?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(W)},T.prototype._linkLeave=function(w,S,N){var R;(null===(R=this._currentLink)||void 0===R?void 0:R.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(S,!1),this._currentLink.state.decorations.pointerCursor&&w.classList.remove("xterm-cursor-pointer")),S.leave&&S.leave(N,S.text)},T.prototype._linkAtPosition=function(w,S){var N=w.range.start.y===w.range.end.y,R=w.range.start.y<S.y,W=w.range.end.y>S.y;return(N&&w.range.start.x<=S.x&&w.range.end.x>=S.x||R&&w.range.end.x>=S.x||W&&w.range.start.x<=S.x||R&&W)&&w.range.start.y<=S.y&&w.range.end.y>=S.y},T.prototype._positionFromMouseEvent=function(w,S,N){var R=N.getCoords(w,S,this._bufferService.cols,this._bufferService.rows);if(R)return{x:R[0],y:R[1]+this._bufferService.buffer.ydisp}},T.prototype._createLinkUnderlineEvent=function(w,S,N,R,W){return{x1:w,y1:S,x2:N,y2:R,cols:this._bufferService.cols,fg:W}},D([y(0,K.IBufferService)],T)}(E.Disposable);M.Linkifier2=k},9042:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.tooMuchOutput=M.promptLabel=void 0,M.promptLabel="Terminal input",M.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.MouseZoneManager=void 0;var K=U(844),F=U(3656),E=U(4725),A=U(2585),k=function(I){function T(w,S,N,R,W,$){var ce=I.call(this)||this;return ce._element=w,ce._screenElement=S,ce._bufferService=N,ce._mouseService=R,ce._selectionService=W,ce._optionsService=$,ce._zones=[],ce._areZonesActive=!1,ce._lastHoverCoords=[void 0,void 0],ce._initialSelectionLength=0,ce.register((0,F.addDisposableDomListener)(ce._element,"mousedown",function(se){return ce._onMouseDown(se)})),ce._mouseMoveListener=function(se){return ce._onMouseMove(se)},ce._mouseLeaveListener=function(se){return ce._onMouseLeave(se)},ce._clickListener=function(se){return ce._onClick(se)},ce}return P(T,I),T.prototype.dispose=function(){I.prototype.dispose.call(this),this._deactivate()},T.prototype.add=function(w){this._zones.push(w),1===this._zones.length&&this._activate()},T.prototype.clearAll=function(w,S){if(0!==this._zones.length){w&&S||(w=0,S=this._bufferService.rows-1);for(var N=0;N<this._zones.length;N++){var R=this._zones[N];(R.y1>w&&R.y1<=S+1||R.y2>w&&R.y2<=S+1||R.y1<w&&R.y2>S+1)&&(this._currentZone&&this._currentZone===R&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(N--,1))}0===this._zones.length&&this._deactivate()}},T.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))},T.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))},T.prototype._onMouseMove=function(w){this._lastHoverCoords[0]===w.pageX&&this._lastHoverCoords[1]===w.pageY||(this._onHover(w),this._lastHoverCoords=[w.pageX,w.pageY])},T.prototype._onHover=function(w){var S=this,N=this._findZoneEventAt(w);N!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),N&&(this._currentZone=N,N.hoverCallback&&N.hoverCallback(w),this._tooltipTimeout=window.setTimeout(function(){return S._onTooltip(w)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},T.prototype._onTooltip=function(w){this._tooltipTimeout=void 0;var S=this._findZoneEventAt(w);null==S||S.tooltipCallback(w)},T.prototype._onMouseDown=function(w){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var S=this._findZoneEventAt(w);(null==S?void 0:S.willLinkActivate(w))&&(w.preventDefault(),w.stopImmediatePropagation())}},T.prototype._onMouseLeave=function(w){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},T.prototype._onClick=function(w){var S=this._findZoneEventAt(w),N=this._getSelectionLength();S&&N===this._initialSelectionLength&&(S.clickCallback(w),w.preventDefault(),w.stopImmediatePropagation())},T.prototype._getSelectionLength=function(){var w=this._selectionService.selectionText;return w?w.length:0},T.prototype._findZoneEventAt=function(w){var S=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(S)for(var N=S[0],R=S[1],W=0;W<this._zones.length;W++){var $=this._zones[W];if($.y1===$.y2){if(R===$.y1&&N>=$.x1&&N<$.x2)return $}else if(R===$.y1&&N>=$.x1||R===$.y2&&N<$.x2||R>$.y1&&R<$.y2)return $}},D([y(2,A.IBufferService),y(3,E.IMouseService),y(4,E.ISelectionService),y(5,A.IOptionsService)],T)}(K.Disposable);M.MouseZoneManager=k},6193:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.RenderDebouncer=void 0;var U=function(){function L(P){this._renderCallback=P}return L.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},L.prototype.refresh=function(P,D,y){var K=this;this._rowCount=y,P=void 0!==P?P:0,D=void 0!==D?D: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,D):D,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return K._innerRefresh()}))},L.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(P,D)}},L}();M.RenderDebouncer=U},5596:function(Y,M,U){var L,P=this&&this.__extends||(L=function(K,F){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var k in A)Object.prototype.hasOwnProperty.call(A,k)&&(E[k]=A[k])})(K,F)},function(y,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function F(){this.constructor=y}L(y,K),y.prototype=null===K?Object.create(K):(F.prototype=K.prototype,new F)});Object.defineProperty(M,"__esModule",{value:!0}),M.ScreenDprMonitor=void 0;var D=function(y){function K(){var F=null!==y&&y.apply(this,arguments)||this;return F._currentDevicePixelRatio=window.devicePixelRatio,F}return P(K,y),K.prototype.setListener=function(F){var E=this;this._listener&&this.clearListener(),this._listener=F,this._outerListener=function(){E._listener&&(E._listener(window.devicePixelRatio,E._currentDevicePixelRatio),E._updateDpr())},this._updateDpr()},K.prototype.dispose=function(){y.prototype.dispose.call(this),this.clearListener()},K.prototype._updateDpr=function(){var F;this._outerListener&&(null===(F=this._resolutionMediaMatchList)||void 0===F||F.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},K.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)},K}(U(844).Disposable);M.ScreenDprMonitor=D},3236:function(Y,M,U){var L,P=this&&this.__extends||(L=function(jt,rt){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,nt){vt.__proto__=nt}||function(vt,nt){for(var Rt in nt)Object.prototype.hasOwnProperty.call(nt,Rt)&&(vt[Rt]=nt[Rt])})(jt,rt)},function(Xe,jt){if("function"!=typeof jt&&null!==jt)throw new TypeError("Class extends value "+String(jt)+" is not a constructor or null");function rt(){this.constructor=Xe}L(Xe,jt),Xe.prototype=null===jt?Object.create(jt):(rt.prototype=jt.prototype,new rt)});Object.defineProperty(M,"__esModule",{value:!0}),M.Terminal=void 0;var D=U(2950),y=U(1680),K=U(3614),F=U(2584),E=U(5435),A=U(3525),k=U(3551),I=U(9312),T=U(6114),w=U(3656),S=U(9042),N=U(357),R=U(6954),W=U(4567),$=U(1296),ce=U(7399),se=U(8460),ee=U(8437),oe=U(5680),ge=U(3230),Oe=U(4725),ot=U(428),xe=U(8934),_e=U(6465),ke=U(5114),Be=U(8969),ct=U(4774),Mt=U(4269),Nt=U(5941),Xt=U(7641),en="undefined"!=typeof window?window.document:null,qt=function(Xe){function jt(rt){void 0===rt&&(rt={});var vt=Xe.call(this,rt)||this;return vt.browser=T,vt._keyDownHandled=!1,vt._keyPressHandled=!1,vt._unprocessedDeadKey=!1,vt._onCursorMove=new se.EventEmitter,vt._onKey=new se.EventEmitter,vt._onRender=new se.EventEmitter,vt._onSelectionChange=new se.EventEmitter,vt._onTitleChange=new se.EventEmitter,vt._onBell=new se.EventEmitter,vt._onFocus=new se.EventEmitter,vt._onBlur=new se.EventEmitter,vt._onA11yCharEmitter=new se.EventEmitter,vt._onA11yTabEmitter=new se.EventEmitter,vt._setup(),vt.linkifier=vt._instantiationService.createInstance(k.Linkifier),vt.linkifier2=vt.register(vt._instantiationService.createInstance(_e.Linkifier2)),vt.decorationService=vt.register(vt._instantiationService.createInstance(Xt.DecorationService)),vt.register(vt._inputHandler.onRequestBell(function(){return vt.bell()})),vt.register(vt._inputHandler.onRequestRefreshRows(function(nt,Rt){return vt.refresh(nt,Rt)})),vt.register(vt._inputHandler.onRequestSendFocus(function(){return vt._reportFocus()})),vt.register(vt._inputHandler.onRequestReset(function(){return vt.reset()})),vt.register(vt._inputHandler.onRequestWindowsOptionsReport(function(nt){return vt._reportWindowsOptions(nt)})),vt.register(vt._inputHandler.onColor(function(nt){return vt._handleColorEvent(nt)})),vt.register((0,se.forwardEvent)(vt._inputHandler.onCursorMove,vt._onCursorMove)),vt.register((0,se.forwardEvent)(vt._inputHandler.onTitleChange,vt._onTitleChange)),vt.register((0,se.forwardEvent)(vt._inputHandler.onA11yChar,vt._onA11yCharEmitter)),vt.register((0,se.forwardEvent)(vt._inputHandler.onA11yTab,vt._onA11yTabEmitter)),vt.register(vt._bufferService.onResize(function(nt){return vt._afterResize(nt.cols,nt.rows)})),vt}return P(jt,Xe),Object.defineProperty(jt.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(jt.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),jt.prototype._handleColorEvent=function(rt){var vt,nt;if(this._colorManager){for(var Rt=0,It=rt;Rt<It.length;Rt++){var on=It[Rt],_n=void 0,An="";switch(on.index){case 256:_n="foreground",An="10";break;case 257:_n="background",An="11";break;case 258:_n="cursor",An="12";break;default:_n="ansi",An="4;"+on.index}if(_n)switch(on.type){case 0:var Gt=ct.color.toColorRGB("ansi"===_n?this._colorManager.colors.ansi[on.index]:this._colorManager.colors[_n]);this.coreService.triggerDataEvent(F.C0.ESC+"]"+An+";"+(0,Nt.toRgbString)(Gt)+F.C0.BEL);break;case 1:"ansi"===_n?this._colorManager.colors.ansi[on.index]=ct.rgba.toColor.apply(ct.rgba,on.color):this._colorManager.colors[_n]=ct.rgba.toColor.apply(ct.rgba,on.color);break;case 2:this._colorManager.restoreColor(on.index)}}null===(vt=this._renderService)||void 0===vt||vt.setColors(this._colorManager.colors),null===(nt=this.viewport)||void 0===nt||nt.onThemeChange(this._colorManager.colors)}},jt.prototype.dispose=function(){var rt,vt,nt;this._isDisposed||(Xe.prototype.dispose.call(this),null===(rt=this._renderService)||void 0===rt||rt.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(nt=null===(vt=this.element)||void 0===vt?void 0:vt.parentNode)||void 0===nt||nt.removeChild(this.element))},jt.prototype._setup=function(){Xe.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(jt.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),jt.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},jt.prototype._updateOptions=function(rt){var vt,nt,Rt,It;switch(Xe.prototype._updateOptions.call(this,rt),rt){case"fontFamily":case"fontSize":null===(vt=this._renderService)||void 0===vt||vt.clear(),null===(nt=this._charSizeService)||void 0===nt||nt.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===(Rt=this.viewport)||void 0===Rt||Rt.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new W.AccessibilityManager(this,this._renderService)):(null===(It=this._accessibilityManager)||void 0===It||It.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},jt.prototype._onTextAreaFocus=function(rt){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(F.C0.ESC+"[I"),this.updateCursorStyle(rt),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},jt.prototype.blur=function(){var rt;return null===(rt=this.textarea)||void 0===rt?void 0:rt.blur()},jt.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(F.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},jt.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var rt=this.buffer.ybase+this.buffer.y,vt=this.buffer.lines.get(rt);if(vt){var nt=Math.min(this.buffer.x,this.cols-1),Rt=this._renderService.dimensions.actualCellHeight,It=vt.getWidth(nt),on=this._renderService.dimensions.actualCellWidth*It,_n=this.buffer.y*this._renderService.dimensions.actualCellHeight,An=nt*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=An+"px",this.textarea.style.top=_n+"px",this.textarea.style.width=on+"px",this.textarea.style.height=Rt+"px",this.textarea.style.lineHeight=Rt+"px",this.textarea.style.zIndex="-5"}}},jt.prototype._initGlobal=function(){var rt=this;this._bindKeys(),this.register((0,w.addDisposableDomListener)(this.element,"copy",function(nt){rt.hasSelection()&&(0,K.copyHandler)(nt,rt._selectionService)}));var vt=function(Rt){return(0,K.handlePasteEvent)(Rt,rt.textarea,rt.coreService)};this.register((0,w.addDisposableDomListener)(this.textarea,"paste",vt)),this.register((0,w.addDisposableDomListener)(this.element,"paste",vt)),T.isFirefox?this.register((0,w.addDisposableDomListener)(this.element,"mousedown",function(nt){2===nt.button&&(0,K.rightClickHandler)(nt,rt.textarea,rt.screenElement,rt._selectionService,rt.options.rightClickSelectsWord)})):this.register((0,w.addDisposableDomListener)(this.element,"contextmenu",function(nt){(0,K.rightClickHandler)(nt,rt.textarea,rt.screenElement,rt._selectionService,rt.options.rightClickSelectsWord)})),T.isLinux&&this.register((0,w.addDisposableDomListener)(this.element,"auxclick",function(nt){1===nt.button&&(0,K.moveTextAreaUnderMouseCursor)(nt,rt.textarea,rt.screenElement)}))},jt.prototype._bindKeys=function(){var rt=this;this.register((0,w.addDisposableDomListener)(this.textarea,"keyup",function(vt){return rt._keyUp(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"keydown",function(vt){return rt._keyDown(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"keypress",function(vt){return rt._keyPress(vt)},!0)),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionstart",function(){return rt._compositionHelper.compositionstart()})),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionupdate",function(vt){return rt._compositionHelper.compositionupdate(vt)})),this.register((0,w.addDisposableDomListener)(this.textarea,"compositionend",function(){return rt._compositionHelper.compositionend()})),this.register((0,w.addDisposableDomListener)(this.textarea,"input",function(vt){return rt._inputEvent(vt)},!0)),this.register(this.onRender(function(){return rt._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(vt){return rt._queueLinkification(vt.start,vt.end)}))},jt.prototype.open=function(rt){var vt=this;if(!rt)throw new Error("Terminal requires a parent element.");rt.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=rt.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"),rt.appendChild(this.element);var nt=en.createDocumentFragment();this._viewportElement=en.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),nt.appendChild(this._viewportElement),this._viewportScrollArea=en.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=en.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=en.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),nt.appendChild(this.screenElement),this.textarea=en.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",S.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,w.addDisposableDomListener)(this.textarea,"focus",function(on){return vt._onTextAreaFocus(on)})),this.register((0,w.addDisposableDomListener)(this.textarea,"blur",function(){return vt._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Rt=this._instantiationService.createInstance(ke.CoreBrowserService,this.textarea);this._instantiationService.setService(Oe.ICoreBrowserService,Rt),this._charSizeService=this._instantiationService.createInstance(ot.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(Oe.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new oe.ColorManager(en,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(on){return vt._colorManager.onOptionsChange(on)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(Mt.CharacterJoinerService),this._instantiationService.setService(Oe.ICharacterJoinerService,this._characterJoinerService);var It=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ge.RenderService,It,this.rows,this.screenElement)),this._instantiationService.setService(Oe.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(on){return vt._onRender.fire(on)})),this.onResize(function(on){return vt._renderService.resize(on.cols,on.rows)}),this._compositionView=en.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(D.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(nt),this._soundService=this._instantiationService.createInstance(N.SoundService),this._instantiationService.setService(Oe.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(xe.MouseService),this._instantiationService.setService(Oe.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(y.Viewport,function(on){return vt.scrollLines(on,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return vt.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){vt._renderService.onCursorMove(),vt._syncTextArea()})),this.register(this.onResize(function(){return vt._renderService.onResize(vt.cols,vt.rows)})),this.register(this.onBlur(function(){return vt._renderService.onBlur()})),this.register(this.onFocus(function(){return vt._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return vt.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(I.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(Oe.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(on){return vt.scrollLines(on.amount,on.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return vt._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(on){return vt._renderService.onSelectionChanged(on.start,on.end,on.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(on){vt.textarea.value=on,vt.textarea.focus(),vt.textarea.select()})),this.register(this._onScroll.event(function(on){vt.viewport.syncScrollArea(),vt._selectionService.refresh()})),this.register((0,w.addDisposableDomListener)(this._viewportElement,"scroll",function(){return vt._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(R.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return vt._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.decorationService.attachToDom(this.screenElement,this._renderService,this._bufferService),this.register((0,w.addDisposableDomListener)(this.element,"mousedown",function(on){return vt._selectionService.onMouseDown(on)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new W.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},jt.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(A.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance($.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},jt.prototype._setTheme=function(rt){var vt,nt,Rt;this._theme=rt,null===(vt=this._colorManager)||void 0===vt||vt.setTheme(rt),null===(nt=this._renderService)||void 0===nt||nt.setColors(this._colorManager.colors),null===(Rt=this.viewport)||void 0===Rt||Rt.onThemeChange(this._colorManager.colors)},jt.prototype.bindMouse=function(){var rt=this,vt=this,nt=this.element;function Rt(Zt){var Et,Ut,Ht=vt._mouseService.getRawByteCoords(Zt,vt.screenElement,vt.cols,vt.rows);if(!Ht)return!1;switch(Zt.overrideType||Zt.type){case"mousemove":Ut=32,void 0===Zt.buttons?(Et=3,void 0!==Zt.button&&(Et=Zt.button<3?Zt.button:3)):Et=1&Zt.buttons?0:4&Zt.buttons?1:2&Zt.buttons?2:3;break;case"mouseup":Ut=0,Et=Zt.button<3?Zt.button:3;break;case"mousedown":Ut=1,Et=Zt.button<3?Zt.button:3;break;case"wheel":0!==Zt.deltaY&&(Ut=Zt.deltaY<0?0:1),Et=4;break;default:return!1}return!(void 0===Ut||void 0===Et||Et>4)&&vt.coreMouseService.triggerMouseEvent({col:Ht.x-33,row:Ht.y-33,button:Et,action:Ut,ctrl:Zt.ctrlKey,alt:Zt.altKey,shift:Zt.shiftKey})}var It={mouseup:null,wheel:null,mousedrag:null,mousemove:null},on=function(Et){return Rt(Et),Et.buttons||(rt._document.removeEventListener("mouseup",It.mouseup),It.mousedrag&&rt._document.removeEventListener("mousemove",It.mousedrag)),rt.cancel(Et)},_n=function(Et){return Rt(Et),rt.cancel(Et,!0)},An=function(Et){Et.buttons&&Rt(Et)},Gt=function(Et){Et.buttons||Rt(Et)};this.register(this.coreMouseService.onProtocolChange(function(Zt){Zt?("debug"===rt.optionsService.rawOptions.logLevel&&rt._logService.debug("Binding to mouse events:",rt.coreMouseService.explainEvents(Zt)),rt.element.classList.add("enable-mouse-events"),rt._selectionService.disable()):(rt._logService.debug("Unbinding from mouse events."),rt.element.classList.remove("enable-mouse-events"),rt._selectionService.enable()),8&Zt?It.mousemove||(nt.addEventListener("mousemove",Gt),It.mousemove=Gt):(nt.removeEventListener("mousemove",It.mousemove),It.mousemove=null),16&Zt?It.wheel||(nt.addEventListener("wheel",_n,{passive:!1}),It.wheel=_n):(nt.removeEventListener("wheel",It.wheel),It.wheel=null),2&Zt?It.mouseup||(It.mouseup=on):(rt._document.removeEventListener("mouseup",It.mouseup),It.mouseup=null),4&Zt?It.mousedrag||(It.mousedrag=An):(rt._document.removeEventListener("mousemove",It.mousedrag),It.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,w.addDisposableDomListener)(nt,"mousedown",function(Zt){if(Zt.preventDefault(),rt.focus(),rt.coreMouseService.areMouseEventsActive&&!rt._selectionService.shouldForceSelection(Zt))return Rt(Zt),It.mouseup&&rt._document.addEventListener("mouseup",It.mouseup),It.mousedrag&&rt._document.addEventListener("mousemove",It.mousedrag),rt.cancel(Zt)})),this.register((0,w.addDisposableDomListener)(nt,"wheel",function(Zt){if(!It.wheel){if(!rt.buffer.hasScrollback){var Et=rt.viewport.getLinesScrolled(Zt);if(0===Et)return;for(var Ut=F.C0.ESC+(rt.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Zt.deltaY<0?"A":"B"),Ht="",sn=0;sn<Math.abs(Et);sn++)Ht+=Ut;return rt.coreService.triggerDataEvent(Ht,!0),rt.cancel(Zt,!0)}return rt.viewport.onWheel(Zt)?rt.cancel(Zt):void 0}},{passive:!1})),this.register((0,w.addDisposableDomListener)(nt,"touchstart",function(Zt){if(!rt.coreMouseService.areMouseEventsActive)return rt.viewport.onTouchStart(Zt),rt.cancel(Zt)},{passive:!0})),this.register((0,w.addDisposableDomListener)(nt,"touchmove",function(Zt){if(!rt.coreMouseService.areMouseEventsActive)return rt.viewport.onTouchMove(Zt)?void 0:rt.cancel(Zt)},{passive:!1}))},jt.prototype.refresh=function(rt,vt){var nt;null===(nt=this._renderService)||void 0===nt||nt.refreshRows(rt,vt)},jt.prototype._queueLinkification=function(rt,vt){var nt;null===(nt=this.linkifier)||void 0===nt||nt.linkifyRows(rt,vt)},jt.prototype.updateCursorStyle=function(rt){var vt;(null===(vt=this._selectionService)||void 0===vt?void 0:vt.shouldColumnSelect(rt))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},jt.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},jt.prototype.scrollLines=function(rt,vt,nt){void 0===nt&&(nt=0),Xe.prototype.scrollLines.call(this,rt,vt,nt),this.refresh(0,this.rows-1)},jt.prototype.paste=function(rt){(0,K.paste)(rt,this.textarea,this.coreService)},jt.prototype.attachCustomKeyEventHandler=function(rt){this._customKeyEventHandler=rt},jt.prototype.registerLinkMatcher=function(rt,vt,nt){var Rt=this.linkifier.registerLinkMatcher(rt,vt,nt);return this.refresh(0,this.rows-1),Rt},jt.prototype.deregisterLinkMatcher=function(rt){this.linkifier.deregisterLinkMatcher(rt)&&this.refresh(0,this.rows-1)},jt.prototype.registerLinkProvider=function(rt){return this.linkifier2.registerLinkProvider(rt)},jt.prototype.registerCharacterJoiner=function(rt){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var vt=this._characterJoinerService.register(rt);return this.refresh(0,this.rows-1),vt},jt.prototype.deregisterCharacterJoiner=function(rt){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(rt)&&this.refresh(0,this.rows-1)},Object.defineProperty(jt.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),jt.prototype.addMarker=function(rt){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+rt)},jt.prototype.registerDecoration=function(rt){return this.decorationService.registerDecoration(rt)},jt.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},jt.prototype.select=function(rt,vt,nt){this._selectionService.setSelection(rt,vt,nt)},jt.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},jt.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]}},jt.prototype.clearSelection=function(){var rt;null===(rt=this._selectionService)||void 0===rt||rt.clearSelection()},jt.prototype.selectAll=function(){var rt;null===(rt=this._selectionService)||void 0===rt||rt.selectAll()},jt.prototype.selectLines=function(rt,vt){var nt;null===(nt=this._selectionService)||void 0===nt||nt.selectLines(rt,vt)},jt.prototype._keyDown=function(rt){if(this._keyDownHandled=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(rt))return!1;if(!this._compositionHelper.keydown(rt))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;"Dead"!==rt.key&&"AltGraph"!==rt.key||(this._unprocessedDeadKey=!0);var vt=(0,ce.evaluateKeyboardEvent)(rt,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(rt),3===vt.type||2===vt.type){var nt=this.rows-1;return this.scrollLines(2===vt.type?-nt:nt),this.cancel(rt,!0)}return 1===vt.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,rt)||(vt.cancel&&this.cancel(rt,!0),!vt.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(vt.key!==F.C0.ETX&&vt.key!==F.C0.CR||(this.textarea.value=""),this._onKey.fire({key:vt.key,domEvent:rt}),this._showCursor(),this.coreService.triggerDataEvent(vt.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(rt,!0))))},jt.prototype._isThirdLevelShift=function(rt,vt){var nt=rt.isMac&&!this.options.macOptionIsMeta&&vt.altKey&&!vt.ctrlKey&&!vt.metaKey||rt.isWindows&&vt.altKey&&vt.ctrlKey&&!vt.metaKey||rt.isWindows&&vt.getModifierState("AltGraph");return"keypress"===vt.type?nt:nt&&(!vt.keyCode||vt.keyCode>47)},jt.prototype._keyUp=function(rt){var vt;this._customKeyEventHandler&&!1===this._customKeyEventHandler(rt)||(16===(vt=rt).keyCode||17===vt.keyCode||18===vt.keyCode||this.focus(),this.updateCursorStyle(rt),this._keyPressHandled=!1)},jt.prototype._keyPress=function(rt){var vt;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(rt))return!1;if(this.cancel(rt),rt.charCode)vt=rt.charCode;else if(null===rt.which||void 0===rt.which)vt=rt.keyCode;else{if(0===rt.which||0===rt.charCode)return!1;vt=rt.which}return!(!vt||(rt.altKey||rt.ctrlKey||rt.metaKey)&&!this._isThirdLevelShift(this.browser,rt)||(vt=String.fromCharCode(vt),this._onKey.fire({key:vt,domEvent:rt}),this._showCursor(),this.coreService.triggerDataEvent(vt,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},jt.prototype._inputEvent=function(rt){if(rt.data&&"insertText"===rt.inputType&&!rt.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var vt=rt.data;return this.coreService.triggerDataEvent(vt,!0),this.cancel(rt),!0}return!1},jt.prototype.bell=function(){var rt;this._soundBell()&&(null===(rt=this._soundService)||void 0===rt||rt.playBellSound()),this._onBell.fire()},jt.prototype.resize=function(rt,vt){rt!==this.cols||vt!==this.rows?Xe.prototype.resize.call(this,rt,vt):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},jt.prototype._afterResize=function(rt,vt){var nt,Rt;null===(nt=this._charSizeService)||void 0===nt||nt.measure(),null===(Rt=this.viewport)||void 0===Rt||Rt.syncScrollArea(!0)},jt.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearMarkers(),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 rt=1;rt<this.rows;rt++)this.buffer.lines.push(this.buffer.getBlankLine(ee.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},jt.prototype.reset=function(){var rt,vt;this.options.rows=this.rows,this.options.cols=this.cols;var nt=this._customKeyEventHandler;this._setup(),Xe.prototype.reset.call(this),null===(rt=this._selectionService)||void 0===rt||rt.reset(),this._customKeyEventHandler=nt,this.refresh(0,this.rows-1),null===(vt=this.viewport)||void 0===vt||vt.syncScrollArea()},jt.prototype.clearTextureAtlas=function(){var rt;null===(rt=this._renderService)||void 0===rt||rt.clearTextureAtlas()},jt.prototype._reportFocus=function(){var rt;(null===(rt=this.element)||void 0===rt?void 0:rt.classList.contains("focus"))?this.coreService.triggerDataEvent(F.C0.ESC+"[I"):this.coreService.triggerDataEvent(F.C0.ESC+"[O")},jt.prototype._reportWindowsOptions=function(rt){if(this._renderService)switch(rt){case E.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var vt=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),nt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(F.C0.ESC+"[4;"+nt+";"+vt+"t");break;case E.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Rt=this._renderService.dimensions.scaledCellWidth.toFixed(0),It=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(F.C0.ESC+"[6;"+It+";"+Rt+"t")}},jt.prototype.cancel=function(rt,vt){if(this.options.cancelEvents||vt)return rt.preventDefault(),rt.stopPropagation(),!1},jt.prototype._visualBell=function(){return!1},jt.prototype._soundBell=function(){return"sound"===this.options.bellStyle},jt}(Be.CoreTerminal);M.Terminal=qt},9924:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.TimeBasedDebouncer=void 0;var U=function(){function L(P,D){void 0===D&&(D=1e3),this._renderCallback=P,this._debounceThresholdMS=D,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return L.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},L.prototype.refresh=function(P,D,y){var K=this;this._rowCount=y,P=void 0!==P?P:0,D=void 0!==D?D: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,D):D;var F=Date.now();if(F-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=F,this._innerRefresh();else if(!this._additionalRefreshRequested){var E=F-this._lastRefreshMs,A=this._debounceThresholdMS-E;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){K._lastRefreshMs=Date.now(),K._innerRefresh(),K._additionalRefreshRequested=!1,K._refreshTimeoutID=void 0},A)}},L.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,D)}},L}();M.TimeBasedDebouncer=U},1680:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.Viewport=void 0;var K=U(844),F=U(3656),E=U(4725),A=U(2585),k=function(I){function T(w,S,N,R,W,$,ce,se){var ee=I.call(this)||this;return ee._scrollLines=w,ee._viewportElement=S,ee._scrollArea=N,ee._element=R,ee._bufferService=W,ee._optionsService=$,ee._charSizeService=ce,ee._renderService=se,ee.scrollBarWidth=0,ee._currentRowHeight=0,ee._currentScaledCellHeight=0,ee._lastRecordedBufferLength=0,ee._lastRecordedViewportHeight=0,ee._lastRecordedBufferHeight=0,ee._lastTouchY=0,ee._lastScrollTop=0,ee._lastHadScrollBar=!1,ee._wheelPartialScroll=0,ee._refreshAnimationFrame=null,ee._ignoreNextScrollEvent=!1,ee.scrollBarWidth=ee._viewportElement.offsetWidth-ee._scrollArea.offsetWidth||15,ee._lastHadScrollBar=!0,ee.register((0,F.addDisposableDomListener)(ee._viewportElement,"scroll",ee._onScroll.bind(ee))),ee._activeBuffer=ee._bufferService.buffer,ee.register(ee._bufferService.buffers.onBufferActivate(function(oe){return ee._activeBuffer=oe.activeBuffer})),ee._renderDimensions=ee._renderService.dimensions,ee.register(ee._renderService.onDimensionsChange(function(oe){return ee._renderDimensions=oe})),setTimeout(function(){return ee.syncScrollArea()},0),ee}return P(T,I),T.prototype.onThemeChange=function(w){this._viewportElement.style.backgroundColor=w.background.css},T.prototype._refresh=function(w){var S=this;if(w)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return S._innerRefresh()}))},T.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 w=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==w&&(this._lastRecordedBufferHeight=w,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),0===this._optionsService.rawOptions.scrollback?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var N=window.getComputedStyle(this._element),R=parseInt(N.paddingLeft)+parseInt(N.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?R:0)).toString()+"px",this._refreshAnimationFrame=null},T.prototype.syncScrollArea=function(w){if(void 0===w&&(w=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(w);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(w):this._refresh(w)},T.prototype._onScroll=function(w){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)}},T.prototype._bubbleScroll=function(w,S){var N=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(S<0&&0!==this._viewportElement.scrollTop||S>0&&N<this._lastRecordedBufferHeight)||(w.cancelable&&w.preventDefault(),!1)},T.prototype.onWheel=function(w){var S=this._getPixelsScrolled(w);return 0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(w,S))},T.prototype._getPixelsScrolled=function(w){if(0===w.deltaY||w.shiftKey)return 0;var S=this._applyScrollModifier(w.deltaY,w);return w.deltaMode===WheelEvent.DOM_DELTA_LINE?S*=this._currentRowHeight:w.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._currentRowHeight*this._bufferService.rows),S},T.prototype.getLinesScrolled=function(w){if(0===w.deltaY||w.shiftKey)return 0;var S=this._applyScrollModifier(w.deltaY,w);return w.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):w.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(S*=this._bufferService.rows),S},T.prototype._applyScrollModifier=function(w,S){var N=this._optionsService.rawOptions.fastScrollModifier;return"alt"===N&&S.altKey||"ctrl"===N&&S.ctrlKey||"shift"===N&&S.shiftKey?w*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:w*this._optionsService.rawOptions.scrollSensitivity},T.prototype.onTouchStart=function(w){this._lastTouchY=w.touches[0].pageY},T.prototype.onTouchMove=function(w){var S=this._lastTouchY-w.touches[0].pageY;return this._lastTouchY=w.touches[0].pageY,0!==S&&(this._viewportElement.scrollTop+=S,this._bubbleScroll(w,S))},D([y(4,A.IBufferService),y(5,A.IOptionsService),y(6,E.ICharSizeService),y(7,E.IRenderService)],T)}(K.Disposable);M.Viewport=k},2950:function(Y,M,U){var L=this&&this.__decorate||function(F,E,A,k){var I,T=arguments.length,w=T<3?E:null===k?k=Object.getOwnPropertyDescriptor(E,A):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(F,E,A,k);else for(var S=F.length-1;S>=0;S--)(I=F[S])&&(w=(T<3?I(w):T>3?I(E,A,w):I(E,A))||w);return T>3&&w&&Object.defineProperty(E,A,w),w},P=this&&this.__param||function(F,E){return function(A,k){E(A,k,F)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CompositionHelper=void 0;var D=U(4725),y=U(2585),K=function(){function F(E,A,k,I,T,w){this._textarea=E,this._compositionView=A,this._bufferService=k,this._optionsService=I,this._coreService=T,this._renderService=w,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(F.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),F.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},F.prototype.compositionupdate=function(E){var A=this;this._compositionView.textContent=E.data,this.updateCompositionElements(),setTimeout(function(){A._compositionPosition.end=A._textarea.value.length},0)},F.prototype.compositionend=function(){this._finalizeComposition(!0)},F.prototype.keydown=function(E){if(this._isComposing||this._isSendingComposition){if(229===E.keyCode||16===E.keyCode||17===E.keyCode||18===E.keyCode)return!1;this._finalizeComposition(!1)}return 229!==E.keyCode||(this._handleAnyTextareaChanges(),!1)},F.prototype._finalizeComposition=function(E){var A=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,E){var k={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var T;A._isSendingComposition&&(A._isSendingComposition=!1,k.start+=A._dataAlreadySent.length,(T=A._isComposing?A._textarea.value.substring(k.start,k.end):A._textarea.value.substring(k.start)).length>0&&A._coreService.triggerDataEvent(T,!0))},0)}else{this._isSendingComposition=!1;var I=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(I,!0)}},F.prototype._handleAnyTextareaChanges=function(){var E=this,A=this._textarea.value;setTimeout(function(){if(!E._isComposing){var k=E._textarea.value.replace(A,"");k.length>0&&(E._dataAlreadySent=k,E._coreService.triggerDataEvent(k,!0))}},0)},F.prototype.updateCompositionElements=function(E){var A=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var k=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),I=this._renderService.dimensions.actualCellHeight,T=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,w=k*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=w+"px",this._compositionView.style.top=T+"px",this._compositionView.style.height=I+"px",this._compositionView.style.lineHeight=I+"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=w+"px",this._textarea.style.top=T+"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"}E||setTimeout(function(){return A.updateCompositionElements(!0)},0)}},L([P(2,y.IBufferService),P(3,y.IOptionsService),P(4,y.ICoreService),P(5,D.IRenderService)],F)}();M.CompositionHelper=K},9806:function(Y,M){function U(L,P){var D=P.getBoundingClientRect();return[L.clientX-D.left,L.clientY-D.top]}Object.defineProperty(M,"__esModule",{value:!0}),M.getRawByteCoords=M.getCoords=M.getCoordsRelativeToElement=void 0,M.getCoordsRelativeToElement=U,M.getCoords=function(L,P,D,y,K,F,E,A){if(K){var k=U(L,P);if(k)return k[0]=Math.ceil((k[0]+(A?F/2:0))/F),k[1]=Math.ceil(k[1]/E),k[0]=Math.min(Math.max(k[0],1),D+(A?1:0)),k[1]=Math.min(Math.max(k[1],1),y),k}},M.getRawByteCoords=function(L){if(L)return{x:L[0]+32,y:L[1]+32}}},9504:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.moveToCellSequence=void 0;var L=U(2584);function P(A,k,I,T){var w=A-D(I,A),S=k-D(I,k);return E(Math.abs(w-S)-function(R,W,$){for(var ce=0,se=R-D($,R),ee=W-D($,W),oe=0;oe<Math.abs(se-ee);oe++){var ge="A"===y(R,W)?-1:1,Oe=$.buffer.lines.get(se+ge*oe);(null==Oe?void 0:Oe.isWrapped)&&ce++}return ce}(A,k,I),F(y(A,k),T))}function D(A,k){for(var I=0,T=A.buffer.lines.get(k),w=null==T?void 0:T.isWrapped;w&&k>=0&&k<A.rows;)I++,w=null==(T=A.buffer.lines.get(--k))?void 0:T.isWrapped;return I}function y(A,k){return A>k?"A":"B"}function K(A,k,I,T,w,S){for(var N=A,R=k,W="";N!==I||R!==T;)N+=w?1:-1,w&&N>S.cols-1?(W+=S.buffer.translateBufferLineToString(R,!1,A,N),N=0,A=0,R++):!w&&N<0&&(W+=S.buffer.translateBufferLineToString(R,!1,0,A+1),A=N=S.cols-1,R--);return W+S.buffer.translateBufferLineToString(R,!1,A,N)}function F(A,k){var I=k?"O":"[";return L.C0.ESC+I+A}function E(A,k){A=Math.floor(A);for(var I="",T=0;T<A;T++)I+=k;return I}M.moveToCellSequence=function(A,k,I,T){var w,W,$,ee,oe,S=I.buffer.x,N=I.buffer.y;if(!I.buffer.hasScrollback)return W=S,(0===P($=N,k,ee=I,oe=T).length?"":E(K(W,$,W,$-D(ee,$),!1,ee).length,F("D",oe)))+P(N,k,I,T)+function(W,$,ce,se,ee,oe){var ge;ge=P($,se,ee,oe).length>0?se-D(ee,se):$;var xe,_e,ke,Be,ct,Nt,Oe=se,ot=(xe=W,_e=$,Nt=P(ke=ce,Be=se,ct=ee,oe).length>0?Be-D(ct,Be):_e,xe<ke&&Nt<=Be||xe>=ke&&Nt<Be?"C":"D");return E(K(W,ge,ce,Oe,"C"===ot,ee).length,F(ot,oe))}(S,N,A,k,I,T);if(N===k)return w=S>A?"D":"C",E(Math.abs(S-A),F(w,T));w=N>k?"D":"C";var R=Math.abs(N-k);return E(function(W,$){return $.cols-W}(N>k?A:S,I)+(R-1)*I.cols+1+((N>k?S:A)-1),F(w,T))}},4389:function(Y,M,U){var L=this&&this.__assign||function(){return L=Object.assign||function(I){for(var T,w=1,S=arguments.length;w<S;w++)for(var N in T=arguments[w])Object.prototype.hasOwnProperty.call(T,N)&&(I[N]=T[N]);return I},L.apply(this,arguments)};Object.defineProperty(M,"__esModule",{value:!0}),M.Terminal=void 0;var P=U(3236),D=U(9042),y=U(7975),K=U(7090),F=U(5741),E=U(8285),A=["cols","rows"],k=function(){function I(T){var w=this;this._core=new P.Terminal(T),this._addonManager=new F.AddonManager,this._publicOptions=L({},this._core.options);var S=function(ce){return w._core.options[ce]},N=function(ce,se){w._checkReadonlyOptions(ce),w._core.options[ce]=se};for(var R in this._core.options){var W={get:S.bind(this,R),set:N.bind(this,R)};Object.defineProperty(this._publicOptions,R,W)}}return I.prototype._checkReadonlyOptions=function(T){if(A.includes(T))throw new Error('Option "'+T+'" can only be set in the constructor')},I.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(I.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new y.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"unicode",{get:function(){return this._checkProposedApi(),new K.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new E.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"modes",{get:function(){var w=this._core.coreService.decPrivateModes,S="none";switch(this._core.coreMouseService.activeProtocol){case"X10":S="x10";break;case"VT200":S="vt200";break;case"DRAG":S="drag";break;case"ANY":S="any"}return{applicationCursorKeysMode:w.applicationCursorKeys,applicationKeypadMode:w.applicationKeypad,bracketedPasteMode:w.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:S,originMode:w.origin,reverseWraparoundMode:w.reverseWraparound,sendFocusMode:w.sendFocus,wraparoundMode:w.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"options",{get:function(){return this._publicOptions},set:function(w){for(var S in w)this._publicOptions[S]=w[S]},enumerable:!1,configurable:!0}),I.prototype.blur=function(){this._core.blur()},I.prototype.focus=function(){this._core.focus()},I.prototype.resize=function(T,w){this._verifyIntegers(T,w),this._core.resize(T,w)},I.prototype.open=function(T){this._core.open(T)},I.prototype.attachCustomKeyEventHandler=function(T){this._core.attachCustomKeyEventHandler(T)},I.prototype.registerLinkMatcher=function(T,w,S){return this._checkProposedApi(),this._core.registerLinkMatcher(T,w,S)},I.prototype.deregisterLinkMatcher=function(T){this._checkProposedApi(),this._core.deregisterLinkMatcher(T)},I.prototype.registerLinkProvider=function(T){return this._checkProposedApi(),this._core.registerLinkProvider(T)},I.prototype.registerCharacterJoiner=function(T){return this._checkProposedApi(),this._core.registerCharacterJoiner(T)},I.prototype.deregisterCharacterJoiner=function(T){this._checkProposedApi(),this._core.deregisterCharacterJoiner(T)},I.prototype.registerMarker=function(T){return void 0===T&&(T=0),this._checkProposedApi(),this._verifyIntegers(T),this._core.addMarker(T)},I.prototype.registerDecoration=function(T){var w,S,N;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(w=T.x)&&void 0!==w?w:0,null!==(S=T.width)&&void 0!==S?S:0,null!==(N=T.height)&&void 0!==N?N:0),this._core.registerDecoration(T)},I.prototype.addMarker=function(T){return this.registerMarker(T)},I.prototype.hasSelection=function(){return this._core.hasSelection()},I.prototype.select=function(T,w,S){this._verifyIntegers(T,w,S),this._core.select(T,w,S)},I.prototype.getSelection=function(){return this._core.getSelection()},I.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},I.prototype.clearSelection=function(){this._core.clearSelection()},I.prototype.selectAll=function(){this._core.selectAll()},I.prototype.selectLines=function(T,w){this._verifyIntegers(T,w),this._core.selectLines(T,w)},I.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},I.prototype.scrollLines=function(T){this._verifyIntegers(T),this._core.scrollLines(T)},I.prototype.scrollPages=function(T){this._verifyIntegers(T),this._core.scrollPages(T)},I.prototype.scrollToTop=function(){this._core.scrollToTop()},I.prototype.scrollToBottom=function(){this._core.scrollToBottom()},I.prototype.scrollToLine=function(T){this._verifyIntegers(T),this._core.scrollToLine(T)},I.prototype.clear=function(){this._core.clear()},I.prototype.write=function(T,w){this._core.write(T,w)},I.prototype.writeUtf8=function(T,w){this._core.write(T,w)},I.prototype.writeln=function(T,w){this._core.write(T),this._core.write("\r\n",w)},I.prototype.paste=function(T){this._core.paste(T)},I.prototype.getOption=function(T){return this._core.optionsService.getOption(T)},I.prototype.setOption=function(T,w){this._checkReadonlyOptions(T),this._core.optionsService.setOption(T,w)},I.prototype.refresh=function(T,w){this._verifyIntegers(T,w),this._core.refresh(T,w)},I.prototype.reset=function(){this._core.reset()},I.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},I.prototype.loadAddon=function(T){return this._addonManager.loadAddon(this,T)},Object.defineProperty(I,"strings",{get:function(){return D},enumerable:!1,configurable:!0}),I.prototype._verifyIntegers=function(){for(var T=[],w=0;w<arguments.length;w++)T[w]=arguments[w];for(var S=0,N=T;S<N.length;S++){var R=N[S];if(R===1/0||isNaN(R)||R%1!=0)throw new Error("This API only accepts integers")}},I.prototype._verifyPositiveIntegers=function(){for(var T=[],w=0;w<arguments.length;w++)T[w]=arguments[w];for(var S=0,N=T;S<N.length;S++){var R=N[S];if(R&&(R===1/0||isNaN(R)||R%1!=0||R<0))throw new Error("This API only accepts positive integers")}},I}();M.Terminal=k},1546:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BaseRenderLayer=void 0;var L=U(643),P=U(8803),D=U(1420),y=U(3734),K=U(1752),F=U(4774),E=U(9631),A=U(8978),k=function(){function I(T,w,S,N,R,W,$,ce){this._container=T,this._alpha=N,this._colors=R,this._rendererId=W,this._bufferService=$,this._optionsService=ce,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,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-"+w+"-layer"),this._canvas.style.zIndex=S.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return I.prototype.dispose=function(){var T;(0,E.removeElementFromParent)(this._canvas),null===(T=this._charAtlas)||void 0===T||T.dispose()},I.prototype._initCanvas=function(){this._ctx=(0,K.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},I.prototype.onOptionsChanged=function(){},I.prototype.onBlur=function(){},I.prototype.onFocus=function(){},I.prototype.onCursorMove=function(){},I.prototype.onGridChanged=function(T,w){},I.prototype.onSelectionChanged=function(T,w,S){void 0===S&&(S=!1)},I.prototype.setColors=function(T){this._refreshCharAtlas(T)},I.prototype._setTransparency=function(T){if(T!==this._alpha){var w=this._canvas;this._alpha=T,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,w),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},I.prototype._refreshCharAtlas=function(T){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,D.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,T,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},I.prototype.resize=function(T){this._scaledCellWidth=T.scaledCellWidth,this._scaledCellHeight=T.scaledCellHeight,this._scaledCharWidth=T.scaledCharWidth,this._scaledCharHeight=T.scaledCharHeight,this._scaledCharLeft=T.scaledCharLeft,this._scaledCharTop=T.scaledCharTop,this._canvas.width=T.scaledCanvasWidth,this._canvas.height=T.scaledCanvasHeight,this._canvas.style.width=T.canvasWidth+"px",this._canvas.style.height=T.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},I.prototype.clearTextureAtlas=function(){var T;null===(T=this._charAtlas)||void 0===T||T.clear()},I.prototype._fillCells=function(T,w,S,N){this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,S*this._scaledCellWidth,N*this._scaledCellHeight)},I.prototype._fillMiddleLineAtCells=function(T,w,S){void 0===S&&(S=1);var N=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(T*this._scaledCellWidth,(w+1)*this._scaledCellHeight-N-window.devicePixelRatio,S*this._scaledCellWidth,window.devicePixelRatio)},I.prototype._fillBottomLineAtCells=function(T,w,S){void 0===S&&(S=1),this._ctx.fillRect(T*this._scaledCellWidth,(w+1)*this._scaledCellHeight-window.devicePixelRatio-1,S*this._scaledCellWidth,window.devicePixelRatio)},I.prototype._fillLeftLineAtCell=function(T,w,S){this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,window.devicePixelRatio*S,this._scaledCellHeight)},I.prototype._strokeRectAtCell=function(T,w,S,N){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(T*this._scaledCellWidth+window.devicePixelRatio/2,w*this._scaledCellHeight+window.devicePixelRatio/2,S*this._scaledCellWidth-window.devicePixelRatio,N*this._scaledCellHeight-window.devicePixelRatio)},I.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))},I.prototype._clearCells=function(T,w,S,N){this._alpha?this._ctx.clearRect(T*this._scaledCellWidth,w*this._scaledCellHeight,S*this._scaledCellWidth,N*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(T*this._scaledCellWidth,w*this._scaledCellHeight,S*this._scaledCellWidth,N*this._scaledCellHeight))},I.prototype._fillCharTrueColor=function(T,w,S){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=P.TEXT_BASELINE,this._clipRow(S);var N=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(N=(0,A.tryDrawCustomChar)(this._ctx,T.getChars(),w*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),N||this._ctx.fillText(T.getChars(),w*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},I.prototype._drawChars=function(T,w,S){var N,R,W,$=this._getContrastColor(T);$||T.isFgRGB()||T.isBgRGB()?this._drawUncachedChars(T,w,S,$):(T.isInverse()?(R=T.isBgDefault()?P.INVERTED_DEFAULT_COLOR:T.getBgColor(),W=T.isFgDefault()?P.INVERTED_DEFAULT_COLOR:T.getFgColor()):(W=T.isBgDefault()?L.DEFAULT_COLOR:T.getBgColor(),R=T.isFgDefault()?L.DEFAULT_COLOR:T.getFgColor()),R+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&R<8?8:0,this._currentGlyphIdentifier.chars=T.getChars()||L.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=T.getCode()||L.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=W,this._currentGlyphIdentifier.fg=R,this._currentGlyphIdentifier.bold=!!T.isBold(),this._currentGlyphIdentifier.dim=!!T.isDim(),this._currentGlyphIdentifier.italic=!!T.isItalic(),(null===(N=this._charAtlas)||void 0===N?void 0:N.draw(this._ctx,this._currentGlyphIdentifier,w*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(T,w,S))},I.prototype._drawUncachedChars=function(T,w,S,N){if(this._ctx.save(),this._ctx.font=this._getFont(!!T.isBold(),!!T.isItalic()),this._ctx.textBaseline=P.TEXT_BASELINE,T.isInverse())if(N)this._ctx.fillStyle=N.css;else if(T.isBgDefault())this._ctx.fillStyle=F.color.opaque(this._colors.background).css;else if(T.isBgRGB())this._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(T.getBgColor()).join(",")+")";else{var R=T.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&R<8&&(R+=8),this._ctx.fillStyle=this._colors.ansi[R].css}else if(N)this._ctx.fillStyle=N.css;else if(T.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(T.isFgRGB())this._ctx.fillStyle="rgb("+y.AttributeData.toColorRGB(T.getFgColor()).join(",")+")";else{var W=T.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&T.isBold()&&W<8&&(W+=8),this._ctx.fillStyle=this._colors.ansi[W].css}this._clipRow(S),T.isDim()&&(this._ctx.globalAlpha=P.DIM_OPACITY);var $=!1;!1!==this._optionsService.rawOptions.customGlyphs&&($=(0,A.tryDrawCustomChar)(this._ctx,T.getChars(),w*this._scaledCellWidth,S*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),$||this._ctx.fillText(T.getChars(),w*this._scaledCellWidth+this._scaledCharLeft,S*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},I.prototype._clipRow=function(T){this._ctx.beginPath(),this._ctx.rect(0,T*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},I.prototype._getFont=function(T,w){return(w?"italic":"")+" "+(T?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},I.prototype._getContrastColor=function(T){if(1!==this._optionsService.rawOptions.minimumContrastRatio){var w=this._colors.contrastCache.getColor(T.bg,T.fg);if(void 0!==w)return w||void 0;var S=T.getFgColor(),N=T.getFgColorMode(),R=T.getBgColor(),W=T.getBgColorMode(),$=!!T.isInverse(),ce=!!T.isInverse();if($){var se=S;S=R,R=se;var ee=N;N=W,W=ee}var oe=this._resolveBackgroundRgba(W,R,$),ge=this._resolveForegroundRgba(N,S,$,ce),Oe=F.rgba.ensureContrastRatio(oe,ge,this._optionsService.rawOptions.minimumContrastRatio);if(Oe){var ot={css:F.channels.toCss(Oe>>24&255,Oe>>16&255,Oe>>8&255),rgba:Oe};return this._colors.contrastCache.setColor(T.bg,T.fg,ot),ot}this._colors.contrastCache.setColor(T.bg,T.fg,null)}},I.prototype._resolveBackgroundRgba=function(T,w,S){switch(T){case 16777216:case 33554432:return this._colors.ansi[w].rgba;case 50331648:return w<<8;default:return S?this._colors.foreground.rgba:this._colors.background.rgba}},I.prototype._resolveForegroundRgba=function(T,w,S,N){switch(T){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&N&&w<8&&(w+=8),this._colors.ansi[w].rgba;case 50331648:return w<<8;default:return S?this._colors.background.rgba:this._colors.foreground.rgba}},I}();M.BaseRenderLayer=k},2512:function(Y,M,U){var L,P=this&&this.__extends||(L=function(S,N){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var $ in W)Object.prototype.hasOwnProperty.call(W,$)&&(R[$]=W[$])})(S,N)},function(w,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function N(){this.constructor=w}L(w,S),w.prototype=null===S?Object.create(S):(N.prototype=S.prototype,new N)}),D=this&&this.__decorate||function(w,S,N,R){var W,$=arguments.length,ce=$<3?S:null===R?R=Object.getOwnPropertyDescriptor(S,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,S,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(S,N,ce):W(S,N))||ce);return $>3&&ce&&Object.defineProperty(S,N,ce),ce},y=this&&this.__param||function(w,S){return function(N,R){S(N,R,w)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CursorRenderLayer=void 0;var K=U(1546),F=U(511),E=U(2585),A=U(4725),k=600,I=function(w){function S(N,R,W,$,ce,se,ee,oe,ge){var Oe=w.call(this,N,"cursor",R,!0,W,$,se,ee)||this;return Oe._onRequestRedraw=ce,Oe._coreService=oe,Oe._coreBrowserService=ge,Oe._cell=new F.CellData,Oe._state={x:0,y:0,isFocused:!1,style:"",width:0},Oe._cursorRenderers={bar:Oe._renderBarCursor.bind(Oe),block:Oe._renderBlockCursor.bind(Oe),underline:Oe._renderUnderlineCursor.bind(Oe)},Oe}return P(S,w),S.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),w.prototype.dispose.call(this)},S.prototype.resize=function(N){w.prototype.resize.call(this,N),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},S.prototype.reset=function(){var N;this._clearCursor(),null===(N=this._cursorBlinkStateManager)||void 0===N||N.restartBlinkAnimation(),this.onOptionsChanged()},S.prototype.onBlur=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onFocus=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onOptionsChanged=function(){var N,R=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new T(this._coreBrowserService.isFocused,function(){R._render(!0)})):(null===(N=this._cursorBlinkStateManager)||void 0===N||N.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},S.prototype.onCursorMove=function(){var N;null===(N=this._cursorBlinkStateManager)||void 0===N||N.restartBlinkAnimation()},S.prototype.onGridChanged=function(N,R){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},S.prototype._render=function(N){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var R=this._bufferService.buffer.ybase+this._bufferService.buffer.y,W=R-this._bufferService.buffer.ydisp;if(W<0||W>=this._bufferService.rows)this._clearCursor();else{var $=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(R).loadCell($,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ce=this._optionsService.rawOptions.cursorStyle;return ce&&"block"!==ce?this._cursorRenderers[ce]($,W,this._cell):this._renderBlurCursor($,W,this._cell),this._ctx.restore(),this._state.x=$,this._state.y=W,this._state.isFocused=!1,this._state.style=ce,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===$&&this._state.y===W&&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"]($,W,this._cell),this._ctx.restore(),this._state.x=$,this._state.y=W,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(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(N,R,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},S.prototype._renderBlockCursor=function(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(N,R,W.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(W,N,R),this._ctx.restore()},S.prototype._renderUnderlineCursor=function(N,R,W){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(N,R),this._ctx.restore()},S.prototype._renderBlurCursor=function(N,R,W){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(N,R,W.getWidth(),1),this._ctx.restore()},D([y(5,E.IBufferService),y(6,E.IOptionsService),y(7,E.ICoreService),y(8,A.ICoreBrowserService)],S)}(K.BaseRenderLayer);M.CursorRenderLayer=I;var T=function(){function w(S,N){this._renderCallback=N,this.isCursorVisible=!0,S&&this._restartInterval()}return Object.defineProperty(w.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),w.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)},w.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})))},w.prototype._restartInterval=function(S){var N=this;void 0===S&&(S=k),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(N._animationTimeRestarted){var R=k-(Date.now()-N._animationTimeRestarted);if(N._animationTimeRestarted=void 0,R>0)return void N._restartInterval(R)}N.isCursorVisible=!1,N._animationFrame=window.requestAnimationFrame(function(){N._renderCallback(),N._animationFrame=void 0}),N._blinkInterval=window.setInterval(function(){if(N._animationTimeRestarted){var W=k-(Date.now()-N._animationTimeRestarted);return N._animationTimeRestarted=void 0,void N._restartInterval(W)}N.isCursorVisible=!N.isCursorVisible,N._animationFrame=window.requestAnimationFrame(function(){N._renderCallback(),N._animationFrame=void 0})},k)},S)},w.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)},w.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},w}()},8978:function(Y,M,U){var L,P,D,y,K,F,E,A,k,I,T,w,S,N,R,W,$,ce,se,ee,oe,ge,Oe,ot,xe,_e,ke,Be,ct,Mt,Nt,Xt,en,qt,Xe,jt,rt,vt,nt,Rt,It,on,_n,An,Gt,Zt,Et,Ut,Ht,sn,yt,mt,cn,$t,j,V,Jn,wn,Bt,dt,de,Te,ue,We,at,Dt,tn,Jt,nn,dn,On,Dn,zn,Ln,jn,mn,lr,Yn,Kt,tt,Ue,Ee,He,bt,Yt,En,rr,pn,lt,Se,Ae,Qe,_t,Wt,gn,Rn,cr,Rr,Xr,Mr,Hi,bo,Gi,Ka,Za,Go,_a,qo,yi,Ja,zi,or,Pr,ci,lo,uo,mi,Bo,$r,Pi,Wi,hr,Js,Qa,Ri,Do,_i,Ko;Object.defineProperty(M,"__esModule",{value:!0}),M.tryDrawCustomChar=M.boxDrawingDefinitions=M.blockElementDefinitions=void 0;var ga=U(1752);M.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 bi={"\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]]};M.boxDrawingDefinitions={"\u2500":(L={},L[1]="M0,.5 L1,.5",L),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(D={},D[1]="M.5,0 L.5,1",D),"\u2503":(y={},y[3]="M.5,0 L.5,1",y),"\u250c":(K={},K[1]="M0.5,1 L.5,.5 L1,.5",K),"\u250f":(F={},F[3]="M0.5,1 L.5,.5 L1,.5",F),"\u2510":(E={},E[1]="M0,.5 L.5,.5 L.5,1",E),"\u2513":(A={},A[3]="M0,.5 L.5,.5 L.5,1",A),"\u2514":(k={},k[1]="M.5,0 L.5,.5 L1,.5",k),"\u2517":(I={},I[3]="M.5,0 L.5,.5 L1,.5",I),"\u2518":(T={},T[1]="M.5,0 L.5,.5 L0,.5",T),"\u251b":(w={},w[3]="M.5,0 L.5,.5 L0,.5",w),"\u251c":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L1,.5",S),"\u2523":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L1,.5",N),"\u2524":(R={},R[1]="M.5,0 L.5,1 M.5,.5 L0,.5",R),"\u252b":(W={},W[3]="M.5,0 L.5,1 M.5,.5 L0,.5",W),"\u252c":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,1",$),"\u2533":(ce={},ce[3]="M0,.5 L1,.5 M.5,.5 L.5,1",ce),"\u2534":(se={},se[1]="M0,.5 L1,.5 M.5,.5 L.5,0",se),"\u253b":(ee={},ee[3]="M0,.5 L1,.5 M.5,.5 L.5,0",ee),"\u253c":(oe={},oe[1]="M0,.5 L1,.5 M.5,0 L.5,1",oe),"\u254b":(ge={},ge[3]="M0,.5 L1,.5 M.5,0 L.5,1",ge),"\u2574":(Oe={},Oe[1]="M.5,.5 L0,.5",Oe),"\u2578":(ot={},ot[3]="M.5,.5 L0,.5",ot),"\u2575":(xe={},xe[1]="M.5,.5 L.5,0",xe),"\u2579":(_e={},_e[3]="M.5,.5 L.5,0",_e),"\u2576":(ke={},ke[1]="M.5,.5 L1,.5",ke),"\u257a":(Be={},Be[3]="M.5,.5 L1,.5",Be),"\u2577":(ct={},ct[1]="M.5,.5 L.5,1",ct),"\u257b":(Mt={},Mt[3]="M.5,.5 L.5,1",Mt),"\u2550":(Nt={},Nt[1]=function(vn,bn){return"M0,"+(.5-bn)+" L1,"+(.5-bn)+" M0,"+(.5+bn)+" L1,"+(.5+bn)},Nt),"\u2551":(Xt={},Xt[1]=function(vn,bn){return"M"+(.5-vn)+",0 L"+(.5-vn)+",1 M"+(.5+vn)+",0 L"+(.5+vn)+",1"},Xt),"\u2552":(en={},en[1]=function(vn,bn){return"M.5,1 L.5,"+(.5-bn)+" L1,"+(.5-bn)+" M.5,"+(.5+bn)+" L1,"+(.5+bn)},en),"\u2553":(qt={},qt[1]=function(vn,bn){return"M"+(.5-vn)+",1 L"+(.5-vn)+",.5 L1,.5 M"+(.5+vn)+",.5 L"+(.5+vn)+",1"},qt),"\u2554":(Xe={},Xe[1]=function(vn,bn){return"M1,"+(.5-bn)+" L"+(.5-vn)+","+(.5-bn)+" L"+(.5-vn)+",1 M1,"+(.5+bn)+" L"+(.5+vn)+","+(.5+bn)+" L"+(.5+vn)+",1"},Xe),"\u2555":(jt={},jt[1]=function(vn,bn){return"M0,"+(.5-bn)+" L.5,"+(.5-bn)+" L.5,1 M0,"+(.5+bn)+" L.5,"+(.5+bn)},jt),"\u2556":(rt={},rt[1]=function(vn,bn){return"M"+(.5+vn)+",1 L"+(.5+vn)+",.5 L0,.5 M"+(.5-vn)+",.5 L"+(.5-vn)+",1"},rt),"\u2557":(vt={},vt[1]=function(vn,bn){return"M0,"+(.5+bn)+" L"+(.5-vn)+","+(.5+bn)+" L"+(.5-vn)+",1 M0,"+(.5-bn)+" L"+(.5+vn)+","+(.5-bn)+" L"+(.5+vn)+",1"},vt),"\u2558":(nt={},nt[1]=function(vn,bn){return"M.5,0 L.5,"+(.5+bn)+" L1,"+(.5+bn)+" M.5,"+(.5-bn)+" L1,"+(.5-bn)},nt),"\u2559":(Rt={},Rt[1]=function(vn,bn){return"M1,.5 L"+(.5-vn)+",.5 L"+(.5-vn)+",0 M"+(.5+vn)+",.5 L"+(.5+vn)+",0"},Rt),"\u255a":(It={},It[1]=function(vn,bn){return"M1,"+(.5-bn)+" L"+(.5+vn)+","+(.5-bn)+" L"+(.5+vn)+",0 M1,"+(.5+bn)+" L"+(.5-vn)+","+(.5+bn)+" L"+(.5-vn)+",0"},It),"\u255b":(on={},on[1]=function(vn,bn){return"M0,"+(.5+bn)+" L.5,"+(.5+bn)+" L.5,0 M0,"+(.5-bn)+" L.5,"+(.5-bn)},on),"\u255c":(_n={},_n[1]=function(vn,bn){return"M0,.5 L"+(.5+vn)+",.5 L"+(.5+vn)+",0 M"+(.5-vn)+",.5 L"+(.5-vn)+",0"},_n),"\u255d":(An={},An[1]=function(vn,bn){return"M0,"+(.5-bn)+" L"+(.5-vn)+","+(.5-bn)+" L"+(.5-vn)+",0 M0,"+(.5+bn)+" L"+(.5+vn)+","+(.5+bn)+" L"+(.5+vn)+",0"},An),"\u255e":(Gt={},Gt[1]=function(vn,bn){return"M.5,0 L.5,1 M.5,"+(.5-bn)+" L1,"+(.5-bn)+" M.5,"+(.5+bn)+" L1,"+(.5+bn)},Gt),"\u255f":(Zt={},Zt[1]=function(vn,bn){return"M"+(.5-vn)+",0 L"+(.5-vn)+",1 M"+(.5+vn)+",0 L"+(.5+vn)+",1 M"+(.5+vn)+",.5 L1,.5"},Zt),"\u2560":(Et={},Et[1]=function(vn,bn){return"M"+(.5-vn)+",0 L"+(.5-vn)+",1 M1,"+(.5+bn)+" L"+(.5+vn)+","+(.5+bn)+" L"+(.5+vn)+",1 M1,"+(.5-bn)+" L"+(.5+vn)+","+(.5-bn)+" L"+(.5+vn)+",0"},Et),"\u2561":(Ut={},Ut[1]=function(vn,bn){return"M.5,0 L.5,1 M0,"+(.5-bn)+" L.5,"+(.5-bn)+" M0,"+(.5+bn)+" L.5,"+(.5+bn)},Ut),"\u2562":(Ht={},Ht[1]=function(vn,bn){return"M0,.5 L"+(.5-vn)+",.5 M"+(.5-vn)+",0 L"+(.5-vn)+",1 M"+(.5+vn)+",0 L"+(.5+vn)+",1"},Ht),"\u2563":(sn={},sn[1]=function(vn,bn){return"M"+(.5+vn)+",0 L"+(.5+vn)+",1 M0,"+(.5+bn)+" L"+(.5-vn)+","+(.5+bn)+" L"+(.5-vn)+",1 M0,"+(.5-bn)+" L"+(.5-vn)+","+(.5-bn)+" L"+(.5-vn)+",0"},sn),"\u2564":(yt={},yt[1]=function(vn,bn){return"M0,"+(.5-bn)+" L1,"+(.5-bn)+" M0,"+(.5+bn)+" L1,"+(.5+bn)+" M.5,"+(.5+bn)+" L.5,1"},yt),"\u2565":(mt={},mt[1]=function(vn,bn){return"M0,.5 L1,.5 M"+(.5-vn)+",.5 L"+(.5-vn)+",1 M"+(.5+vn)+",.5 L"+(.5+vn)+",1"},mt),"\u2566":(cn={},cn[1]=function(vn,bn){return"M0,"+(.5-bn)+" L1,"+(.5-bn)+" M0,"+(.5+bn)+" L"+(.5-vn)+","+(.5+bn)+" L"+(.5-vn)+",1 M1,"+(.5+bn)+" L"+(.5+vn)+","+(.5+bn)+" L"+(.5+vn)+",1"},cn),"\u2567":($t={},$t[1]=function(vn,bn){return"M.5,0 L.5,"+(.5-bn)+" M0,"+(.5-bn)+" L1,"+(.5-bn)+" M0,"+(.5+bn)+" L1,"+(.5+bn)},$t),"\u2568":(j={},j[1]=function(vn,bn){return"M0,.5 L1,.5 M"+(.5-vn)+",.5 L"+(.5-vn)+",0 M"+(.5+vn)+",.5 L"+(.5+vn)+",0"},j),"\u2569":(V={},V[1]=function(vn,bn){return"M0,"+(.5+bn)+" L1,"+(.5+bn)+" M0,"+(.5-bn)+" L"+(.5-vn)+","+(.5-bn)+" L"+(.5-vn)+",0 M1,"+(.5-bn)+" L"+(.5+vn)+","+(.5-bn)+" L"+(.5+vn)+",0"},V),"\u256a":(Jn={},Jn[1]=function(vn,bn){return"M.5,0 L.5,1 M0,"+(.5-bn)+" L1,"+(.5-bn)+" M0,"+(.5+bn)+" L1,"+(.5+bn)},Jn),"\u256b":(wn={},wn[1]=function(vn,bn){return"M0,.5 L1,.5 M"+(.5-vn)+",0 L"+(.5-vn)+",1 M"+(.5+vn)+",0 L"+(.5+vn)+",1"},wn),"\u256c":(Bt={},Bt[1]=function(vn,bn){return"M0,"+(.5+bn)+" L"+(.5-vn)+","+(.5+bn)+" L"+(.5-vn)+",1 M1,"+(.5+bn)+" L"+(.5+vn)+","+(.5+bn)+" L"+(.5+vn)+",1 M0,"+(.5-bn)+" L"+(.5-vn)+","+(.5-bn)+" L"+(.5-vn)+",0 M1,"+(.5-bn)+" L"+(.5+vn)+","+(.5-bn)+" L"+(.5+vn)+",0"},Bt),"\u2571":(dt={},dt[1]="M1,0 L0,1",dt),"\u2572":(de={},de[1]="M0,0 L1,1",de),"\u2573":(Te={},Te[1]="M1,0 L0,1 M0,0 L1,1",Te),"\u257c":(ue={},ue[1]="M.5,.5 L0,.5",ue[3]="M.5,.5 L1,.5",ue),"\u257d":(We={},We[1]="M.5,.5 L.5,0",We[3]="M.5,.5 L.5,1",We),"\u257e":(at={},at[1]="M.5,.5 L1,.5",at[3]="M.5,.5 L0,.5",at),"\u257f":(Dt={},Dt[1]="M.5,.5 L.5,1",Dt[3]="M.5,.5 L.5,0",Dt),"\u250d":(tn={},tn[1]="M.5,.5 L.5,1",tn[3]="M.5,.5 L1,.5",tn),"\u250e":(Jt={},Jt[1]="M.5,.5 L1,.5",Jt[3]="M.5,.5 L.5,1",Jt),"\u2511":(nn={},nn[1]="M.5,.5 L.5,1",nn[3]="M.5,.5 L0,.5",nn),"\u2512":(dn={},dn[1]="M.5,.5 L0,.5",dn[3]="M.5,.5 L.5,1",dn),"\u2515":(On={},On[1]="M.5,.5 L.5,0",On[3]="M.5,.5 L1,.5",On),"\u2516":(Dn={},Dn[1]="M.5,.5 L1,.5",Dn[3]="M.5,.5 L.5,0",Dn),"\u2519":(zn={},zn[1]="M.5,.5 L.5,0",zn[3]="M.5,.5 L0,.5",zn),"\u251a":(Ln={},Ln[1]="M.5,.5 L0,.5",Ln[3]="M.5,.5 L.5,0",Ln),"\u251d":(jn={},jn[1]="M.5,0 L.5,1",jn[3]="M.5,.5 L1,.5",jn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(lr={},lr[1]="M.5,0 L.5,.5 L1,.5",lr[3]="M.5,.5 L.5,1",lr),"\u2520":(Yn={},Yn[1]="M.5,.5 L1,.5",Yn[3]="M.5,0 L.5,1",Yn),"\u2521":(Kt={},Kt[1]="M.5,.5 L.5,1",Kt[3]="M.5,0 L.5,.5 L1,.5",Kt),"\u2522":(tt={},tt[1]="M.5,.5 L.5,0",tt[3]="M0.5,1 L.5,.5 L1,.5",tt),"\u2525":(Ue={},Ue[1]="M.5,0 L.5,1",Ue[3]="M.5,.5 L0,.5",Ue),"\u2526":(Ee={},Ee[1]="M0,.5 L.5,.5 L.5,1",Ee[3]="M.5,.5 L.5,0",Ee),"\u2527":(He={},He[1]="M.5,0 L.5,.5 L0,.5",He[3]="M.5,.5 L.5,1",He),"\u2528":(bt={},bt[1]="M.5,.5 L0,.5",bt[3]="M.5,0 L.5,1",bt),"\u2529":(Yt={},Yt[1]="M.5,.5 L.5,1",Yt[3]="M.5,0 L.5,.5 L0,.5",Yt),"\u252a":(En={},En[1]="M.5,.5 L.5,0",En[3]="M0,.5 L.5,.5 L.5,1",En),"\u252d":(rr={},rr[1]="M0.5,1 L.5,.5 L1,.5",rr[3]="M.5,.5 L0,.5",rr),"\u252e":(pn={},pn[1]="M0,.5 L.5,.5 L.5,1",pn[3]="M.5,.5 L1,.5",pn),"\u252f":(lt={},lt[1]="M.5,.5 L.5,1",lt[3]="M0,.5 L1,.5",lt),"\u2530":(Se={},Se[1]="M0,.5 L1,.5",Se[3]="M.5,.5 L.5,1",Se),"\u2531":(Ae={},Ae[1]="M.5,.5 L1,.5",Ae[3]="M0,.5 L.5,.5 L.5,1",Ae),"\u2532":(Qe={},Qe[1]="M.5,.5 L0,.5",Qe[3]="M0.5,1 L.5,.5 L1,.5",Qe),"\u2535":(_t={},_t[1]="M.5,0 L.5,.5 L1,.5",_t[3]="M.5,.5 L0,.5",_t),"\u2536":(Wt={},Wt[1]="M.5,0 L.5,.5 L0,.5",Wt[3]="M.5,.5 L1,.5",Wt),"\u2537":(gn={},gn[1]="M.5,.5 L.5,0",gn[3]="M0,.5 L1,.5",gn),"\u2538":(Rn={},Rn[1]="M0,.5 L1,.5",Rn[3]="M.5,.5 L.5,0",Rn),"\u2539":(cr={},cr[1]="M.5,.5 L1,.5",cr[3]="M.5,0 L.5,.5 L0,.5",cr),"\u253a":(Rr={},Rr[1]="M.5,.5 L0,.5",Rr[3]="M.5,0 L.5,.5 L1,.5",Rr),"\u253d":(Xr={},Xr[1]="M.5,0 L.5,1 M.5,.5 L1,.5",Xr[3]="M.5,.5 L0,.5",Xr),"\u253e":(Mr={},Mr[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Mr[3]="M.5,.5 L1,.5",Mr),"\u253f":(Hi={},Hi[1]="M.5,0 L.5,1",Hi[3]="M0,.5 L1,.5",Hi),"\u2540":(bo={},bo[1]="M0,.5 L1,.5 M.5,.5 L.5,1",bo[3]="M.5,.5 L.5,0",bo),"\u2541":(Gi={},Gi[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Gi[3]="M.5,.5 L.5,1",Gi),"\u2542":(Ka={},Ka[1]="M0,.5 L1,.5",Ka[3]="M.5,0 L.5,1",Ka),"\u2543":(Za={},Za[1]="M0.5,1 L.5,.5 L1,.5",Za[3]="M.5,0 L.5,.5 L0,.5",Za),"\u2544":(Go={},Go[1]="M0,.5 L.5,.5 L.5,1",Go[3]="M.5,0 L.5,.5 L1,.5",Go),"\u2545":(_a={},_a[1]="M.5,0 L.5,.5 L1,.5",_a[3]="M0,.5 L.5,.5 L.5,1",_a),"\u2546":(qo={},qo[1]="M.5,0 L.5,.5 L0,.5",qo[3]="M0.5,1 L.5,.5 L1,.5",qo),"\u2547":(yi={},yi[1]="M.5,.5 L.5,1",yi[3]="M.5,.5 L.5,0 M0,.5 L1,.5",yi),"\u2548":(Ja={},Ja[1]="M.5,.5 L.5,0",Ja[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Ja),"\u2549":(zi={},zi[1]="M.5,.5 L1,.5",zi[3]="M.5,0 L.5,1 M.5,.5 L0,.5",zi),"\u254a":(or={},or[1]="M.5,.5 L0,.5",or[3]="M.5,0 L.5,1 M.5,.5 L1,.5",or),"\u254c":(Pr={},Pr[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Pr),"\u254d":(ci={},ci[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ci),"\u2504":(lo={},lo[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",lo),"\u2505":(uo={},uo[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",uo),"\u2508":(mi={},mi[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",mi),"\u2509":(Bo={},Bo[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",Bo),"\u254e":($r={},$r[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",$r),"\u254f":(Pi={},Pi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Pi),"\u2506":(Wi={},Wi[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Wi),"\u2507":(hr={},hr[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",hr),"\u250a":(Js={},Js[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Js),"\u250b":(Qa={},Qa[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qa),"\u256d":(Ri={},Ri[1]="C.5,1,.5,.5,1,.5",Ri),"\u256e":(Do={},Do[1]="C.5,1,.5,.5,0,.5",Do),"\u256f":(_i={},_i[1]="C.5,0,.5,.5,0,.5",_i),"\u2570":(Ko={},Ko[1]="C.5,0,.5,.5,1,.5",Ko)},M.tryDrawCustomChar=function(vn,bn,oi,Li,qi,ei){var Fo=M.blockElementDefinitions[bn];if(Fo)return function(Ci,Co,ks,Uo,ya,Ho){for(var Ji=0;Ji<Co.length;Ji++){var mo=Co[Ji],tr=ya/8,Ba=Ho/8;Ci.fillRect(ks+mo.x*tr,Uo+mo.y*Ba,mo.w*tr,mo.h*Ba)}}(vn,Fo,oi,Li,qi,ei),!0;var va=bi[bn];if(va)return function(Ci,Co,ks,Uo,ya,Ho){var Ji,mo=Nr.get(Co);mo||(mo=new Map,Nr.set(Co,mo));var tr=Ci.fillStyle;if("string"!=typeof tr)throw new Error('Unexpected fillStyle type "'+tr+'"');var Ba=mo.get(tr);if(!Ba){var Oo=Co[0].length,io=Co.length,Kr=document.createElement("canvas");Kr.width=Oo,Kr.height=io;var la=(0,ga.throwIfFalsy)(Kr.getContext("2d")),Jo=new ImageData(Oo,io),br=void 0,Is=void 0,us=void 0,ba=void 0;if(tr.startsWith("#"))br=parseInt(tr.substr(1,2),16),Is=parseInt(tr.substr(3,2),16),us=parseInt(tr.substr(5,2),16),ba=tr.length>7&&parseInt(tr.substr(7,2),16)||1;else{if(!tr.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+tr+'" when drawing pattern glyph');br=(Ji=tr.substring(5,tr.length-1).split(",").map(function(Ps){return parseFloat(Ps)}))[0],Is=Ji[1],us=Ji[2],ba=Ji[3]}for(var Qi=0;Qi<io;Qi++)for(var Xa=0;Xa<Oo;Xa++)Jo.data[4*(Qi*Oo+Xa)]=br,Jo.data[4*(Qi*Oo+Xa)+1]=Is,Jo.data[4*(Qi*Oo+Xa)+2]=us,Jo.data[4*(Qi*Oo+Xa)+3]=Co[Qi][Xa]*(255*ba);la.putImageData(Jo,0,0),Ba=(0,ga.throwIfFalsy)(Ci.createPattern(Kr,null)),mo.set(tr,Ba)}Ci.fillStyle=Ba,Ci.fillRect(ks,Uo,ya,Ho)}(vn,va,oi,Li,qi,ei),!0;var Ki=M.boxDrawingDefinitions[bn];return!!Ki&&(function(Ci,Co,ks,Uo,ya,Ho){Ci.strokeStyle=Ci.fillStyle;for(var Ji=0,mo=Object.entries(Co);Ji<mo.length;Ji++){var tr=mo[Ji],Ba=tr[0],Oo=tr[1];Ci.beginPath(),Ci.lineWidth=window.devicePixelRatio*Number.parseInt(Ba);for(var io=0,Kr=("function"==typeof Oo?Oo(.15,.15/Ho*ya):Oo).split(" ");io<Kr.length;io++){var la=Kr[io],Jo=la[0],br=oa[Jo];if(br){var Is=la.substring(1).split(",");Is[0]&&Is[1]&&br(Ci,Na(Is,ya,Ho,ks,Uo))}else console.error('Could not find drawing instructions for "'+Jo+'"')}Ci.stroke(),Ci.closePath()}}(vn,Ki,oi,Li,qi,ei),!0)};var Nr=new Map;function ws(vn,bn,oi){return void 0===oi&&(oi=0),Math.max(Math.min(vn,bn),oi)}var oa={C:function(bn,oi){return bn.bezierCurveTo(oi[0],oi[1],oi[2],oi[3],oi[4],oi[5])},L:function(bn,oi){return bn.lineTo(oi[0],oi[1])},M:function(bn,oi){return bn.moveTo(oi[0],oi[1])}};function Na(vn,bn,oi,Li,qi){var ei=vn.map(function(Ki){return parseFloat(Ki)||parseInt(Ki)});if(ei.length<2)throw new Error("Too few arguments for instruction");for(var Fo=0;Fo<ei.length;Fo+=2)ei[Fo]*=bn,0!==ei[Fo]&&(ei[Fo]=ws(Math.round(ei[Fo]+.5)-.5,bn,0)),ei[Fo]+=Li;for(var va=1;va<ei.length;va+=2)ei[va]*=oi,0!==ei[va]&&(ei[va]=ws(Math.round(ei[va]+.5)-.5,oi,0)),ei[va]+=qi;return ei}},3700:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.GridCache=void 0;var U=function(){function L(){this.cache=[]}return L.prototype.resize=function(P,D){for(var y=0;y<P;y++){this.cache.length<=y&&this.cache.push([]);for(var K=this.cache[y].length;K<D;K++)this.cache[y].push(void 0);this.cache[y].length=D}this.cache.length=P},L.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var D=0;D<this.cache[P].length;D++)this.cache[P][D]=void 0},L}();M.GridCache=U},5098:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.LinkRenderLayer=void 0;var K=U(1546),F=U(8803),E=U(2040),A=U(2585),k=function(I){function T(w,S,N,R,W,$,ce,se){var ee=I.call(this,w,"link",S,!0,N,R,ce,se)||this;return W.onShowLinkUnderline(function(oe){return ee._onShowLinkUnderline(oe)}),W.onHideLinkUnderline(function(oe){return ee._onHideLinkUnderline(oe)}),$.onShowLinkUnderline(function(oe){return ee._onShowLinkUnderline(oe)}),$.onHideLinkUnderline(function(oe){return ee._onHideLinkUnderline(oe)}),ee}return P(T,I),T.prototype.resize=function(w){I.prototype.resize.call(this,w),this._state=void 0},T.prototype.reset=function(){this._clearCurrentLink()},T.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var w=this._state.y2-this._state.y1-1;w>0&&this._clearCells(0,this._state.y1+1,this._state.cols,w),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},T.prototype._onShowLinkUnderline=function(w){if(w.fg===F.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:w.fg&&(0,E.is256Color)(w.fg)?this._ctx.fillStyle=this._colors.ansi[w.fg].css:this._ctx.fillStyle=this._colors.foreground.css,w.y1===w.y2)this._fillBottomLineAtCells(w.x1,w.y1,w.x2-w.x1);else{this._fillBottomLineAtCells(w.x1,w.y1,w.cols-w.x1);for(var S=w.y1+1;S<w.y2;S++)this._fillBottomLineAtCells(0,S,w.cols);this._fillBottomLineAtCells(0,w.y2,w.x2)}this._state=w},T.prototype._onHideLinkUnderline=function(w){this._clearCurrentLink()},D([y(6,A.IBufferService),y(7,A.IOptionsService)],T)}(K.BaseRenderLayer);M.LinkRenderLayer=k},3525:function(Y,M,U){var L,P=this&&this.__extends||(L=function($,ce){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ee){se.__proto__=ee}||function(se,ee){for(var oe in ee)Object.prototype.hasOwnProperty.call(ee,oe)&&(se[oe]=ee[oe])})($,ce)},function(W,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function ce(){this.constructor=W}L(W,$),W.prototype=null===$?Object.create($):(ce.prototype=$.prototype,new ce)}),D=this&&this.__decorate||function(W,$,ce,se){var ee,oe=arguments.length,ge=oe<3?$:null===se?se=Object.getOwnPropertyDescriptor($,ce):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ge=Reflect.decorate(W,$,ce,se);else for(var Oe=W.length-1;Oe>=0;Oe--)(ee=W[Oe])&&(ge=(oe<3?ee(ge):oe>3?ee($,ce,ge):ee($,ce))||ge);return oe>3&&ge&&Object.defineProperty($,ce,ge),ge},y=this&&this.__param||function(W,$){return function(ce,se){$(ce,se,W)}};Object.defineProperty(M,"__esModule",{value:!0}),M.Renderer=void 0;var K=U(9596),F=U(4149),E=U(2512),A=U(5098),k=U(844),I=U(4725),T=U(2585),w=U(1420),S=U(8460),N=1,R=function(W){function $(ce,se,ee,oe,ge,Oe,ot,xe){var _e=W.call(this)||this;_e._colors=ce,_e._screenElement=se,_e._bufferService=Oe,_e._charSizeService=ot,_e._optionsService=xe,_e._id=N++,_e._onRequestRedraw=new S.EventEmitter;var ke=_e._optionsService.rawOptions.allowTransparency;return _e._renderLayers=[ge.createInstance(K.TextRenderLayer,_e._screenElement,0,_e._colors,ke,_e._id),ge.createInstance(F.SelectionRenderLayer,_e._screenElement,1,_e._colors,_e._id),ge.createInstance(A.LinkRenderLayer,_e._screenElement,2,_e._colors,_e._id,ee,oe),ge.createInstance(E.CursorRenderLayer,_e._screenElement,3,_e._colors,_e._id,_e._onRequestRedraw)],_e.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},_e._devicePixelRatio=window.devicePixelRatio,_e._updateDimensions(),_e.onOptionsChanged(),_e}return P($,W),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){for(var ce=0,se=this._renderLayers;ce<se.length;ce++)se[ce].dispose();W.prototype.dispose.call(this),(0,w.removeTerminalFromCache)(this._id)},$.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},$.prototype.setColors=function(ce){this._colors=ce;for(var se=0,ee=this._renderLayers;se<ee.length;se++){var oe=ee[se];oe.setColors(this._colors),oe.reset()}},$.prototype.onResize=function(ce,se){this._updateDimensions();for(var ee=0,oe=this._renderLayers;ee<oe.length;ee++)oe[ee].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},$.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},$.prototype.onBlur=function(){this._runOperation(function(ce){return ce.onBlur()})},$.prototype.onFocus=function(){this._runOperation(function(ce){return ce.onFocus()})},$.prototype.onSelectionChanged=function(ce,se,ee){void 0===ee&&(ee=!1),this._runOperation(function(oe){return oe.onSelectionChanged(ce,se,ee)})},$.prototype.onCursorMove=function(){this._runOperation(function(ce){return ce.onCursorMove()})},$.prototype.onOptionsChanged=function(){this._runOperation(function(ce){return ce.onOptionsChanged()})},$.prototype.clear=function(){this._runOperation(function(ce){return ce.reset()})},$.prototype._runOperation=function(ce){for(var se=0,ee=this._renderLayers;se<ee.length;se++)ce(ee[se])},$.prototype.renderRows=function(ce,se){for(var ee=0,oe=this._renderLayers;ee<oe.length;ee++)oe[ee].onGridChanged(ce,se)},$.prototype.clearTextureAtlas=function(){for(var ce=0,se=this._renderLayers;ce<se.length;ce++)se[ce].clearTextureAtlas()},$.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)},D([y(4,T.IInstantiationService),y(5,T.IBufferService),y(6,I.ICharSizeService),y(7,T.IOptionsService)],$)}(k.Disposable);M.Renderer=R},1752:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.throwIfFalsy=void 0,M.throwIfFalsy=function(U){if(!U)throw new Error("value must not be falsy");return U}},4149:function(Y,M,U){var L,P=this&&this.__extends||(L=function(k,I){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,w){T.__proto__=w}||function(T,w){for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(T[S]=w[S])})(k,I)},function(A,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function I(){this.constructor=A}L(A,k),A.prototype=null===k?Object.create(k):(I.prototype=k.prototype,new I)}),D=this&&this.__decorate||function(A,k,I,T){var w,S=arguments.length,N=S<3?k:null===T?T=Object.getOwnPropertyDescriptor(k,I):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(A,k,I,T);else for(var R=A.length-1;R>=0;R--)(w=A[R])&&(N=(S<3?w(N):S>3?w(k,I,N):w(k,I))||N);return S>3&&N&&Object.defineProperty(k,I,N),N},y=this&&this.__param||function(A,k){return function(I,T){k(I,T,A)}};Object.defineProperty(M,"__esModule",{value:!0}),M.SelectionRenderLayer=void 0;var K=U(1546),F=U(2585),E=function(A){function k(I,T,w,S,N,R){var W=A.call(this,I,"selection",T,!0,w,S,N,R)||this;return W._clearState(),W}return P(k,A),k.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},k.prototype.resize=function(I){A.prototype.resize.call(this,I),this._clearState()},k.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},k.prototype.onSelectionChanged=function(I,T,w){if(this._didStateChange(I,T,w,this._bufferService.buffer.ydisp))if(this._clearAll(),I&&T){var S=I[1]-this._bufferService.buffer.ydisp,N=T[1]-this._bufferService.buffer.ydisp,R=Math.max(S,0),W=Math.min(N,this._bufferService.rows-1);if(R>=this._bufferService.rows||W<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,w){var $=I[0],ce=T[0]-$,se=W-R+1;this._fillCells($,R,ce,se)}else{$=S===R?I[0]:0;var ee=R===N?T[0]:this._bufferService.cols;this._fillCells($,R,ee-$,1);var oe=Math.max(W-R-1,0);if(this._fillCells(0,R+1,this._bufferService.cols,oe),R!==W){var ge=N===W?T[0]:this._bufferService.cols;this._fillCells(0,W,ge,1)}}this._state.start=[I[0],I[1]],this._state.end=[T[0],T[1]],this._state.columnSelectMode=w,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},k.prototype._didStateChange=function(I,T,w,S){return!this._areCoordinatesEqual(I,this._state.start)||!this._areCoordinatesEqual(T,this._state.end)||w!==this._state.columnSelectMode||S!==this._state.ydisp},k.prototype._areCoordinatesEqual=function(I,T){return!(!I||!T)&&I[0]===T[0]&&I[1]===T[1]},D([y(4,F.IBufferService),y(5,F.IOptionsService)],k)}(K.BaseRenderLayer);M.SelectionRenderLayer=E},9596:function(Y,M,U){var L,P=this&&this.__extends||(L=function(R,W){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ce){$.__proto__=ce}||function($,ce){for(var se in ce)Object.prototype.hasOwnProperty.call(ce,se)&&($[se]=ce[se])})(R,W)},function(N,R){if("function"!=typeof R&&null!==R)throw new TypeError("Class extends value "+String(R)+" is not a constructor or null");function W(){this.constructor=N}L(N,R),N.prototype=null===R?Object.create(R):(W.prototype=R.prototype,new W)}),D=this&&this.__decorate||function(N,R,W,$){var ce,se=arguments.length,ee=se<3?R:null===$?$=Object.getOwnPropertyDescriptor(R,W):$;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ee=Reflect.decorate(N,R,W,$);else for(var oe=N.length-1;oe>=0;oe--)(ce=N[oe])&&(ee=(se<3?ce(ee):se>3?ce(R,W,ee):ce(R,W))||ee);return se>3&&ee&&Object.defineProperty(R,W,ee),ee},y=this&&this.__param||function(N,R){return function(W,$){R(W,$,N)}};Object.defineProperty(M,"__esModule",{value:!0}),M.TextRenderLayer=void 0;var K=U(3700),F=U(1546),E=U(3734),A=U(643),k=U(511),I=U(2585),T=U(4725),w=U(4269),S=function(N){function R(W,$,ce,se,ee,oe,ge,Oe){var ot=N.call(this,W,"text",$,se,ce,ee,oe,ge)||this;return ot._characterJoinerService=Oe,ot._characterWidth=0,ot._characterFont="",ot._characterOverlapCache={},ot._workCell=new k.CellData,ot._state=new K.GridCache,ot}return P(R,N),R.prototype.resize=function(W){N.prototype.resize.call(this,W);var $=this._getFont(!1,!1);this._characterWidth===W.scaledCharWidth&&this._characterFont===$||(this._characterWidth=W.scaledCharWidth,this._characterFont=$,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},R.prototype.reset=function(){this._state.clear(),this._clearAll()},R.prototype._forEachCell=function(W,$,ce){for(var se=W;se<=$;se++)for(var ee=se+this._bufferService.buffer.ydisp,oe=this._bufferService.buffer.lines.get(ee),ge=this._characterJoinerService.getJoinedCharacters(ee),Oe=0;Oe<this._bufferService.cols;Oe++){oe.loadCell(Oe,this._workCell);var ot=this._workCell,xe=!1,_e=Oe;if(0!==ot.getWidth()){if(ge.length>0&&Oe===ge[0][0]){xe=!0;var ke=ge.shift();ot=new w.JoinedCellData(this._workCell,oe.translateToString(!0,ke[0],ke[1]),ke[1]-ke[0]),_e=ke[1]-1}!xe&&this._isOverlapping(ot)&&_e<oe.length-1&&oe.getCodePoint(_e+1)===A.NULL_CELL_CODE&&(ot.content&=-12582913,ot.content|=2<<22),ce(ot,Oe,se),Oe=_e}}},R.prototype._drawBackground=function(W,$){var ce=this,se=this._ctx,ee=this._bufferService.cols,oe=0,ge=0,Oe=null;se.save(),this._forEachCell(W,$,function(ot,xe,_e){var ke=null;ot.isInverse()?ke=ot.isFgDefault()?ce._colors.foreground.css:ot.isFgRGB()?"rgb("+E.AttributeData.toColorRGB(ot.getFgColor()).join(",")+")":ce._colors.ansi[ot.getFgColor()].css:ot.isBgRGB()?ke="rgb("+E.AttributeData.toColorRGB(ot.getBgColor()).join(",")+")":ot.isBgPalette()&&(ke=ce._colors.ansi[ot.getBgColor()].css),null===Oe&&(oe=xe,ge=_e),_e!==ge?(se.fillStyle=Oe||"",ce._fillCells(oe,ge,ee-oe,1),oe=xe,ge=_e):Oe!==ke&&(se.fillStyle=Oe||"",ce._fillCells(oe,ge,xe-oe,1),oe=xe,ge=_e),Oe=ke}),null!==Oe&&(se.fillStyle=Oe,this._fillCells(oe,ge,ee-oe,1)),se.restore()},R.prototype._drawForeground=function(W,$){var ce=this;this._forEachCell(W,$,function(se,ee,oe){if(!se.isInvisible()&&(ce._drawChars(se,ee,oe),se.isUnderline()||se.isStrikethrough())){if(ce._ctx.save(),se.isInverse())if(se.isBgDefault())ce._ctx.fillStyle=ce._colors.background.css;else if(se.isBgRGB())ce._ctx.fillStyle="rgb("+E.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var ge=se.getBgColor();ce._optionsService.rawOptions.drawBoldTextInBrightColors&&se.isBold()&&ge<8&&(ge+=8),ce._ctx.fillStyle=ce._colors.ansi[ge].css}else if(se.isFgDefault())ce._ctx.fillStyle=ce._colors.foreground.css;else if(se.isFgRGB())ce._ctx.fillStyle="rgb("+E.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var Oe=se.getFgColor();ce._optionsService.rawOptions.drawBoldTextInBrightColors&&se.isBold()&&Oe<8&&(Oe+=8),ce._ctx.fillStyle=ce._colors.ansi[Oe].css}se.isStrikethrough()&&ce._fillMiddleLineAtCells(ee,oe,se.getWidth()),se.isUnderline()&&ce._fillBottomLineAtCells(ee,oe,se.getWidth()),ce._ctx.restore()}})},R.prototype.onGridChanged=function(W,$){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,W,this._bufferService.cols,$-W+1),this._drawBackground(W,$),this._drawForeground(W,$))},R.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},R.prototype._isOverlapping=function(W){if(1!==W.getWidth()||W.getCode()<256)return!1;var $=W.getChars();if(this._characterOverlapCache.hasOwnProperty($))return this._characterOverlapCache[$];this._ctx.save(),this._ctx.font=this._characterFont;var ce=Math.floor(this._ctx.measureText($).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[$]=ce,ce},D([y(5,I.IBufferService),y(6,I.IOptionsService),y(7,T.ICharacterJoinerService)],R)}(F.BaseRenderLayer);M.TextRenderLayer=S},9616:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.BaseCharAtlas=void 0;var U=function(){function L(){this._didWarmUp=!1}return L.prototype.dispose=function(){},L.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},L.prototype._doWarmUp=function(){},L.prototype.clear=function(){},L.prototype.beginFrame=function(){},L}();M.BaseCharAtlas=U},1420:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.removeTerminalFromCache=M.acquireCharAtlas=void 0;var L=U(2040),P=U(1906),D=[];M.acquireCharAtlas=function(y,K,F,E,A){for(var k=(0,L.generateConfig)(E,A,y,F),I=0;I<D.length;I++){var T=(w=D[I]).ownedBy.indexOf(K);if(T>=0){if((0,L.configEquals)(w.config,k))return w.atlas;1===w.ownedBy.length?(w.atlas.dispose(),D.splice(I,1)):w.ownedBy.splice(T,1);break}}for(I=0;I<D.length;I++){var w=D[I];if((0,L.configEquals)(w.config,k))return w.ownedBy.push(K),w.atlas}var S={atlas:new P.DynamicCharAtlas(document,k),config:k,ownedBy:[K]};return D.push(S),S.atlas},M.removeTerminalFromCache=function(y){for(var K=0;K<D.length;K++){var F=D[K].ownedBy.indexOf(y);if(-1!==F){1===D[K].ownedBy.length?(D[K].atlas.dispose(),D.splice(K,1)):D[K].ownedBy.splice(F,1);break}}}},2040:function(Y,M,U){var L=this&&this.__spreadArray||function(D,y,K){if(K||2===arguments.length)for(var F,E=0,A=y.length;E<A;E++)!F&&E in y||(F||(F=Array.prototype.slice.call(y,0,E)),F[E]=y[E]);return D.concat(F||Array.prototype.slice.call(y))};Object.defineProperty(M,"__esModule",{value:!0}),M.is256Color=M.configEquals=M.generateConfig=void 0;var P=U(643);M.generateConfig=function(D,y,K,F){var E={foreground:F.foreground,background:F.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:L([],F.ansi,!0)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:D,scaledCharHeight:y,fontFamily:K.fontFamily,fontSize:K.fontSize,fontWeight:K.fontWeight,fontWeightBold:K.fontWeightBold,allowTransparency:K.allowTransparency,colors:E}},M.configEquals=function(D,y){for(var K=0;K<D.colors.ansi.length;K++)if(D.colors.ansi[K].rgba!==y.colors.ansi[K].rgba)return!1;return D.devicePixelRatio===y.devicePixelRatio&&D.fontFamily===y.fontFamily&&D.fontSize===y.fontSize&&D.fontWeight===y.fontWeight&&D.fontWeightBold===y.fontWeightBold&&D.allowTransparency===y.allowTransparency&&D.scaledCharWidth===y.scaledCharWidth&&D.scaledCharHeight===y.scaledCharHeight&&D.colors.foreground===y.colors.foreground&&D.colors.background===y.colors.background},M.is256Color=function(D){return D<P.DEFAULT_COLOR}},8803:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.CHAR_ATLAS_CELL_SPACING=M.TEXT_BASELINE=M.DIM_OPACITY=M.INVERTED_DEFAULT_COLOR=void 0;var L=U(6114);M.INVERTED_DEFAULT_COLOR=257,M.DIM_OPACITY=.5,M.TEXT_BASELINE=L.isFirefox||L.isLegacyEdge?"bottom":"ideographic",M.CHAR_ATLAS_CELL_SPACING=1},1906:function(Y,M,U){var L,P=this&&this.__extends||(L=function(ce,se){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ge in oe)Object.prototype.hasOwnProperty.call(oe,ge)&&(ee[ge]=oe[ge])})(ce,se)},function($,ce){if("function"!=typeof ce&&null!==ce)throw new TypeError("Class extends value "+String(ce)+" is not a constructor or null");function se(){this.constructor=$}L($,ce),$.prototype=null===ce?Object.create(ce):(se.prototype=ce.prototype,new se)});Object.defineProperty(M,"__esModule",{value:!0}),M.NoneCharAtlas=M.DynamicCharAtlas=M.getGlyphCacheKey=void 0;var D=U(8803),y=U(9616),K=U(5680),F=U(7001),E=U(6114),A=U(1752),k=U(4774),I=1024,T=1024,w={css:"rgba(0, 0, 0, 0)",rgba:0};function S($){return $.code<<21|$.bg<<12|$.fg<<3|($.bold?0:4)+($.dim?0:2)+($.italic?0:1)}M.getGlyphCacheKey=S;var N=function($){function ce(se,ee){var oe=$.call(this)||this;oe._config=ee,oe._drawToCacheCount=0,oe._glyphsWaitingOnBitmap=[],oe._bitmapCommitTimeout=null,oe._bitmap=null,oe._cacheCanvas=se.createElement("canvas"),oe._cacheCanvas.width=I,oe._cacheCanvas.height=T,oe._cacheCtx=(0,A.throwIfFalsy)(oe._cacheCanvas.getContext("2d",{alpha:!0}));var ge=se.createElement("canvas");ge.width=oe._config.scaledCharWidth,ge.height=oe._config.scaledCharHeight,oe._tmpCtx=(0,A.throwIfFalsy)(ge.getContext("2d",{alpha:oe._config.allowTransparency})),oe._width=Math.floor(I/oe._config.scaledCharWidth),oe._height=Math.floor(T/oe._config.scaledCharHeight);var Oe=oe._width*oe._height;return oe._cacheMap=new F.LRUMap(Oe),oe._cacheMap.prealloc(Oe),oe}return P(ce,$),ce.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},ce.prototype.beginFrame=function(){this._drawToCacheCount=0},ce.prototype.clear=function(){if(this._cacheMap.size>0){var se=this._width*this._height;this._cacheMap=new F.LRUMap(se),this._cacheMap.prealloc(se)}this._cacheCtx.clearRect(0,0,I,T),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},ce.prototype.draw=function(se,ee,oe,ge){if(32===ee.code)return!0;if(!this._canCache(ee))return!1;var Oe=S(ee),ot=this._cacheMap.get(Oe);if(null!=ot)return this._drawFromCache(se,ot,oe,ge),!0;if(this._drawToCacheCount<100){var xe;xe=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var _e=this._drawToCache(ee,xe);return this._cacheMap.set(Oe,_e),this._drawFromCache(se,_e,oe,ge),!0}return!1},ce.prototype._canCache=function(se){return se.code<256},ce.prototype._toCoordinateX=function(se){return se%this._width*this._config.scaledCharWidth},ce.prototype._toCoordinateY=function(se){return Math.floor(se/this._width)*this._config.scaledCharHeight},ce.prototype._drawFromCache=function(se,ee,oe,ge){if(!ee.isEmpty){var Oe=this._toCoordinateX(ee.index),ot=this._toCoordinateY(ee.index);se.drawImage(ee.inBitmap?this._bitmap:this._cacheCanvas,Oe,ot,this._config.scaledCharWidth,this._config.scaledCharHeight,oe,ge,this._config.scaledCharWidth,this._config.scaledCharHeight)}},ce.prototype._getColorFromAnsiIndex=function(se){return se<this._config.colors.ansi.length?this._config.colors.ansi[se]:K.DEFAULT_ANSI_COLORS[se]},ce.prototype._getBackgroundColor=function(se){return this._config.allowTransparency?w:se.bg===D.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:se.bg<256?this._getColorFromAnsiIndex(se.bg):this._config.colors.background},ce.prototype._getForegroundColor=function(se){return se.fg===D.INVERTED_DEFAULT_COLOR?k.color.opaque(this._config.colors.background):se.fg<256?this._getColorFromAnsiIndex(se.fg):this._config.colors.foreground},ce.prototype._drawToCache=function(se,ee){this._drawToCacheCount++,this._tmpCtx.save();var oe=this._getBackgroundColor(se);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=oe.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ge=se.bold?this._config.fontWeightBold:this._config.fontWeight,Oe=se.italic?"italic":"";this._tmpCtx.font=Oe+" "+ge+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=D.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(se).css,se.dim&&(this._tmpCtx.globalAlpha=D.DIM_OPACITY),this._tmpCtx.fillText(se.chars,0,this._config.scaledCharHeight);var ot=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),xe=!1;if(this._config.allowTransparency||(xe=W(ot,oe)),xe&&"_"===se.chars&&!this._config.allowTransparency)for(var _e=1;_e<=5&&(this._tmpCtx.fillText(se.chars,0,this._config.scaledCharHeight-_e),xe=W(ot=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),oe));_e++);this._tmpCtx.restore();var ke=this._toCoordinateX(ee),Be=this._toCoordinateY(ee);this._cacheCtx.putImageData(ot,ke,Be);var ct={index:ee,isEmpty:xe,inBitmap:!1};return this._addGlyphToBitmap(ct),ct},ce.prototype._addGlyphToBitmap=function(se){var ee=this;!("createImageBitmap"in window)||E.isFirefox||E.isSafari||(this._glyphsWaitingOnBitmap.push(se),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return ee._generateBitmap()},100)))},ce.prototype._generateBitmap=function(){var se=this,ee=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(oe){se._bitmap=oe;for(var ge=0;ge<ee.length;ge++)ee[ge].inBitmap=!0}),this._bitmapCommitTimeout=null},ce}(y.BaseCharAtlas);M.DynamicCharAtlas=N;var R=function($){function ce(se,ee){return $.call(this)||this}return P(ce,$),ce.prototype.draw=function(se,ee,oe,ge){return!1},ce}(y.BaseCharAtlas);function W($,ce){for(var se=!0,ee=ce.rgba>>>24,oe=ce.rgba>>>16&255,ge=ce.rgba>>>8&255,Oe=0;Oe<$.data.length;Oe+=4)$.data[Oe]===ee&&$.data[Oe+1]===oe&&$.data[Oe+2]===ge?$.data[Oe+3]=0:se=!1;return se}M.NoneCharAtlas=R},7001:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.LRUMap=void 0;var U=function(){function L(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return L.prototype._unlinkNode=function(P){var D=P.prev,y=P.next;P===this._head&&(this._head=y),P===this._tail&&(this._tail=D),null!==D&&(D.next=y),null!==y&&(y.prev=D)},L.prototype._appendNode=function(P){var D=this._tail;null!==D&&(D.next=P),P.prev=D,P.next=null,this._tail=P,null===this._head&&(this._head=P)},L.prototype.prealloc=function(P){for(var D=this._nodePool,y=0;y<P;y++)D.push({prev:null,next:null,key:null,value:null})},L.prototype.get=function(P){var D=this._map[P];return void 0!==D?(this._unlinkNode(D),this._appendNode(D),D.value):null},L.prototype.peekValue=function(P){var D=this._map[P];return void 0!==D?D.value:null},L.prototype.peek=function(){var P=this._head;return null===P?null:P.value},L.prototype.set=function(P,D){var y=this._map[P];if(void 0!==y)y=this._map[P],this._unlinkNode(y),y.value=D;else if(this.size>=this.capacity)y=this._head,this._unlinkNode(y),delete this._map[y.key],y.key=P,y.value=D,this._map[P]=y;else{var K=this._nodePool;K.length>0?((y=K.pop()).key=P,y.value=D):y={prev:null,next:null,key:P,value:D},this._map[P]=y,this.size++}this._appendNode(y)},L}();M.LRUMap=U},1296:function(Y,M,U){var L,P=this&&this.__extends||(L=function(ee,oe){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,Oe){ge.__proto__=Oe}||function(ge,Oe){for(var ot in Oe)Object.prototype.hasOwnProperty.call(Oe,ot)&&(ge[ot]=Oe[ot])})(ee,oe)},function(se,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function oe(){this.constructor=se}L(se,ee),se.prototype=null===ee?Object.create(ee):(oe.prototype=ee.prototype,new oe)}),D=this&&this.__decorate||function(se,ee,oe,ge){var Oe,ot=arguments.length,xe=ot<3?ee:null===ge?ge=Object.getOwnPropertyDescriptor(ee,oe):ge;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)xe=Reflect.decorate(se,ee,oe,ge);else for(var _e=se.length-1;_e>=0;_e--)(Oe=se[_e])&&(xe=(ot<3?Oe(xe):ot>3?Oe(ee,oe,xe):Oe(ee,oe))||xe);return ot>3&&xe&&Object.defineProperty(ee,oe,xe),xe},y=this&&this.__param||function(se,ee){return function(oe,ge){ee(oe,ge,se)}};Object.defineProperty(M,"__esModule",{value:!0}),M.DomRenderer=void 0;var K=U(3787),F=U(8803),E=U(844),A=U(4725),k=U(2585),I=U(8460),T=U(4774),w=U(9631),S="xterm-dom-renderer-owner-",N="xterm-fg-",R="xterm-bg-",W="xterm-focus",$=1,ce=function(se){function ee(oe,ge,Oe,ot,xe,_e,ke,Be,ct,Mt){var Nt=se.call(this)||this;return Nt._colors=oe,Nt._element=ge,Nt._screenElement=Oe,Nt._viewportElement=ot,Nt._linkifier=xe,Nt._linkifier2=_e,Nt._charSizeService=Be,Nt._optionsService=ct,Nt._bufferService=Mt,Nt._terminalClass=$++,Nt._rowElements=[],Nt._rowContainer=document.createElement("div"),Nt._rowContainer.classList.add("xterm-rows"),Nt._rowContainer.style.lineHeight="normal",Nt._rowContainer.setAttribute("aria-hidden","true"),Nt._refreshRowElements(Nt._bufferService.cols,Nt._bufferService.rows),Nt._selectionContainer=document.createElement("div"),Nt._selectionContainer.classList.add("xterm-selection"),Nt._selectionContainer.setAttribute("aria-hidden","true"),Nt.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},Nt._updateDimensions(),Nt._injectCss(),Nt._rowFactory=ke.createInstance(K.DomRendererRowFactory,document,Nt._colors),Nt._element.classList.add(S+Nt._terminalClass),Nt._screenElement.appendChild(Nt._rowContainer),Nt._screenElement.appendChild(Nt._selectionContainer),Nt._linkifier.onShowLinkUnderline(function(Xt){return Nt._onLinkHover(Xt)}),Nt._linkifier.onHideLinkUnderline(function(Xt){return Nt._onLinkLeave(Xt)}),Nt._linkifier2.onShowLinkUnderline(function(Xt){return Nt._onLinkHover(Xt)}),Nt._linkifier2.onHideLinkUnderline(function(Xt){return Nt._onLinkLeave(Xt)}),Nt}return P(ee,se),Object.defineProperty(ee.prototype,"onRequestRedraw",{get:function(){return(new I.EventEmitter).event},enumerable:!1,configurable:!0}),ee.prototype.dispose=function(){this._element.classList.remove(S+this._terminalClass),(0,w.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),se.prototype.dispose.call(this)},ee.prototype._updateDimensions=function(){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;for(var oe=0,ge=this._rowElements;oe<ge.length;oe++){var Oe=ge[oe];Oe.style.width=this.dimensions.canvasWidth+"px",Oe.style.height=this.dimensions.actualCellHeight+"px",Oe.style.lineHeight=this.dimensions.actualCellHeight+"px",Oe.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var ot=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=ot,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ee.prototype.setColors=function(oe){this._colors=oe,this._injectCss()},ee.prototype._injectCss=function(){var oe=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ge=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";ge+=this._terminalSelector+" span:not(."+K.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+K.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+K.ITALIC_CLASS+" { font-style: italic;}",ge+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ge+="@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+"; }}",ge+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_BLINK_CLASS+":not(."+K.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_BLINK_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+K.CURSOR_CLASS+"."+K.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ge+=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.selectionTransparent.css+";}",this._colors.ansi.forEach(function(Oe,ot){ge+=oe._terminalSelector+" ."+N+ot+" { color: "+Oe.css+"; }"+oe._terminalSelector+" ."+R+ot+" { background-color: "+Oe.css+"; }"}),ge+=this._terminalSelector+" ."+N+F.INVERTED_DEFAULT_COLOR+" { color: "+T.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+R+F.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=ge},ee.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},ee.prototype._refreshRowElements=function(oe,ge){for(var Oe=this._rowElements.length;Oe<=ge;Oe++){var ot=document.createElement("div");this._rowContainer.appendChild(ot),this._rowElements.push(ot)}for(;this._rowElements.length>ge;)this._rowContainer.removeChild(this._rowElements.pop())},ee.prototype.onResize=function(oe,ge){this._refreshRowElements(oe,ge),this._updateDimensions()},ee.prototype.onCharSizeChanged=function(){this._updateDimensions()},ee.prototype.onBlur=function(){this._rowContainer.classList.remove(W)},ee.prototype.onFocus=function(){this._rowContainer.classList.add(W)},ee.prototype.onSelectionChanged=function(oe,ge,Oe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(oe&&ge){var ot=oe[1]-this._bufferService.buffer.ydisp,xe=ge[1]-this._bufferService.buffer.ydisp,_e=Math.max(ot,0),ke=Math.min(xe,this._bufferService.rows-1);if(!(_e>=this._bufferService.rows||ke<0)){var Be=document.createDocumentFragment();if(Oe)Be.appendChild(this._createSelectionElement(_e,oe[0],ge[0],ke-_e+1));else{var ct=ot===_e?oe[0]:0,Mt=_e===xe?ge[0]:this._bufferService.cols;Be.appendChild(this._createSelectionElement(_e,ct,Mt));var Nt=ke-_e-1;if(Be.appendChild(this._createSelectionElement(_e+1,0,this._bufferService.cols,Nt)),_e!==ke){var Xt=xe===ke?ge[0]:this._bufferService.cols;Be.appendChild(this._createSelectionElement(ke,0,Xt))}}this._selectionContainer.appendChild(Be)}}},ee.prototype._createSelectionElement=function(oe,ge,Oe,ot){void 0===ot&&(ot=1);var xe=document.createElement("div");return xe.style.height=ot*this.dimensions.actualCellHeight+"px",xe.style.top=oe*this.dimensions.actualCellHeight+"px",xe.style.left=ge*this.dimensions.actualCellWidth+"px",xe.style.width=this.dimensions.actualCellWidth*(Oe-ge)+"px",xe},ee.prototype.onCursorMove=function(){},ee.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ee.prototype.clear=function(){for(var oe=0,ge=this._rowElements;oe<ge.length;oe++)ge[oe].innerText=""},ee.prototype.renderRows=function(oe,ge){for(var Oe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ot=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),xe=this._optionsService.rawOptions.cursorBlink,_e=oe;_e<=ge;_e++){var ke=this._rowElements[_e];ke.innerText="";var Be=_e+this._bufferService.buffer.ydisp,ct=this._bufferService.buffer.lines.get(Be),Mt=this._optionsService.rawOptions.cursorStyle;ke.appendChild(this._rowFactory.createRow(ct,Be,Be===Oe,Mt,ot,xe,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(ee.prototype,"_terminalSelector",{get:function(){return"."+S+this._terminalClass},enumerable:!1,configurable:!0}),ee.prototype._onLinkHover=function(oe){this._setCellUnderline(oe.x1,oe.x2,oe.y1,oe.y2,oe.cols,!0)},ee.prototype._onLinkLeave=function(oe){this._setCellUnderline(oe.x1,oe.x2,oe.y1,oe.y2,oe.cols,!1)},ee.prototype._setCellUnderline=function(oe,ge,Oe,ot,xe,_e){for(;oe!==ge||Oe!==ot;){var ke=this._rowElements[Oe];if(!ke)return;var Be=ke.children[oe];Be&&(Be.style.textDecoration=_e?"underline":"none"),++oe>=xe&&(oe=0,Oe++)}},D([y(6,k.IInstantiationService),y(7,A.ICharSizeService),y(8,k.IOptionsService),y(9,k.IBufferService)],ee)}(E.Disposable);M.DomRenderer=ce},3787:function(Y,M,U){var L=this&&this.__decorate||function(w,S,N,R){var W,$=arguments.length,ce=$<3?S:null===R?R=Object.getOwnPropertyDescriptor(S,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,S,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(S,N,ce):W(S,N))||ce);return $>3&&ce&&Object.defineProperty(S,N,ce),ce},P=this&&this.__param||function(w,S){return function(N,R){S(N,R,w)}};Object.defineProperty(M,"__esModule",{value:!0}),M.DomRendererRowFactory=M.CURSOR_STYLE_UNDERLINE_CLASS=M.CURSOR_STYLE_BAR_CLASS=M.CURSOR_STYLE_BLOCK_CLASS=M.CURSOR_BLINK_CLASS=M.CURSOR_CLASS=M.STRIKETHROUGH_CLASS=M.UNDERLINE_CLASS=M.ITALIC_CLASS=M.DIM_CLASS=M.BOLD_CLASS=void 0;var D=U(8803),y=U(643),K=U(511),F=U(2585),E=U(4774),A=U(4725),k=U(4269);M.BOLD_CLASS="xterm-bold",M.DIM_CLASS="xterm-dim",M.ITALIC_CLASS="xterm-italic",M.UNDERLINE_CLASS="xterm-underline",M.STRIKETHROUGH_CLASS="xterm-strikethrough",M.CURSOR_CLASS="xterm-cursor",M.CURSOR_BLINK_CLASS="xterm-cursor-blink",M.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",M.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",M.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var I=function(){function w(S,N,R,W,$){this._document=S,this._colors=N,this._characterJoinerService=R,this._optionsService=W,this._coreService=$,this._workCell=new K.CellData}return w.prototype.setColors=function(S){this._colors=S},w.prototype.createRow=function(S,N,R,W,$,ce,se,ee){for(var oe=this._document.createDocumentFragment(),ge=this._characterJoinerService.getJoinedCharacters(N),Oe=0,ot=Math.min(S.length,ee)-1;ot>=0;ot--)if(S.loadCell(ot,this._workCell).getCode()!==y.NULL_CELL_CODE||R&&ot===$){Oe=ot+1;break}for(ot=0;ot<Oe;ot++){S.loadCell(ot,this._workCell);var xe=this._workCell.getWidth();if(0!==xe){var _e=!1,ke=ot,Be=this._workCell;if(ge.length>0&&ot===ge[0][0]){_e=!0;var ct=ge.shift();Be=new k.JoinedCellData(this._workCell,S.translateToString(!0,ct[0],ct[1]),ct[1]-ct[0]),ke=ct[1]-1,xe=Be.getWidth()}var Mt=this._document.createElement("span");if(xe>1&&(Mt.style.width=se*xe+"px"),_e&&(Mt.style.display="inline",$>=ot&&$<=ke&&($=ot)),!this._coreService.isCursorHidden&&R&&ot===$)switch(Mt.classList.add(M.CURSOR_CLASS),ce&&Mt.classList.add(M.CURSOR_BLINK_CLASS),W){case"bar":Mt.classList.add(M.CURSOR_STYLE_BAR_CLASS);break;case"underline":Mt.classList.add(M.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Mt.classList.add(M.CURSOR_STYLE_BLOCK_CLASS)}Be.isBold()&&Mt.classList.add(M.BOLD_CLASS),Be.isItalic()&&Mt.classList.add(M.ITALIC_CLASS),Be.isDim()&&Mt.classList.add(M.DIM_CLASS),Be.isUnderline()&&Mt.classList.add(M.UNDERLINE_CLASS),Be.isInvisible()?Mt.textContent=y.WHITESPACE_CELL_CHAR:Mt.textContent=Be.getChars()||y.WHITESPACE_CELL_CHAR,Be.isStrikethrough()&&Mt.classList.add(M.STRIKETHROUGH_CLASS);var Nt=Be.getFgColor(),Xt=Be.getFgColorMode(),en=Be.getBgColor(),qt=Be.getBgColorMode(),Xe=!!Be.isInverse();if(Xe){var jt=Nt;Nt=en,en=jt;var rt=Xt;Xt=qt,qt=rt}switch(Xt){case 16777216:case 33554432:Be.isBold()&&Nt<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Nt+=8),this._applyMinimumContrast(Mt,this._colors.background,this._colors.ansi[Nt])||Mt.classList.add("xterm-fg-"+Nt);break;case 50331648:var vt=E.rgba.toColor(Nt>>16&255,Nt>>8&255,255&Nt);this._applyMinimumContrast(Mt,this._colors.background,vt)||this._addStyle(Mt,"color:#"+T(Nt.toString(16),"0",6));break;default:this._applyMinimumContrast(Mt,this._colors.background,this._colors.foreground)||Xe&&Mt.classList.add("xterm-fg-"+D.INVERTED_DEFAULT_COLOR)}switch(qt){case 16777216:case 33554432:Mt.classList.add("xterm-bg-"+en);break;case 50331648:this._addStyle(Mt,"background-color:#"+T(en.toString(16),"0",6));break;default:Xe&&Mt.classList.add("xterm-bg-"+D.INVERTED_DEFAULT_COLOR)}oe.appendChild(Mt),ot=ke}}return oe},w.prototype._applyMinimumContrast=function(S,N,R){if(1===this._optionsService.rawOptions.minimumContrastRatio)return!1;var W=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===W&&(W=E.color.ensureContrastRatio(N,R,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=W?W:null)),!!W&&(this._addStyle(S,"color:"+W.css),!0)},w.prototype._addStyle=function(S,N){S.setAttribute("style",""+(S.getAttribute("style")||"")+N+";")},L([P(2,A.ICharacterJoinerService),P(3,F.IOptionsService),P(4,F.ICoreService)],w)}();function T(w,S,N){for(;w.length<N;)w=S+w;return w}M.DomRendererRowFactory=I},456:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.SelectionModel=void 0;var U=function(){function L(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return L.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(L.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(L.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var D=this.selectionStart[0]+this.selectionStartLength;return D>this._bufferService.cols?D%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(D/this._bufferService.cols)-1]:[D%this._bufferService.cols,this.selectionStart[1]+Math.floor(D/this._bufferService.cols)]:[D,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),L.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,D=this.selectionEnd;return!(!P||!D)&&(P[1]>D[1]||P[1]===D[1]&&P[0]>D[0])},L.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)},L}();M.SelectionModel=U},428:function(Y,M,U){var L=this&&this.__decorate||function(E,A,k,I){var T,w=arguments.length,S=w<3?A:null===I?I=Object.getOwnPropertyDescriptor(A,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(E,A,k,I);else for(var N=E.length-1;N>=0;N--)(T=E[N])&&(S=(w<3?T(S):w>3?T(A,k,S):T(A,k))||S);return w>3&&S&&Object.defineProperty(A,k,S),S},P=this&&this.__param||function(E,A){return function(k,I){A(k,I,E)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CharSizeService=void 0;var D=U(2585),y=U(8460),K=function(){function E(A,k,I){this._optionsService=I,this.width=0,this.height=0,this._onCharSizeChange=new y.EventEmitter,this._measureStrategy=new F(A,k,this._optionsService)}return Object.defineProperty(E.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),E.prototype.measure=function(){var A=this._measureStrategy.measure();A.width===this.width&&A.height===this.height||(this.width=A.width,this.height=A.height,this._onCharSizeChange.fire())},L([P(2,D.IOptionsService)],E)}();M.CharSizeService=K;var F=function(){function E(A,k,I){this._document=A,this._parentElement=k,this._optionsService=I,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 E.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var A=this._measureElement.getBoundingClientRect();return 0!==A.width&&0!==A.height&&(this._result.width=A.width,this._result.height=Math.ceil(A.height)),this._result},E}()},4269:function(Y,M,U){var L,P=this&&this.__extends||(L=function(w,S){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,S)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function S(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(S.prototype=w.prototype,new S)}),D=this&&this.__decorate||function(T,w,S,N){var R,W=arguments.length,$=W<3?w:null===N?N=Object.getOwnPropertyDescriptor(w,S):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(T,w,S,N);else for(var ce=T.length-1;ce>=0;ce--)(R=T[ce])&&($=(W<3?R($):W>3?R(w,S,$):R(w,S))||$);return W>3&&$&&Object.defineProperty(w,S,$),$},y=this&&this.__param||function(T,w){return function(S,N){w(S,N,T)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CharacterJoinerService=M.JoinedCellData=void 0;var K=U(3734),F=U(643),E=U(511),A=U(2585),k=function(T){function w(S,N,R){var W=T.call(this)||this;return W.content=0,W.combinedData="",W.fg=S.fg,W.bg=S.bg,W.combinedData=N,W._width=R,W}return P(w,T),w.prototype.isCombined=function(){return 2097152},w.prototype.getWidth=function(){return this._width},w.prototype.getChars=function(){return this.combinedData},w.prototype.getCode=function(){return 2097151},w.prototype.setFromCharData=function(S){throw new Error("not implemented")},w.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},w}(K.AttributeData);M.JoinedCellData=k;var I=function(){function T(w){this._bufferService=w,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new E.CellData}return T.prototype.register=function(w){var S={id:this._nextCharacterJoinerId++,handler:w};return this._characterJoiners.push(S),S.id},T.prototype.deregister=function(w){for(var S=0;S<this._characterJoiners.length;S++)if(this._characterJoiners[S].id===w)return this._characterJoiners.splice(S,1),!0;return!1},T.prototype.getJoinedCharacters=function(w){if(0===this._characterJoiners.length)return[];var S=this._bufferService.buffer.lines.get(w);if(!S||0===S.length)return[];for(var N=[],R=S.translateToString(!0),W=0,$=0,ce=0,se=S.getFg(0),ee=S.getBg(0),oe=0;oe<S.getTrimmedLength();oe++)if(S.loadCell(oe,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==se||this._workCell.bg!==ee){if(oe-W>1)for(var ge=this._getJoinedRanges(R,ce,$,S,W),Oe=0;Oe<ge.length;Oe++)N.push(ge[Oe]);W=oe,ce=$,se=this._workCell.fg,ee=this._workCell.bg}$+=this._workCell.getChars().length||F.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-W>1)for(ge=this._getJoinedRanges(R,ce,$,S,W),Oe=0;Oe<ge.length;Oe++)N.push(ge[Oe]);return N},T.prototype._getJoinedRanges=function(w,S,N,R,W){var $=w.substring(S,N),ce=[];try{ce=this._characterJoiners[0].handler($)}catch(ge){console.error(ge)}for(var se=1;se<this._characterJoiners.length;se++)try{for(var ee=this._characterJoiners[se].handler($),oe=0;oe<ee.length;oe++)T._mergeRanges(ce,ee[oe])}catch(ge){console.error(ge)}return this._stringRangesToCellRanges(ce,R,W),ce},T.prototype._stringRangesToCellRanges=function(w,S,N){var R=0,W=!1,$=0,ce=w[R];if(ce){for(var se=N;se<this._bufferService.cols;se++){var ee=S.getWidth(se),oe=S.getString(se).length||F.WHITESPACE_CELL_CHAR.length;if(0!==ee){if(!W&&ce[0]<=$&&(ce[0]=se,W=!0),ce[1]<=$){if(ce[1]=se,!(ce=w[++R]))break;ce[0]<=$?(ce[0]=se,W=!0):W=!1}$+=oe}}ce&&(ce[1]=this._bufferService.cols)}},T._mergeRanges=function(w,S){for(var N=!1,R=0;R<w.length;R++){var W=w[R];if(N){if(S[1]<=W[0])return w[R-1][1]=S[1],w;if(S[1]<=W[1])return w[R-1][1]=Math.max(S[1],W[1]),w.splice(R,1),w;w.splice(R,1),R--}else{if(S[1]<=W[0])return w.splice(R,0,S),w;if(S[1]<=W[1])return W[0]=Math.min(S[0],W[0]),w;S[0]<W[1]&&(W[0]=Math.min(S[0],W[0]),N=!0)}}return N?w[w.length-1][1]=S[1]:w.push(S),w},T=D([y(0,A.IBufferService)],T)}();M.CharacterJoinerService=I},5114:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.CoreBrowserService=void 0;var U=function(){function L(P){this._textarea=P}return Object.defineProperty(L.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),L}();M.CoreBrowserService=U},7641:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.Decoration=M.DecorationService=void 0;var K=U(8460),F=U(844),E=U(2585),A=function(I){function T(w){var S=I.call(this)||this;return S._instantiationService=w,S._decorations=[],S}return P(T,I),T.prototype.attachToDom=function(w,S){var N=this;this._renderService=S,this._screenElement=w,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),w.appendChild(this._container),this.register(this._renderService.onRenderedBufferChange(function(){return N.refresh()})),this.register(this._renderService.onDimensionsChange(function(){return N.refresh(!0)}))},T.prototype.registerDecoration=function(w){var S=this;if(!w.marker.isDisposed&&this._container){var N=this._instantiationService.createInstance(k,w,this._container);return this._decorations.push(N),N.onDispose(function(){return S._decorations.splice(S._decorations.indexOf(N),1)}),this._queueRefresh(),N}},T.prototype._queueRefresh=function(){var w=this;void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){w.refresh(),w._animationFrame=void 0}))},T.prototype.refresh=function(w){if(this._renderService)for(var S=0,N=this._decorations;S<N.length;S++)N[S].render(this._renderService,w)},T.prototype.dispose=function(){for(var w=0,S=this._decorations;w<S.length;w++)S[w].dispose();this._screenElement&&this._container&&this._screenElement.contains(this._container)&&this._screenElement.removeChild(this._container)},D([y(0,E.IInstantiationService)],T)}(F.Disposable);M.DecorationService=A;var k=function(I){function T(w,S,N){var R,W=I.call(this)||this;return W._container=S,W._bufferService=N,W.isDisposed=!1,W._onDispose=new K.EventEmitter,W._onRender=new K.EventEmitter,W.x=null!==(R=w.x)&&void 0!==R?R:0,W._marker=w.marker,W._marker.onDispose(function(){return W.dispose()}),W.anchor=w.anchor||"left",W.width=w.width||1,W.height=w.height||1,W}return P(T,I),Object.defineProperty(T.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),T.prototype.render=function(w,S){this._element&&!S||this._createElement(w,S),this._container&&this._element&&!this._container.contains(this._element)&&this._container.append(this._element),this._refreshStyle(w),this._element&&this._onRender.fire(this._element)},T.prototype._createElement=function(w,S){S&&this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this._element=document.createElement("div"),this._element.classList.add("xterm-decoration"),this._element.style.width=this.width*w.dimensions.actualCellWidth+"px",this._element.style.height=this.height*w.dimensions.actualCellHeight+"px",this._element.style.top=(this.marker.line-this._bufferService.buffers.active.ydisp)*w.dimensions.actualCellHeight+"px",this._element.style.lineHeight=w.dimensions.actualCellHeight+"px",this.x&&this.x>this._bufferService.cols&&(this._element.style.display="none"),"right"===this.anchor?this._element.style.right=this.x?this.x*w.dimensions.actualCellWidth+"px":"":this._element.style.left=this.x?this.x*w.dimensions.actualCellWidth+"px":""},T.prototype._refreshStyle=function(w){if(this._element){var S=this.marker.line-this._bufferService.buffers.active.ydisp;S<0||S>this._bufferService.rows?this._element.style.display="none":(this._element.style.top=S*w.dimensions.actualCellHeight+"px",this._element.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block")}},T.prototype.dispose=function(){this.isDisposed||(this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this.isDisposed=!0,this._onDispose.fire())},D([y(2,E.IBufferService)],T)}(F.Disposable);M.Decoration=k},8934:function(Y,M,U){var L=this&&this.__decorate||function(F,E,A,k){var I,T=arguments.length,w=T<3?E:null===k?k=Object.getOwnPropertyDescriptor(E,A):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)w=Reflect.decorate(F,E,A,k);else for(var S=F.length-1;S>=0;S--)(I=F[S])&&(w=(T<3?I(w):T>3?I(E,A,w):I(E,A))||w);return T>3&&w&&Object.defineProperty(E,A,w),w},P=this&&this.__param||function(F,E){return function(A,k){E(A,k,F)}};Object.defineProperty(M,"__esModule",{value:!0}),M.MouseService=void 0;var D=U(4725),y=U(9806),K=function(){function F(E,A){this._renderService=E,this._charSizeService=A}return F.prototype.getCoords=function(E,A,k,I,T){return(0,y.getCoords)(E,A,k,I,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,T)},F.prototype.getRawByteCoords=function(E,A,k,I){var T=this.getCoords(E,A,k,I);return(0,y.getRawByteCoords)(T)},L([P(0,D.IRenderService),P(1,D.ICharSizeService)],F)}();M.MouseService=K},3230:function(Y,M,U){var L,P=this&&this.__extends||(L=function(N,R){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,$){W.__proto__=$}||function(W,$){for(var ce in $)Object.prototype.hasOwnProperty.call($,ce)&&(W[ce]=$[ce])})(N,R)},function(S,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function R(){this.constructor=S}L(S,N),S.prototype=null===N?Object.create(N):(R.prototype=N.prototype,new R)}),D=this&&this.__decorate||function(S,N,R,W){var $,ce=arguments.length,se=ce<3?N:null===W?W=Object.getOwnPropertyDescriptor(N,R):W;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)se=Reflect.decorate(S,N,R,W);else for(var ee=S.length-1;ee>=0;ee--)($=S[ee])&&(se=(ce<3?$(se):ce>3?$(N,R,se):$(N,R))||se);return ce>3&&se&&Object.defineProperty(N,R,se),se},y=this&&this.__param||function(S,N){return function(R,W){N(R,W,S)}};Object.defineProperty(M,"__esModule",{value:!0}),M.RenderService=void 0;var K=U(6193),F=U(8460),E=U(844),A=U(5596),k=U(3656),I=U(2585),T=U(4725),w=function(S){function N(R,W,$,ce,se,ee){var oe=S.call(this)||this;if(oe._renderer=R,oe._rowCount=W,oe._charSizeService=se,oe._isPaused=!1,oe._needsFullRefresh=!1,oe._isNextRenderRedrawOnly=!0,oe._needsSelectionRefresh=!1,oe._canvasWidth=0,oe._canvasHeight=0,oe._selectionState={start:void 0,end:void 0,columnSelectMode:!1},oe._onDimensionsChange=new F.EventEmitter,oe._onRender=new F.EventEmitter,oe._onRefreshRequest=new F.EventEmitter,oe.register({dispose:function(){return oe._renderer.dispose()}}),oe._renderDebouncer=new K.RenderDebouncer(function(Oe,ot){return oe._renderRows(Oe,ot)}),oe.register(oe._renderDebouncer),oe._screenDprMonitor=new A.ScreenDprMonitor,oe._screenDprMonitor.setListener(function(){return oe.onDevicePixelRatioChange()}),oe.register(oe._screenDprMonitor),oe.register(ee.onResize(function(){return oe._fullRefresh()})),oe.register(ee.buffers.onBufferActivate(function(){var Oe;return null===(Oe=oe._renderer)||void 0===Oe?void 0:Oe.clear()})),oe.register(ce.onOptionChange(function(){return oe._renderer.onOptionsChanged()})),oe.register(oe._charSizeService.onCharSizeChange(function(){return oe.onCharSizeChanged()})),oe._renderer.onRequestRedraw(function(Oe){return oe.refreshRows(Oe.start,Oe.end,!0)}),oe.register((0,k.addDisposableDomListener)(window,"resize",function(){return oe.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ge=new IntersectionObserver(function(Oe){return oe._onIntersectionChange(Oe[Oe.length-1])},{threshold:0});ge.observe($),oe.register({dispose:function(){return ge.disconnect()}})}return oe}return P(N,S),Object.defineProperty(N.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(N.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),N.prototype._onIntersectionChange=function(R){this._isPaused=void 0===R.isIntersecting?0===R.intersectionRatio:!R.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},N.prototype.refreshRows=function(R,W,$){void 0===$&&($=!1),this._isPaused?this._needsFullRefresh=!0:($||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(R,W,this._rowCount))},N.prototype._renderRows=function(R,W){this._renderer.renderRows(R,W),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:R,end:W}),this._isNextRenderRedrawOnly=!0},N.prototype.resize=function(R,W){this._rowCount=W,this._fireOnCanvasResize()},N.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},N.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},N.prototype.dispose=function(){S.prototype.dispose.call(this)},N.prototype.setRenderer=function(R){var W=this;this._renderer.dispose(),this._renderer=R,this._renderer.onRequestRedraw(function($){return W.refreshRows($.start,$.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},N.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},N.prototype.clearTextureAtlas=function(){var R,W;null===(W=null===(R=this._renderer)||void 0===R?void 0:R.clearTextureAtlas)||void 0===W||W.call(R),this._fullRefresh()},N.prototype.setColors=function(R){this._renderer.setColors(R),this._fullRefresh()},N.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},N.prototype.onResize=function(R,W){this._renderer.onResize(R,W),this._fullRefresh()},N.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},N.prototype.onBlur=function(){this._renderer.onBlur()},N.prototype.onFocus=function(){this._renderer.onFocus()},N.prototype.onSelectionChanged=function(R,W,$){this._selectionState.start=R,this._selectionState.end=W,this._selectionState.columnSelectMode=$,this._renderer.onSelectionChanged(R,W,$)},N.prototype.onCursorMove=function(){this._renderer.onCursorMove()},N.prototype.clear=function(){this._renderer.clear()},D([y(3,I.IOptionsService),y(4,T.ICharSizeService),y(5,I.IBufferService)],N)}(E.Disposable);M.RenderService=w},9312:function(Y,M,U){var L,P=this&&this.__extends||(L=function(se,ee){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ge){oe.__proto__=ge}||function(oe,ge){for(var Oe in ge)Object.prototype.hasOwnProperty.call(ge,Oe)&&(oe[Oe]=ge[Oe])})(se,ee)},function(ce,se){if("function"!=typeof se&&null!==se)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function ee(){this.constructor=ce}L(ce,se),ce.prototype=null===se?Object.create(se):(ee.prototype=se.prototype,new ee)}),D=this&&this.__decorate||function(ce,se,ee,oe){var ge,Oe=arguments.length,ot=Oe<3?se:null===oe?oe=Object.getOwnPropertyDescriptor(se,ee):oe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ot=Reflect.decorate(ce,se,ee,oe);else for(var xe=ce.length-1;xe>=0;xe--)(ge=ce[xe])&&(ot=(Oe<3?ge(ot):Oe>3?ge(se,ee,ot):ge(se,ee))||ot);return Oe>3&&ot&&Object.defineProperty(se,ee,ot),ot},y=this&&this.__param||function(ce,se){return function(ee,oe){se(ee,oe,ce)}};Object.defineProperty(M,"__esModule",{value:!0}),M.SelectionService=void 0;var K=U(6114),F=U(456),E=U(511),A=U(8460),k=U(4725),I=U(2585),T=U(9806),w=U(9504),S=U(844),N=U(4841),R=String.fromCharCode(160),W=new RegExp(R,"g"),$=function(ce){function se(ee,oe,ge,Oe,ot,xe,_e,ke){var Be=ce.call(this)||this;return Be._element=ee,Be._screenElement=oe,Be._linkifier=ge,Be._bufferService=Oe,Be._coreService=ot,Be._mouseService=xe,Be._optionsService=_e,Be._renderService=ke,Be._dragScrollAmount=0,Be._enabled=!0,Be._workCell=new E.CellData,Be._mouseDownTimeStamp=0,Be._oldHasSelection=!1,Be._oldSelectionStart=void 0,Be._oldSelectionEnd=void 0,Be._onLinuxMouseSelection=Be.register(new A.EventEmitter),Be._onRedrawRequest=Be.register(new A.EventEmitter),Be._onSelectionChange=Be.register(new A.EventEmitter),Be._onRequestScrollLines=Be.register(new A.EventEmitter),Be._mouseMoveListener=function(ct){return Be._onMouseMove(ct)},Be._mouseUpListener=function(ct){return Be._onMouseUp(ct)},Be._coreService.onUserInput(function(){Be.hasSelection&&Be.clearSelection()}),Be._trimListener=Be._bufferService.buffer.lines.onTrim(function(ct){return Be._onTrim(ct)}),Be.register(Be._bufferService.buffers.onBufferActivate(function(ct){return Be._onBufferActivate(ct)})),Be.enable(),Be._model=new F.SelectionModel(Be._bufferService),Be._activeSelectionMode=0,Be}return P(se,ce),Object.defineProperty(se.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),se.prototype.dispose=function(){this._removeMouseDownListeners()},se.prototype.reset=function(){this.clearSelection()},se.prototype.disable=function(){this.clearSelection(),this._enabled=!1},se.prototype.enable=function(){this._enabled=!0},Object.defineProperty(se.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"hasSelection",{get:function(){var oe=this._model.finalSelectionStart,ge=this._model.finalSelectionEnd;return!(!oe||!ge||oe[0]===ge[0]&&oe[1]===ge[1])},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"selectionText",{get:function(){var oe=this._model.finalSelectionStart,ge=this._model.finalSelectionEnd;if(!oe||!ge)return"";var Oe=this._bufferService.buffer,ot=[];if(3===this._activeSelectionMode){if(oe[0]===ge[0])return"";for(var xe=oe[1];xe<=ge[1];xe++){var _e=Oe.translateBufferLineToString(xe,!0,oe[0],ge[0]);ot.push(_e)}}else{var ke=oe[1]===ge[1]?ge[0]:void 0;for(ot.push(Oe.translateBufferLineToString(oe[1],!0,oe[0],ke)),xe=oe[1]+1;xe<=ge[1]-1;xe++){var Be=Oe.lines.get(xe);_e=Oe.translateBufferLineToString(xe,!0),(null==Be?void 0:Be.isWrapped)?ot[ot.length-1]+=_e:ot.push(_e)}oe[1]!==ge[1]&&(Be=Oe.lines.get(ge[1]),_e=Oe.translateBufferLineToString(ge[1],!0,0,ge[0]),Be&&Be.isWrapped?ot[ot.length-1]+=_e:ot.push(_e))}return ot.map(function(ct){return ct.replace(W," ")}).join(K.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),se.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},se.prototype.refresh=function(ee){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),K.isLinux&&ee&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},se.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},se.prototype._isClickInSelection=function(ee){var oe=this._getMouseBufferCoords(ee),ge=this._model.finalSelectionStart,Oe=this._model.finalSelectionEnd;return!!(ge&&Oe&&oe)&&this._areCoordsInSelection(oe,ge,Oe)},se.prototype._areCoordsInSelection=function(ee,oe,ge){return ee[1]>oe[1]&&ee[1]<ge[1]||oe[1]===ge[1]&&ee[1]===oe[1]&&ee[0]>=oe[0]&&ee[0]<ge[0]||oe[1]<ge[1]&&ee[1]===ge[1]&&ee[0]<ge[0]||oe[1]<ge[1]&&ee[1]===oe[1]&&ee[0]>=oe[0]},se.prototype._selectWordAtCursor=function(ee,oe){var ge,Oe,ot=null===(Oe=null===(ge=this._linkifier.currentLink)||void 0===ge?void 0:ge.link)||void 0===Oe?void 0:Oe.range;if(ot)return this._model.selectionStart=[ot.start.x-1,ot.start.y-1],this._model.selectionStartLength=(0,N.getRangeLength)(ot,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var xe=this._getMouseBufferCoords(ee);return!!xe&&(this._selectWordAt(xe,oe),this._model.selectionEnd=void 0,!0)},se.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},se.prototype.selectLines=function(ee,oe){this._model.clearSelection(),ee=Math.max(ee,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ee],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},se.prototype._onTrim=function(ee){this._model.onTrim(ee)&&this.refresh()},se.prototype._getMouseBufferCoords=function(ee){var oe=this._mouseService.getCoords(ee,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},se.prototype._getMouseEventScrollAmount=function(ee){var oe=(0,T.getCoordsRelativeToElement)(ee,this._screenElement)[1],ge=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ge?0:(oe>ge&&(oe-=ge),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},se.prototype.shouldForceSelection=function(ee){return K.isMac?ee.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:ee.shiftKey},se.prototype.onMouseDown=function(ee){if(this._mouseDownTimeStamp=ee.timeStamp,(2!==ee.button||!this.hasSelection)&&0===ee.button){if(!this._enabled){if(!this.shouldForceSelection(ee))return;ee.stopPropagation()}ee.preventDefault(),this._dragScrollAmount=0,this._enabled&&ee.shiftKey?this._onIncrementalClick(ee):1===ee.detail?this._onSingleClick(ee):2===ee.detail?this._onDoubleClick(ee):3===ee.detail&&this._onTripleClick(ee),this._addMouseDownListeners(),this.refresh(!0)}},se.prototype._addMouseDownListeners=function(){var ee=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ee._dragScroll()},50)},se.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},se.prototype._onIncrementalClick=function(ee){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ee))},se.prototype._onSingleClick=function(ee){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ee)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ee),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&0===oe.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},se.prototype._onDoubleClick=function(ee){this._selectWordAtCursor(ee,!0)&&(this._activeSelectionMode=1)},se.prototype._onTripleClick=function(ee){var oe=this._getMouseBufferCoords(ee);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},se.prototype.shouldColumnSelect=function(ee){return ee.altKey&&!(K.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},se.prototype._onMouseMove=function(ee){if(ee.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ee),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(ee),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ge=this._bufferService.buffer;if(this._model.selectionEnd[1]<ge.lines.length){var Oe=ge.lines.get(this._model.selectionEnd[1]);Oe&&0===Oe.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},se.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ee=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ee.ydisp+this._bufferService.rows,ee.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ee.ydisp),this.refresh()}},se.prototype._onMouseUp=function(ee){var oe=ee.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&ee.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ge=this._mouseService.getCoords(ee,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ge&&void 0!==ge[0]&&void 0!==ge[1]){var Oe=(0,w.moveToCellSequence)(ge[0]-1,ge[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(Oe,!0)}}}else this._fireEventIfSelectionChanged()},se.prototype._fireEventIfSelectionChanged=function(){var ee=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd,ge=!(!ee||!oe||ee[0]===oe[0]&&ee[1]===oe[1]);ge?ee&&oe&&(this._oldSelectionStart&&this._oldSelectionEnd&&ee[0]===this._oldSelectionStart[0]&&ee[1]===this._oldSelectionStart[1]&&oe[0]===this._oldSelectionEnd[0]&&oe[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(ee,oe,ge)):this._oldHasSelection&&this._fireOnSelectionChange(ee,oe,ge)},se.prototype._fireOnSelectionChange=function(ee,oe,ge){this._oldSelectionStart=ee,this._oldSelectionEnd=oe,this._oldHasSelection=ge,this._onSelectionChange.fire()},se.prototype._onBufferActivate=function(ee){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ee.activeBuffer.lines.onTrim(function(ge){return oe._onTrim(ge)})},se.prototype._convertViewportColToCharacterIndex=function(ee,oe){for(var ge=oe[0],Oe=0;oe[0]>=Oe;Oe++){var ot=ee.loadCell(Oe,this._workCell).getChars().length;0===this._workCell.getWidth()?ge--:ot>1&&oe[0]!==Oe&&(ge+=ot-1)}return ge},se.prototype.setSelection=function(ee,oe,ge){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ee,oe],this._model.selectionStartLength=ge,this.refresh()},se.prototype.rightClickSelect=function(ee){this._isClickInSelection(ee)||(this._selectWordAtCursor(ee,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},se.prototype._getWordAt=function(ee,oe,ge,Oe){if(void 0===ge&&(ge=!0),void 0===Oe&&(Oe=!0),!(ee[0]>=this._bufferService.cols)){var ot=this._bufferService.buffer,xe=ot.lines.get(ee[1]);if(xe){var _e=ot.translateBufferLineToString(ee[1],!1),ke=this._convertViewportColToCharacterIndex(xe,ee),Be=ke,ct=ee[0]-ke,Mt=0,Nt=0,Xt=0,en=0;if(" "===_e.charAt(ke)){for(;ke>0&&" "===_e.charAt(ke-1);)ke--;for(;Be<_e.length&&" "===_e.charAt(Be+1);)Be++}else{var qt=ee[0],Xe=ee[0];0===xe.getWidth(qt)&&(Mt++,qt--),2===xe.getWidth(Xe)&&(Nt++,Xe++);var jt=xe.getString(Xe).length;for(jt>1&&(en+=jt-1,Be+=jt-1);qt>0&&ke>0&&!this._isCharWordSeparator(xe.loadCell(qt-1,this._workCell));){xe.loadCell(qt-1,this._workCell);var rt=this._workCell.getChars().length;0===this._workCell.getWidth()?(Mt++,qt--):rt>1&&(Xt+=rt-1,ke-=rt-1),ke--,qt--}for(;Xe<xe.length&&Be+1<_e.length&&!this._isCharWordSeparator(xe.loadCell(Xe+1,this._workCell));){xe.loadCell(Xe+1,this._workCell);var vt=this._workCell.getChars().length;2===this._workCell.getWidth()?(Nt++,Xe++):vt>1&&(en+=vt-1,Be+=vt-1),Be++,Xe++}}Be++;var nt=ke+ct-Mt+Xt,Rt=Math.min(this._bufferService.cols,Be-ke+Mt+Nt-Xt-en);if(oe||""!==_e.slice(ke,Be).trim()){if(ge&&0===nt&&32!==xe.getCodePoint(0)){var It=ot.lines.get(ee[1]-1);if(It&&xe.isWrapped&&32!==It.getCodePoint(this._bufferService.cols-1)){var on=this._getWordAt([this._bufferService.cols-1,ee[1]-1],!1,!0,!1);if(on){var _n=this._bufferService.cols-on.start;nt-=_n,Rt+=_n}}}if(Oe&&nt+Rt===this._bufferService.cols&&32!==xe.getCodePoint(this._bufferService.cols-1)){var An=ot.lines.get(ee[1]+1);if((null==An?void 0:An.isWrapped)&&32!==An.getCodePoint(0)){var Gt=this._getWordAt([0,ee[1]+1],!1,!1,!0);Gt&&(Rt+=Gt.length)}}return{start:nt,length:Rt}}}}},se.prototype._selectWordAt=function(ee,oe){var ge=this._getWordAt(ee,oe);if(ge){for(;ge.start<0;)ge.start+=this._bufferService.cols,ee[1]--;this._model.selectionStart=[ge.start,ee[1]],this._model.selectionStartLength=ge.length}},se.prototype._selectToWordAt=function(ee){var oe=this._getWordAt(ee,!0);if(oe){for(var ge=ee[1];oe.start<0;)oe.start+=this._bufferService.cols,ge--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ge++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ge]}},se.prototype._isCharWordSeparator=function(ee){return 0!==ee.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(ee.getChars())>=0},se.prototype._selectLineAt=function(ee){var oe=this._bufferService.buffer.getWrappedRangeForLine(ee);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},D([y(3,I.IBufferService),y(4,I.ICoreService),y(5,k.IMouseService),y(6,I.IOptionsService),y(7,k.IRenderService)],se)}(S.Disposable);M.SelectionService=$},4725:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.IDecorationService=M.ICharacterJoinerService=M.ISoundService=M.ISelectionService=M.IRenderService=M.IMouseService=M.ICoreBrowserService=M.ICharSizeService=void 0;var L=U(8343);M.ICharSizeService=(0,L.createDecorator)("CharSizeService"),M.ICoreBrowserService=(0,L.createDecorator)("CoreBrowserService"),M.IMouseService=(0,L.createDecorator)("MouseService"),M.IRenderService=(0,L.createDecorator)("RenderService"),M.ISelectionService=(0,L.createDecorator)("SelectionService"),M.ISoundService=(0,L.createDecorator)("SoundService"),M.ICharacterJoinerService=(0,L.createDecorator)("CharacterJoinerService"),M.IDecorationService=(0,L.createDecorator)("DecorationService")},357:function(Y,M,U){var L=this&&this.__decorate||function(K,F,E,A){var k,I=arguments.length,T=I<3?F:null===A?A=Object.getOwnPropertyDescriptor(F,E):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(K,F,E,A);else for(var w=K.length-1;w>=0;w--)(k=K[w])&&(T=(I<3?k(T):I>3?k(F,E,T):k(F,E))||T);return I>3&&T&&Object.defineProperty(F,E,T),T},P=this&&this.__param||function(K,F){return function(E,A){F(E,A,K)}};Object.defineProperty(M,"__esModule",{value:!0}),M.SoundService=void 0;var D=U(2585),y=function(){function K(F){this._optionsService=F}return Object.defineProperty(K,"audioContext",{get:function(){if(!K._audioContext){var E=window.AudioContext||window.webkitAudioContext;if(!E)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;K._audioContext=new E}return K._audioContext},enumerable:!1,configurable:!0}),K.prototype.playBellSound=function(){var F=K.audioContext;if(F){var E=F.createBufferSource();F.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(A){E.buffer=A,E.connect(F.destination),E.start(0)})}},K.prototype._base64ToArrayBuffer=function(F){for(var E=window.atob(F),A=E.length,k=new Uint8Array(A),I=0;I<A;I++)k[I]=E.charCodeAt(I);return k.buffer},K.prototype._removeMimeType=function(F){return F.split(",")[1]},K=L([P(0,D.IOptionsService)],K)}();M.SoundService=y},6349:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.CircularList=void 0;var L=U(8460),P=function(){function D(y){this._maxLength=y,this.onDeleteEmitter=new L.EventEmitter,this.onInsertEmitter=new L.EventEmitter,this.onTrimEmitter=new L.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(D.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"maxLength",{get:function(){return this._maxLength},set:function(K){if(this._maxLength!==K){for(var F=new Array(K),E=0;E<Math.min(K,this.length);E++)F[E]=this._array[this._getCyclicIndex(E)];this._array=F,this._maxLength=K,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._length},set:function(K){if(K>this._length)for(var F=this._length;F<K;F++)this._array[F]=void 0;this._length=K},enumerable:!1,configurable:!0}),D.prototype.get=function(y){return this._array[this._getCyclicIndex(y)]},D.prototype.set=function(y,K){this._array[this._getCyclicIndex(y)]=K},D.prototype.push=function(y){this._array[this._getCyclicIndex(this._length)]=y,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},D.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(D.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),D.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},D.prototype.splice=function(y,K){for(var F=[],E=2;E<arguments.length;E++)F[E-2]=arguments[E];if(K){for(var A=y;A<this._length-K;A++)this._array[this._getCyclicIndex(A)]=this._array[this._getCyclicIndex(A+K)];this._length-=K,this.onDeleteEmitter.fire({index:y,amount:K})}for(A=this._length-1;A>=y;A--)this._array[this._getCyclicIndex(A+F.length)]=this._array[this._getCyclicIndex(A)];for(A=0;A<F.length;A++)this._array[this._getCyclicIndex(y+A)]=F[A];if(F.length&&this.onInsertEmitter.fire({index:y,amount:F.length}),this._length+F.length>this._maxLength){var k=this._length+F.length-this._maxLength;this._startIndex+=k,this._length=this._maxLength,this.onTrimEmitter.fire(k)}else this._length+=F.length},D.prototype.trimStart=function(y){y>this._length&&(y=this._length),this._startIndex+=y,this._length-=y,this.onTrimEmitter.fire(y)},D.prototype.shiftElements=function(y,K,F){if(!(K<=0)){if(y<0||y>=this._length)throw new Error("start argument out of range");if(y+F<0)throw new Error("Cannot shift elements in list beyond index 0");if(F>0){for(var E=K-1;E>=0;E--)this.set(y+E+F,this.get(y+E));var A=y+K+F-this._length;if(A>0)for(this._length+=A;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(E=0;E<K;E++)this.set(y+E+F,this.get(y+E))}},D.prototype._getCyclicIndex=function(y){return(this._startIndex+y)%this._maxLength},D}();M.CircularList=P},1439:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.clone=void 0,M.clone=function U(L,P){if(void 0===P&&(P=5),"object"!=typeof L)return L;var D=Array.isArray(L)?[]:{};for(var y in L)D[y]=P<=1?L[y]:L[y]&&U(L[y],P-1);return D}},8969:function(Y,M,U){var L,P=this&&this.__extends||(L=function(oe,ge){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Oe,ot){Oe.__proto__=ot}||function(Oe,ot){for(var xe in ot)Object.prototype.hasOwnProperty.call(ot,xe)&&(Oe[xe]=ot[xe])})(oe,ge)},function(ee,oe){if("function"!=typeof oe&&null!==oe)throw new TypeError("Class extends value "+String(oe)+" is not a constructor or null");function ge(){this.constructor=ee}L(ee,oe),ee.prototype=null===oe?Object.create(oe):(ge.prototype=oe.prototype,new ge)});Object.defineProperty(M,"__esModule",{value:!0}),M.CoreTerminal=void 0;var D=U(844),y=U(2585),K=U(4348),F=U(7866),E=U(744),A=U(7302),k=U(6975),I=U(8460),T=U(1753),w=U(3730),S=U(1480),N=U(7994),R=U(9282),W=U(5435),$=U(5981),ce=!1,se=function(ee){function oe(ge){var Oe=ee.call(this)||this;return Oe._onBinary=new I.EventEmitter,Oe._onData=new I.EventEmitter,Oe._onLineFeed=new I.EventEmitter,Oe._onResize=new I.EventEmitter,Oe._onScroll=new I.EventEmitter,Oe._instantiationService=new K.InstantiationService,Oe.optionsService=new A.OptionsService(ge),Oe._instantiationService.setService(y.IOptionsService,Oe.optionsService),Oe._bufferService=Oe.register(Oe._instantiationService.createInstance(E.BufferService)),Oe._instantiationService.setService(y.IBufferService,Oe._bufferService),Oe._logService=Oe._instantiationService.createInstance(F.LogService),Oe._instantiationService.setService(y.ILogService,Oe._logService),Oe.coreService=Oe.register(Oe._instantiationService.createInstance(k.CoreService,function(){return Oe.scrollToBottom()})),Oe._instantiationService.setService(y.ICoreService,Oe.coreService),Oe.coreMouseService=Oe._instantiationService.createInstance(T.CoreMouseService),Oe._instantiationService.setService(y.ICoreMouseService,Oe.coreMouseService),Oe._dirtyRowService=Oe._instantiationService.createInstance(w.DirtyRowService),Oe._instantiationService.setService(y.IDirtyRowService,Oe._dirtyRowService),Oe.unicodeService=Oe._instantiationService.createInstance(S.UnicodeService),Oe._instantiationService.setService(y.IUnicodeService,Oe.unicodeService),Oe._charsetService=Oe._instantiationService.createInstance(N.CharsetService),Oe._instantiationService.setService(y.ICharsetService,Oe._charsetService),Oe._inputHandler=new W.InputHandler(Oe._bufferService,Oe._charsetService,Oe.coreService,Oe._dirtyRowService,Oe._logService,Oe.optionsService,Oe.coreMouseService,Oe.unicodeService),Oe.register((0,I.forwardEvent)(Oe._inputHandler.onLineFeed,Oe._onLineFeed)),Oe.register(Oe._inputHandler),Oe.register((0,I.forwardEvent)(Oe._bufferService.onResize,Oe._onResize)),Oe.register((0,I.forwardEvent)(Oe.coreService.onData,Oe._onData)),Oe.register((0,I.forwardEvent)(Oe.coreService.onBinary,Oe._onBinary)),Oe.register(Oe.optionsService.onOptionChange(function(ot){return Oe._updateOptions(ot)})),Oe.register(Oe._bufferService.onScroll(function(ot){Oe._onScroll.fire({position:Oe._bufferService.buffer.ydisp,source:0}),Oe._dirtyRowService.markRangeDirty(Oe._bufferService.buffer.scrollTop,Oe._bufferService.buffer.scrollBottom)})),Oe.register(Oe._inputHandler.onScroll(function(ot){Oe._onScroll.fire({position:Oe._bufferService.buffer.ydisp,source:0}),Oe._dirtyRowService.markRangeDirty(Oe._bufferService.buffer.scrollTop,Oe._bufferService.buffer.scrollBottom)})),Oe._writeBuffer=new $.WriteBuffer(function(ot,xe){return Oe._inputHandler.parse(ot,xe)}),Oe}return P(oe,ee),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){var Oe=this;return this._onScrollApi||(this._onScrollApi=new I.EventEmitter,this.register(this._onScroll.event(function(ot){var xe;null===(xe=Oe._onScrollApi)||void 0===xe||xe.fire(ot.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"options",{get:function(){return this.optionsService.options},set:function(Oe){for(var ot in Oe)this.optionsService.options[ot]=Oe[ot]},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ge;this._isDisposed||(ee.prototype.dispose.call(this),null===(ge=this._windowsMode)||void 0===ge||ge.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ge,Oe){this._writeBuffer.write(ge,Oe)},oe.prototype.writeSync=function(ge,Oe){this._logService.logLevel<=y.LogLevelEnum.WARN&&!ce&&(this._logService.warn("writeSync is unreliable and will be removed soon."),ce=!0),this._writeBuffer.writeSync(ge,Oe)},oe.prototype.resize=function(ge,Oe){isNaN(ge)||isNaN(Oe)||(ge=Math.max(ge,E.MINIMUM_COLS),Oe=Math.max(Oe,E.MINIMUM_ROWS),this._bufferService.resize(ge,Oe))},oe.prototype.scroll=function(ge,Oe){void 0===Oe&&(Oe=!1),this._bufferService.scroll(ge,Oe)},oe.prototype.scrollLines=function(ge,Oe,ot){this._bufferService.scrollLines(ge,Oe,ot)},oe.prototype.scrollPages=function(ge){this._bufferService.scrollPages(ge)},oe.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},oe.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},oe.prototype.scrollToLine=function(ge){this._bufferService.scrollToLine(ge)},oe.prototype.registerEscHandler=function(ge,Oe){return this._inputHandler.registerEscHandler(ge,Oe)},oe.prototype.registerDcsHandler=function(ge,Oe){return this._inputHandler.registerDcsHandler(ge,Oe)},oe.prototype.registerCsiHandler=function(ge,Oe){return this._inputHandler.registerCsiHandler(ge,Oe)},oe.prototype.registerOscHandler=function(ge,Oe){return this._inputHandler.registerOscHandler(ge,Oe)},oe.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},oe.prototype._updateOptions=function(ge){var Oe;switch(ge){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(Oe=this._windowsMode)||void 0===Oe||Oe.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ge=this;if(!this._windowsMode){var Oe=[];Oe.push(this.onLineFeed(R.updateWindowsModeWrappedState.bind(null,this._bufferService))),Oe.push(this.registerCsiHandler({final:"H"},function(){return(0,R.updateWindowsModeWrappedState)(ge._bufferService),!1})),this._windowsMode={dispose:function(){for(var xe=0,_e=Oe;xe<_e.length;xe++)_e[xe].dispose()}}}},oe}(D.Disposable);M.CoreTerminal=se},8460:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.forwardEvent=M.EventEmitter=void 0;var U=function(){function L(){this._listeners=[],this._disposed=!1}return Object.defineProperty(L.prototype,"event",{get:function(){var D=this;return this._event||(this._event=function(y){return D._listeners.push(y),{dispose:function(){if(!D._disposed)for(var F=0;F<D._listeners.length;F++)if(D._listeners[F]===y)return void D._listeners.splice(F,1)}}}),this._event},enumerable:!1,configurable:!0}),L.prototype.fire=function(P,D){for(var y=[],K=0;K<this._listeners.length;K++)y.push(this._listeners[K]);for(K=0;K<y.length;K++)y[K].call(void 0,P,D)},L.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},L}();M.EventEmitter=U,M.forwardEvent=function(L,P){return L(function(D){return P.fire(D)})}},5435:function(Y,M,U){var L,P=this&&this.__extends||(L=function(xe,_e){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ke,Be){ke.__proto__=Be}||function(ke,Be){for(var ct in Be)Object.prototype.hasOwnProperty.call(Be,ct)&&(ke[ct]=Be[ct])})(xe,_e)},function(ot,xe){if("function"!=typeof xe&&null!==xe)throw new TypeError("Class extends value "+String(xe)+" is not a constructor or null");function _e(){this.constructor=ot}L(ot,xe),ot.prototype=null===xe?Object.create(xe):(_e.prototype=xe.prototype,new _e)});Object.defineProperty(M,"__esModule",{value:!0}),M.InputHandler=M.WindowsOptionsReportType=void 0;var D,ot,y=U(2584),K=U(7116),F=U(2015),E=U(844),A=U(8273),k=U(482),I=U(8437),T=U(8460),w=U(643),S=U(511),N=U(3734),R=U(2585),W=U(6242),$=U(6351),ce=U(5941),se={"(":0,")":1,"*":2,"+":3,"-":1,".":2},ee=131072;function oe(ot,xe){if(ot>24)return xe.setWinLines||!1;switch(ot){case 1:return!!xe.restoreWin;case 2:return!!xe.minimizeWin;case 3:return!!xe.setWinPosition;case 4:return!!xe.setWinSizePixels;case 5:return!!xe.raiseWin;case 6:return!!xe.lowerWin;case 7:return!!xe.refreshWin;case 8:return!!xe.setWinSizeChars;case 9:return!!xe.maximizeWin;case 10:return!!xe.fullscreenWin;case 11:return!!xe.getWinState;case 13:return!!xe.getWinPosition;case 14:return!!xe.getWinSizePixels;case 15:return!!xe.getScreenSizePixels;case 16:return!!xe.getCellSizePixels;case 18:return!!xe.getWinSizeChars;case 19:return!!xe.getScreenSizeChars;case 20:return!!xe.getIconTitle;case 21:return!!xe.getWinTitle;case 22:return!!xe.pushTitle;case 23:return!!xe.popTitle;case 24:return!!xe.setWinLines}return!1}(ot=D=M.WindowsOptionsReportType||(M.WindowsOptionsReportType={}))[ot.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ot[ot.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ge=function(){function ot(xe,_e,ke,Be){this._bufferService=xe,this._coreService=_e,this._logService=ke,this._optionsService=Be,this._data=new Uint32Array(0)}return ot.prototype.hook=function(xe){this._data=new Uint32Array(0)},ot.prototype.put=function(xe,_e,ke){this._data=(0,A.concat)(this._data,xe.subarray(_e,ke))},ot.prototype.unhook=function(xe){if(!xe)return this._data=new Uint32Array(0),!0;var _e=(0,k.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),_e){case'"q':this._coreService.triggerDataEvent(y.C0.ESC+'P1$r0"q'+y.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(y.C0.ESC+'P1$r61;1"p'+y.C0.ESC+"\\");break;case"r":var ke=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(y.C0.ESC+"P1$r"+ke+y.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(y.C0.ESC+"P1$r0m"+y.C0.ESC+"\\");break;case" q":var Be={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];Be-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(y.C0.ESC+"P1$r"+Be+" q"+y.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",_e),this._coreService.triggerDataEvent(y.C0.ESC+"P0$r"+y.C0.ESC+"\\")}return!0},ot}(),Oe=function(ot){function xe(_e,ke,Be,ct,Mt,Nt,Xt,en,qt){void 0===qt&&(qt=new F.EscapeSequenceParser);var Xe=ot.call(this)||this;Xe._bufferService=_e,Xe._charsetService=ke,Xe._coreService=Be,Xe._dirtyRowService=ct,Xe._logService=Mt,Xe._optionsService=Nt,Xe._coreMouseService=Xt,Xe._unicodeService=en,Xe._parser=qt,Xe._parseBuffer=new Uint32Array(4096),Xe._stringDecoder=new k.StringToUtf32,Xe._utf8Decoder=new k.Utf8ToUtf32,Xe._workCell=new S.CellData,Xe._windowTitle="",Xe._iconName="",Xe._windowTitleStack=[],Xe._iconNameStack=[],Xe._curAttrData=I.DEFAULT_ATTR_DATA.clone(),Xe._eraseAttrDataInternal=I.DEFAULT_ATTR_DATA.clone(),Xe._onRequestBell=new T.EventEmitter,Xe._onRequestRefreshRows=new T.EventEmitter,Xe._onRequestReset=new T.EventEmitter,Xe._onRequestSendFocus=new T.EventEmitter,Xe._onRequestSyncScrollBar=new T.EventEmitter,Xe._onRequestWindowsOptionsReport=new T.EventEmitter,Xe._onA11yChar=new T.EventEmitter,Xe._onA11yTab=new T.EventEmitter,Xe._onCursorMove=new T.EventEmitter,Xe._onLineFeed=new T.EventEmitter,Xe._onScroll=new T.EventEmitter,Xe._onTitleChange=new T.EventEmitter,Xe._onColor=new T.EventEmitter,Xe._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Xe._specialColors=[256,257,258],Xe.register(Xe._parser),Xe._activeBuffer=Xe._bufferService.buffer,Xe.register(Xe._bufferService.buffers.onBufferActivate(function(nt){return Xe._activeBuffer=nt.activeBuffer})),Xe._parser.setCsiHandlerFallback(function(nt,Rt){Xe._logService.debug("Unknown CSI code: ",{identifier:Xe._parser.identToString(nt),params:Rt.toArray()})}),Xe._parser.setEscHandlerFallback(function(nt){Xe._logService.debug("Unknown ESC code: ",{identifier:Xe._parser.identToString(nt)})}),Xe._parser.setExecuteHandlerFallback(function(nt){Xe._logService.debug("Unknown EXECUTE code: ",{code:nt})}),Xe._parser.setOscHandlerFallback(function(nt,Rt,It){Xe._logService.debug("Unknown OSC code: ",{identifier:nt,action:Rt,data:It})}),Xe._parser.setDcsHandlerFallback(function(nt,Rt,It){"HOOK"===Rt&&(It=It.toArray()),Xe._logService.debug("Unknown DCS code: ",{identifier:Xe._parser.identToString(nt),action:Rt,payload:It})}),Xe._parser.setPrintHandler(function(nt,Rt,It){return Xe.print(nt,Rt,It)}),Xe._parser.registerCsiHandler({final:"@"},function(nt){return Xe.insertChars(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"@"},function(nt){return Xe.scrollLeft(nt)}),Xe._parser.registerCsiHandler({final:"A"},function(nt){return Xe.cursorUp(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"A"},function(nt){return Xe.scrollRight(nt)}),Xe._parser.registerCsiHandler({final:"B"},function(nt){return Xe.cursorDown(nt)}),Xe._parser.registerCsiHandler({final:"C"},function(nt){return Xe.cursorForward(nt)}),Xe._parser.registerCsiHandler({final:"D"},function(nt){return Xe.cursorBackward(nt)}),Xe._parser.registerCsiHandler({final:"E"},function(nt){return Xe.cursorNextLine(nt)}),Xe._parser.registerCsiHandler({final:"F"},function(nt){return Xe.cursorPrecedingLine(nt)}),Xe._parser.registerCsiHandler({final:"G"},function(nt){return Xe.cursorCharAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"H"},function(nt){return Xe.cursorPosition(nt)}),Xe._parser.registerCsiHandler({final:"I"},function(nt){return Xe.cursorForwardTab(nt)}),Xe._parser.registerCsiHandler({final:"J"},function(nt){return Xe.eraseInDisplay(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"J"},function(nt){return Xe.eraseInDisplay(nt)}),Xe._parser.registerCsiHandler({final:"K"},function(nt){return Xe.eraseInLine(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"K"},function(nt){return Xe.eraseInLine(nt)}),Xe._parser.registerCsiHandler({final:"L"},function(nt){return Xe.insertLines(nt)}),Xe._parser.registerCsiHandler({final:"M"},function(nt){return Xe.deleteLines(nt)}),Xe._parser.registerCsiHandler({final:"P"},function(nt){return Xe.deleteChars(nt)}),Xe._parser.registerCsiHandler({final:"S"},function(nt){return Xe.scrollUp(nt)}),Xe._parser.registerCsiHandler({final:"T"},function(nt){return Xe.scrollDown(nt)}),Xe._parser.registerCsiHandler({final:"X"},function(nt){return Xe.eraseChars(nt)}),Xe._parser.registerCsiHandler({final:"Z"},function(nt){return Xe.cursorBackwardTab(nt)}),Xe._parser.registerCsiHandler({final:"`"},function(nt){return Xe.charPosAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"a"},function(nt){return Xe.hPositionRelative(nt)}),Xe._parser.registerCsiHandler({final:"b"},function(nt){return Xe.repeatPrecedingCharacter(nt)}),Xe._parser.registerCsiHandler({final:"c"},function(nt){return Xe.sendDeviceAttributesPrimary(nt)}),Xe._parser.registerCsiHandler({prefix:">",final:"c"},function(nt){return Xe.sendDeviceAttributesSecondary(nt)}),Xe._parser.registerCsiHandler({final:"d"},function(nt){return Xe.linePosAbsolute(nt)}),Xe._parser.registerCsiHandler({final:"e"},function(nt){return Xe.vPositionRelative(nt)}),Xe._parser.registerCsiHandler({final:"f"},function(nt){return Xe.hVPosition(nt)}),Xe._parser.registerCsiHandler({final:"g"},function(nt){return Xe.tabClear(nt)}),Xe._parser.registerCsiHandler({final:"h"},function(nt){return Xe.setMode(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"h"},function(nt){return Xe.setModePrivate(nt)}),Xe._parser.registerCsiHandler({final:"l"},function(nt){return Xe.resetMode(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"l"},function(nt){return Xe.resetModePrivate(nt)}),Xe._parser.registerCsiHandler({final:"m"},function(nt){return Xe.charAttributes(nt)}),Xe._parser.registerCsiHandler({final:"n"},function(nt){return Xe.deviceStatus(nt)}),Xe._parser.registerCsiHandler({prefix:"?",final:"n"},function(nt){return Xe.deviceStatusPrivate(nt)}),Xe._parser.registerCsiHandler({intermediates:"!",final:"p"},function(nt){return Xe.softReset(nt)}),Xe._parser.registerCsiHandler({intermediates:" ",final:"q"},function(nt){return Xe.setCursorStyle(nt)}),Xe._parser.registerCsiHandler({final:"r"},function(nt){return Xe.setScrollRegion(nt)}),Xe._parser.registerCsiHandler({final:"s"},function(nt){return Xe.saveCursor(nt)}),Xe._parser.registerCsiHandler({final:"t"},function(nt){return Xe.windowOptions(nt)}),Xe._parser.registerCsiHandler({final:"u"},function(nt){return Xe.restoreCursor(nt)}),Xe._parser.registerCsiHandler({intermediates:"'",final:"}"},function(nt){return Xe.insertColumns(nt)}),Xe._parser.registerCsiHandler({intermediates:"'",final:"~"},function(nt){return Xe.deleteColumns(nt)}),Xe._parser.setExecuteHandler(y.C0.BEL,function(){return Xe.bell()}),Xe._parser.setExecuteHandler(y.C0.LF,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.VT,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.FF,function(){return Xe.lineFeed()}),Xe._parser.setExecuteHandler(y.C0.CR,function(){return Xe.carriageReturn()}),Xe._parser.setExecuteHandler(y.C0.BS,function(){return Xe.backspace()}),Xe._parser.setExecuteHandler(y.C0.HT,function(){return Xe.tab()}),Xe._parser.setExecuteHandler(y.C0.SO,function(){return Xe.shiftOut()}),Xe._parser.setExecuteHandler(y.C0.SI,function(){return Xe.shiftIn()}),Xe._parser.setExecuteHandler(y.C1.IND,function(){return Xe.index()}),Xe._parser.setExecuteHandler(y.C1.NEL,function(){return Xe.nextLine()}),Xe._parser.setExecuteHandler(y.C1.HTS,function(){return Xe.tabSet()}),Xe._parser.registerOscHandler(0,new W.OscHandler(function(nt){return Xe.setTitle(nt),Xe.setIconName(nt),!0})),Xe._parser.registerOscHandler(1,new W.OscHandler(function(nt){return Xe.setIconName(nt)})),Xe._parser.registerOscHandler(2,new W.OscHandler(function(nt){return Xe.setTitle(nt)})),Xe._parser.registerOscHandler(4,new W.OscHandler(function(nt){return Xe.setOrReportIndexedColor(nt)})),Xe._parser.registerOscHandler(10,new W.OscHandler(function(nt){return Xe.setOrReportFgColor(nt)})),Xe._parser.registerOscHandler(11,new W.OscHandler(function(nt){return Xe.setOrReportBgColor(nt)})),Xe._parser.registerOscHandler(12,new W.OscHandler(function(nt){return Xe.setOrReportCursorColor(nt)})),Xe._parser.registerOscHandler(104,new W.OscHandler(function(nt){return Xe.restoreIndexedColor(nt)})),Xe._parser.registerOscHandler(110,new W.OscHandler(function(nt){return Xe.restoreFgColor(nt)})),Xe._parser.registerOscHandler(111,new W.OscHandler(function(nt){return Xe.restoreBgColor(nt)})),Xe._parser.registerOscHandler(112,new W.OscHandler(function(nt){return Xe.restoreCursorColor(nt)})),Xe._parser.registerEscHandler({final:"7"},function(){return Xe.saveCursor()}),Xe._parser.registerEscHandler({final:"8"},function(){return Xe.restoreCursor()}),Xe._parser.registerEscHandler({final:"D"},function(){return Xe.index()}),Xe._parser.registerEscHandler({final:"E"},function(){return Xe.nextLine()}),Xe._parser.registerEscHandler({final:"H"},function(){return Xe.tabSet()}),Xe._parser.registerEscHandler({final:"M"},function(){return Xe.reverseIndex()}),Xe._parser.registerEscHandler({final:"="},function(){return Xe.keypadApplicationMode()}),Xe._parser.registerEscHandler({final:">"},function(){return Xe.keypadNumericMode()}),Xe._parser.registerEscHandler({final:"c"},function(){return Xe.fullReset()}),Xe._parser.registerEscHandler({final:"n"},function(){return Xe.setgLevel(2)}),Xe._parser.registerEscHandler({final:"o"},function(){return Xe.setgLevel(3)}),Xe._parser.registerEscHandler({final:"|"},function(){return Xe.setgLevel(3)}),Xe._parser.registerEscHandler({final:"}"},function(){return Xe.setgLevel(2)}),Xe._parser.registerEscHandler({final:"~"},function(){return Xe.setgLevel(1)}),Xe._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Xe.selectDefaultCharset()}),Xe._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Xe.selectDefaultCharset()});var jt=function(Rt){rt._parser.registerEscHandler({intermediates:"(",final:Rt},function(){return Xe.selectCharset("("+Rt)}),rt._parser.registerEscHandler({intermediates:")",final:Rt},function(){return Xe.selectCharset(")"+Rt)}),rt._parser.registerEscHandler({intermediates:"*",final:Rt},function(){return Xe.selectCharset("*"+Rt)}),rt._parser.registerEscHandler({intermediates:"+",final:Rt},function(){return Xe.selectCharset("+"+Rt)}),rt._parser.registerEscHandler({intermediates:"-",final:Rt},function(){return Xe.selectCharset("-"+Rt)}),rt._parser.registerEscHandler({intermediates:".",final:Rt},function(){return Xe.selectCharset("."+Rt)}),rt._parser.registerEscHandler({intermediates:"/",final:Rt},function(){return Xe.selectCharset("/"+Rt)})},rt=this;for(var vt in K.CHARSETS)jt(vt);return Xe._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Xe.screenAlignmentPattern()}),Xe._parser.setErrorHandler(function(nt){return Xe._logService.error("Parsing error: ",nt),nt}),Xe._parser.registerDcsHandler({intermediates:"$",final:"q"},new ge(Xe._bufferService,Xe._coreService,Xe._logService,Xe._optionsService)),Xe}return P(xe,ot),Object.defineProperty(xe.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),xe.prototype.dispose=function(){ot.prototype.dispose.call(this)},xe.prototype._preserveStack=function(_e,ke,Be,ct){this._parseStack.paused=!0,this._parseStack.cursorStartX=_e,this._parseStack.cursorStartY=ke,this._parseStack.decodedLength=Be,this._parseStack.position=ct},xe.prototype._logSlowResolvingAsync=function(_e){this._logService.logLevel<=R.LogLevelEnum.WARN&&Promise.race([_e,new Promise(function(ke,Be){return setTimeout(function(){return Be("#SLOW_TIMEOUT")},5e3)})]).catch(function(ke){if("#SLOW_TIMEOUT"!==ke)throw ke;console.warn("async parser handler taking longer than 5000 ms")})},xe.prototype.parse=function(_e,ke){var Be,ct=this._activeBuffer.x,Mt=this._activeBuffer.y,Nt=0,Xt=this._parseStack.paused;if(Xt){if(Be=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,ke))return this._logSlowResolvingAsync(Be),Be;ct=this._parseStack.cursorStartX,Mt=this._parseStack.cursorStartY,this._parseStack.paused=!1,_e.length>ee&&(Nt=this._parseStack.position+ee)}if(this._logService.logLevel<=R.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof _e?' "'+_e+'"':' "'+Array.prototype.map.call(_e,function(jt){return String.fromCharCode(jt)}).join("")+'"'),"string"==typeof _e?_e.split("").map(function(jt){return jt.charCodeAt(0)}):_e),this._parseBuffer.length<_e.length&&this._parseBuffer.length<ee&&(this._parseBuffer=new Uint32Array(Math.min(_e.length,ee))),Xt||this._dirtyRowService.clearRange(),_e.length>ee)for(var en=Nt;en<_e.length;en+=ee){var qt=en+ee<_e.length?en+ee:_e.length,Xe="string"==typeof _e?this._stringDecoder.decode(_e.substring(en,qt),this._parseBuffer):this._utf8Decoder.decode(_e.subarray(en,qt),this._parseBuffer);if(Be=this._parser.parse(this._parseBuffer,Xe))return this._preserveStack(ct,Mt,Xe,en),this._logSlowResolvingAsync(Be),Be}else if(!Xt&&(Xe="string"==typeof _e?this._stringDecoder.decode(_e,this._parseBuffer):this._utf8Decoder.decode(_e,this._parseBuffer),Be=this._parser.parse(this._parseBuffer,Xe)))return this._preserveStack(ct,Mt,Xe,0),this._logSlowResolvingAsync(Be),Be;this._activeBuffer.x===ct&&this._activeBuffer.y===Mt||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},xe.prototype.print=function(_e,ke,Be){var ct,Mt,Nt=this._charsetService.charset,Xt=this._optionsService.rawOptions.screenReaderMode,en=this._bufferService.cols,qt=this._coreService.decPrivateModes.wraparound,Xe=this._coreService.modes.insertMode,jt=this._curAttrData,rt=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&Be-ke>0&&2===rt.getWidth(this._activeBuffer.x-1)&&rt.setCellFromCodePoint(this._activeBuffer.x-1,0,1,jt.fg,jt.bg,jt.extended);for(var vt=ke;vt<Be;++vt){if(ct=_e[vt],Mt=this._unicodeService.wcwidth(ct),ct<127&&Nt){var nt=Nt[String.fromCharCode(ct)];nt&&(ct=nt.charCodeAt(0))}if(Xt&&this._onA11yChar.fire((0,k.stringFromCodePoint)(ct)),Mt||!this._activeBuffer.x){if(this._activeBuffer.x+Mt-1>=en)if(qt){for(;this._activeBuffer.x<en;)rt.setCellFromCodePoint(this._activeBuffer.x++,0,1,jt.fg,jt.bg,jt.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),rt=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=en-1,2===Mt)continue;if(Xe&&(rt.insertCells(this._activeBuffer.x,Mt,this._activeBuffer.getNullCell(jt),jt),2===rt.getWidth(en-1)&&rt.setCellFromCodePoint(en-1,w.NULL_CELL_CODE,w.NULL_CELL_WIDTH,jt.fg,jt.bg,jt.extended)),rt.setCellFromCodePoint(this._activeBuffer.x++,ct,Mt,jt.fg,jt.bg,jt.extended),Mt>0)for(;--Mt;)rt.setCellFromCodePoint(this._activeBuffer.x++,0,0,jt.fg,jt.bg,jt.extended)}else rt.getWidth(this._activeBuffer.x-1)?rt.addCodepointToCell(this._activeBuffer.x-1,ct):rt.addCodepointToCell(this._activeBuffer.x-2,ct)}Be-ke>0&&(rt.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<en&&Be-ke>0&&0===rt.getWidth(this._activeBuffer.x)&&!rt.hasContent(this._activeBuffer.x)&&rt.setCellFromCodePoint(this._activeBuffer.x,0,1,jt.fg,jt.bg,jt.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},xe.prototype.registerCsiHandler=function(_e,ke){var Be=this;return"t"!==_e.final||_e.prefix||_e.intermediates?this._parser.registerCsiHandler(_e,ke):this._parser.registerCsiHandler(_e,function(ct){return!oe(ct.params[0],Be._optionsService.rawOptions.windowOptions)||ke(ct)})},xe.prototype.registerDcsHandler=function(_e,ke){return this._parser.registerDcsHandler(_e,new $.DcsHandler(ke))},xe.prototype.registerEscHandler=function(_e,ke){return this._parser.registerEscHandler(_e,ke)},xe.prototype.registerOscHandler=function(_e,ke){return this._parser.registerOscHandler(_e,new W.OscHandler(ke))},xe.prototype.bell=function(){return this._onRequestBell.fire(),!0},xe.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},xe.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},xe.prototype.backspace=function(){var _e;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===(_e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===_e?void 0:_e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);ke.hasWidth(this._activeBuffer.x)&&!ke.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},xe.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var _e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-_e),!0},xe.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},xe.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},xe.prototype._restrictCursor=function(_e){void 0===_e&&(_e=this._bufferService.cols-1),this._activeBuffer.x=Math.min(_e,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)},xe.prototype._setCursor=function(_e,ke){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=_e,this._activeBuffer.y=this._activeBuffer.scrollTop+ke):(this._activeBuffer.x=_e,this._activeBuffer.y=ke),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},xe.prototype._moveCursor=function(_e,ke){this._restrictCursor(),this._setCursor(this._activeBuffer.x+_e,this._activeBuffer.y+ke)},xe.prototype.cursorUp=function(_e){var ke=this._activeBuffer.y-this._activeBuffer.scrollTop;return ke>=0?this._moveCursor(0,-Math.min(ke,_e.params[0]||1)):this._moveCursor(0,-(_e.params[0]||1)),!0},xe.prototype.cursorDown=function(_e){var ke=this._activeBuffer.scrollBottom-this._activeBuffer.y;return ke>=0?this._moveCursor(0,Math.min(ke,_e.params[0]||1)):this._moveCursor(0,_e.params[0]||1),!0},xe.prototype.cursorForward=function(_e){return this._moveCursor(_e.params[0]||1,0),!0},xe.prototype.cursorBackward=function(_e){return this._moveCursor(-(_e.params[0]||1),0),!0},xe.prototype.cursorNextLine=function(_e){return this.cursorDown(_e),this._activeBuffer.x=0,!0},xe.prototype.cursorPrecedingLine=function(_e){return this.cursorUp(_e),this._activeBuffer.x=0,!0},xe.prototype.cursorCharAbsolute=function(_e){return this._setCursor((_e.params[0]||1)-1,this._activeBuffer.y),!0},xe.prototype.cursorPosition=function(_e){return this._setCursor(_e.length>=2?(_e.params[1]||1)-1:0,(_e.params[0]||1)-1),!0},xe.prototype.charPosAbsolute=function(_e){return this._setCursor((_e.params[0]||1)-1,this._activeBuffer.y),!0},xe.prototype.hPositionRelative=function(_e){return this._moveCursor(_e.params[0]||1,0),!0},xe.prototype.linePosAbsolute=function(_e){return this._setCursor(this._activeBuffer.x,(_e.params[0]||1)-1),!0},xe.prototype.vPositionRelative=function(_e){return this._moveCursor(0,_e.params[0]||1),!0},xe.prototype.hVPosition=function(_e){return this.cursorPosition(_e),!0},xe.prototype.tabClear=function(_e){var ke=_e.params[0];return 0===ke?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===ke&&(this._activeBuffer.tabs={}),!0},xe.prototype.cursorForwardTab=function(_e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ke=_e.params[0]||1;ke--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},xe.prototype.cursorBackwardTab=function(_e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ke=_e.params[0]||1;ke--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},xe.prototype._eraseInBufferLine=function(_e,ke,Be,ct){void 0===ct&&(ct=!1);var Mt=this._activeBuffer.lines.get(this._activeBuffer.ybase+_e);Mt.replaceCells(ke,Be,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct&&(Mt.isWrapped=!1)},xe.prototype._resetBufferLine=function(_e){var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+_e);ke.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+_e),ke.isWrapped=!1},xe.prototype.eraseInDisplay=function(_e){var ke;switch(this._restrictCursor(this._bufferService.cols),_e.params[0]){case 0:for(ke=this._activeBuffer.y,this._dirtyRowService.markDirty(ke),this._eraseInBufferLine(ke++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);ke<this._bufferService.rows;ke++)this._resetBufferLine(ke);this._dirtyRowService.markDirty(ke);break;case 1:for(ke=this._activeBuffer.y,this._dirtyRowService.markDirty(ke),this._eraseInBufferLine(ke,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(ke+1).isWrapped=!1);ke--;)this._resetBufferLine(ke);this._dirtyRowService.markDirty(0);break;case 2:for(ke=this._bufferService.rows,this._dirtyRowService.markDirty(ke-1);ke--;)this._resetBufferLine(ke);this._dirtyRowService.markDirty(0);break;case 3:var Be=this._activeBuffer.lines.length-this._bufferService.rows;Be>0&&(this._activeBuffer.lines.trimStart(Be),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-Be,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-Be,0),this._onScroll.fire(0))}return!0},xe.prototype.eraseInLine=function(_e){switch(this._restrictCursor(this._bufferService.cols),_e.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},xe.prototype.insertLines=function(_e){this._restrictCursor();var ke=_e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var Be=this._activeBuffer.ybase+this._activeBuffer.y,ct=this._bufferService.rows-1-this._activeBuffer.scrollBottom,Mt=this._bufferService.rows-1+this._activeBuffer.ybase-ct+1;ke--;)this._activeBuffer.lines.splice(Mt-1,1),this._activeBuffer.lines.splice(Be,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},xe.prototype.deleteLines=function(_e){this._restrictCursor();var ke=_e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var Be,ct=this._activeBuffer.ybase+this._activeBuffer.y;for(Be=this._bufferService.rows-1-this._activeBuffer.scrollBottom,Be=this._bufferService.rows-1+this._activeBuffer.ybase-Be;ke--;)this._activeBuffer.lines.splice(ct,1),this._activeBuffer.lines.splice(Be,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},xe.prototype.insertChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.insertCells(this._activeBuffer.x,_e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.deleteChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.deleteCells(this._activeBuffer.x,_e.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.scrollUp=function(_e){for(var ke=_e.params[0]||1;ke--;)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},xe.prototype.scrollDown=function(_e){for(var ke=_e.params[0]||1;ke--;)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(I.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.scrollLeft=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Be=this._activeBuffer.scrollTop;Be<=this._activeBuffer.scrollBottom;++Be){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Be);ct.deleteCells(0,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.scrollRight=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Be=this._activeBuffer.scrollTop;Be<=this._activeBuffer.scrollBottom;++Be){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Be);ct.insertCells(0,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.insertColumns=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Be=this._activeBuffer.scrollTop;Be<=this._activeBuffer.scrollBottom;++Be){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Be);ct.insertCells(this._activeBuffer.x,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.deleteColumns=function(_e){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ke=_e.params[0]||1,Be=this._activeBuffer.scrollTop;Be<=this._activeBuffer.scrollBottom;++Be){var ct=this._activeBuffer.lines.get(this._activeBuffer.ybase+Be);ct.deleteCells(this._activeBuffer.x,ke,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),ct.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},xe.prototype.eraseChars=function(_e){this._restrictCursor();var ke=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ke&&(ke.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(_e.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},xe.prototype.repeatPrecedingCharacter=function(_e){if(!this._parser.precedingCodepoint)return!0;for(var ke=_e.params[0]||1,Be=new Uint32Array(ke),ct=0;ct<ke;++ct)Be[ct]=this._parser.precedingCodepoint;return this.print(Be,0,Be.length),!0},xe.prototype.sendDeviceAttributesPrimary=function(_e){return _e.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(y.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(y.C0.ESC+"[?6c")),!0},xe.prototype.sendDeviceAttributesSecondary=function(_e){return _e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(y.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(y.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(_e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(y.C0.ESC+"[>83;40003;0c")),!0},xe.prototype._is=function(_e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(_e)},xe.prototype.setMode=function(_e){for(var ke=0;ke<_e.length;ke++)4===_e.params[ke]&&(this._coreService.modes.insertMode=!0);return!0},xe.prototype.setModePrivate=function(_e){for(var ke=0;ke<_e.length;ke++)switch(_e.params[ke]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,K.DEFAULT_CHARSET),this._charsetService.setgCharset(1,K.DEFAULT_CHARSET),this._charsetService.setgCharset(2,K.DEFAULT_CHARSET),this._charsetService.setgCharset(3,K.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},xe.prototype.resetMode=function(_e){for(var ke=0;ke<_e.length;ke++)4===_e.params[ke]&&(this._coreService.modes.insertMode=!1);return!0},xe.prototype.resetModePrivate=function(_e){for(var ke=0;ke<_e.length;ke++)switch(_e.params[ke]){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===_e.params[ke]&&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},xe.prototype._updateAttrColor=function(_e,ke,Be,ct,Mt){return 2===ke?(_e|=50331648,_e&=-16777216,_e|=N.AttributeData.fromColorRGB([Be,ct,Mt])):5===ke&&(_e&=-50331904,_e|=33554432|255&Be),_e},xe.prototype._extractColor=function(_e,ke,Be){var ct=[0,0,-1,0,0,0],Mt=0,Nt=0;do{if(ct[Nt+Mt]=_e.params[ke+Nt],_e.hasSubParams(ke+Nt)){var Xt=_e.getSubParams(ke+Nt),en=0;do{5===ct[1]&&(Mt=1),ct[Nt+en+1+Mt]=Xt[en]}while(++en<Xt.length&&en+Nt+1+Mt<ct.length);break}if(5===ct[1]&&Nt+Mt>=2||2===ct[1]&&Nt+Mt>=5)break;ct[1]&&(Mt=1)}while(++Nt+ke<_e.length&&Nt+Mt<ct.length);for(en=2;en<ct.length;++en)-1===ct[en]&&(ct[en]=0);switch(ct[0]){case 38:Be.fg=this._updateAttrColor(Be.fg,ct[1],ct[3],ct[4],ct[5]);break;case 48:Be.bg=this._updateAttrColor(Be.bg,ct[1],ct[3],ct[4],ct[5]);break;case 58:Be.extended=Be.extended.clone(),Be.extended.underlineColor=this._updateAttrColor(Be.extended.underlineColor,ct[1],ct[3],ct[4],ct[5])}return Nt},xe.prototype._processUnderline=function(_e,ke){ke.extended=ke.extended.clone(),(!~_e||_e>5)&&(_e=1),ke.extended.underlineStyle=_e,ke.fg|=268435456,0===_e&&(ke.fg&=-268435457),ke.updateExtended()},xe.prototype.charAttributes=function(_e){if(1===_e.length&&0===_e.params[0])return this._curAttrData.fg=I.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=I.DEFAULT_ATTR_DATA.bg,!0;for(var ke,Be=_e.length,ct=this._curAttrData,Mt=0;Mt<Be;Mt++)(ke=_e.params[Mt])>=30&&ke<=37?(ct.fg&=-50331904,ct.fg|=16777216|ke-30):ke>=40&&ke<=47?(ct.bg&=-50331904,ct.bg|=16777216|ke-40):ke>=90&&ke<=97?(ct.fg&=-50331904,ct.fg|=16777224|ke-90):ke>=100&&ke<=107?(ct.bg&=-50331904,ct.bg|=16777224|ke-100):0===ke?(ct.fg=I.DEFAULT_ATTR_DATA.fg,ct.bg=I.DEFAULT_ATTR_DATA.bg):1===ke?ct.fg|=134217728:3===ke?ct.bg|=67108864:4===ke?(ct.fg|=268435456,this._processUnderline(_e.hasSubParams(Mt)?_e.getSubParams(Mt)[0]:1,ct)):5===ke?ct.fg|=536870912:7===ke?ct.fg|=67108864:8===ke?ct.fg|=1073741824:9===ke?ct.fg|=2147483648:2===ke?ct.bg|=134217728:21===ke?this._processUnderline(2,ct):22===ke?(ct.fg&=-134217729,ct.bg&=-134217729):23===ke?ct.bg&=-67108865:24===ke?ct.fg&=-268435457:25===ke?ct.fg&=-536870913:27===ke?ct.fg&=-67108865:28===ke?ct.fg&=-1073741825:29===ke?ct.fg&=2147483647:39===ke?(ct.fg&=-67108864,ct.fg|=16777215&I.DEFAULT_ATTR_DATA.fg):49===ke?(ct.bg&=-67108864,ct.bg|=16777215&I.DEFAULT_ATTR_DATA.bg):38===ke||48===ke||58===ke?Mt+=this._extractColor(_e,Mt,ct):59===ke?(ct.extended=ct.extended.clone(),ct.extended.underlineColor=-1,ct.updateExtended()):100===ke?(ct.fg&=-67108864,ct.fg|=16777215&I.DEFAULT_ATTR_DATA.fg,ct.bg&=-67108864,ct.bg|=16777215&I.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ke);return!0},xe.prototype.deviceStatus=function(_e){switch(_e.params[0]){case 5:this._coreService.triggerDataEvent(y.C0.ESC+"[0n");break;case 6:var ke=this._activeBuffer.y+1,Be=this._activeBuffer.x+1;this._coreService.triggerDataEvent(y.C0.ESC+"["+ke+";"+Be+"R")}return!0},xe.prototype.deviceStatusPrivate=function(_e){if(6===_e.params[0]){var ke=this._activeBuffer.y+1,Be=this._activeBuffer.x+1;this._coreService.triggerDataEvent(y.C0.ESC+"[?"+ke+";"+Be+"R")}return!0},xe.prototype.softReset=function(_e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=I.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},xe.prototype.setCursorStyle=function(_e){var ke=_e.params[0]||1;switch(ke){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 Be=ke%2==1;return this._optionsService.options.cursorBlink=Be,!0},xe.prototype.setScrollRegion=function(_e){var ke,Be=_e.params[0]||1;return(_e.length<2||(ke=_e.params[1])>this._bufferService.rows||0===ke)&&(ke=this._bufferService.rows),ke>Be&&(this._activeBuffer.scrollTop=Be-1,this._activeBuffer.scrollBottom=ke-1,this._setCursor(0,0)),!0},xe.prototype.windowOptions=function(_e){if(!oe(_e.params[0],this._optionsService.rawOptions.windowOptions))return!0;var ke=_e.length>1?_e.params[1]:0;switch(_e.params[0]){case 14:2!==ke&&this._onRequestWindowsOptionsReport.fire(D.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(D.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(y.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==ke&&2!==ke||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==ke&&1!==ke||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==ke&&2!==ke||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==ke&&1!==ke||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},xe.prototype.saveCursor=function(_e){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},xe.prototype.restoreCursor=function(_e){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},xe.prototype.setTitle=function(_e){return this._windowTitle=_e,this._onTitleChange.fire(_e),!0},xe.prototype.setIconName=function(_e){return this._iconName=_e,!0},xe.prototype.setOrReportIndexedColor=function(_e){for(var ke=[],Be=_e.split(";");Be.length>1;){var ct=Be.shift(),Mt=Be.shift();if(/^\d+$/.exec(ct)){var Nt=parseInt(ct);if(0<=Nt&&Nt<256)if("?"===Mt)ke.push({type:0,index:Nt});else{var Xt=(0,ce.parseColor)(Mt);Xt&&ke.push({type:1,index:Nt,color:Xt})}}}return ke.length&&this._onColor.fire(ke),!0},xe.prototype._setOrReportSpecialColor=function(_e,ke){for(var Be=_e.split(";"),ct=0;ct<Be.length&&!(ke>=this._specialColors.length);++ct,++ke)if("?"===Be[ct])this._onColor.fire([{type:0,index:this._specialColors[ke]}]);else{var Mt=(0,ce.parseColor)(Be[ct]);Mt&&this._onColor.fire([{type:1,index:this._specialColors[ke],color:Mt}])}return!0},xe.prototype.setOrReportFgColor=function(_e){return this._setOrReportSpecialColor(_e,0)},xe.prototype.setOrReportBgColor=function(_e){return this._setOrReportSpecialColor(_e,1)},xe.prototype.setOrReportCursorColor=function(_e){return this._setOrReportSpecialColor(_e,2)},xe.prototype.restoreIndexedColor=function(_e){if(!_e)return this._onColor.fire([{type:2}]),!0;for(var ke=[],Be=_e.split(";"),ct=0;ct<Be.length;++ct)if(/^\d+$/.exec(Be[ct])){var Mt=parseInt(Be[ct]);0<=Mt&&Mt<256&&ke.push({type:2,index:Mt})}return ke.length&&this._onColor.fire(ke),!0},xe.prototype.restoreFgColor=function(_e){return this._onColor.fire([{type:2,index:256}]),!0},xe.prototype.restoreBgColor=function(_e){return this._onColor.fire([{type:2,index:257}]),!0},xe.prototype.restoreCursorColor=function(_e){return this._onColor.fire([{type:2,index:258}]),!0},xe.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},xe.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},xe.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},xe.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,K.DEFAULT_CHARSET),!0},xe.prototype.selectCharset=function(_e){return 2!==_e.length?(this.selectDefaultCharset(),!0):("/"===_e[0]||this._charsetService.setgCharset(se[_e[0]],K.CHARSETS[_e[1]]||K.DEFAULT_CHARSET),!0)},xe.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},xe.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},xe.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var _e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,_e,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},xe.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},xe.prototype.reset=function(){this._curAttrData=I.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=I.DEFAULT_ATTR_DATA.clone()},xe.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},xe.prototype.setgLevel=function(_e){return this._charsetService.setgLevel(_e),!0},xe.prototype.screenAlignmentPattern=function(){var _e=new S.CellData;_e.content=1<<22|"E".charCodeAt(0),_e.fg=this._curAttrData.fg,_e.bg=this._curAttrData.bg,this._setCursor(0,0);for(var ke=0;ke<this._bufferService.rows;++ke){var Be=this._activeBuffer.ybase+this._activeBuffer.y+ke,ct=this._activeBuffer.lines.get(Be);ct&&(ct.fill(_e),ct.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},xe}(E.Disposable);M.InputHandler=Oe},844:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.getDisposeArrayDisposable=M.disposeArray=M.Disposable=void 0;var U=function(){function P(){this._disposables=[],this._isDisposed=!1}return P.prototype.dispose=function(){this._isDisposed=!0;for(var D=0,y=this._disposables;D<y.length;D++)y[D].dispose();this._disposables.length=0},P.prototype.register=function(D){return this._disposables.push(D),D},P.prototype.unregister=function(D){var y=this._disposables.indexOf(D);-1!==y&&this._disposables.splice(y,1)},P}();function L(P){for(var D=0,y=P;D<y.length;D++)y[D].dispose();P.length=0}M.Disposable=U,M.disposeArray=L,M.getDisposeArrayDisposable=function(P){return{dispose:function(){return L(P)}}}},6114:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.isLinux=M.isWindows=M.isIphone=M.isIpad=M.isMac=M.isSafari=M.isLegacyEdge=M.isFirefox=void 0;var U="undefined"==typeof navigator,L=U?"node":navigator.userAgent,P=U?"node":navigator.platform;M.isFirefox=L.includes("Firefox"),M.isLegacyEdge=L.includes("Edge"),M.isSafari=/^((?!chrome|android).)*safari/i.test(L),M.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),M.isIpad="iPad"===P,M.isIphone="iPhone"===P,M.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),M.isLinux=P.indexOf("Linux")>=0},8273:function(Y,M){function U(L,P,D,y){if(void 0===D&&(D=0),void 0===y&&(y=L.length),D>=L.length)return L;D=(L.length+D)%L.length,y=y>=L.length?L.length:(L.length+y)%L.length;for(var K=D;K<y;++K)L[K]=P;return L}Object.defineProperty(M,"__esModule",{value:!0}),M.concat=M.fillFallback=M.fill=void 0,M.fill=function(L,P,D,y){return L.fill?L.fill(P,D,y):U(L,P,D,y)},M.fillFallback=U,M.concat=function(L,P){var D=new L.constructor(L.length+P.length);return D.set(L),D.set(P,L.length),D}},9282:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.updateWindowsModeWrappedState=void 0;var L=U(643);M.updateWindowsModeWrappedState=function(P){var D=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),y=null==D?void 0:D.get(P.cols-1),K=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);K&&y&&(K.isWrapped=y[L.CHAR_DATA_CODE_INDEX]!==L.NULL_CELL_CODE&&y[L.CHAR_DATA_CODE_INDEX]!==L.WHITESPACE_CELL_CODE)}},3734:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.ExtendedAttrs=M.AttributeData=void 0;var U=function(){function P(){this.fg=0,this.bg=0,this.extended=new L}return P.toColorRGB=function(D){return[D>>>16&255,D>>>8&255,255&D]},P.fromColorRGB=function(D){return(255&D[0])<<16|(255&D[1])<<8|255&D[2]},P.prototype.clone=function(){var D=new P;return D.fg=this.fg,D.bg=this.bg,D.extended=this.extended.clone(),D},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}();M.AttributeData=U;var L=function(){function P(D,y){void 0===D&&(D=0),void 0===y&&(y=-1),this.underlineStyle=D,this.underlineColor=y}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();M.ExtendedAttrs=L},9092:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BufferStringIterator=M.Buffer=M.MAX_BUFFER_SIZE=void 0;var L=U(6349),P=U(8437),D=U(511),y=U(643),K=U(4634),F=U(4863),E=U(7116),A=U(3734);M.MAX_BUFFER_SIZE=4294967295;var k=function(){function T(w,S,N){this._hasScrollback=w,this._optionsService=S,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=P.DEFAULT_ATTR_DATA.clone(),this.savedCharset=E.DEFAULT_CHARSET,this.markers=[],this._nullCell=D.CellData.fromCharData([0,y.NULL_CELL_CHAR,y.NULL_CELL_WIDTH,y.NULL_CELL_CODE]),this._whitespaceCell=D.CellData.fromCharData([0,y.WHITESPACE_CELL_CHAR,y.WHITESPACE_CELL_WIDTH,y.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new L.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return T.prototype.getNullCell=function(w){return w?(this._nullCell.fg=w.fg,this._nullCell.bg=w.bg,this._nullCell.extended=w.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new A.ExtendedAttrs),this._nullCell},T.prototype.getWhitespaceCell=function(w){return w?(this._whitespaceCell.fg=w.fg,this._whitespaceCell.bg=w.bg,this._whitespaceCell.extended=w.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new A.ExtendedAttrs),this._whitespaceCell},T.prototype.getBlankLine=function(w,S){return new P.BufferLine(this._bufferService.cols,this.getNullCell(w),S)},Object.defineProperty(T.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"isCursorInViewport",{get:function(){var S=this.ybase+this.y-this.ydisp;return S>=0&&S<this._rows},enumerable:!1,configurable:!0}),T.prototype._getCorrectBufferLength=function(w){if(!this._hasScrollback)return w;var S=w+this._optionsService.rawOptions.scrollback;return S>M.MAX_BUFFER_SIZE?M.MAX_BUFFER_SIZE:S},T.prototype.fillViewportRows=function(w){if(0===this.lines.length){void 0===w&&(w=P.DEFAULT_ATTR_DATA);for(var S=this._rows;S--;)this.lines.push(this.getBlankLine(w))}},T.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new L.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},T.prototype.resize=function(w,S){var N=this.getNullCell(P.DEFAULT_ATTR_DATA),R=this._getCorrectBufferLength(S);if(R>this.lines.maxLength&&(this.lines.maxLength=R),this.lines.length>0){if(this._cols<w)for(var W=0;W<this.lines.length;W++)this.lines.get(W).resize(w,N);var $=0;if(this._rows<S)for(var ce=this._rows;ce<S;ce++)this.lines.length<S+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new P.BufferLine(w,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new P.BufferLine(w,N)));else for(ce=this._rows;ce>S;ce--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(R<this.lines.maxLength){var se=this.lines.length-R;se>0&&(this.lines.trimStart(se),this.ybase=Math.max(this.ybase-se,0),this.ydisp=Math.max(this.ydisp-se,0),this.savedY=Math.max(this.savedY-se,0)),this.lines.maxLength=R}this.x=Math.min(this.x,w-1),this.y=Math.min(this.y,S-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,w-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(w,S),this._cols>w))for(W=0;W<this.lines.length;W++)this.lines.get(W).resize(w,N);this._cols=w,this._rows=S},Object.defineProperty(T.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),T.prototype._reflow=function(w,S){this._cols!==w&&(w>this._cols?this._reflowLarger(w,S):this._reflowSmaller(w,S))},T.prototype._reflowLarger=function(w,S){var N=(0,K.reflowLargerGetLinesToRemove)(this.lines,this._cols,w,this.ybase+this.y,this.getNullCell(P.DEFAULT_ATTR_DATA));if(N.length>0){var R=(0,K.reflowLargerCreateNewLayout)(this.lines,N);(0,K.reflowLargerApplyNewLayout)(this.lines,R.layout),this._reflowLargerAdjustViewport(w,S,R.countRemoved)}},T.prototype._reflowLargerAdjustViewport=function(w,S,N){for(var R=this.getNullCell(P.DEFAULT_ATTR_DATA),W=N;W-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<S&&this.lines.push(new P.BufferLine(w,R))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},T.prototype._reflowSmaller=function(w,S){for(var N=this.getNullCell(P.DEFAULT_ATTR_DATA),R=[],W=0,$=this.lines.length-1;$>=0;$--){var ce=this.lines.get($);if(!(!ce||!ce.isWrapped&&ce.getTrimmedLength()<=w)){for(var se=[ce];ce.isWrapped&&$>0;)ce=this.lines.get(--$),se.unshift(ce);var ee=this.ybase+this.y;if(!(ee>=$&&ee<$+se.length)){var oe,ge=se[se.length-1].getTrimmedLength(),Oe=(0,K.reflowSmallerGetNewLineLengths)(se,this._cols,w),ot=Oe.length-se.length;oe=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ot):Math.max(0,this.lines.length-this.lines.maxLength+ot);for(var xe=[],_e=0;_e<ot;_e++){var ke=this.getBlankLine(P.DEFAULT_ATTR_DATA,!0);xe.push(ke)}xe.length>0&&(R.push({start:$+se.length+W,newLines:xe}),W+=xe.length),se.push.apply(se,xe);var Be=Oe.length-1,ct=Oe[Be];0===ct&&(ct=Oe[--Be]);for(var Mt=se.length-ot-1,Nt=ge;Mt>=0;){var Xt=Math.min(Nt,ct);if(void 0===se[Be])break;if(se[Be].copyCellsFrom(se[Mt],Nt-Xt,ct-Xt,Xt,!0),0==(ct-=Xt)&&(ct=Oe[--Be]),0==(Nt-=Xt)){Mt--;var en=Math.max(Mt,0);Nt=(0,K.getWrappedLineTrimmedLength)(se,en,this._cols)}}for(_e=0;_e<se.length;_e++)Oe[_e]<w&&se[_e].setCell(Oe[_e],N);for(var qt=ot-oe;qt-- >0;)0===this.ybase?this.y<S-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+W)-S&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ot,this.ybase+S-1)}}}if(R.length>0){var Xe=[],jt=[];for(_e=0;_e<this.lines.length;_e++)jt.push(this.lines.get(_e));var rt=this.lines.length,vt=rt-1,nt=0,Rt=R[nt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+W);var It=0;for(_e=Math.min(this.lines.maxLength-1,rt+W-1);_e>=0;_e--)if(Rt&&Rt.start>vt+It){for(var on=Rt.newLines.length-1;on>=0;on--)this.lines.set(_e--,Rt.newLines[on]);_e++,Xe.push({index:vt+1,amount:Rt.newLines.length}),It+=Rt.newLines.length,Rt=R[++nt]}else this.lines.set(_e,jt[vt--]);var _n=0;for(_e=Xe.length-1;_e>=0;_e--)Xe[_e].index+=_n,this.lines.onInsertEmitter.fire(Xe[_e]),_n+=Xe[_e].amount;var An=Math.max(0,rt+W-this.lines.maxLength);An>0&&this.lines.onTrimEmitter.fire(An)}},T.prototype.stringIndexToBufferIndex=function(w,S,N){for(void 0===N&&(N=!1);S;){var R=this.lines.get(w);if(!R)return[-1,-1];for(var W=N?R.getTrimmedLength():R.length,$=0;$<W;++$)if(R.get($)[y.CHAR_DATA_WIDTH_INDEX]&&(S-=R.get($)[y.CHAR_DATA_CHAR_INDEX].length||1),S<0)return[w,$];w++}return[w,0]},T.prototype.translateBufferLineToString=function(w,S,N,R){void 0===N&&(N=0);var W=this.lines.get(w);return W?W.translateToString(S,N,R):""},T.prototype.getWrappedRangeForLine=function(w){for(var S=w,N=w;S>0&&this.lines.get(S).isWrapped;)S--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:S,last:N}},T.prototype.setupTabStops=function(w){for(null!=w?this.tabs[w]||(w=this.prevStop(w)):(this.tabs={},w=0);w<this._cols;w+=this._optionsService.rawOptions.tabStopWidth)this.tabs[w]=!0},T.prototype.prevStop=function(w){for(null==w&&(w=this.x);!this.tabs[--w]&&w>0;);return w>=this._cols?this._cols-1:w<0?0:w},T.prototype.nextStop=function(w){for(null==w&&(w=this.x);!this.tabs[++w]&&w<this._cols;);return w>=this._cols?this._cols-1:w<0?0:w},T.prototype.clearMarkers=function(w){if(this._isClearing=!0,void 0!==w)for(var S=0;S<this.markers.length;S++)this.markers[S].line===w&&(this.markers[S].dispose(),this.markers.splice(S--,1));else{for(var N=0,R=this.markers;N<R.length;N++)R[N].dispose();this.markers=[]}this._isClearing=!1},T.prototype.addMarker=function(w){var S=this,N=new F.Marker(w);return this.markers.push(N),N.register(this.lines.onTrim(function(R){N.line-=R,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(R){N.line>=R.index&&(N.line+=R.amount)})),N.register(this.lines.onDelete(function(R){N.line>=R.index&&N.line<R.index+R.amount&&N.dispose(),N.line>R.index&&(N.line-=R.amount)})),N.register(N.onDispose(function(){return S._removeMarker(N)})),N},T.prototype._removeMarker=function(w){this._isClearing||this.markers.splice(this.markers.indexOf(w),1)},T.prototype.iterator=function(w,S,N,R,W){return new I(this,w,S,N,R,W)},T}();M.Buffer=k;var I=function(){function T(w,S,N,R,W,$){void 0===N&&(N=0),void 0===R&&(R=w.lines.length),void 0===W&&(W=0),void 0===$&&($=0),this._buffer=w,this._trimRight=S,this._startIndex=N,this._endIndex=R,this._startOverscan=W,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 T.prototype.hasNext=function(){return this._current<this._endIndex},T.prototype.next=function(){var w=this._buffer.getWrappedRangeForLine(this._current);w.first<this._startIndex-this._startOverscan&&(w.first=this._startIndex-this._startOverscan),w.last>this._endIndex+this._endOverscan&&(w.last=this._endIndex+this._endOverscan),w.first=Math.max(w.first,0),w.last=Math.min(w.last,this._buffer.lines.length);for(var S="",N=w.first;N<=w.last;++N)S+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=w.last+1,{range:w,content:S}},T}();M.BufferStringIterator=I},8437:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BufferLine=M.DEFAULT_ATTR_DATA=void 0;var L=U(482),P=U(643),D=U(511),y=U(3734);M.DEFAULT_ATTR_DATA=Object.freeze(new y.AttributeData);var K=function(){function F(E,A,k){void 0===k&&(k=!1),this.isWrapped=k,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*E);for(var I=A||D.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),T=0;T<E;++T)this.setCell(T,I);this.length=E}return F.prototype.get=function(E){var A=this._data[3*E+0],k=2097151&A;return[this._data[3*E+1],2097152&A?this._combined[E]:k?(0,L.stringFromCodePoint)(k):"",A>>22,2097152&A?this._combined[E].charCodeAt(this._combined[E].length-1):k]},F.prototype.set=function(E,A){this._data[3*E+1]=A[P.CHAR_DATA_ATTR_INDEX],A[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[E]=A[1],this._data[3*E+0]=2097152|E|A[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*E+0]=A[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|A[P.CHAR_DATA_WIDTH_INDEX]<<22},F.prototype.getWidth=function(E){return this._data[3*E+0]>>22},F.prototype.hasWidth=function(E){return 12582912&this._data[3*E+0]},F.prototype.getFg=function(E){return this._data[3*E+1]},F.prototype.getBg=function(E){return this._data[3*E+2]},F.prototype.hasContent=function(E){return 4194303&this._data[3*E+0]},F.prototype.getCodePoint=function(E){var A=this._data[3*E+0];return 2097152&A?this._combined[E].charCodeAt(this._combined[E].length-1):2097151&A},F.prototype.isCombined=function(E){return 2097152&this._data[3*E+0]},F.prototype.getString=function(E){var A=this._data[3*E+0];return 2097152&A?this._combined[E]:2097151&A?(0,L.stringFromCodePoint)(2097151&A):""},F.prototype.loadCell=function(E,A){var k=3*E;return A.content=this._data[k+0],A.fg=this._data[k+1],A.bg=this._data[k+2],2097152&A.content&&(A.combinedData=this._combined[E]),268435456&A.bg&&(A.extended=this._extendedAttrs[E]),A},F.prototype.setCell=function(E,A){2097152&A.content&&(this._combined[E]=A.combinedData),268435456&A.bg&&(this._extendedAttrs[E]=A.extended),this._data[3*E+0]=A.content,this._data[3*E+1]=A.fg,this._data[3*E+2]=A.bg},F.prototype.setCellFromCodePoint=function(E,A,k,I,T,w){268435456&T&&(this._extendedAttrs[E]=w),this._data[3*E+0]=A|k<<22,this._data[3*E+1]=I,this._data[3*E+2]=T},F.prototype.addCodepointToCell=function(E,A){var k=this._data[3*E+0];2097152&k?this._combined[E]+=(0,L.stringFromCodePoint)(A):(2097151&k?(this._combined[E]=(0,L.stringFromCodePoint)(2097151&k)+(0,L.stringFromCodePoint)(A),k&=-2097152,k|=2097152):k=A|1<<22,this._data[3*E+0]=k)},F.prototype.insertCells=function(E,A,k,I){if((E%=this.length)&&2===this.getWidth(E-1)&&this.setCellFromCodePoint(E-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),A<this.length-E){for(var T=new D.CellData,w=this.length-E-A-1;w>=0;--w)this.setCell(E+A+w,this.loadCell(E+w,T));for(w=0;w<A;++w)this.setCell(E+w,k)}else for(w=E;w<this.length;++w)this.setCell(w,k);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs)},F.prototype.deleteCells=function(E,A,k,I){if(E%=this.length,A<this.length-E){for(var T=new D.CellData,w=0;w<this.length-E-A;++w)this.setCell(E+w,this.loadCell(E+A+w,T));for(w=this.length-A;w<this.length;++w)this.setCell(w,k)}else for(w=E;w<this.length;++w)this.setCell(w,k);E&&2===this.getWidth(E-1)&&this.setCellFromCodePoint(E-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),0!==this.getWidth(E)||this.hasContent(E)||this.setCellFromCodePoint(E,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs)},F.prototype.replaceCells=function(E,A,k,I){for(E&&2===this.getWidth(E-1)&&this.setCellFromCodePoint(E-1,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs),A<this.length&&2===this.getWidth(A-1)&&this.setCellFromCodePoint(A,0,1,(null==I?void 0:I.fg)||0,(null==I?void 0:I.bg)||0,(null==I?void 0:I.extended)||new y.ExtendedAttrs);E<A&&E<this.length;)this.setCell(E++,k)},F.prototype.resize=function(E,A){if(E!==this.length){if(E>this.length){var k=new Uint32Array(3*E);this.length&&(3*E<this._data.length?k.set(this._data.subarray(0,3*E)):k.set(this._data)),this._data=k;for(var I=this.length;I<E;++I)this.setCell(I,A)}else if(E){(k=new Uint32Array(3*E)).set(this._data.subarray(0,3*E)),this._data=k;var T=Object.keys(this._combined);for(I=0;I<T.length;I++){var w=parseInt(T[I],10);w>=E&&delete this._combined[w]}}else this._data=new Uint32Array(0),this._combined={};this.length=E}},F.prototype.fill=function(E){this._combined={},this._extendedAttrs={};for(var A=0;A<this.length;++A)this.setCell(A,E)},F.prototype.copyFrom=function(E){for(var A in this.length!==E.length?this._data=new Uint32Array(E._data):this._data.set(E._data),this.length=E.length,this._combined={},E._combined)this._combined[A]=E._combined[A];for(var A in this._extendedAttrs={},E._extendedAttrs)this._extendedAttrs[A]=E._extendedAttrs[A];this.isWrapped=E.isWrapped},F.prototype.clone=function(){var E=new F(0);for(var A in E._data=new Uint32Array(this._data),E.length=this.length,this._combined)E._combined[A]=this._combined[A];for(var A in this._extendedAttrs)E._extendedAttrs[A]=this._extendedAttrs[A];return E.isWrapped=this.isWrapped,E},F.prototype.getTrimmedLength=function(){for(var E=this.length-1;E>=0;--E)if(4194303&this._data[3*E+0])return E+(this._data[3*E+0]>>22);return 0},F.prototype.copyCellsFrom=function(E,A,k,I,T){var w=E._data;if(T)for(var S=I-1;S>=0;S--)for(var N=0;N<3;N++)this._data[3*(k+S)+N]=w[3*(A+S)+N];else for(S=0;S<I;S++)for(N=0;N<3;N++)this._data[3*(k+S)+N]=w[3*(A+S)+N];var R=Object.keys(E._combined);for(N=0;N<R.length;N++){var W=parseInt(R[N],10);W>=A&&(this._combined[W-A+k]=E._combined[W])}},F.prototype.translateToString=function(E,A,k){void 0===E&&(E=!1),void 0===A&&(A=0),void 0===k&&(k=this.length),E&&(k=Math.min(k,this.getTrimmedLength()));for(var I="";A<k;){var T=this._data[3*A+0],w=2097151&T;I+=2097152&T?this._combined[A]:w?(0,L.stringFromCodePoint)(w):P.WHITESPACE_CELL_CHAR,A+=T>>22||1}return I},F}();M.BufferLine=K},4841:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.getRangeLength=void 0,M.getRangeLength=function(U,L){if(U.start.y>U.end.y)throw new Error("Buffer range end ("+U.end.x+", "+U.end.y+") cannot be before start ("+U.start.x+", "+U.start.y+")");return L*(U.end.y-U.start.y)+(U.end.x-U.start.x+1)}},4634:function(Y,M){function U(L,P,D){if(P===L.length-1)return L[P].getTrimmedLength();var y=!L[P].hasContent(D-1)&&1===L[P].getWidth(D-1),K=2===L[P+1].getWidth(0);return y&&K?D-1:D}Object.defineProperty(M,"__esModule",{value:!0}),M.getWrappedLineTrimmedLength=M.reflowSmallerGetNewLineLengths=M.reflowLargerApplyNewLayout=M.reflowLargerCreateNewLayout=M.reflowLargerGetLinesToRemove=void 0,M.reflowLargerGetLinesToRemove=function(L,P,D,y,K){for(var F=[],E=0;E<L.length-1;E++){var A=E,k=L.get(++A);if(k.isWrapped){for(var I=[L.get(E)];A<L.length&&k.isWrapped;)I.push(k),k=L.get(++A);if(y>=E&&y<A)E+=I.length-1;else{for(var T=0,w=U(I,T,P),S=1,N=0;S<I.length;){var R=U(I,S,P),W=R-N,$=D-w,ce=Math.min(W,$);I[T].copyCellsFrom(I[S],N,w,ce,!1),(w+=ce)===D&&(T++,w=0),(N+=ce)===R&&(S++,N=0),0===w&&0!==T&&2===I[T-1].getWidth(D-1)&&(I[T].copyCellsFrom(I[T-1],D-1,w++,1,!1),I[T-1].setCell(D-1,K))}I[T].replaceCells(w,D,K);for(var se=0,ee=I.length-1;ee>0&&(ee>T||0===I[ee].getTrimmedLength());ee--)se++;se>0&&(F.push(E+I.length-se),F.push(se)),E+=I.length-1}}}return F},M.reflowLargerCreateNewLayout=function(L,P){for(var D=[],y=0,K=P[y],F=0,E=0;E<L.length;E++)if(K===E){var A=P[++y];L.onDeleteEmitter.fire({index:E-F,amount:A}),E+=A-1,F+=A,K=P[++y]}else D.push(E);return{layout:D,countRemoved:F}},M.reflowLargerApplyNewLayout=function(L,P){for(var D=[],y=0;y<P.length;y++)D.push(L.get(P[y]));for(y=0;y<D.length;y++)L.set(y,D[y]);L.length=P.length},M.reflowSmallerGetNewLineLengths=function(L,P,D){for(var y=[],K=L.map(function(w,S){return U(L,S,P)}).reduce(function(w,S){return w+S}),F=0,E=0,A=0;A<K;){if(K-A<D){y.push(K-A);break}F+=D;var k=U(L,E,P);F>k&&(F-=k,E++);var I=2===L[E].getWidth(F-1);I&&F--;var T=I?D-1:D;y.push(T),A+=T}return y},M.getWrappedLineTrimmedLength=U},5295:function(Y,M,U){var L,P=this&&this.__extends||(L=function(E,A){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,I){k.__proto__=I}||function(k,I){for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(k[T]=I[T])})(E,A)},function(F,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function A(){this.constructor=F}L(F,E),F.prototype=null===E?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(M,"__esModule",{value:!0}),M.BufferSet=void 0;var D=U(9092),y=U(8460),K=function(F){function E(A,k){var I=F.call(this)||this;return I._optionsService=A,I._bufferService=k,I._onBufferActivate=I.register(new y.EventEmitter),I.reset(),I}return P(E,F),Object.defineProperty(E.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),E.prototype.reset=function(){this._normal=new D.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new D.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(E.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),E.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}))},E.prototype.activateAltBuffer=function(A){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(A),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}))},E.prototype.resize=function(A,k){this._normal.resize(A,k),this._alt.resize(A,k)},E.prototype.setupTabStops=function(A){this._normal.setupTabStops(A),this._alt.setupTabStops(A)},E}(U(844).Disposable);M.BufferSet=K},511:function(Y,M,U){var L,P=this&&this.__extends||(L=function(A,k){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,T){I.__proto__=T}||function(I,T){for(var w in T)Object.prototype.hasOwnProperty.call(T,w)&&(I[w]=T[w])})(A,k)},function(E,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function k(){this.constructor=E}L(E,A),E.prototype=null===A?Object.create(A):(k.prototype=A.prototype,new k)});Object.defineProperty(M,"__esModule",{value:!0}),M.CellData=void 0;var D=U(482),y=U(643),K=U(3734),F=function(E){function A(){var k=null!==E&&E.apply(this,arguments)||this;return k.content=0,k.fg=0,k.bg=0,k.extended=new K.ExtendedAttrs,k.combinedData="",k}return P(A,E),A.fromCharData=function(k){var I=new A;return I.setFromCharData(k),I},A.prototype.isCombined=function(){return 2097152&this.content},A.prototype.getWidth=function(){return this.content>>22},A.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,D.stringFromCodePoint)(2097151&this.content):""},A.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},A.prototype.setFromCharData=function(k){this.fg=k[y.CHAR_DATA_ATTR_INDEX],this.bg=0;var I=!1;if(k[y.CHAR_DATA_CHAR_INDEX].length>2)I=!0;else if(2===k[y.CHAR_DATA_CHAR_INDEX].length){var T=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=T&&T<=56319){var w=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=w&&w<=57343?this.content=1024*(T-55296)+w-56320+65536|k[y.CHAR_DATA_WIDTH_INDEX]<<22:I=!0}else I=!0}else this.content=k[y.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[y.CHAR_DATA_WIDTH_INDEX]<<22;I&&(this.combinedData=k[y.CHAR_DATA_CHAR_INDEX],this.content=2097152|k[y.CHAR_DATA_WIDTH_INDEX]<<22)},A.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},A}(K.AttributeData);M.CellData=F},643:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.WHITESPACE_CELL_CODE=M.WHITESPACE_CELL_WIDTH=M.WHITESPACE_CELL_CHAR=M.NULL_CELL_CODE=M.NULL_CELL_WIDTH=M.NULL_CELL_CHAR=M.CHAR_DATA_CODE_INDEX=M.CHAR_DATA_WIDTH_INDEX=M.CHAR_DATA_CHAR_INDEX=M.CHAR_DATA_ATTR_INDEX=M.DEFAULT_ATTR=M.DEFAULT_COLOR=void 0,M.DEFAULT_COLOR=256,M.DEFAULT_ATTR=256|M.DEFAULT_COLOR<<9,M.CHAR_DATA_ATTR_INDEX=0,M.CHAR_DATA_CHAR_INDEX=1,M.CHAR_DATA_WIDTH_INDEX=2,M.CHAR_DATA_CODE_INDEX=3,M.NULL_CELL_CHAR="",M.NULL_CELL_WIDTH=1,M.NULL_CELL_CODE=0,M.WHITESPACE_CELL_CHAR=" ",M.WHITESPACE_CELL_WIDTH=1,M.WHITESPACE_CELL_CODE=32},4863:function(Y,M,U){var L,P=this&&this.__extends||(L=function(F,E){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var I in k)Object.prototype.hasOwnProperty.call(k,I)&&(A[I]=k[I])})(F,E)},function(K,F){if("function"!=typeof F&&null!==F)throw new TypeError("Class extends value "+String(F)+" is not a constructor or null");function E(){this.constructor=K}L(K,F),K.prototype=null===F?Object.create(F):(E.prototype=F.prototype,new E)});Object.defineProperty(M,"__esModule",{value:!0}),M.Marker=void 0;var D=U(8460),y=function(K){function F(E){var A=K.call(this)||this;return A.line=E,A._id=F._nextId++,A.isDisposed=!1,A._onDispose=new D.EventEmitter,A}return P(F,K),Object.defineProperty(F.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),F.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),K.prototype.dispose.call(this))},F._nextId=1,F}(U(844).Disposable);M.Marker=y},7116:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.DEFAULT_CHARSET=M.CHARSETS=void 0,M.CHARSETS={},M.DEFAULT_CHARSET=M.CHARSETS.B,M.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"},M.CHARSETS.A={"#":"\xa3"},M.CHARSETS.B=void 0,M.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},M.CHARSETS.C=M.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},M.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},M.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},M.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},M.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},M.CHARSETS.E=M.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},M.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},M.CHARSETS.H=M.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},M.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(Y,M){var U,L;Object.defineProperty(M,"__esModule",{value:!0}),M.C1=M.C0=void 0,(L=M.C0||(M.C0={})).NUL="\0",L.SOH="\x01",L.STX="\x02",L.ETX="\x03",L.EOT="\x04",L.ENQ="\x05",L.ACK="\x06",L.BEL="\x07",L.BS="\b",L.HT="\t",L.LF="\n",L.VT="\v",L.FF="\f",L.CR="\r",L.SO="\x0e",L.SI="\x0f",L.DLE="\x10",L.DC1="\x11",L.DC2="\x12",L.DC3="\x13",L.DC4="\x14",L.NAK="\x15",L.SYN="\x16",L.ETB="\x17",L.CAN="\x18",L.EM="\x19",L.SUB="\x1a",L.ESC="\x1b",L.FS="\x1c",L.GS="\x1d",L.RS="\x1e",L.US="\x1f",L.SP=" ",L.DEL="\x7f",(U=M.C1||(M.C1={})).PAD="\x80",U.HOP="\x81",U.BPH="\x82",U.NBH="\x83",U.IND="\x84",U.NEL="\x85",U.SSA="\x86",U.ESA="\x87",U.HTS="\x88",U.HTJ="\x89",U.VTS="\x8a",U.PLD="\x8b",U.PLU="\x8c",U.RI="\x8d",U.SS2="\x8e",U.SS3="\x8f",U.DCS="\x90",U.PU1="\x91",U.PU2="\x92",U.STS="\x93",U.CCH="\x94",U.MW="\x95",U.SPA="\x96",U.EPA="\x97",U.SOS="\x98",U.SGCI="\x99",U.SCI="\x9a",U.CSI="\x9b",U.ST="\x9c",U.OSC="\x9d",U.PM="\x9e",U.APC="\x9f"},7399:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.evaluateKeyboardEvent=void 0;var L=U(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:["'",'"']};M.evaluateKeyboardEvent=function(D,y,K,F){var E={type:0,cancel:!1,key:void 0},A=(D.shiftKey?1:0)|(D.altKey?2:0)|(D.ctrlKey?4:0)|(D.metaKey?8:0);switch(D.keyCode){case 0:"UIKeyInputUpArrow"===D.key?E.key=y?L.C0.ESC+"OA":L.C0.ESC+"[A":"UIKeyInputLeftArrow"===D.key?E.key=y?L.C0.ESC+"OD":L.C0.ESC+"[D":"UIKeyInputRightArrow"===D.key?E.key=y?L.C0.ESC+"OC":L.C0.ESC+"[C":"UIKeyInputDownArrow"===D.key&&(E.key=y?L.C0.ESC+"OB":L.C0.ESC+"[B");break;case 8:if(D.shiftKey){E.key=L.C0.BS;break}if(D.altKey){E.key=L.C0.ESC+L.C0.DEL;break}E.key=L.C0.DEL;break;case 9:if(D.shiftKey){E.key=L.C0.ESC+"[Z";break}E.key=L.C0.HT,E.cancel=!0;break;case 13:E.key=D.altKey?L.C0.ESC+L.C0.CR:L.C0.CR,E.cancel=!0;break;case 27:E.key=L.C0.ESC,D.altKey&&(E.key=L.C0.ESC+L.C0.ESC),E.cancel=!0;break;case 37:if(D.metaKey)break;A?(E.key=L.C0.ESC+"[1;"+(A+1)+"D",E.key===L.C0.ESC+"[1;3D"&&(E.key=L.C0.ESC+(K?"b":"[1;5D"))):E.key=y?L.C0.ESC+"OD":L.C0.ESC+"[D";break;case 39:if(D.metaKey)break;A?(E.key=L.C0.ESC+"[1;"+(A+1)+"C",E.key===L.C0.ESC+"[1;3C"&&(E.key=L.C0.ESC+(K?"f":"[1;5C"))):E.key=y?L.C0.ESC+"OC":L.C0.ESC+"[C";break;case 38:if(D.metaKey)break;A?(E.key=L.C0.ESC+"[1;"+(A+1)+"A",K||E.key!==L.C0.ESC+"[1;3A"||(E.key=L.C0.ESC+"[1;5A")):E.key=y?L.C0.ESC+"OA":L.C0.ESC+"[A";break;case 40:if(D.metaKey)break;A?(E.key=L.C0.ESC+"[1;"+(A+1)+"B",K||E.key!==L.C0.ESC+"[1;3B"||(E.key=L.C0.ESC+"[1;5B")):E.key=y?L.C0.ESC+"OB":L.C0.ESC+"[B";break;case 45:D.shiftKey||D.ctrlKey||(E.key=L.C0.ESC+"[2~");break;case 46:E.key=A?L.C0.ESC+"[3;"+(A+1)+"~":L.C0.ESC+"[3~";break;case 36:E.key=A?L.C0.ESC+"[1;"+(A+1)+"H":y?L.C0.ESC+"OH":L.C0.ESC+"[H";break;case 35:E.key=A?L.C0.ESC+"[1;"+(A+1)+"F":y?L.C0.ESC+"OF":L.C0.ESC+"[F";break;case 33:D.shiftKey?E.type=2:E.key=L.C0.ESC+"[5~";break;case 34:D.shiftKey?E.type=3:E.key=L.C0.ESC+"[6~";break;case 112:E.key=A?L.C0.ESC+"[1;"+(A+1)+"P":L.C0.ESC+"OP";break;case 113:E.key=A?L.C0.ESC+"[1;"+(A+1)+"Q":L.C0.ESC+"OQ";break;case 114:E.key=A?L.C0.ESC+"[1;"+(A+1)+"R":L.C0.ESC+"OR";break;case 115:E.key=A?L.C0.ESC+"[1;"+(A+1)+"S":L.C0.ESC+"OS";break;case 116:E.key=A?L.C0.ESC+"[15;"+(A+1)+"~":L.C0.ESC+"[15~";break;case 117:E.key=A?L.C0.ESC+"[17;"+(A+1)+"~":L.C0.ESC+"[17~";break;case 118:E.key=A?L.C0.ESC+"[18;"+(A+1)+"~":L.C0.ESC+"[18~";break;case 119:E.key=A?L.C0.ESC+"[19;"+(A+1)+"~":L.C0.ESC+"[19~";break;case 120:E.key=A?L.C0.ESC+"[20;"+(A+1)+"~":L.C0.ESC+"[20~";break;case 121:E.key=A?L.C0.ESC+"[21;"+(A+1)+"~":L.C0.ESC+"[21~";break;case 122:E.key=A?L.C0.ESC+"[23;"+(A+1)+"~":L.C0.ESC+"[23~";break;case 123:E.key=A?L.C0.ESC+"[24;"+(A+1)+"~":L.C0.ESC+"[24~";break;default:if(!D.ctrlKey||D.shiftKey||D.altKey||D.metaKey)if(K&&!F||!D.altKey||D.metaKey)!K||D.altKey||D.ctrlKey||D.shiftKey||!D.metaKey?D.key&&!D.ctrlKey&&!D.altKey&&!D.metaKey&&D.keyCode>=48&&1===D.key.length?E.key=D.key:D.key&&D.ctrlKey&&"_"===D.key&&(E.key=L.C0.US):65===D.keyCode&&(E.type=1);else{var k=P[D.keyCode],I=null==k?void 0:k[D.shiftKey?1:0];if(I)E.key=L.C0.ESC+I;else if(D.keyCode>=65&&D.keyCode<=90){var T=D.ctrlKey?D.keyCode-64:D.keyCode+32;E.key=L.C0.ESC+String.fromCharCode(T)}}else D.keyCode>=65&&D.keyCode<=90?E.key=String.fromCharCode(D.keyCode-64):32===D.keyCode?E.key=L.C0.NUL:D.keyCode>=51&&D.keyCode<=55?E.key=String.fromCharCode(D.keyCode-51+27):56===D.keyCode?E.key=L.C0.DEL:219===D.keyCode?E.key=L.C0.ESC:220===D.keyCode?E.key=L.C0.FS:221===D.keyCode&&(E.key=L.C0.GS)}return E}},482:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.Utf8ToUtf32=M.StringToUtf32=M.utf32ToString=M.stringFromCodePoint=void 0,M.stringFromCodePoint=function(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},M.utf32ToString=function(P,D,y){void 0===D&&(D=0),void 0===y&&(y=P.length);for(var K="",F=D;F<y;++F){var E=P[F];E>65535?(E-=65536,K+=String.fromCharCode(55296+(E>>10))+String.fromCharCode(E%1024+56320)):K+=String.fromCharCode(E)}return K};var U=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(D,y){var K=D.length;if(!K)return 0;var F=0,E=0;this._interim&&(56320<=(I=D.charCodeAt(E++))&&I<=57343?y[F++]=1024*(this._interim-55296)+I-56320+65536:(y[F++]=this._interim,y[F++]=I),this._interim=0);for(var A=E;A<K;++A){var k=D.charCodeAt(A);if(55296<=k&&k<=56319){if(++A>=K)return this._interim=k,F;var I;56320<=(I=D.charCodeAt(A))&&I<=57343?y[F++]=1024*(k-55296)+I-56320+65536:(y[F++]=k,y[F++]=I)}else 65279!==k&&(y[F++]=k)}return F},P}();M.StringToUtf32=U;var L=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(D,y){var K=D.length;if(!K)return 0;var F,E,A,k,I=0,T=0,w=0;if(this.interim[0]){var S=!1,N=this.interim[0];N&=192==(224&N)?31:224==(240&N)?15:7;for(var R=0,W=void 0;(W=63&this.interim[++R])&&R<4;)N<<=6,N|=W;for(var $=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,ce=$-R;w<ce;){if(w>=K)return 0;if(128!=(192&(W=D[w++]))){w--,S=!0;break}this.interim[R++]=W,N<<=6,N|=63&W}S||(2===$?N<128?w--:y[I++]=N:3===$?N<2048||N>=55296&&N<=57343||65279===N||(y[I++]=N):N<65536||N>1114111||(y[I++]=N)),this.interim.fill(0)}for(var se=K-4,ee=w;ee<K;){for(;!(!(ee<se)||128&(F=D[ee])||128&(E=D[ee+1])||128&(A=D[ee+2])||128&(k=D[ee+3]));)y[I++]=F,y[I++]=E,y[I++]=A,y[I++]=k,ee+=4;if((F=D[ee++])<128)y[I++]=F;else if(192==(224&F)){if(ee>=K)return this.interim[0]=F,I;if(128!=(192&(E=D[ee++]))){ee--;continue}if((T=(31&F)<<6|63&E)<128){ee--;continue}y[I++]=T}else if(224==(240&F)){if(ee>=K)return this.interim[0]=F,I;if(128!=(192&(E=D[ee++]))){ee--;continue}if(ee>=K)return this.interim[0]=F,this.interim[1]=E,I;if(128!=(192&(A=D[ee++]))){ee--;continue}if((T=(15&F)<<12|(63&E)<<6|63&A)<2048||T>=55296&&T<=57343||65279===T)continue;y[I++]=T}else if(240==(248&F)){if(ee>=K)return this.interim[0]=F,I;if(128!=(192&(E=D[ee++]))){ee--;continue}if(ee>=K)return this.interim[0]=F,this.interim[1]=E,I;if(128!=(192&(A=D[ee++]))){ee--;continue}if(ee>=K)return this.interim[0]=F,this.interim[1]=E,this.interim[2]=A,I;if(128!=(192&(k=D[ee++]))){ee--;continue}if((T=(7&F)<<18|(63&E)<<12|(63&A)<<6|63&k)<65536||T>1114111)continue;y[I++]=T}}return I},P}();M.Utf8ToUtf32=L},225:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.UnicodeV6=void 0;var L,P=U(8273),D=[[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]],y=[[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]],K=function(){function F(){if(this.version="6",!L){L=new Uint8Array(65536),(0,P.fill)(L,1),L[0]=0,(0,P.fill)(L,0,1,32),(0,P.fill)(L,0,127,160),(0,P.fill)(L,2,4352,4448),L[9001]=2,L[9002]=2,(0,P.fill)(L,2,11904,42192),L[12351]=1,(0,P.fill)(L,2,44032,55204),(0,P.fill)(L,2,63744,64256),(0,P.fill)(L,2,65040,65050),(0,P.fill)(L,2,65072,65136),(0,P.fill)(L,2,65280,65377),(0,P.fill)(L,2,65504,65511);for(var E=0;E<D.length;++E)(0,P.fill)(L,0,D[E][0],D[E][1]+1)}}return F.prototype.wcwidth=function(E){return E<32?0:E<127?1:E<65536?L[E]:function(A,k){var I,T=0,w=k.length-1;if(A<k[0][0]||A>k[w][1])return!1;for(;w>=T;)if(A>k[I=T+w>>1][1])T=I+1;else{if(!(A<k[I][0]))return!0;w=I-1}return!1}(E,y)?0:E>=131072&&E<=196605||E>=196608&&E<=262141?2:1},F}();M.UnicodeV6=K},5981:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.WriteBuffer=void 0;var U="undefined"==typeof queueMicrotask?function(P){Promise.resolve().then(P)}:queueMicrotask,L=function(){function P(D){this._action=D,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return P.prototype.writeSync=function(D,y){if(void 0!==y&&this._syncCalls>y)this._syncCalls=0;else if(this._pendingData+=D.length,this._writeBuffer.push(D),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var K;for(this._isSyncWriting=!0;K=this._writeBuffer.shift();){this._action(K);var F=this._callbacks.shift();F&&F()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},P.prototype.write=function(D,y){var K=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 K._innerWrite()})),this._pendingData+=D.length,this._writeBuffer.push(D),this._callbacks.push(y)},P.prototype._innerWrite=function(D,y){var K=this;void 0===D&&(D=0),void 0===y&&(y=!0);for(var F=D||Date.now();this._writeBuffer.length>this._bufferOffset;){var E=this._writeBuffer[this._bufferOffset],A=this._action(E,y);if(A)return void A.catch(function(I){return U(function(){throw I}),Promise.resolve(!1)}).then(function(I){return Date.now()-F>=12?setTimeout(function(){return K._innerWrite(0,I)}):K._innerWrite(F,I)});var k=this._callbacks[this._bufferOffset];if(k&&k(),this._bufferOffset++,this._pendingData-=E.length,Date.now()-F>=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 K._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},P}();M.WriteBuffer=L},5941:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.toRgbString=M.parseColor=void 0;var U=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\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})$/,L=/^[\da-f]+$/;function P(D,y){var K=D.toString(16),F=K.length<2?"0"+K:K;switch(y){case 4:return K[0];case 8:return F;case 12:return(F+F).slice(0,3);default:return F+F}}M.parseColor=function(D){if(D){var y=D.toLowerCase();if(0===y.indexOf("rgb:")){y=y.slice(4);var K=U.exec(y);if(K){var F=K[1]?15:K[4]?255:K[7]?4095:65535;return[Math.round(parseInt(K[1]||K[4]||K[7]||K[10],16)/F*255),Math.round(parseInt(K[2]||K[5]||K[8]||K[11],16)/F*255),Math.round(parseInt(K[3]||K[6]||K[9]||K[12],16)/F*255)]}}else if(0===y.indexOf("#")&&(y=y.slice(1),L.exec(y)&&[3,6,9,12].includes(y.length))){for(var E=y.length/3,A=[0,0,0],k=0;k<3;++k){var I=parseInt(y.slice(E*k,E*k+E),16);A[k]=1===E?I<<4:2===E?I:3===E?I>>4:I>>8}return A}}},M.toRgbString=function(D,y){void 0===y&&(y=16);var K=D[0],F=D[1],E=D[2];return"rgb:"+P(K,y)+"/"+P(F,y)+"/"+P(E,y)}},5770:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.PAYLOAD_LIMIT=void 0,M.PAYLOAD_LIMIT=1e7},6351:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.DcsHandler=M.DcsParser=void 0;var L=U(482),P=U(8742),D=U(5770),y=[],K=function(){function A(){this._handlers=Object.create(null),this._active=y,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return A.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=y},A.prototype.registerHandler=function(k,I){void 0===this._handlers[k]&&(this._handlers[k]=[]);var T=this._handlers[k];return T.push(I),{dispose:function(){var S=T.indexOf(I);-1!==S&&T.splice(S,1)}}},A.prototype.clearHandler=function(k){this._handlers[k]&&delete this._handlers[k]},A.prototype.setHandlerFallback=function(k){this._handlerFb=k},A.prototype.reset=function(){if(this._active.length)for(var k=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;k>=0;--k)this._active[k].unhook(!1);this._stack.paused=!1,this._active=y,this._ident=0},A.prototype.hook=function(k,I){if(this.reset(),this._ident=k,this._active=this._handlers[k]||y,this._active.length)for(var T=this._active.length-1;T>=0;T--)this._active[T].hook(I);else this._handlerFb(this._ident,"HOOK",I)},A.prototype.put=function(k,I,T){if(this._active.length)for(var w=this._active.length-1;w>=0;w--)this._active[w].put(k,I,T);else this._handlerFb(this._ident,"PUT",(0,L.utf32ToString)(k,I,T))},A.prototype.unhook=function(k,I){if(void 0===I&&(I=!0),this._active.length){var T=!1,w=this._active.length-1,S=!1;if(this._stack.paused&&(w=this._stack.loopPosition-1,T=I,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===T){for(;w>=0&&!0!==(T=this._active[w].unhook(k));w--)if(T instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=w,this._stack.fallThrough=!1,T;w--}for(;w>=0;w--)if((T=this._active[w].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=w,this._stack.fallThrough=!0,T}else this._handlerFb(this._ident,"UNHOOK",k);this._active=y,this._ident=0},A}();M.DcsParser=K;var F=new P.Params;F.addParam(0);var E=function(){function A(k){this._handler=k,this._data="",this._params=F,this._hitLimit=!1}return A.prototype.hook=function(k){this._params=k.length>1||k.params[0]?k.clone():F,this._data="",this._hitLimit=!1},A.prototype.put=function(k,I,T){this._hitLimit||(this._data+=(0,L.utf32ToString)(k,I,T),this._data.length>D.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},A.prototype.unhook=function(k){var I=this,T=!1;if(this._hitLimit)T=!1;else if(k&&(T=this._handler(this._data,this._params))instanceof Promise)return T.then(function(w){return I._params=F,I._data="",I._hitLimit=!1,w});return this._params=F,this._data="",this._hitLimit=!1,T},A}();M.DcsHandler=E},2015:function(Y,M,U){var L,P=this&&this.__extends||(L=function(w,S){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,R){N.__proto__=R}||function(N,R){for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(N[W]=R[W])})(w,S)},function(T,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function S(){this.constructor=T}L(T,w),T.prototype=null===w?Object.create(w):(S.prototype=w.prototype,new S)});Object.defineProperty(M,"__esModule",{value:!0}),M.EscapeSequenceParser=M.VT500_TRANSITION_TABLE=M.TransitionTable=void 0;var D=U(844),y=U(8273),K=U(8742),F=U(6242),E=U(6351),A=function(){function T(w){this.table=new Uint8Array(w)}return T.prototype.setDefault=function(w,S){(0,y.fill)(this.table,w<<4|S)},T.prototype.add=function(w,S,N,R){this.table[S<<8|w]=N<<4|R},T.prototype.addMany=function(w,S,N,R){for(var W=0;W<w.length;W++)this.table[S<<8|w[W]]=N<<4|R},T}();M.TransitionTable=A;var k=160;M.VT500_TRANSITION_TABLE=function(){var T=new A(4095),w=Array.apply(null,Array(256)).map(function(ce,se){return se}),S=function(se,ee){return w.slice(se,ee)},N=S(32,127),R=S(0,24);R.push(25),R.push.apply(R,S(28,32));var W,$=S(0,14);for(W in T.setDefault(1,0),T.addMany(N,0,2,0),$)T.addMany([24,26,153,154],W,3,0),T.addMany(S(128,144),W,3,0),T.addMany(S(144,152),W,3,0),T.add(156,W,0,0),T.add(27,W,11,1),T.add(157,W,4,8),T.addMany([152,158,159],W,0,7),T.add(155,W,11,3),T.add(144,W,11,9);return T.addMany(R,0,3,0),T.addMany(R,1,3,1),T.add(127,1,0,1),T.addMany(R,8,0,8),T.addMany(R,3,3,3),T.add(127,3,0,3),T.addMany(R,4,3,4),T.add(127,4,0,4),T.addMany(R,6,3,6),T.addMany(R,5,3,5),T.add(127,5,0,5),T.addMany(R,2,3,2),T.add(127,2,0,2),T.add(93,1,4,8),T.addMany(N,8,5,8),T.add(127,8,5,8),T.addMany([156,27,24,26,7],8,6,0),T.addMany(S(28,32),8,0,8),T.addMany([88,94,95],1,0,7),T.addMany(N,7,0,7),T.addMany(R,7,0,7),T.add(156,7,0,0),T.add(127,7,0,7),T.add(91,1,11,3),T.addMany(S(64,127),3,7,0),T.addMany(S(48,60),3,8,4),T.addMany([60,61,62,63],3,9,4),T.addMany(S(48,60),4,8,4),T.addMany(S(64,127),4,7,0),T.addMany([60,61,62,63],4,0,6),T.addMany(S(32,64),6,0,6),T.add(127,6,0,6),T.addMany(S(64,127),6,0,0),T.addMany(S(32,48),3,9,5),T.addMany(S(32,48),5,9,5),T.addMany(S(48,64),5,0,6),T.addMany(S(64,127),5,7,0),T.addMany(S(32,48),4,9,5),T.addMany(S(32,48),1,9,2),T.addMany(S(32,48),2,9,2),T.addMany(S(48,127),2,10,0),T.addMany(S(48,80),1,10,0),T.addMany(S(81,88),1,10,0),T.addMany([89,90,92],1,10,0),T.addMany(S(96,127),1,10,0),T.add(80,1,11,9),T.addMany(R,9,0,9),T.add(127,9,0,9),T.addMany(S(28,32),9,0,9),T.addMany(S(32,48),9,9,12),T.addMany(S(48,60),9,8,10),T.addMany([60,61,62,63],9,9,10),T.addMany(R,11,0,11),T.addMany(S(32,128),11,0,11),T.addMany(S(28,32),11,0,11),T.addMany(R,10,0,10),T.add(127,10,0,10),T.addMany(S(28,32),10,0,10),T.addMany(S(48,60),10,8,10),T.addMany([60,61,62,63],10,0,11),T.addMany(S(32,48),10,9,12),T.addMany(R,12,0,12),T.add(127,12,0,12),T.addMany(S(28,32),12,0,12),T.addMany(S(32,48),12,9,12),T.addMany(S(48,64),12,0,11),T.addMany(S(64,127),12,12,13),T.addMany(S(64,127),10,12,13),T.addMany(S(64,127),9,12,13),T.addMany(R,13,13,13),T.addMany(N,13,13,13),T.add(127,13,0,13),T.addMany([27,156,24,26],13,14,0),T.add(k,0,2,0),T.add(k,8,5,8),T.add(k,6,0,6),T.add(k,11,0,11),T.add(k,13,13,13),T}();var I=function(T){function w(S){void 0===S&&(S=M.VT500_TRANSITION_TABLE);var N=T.call(this)||this;return N._transitions=S,N._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},N.initialState=0,N.currentState=N.initialState,N._params=new K.Params,N._params.addParam(0),N._collect=0,N.precedingCodepoint=0,N._printHandlerFb=function(R,W,$){},N._executeHandlerFb=function(R){},N._csiHandlerFb=function(R,W){},N._escHandlerFb=function(R){},N._errorHandlerFb=function(R){return R},N._printHandler=N._printHandlerFb,N._executeHandlers=Object.create(null),N._csiHandlers=Object.create(null),N._escHandlers=Object.create(null),N._oscParser=new F.OscParser,N._dcsParser=new E.DcsParser,N._errorHandler=N._errorHandlerFb,N.registerEscHandler({final:"\\"},function(){return!0}),N}return P(w,T),w.prototype._identifier=function(S,N){void 0===N&&(N=[64,126]);var R=0;if(S.prefix){if(S.prefix.length>1)throw new Error("only one byte as prefix supported");if((R=S.prefix.charCodeAt(0))&&60>R||R>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 W=0;W<S.intermediates.length;++W){var $=S.intermediates.charCodeAt(W);if(32>$||$>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");R<<=8,R|=$}}if(1!==S.final.length)throw new Error("final must be a single byte");var ce=S.final.charCodeAt(0);if(N[0]>ce||ce>N[1])throw new Error("final must be in range "+N[0]+" .. "+N[1]);return(R<<=8)|ce},w.prototype.identToString=function(S){for(var N=[];S;)N.push(String.fromCharCode(255&S)),S>>=8;return N.reverse().join("")},w.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},w.prototype.setPrintHandler=function(S){this._printHandler=S},w.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},w.prototype.registerEscHandler=function(S,N){var R=this._identifier(S,[48,126]);void 0===this._escHandlers[R]&&(this._escHandlers[R]=[]);var W=this._escHandlers[R];return W.push(N),{dispose:function(){var ce=W.indexOf(N);-1!==ce&&W.splice(ce,1)}}},w.prototype.clearEscHandler=function(S){this._escHandlers[this._identifier(S,[48,126])]&&delete this._escHandlers[this._identifier(S,[48,126])]},w.prototype.setEscHandlerFallback=function(S){this._escHandlerFb=S},w.prototype.setExecuteHandler=function(S,N){this._executeHandlers[S.charCodeAt(0)]=N},w.prototype.clearExecuteHandler=function(S){this._executeHandlers[S.charCodeAt(0)]&&delete this._executeHandlers[S.charCodeAt(0)]},w.prototype.setExecuteHandlerFallback=function(S){this._executeHandlerFb=S},w.prototype.registerCsiHandler=function(S,N){var R=this._identifier(S);void 0===this._csiHandlers[R]&&(this._csiHandlers[R]=[]);var W=this._csiHandlers[R];return W.push(N),{dispose:function(){var ce=W.indexOf(N);-1!==ce&&W.splice(ce,1)}}},w.prototype.clearCsiHandler=function(S){this._csiHandlers[this._identifier(S)]&&delete this._csiHandlers[this._identifier(S)]},w.prototype.setCsiHandlerFallback=function(S){this._csiHandlerFb=S},w.prototype.registerDcsHandler=function(S,N){return this._dcsParser.registerHandler(this._identifier(S),N)},w.prototype.clearDcsHandler=function(S){this._dcsParser.clearHandler(this._identifier(S))},w.prototype.setDcsHandlerFallback=function(S){this._dcsParser.setHandlerFallback(S)},w.prototype.registerOscHandler=function(S,N){return this._oscParser.registerHandler(S,N)},w.prototype.clearOscHandler=function(S){this._oscParser.clearHandler(S)},w.prototype.setOscHandlerFallback=function(S){this._oscParser.setHandlerFallback(S)},w.prototype.setErrorHandler=function(S){this._errorHandler=S},w.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},w.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=[])},w.prototype._preserveStack=function(S,N,R,W,$){this._parseStack.state=S,this._parseStack.handlers=N,this._parseStack.handlerPos=R,this._parseStack.transition=W,this._parseStack.chunkPos=$},w.prototype.parse=function(S,N,R){var W,$=0,ce=0,se=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,se=this._parseStack.chunkPos+1;else{if(void 0===R||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var ee=this._parseStack.handlers,oe=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===R&&oe>-1)for(;oe>=0&&!0!==(W=ee[oe](this._params));oe--)if(W instanceof Promise)return this._parseStack.handlerPos=oe,W;this._parseStack.handlers=[];break;case 4:if(!1===R&&oe>-1)for(;oe>=0&&!0!==(W=ee[oe]());oe--)if(W instanceof Promise)return this._parseStack.handlerPos=oe,W;this._parseStack.handlers=[];break;case 6:if($=S[this._parseStack.chunkPos],W=this._dcsParser.unhook(24!==$&&26!==$,R))return W;27===$&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if($=S[this._parseStack.chunkPos],W=this._oscParser.end(24!==$&&26!==$,R))return W;27===$&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,se=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ge=se;ge<N;++ge){switch($=S[ge],(ce=this._transitions.table[this.currentState<<8|($<160?$:k)])>>4){case 2:for(var Oe=ge+1;;++Oe){if(Oe>=N||($=S[Oe])<32||$>126&&$<k){this._printHandler(S,ge,Oe),ge=Oe-1;break}if(++Oe>=N||($=S[Oe])<32||$>126&&$<k){this._printHandler(S,ge,Oe),ge=Oe-1;break}if(++Oe>=N||($=S[Oe])<32||$>126&&$<k){this._printHandler(S,ge,Oe),ge=Oe-1;break}if(++Oe>=N||($=S[Oe])<32||$>126&&$<k){this._printHandler(S,ge,Oe),ge=Oe-1;break}}break;case 3:this._executeHandlers[$]?this._executeHandlers[$]():this._executeHandlerFb($),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ge,code:$,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var ot=(ee=this._csiHandlers[this._collect<<8|$])?ee.length-1:-1;ot>=0&&!0!==(W=ee[ot](this._params));ot--)if(W instanceof Promise)return this._preserveStack(3,ee,ot,ce,ge),W;ot<0&&this._csiHandlerFb(this._collect<<8|$,this._params),this.precedingCodepoint=0;break;case 8:do{switch($){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit($-48)}}while(++ge<N&&($=S[ge])>47&&$<60);ge--;break;case 9:this._collect<<=8,this._collect|=$;break;case 10:for(var xe=this._escHandlers[this._collect<<8|$],_e=xe?xe.length-1:-1;_e>=0&&!0!==(W=xe[_e]());_e--)if(W instanceof Promise)return this._preserveStack(4,xe,_e,ce,ge),W;_e<0&&this._escHandlerFb(this._collect<<8|$),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|$,this._params);break;case 13:for(var ke=ge+1;;++ke)if(ke>=N||24===($=S[ke])||26===$||27===$||$>127&&$<k){this._dcsParser.put(S,ge,ke),ge=ke-1;break}break;case 14:if(W=this._dcsParser.unhook(24!==$&&26!==$))return this._preserveStack(6,[],0,ce,ge),W;27===$&&(ce|=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 Be=ge+1;;Be++)if(Be>=N||($=S[Be])<32||$>127&&$<k){this._oscParser.put(S,ge,Be),ge=Be-1;break}break;case 6:if(W=this._oscParser.end(24!==$&&26!==$))return this._preserveStack(5,[],0,ce,ge),W;27===$&&(ce|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&ce}},w}(D.Disposable);M.EscapeSequenceParser=I},6242:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.OscHandler=M.OscParser=void 0;var L=U(5770),P=U(482),D=[],y=function(){function F(){this._state=0,this._active=D,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return F.prototype.registerHandler=function(E,A){void 0===this._handlers[E]&&(this._handlers[E]=[]);var k=this._handlers[E];return k.push(A),{dispose:function(){var T=k.indexOf(A);-1!==T&&k.splice(T,1)}}},F.prototype.clearHandler=function(E){this._handlers[E]&&delete this._handlers[E]},F.prototype.setHandlerFallback=function(E){this._handlerFb=E},F.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},F.prototype.reset=function(){if(2===this._state)for(var E=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;E>=0;--E)this._active[E].end(!1);this._stack.paused=!1,this._active=D,this._id=-1,this._state=0},F.prototype._start=function(){if(this._active=this._handlers[this._id]||D,this._active.length)for(var E=this._active.length-1;E>=0;E--)this._active[E].start();else this._handlerFb(this._id,"START")},F.prototype._put=function(E,A,k){if(this._active.length)for(var I=this._active.length-1;I>=0;I--)this._active[I].put(E,A,k);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(E,A,k))},F.prototype.start=function(){this.reset(),this._state=1},F.prototype.put=function(E,A,k){if(3!==this._state){if(1===this._state)for(;A<k;){var I=E[A++];if(59===I){this._state=2,this._start();break}if(I<48||57<I)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+I-48}2===this._state&&k-A>0&&this._put(E,A,k)}},F.prototype.end=function(E,A){if(void 0===A&&(A=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var k=!1,I=this._active.length-1,T=!1;if(this._stack.paused&&(I=this._stack.loopPosition-1,k=A,T=this._stack.fallThrough,this._stack.paused=!1),!T&&!1===k){for(;I>=0&&!0!==(k=this._active[I].end(E));I--)if(k instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=I,this._stack.fallThrough=!1,k;I--}for(;I>=0;I--)if((k=this._active[I].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=I,this._stack.fallThrough=!0,k}else this._handlerFb(this._id,"END",E);this._active=D,this._id=-1,this._state=0}},F}();M.OscParser=y;var K=function(){function F(E){this._handler=E,this._data="",this._hitLimit=!1}return F.prototype.start=function(){this._data="",this._hitLimit=!1},F.prototype.put=function(E,A,k){this._hitLimit||(this._data+=(0,P.utf32ToString)(E,A,k),this._data.length>L.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},F.prototype.end=function(E){var A=this,k=!1;if(this._hitLimit)k=!1;else if(E&&(k=this._handler(this._data))instanceof Promise)return k.then(function(I){return A._data="",A._hitLimit=!1,I});return this._data="",this._hitLimit=!1,k},F}();M.OscHandler=K},8742:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.Params=void 0;var U=2147483647,L=function(){function P(D,y){if(void 0===D&&(D=32),void 0===y&&(y=32),this.maxLength=D,this.maxSubParamsLength=y,y>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(D),this.length=0,this._subParams=new Int32Array(y),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(D),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(D){var y=new P;if(!D.length)return y;for(var K=Array.isArray(D[0])?1:0;K<D.length;++K){var F=D[K];if(Array.isArray(F))for(var E=0;E<F.length;++E)y.addSubParam(F[E]);else y.addParam(F)}return y},P.prototype.clone=function(){var D=new P(this.maxLength,this.maxSubParamsLength);return D.params.set(this.params),D.length=this.length,D._subParams.set(this._subParams),D._subParamsLength=this._subParamsLength,D._subParamsIdx.set(this._subParamsIdx),D._rejectDigits=this._rejectDigits,D._rejectSubDigits=this._rejectSubDigits,D._digitIsSub=this._digitIsSub,D},P.prototype.toArray=function(){for(var D=[],y=0;y<this.length;++y){D.push(this.params[y]);var K=this._subParamsIdx[y]>>8,F=255&this._subParamsIdx[y];F-K>0&&D.push(Array.prototype.slice.call(this._subParams,K,F))}return D},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(D){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=D>U?U:D}},P.prototype.addSubParam=function(D){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(D<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=D>U?U:D,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(D){return(255&this._subParamsIdx[D])-(this._subParamsIdx[D]>>8)>0},P.prototype.getSubParams=function(D){var y=this._subParamsIdx[D]>>8,K=255&this._subParamsIdx[D];return K-y>0?this._subParams.subarray(y,K):null},P.prototype.getSubParamsAll=function(){for(var D={},y=0;y<this.length;++y){var K=this._subParamsIdx[y]>>8,F=255&this._subParamsIdx[y];F-K>0&&(D[y]=this._subParams.slice(K,F))}return D},P.prototype.addDigit=function(D){var y;if(!(this._rejectDigits||!(y=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var K=this._digitIsSub?this._subParams:this.params,F=K[y-1];K[y-1]=~F?Math.min(10*F+D,U):D}},P}();M.Params=L},5741:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.AddonManager=void 0;var U=function(){function L(){this._addons=[]}return L.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},L.prototype.loadAddon=function(P,D){var y=this,K={instance:D,dispose:D.dispose,isDisposed:!1};this._addons.push(K),D.dispose=function(){return y._wrappedAddonDispose(K)},D.activate(P)},L.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var D=-1,y=0;y<this._addons.length;y++)if(this._addons[y]===P){D=y;break}if(-1===D)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(D,1)}},L}();M.AddonManager=U},8771:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BufferApiView=void 0;var L=U(3785),P=U(511),D=function(){function y(K,F){this._buffer=K,this.type=F}return y.prototype.init=function(K){return this._buffer=K,this},Object.defineProperty(y.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),y.prototype.getLine=function(K){var F=this._buffer.lines.get(K);if(F)return new L.BufferLineApiView(F)},y.prototype.getNullCell=function(){return new P.CellData},y}();M.BufferApiView=D},3785:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BufferLineApiView=void 0;var L=U(511),P=function(){function D(y){this._line=y}return Object.defineProperty(D.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),D.prototype.getCell=function(y,K){if(!(y<0||y>=this._line.length))return K?(this._line.loadCell(y,K),K):this._line.loadCell(y,new L.CellData)},D.prototype.translateToString=function(y,K,F){return this._line.translateToString(y,K,F)},D}();M.BufferLineApiView=P},8285:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.BufferNamespaceApi=void 0;var L=U(8771),P=U(8460),D=function(){function y(K){var F=this;this._core=K,this._onBufferChange=new P.EventEmitter,this._normal=new L.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new L.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return F._onBufferChange.fire(F.active)})}return Object.defineProperty(y.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.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(y.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),y}();M.BufferNamespaceApi=D},7975:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.ParserApi=void 0;var U=function(){function L(P){this._core=P}return L.prototype.registerCsiHandler=function(P,D){return this._core.registerCsiHandler(P,function(y){return D(y.toArray())})},L.prototype.addCsiHandler=function(P,D){return this.registerCsiHandler(P,D)},L.prototype.registerDcsHandler=function(P,D){return this._core.registerDcsHandler(P,function(y,K){return D(y,K.toArray())})},L.prototype.addDcsHandler=function(P,D){return this.registerDcsHandler(P,D)},L.prototype.registerEscHandler=function(P,D){return this._core.registerEscHandler(P,D)},L.prototype.addEscHandler=function(P,D){return this.registerEscHandler(P,D)},L.prototype.registerOscHandler=function(P,D){return this._core.registerOscHandler(P,D)},L.prototype.addOscHandler=function(P,D){return this.registerOscHandler(P,D)},L}();M.ParserApi=U},7090:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.UnicodeApi=void 0;var U=function(){function L(P){this._core=P}return L.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(L.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(D){this._core.unicodeService.activeVersion=D},enumerable:!1,configurable:!0}),L}();M.UnicodeApi=U},744:function(Y,M,U){var L,P=this&&this.__extends||(L=function(T,w){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(S[R]=N[R])})(T,w)},function(I,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function w(){this.constructor=I}L(I,T),I.prototype=null===T?Object.create(T):(w.prototype=T.prototype,new w)}),D=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},y=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.BufferService=M.MINIMUM_ROWS=M.MINIMUM_COLS=void 0;var K=U(2585),F=U(5295),E=U(8460),A=U(844);M.MINIMUM_COLS=2,M.MINIMUM_ROWS=1;var k=function(I){function T(w){var S=I.call(this)||this;return S._optionsService=w,S.isUserScrolling=!1,S._onResize=new E.EventEmitter,S._onScroll=new E.EventEmitter,S.cols=Math.max(w.rawOptions.cols||0,M.MINIMUM_COLS),S.rows=Math.max(w.rawOptions.rows||0,M.MINIMUM_ROWS),S.buffers=new F.BufferSet(w,S),S}return P(T,I),Object.defineProperty(T.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){I.prototype.dispose.call(this),this.buffers.dispose()},T.prototype.resize=function(w,S){this.cols=w,this.rows=S,this.buffers.resize(w,S),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:w,rows:S})},T.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},T.prototype.scroll=function(w,S){void 0===S&&(S=!1);var N,R=this.buffer;(N=this._cachedBlankLine)&&N.length===this.cols&&N.getFg(0)===w.fg&&N.getBg(0)===w.bg||(N=R.getBlankLine(w,S),this._cachedBlankLine=N),N.isWrapped=S;var W=R.ybase+R.scrollTop,$=R.ybase+R.scrollBottom;if(0===R.scrollTop){var ce=R.lines.isFull;$===R.lines.length-1?ce?R.lines.recycle().copyFrom(N):R.lines.push(N.clone()):R.lines.splice($+1,0,N.clone()),ce?this.isUserScrolling&&(R.ydisp=Math.max(R.ydisp-1,0)):(R.ybase++,this.isUserScrolling||R.ydisp++)}else{var se=$-W+1;R.lines.shiftElements(W+1,se-1,-1),R.lines.set($,N.clone())}this.isUserScrolling||(R.ydisp=R.ybase),this._onScroll.fire(R.ydisp)},T.prototype.scrollLines=function(w,S,N){var R=this.buffer;if(w<0){if(0===R.ydisp)return;this.isUserScrolling=!0}else w+R.ydisp>=R.ybase&&(this.isUserScrolling=!1);var W=R.ydisp;R.ydisp=Math.max(Math.min(R.ydisp+w,R.ybase),0),W!==R.ydisp&&(S||this._onScroll.fire(R.ydisp))},T.prototype.scrollPages=function(w){this.scrollLines(w*(this.rows-1))},T.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},T.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},T.prototype.scrollToLine=function(w){var S=w-this.buffer.ydisp;0!==S&&this.scrollLines(S)},D([y(0,K.IOptionsService)],T)}(A.Disposable);M.BufferService=k},7994:function(Y,M){Object.defineProperty(M,"__esModule",{value:!0}),M.CharsetService=void 0;var U=function(){function L(){this.glevel=0,this._charsets=[]}return L.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},L.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},L.prototype.setgCharset=function(P,D){this._charsets[P]=D,this.glevel===P&&(this.charset=D)},L}();M.CharsetService=U},1753:function(Y,M,U){var L=this&&this.__decorate||function(I,T,w,S){var N,R=arguments.length,W=R<3?T:null===S?S=Object.getOwnPropertyDescriptor(T,w):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)W=Reflect.decorate(I,T,w,S);else for(var $=I.length-1;$>=0;$--)(N=I[$])&&(W=(R<3?N(W):R>3?N(T,w,W):N(T,w))||W);return R>3&&W&&Object.defineProperty(T,w,W),W},P=this&&this.__param||function(I,T){return function(w,S){T(w,S,I)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CoreMouseService=void 0;var D=U(2585),y=U(8460),K={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(T){return 4!==T.button&&1===T.action&&(T.ctrl=!1,T.alt=!1,T.shift=!1,!0)}},VT200:{events:19,restrict:function(T){return 32!==T.action}},DRAG:{events:23,restrict:function(T){return 32!==T.action||3!==T.button}},ANY:{events:31,restrict:function(T){return!0}}};function F(I,T){var w=(I.ctrl?16:0)|(I.shift?4:0)|(I.alt?8:0);return 4===I.button?(w|=64,w|=I.action):(w|=3&I.button,4&I.button&&(w|=64),8&I.button&&(w|=128),32===I.action?w|=32:0!==I.action||T||(w|=3)),w}var E=String.fromCharCode,A={DEFAULT:function(T){var w=[F(T,!1)+32,T.col+32,T.row+32];return w[0]>255||w[1]>255||w[2]>255?"":"\x1b[M"+E(w[0])+E(w[1])+E(w[2])},SGR:function(T){var w=0===T.action&&4!==T.button?"m":"M";return"\x1b[<"+F(T,!0)+";"+T.col+";"+T.row+w}},k=function(){function I(T,w){this._bufferService=T,this._coreService=w,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new y.EventEmitter,this._lastEvent=null;for(var S=0,N=Object.keys(K);S<N.length;S++){var R=N[S];this.addProtocol(R,K[R])}for(var W=0,$=Object.keys(A);W<$.length;W++){var ce=$[W];this.addEncoding(ce,A[ce])}this.reset()}return I.prototype.addProtocol=function(T,w){this._protocols[T]=w},I.prototype.addEncoding=function(T,w){this._encodings[T]=w},Object.defineProperty(I.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(w){if(!this._protocols[w])throw new Error('unknown protocol "'+w+'"');this._activeProtocol=w,this._onProtocolChange.fire(this._protocols[w].events)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(w){if(!this._encodings[w])throw new Error('unknown encoding "'+w+'"');this._activeEncoding=w},enumerable:!1,configurable:!0}),I.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(I.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),I.prototype.triggerMouseEvent=function(T){if(T.col<0||T.col>=this._bufferService.cols||T.row<0||T.row>=this._bufferService.rows||4===T.button&&32===T.action||3===T.button&&32!==T.action||4!==T.button&&(2===T.action||3===T.action)||(T.col++,T.row++,32===T.action&&this._lastEvent&&this._compareEvents(this._lastEvent,T))||!this._protocols[this._activeProtocol].restrict(T))return!1;var w=this._encodings[this._activeEncoding](T);return w&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(w):this._coreService.triggerDataEvent(w,!0)),this._lastEvent=T,!0},I.prototype.explainEvents=function(T){return{down:!!(1&T),up:!!(2&T),drag:!!(4&T),move:!!(8&T),wheel:!!(16&T)}},I.prototype._compareEvents=function(T,w){return T.col===w.col&&T.row===w.row&&T.button===w.button&&T.action===w.action&&T.ctrl===w.ctrl&&T.alt===w.alt&&T.shift===w.shift},L([P(0,D.IBufferService),P(1,D.ICoreService)],I)}();M.CoreMouseService=k},6975:function(Y,M,U){var L,P=this&&this.__extends||(L=function(S,N){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var $ in W)Object.prototype.hasOwnProperty.call(W,$)&&(R[$]=W[$])})(S,N)},function(w,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function N(){this.constructor=w}L(w,S),w.prototype=null===S?Object.create(S):(N.prototype=S.prototype,new N)}),D=this&&this.__decorate||function(w,S,N,R){var W,$=arguments.length,ce=$<3?S:null===R?R=Object.getOwnPropertyDescriptor(S,N):R;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(w,S,N,R);else for(var se=w.length-1;se>=0;se--)(W=w[se])&&(ce=($<3?W(ce):$>3?W(S,N,ce):W(S,N))||ce);return $>3&&ce&&Object.defineProperty(S,N,ce),ce},y=this&&this.__param||function(w,S){return function(N,R){S(N,R,w)}};Object.defineProperty(M,"__esModule",{value:!0}),M.CoreService=void 0;var K=U(2585),F=U(8460),E=U(1439),A=U(844),k=Object.freeze({insertMode:!1}),I=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),T=function(w){function S(N,R,W,$){var ce=w.call(this)||this;return ce._bufferService=R,ce._logService=W,ce._optionsService=$,ce.isCursorInitialized=!1,ce.isCursorHidden=!1,ce._onData=ce.register(new F.EventEmitter),ce._onUserInput=ce.register(new F.EventEmitter),ce._onBinary=ce.register(new F.EventEmitter),ce._scrollToBottom=N,ce.register({dispose:function(){return ce._scrollToBottom=void 0}}),ce.modes=(0,E.clone)(k),ce.decPrivateModes=(0,E.clone)(I),ce}return P(S,w),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,E.clone)(k),this.decPrivateModes=(0,E.clone)(I)},S.prototype.triggerDataEvent=function(N,R){if(void 0===R&&(R=!1),!this._optionsService.rawOptions.disableStdin){var W=this._bufferService.buffer;W.ybase!==W.ydisp&&this._scrollToBottom(),R&&this._onUserInput.fire(),this._logService.debug('sending data "'+N+'"',function(){return N.split("").map(function($){return $.charCodeAt(0)})}),this._onData.fire(N)}},S.prototype.triggerBinaryEvent=function(N){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+N+'"',function(){return N.split("").map(function(R){return R.charCodeAt(0)})}),this._onBinary.fire(N))},D([y(1,K.IBufferService),y(2,K.ILogService),y(3,K.IOptionsService)],S)}(A.Disposable);M.CoreService=T},3730:function(Y,M,U){var L=this&&this.__decorate||function(K,F,E,A){var k,I=arguments.length,T=I<3?F:null===A?A=Object.getOwnPropertyDescriptor(F,E):A;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(K,F,E,A);else for(var w=K.length-1;w>=0;w--)(k=K[w])&&(T=(I<3?k(T):I>3?k(F,E,T):k(F,E))||T);return I>3&&T&&Object.defineProperty(F,E,T),T},P=this&&this.__param||function(K,F){return function(E,A){F(E,A,K)}};Object.defineProperty(M,"__esModule",{value:!0}),M.DirtyRowService=void 0;var D=U(2585),y=function(){function K(F){this._bufferService=F,this.clearRange()}return Object.defineProperty(K.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),K.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},K.prototype.markDirty=function(F){F<this._start?this._start=F:F>this._end&&(this._end=F)},K.prototype.markRangeDirty=function(F,E){if(F>E){var A=F;F=E,E=A}F<this._start&&(this._start=F),E>this._end&&(this._end=E)},K.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},L([P(0,D.IBufferService)],K)}();M.DirtyRowService=y},4348:function(Y,M,U){var L=this&&this.__spreadArray||function(F,E,A){if(A||2===arguments.length)for(var k,I=0,T=E.length;I<T;I++)!k&&I in E||(k||(k=Array.prototype.slice.call(E,0,I)),k[I]=E[I]);return F.concat(k||Array.prototype.slice.call(E))};Object.defineProperty(M,"__esModule",{value:!0}),M.InstantiationService=M.ServiceCollection=void 0;var P=U(2585),D=U(8343),y=function(){function F(){for(var E=[],A=0;A<arguments.length;A++)E[A]=arguments[A];this._entries=new Map;for(var k=0,I=E;k<I.length;k++){var T=I[k],w=T[0],S=T[1];this.set(w,S)}}return F.prototype.set=function(E,A){var k=this._entries.get(E);return this._entries.set(E,A),k},F.prototype.forEach=function(E){this._entries.forEach(function(A,k){return E(k,A)})},F.prototype.has=function(E){return this._entries.has(E)},F.prototype.get=function(E){return this._entries.get(E)},F}();M.ServiceCollection=y;var K=function(){function F(){this._services=new y,this._services.set(P.IInstantiationService,this)}return F.prototype.setService=function(E,A){this._services.set(E,A)},F.prototype.getService=function(E){return this._services.get(E)},F.prototype.createInstance=function(E){for(var A=[],k=1;k<arguments.length;k++)A[k-1]=arguments[k];for(var I=(0,D.getServiceDependencies)(E).sort(function($,ce){return $.index-ce.index}),T=[],w=0,S=I;w<S.length;w++){var N=S[w],R=this._services.get(N.id);if(!R)throw new Error("[createInstance] "+E.name+" depends on UNKNOWN service "+N.id+".");T.push(R)}var W=I.length>0?I[0].index:A.length;if(A.length!==W)throw new Error("[createInstance] First service dependency of "+E.name+" at position "+(W+1)+" conflicts with "+A.length+" static arguments");return new(E.bind.apply(E,L([void 0],L(L([],A,!0),T,!0),!1)))},F}();M.InstantiationService=K},7866:function(Y,M,U){var L=this&&this.__decorate||function(E,A,k,I){var T,w=arguments.length,S=w<3?A:null===I?I=Object.getOwnPropertyDescriptor(A,k):I;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(E,A,k,I);else for(var N=E.length-1;N>=0;N--)(T=E[N])&&(S=(w<3?T(S):w>3?T(A,k,S):T(A,k))||S);return w>3&&S&&Object.defineProperty(A,k,S),S},P=this&&this.__param||function(E,A){return function(k,I){A(k,I,E)}},D=this&&this.__spreadArray||function(E,A,k){if(k||2===arguments.length)for(var I,T=0,w=A.length;T<w;T++)!I&&T in A||(I||(I=Array.prototype.slice.call(A,0,T)),I[T]=A[T]);return E.concat(I||Array.prototype.slice.call(A))};Object.defineProperty(M,"__esModule",{value:!0}),M.LogService=void 0;var y=U(2585),K={debug:y.LogLevelEnum.DEBUG,info:y.LogLevelEnum.INFO,warn:y.LogLevelEnum.WARN,error:y.LogLevelEnum.ERROR,off:y.LogLevelEnum.OFF},F=function(){function E(A){var k=this;this._optionsService=A,this.logLevel=y.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(I){"logLevel"===I&&k._updateLogLevel()})}return E.prototype._updateLogLevel=function(){this.logLevel=K[this._optionsService.rawOptions.logLevel]},E.prototype._evalLazyOptionalParams=function(A){for(var k=0;k<A.length;k++)"function"==typeof A[k]&&(A[k]=A[k]())},E.prototype._log=function(A,k,I){this._evalLazyOptionalParams(I),A.call.apply(A,D([console,"xterm.js: "+k],I,!1))},E.prototype.debug=function(A){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.DEBUG&&this._log(console.log,A,k)},E.prototype.info=function(A){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.INFO&&this._log(console.info,A,k)},E.prototype.warn=function(A){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.WARN&&this._log(console.warn,A,k)},E.prototype.error=function(A){for(var k=[],I=1;I<arguments.length;I++)k[I-1]=arguments[I];this.logLevel<=y.LogLevelEnum.ERROR&&this._log(console.error,A,k)},L([P(0,y.IOptionsService)],E)}();M.LogService=F},7302:function(Y,M,U){var L=this&&this.__assign||function(){return L=Object.assign||function(F){for(var E,A=1,k=arguments.length;A<k;A++)for(var I in E=arguments[A])Object.prototype.hasOwnProperty.call(E,I)&&(F[I]=E[I]);return F},L.apply(this,arguments)};Object.defineProperty(M,"__esModule",{value:!0}),M.OptionsService=M.DEFAULT_OPTIONS=M.DEFAULT_BELL_SOUND=void 0;var P=U(8460),D=U(6114);M.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",M.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:M.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:D.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var y=["normal","bold","100","200","300","400","500","600","700","800","900"],K=function(){function F(E){this._onOptionChange=new P.EventEmitter;var A=L({},M.DEFAULT_OPTIONS);for(var k in E)if(k in A)try{var I=E[k];A[k]=this._sanitizeAndValidateOption(k,I)}catch(T){console.error(T)}this.rawOptions=A,this.options=L({},A),this._setupOptions()}return Object.defineProperty(F.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),F.prototype._setupOptions=function(){var E=this,A=function(S){if(!(S in M.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');return E.rawOptions[S]},k=function(S,N){if(!(S in M.DEFAULT_OPTIONS))throw new Error('No option with key "'+S+'"');N=E._sanitizeAndValidateOption(S,N),E.rawOptions[S]!==N&&(E.rawOptions[S]=N,E._onOptionChange.fire(S))};for(var I in this.rawOptions){var T={get:A.bind(this,I),set:k.bind(this,I)};Object.defineProperty(this.options,I,T)}},F.prototype.setOption=function(E,A){this.options[E]=A},F.prototype._sanitizeAndValidateOption=function(E,A){switch(E){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":A||(A=M.DEFAULT_OPTIONS[E]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof A&&1<=A&&A<=1e3)break;A=y.includes(A)?A:M.DEFAULT_OPTIONS[E];break;case"cursorWidth":A=Math.floor(A);case"lineHeight":case"tabStopWidth":if(A<1)throw new Error(E+" cannot be less than 1, value: "+A);break;case"minimumContrastRatio":A=Math.max(1,Math.min(21,Math.round(10*A)/10));break;case"scrollback":if((A=Math.min(A,4294967295))<0)throw new Error(E+" cannot be less than 0, value: "+A);break;case"fastScrollSensitivity":case"scrollSensitivity":if(A<=0)throw new Error(E+" cannot be less than or equal to 0, value: "+A);case"rows":case"cols":if(!A&&0!==A)throw new Error(E+" must be numeric, value: "+A)}return A},F.prototype.getOption=function(E){return this.options[E]},F}();M.OptionsService=K},8343:function(Y,M){function U(L,P,D){P.di$target===P?P.di$dependencies.push({id:L,index:D}):(P.di$dependencies=[{id:L,index:D}],P.di$target=P)}Object.defineProperty(M,"__esModule",{value:!0}),M.createDecorator=M.getServiceDependencies=M.serviceRegistry=void 0,M.serviceRegistry=new Map,M.getServiceDependencies=function(L){return L.di$dependencies||[]},M.createDecorator=function(L){if(M.serviceRegistry.has(L))return M.serviceRegistry.get(L);var P=function D(y,K,F){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(D,y,F)};return P.toString=function(){return L},M.serviceRegistry.set(L,P),P}},2585:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.IUnicodeService=M.IOptionsService=M.ILogService=M.LogLevelEnum=M.IInstantiationService=M.IDirtyRowService=M.ICharsetService=M.ICoreService=M.ICoreMouseService=M.IBufferService=void 0;var L,P=U(8343);M.IBufferService=(0,P.createDecorator)("BufferService"),M.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),M.ICoreService=(0,P.createDecorator)("CoreService"),M.ICharsetService=(0,P.createDecorator)("CharsetService"),M.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),M.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(L=M.LogLevelEnum||(M.LogLevelEnum={}))[L.DEBUG=0]="DEBUG",L[L.INFO=1]="INFO",L[L.WARN=2]="WARN",L[L.ERROR=3]="ERROR",L[L.OFF=4]="OFF",M.ILogService=(0,P.createDecorator)("LogService"),M.IOptionsService=(0,P.createDecorator)("OptionsService"),M.IUnicodeService=(0,P.createDecorator)("UnicodeService")},1480:function(Y,M,U){Object.defineProperty(M,"__esModule",{value:!0}),M.UnicodeService=void 0;var L=U(8460),P=U(225),D=function(){function y(){this._providers=Object.create(null),this._active="",this._onChange=new L.EventEmitter;var K=new P.UnicodeV6;this.register(K),this._active=K.version,this._activeProvider=K}return Object.defineProperty(y.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"activeVersion",{get:function(){return this._active},set:function(F){if(!this._providers[F])throw new Error('unknown Unicode version "'+F+'"');this._active=F,this._activeProvider=this._providers[F],this._onChange.fire(F)},enumerable:!1,configurable:!0}),y.prototype.register=function(K){this._providers[K.version]=K},y.prototype.wcwidth=function(K){return this._activeProvider.wcwidth(K)},y.prototype.getStringCellWidth=function(K){for(var F=0,E=K.length,A=0;A<E;++A){var k=K.charCodeAt(A);if(55296<=k&&k<=56319){if(++A>=E)return F+this.wcwidth(k);var I=K.charCodeAt(A);56320<=I&&I<=57343?k=1024*(k-55296)+I-56320+65536:F+=this.wcwidth(I)}F+=this.wcwidth(k)}return F},y}();M.UnicodeService=D}},m={};return function z(Y){var M=m[Y];if(void 0!==M)return M.exports;var U=m[Y]={exports:{}};return J[Y].call(U.exports,U,U.exports,z),U.exports}(4389)}()},1777:function(qe,J,m){"use strict";m.d(J,{F4:function(){return A},IO:function(){return S},LC:function(){return U},SB:function(){return E},X$:function(){return P},ZE:function(){return $},ZN:function(){return W},_j:function(){return M},eR:function(){return k},jt:function(){return D},k1:function(){return ce},l3:function(){return L},oB:function(){return F},pV:function(){return T},ru:function(){return y},vP:function(){return K}});var z=m(3144),Y=m(5671),M=(0,z.Z)(function se(){(0,Y.Z)(this,se)}),U=(0,z.Z)(function se(){(0,Y.Z)(this,se)}),L="*";function P(se,ee){return{type:7,name:se,definitions:ee,options:{}}}function D(se){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:ee,timings:se}}function y(se){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:se,options:ee}}function K(se){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:se,options:ee}}function F(se){return{type:6,styles:se,offset:null}}function E(se,ee,oe){return{type:0,name:se,styles:ee,options:oe}}function A(se){return{type:5,steps:se}}function k(se,ee){var oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:se,animation:ee,options:oe}}function T(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:se}}function S(se,ee){var oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:se,animation:ee,options:oe}}function R(se){Promise.resolve(null).then(se)}var W=function(){function se(){var ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,Y.Z)(this,se),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ee+oe}return(0,z.Z)(se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(oe){return oe()}),this._onDoneFns=[])}},{key:"onStart",value:function(oe){this._onStartFns.push(oe)}},{key:"onDone",value:function(oe){this._onDoneFns.push(oe)}},{key:"onDestroy",value:function(oe){this._onDestroyFns.push(oe)}},{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 oe=this;R(function(){return oe._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(oe){return oe()}),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(oe){return oe()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(oe){this._position=this.totalTime?oe*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(oe){var ge="start"==oe?this._onStartFns:this._onDoneFns;ge.forEach(function(Oe){return Oe()}),ge.length=0}}]),se}(),$=function(){function se(ee){var oe=this;(0,Y.Z)(this,se),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ee;var ge=0,Oe=0,ot=0,xe=this.players.length;0==xe?R(function(){return oe._onFinish()}):this.players.forEach(function(_e){_e.onDone(function(){++ge==xe&&oe._onFinish()}),_e.onDestroy(function(){++Oe==xe&&oe._onDestroy()}),_e.onStart(function(){++ot==xe&&oe._onStart()})}),this.totalTime=this.players.reduce(function(_e,ke){return Math.max(_e,ke.totalTime)},0)}return(0,z.Z)(se,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(oe){return oe()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(oe){return oe.init()})}},{key:"onStart",value:function(oe){this._onStartFns.push(oe)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(oe){return oe()}),this._onStartFns=[])}},{key:"onDone",value:function(oe){this._onDoneFns.push(oe)}},{key:"onDestroy",value:function(oe){this._onDestroyFns.push(oe)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(oe){return oe.play()})}},{key:"pause",value:function(){this.players.forEach(function(oe){return oe.pause()})}},{key:"restart",value:function(){this.players.forEach(function(oe){return oe.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(oe){return oe.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(oe){return oe.destroy()}),this._onDestroyFns.forEach(function(oe){return oe()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(oe){return oe.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(oe){var ge=oe*this.totalTime;this.players.forEach(function(Oe){var ot=Oe.totalTime?Math.min(1,ge/Oe.totalTime):1;Oe.setPosition(ot)})}},{key:"getPosition",value:function(){var oe=this.players.reduce(function(ge,Oe){return null===ge||Oe.totalTime>ge.totalTime?Oe:ge},null);return null!=oe?oe.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(oe){oe.beforeDestroy&&oe.beforeDestroy()})}},{key:"triggerCallback",value:function(oe){var ge="start"==oe?this._onStartFns:this._onDoneFns;ge.forEach(function(Oe){return Oe()}),ge.length=0}}]),se}(),ce="!"},5664:function(qe,J,m){"use strict";m.d(J,{$s:function(){return Nt},Em:function(){return jt},Kd:function(){return nn},X6:function(){return Bt},ic:function(){return vt},kH:function(){return Ln},qV:function(){return mt},qm:function(){return Yn},rt:function(){return Kt},s1:function(){return Xe},tE:function(){return zn},yG:function(){return dt}});var z=m(7685),Y=m(7326),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(9808),F=m(5e3),E=m(925),A=m(8929),k=m(4096),I=m(591),T=m(1086),w=m(1159),S=m(2994),N=m(13),R=m(9664),W=m(4850),$=m(2986),ce=m(1307),se=m(5778),ee=m(7625),oe=m(3191),ge=m(7144);function _e(tt,Ue){return(tt.getAttribute(Ue)||"").match(/\S+/g)||[]}var Be="cdk-describedby-message",ct="cdk-describedby-host",Mt=0,Nt=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._platform=Ee,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(Mt++),this._document=Ue}return(0,y.Z)(tt,[{key:"describe",value:function(Ee,He,bt){if(this._canBeDescribed(Ee,He)){var Yt=Xt(He,bt);"string"!=typeof He?(en(He),this._messageRegistry.set(Yt,{messageElement:He,referenceCount:0})):this._messageRegistry.has(Yt)||this._createMessageElement(He,bt),this._isElementDescribedByMessage(Ee,Yt)||this._addMessageReference(Ee,Yt)}}},{key:"removeDescription",value:function(Ee,He,bt){var Yt;if(He&&this._isElementNode(Ee)){var En=Xt(He,bt);if(this._isElementDescribedByMessage(Ee,En)&&this._removeMessageReference(Ee,En),"string"==typeof He){var rr=this._messageRegistry.get(En);rr&&0===rr.referenceCount&&this._deleteMessageElement(En)}0===(null===(Yt=this._messagesContainer)||void 0===Yt?void 0:Yt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Ee,He=this._document.querySelectorAll("[".concat(ct,'="').concat(this._id,'"]')),bt=0;bt<He.length;bt++)this._removeCdkDescribedByReferenceIds(He[bt]),He[bt].removeAttribute(ct);null===(Ee=this._messagesContainer)||void 0===Ee||Ee.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Ee,He){var bt=this._document.createElement("div");en(bt),bt.textContent=Ee,He&&bt.setAttribute("role",He),this._createMessagesContainer(),this._messagesContainer.appendChild(bt),this._messageRegistry.set(Xt(Ee,He),{messageElement:bt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Ee){var He,bt;null===(bt=null===(He=this._messageRegistry.get(Ee))||void 0===He?void 0:He.messageElement)||void 0===bt||bt.remove(),this._messageRegistry.delete(Ee)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Ee="cdk-describedby-message-container",He=this._document.querySelectorAll(".".concat(Ee,'[platform="server"]')),bt=0;bt<He.length;bt++)He[bt].remove();var Yt=this._document.createElement("div");Yt.style.visibility="hidden",Yt.classList.add(Ee),Yt.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Yt.setAttribute("platform","server"),this._document.body.appendChild(Yt),this._messagesContainer=Yt}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Ee){var He=_e(Ee,"aria-describedby").filter(function(bt){return 0!=bt.indexOf(Be)});Ee.setAttribute("aria-describedby",He.join(" "))}},{key:"_addMessageReference",value:function(Ee,He){var bt=this._messageRegistry.get(He);(function ot(tt,Ue,Ee){var He=_e(tt,Ue);He.some(function(bt){return bt.trim()==Ee.trim()})||(He.push(Ee.trim()),tt.setAttribute(Ue,He.join(" ")))})(Ee,"aria-describedby",bt.messageElement.id),Ee.setAttribute(ct,this._id),bt.referenceCount++}},{key:"_removeMessageReference",value:function(Ee,He){var bt=this._messageRegistry.get(He);bt.referenceCount--,function xe(tt,Ue,Ee){var bt=_e(tt,Ue).filter(function(Yt){return Yt!=Ee.trim()});bt.length?tt.setAttribute(Ue,bt.join(" ")):tt.removeAttribute(Ue)}(Ee,"aria-describedby",bt.messageElement.id),Ee.removeAttribute(ct)}},{key:"_isElementDescribedByMessage",value:function(Ee,He){var bt=_e(Ee,"aria-describedby"),Yt=this._messageRegistry.get(He),En=Yt&&Yt.messageElement.id;return!!En&&-1!=bt.indexOf(En)}},{key:"_canBeDescribed",value:function(Ee,He){if(!this._isElementNode(Ee))return!1;if(He&&"object"==typeof He)return!0;var bt=null==He?"":"".concat(He).trim(),Yt=Ee.getAttribute("aria-label");return!!bt&&(!Yt||Yt.trim()!==bt)}},{key:"_isElementNode",value:function(Ee){return Ee.nodeType===this._document.ELEMENT_NODE}}]),tt}();function Xt(tt,Ue){return"string"==typeof tt?"".concat(Ue||"","/").concat(tt):tt}function en(tt){tt.id||(tt.id="".concat(Be,"-").concat(Mt++))}Nt.\u0275fac=function(Ue){return new(Ue||Nt)(F.LFG(K.K0),F.LFG(E.t4))},Nt.\u0275prov=F.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"});var qt=function(){function tt(Ue){var Ee=this;(0,D.Z)(this,tt),this._items=Ue,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A.xQ,this._typeaheadSubscription=k.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(He){return He.disabled},this._pressedLetters=[],this.tabOut=new A.xQ,this.change=new A.xQ,Ue instanceof F.n_E&&Ue.changes.subscribe(function(He){if(Ee._activeItem){var Yt=He.toArray().indexOf(Ee._activeItem);Yt>-1&&Yt!==Ee._activeItemIndex&&(Ee._activeItemIndex=Yt)}})}return(0,y.Z)(tt,[{key:"skipPredicate",value:function(Ee){return this._skipPredicateFn=Ee,this}},{key:"withWrap",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Ee,this}},{key:"withVerticalOrientation",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Ee,this}},{key:"withHorizontalOrientation",value:function(Ee){return this._horizontal=Ee,this}},{key:"withAllowedModifierKeys",value:function(Ee){return this._allowedModifierKeys=Ee,this}},{key:"withTypeAhead",value:function(){var Ee=this,He=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(function(bt){return Ee._pressedLetters.push(bt)}),(0,N.b)(He),(0,R.h)(function(){return Ee._pressedLetters.length>0}),(0,W.U)(function(){return Ee._pressedLetters.join("")})).subscribe(function(bt){for(var Yt=Ee._getItemsArray(),En=1;En<Yt.length+1;En++){var rr=(Ee._activeItemIndex+En)%Yt.length,pn=Yt[rr];if(!Ee._skipPredicateFn(pn)&&0===pn.getLabel().toUpperCase().trim().indexOf(bt)){Ee.setActiveItem(rr);break}}Ee._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Ee=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Ee,this}},{key:"setActiveItem",value:function(Ee){var He=this._activeItem;this.updateActiveItem(Ee),this._activeItem!==He&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Ee){var He=this,bt=Ee.keyCode,En=["altKey","ctrlKey","metaKey","shiftKey"].every(function(rr){return!Ee[rr]||He._allowedModifierKeys.indexOf(rr)>-1});switch(bt){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&En){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&En){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&En){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&En){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&En){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&En){this.setLastItemActive();break}return;default:return void((En||(0,w.Vb)(Ee,"shiftKey"))&&(Ee.key&&1===Ee.key.length?this._letterKeyStream.next(Ee.key.toLocaleUpperCase()):(bt>=w.A&&bt<=w.Z||bt>=w.xE&&bt<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(bt))))}this._pressedLetters=[],Ee.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(Ee){var He=this._getItemsArray(),bt="number"==typeof Ee?Ee:He.indexOf(Ee),Yt=He[bt];this._activeItem=null==Yt?null:Yt,this._activeItemIndex=bt}},{key:"_setActiveItemByDelta",value:function(Ee){this._wrap?this._setActiveInWrapMode(Ee):this._setActiveInDefaultMode(Ee)}},{key:"_setActiveInWrapMode",value:function(Ee){for(var He=this._getItemsArray(),bt=1;bt<=He.length;bt++){var Yt=(this._activeItemIndex+Ee*bt+He.length)%He.length,En=He[Yt];if(!this._skipPredicateFn(En))return void this.setActiveItem(Yt)}}},{key:"_setActiveInDefaultMode",value:function(Ee){this._setActiveItemByIndex(this._activeItemIndex+Ee,Ee)}},{key:"_setActiveItemByIndex",value:function(Ee,He){var bt=this._getItemsArray();if(bt[Ee]){for(;this._skipPredicateFn(bt[Ee]);)if(!bt[Ee+=He])return;this.setActiveItem(Ee)}}},{key:"_getItemsArray",value:function(){return this._items instanceof F.n_E?this._items.toArray():this._items}}]),tt}(),Xe=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(){return(0,D.Z)(this,Ee),Ue.apply(this,arguments)}return(0,y.Z)(Ee,[{key:"setActiveItem",value:function(bt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,M.Z)((0,U.Z)(Ee.prototype),"setActiveItem",this).call(this,bt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Ee}(qt),jt=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(){var He;return(0,D.Z)(this,Ee),(He=Ue.apply(this,arguments))._origin="program",He}return(0,y.Z)(Ee,[{key:"setFocusOrigin",value:function(bt){return this._origin=bt,this}},{key:"setActiveItem",value:function(bt){(0,M.Z)((0,U.Z)(Ee.prototype),"setActiveItem",this).call(this,bt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Ee}(qt),vt=function(){function tt(Ue){(0,D.Z)(this,tt),this._platform=Ue}return(0,y.Z)(tt,[{key:"isDisabled",value:function(Ee){return Ee.hasAttribute("disabled")}},{key:"isVisible",value:function(Ee){return function Rt(tt){return!!(tt.offsetWidth||tt.offsetHeight||"function"==typeof tt.getClientRects&&tt.getClientRects().length)}(Ee)&&"visible"===getComputedStyle(Ee).visibility}},{key:"isTabbable",value:function(Ee){if(!this._platform.isBrowser)return!1;var He=function nt(tt){try{return tt.frameElement}catch(Ue){return null}}(function sn(tt){return tt.ownerDocument&&tt.ownerDocument.defaultView||window}(Ee));if(He&&(-1===Et(He)||!this.isVisible(He)))return!1;var bt=Ee.nodeName.toLowerCase(),Yt=Et(Ee);return Ee.hasAttribute("contenteditable")?-1!==Yt:!("iframe"===bt||"object"===bt||this._platform.WEBKIT&&this._platform.IOS&&!function Ut(tt){var Ue=tt.nodeName.toLowerCase(),Ee="input"===Ue&&tt.type;return"text"===Ee||"password"===Ee||"select"===Ue||"textarea"===Ue}(Ee))&&("audio"===bt?!!Ee.hasAttribute("controls")&&-1!==Yt:"video"===bt?-1!==Yt&&(null!==Yt||(this._platform.FIREFOX||Ee.hasAttribute("controls"))):Ee.tabIndex>=0)}},{key:"isFocusable",value:function(Ee,He){return function Ht(tt){return!function on(tt){return function An(tt){return"input"==tt.nodeName.toLowerCase()}(tt)&&"hidden"==tt.type}(tt)&&(function It(tt){var Ue=tt.nodeName.toLowerCase();return"input"===Ue||"select"===Ue||"button"===Ue||"textarea"===Ue}(tt)||function _n(tt){return function Gt(tt){return"a"==tt.nodeName.toLowerCase()}(tt)&&tt.hasAttribute("href")}(tt)||tt.hasAttribute("contenteditable")||Zt(tt))}(Ee)&&!this.isDisabled(Ee)&&((null==He?void 0:He.ignoreVisibility)||this.isVisible(Ee))}}]),tt}();function Zt(tt){if(!tt.hasAttribute("tabindex")||void 0===tt.tabIndex)return!1;var Ue=tt.getAttribute("tabindex");return!(!Ue||isNaN(parseInt(Ue,10)))}function Et(tt){if(!Zt(tt))return null;var Ue=parseInt(tt.getAttribute("tabindex")||"",10);return isNaN(Ue)?-1:Ue}vt.\u0275fac=function(Ue){return new(Ue||vt)(F.LFG(E.t4))},vt.\u0275prov=F.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"});var yt=function(){function tt(Ue,Ee,He,bt){var Yt=this,En=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,D.Z)(this,tt),this._element=Ue,this._checker=Ee,this._ngZone=He,this._document=bt,this._hasAttached=!1,this.startAnchorListener=function(){return Yt.focusLastTabbableElement()},this.endAnchorListener=function(){return Yt.focusFirstTabbableElement()},this._enabled=!0,En||this.attachAnchors()}return(0,y.Z)(tt,[{key:"enabled",get:function(){return this._enabled},set:function(Ee){this._enabled=Ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}},{key:"destroy",value:function(){var Ee=this._startAnchor,He=this._endAnchor;Ee&&(Ee.removeEventListener("focus",this.startAnchorListener),Ee.remove()),He&&(He.removeEventListener("focus",this.endAnchorListener),He.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Ee=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Ee._startAnchor||(Ee._startAnchor=Ee._createAnchor(),Ee._startAnchor.addEventListener("focus",Ee.startAnchorListener)),Ee._endAnchor||(Ee._endAnchor=Ee._createAnchor(),Ee._endAnchor.addEventListener("focus",Ee.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(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusInitialElement(Ee))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusFirstTabbableElement(Ee))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Ee){var He=this;return new Promise(function(bt){He._executeOnStable(function(){return bt(He.focusLastTabbableElement(Ee))})})}},{key:"_getRegionBoundary",value:function(Ee){var He=this._element.querySelectorAll("[cdk-focus-region-".concat(Ee,"], ")+"[cdkFocusRegion".concat(Ee,"], ")+"[cdk-focus-".concat(Ee,"]"));return"start"==Ee?He.length?He[0]:this._getFirstTabbableElement(this._element):He.length?He[He.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Ee){var He=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(He){if(!this._checker.isFocusable(He)){var bt=this._getFirstTabbableElement(He);return null==bt||bt.focus(Ee),!!bt}return He.focus(Ee),!0}return this.focusFirstTabbableElement(Ee)}},{key:"focusFirstTabbableElement",value:function(Ee){var He=this._getRegionBoundary("start");return He&&He.focus(Ee),!!He}},{key:"focusLastTabbableElement",value:function(Ee){var He=this._getRegionBoundary("end");return He&&He.focus(Ee),!!He}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;for(var He=Ee.children,bt=0;bt<He.length;bt++){var Yt=He[bt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(He[bt]):null;if(Yt)return Yt}return null}},{key:"_getLastTabbableElement",value:function(Ee){if(this._checker.isFocusable(Ee)&&this._checker.isTabbable(Ee))return Ee;for(var He=Ee.children,bt=He.length-1;bt>=0;bt--){var Yt=He[bt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(He[bt]):null;if(Yt)return Yt}return null}},{key:"_createAnchor",value:function(){var Ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ee),Ee.classList.add("cdk-visually-hidden"),Ee.classList.add("cdk-focus-trap-anchor"),Ee.setAttribute("aria-hidden","true"),Ee}},{key:"_toggleAnchorTabIndex",value:function(Ee,He){Ee?He.setAttribute("tabindex","0"):He.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ee,this._startAnchor),this._toggleAnchorTabIndex(Ee,this._endAnchor))}},{key:"_executeOnStable",value:function(Ee){this._ngZone.isStable?Ee():this._ngZone.onStable.pipe((0,$.q)(1)).subscribe(Ee)}}]),tt}(),mt=function(){function tt(Ue,Ee,He){(0,D.Z)(this,tt),this._checker=Ue,this._ngZone=Ee,this._document=He}return(0,y.Z)(tt,[{key:"create",value:function(Ee){var He=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new yt(Ee,this._checker,this._ngZone,this._document,He)}}]),tt}();mt.\u0275fac=function(Ue){return new(Ue||mt)(F.LFG(vt),F.LFG(F.R0b),F.LFG(K.K0))},mt.\u0275prov=F.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"});var cn=function(){function tt(Ue,Ee,He){(0,D.Z)(this,tt),this._elementRef=Ue,this._focusTrapFactory=Ee,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,y.Z)(tt,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Ee){this.focusTrap.enabled=(0,oe.Ig)(Ee)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Ee){this._autoCapture=(0,oe.Ig)(Ee)}},{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(Ee){var He=Ee.autoCapture;He&&!He.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,E.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),tt}();cn.\u0275fac=function(Ue){return new(Ue||cn)(F.Y36(F.SBq),F.Y36(mt),F.Y36(K.K0))},cn.\u0275dir=F.lG2({type:cn,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[F.TTD]});var $t=function(tt){(0,L.Z)(Ee,tt);var Ue=(0,P.Z)(Ee);function Ee(He,bt,Yt,En,rr,pn,lt){var Se;return(0,D.Z)(this,Ee),(Se=Ue.call(this,He,bt,Yt,En,lt.defer))._focusTrapManager=rr,Se._inertStrategy=pn,Se._focusTrapManager.register((0,Y.Z)(Se)),Se}return(0,y.Z)(Ee,[{key:"enabled",get:function(){return this._enabled},set:function(bt){this._enabled=bt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,M.Z)((0,U.Z)(Ee.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)}}]),Ee}(yt),j=new F.OlP("FOCUS_TRAP_INERT_STRATEGY"),V=function(){function tt(){(0,D.Z)(this,tt),this._listener=null}return(0,y.Z)(tt,[{key:"preventFocus",value:function(Ee){var He=this;this._listener&&Ee._document.removeEventListener("focus",this._listener,!0),this._listener=function(bt){return He._trapFocus(Ee,bt)},Ee._ngZone.runOutsideAngular(function(){Ee._document.addEventListener("focus",He._listener,!0)})}},{key:"allowFocus",value:function(Ee){!this._listener||(Ee._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Ee,He){var bt,Yt=He.target,En=Ee._element;Yt&&!En.contains(Yt)&&!(null===(bt=Yt.closest)||void 0===bt?void 0:bt.call(Yt,"div.cdk-overlay-pane"))&&setTimeout(function(){Ee.enabled&&!En.contains(Ee._document.activeElement)&&Ee.focusFirstTabbableElement()})}}]),tt}(),Jn=function(){function tt(){(0,D.Z)(this,tt),this._focusTrapStack=[]}return(0,y.Z)(tt,[{key:"register",value:function(Ee){this._focusTrapStack=this._focusTrapStack.filter(function(bt){return bt!==Ee});var He=this._focusTrapStack;He.length&&He[He.length-1]._disable(),He.push(Ee),Ee._enable()}},{key:"deregister",value:function(Ee){Ee._disable();var He=this._focusTrapStack,bt=He.indexOf(Ee);-1!==bt&&(He.splice(bt,1),He.length&&He[He.length-1]._enable())}}]),tt}();Jn.\u0275fac=function(Ue){return new(Ue||Jn)},Jn.\u0275prov=F.Yz7({token:Jn,factory:Jn.\u0275fac,providedIn:"root"});var wn=function(){function tt(Ue,Ee,He,bt,Yt){(0,D.Z)(this,tt),this._checker=Ue,this._ngZone=Ee,this._focusTrapManager=He,this._document=bt,this._inertStrategy=Yt||new V}return(0,y.Z)(tt,[{key:"create",value:function(Ee){var bt,He=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return bt="boolean"==typeof He?{defer:He}:He,new $t(Ee,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,bt)}}]),tt}();function Bt(tt){return 0===tt.buttons||0===tt.offsetX&&0===tt.offsetY}function dt(tt){var Ue=tt.touches&&tt.touches[0]||tt.changedTouches&&tt.changedTouches[0];return!(!Ue||-1!==Ue.identifier||null!=Ue.radiusX&&1!==Ue.radiusX||null!=Ue.radiusY&&1!==Ue.radiusY)}wn.\u0275fac=function(Ue){return new(Ue||wn)(F.LFG(vt),F.LFG(F.R0b),F.LFG(Jn),F.LFG(K.K0),F.LFG(j,8))},wn.\u0275prov=F.Yz7({token:wn,factory:wn.\u0275fac,providedIn:"root"});var de=new F.OlP("cdk-input-modality-detector-options"),Te={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},We=(0,E.i$)({passive:!0,capture:!0}),at=function(){function tt(Ue,Ee,He,bt){var Yt=this;(0,D.Z)(this,tt),this._platform=Ue,this._mostRecentTarget=null,this._modality=new I.X(null),this._lastTouchMs=0,this._onKeydown=function(En){var rr,pn;(null===(pn=null===(rr=Yt._options)||void 0===rr?void 0:rr.ignoreKeys)||void 0===pn?void 0:pn.some(function(lt){return lt===En.keyCode}))||(Yt._modality.next("keyboard"),Yt._mostRecentTarget=(0,E.sA)(En))},this._onMousedown=function(En){Date.now()-Yt._lastTouchMs<650||(Yt._modality.next(Bt(En)?"keyboard":"mouse"),Yt._mostRecentTarget=(0,E.sA)(En))},this._onTouchstart=function(En){dt(En)?Yt._modality.next("keyboard"):(Yt._lastTouchMs=Date.now(),Yt._modality.next("touch"),Yt._mostRecentTarget=(0,E.sA)(En))},this._options=Object.assign(Object.assign({},Te),bt),this.modalityDetected=this._modality.pipe((0,ce.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,se.x)()),Ue.isBrowser&&Ee.runOutsideAngular(function(){He.addEventListener("keydown",Yt._onKeydown,We),He.addEventListener("mousedown",Yt._onMousedown,We),He.addEventListener("touchstart",Yt._onTouchstart,We)})}return(0,y.Z)(tt,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,We),document.removeEventListener("mousedown",this._onMousedown,We),document.removeEventListener("touchstart",this._onTouchstart,We))}}]),tt}();at.\u0275fac=function(Ue){return new(Ue||at)(F.LFG(E.t4),F.LFG(F.R0b),F.LFG(K.K0),F.LFG(de,8))},at.\u0275prov=F.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"});var Dt=new F.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tn(){return null}});var Jt=new F.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),nn=function(){function tt(Ue,Ee,He,bt){(0,D.Z)(this,tt),this._ngZone=Ee,this._defaultOptions=bt,this._document=He,this._liveElement=Ue||this._createLiveElement()}return(0,y.Z)(tt,[{key:"announce",value:function(Ee){for(var Yt,En,He=this,bt=this._defaultOptions,rr=arguments.length,pn=new Array(rr>1?rr-1:0),lt=1;lt<rr;lt++)pn[lt-1]=arguments[lt];return 1===pn.length&&"number"==typeof pn[0]?En=pn[0]:(Yt=pn[0],En=pn[1]),this.clear(),clearTimeout(this._previousTimeout),Yt||(Yt=bt&&bt.politeness?bt.politeness:"polite"),null==En&&bt&&(En=bt.duration),this._liveElement.setAttribute("aria-live",Yt),this._ngZone.runOutsideAngular(function(){return He._currentPromise||(He._currentPromise=new Promise(function(Se){return He._currentResolve=Se})),clearTimeout(He._previousTimeout),He._previousTimeout=setTimeout(function(){He._liveElement.textContent=Ee,"number"==typeof En&&(He._previousTimeout=setTimeout(function(){return He.clear()},En)),He._currentResolve(),He._currentPromise=He._currentResolve=void 0},100),He._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Ee,He;clearTimeout(this._previousTimeout),null===(Ee=this._liveElement)||void 0===Ee||Ee.remove(),this._liveElement=null,null===(He=this._currentResolve)||void 0===He||He.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Ee="cdk-live-announcer-element",He=this._document.getElementsByClassName(Ee),bt=this._document.createElement("div"),Yt=0;Yt<He.length;Yt++)He[Yt].remove();return bt.classList.add(Ee),bt.classList.add("cdk-visually-hidden"),bt.setAttribute("aria-atomic","true"),bt.setAttribute("aria-live","polite"),this._document.body.appendChild(bt),bt}}]),tt}();nn.\u0275fac=function(Ue){return new(Ue||nn)(F.LFG(Dt,8),F.LFG(F.R0b),F.LFG(K.K0),F.LFG(Jt,8))},nn.\u0275prov=F.Yz7({token:nn,factory:nn.\u0275fac,providedIn:"root"});var dn=function(){function tt(Ue,Ee,He,bt){(0,D.Z)(this,tt),this._elementRef=Ue,this._liveAnnouncer=Ee,this._contentObserver=He,this._ngZone=bt,this._politeness="polite"}return(0,y.Z)(tt,[{key:"politeness",get:function(){return this._politeness},set:function(Ee){var He=this;this._politeness="off"===Ee||"assertive"===Ee?Ee:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return He._contentObserver.observe(He._elementRef).subscribe(function(){var bt=He._elementRef.nativeElement.textContent;bt!==He._previousAnnouncedText&&(He._liveAnnouncer.announce(bt,He._politeness),He._previousAnnouncedText=bt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),tt}();dn.\u0275fac=function(Ue){return new(Ue||dn)(F.Y36(F.SBq),F.Y36(nn),F.Y36(ge.yq),F.Y36(F.R0b))},dn.\u0275dir=F.lG2({type:dn,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]});var On=new F.OlP("cdk-focus-monitor-default-options"),Dn=(0,E.i$)({passive:!0,capture:!0}),zn=function(){function tt(Ue,Ee,He,bt,Yt){var En=this;(0,D.Z)(this,tt),this._ngZone=Ue,this._platform=Ee,this._inputModalityDetector=He,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){En._windowFocused=!0,En._windowFocusTimeoutId=window.setTimeout(function(){return En._windowFocused=!1})},this._stopInputModalityDetector=new A.xQ,this._rootNodeFocusAndBlurListener=function(rr){for(var pn=(0,E.sA)(rr),lt="focus"===rr.type?En._onFocus:En._onBlur,Se=pn;Se;Se=Se.parentElement)lt.call(En,rr,Se)},this._document=bt,this._detectionMode=(null==Yt?void 0:Yt.detectionMode)||0}return(0,y.Z)(tt,[{key:"monitor",value:function(Ee){var He=arguments.length>1&&void 0!==arguments[1]&&arguments[1],bt=(0,oe.fI)(Ee);if(!this._platform.isBrowser||1!==bt.nodeType)return(0,T.of)(null);var Yt=(0,E.kV)(bt)||this._getDocument(),En=this._elementInfo.get(bt);if(En)return He&&(En.checkChildren=!0),En.subject;var rr={checkChildren:He,subject:new A.xQ,rootNode:Yt};return this._elementInfo.set(bt,rr),this._registerGlobalListeners(rr),rr.subject}},{key:"stopMonitoring",value:function(Ee){var He=(0,oe.fI)(Ee),bt=this._elementInfo.get(He);bt&&(bt.subject.complete(),this._setClasses(He),this._elementInfo.delete(He),this._removeGlobalListeners(bt))}},{key:"focusVia",value:function(Ee,He,bt){var Yt=this,En=(0,oe.fI)(Ee);En===this._getDocument().activeElement?this._getClosestElementsInfo(En).forEach(function(pn){var lt=(0,z.Z)(pn,2),Se=lt[0],Ae=lt[1];return Yt._originChanged(Se,He,Ae)}):(this._setOrigin(He),"function"==typeof En.focus&&En.focus(bt))}},{key:"ngOnDestroy",value:function(){var Ee=this;this._elementInfo.forEach(function(He,bt){return Ee.stopMonitoring(bt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Ee){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ee)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(Ee){return 1===this._detectionMode||!!(null==Ee?void 0:Ee.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Ee,He){Ee.classList.toggle("cdk-focused",!!He),Ee.classList.toggle("cdk-touch-focused","touch"===He),Ee.classList.toggle("cdk-keyboard-focused","keyboard"===He),Ee.classList.toggle("cdk-mouse-focused","mouse"===He),Ee.classList.toggle("cdk-program-focused","program"===He)}},{key:"_setOrigin",value:function(Ee){var He=this,bt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(He._origin=Ee,He._originFromTouchInteraction="touch"===Ee&&bt,0===He._detectionMode){clearTimeout(He._originTimeoutId);var Yt=He._originFromTouchInteraction?650:1;He._originTimeoutId=setTimeout(function(){return He._origin=null},Yt)}})}},{key:"_onFocus",value:function(Ee,He){var bt=this._elementInfo.get(He),Yt=(0,E.sA)(Ee);!bt||!bt.checkChildren&&He!==Yt||this._originChanged(He,this._getFocusOrigin(Yt),bt)}},{key:"_onBlur",value:function(Ee,He){var bt=this._elementInfo.get(He);!bt||bt.checkChildren&&Ee.relatedTarget instanceof Node&&He.contains(Ee.relatedTarget)||(this._setClasses(He),this._emitOrigin(bt.subject,null))}},{key:"_emitOrigin",value:function(Ee,He){this._ngZone.run(function(){return Ee.next(He)})}},{key:"_registerGlobalListeners",value:function(Ee){var He=this;if(this._platform.isBrowser){var bt=Ee.rootNode,Yt=this._rootNodeFocusListenerCount.get(bt)||0;Yt||this._ngZone.runOutsideAngular(function(){bt.addEventListener("focus",He._rootNodeFocusAndBlurListener,Dn),bt.addEventListener("blur",He._rootNodeFocusAndBlurListener,Dn)}),this._rootNodeFocusListenerCount.set(bt,Yt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){He._getWindow().addEventListener("focus",He._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ee.R)(this._stopInputModalityDetector)).subscribe(function(En){He._setOrigin(En,!0)}))}}},{key:"_removeGlobalListeners",value:function(Ee){var He=Ee.rootNode;if(this._rootNodeFocusListenerCount.has(He)){var bt=this._rootNodeFocusListenerCount.get(He);bt>1?this._rootNodeFocusListenerCount.set(He,bt-1):(He.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Dn),He.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Dn),this._rootNodeFocusListenerCount.delete(He))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Ee,He,bt){this._setClasses(Ee,He),this._emitOrigin(bt.subject,He),this._lastFocusOrigin=He}},{key:"_getClosestElementsInfo",value:function(Ee){var He=[];return this._elementInfo.forEach(function(bt,Yt){(Yt===Ee||bt.checkChildren&&Yt.contains(Ee))&&He.push([Yt,bt])}),He}}]),tt}();zn.\u0275fac=function(Ue){return new(Ue||zn)(F.LFG(F.R0b),F.LFG(E.t4),F.LFG(at),F.LFG(K.K0,8),F.LFG(On,8))},zn.\u0275prov=F.Yz7({token:zn,factory:zn.\u0275fac,providedIn:"root"});var Ln=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._elementRef=Ue,this._focusMonitor=Ee,this.cdkFocusChange=new F.vpe}return(0,y.Z)(tt,[{key:"ngAfterViewInit",value:function(){var Ee=this,He=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(He,1===He.nodeType&&He.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(bt){return Ee.cdkFocusChange.emit(bt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),tt}();Ln.\u0275fac=function(Ue){return new(Ue||Ln)(F.Y36(F.SBq),F.Y36(zn))},Ln.\u0275dir=F.lG2({type:Ln,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}});var jn="cdk-high-contrast-black-on-white",mn="cdk-high-contrast-white-on-black",lr="cdk-high-contrast-active",Yn=function(){function tt(Ue,Ee){(0,D.Z)(this,tt),this._platform=Ue,this._document=Ee}return(0,y.Z)(tt,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Ee=this._document.createElement("div");Ee.style.backgroundColor="rgb(1,2,3)",Ee.style.position="absolute",this._document.body.appendChild(Ee);var He=this._document.defaultView||window,bt=He&&He.getComputedStyle?He.getComputedStyle(Ee):null,Yt=(bt&&bt.backgroundColor||"").replace(/ /g,"");switch(Ee.remove(),Yt){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Ee=this._document.body.classList;Ee.remove(lr),Ee.remove(jn),Ee.remove(mn),this._hasCheckedHighContrastMode=!0;var He=this.getHighContrastMode();1===He?(Ee.add(lr),Ee.add(jn)):2===He&&(Ee.add(lr),Ee.add(mn))}}}]),tt}();Yn.\u0275fac=function(Ue){return new(Ue||Yn)(F.LFG(E.t4),F.LFG(K.K0))},Yn.\u0275prov=F.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"});var Kt=(0,y.Z)(function tt(Ue){(0,D.Z)(this,tt),Ue._applyBodyHighContrastModeCssClasses()});Kt.\u0275fac=function(Ue){return new(Ue||Kt)(F.LFG(Yn))},Kt.\u0275mod=F.oAB({type:Kt}),Kt.\u0275inj=F.cJS({imports:[[ge.Q8]]})},226:function(qe,J,m){"use strict";m.d(J,{Is:function(){return K},vT:function(){return E}});var z=m(5671),Y=m(3144),M=m(5e3),U=m(9808),L=new M.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,M.f3M)(U.K0)}});var D=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function y(A){var k=(null==A?void 0:A.toLowerCase())||"";return"auto"===k&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?D.test(navigator.language)?"rtl":"ltr":"rtl"===k?"rtl":"ltr"}var K=function(){function A(k){if((0,z.Z)(this,A),this.value="ltr",this.change=new M.vpe,k){var I=k.body?k.body.dir:null,T=k.documentElement?k.documentElement.dir:null;this.value=y(I||T||"ltr")}}return(0,Y.Z)(A,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),A}();K.\u0275fac=function(k){return new(k||K)(M.LFG(L,8))},K.\u0275prov=M.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"});var F=function(){function A(){(0,z.Z)(this,A),this._dir="ltr",this._isInitialized=!1,this.change=new M.vpe}return(0,Y.Z)(A,[{key:"dir",get:function(){return this._dir},set:function(I){var T=this._dir;this._dir=y(I),this._rawDir=I,T!==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()}}]),A}();F.\u0275fac=function(k){return new(k||F)},F.\u0275dir=M.lG2({type:F,selectors:[["","dir",""]],hostVars:1,hostBindings:function(k,I){2&k&&M.uIk("dir",I._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[M._Bn([{provide:K,useExisting:F}])]});var E=(0,Y.Z)(function A(){(0,z.Z)(this,A)});E.\u0275fac=function(k){return new(k||E)},E.\u0275mod=M.oAB({type:E}),E.\u0275inj=M.cJS({})},3191:function(qe,J,m){"use strict";m.d(J,{Eq:function(){return P},HM:function(){return D},Ig:function(){return M},du:function(){return K},fI:function(){return y},su:function(){return U},t6:function(){return L}});var z=m(7762),Y=m(5e3);function M(F){return null!=F&&"false"!=="".concat(F)}function U(F){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return L(F)?Number(F):E}function L(F){return!isNaN(parseFloat(F))&&!isNaN(Number(F))}function P(F){return Array.isArray(F)?F:[F]}function D(F){return null==F?"":"string"==typeof F?F:"".concat(F,"px")}function y(F){return F instanceof Y.SBq?F.nativeElement:F}function K(F){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,A=[];if(null!=F){var T,k=Array.isArray(F)?F:"".concat(F).split(E),I=(0,z.Z)(k);try{for(I.s();!(T=I.n()).done;){var w=T.value,S="".concat(w).trim();S&&A.push(S)}}catch(N){I.e(N)}finally{I.f()}}return A}},449:function(qe,J,m){"use strict";m.d(J,{A8:function(){return S},Ov:function(){return T},P3:function(){return A},Z9:function(){return E},eX:function(){return I},k:function(){return N},o2:function(){return F},yy:function(){return k}});var z=m(7762),Y=m(136),M=m(9388),U=m(3144),L=m(5671),P=m(4715),D=m(1086),y=m(8929),K=m(5e3),F=(0,U.Z)(function R(){(0,L.Z)(this,R)});function E(R){return R&&"function"==typeof R.connect}var A=function(R){(0,Y.Z)($,R);var W=(0,M.Z)($);function $(ce){var se;return(0,L.Z)(this,$),(se=W.call(this))._data=ce,se}return(0,U.Z)($,[{key:"connect",value:function(){return(0,P.b)(this._data)?this._data:(0,D.of)(this._data)}},{key:"disconnect",value:function(){}}]),$}(F),k=function(){function R(){(0,L.Z)(this,R)}return(0,U.Z)(R,[{key:"applyChanges",value:function($,ce,se,ee,oe){$.forEachOperation(function(ge,Oe,ot){var xe,_e;if(null==ge.previousIndex){var ke=se(ge,Oe,ot);xe=ce.createEmbeddedView(ke.templateRef,ke.context,ke.index),_e=1}else null==ot?(ce.remove(Oe),_e=3):(xe=ce.get(Oe),ce.move(xe,ot),_e=2);oe&&oe({context:null==xe?void 0:xe.context,operation:_e,record:ge})})}},{key:"detach",value:function(){}}]),R}(),I=function(){function R(){(0,L.Z)(this,R),this.viewCacheSize=20,this._viewCache=[]}return(0,U.Z)(R,[{key:"applyChanges",value:function($,ce,se,ee,oe){var ge=this;$.forEachOperation(function(Oe,ot,xe){var _e,ke;if(null==Oe.previousIndex){ke=(_e=ge._insertView(function(){return se(Oe,ot,xe)},xe,ce,ee(Oe)))?1:0}else null==xe?(ge._detachAndCacheView(ot,ce),ke=3):(_e=ge._moveView(ot,xe,ce,ee(Oe)),ke=2);oe&&oe({context:null==_e?void 0:_e.context,operation:ke,record:Oe})})}},{key:"detach",value:function(){var ce,$=(0,z.Z)(this._viewCache);try{for($.s();!(ce=$.n()).done;){ce.value.destroy()}}catch(ee){$.e(ee)}finally{$.f()}this._viewCache=[]}},{key:"_insertView",value:function($,ce,se,ee){var oe=this._insertViewFromCache(ce,se);if(!oe){var ge=$();return se.createEmbeddedView(ge.templateRef,ge.context,ge.index)}oe.context.$implicit=ee}},{key:"_detachAndCacheView",value:function($,ce){var se=ce.detach($);this._maybeCacheView(se,ce)}},{key:"_moveView",value:function($,ce,se,ee){var oe=se.get($);return se.move(oe,ce),oe.context.$implicit=ee,oe}},{key:"_maybeCacheView",value:function($,ce){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push($);else{var se=ce.indexOf($);-1===se?$.destroy():ce.remove(se)}}},{key:"_insertViewFromCache",value:function($,ce){var se=this._viewCache.pop();return se&&ce.insert(se,$),se||null}}]),R}(),T=function(){function R(){var W=this,$=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ce=arguments.length>1?arguments[1]:void 0,se=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,L.Z)(this,R),this._multiple=$,this._emitChanges=se,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new y.xQ,ce&&ce.length&&($?ce.forEach(function(ee){return W._markSelected(ee)}):this._markSelected(ce[0]),this._selectedToEmit.length=0)}return(0,U.Z)(R,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var $=this,ce=arguments.length,se=new Array(ce),ee=0;ee<ce;ee++)se[ee]=arguments[ee];this._verifyValueAssignment(se),se.forEach(function(oe){return $._markSelected(oe)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var $=this,ce=arguments.length,se=new Array(ce),ee=0;ee<ce;ee++)se[ee]=arguments[ee];this._verifyValueAssignment(se),se.forEach(function(oe){return $._unmarkSelected(oe)}),this._emitChangeEvent()}},{key:"toggle",value:function($){this.isSelected($)?this.deselect($):this.select($)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function($){return this._selection.has($)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function($){this._multiple&&this.selected&&this._selected.sort($)}},{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($){this.isSelected($)||(this._multiple||this._unmarkAll(),this._selection.add($),this._emitChanges&&this._selectedToEmit.push($))}},{key:"_unmarkSelected",value:function($){this.isSelected($)&&(this._selection.delete($),this._emitChanges&&this._deselectedToEmit.push($))}},{key:"_unmarkAll",value:function(){var $=this;this.isEmpty()||this._selection.forEach(function(ce){return $._unmarkSelected(ce)})}},{key:"_verifyValueAssignment",value:function($){$.length>1&&this._multiple}}]),R}();var S=function(){function R(){(0,L.Z)(this,R),this._listeners=[]}return(0,U.Z)(R,[{key:"notify",value:function($,ce){var ee,se=(0,z.Z)(this._listeners);try{for(se.s();!(ee=se.n()).done;){(0,ee.value)($,ce)}}catch(ge){se.e(ge)}finally{se.f()}}},{key:"listen",value:function($){var ce=this;return this._listeners.push($),function(){ce._listeners=ce._listeners.filter(function(se){return $!==se})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),R}();S.\u0275fac=function(W){return new(W||S)},S.\u0275prov=K.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"});var N=new K.OlP("_ViewRepeater")},1159:function(qe,J,m){"use strict";m.d(J,{A:function(){return Xe},JH:function(){return W},JU:function(){return P},K5:function(){return L},LH:function(){return N},L_:function(){return A},MW:function(){return de},Mf:function(){return M},SV:function(){return R},Sd:function(){return w},Vb:function(){return uo},Z:function(){return dt},ZH:function(){return Y},aO:function(){return Mt},b2:function(){return lo},hY:function(){return E},jx:function(){return D},oh:function(){return S},uR:function(){return T},xE:function(){return oe},yY:function(){return ee},zL:function(){return y}});var Y=8,M=9,L=13,P=16,D=17,y=18,E=27,A=32,T=35,w=36,S=37,N=38,R=39,W=40,ee=46,oe=48,Mt=57,Xe=65,dt=90,de=91,lo=224;function uo(mi){for(var Bo=arguments.length,$r=new Array(Bo>1?Bo-1:0),Pi=1;Pi<Bo;Pi++)$r[Pi-1]=arguments[Pi];return $r.length?$r.some(function(Wi){return mi[Wi]}):mi.altKey||mi.shiftKey||mi.ctrlKey||mi.metaKey}},7144:function(qe,J,m){"use strict";m.d(J,{Q8:function(){return E},wD:function(){return F},yq:function(){return K}});var z=m(5671),Y=m(3144),M=m(3191),U=m(5e3),L=m(7451),P=m(8929),D=m(13),y=function(){function A(){(0,z.Z)(this,A)}return(0,Y.Z)(A,[{key:"create",value:function(I){return"undefined"==typeof MutationObserver?null:new MutationObserver(I)}}]),A}();y.\u0275fac=function(k){return new(k||y)},y.\u0275prov=U.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"});var K=function(){function A(k){(0,z.Z)(this,A),this._mutationObserverFactory=k,this._observedElements=new Map}return(0,Y.Z)(A,[{key:"ngOnDestroy",value:function(){var I=this;this._observedElements.forEach(function(T,w){return I._cleanupObserver(w)})}},{key:"observe",value:function(I){var T=this,w=(0,M.fI)(I);return new L.y(function(S){var R=T._observeElement(w).subscribe(S);return function(){R.unsubscribe(),T._unobserveElement(w)}})}},{key:"_observeElement",value:function(I){if(this._observedElements.has(I))this._observedElements.get(I).count++;else{var T=new P.xQ,w=this._mutationObserverFactory.create(function(S){return T.next(S)});w&&w.observe(I,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(I,{observer:w,stream:T,count:1})}return this._observedElements.get(I).stream}},{key:"_unobserveElement",value:function(I){this._observedElements.has(I)&&(this._observedElements.get(I).count--,this._observedElements.get(I).count||this._cleanupObserver(I))}},{key:"_cleanupObserver",value:function(I){if(this._observedElements.has(I)){var T=this._observedElements.get(I),w=T.observer,S=T.stream;w&&w.disconnect(),S.complete(),this._observedElements.delete(I)}}}]),A}();K.\u0275fac=function(k){return new(k||K)(U.LFG(y))},K.\u0275prov=U.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"});var F=function(){function A(k,I,T){(0,z.Z)(this,A),this._contentObserver=k,this._elementRef=I,this._ngZone=T,this.event=new U.vpe,this._disabled=!1,this._currentSubscription=null}return(0,Y.Z)(A,[{key:"disabled",get:function(){return this._disabled},set:function(I){this._disabled=(0,M.Ig)(I),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(I){this._debounce=(0,M.su)(I),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var I=this;this._unsubscribe();var T=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){I._currentSubscription=(I.debounce?T.pipe((0,D.b)(I.debounce)):T).subscribe(I.event)})}},{key:"_unsubscribe",value:function(){var I;null===(I=this._currentSubscription)||void 0===I||I.unsubscribe()}}]),A}();F.\u0275fac=function(k){return new(k||F)(U.Y36(K),U.Y36(U.SBq),U.Y36(U.R0b))},F.\u0275dir=U.lG2({type:F,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var E=(0,Y.Z)(function A(){(0,z.Z)(this,A)});E.\u0275fac=function(k){return new(k||E)},E.\u0275mod=U.oAB({type:E}),E.\u0275inj=U.cJS({providers:[y]})},1314:function(qe,J,m){"use strict";m.d(J,{U8:function(){return Jn},X_:function(){return ct},Xj:function(){return jt},aV:function(){return sn},pI:function(){return $t},xu:function(){return cn}});var z=m(3237),Y=m(1120),M=m(136),U=m(9388),L=m(7685),P=m(7762),D=m(4902),y=m(5671),K=m(3144),F=m(9071),E=m(9808),A=m(5e3),k=m(3191),I=m(925),T=m(226),w=m(7429),S=m(8929),N=m(4096),R=m(6787),W=m(2986),$=m(7625),ce=m(4290),se=m(1159),ee=(0,I.Mq)(),oe=function(){function Bt(dt,de){(0,y.Z)(this,Bt),this._viewportRuler=dt,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=de}return(0,K.Z)(Bt,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var de=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=de.style.left||"",this._previousHTMLStyles.top=de.style.top||"",de.style.left=(0,k.HM)(-this._previousScrollPosition.left),de.style.top=(0,k.HM)(-this._previousScrollPosition.top),de.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var de=this._document.documentElement,Te=this._document.body,ue=de.style,We=Te.style,at=ue.scrollBehavior||"",Dt=We.scrollBehavior||"";this._isEnabled=!1,ue.left=this._previousHTMLStyles.left,ue.top=this._previousHTMLStyles.top,de.classList.remove("cdk-global-scrollblock"),ee&&(ue.scrollBehavior=We.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ee&&(ue.scrollBehavior=at,We.scrollBehavior=Dt)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var Te=this._document.body,ue=this._viewportRuler.getViewportSize();return Te.scrollHeight>ue.height||Te.scrollWidth>ue.width}}]),Bt}();var Oe=function(){function Bt(dt,de,Te,ue){var We=this;(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._ngZone=de,this._viewportRuler=Te,this._config=ue,this._scrollSubscription=null,this._detach=function(){We.disable(),We._overlayRef.hasAttached()&&We._ngZone.run(function(){return We._overlayRef.detach()})}}return(0,K.Z)(Bt,[{key:"attach",value:function(de){this._overlayRef,this._overlayRef=de}},{key:"enable",value:function(){var de=this;if(!this._scrollSubscription){var Te=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Te.subscribe(function(){var ue=de._viewportRuler.getViewportScrollPosition().top;Math.abs(ue-de._initialScrollPosition)>de._config.threshold?de._detach():de._overlayRef.updatePosition()})):this._scrollSubscription=Te.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Bt}(),ot=function(){function Bt(){(0,y.Z)(this,Bt)}return(0,K.Z)(Bt,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Bt}();function xe(Bt,dt){return dt.some(function(de){var Te=Bt.bottom<de.top,ue=Bt.top>de.bottom,We=Bt.right<de.left,at=Bt.left>de.right;return Te||ue||We||at})}function _e(Bt,dt){return dt.some(function(de){var Te=Bt.top<de.top,ue=Bt.bottom>de.bottom,We=Bt.left<de.left,at=Bt.right>de.right;return Te||ue||We||at})}var ke=function(){function Bt(dt,de,Te,ue){(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._viewportRuler=de,this._ngZone=Te,this._config=ue,this._scrollSubscription=null}return(0,K.Z)(Bt,[{key:"attach",value:function(de){this._overlayRef,this._overlayRef=de}},{key:"enable",value:function(){var de=this;if(!this._scrollSubscription){var Te=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(Te).subscribe(function(){if(de._overlayRef.updatePosition(),de._config&&de._config.autoClose){var ue=de._overlayRef.overlayElement.getBoundingClientRect(),We=de._viewportRuler.getViewportSize(),at=We.width,Dt=We.height;xe(ue,[{width:at,height:Dt,bottom:Dt,right:at,top:0,left:0}])&&(de.disable(),de._ngZone.run(function(){return de._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Bt}(),Be=(0,K.Z)(function Bt(dt,de,Te,ue){var We=this;(0,y.Z)(this,Bt),this._scrollDispatcher=dt,this._viewportRuler=de,this._ngZone=Te,this.noop=function(){return new ot},this.close=function(at){return new Oe(We._scrollDispatcher,We._ngZone,We._viewportRuler,at)},this.block=function(){return new oe(We._viewportRuler,We._document)},this.reposition=function(at){return new ke(We._scrollDispatcher,We._viewportRuler,We._ngZone,at)},this._document=ue});Be.\u0275fac=function(dt){return new(dt||Be)(A.LFG(F.mF),A.LFG(F.rL),A.LFG(A.R0b),A.LFG(E.K0))},Be.\u0275prov=A.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"});var ct=(0,K.Z)(function Bt(dt){if((0,y.Z)(this,Bt),this.scrollStrategy=new ot,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,dt)for(var Te=0,ue=Object.keys(dt);Te<ue.length;Te++){var We=ue[Te];void 0!==dt[We]&&(this[We]=dt[We])}}),Xt=(0,K.Z)(function Bt(dt,de){(0,y.Z)(this,Bt),this.connectionPair=dt,this.scrollableViewProperties=de});var Xe=function(){function Bt(dt,de,Te,ue,We,at,Dt,tn,Jt){var nn=this;(0,y.Z)(this,Bt),this._portalOutlet=dt,this._host=de,this._pane=Te,this._config=ue,this._ngZone=We,this._keyboardDispatcher=at,this._document=Dt,this._location=tn,this._outsideClickDispatcher=Jt,this._backdropElement=null,this._backdropClick=new S.xQ,this._attachments=new S.xQ,this._detachments=new S.xQ,this._locationChanges=N.w.EMPTY,this._backdropClickHandler=function(dn){return nn._backdropClick.next(dn)},this._backdropTransitionendHandler=function(dn){nn._disposeBackdrop(dn.target)},this._keydownEvents=new S.xQ,this._outsidePointerEvents=new S.xQ,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}return(0,K.Z)(Bt,[{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(de){var Te=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var ue=this._portalOutlet.attach(de);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(function(){Te.hasAttached()&&Te.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 Te.dispose()})),this._outsideClickDispatcher.add(this),ue}},{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 de=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),de}}},{key:"dispose",value:function(){var de,Te=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===(de=this._host)||void 0===de||de.remove(),this._previousHostParent=this._pane=this._host=null,Te&&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(de){de!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=de,this.hasAttached()&&(de.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(de){this._config=Object.assign(Object.assign({},this._config),de),this._updateElementSize()}},{key:"setDirection",value:function(de){this._config=Object.assign(Object.assign({},this._config),{direction:de}),this._updateElementDirection()}},{key:"addPanelClass",value:function(de){this._pane&&this._toggleClasses(this._pane,de,!0)}},{key:"removePanelClass",value:function(de){this._pane&&this._toggleClasses(this._pane,de,!1)}},{key:"getDirection",value:function(){var de=this._config.direction;return de?"string"==typeof de?de:de.value:"ltr"}},{key:"updateScrollStrategy",value:function(de){de!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=de,this.hasAttached()&&(de.attach(this),de.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var de=this._pane.style;de.width=(0,k.HM)(this._config.width),de.height=(0,k.HM)(this._config.height),de.minWidth=(0,k.HM)(this._config.minWidth),de.minHeight=(0,k.HM)(this._config.minHeight),de.maxWidth=(0,k.HM)(this._config.maxWidth),de.maxHeight=(0,k.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(de){this._pane.style.pointerEvents=de?"":"none"}},{key:"_attachBackdrop",value:function(){var de=this,Te="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){de._backdropElement&&de._backdropElement.classList.add(Te)})}):this._backdropElement.classList.add(Te)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var de=this,Te=this._backdropElement;!Te||(Te.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){Te.addEventListener("transitionend",de._backdropTransitionendHandler)}),Te.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){de._disposeBackdrop(Te)},500)}))}},{key:"_toggleClasses",value:function(de,Te,ue){var at,Dt,We=(0,k.Eq)(Te||[]).filter(function(tn){return!!tn});We.length&&(ue?(at=de.classList).add.apply(at,(0,D.Z)(We)):(Dt=de.classList).remove.apply(Dt,(0,D.Z)(We)))}},{key:"_detachContentWhenStable",value:function(){var de=this;this._ngZone.runOutsideAngular(function(){var Te=de._ngZone.onStable.pipe((0,$.R)((0,R.T)(de._attachments,de._detachments))).subscribe(function(){(!de._pane||!de._host||0===de._pane.children.length)&&(de._pane&&de._config.panelClass&&de._toggleClasses(de._pane,de._config.panelClass,!1),de._host&&de._host.parentElement&&(de._previousHostParent=de._host.parentElement,de._host.remove()),Te.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var de=this._scrollStrategy;de&&(de.disable(),de.detach&&de.detach())}},{key:"_disposeBackdrop",value:function(de){de&&(de.removeEventListener("click",this._backdropClickHandler),de.removeEventListener("transitionend",this._backdropTransitionendHandler),de.remove(),this._backdropElement===de&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Bt}(),jt=function(){function Bt(dt,de){(0,y.Z)(this,Bt),this._platform=de,this._document=dt}return(0,K.Z)(Bt,[{key:"ngOnDestroy",value:function(){var de;null===(de=this._containerElement)||void 0===de||de.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var de="cdk-overlay-container";if(this._platform.isBrowser||(0,I.Oy)())for(var Te=this._document.querySelectorAll(".".concat(de,'[platform="server"], ')+".".concat(de,'[platform="test"]')),ue=0;ue<Te.length;ue++)Te[ue].remove();var We=this._document.createElement("div");We.classList.add(de),(0,I.Oy)()?We.setAttribute("platform","test"):this._platform.isBrowser||We.setAttribute("platform","server"),this._document.body.appendChild(We),this._containerElement=We}}]),Bt}();jt.\u0275fac=function(dt){return new(dt||jt)(A.LFG(E.K0),A.LFG(I.t4))},jt.\u0275prov=A.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var rt="cdk-overlay-connected-position-bounding-box",vt=/([A-Za-z%]+)$/,nt=function(){function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._viewportRuler=de,this._document=Te,this._platform=ue,this._overlayContainer=We,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=N.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(dt)}return(0,K.Z)(Bt,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(de){var Te=this;this._overlayRef&&this._overlayRef,this._validatePositions(),de.hostElement.classList.add(rt),this._overlayRef=de,this._boundingBox=de.hostElement,this._pane=de.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){Te._isInitialRender=!0,Te.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 Dt,Jt,de=this._originRect,Te=this._overlayRect,ue=this._viewportRect,We=this._containerRect,at=[],tn=(0,P.Z)(this._preferredPositions);try{for(tn.s();!(Jt=tn.n()).done;){var nn=Jt.value,dn=this._getOriginPoint(de,We,nn),On=this._getOverlayPoint(dn,Te,nn),Dn=this._getOverlayFit(On,Te,ue,nn);if(Dn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(nn,dn);this._canFitWithFlexibleDimensions(Dn,On,ue)?at.push({position:nn,origin:dn,overlayRect:Te,boundingBoxRect:this._calculateBoundingBoxRect(dn,nn)}):(!Dt||Dt.overlayFit.visibleArea<Dn.visibleArea)&&(Dt={overlayFit:Dn,overlayPoint:On,originPoint:dn,position:nn,overlayRect:Te})}}catch(Kt){tn.e(Kt)}finally{tn.f()}if(at.length){var mn,zn=null,Ln=-1,jn=(0,P.Z)(at);try{for(jn.s();!(mn=jn.n()).done;){var lr=mn.value,Yn=lr.boundingBoxRect.width*lr.boundingBoxRect.height*(lr.position.weight||1);Yn>Ln&&(Ln=Yn,zn=lr)}}catch(Kt){jn.e(Kt)}finally{jn.f()}return this._isPushed=!1,void this._applyPosition(zn.position,zn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Dt.position,Dt.originPoint);this._applyPosition(Dt.position,Dt.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var de=this._lastPosition;if(de){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var Te=this._getOriginPoint(this._originRect,this._containerRect,de);this._applyPosition(de,Te)}else this.apply()}}},{key:"withScrollableContainers",value:function(de){return this._scrollables=de,this}},{key:"withPositions",value:function(de){return this._preferredPositions=de,-1===de.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(de){return this._viewportMargin=de,this}},{key:"withFlexibleDimensions",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=de,this}},{key:"withGrowAfterOpen",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=de,this}},{key:"withPush",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=de,this}},{key:"withLockedPosition",value:function(){var de=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=de,this}},{key:"setOrigin",value:function(de){return this._origin=de,this}},{key:"withDefaultOffsetX",value:function(de){return this._offsetX=de,this}},{key:"withDefaultOffsetY",value:function(de){return this._offsetY=de,this}},{key:"withTransformOriginOn",value:function(de){return this._transformOriginSelector=de,this}},{key:"_getOriginPoint",value:function(de,Te,ue){var We,tn;if("center"==ue.originX)We=de.left+de.width/2;else{var at=this._isRtl()?de.right:de.left,Dt=this._isRtl()?de.left:de.right;We="start"==ue.originX?at:Dt}return Te.left<0&&(We-=Te.left),tn="center"==ue.originY?de.top+de.height/2:"top"==ue.originY?de.top:de.bottom,Te.top<0&&(tn-=Te.top),{x:We,y:tn}}},{key:"_getOverlayPoint",value:function(de,Te,ue){var We,at;return We="center"==ue.overlayX?-Te.width/2:"start"===ue.overlayX?this._isRtl()?-Te.width:0:this._isRtl()?0:-Te.width,at="center"==ue.overlayY?-Te.height/2:"top"==ue.overlayY?0:-Te.height,{x:de.x+We,y:de.y+at}}},{key:"_getOverlayFit",value:function(de,Te,ue,We){var at=on(Te),Dt=de.x,tn=de.y,Jt=this._getOffset(We,"x"),nn=this._getOffset(We,"y");Jt&&(Dt+=Jt),nn&&(tn+=nn);var dn=0-Dt,On=Dt+at.width-ue.width,Dn=0-tn,zn=tn+at.height-ue.height,Ln=this._subtractOverflows(at.width,dn,On),jn=this._subtractOverflows(at.height,Dn,zn),mn=Ln*jn;return{visibleArea:mn,isCompletelyWithinViewport:at.width*at.height===mn,fitsInViewportVertically:jn===at.height,fitsInViewportHorizontally:Ln==at.width}}},{key:"_canFitWithFlexibleDimensions",value:function(de,Te,ue){if(this._hasFlexibleDimensions){var We=ue.bottom-Te.y,at=ue.right-Te.x,Dt=It(this._overlayRef.getConfig().minHeight),tn=It(this._overlayRef.getConfig().minWidth),Jt=de.fitsInViewportVertically||null!=Dt&&Dt<=We,nn=de.fitsInViewportHorizontally||null!=tn&&tn<=at;return Jt&&nn}return!1}},{key:"_pushOverlayOnScreen",value:function(de,Te,ue){if(this._previousPushAmount&&this._positionLocked)return{x:de.x+this._previousPushAmount.x,y:de.y+this._previousPushAmount.y};var We=on(Te),at=this._viewportRect,Dt=Math.max(de.x+We.width-at.width,0),tn=Math.max(de.y+We.height-at.height,0),Jt=Math.max(at.top-ue.top-de.y,0),nn=Math.max(at.left-ue.left-de.x,0),dn=0,On=0;return dn=We.width<=at.width?nn||-Dt:de.x<this._viewportMargin?at.left-ue.left-de.x:0,On=We.height<=at.height?Jt||-tn:de.y<this._viewportMargin?at.top-ue.top-de.y:0,this._previousPushAmount={x:dn,y:On},{x:de.x+dn,y:de.y+On}}},{key:"_applyPosition",value:function(de,Te){if(this._setTransformOrigin(de),this._setOverlayElementStyles(Te,de),this._setBoundingBoxStyles(Te,de),de.panelClass&&this._addPanelClasses(de.panelClass),this._lastPosition=de,this._positionChanges.observers.length){var ue=this._getScrollVisibility(),We=new Xt(de,ue);this._positionChanges.next(We)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(de){if(this._transformOriginSelector){var ue,Te=this._boundingBox.querySelectorAll(this._transformOriginSelector),We=de.overlayY;ue="center"===de.overlayX?"center":this._isRtl()?"start"===de.overlayX?"right":"left":"start"===de.overlayX?"left":"right";for(var at=0;at<Te.length;at++)Te[at].style.transformOrigin="".concat(ue," ").concat(We)}}},{key:"_calculateBoundingBoxRect",value:function(de,Te){var at,Dt,tn,ue=this._viewportRect,We=this._isRtl();if("top"===Te.overlayY)Dt=de.y,at=ue.height-Dt+this._viewportMargin;else if("bottom"===Te.overlayY)tn=ue.height-de.y+2*this._viewportMargin,at=ue.height-tn+this._viewportMargin;else{var Jt=Math.min(ue.bottom-de.y+ue.top,de.y),nn=this._lastBoundingBoxSize.height;at=2*Jt,Dt=de.y-Jt,at>nn&&!this._isInitialRender&&!this._growAfterOpen&&(Dt=de.y-nn/2)}var Dn,zn,Ln,dn="start"===Te.overlayX&&!We||"end"===Te.overlayX&&We;if("end"===Te.overlayX&&!We||"start"===Te.overlayX&&We)Ln=ue.width-de.x+this._viewportMargin,Dn=de.x-this._viewportMargin;else if(dn)zn=de.x,Dn=ue.right-de.x;else{var jn=Math.min(ue.right-de.x+ue.left,de.x),mn=this._lastBoundingBoxSize.width;Dn=2*jn,zn=de.x-jn,Dn>mn&&!this._isInitialRender&&!this._growAfterOpen&&(zn=de.x-mn/2)}return{top:Dt,left:zn,bottom:tn,right:Ln,width:Dn,height:at}}},{key:"_setBoundingBoxStyles",value:function(de,Te){var ue=this._calculateBoundingBoxRect(de,Te);!this._isInitialRender&&!this._growAfterOpen&&(ue.height=Math.min(ue.height,this._lastBoundingBoxSize.height),ue.width=Math.min(ue.width,this._lastBoundingBoxSize.width));var We={};if(this._hasExactPosition())We.top=We.left="0",We.bottom=We.right=We.maxHeight=We.maxWidth="",We.width=We.height="100%";else{var at=this._overlayRef.getConfig().maxHeight,Dt=this._overlayRef.getConfig().maxWidth;We.height=(0,k.HM)(ue.height),We.top=(0,k.HM)(ue.top),We.bottom=(0,k.HM)(ue.bottom),We.width=(0,k.HM)(ue.width),We.left=(0,k.HM)(ue.left),We.right=(0,k.HM)(ue.right),"center"===Te.overlayX?We.alignItems="center":We.alignItems="end"===Te.overlayX?"flex-end":"flex-start","center"===Te.overlayY?We.justifyContent="center":We.justifyContent="bottom"===Te.overlayY?"flex-end":"flex-start",at&&(We.maxHeight=(0,k.HM)(at)),Dt&&(We.maxWidth=(0,k.HM)(Dt))}this._lastBoundingBoxSize=ue,Rt(this._boundingBox.style,We)}},{key:"_resetBoundingBoxStyles",value:function(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(de,Te){var ue={},We=this._hasExactPosition(),at=this._hasFlexibleDimensions,Dt=this._overlayRef.getConfig();if(We){var tn=this._viewportRuler.getViewportScrollPosition();Rt(ue,this._getExactOverlayY(Te,de,tn)),Rt(ue,this._getExactOverlayX(Te,de,tn))}else ue.position="static";var Jt="",nn=this._getOffset(Te,"x"),dn=this._getOffset(Te,"y");nn&&(Jt+="translateX(".concat(nn,"px) ")),dn&&(Jt+="translateY(".concat(dn,"px)")),ue.transform=Jt.trim(),Dt.maxHeight&&(We?ue.maxHeight=(0,k.HM)(Dt.maxHeight):at&&(ue.maxHeight="")),Dt.maxWidth&&(We?ue.maxWidth=(0,k.HM)(Dt.maxWidth):at&&(ue.maxWidth="")),Rt(this._pane.style,ue)}},{key:"_getExactOverlayY",value:function(de,Te,ue){var We={top:"",bottom:""},at=this._getOverlayPoint(Te,this._overlayRect,de);if(this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,ue)),"bottom"===de.overlayY){var Dt=this._document.documentElement.clientHeight;We.bottom="".concat(Dt-(at.y+this._overlayRect.height),"px")}else We.top=(0,k.HM)(at.y);return We}},{key:"_getExactOverlayX",value:function(de,Te,ue){var We={left:"",right:""},at=this._getOverlayPoint(Te,this._overlayRect,de);if(this._isPushed&&(at=this._pushOverlayOnScreen(at,this._overlayRect,ue)),"right"===(this._isRtl()?"end"===de.overlayX?"left":"right":"end"===de.overlayX?"right":"left")){var tn=this._document.documentElement.clientWidth;We.right="".concat(tn-(at.x+this._overlayRect.width),"px")}else We.left=(0,k.HM)(at.x);return We}},{key:"_getScrollVisibility",value:function(){var de=this._getOriginRect(),Te=this._pane.getBoundingClientRect(),ue=this._scrollables.map(function(We){return We.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:_e(de,ue),isOriginOutsideView:xe(de,ue),isOverlayClipped:_e(Te,ue),isOverlayOutsideView:xe(Te,ue)}}},{key:"_subtractOverflows",value:function(de){for(var Te=arguments.length,ue=new Array(Te>1?Te-1:0),We=1;We<Te;We++)ue[We-1]=arguments[We];return ue.reduce(function(at,Dt){return at-Math.max(Dt,0)},de)}},{key:"_getNarrowedViewportRect",value:function(){var de=this._document.documentElement.clientWidth,Te=this._document.documentElement.clientHeight,ue=this._viewportRuler.getViewportScrollPosition();return{top:ue.top+this._viewportMargin,left:ue.left+this._viewportMargin,right:ue.left+de-this._viewportMargin,bottom:ue.top+Te-this._viewportMargin,width:de-2*this._viewportMargin,height:Te-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(de,Te){return"x"===Te?null==de.offsetX?this._offsetX:de.offsetX:null==de.offsetY?this._offsetY:de.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(de){var Te=this;this._pane&&(0,k.Eq)(de).forEach(function(ue){""!==ue&&-1===Te._appliedPanelClasses.indexOf(ue)&&(Te._appliedPanelClasses.push(ue),Te._pane.classList.add(ue))})}},{key:"_clearPanelClasses",value:function(){var de=this;this._pane&&(this._appliedPanelClasses.forEach(function(Te){de._pane.classList.remove(Te)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var de=this._origin;if(de instanceof A.SBq)return de.nativeElement.getBoundingClientRect();if(de instanceof Element)return de.getBoundingClientRect();var Te=de.width||0,ue=de.height||0;return{top:de.y,bottom:de.y+ue,left:de.x,right:de.x+Te,height:ue,width:Te}}}]),Bt}();function Rt(Bt,dt){for(var de in dt)dt.hasOwnProperty(de)&&(Bt[de]=dt[de]);return Bt}function It(Bt){if("number"!=typeof Bt&&null!=Bt){var dt=Bt.split(vt),de=(0,L.Z)(dt,2),Te=de[0],ue=de[1];return ue&&"px"!==ue?null:parseFloat(Te)}return Bt||null}function on(Bt){return{top:Math.floor(Bt.top),right:Math.floor(Bt.right),bottom:Math.floor(Bt.bottom),left:Math.floor(Bt.left),width:Math.floor(Bt.width),height:Math.floor(Bt.height)}}var _n="cdk-global-overlay-wrapper",An=function(){function Bt(){(0,y.Z)(this,Bt),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return(0,K.Z)(Bt,[{key:"attach",value:function(de){var Te=de.getConfig();this._overlayRef=de,this._width&&!Te.width&&de.updateSize({width:this._width}),this._height&&!Te.height&&de.updateSize({height:this._height}),de.hostElement.classList.add(_n),this._isDisposed=!1}},{key:"top",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=de,this._alignItems="flex-start",this}},{key:"left",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=de,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=de,this._alignItems="flex-end",this}},{key:"right",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=de,this._justifyContent="flex-end",this}},{key:"width",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:de}):this._width=de,this}},{key:"height",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:de}):this._height=de,this}},{key:"centerHorizontally",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(de),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var de=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(de),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var de=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement.style,ue=this._overlayRef.getConfig(),We=ue.width,at=ue.height,Dt=ue.maxWidth,tn=ue.maxHeight,Jt=!("100%"!==We&&"100vw"!==We||Dt&&"100%"!==Dt&&"100vw"!==Dt),nn=!("100%"!==at&&"100vh"!==at||tn&&"100%"!==tn&&"100vh"!==tn);de.position=this._cssPosition,de.marginLeft=Jt?"0":this._leftOffset,de.marginTop=nn?"0":this._topOffset,de.marginBottom=this._bottomOffset,de.marginRight=this._rightOffset,Jt?Te.justifyContent="flex-start":"center"===this._justifyContent?Te.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?Te.justifyContent="flex-end":"flex-end"===this._justifyContent&&(Te.justifyContent="flex-start"):Te.justifyContent=this._justifyContent,Te.alignItems=nn?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var de=this._overlayRef.overlayElement.style,Te=this._overlayRef.hostElement,ue=Te.style;Te.classList.remove(_n),ue.justifyContent=ue.alignItems=de.marginTop=de.marginBottom=de.marginLeft=de.marginRight=de.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Bt}(),Gt=function(){function Bt(dt,de,Te,ue){(0,y.Z)(this,Bt),this._viewportRuler=dt,this._document=de,this._platform=Te,this._overlayContainer=ue}return(0,K.Z)(Bt,[{key:"global",value:function(){return new An}},{key:"flexibleConnectedTo",value:function(de){return new nt(de,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Bt}();Gt.\u0275fac=function(dt){return new(dt||Gt)(A.LFG(F.rL),A.LFG(E.K0),A.LFG(I.t4),A.LFG(jt))},Gt.\u0275prov=A.Yz7({token:Gt,factory:Gt.\u0275fac,providedIn:"root"});var Zt=function(){function Bt(dt){(0,y.Z)(this,Bt),this._attachedOverlays=[],this._document=dt}return(0,K.Z)(Bt,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(de){this.remove(de),this._attachedOverlays.push(de)}},{key:"remove",value:function(de){var Te=this._attachedOverlays.indexOf(de);Te>-1&&this._attachedOverlays.splice(Te,1),0===this._attachedOverlays.length&&this.detach()}}]),Bt}();Zt.\u0275fac=function(dt){return new(dt||Zt)(A.LFG(E.K0))},Zt.\u0275prov=A.Yz7({token:Zt,factory:Zt.\u0275fac,providedIn:"root"});var Et=function(Bt){(0,M.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue){var We;return(0,y.Z)(this,de),(We=dt.call(this,Te))._ngZone=ue,We._keydownListener=function(at){for(var Dt=We._attachedOverlays,tn=Dt.length-1;tn>-1;tn--)if(Dt[tn]._keydownEvents.observers.length>0){if("break"===function(){var nn=Dt[tn]._keydownEvents;return We._ngZone?We._ngZone.run(function(){return nn.next(at)}):nn.next(at),"break"}())break}},We}return(0,K.Z)(de,[{key:"add",value:function(ue){var We=this;(0,z.Z)((0,Y.Z)(de.prototype),"add",this).call(this,ue),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return We._document.body.addEventListener("keydown",We._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)}}]),de}(Zt);Et.\u0275fac=function(dt){return new(dt||Et)(A.LFG(E.K0),A.LFG(A.R0b,8))},Et.\u0275prov=A.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"});var Ut=function(Bt){(0,M.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue,We){var at;return(0,y.Z)(this,de),(at=dt.call(this,Te))._platform=ue,at._ngZone=We,at._cursorStyleIsSet=!1,at._pointerDownListener=function(Dt){at._pointerDownEventTarget=(0,I.sA)(Dt)},at._clickListener=function(Dt){var tn=(0,I.sA)(Dt),Jt="click"===Dt.type&&at._pointerDownEventTarget?at._pointerDownEventTarget:tn;at._pointerDownEventTarget=null;for(var nn=at._attachedOverlays.slice(),dn=function(Ln){var jn=nn[Ln];if(jn._outsidePointerEvents.observers.length<1||!jn.hasAttached())return"continue";if(jn.overlayElement.contains(tn)||jn.overlayElement.contains(Jt))return"break";var mn=jn._outsidePointerEvents;at._ngZone?at._ngZone.run(function(){return mn.next(Dt)}):mn.next(Dt)},On=nn.length-1;On>-1;On--){var Dn=dn(On);if("continue"!==Dn&&"break"===Dn)break}},at}return(0,K.Z)(de,[{key:"add",value:function(ue){var We=this;if((0,z.Z)((0,Y.Z)(de.prototype),"add",this).call(this,ue),!this._isAttached){var at=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return We._addEventListeners(at)}):this._addEventListeners(at),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=at.style.cursor,at.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var ue=this._document.body;ue.removeEventListener("pointerdown",this._pointerDownListener,!0),ue.removeEventListener("click",this._clickListener,!0),ue.removeEventListener("auxclick",this._clickListener,!0),ue.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ue.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(ue){ue.addEventListener("pointerdown",this._pointerDownListener,!0),ue.addEventListener("click",this._clickListener,!0),ue.addEventListener("auxclick",this._clickListener,!0),ue.addEventListener("contextmenu",this._clickListener,!0)}}]),de}(Zt);Ut.\u0275fac=function(dt){return new(dt||Ut)(A.LFG(E.K0),A.LFG(I.t4),A.LFG(A.R0b,8))},Ut.\u0275prov=A.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var Ht=0,sn=function(){function Bt(dt,de,Te,ue,We,at,Dt,tn,Jt,nn,dn){(0,y.Z)(this,Bt),this.scrollStrategies=dt,this._overlayContainer=de,this._componentFactoryResolver=Te,this._positionBuilder=ue,this._keyboardDispatcher=We,this._injector=at,this._ngZone=Dt,this._document=tn,this._directionality=Jt,this._location=nn,this._outsideClickDispatcher=dn}return(0,K.Z)(Bt,[{key:"create",value:function(de){var Te=this._createHostElement(),ue=this._createPaneElement(Te),We=this._createPortalOutlet(ue),at=new ct(de);return at.direction=at.direction||this._directionality.value,new Xe(We,Te,ue,at,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(de){var Te=this._document.createElement("div");return Te.id="cdk-overlay-".concat(Ht++),Te.classList.add("cdk-overlay-pane"),de.appendChild(Te),Te}},{key:"_createHostElement",value:function(){var de=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(de),de}},{key:"_createPortalOutlet",value:function(de){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new w.u0(de,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Bt}();sn.\u0275fac=function(dt){return new(dt||sn)(A.LFG(Be),A.LFG(jt),A.LFG(A._Vd),A.LFG(Gt),A.LFG(Et),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(E.K0),A.LFG(T.Is),A.LFG(E.Ye),A.LFG(Ut))},sn.\u0275prov=A.Yz7({token:sn,factory:sn.\u0275fac});var yt=[{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"}],mt=new A.OlP("cdk-connected-overlay-scroll-strategy"),cn=(0,K.Z)(function Bt(dt){(0,y.Z)(this,Bt),this.elementRef=dt});cn.\u0275fac=function(dt){return new(dt||cn)(A.Y36(A.SBq))},cn.\u0275dir=A.lG2({type:cn,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var $t=function(){function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._overlay=dt,this._dir=We,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=N.w.EMPTY,this._attachSubscription=N.w.EMPTY,this._detachSubscription=N.w.EMPTY,this._positionSubscription=N.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new w.UE(de,Te),this._scrollStrategyFactory=ue,this.scrollStrategy=this._scrollStrategyFactory()}return(0,K.Z)(Bt,[{key:"offsetX",get:function(){return this._offsetX},set:function(de){this._offsetX=de,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(de){this._offsetY=de,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(de){this._hasBackdrop=(0,k.Ig)(de)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(de){this._lockPosition=(0,k.Ig)(de)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(de){this._flexibleDimensions=(0,k.Ig)(de)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(de){this._growAfterOpen=(0,k.Ig)(de)}},{key:"push",get:function(){return this._push},set:function(de){this._push=(0,k.Ig)(de)}},{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(de){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),de.origin&&this.open&&this._position.apply()),de.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var de=this;(!this.positions||!this.positions.length)&&(this.positions=yt);var Te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Te.attachments().subscribe(function(){return de.attach.emit()}),this._detachSubscription=Te.detachments().subscribe(function(){return de.detach.emit()}),Te.keydownEvents().subscribe(function(ue){de.overlayKeydown.next(ue),ue.keyCode===se.hY&&!de.disableClose&&!(0,se.Vb)(ue)&&(ue.preventDefault(),de._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(ue){de.overlayOutsideClick.next(ue)})}},{key:"_buildConfig",value:function(){var de=this._position=this.positionStrategy||this._createPositionStrategy(),Te=new ct({direction:this._dir,positionStrategy:de,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Te.width=this.width),(this.height||0===this.height)&&(Te.height=this.height),(this.minWidth||0===this.minWidth)&&(Te.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Te.minHeight=this.minHeight),this.backdropClass&&(Te.backdropClass=this.backdropClass),this.panelClass&&(Te.panelClass=this.panelClass),Te}},{key:"_updatePositionStrategy",value:function(de){var Te=this,ue=this.positions.map(function(We){return{originX:We.originX,originY:We.originY,overlayX:We.overlayX,overlayY:We.overlayY,offsetX:We.offsetX||Te.offsetX,offsetY:We.offsetY||Te.offsetY,panelClass:We.panelClass||void 0}});return de.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(ue).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var de=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(de),de}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof cn?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var de=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(Te){de.backdropClick.emit(Te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,ce.o)(function(){return de.positionChange.observers.length>0})).subscribe(function(Te){de.positionChange.emit(Te),0===de.positionChange.observers.length&&de._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Bt}();$t.\u0275fac=function(dt){return new(dt||$t)(A.Y36(sn),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(mt),A.Y36(T.Is,8))},$t.\u0275dir=A.lG2({type:$t,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:[A.TTD]});var V={provide:mt,deps:[sn],useFactory:function j(Bt){return function(){return Bt.scrollStrategies.reposition()}}},Jn=(0,K.Z)(function Bt(){(0,y.Z)(this,Bt)});Jn.\u0275fac=function(dt){return new(dt||Jn)},Jn.\u0275mod=A.oAB({type:Jn}),Jn.\u0275inj=A.cJS({providers:[sn,V],imports:[[T.vT,w.eL,F.Cl],F.Cl]});var wn=function(Bt){(0,M.Z)(de,Bt);var dt=(0,U.Z)(de);function de(Te,ue){return(0,y.Z)(this,de),dt.call(this,Te,ue)}return(0,K.Z)(de,[{key:"ngOnDestroy",value:function(){(0,z.Z)((0,Y.Z)(de.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return ue._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(ue){var We=this._getEventName();We&&(this._fullScreenListener&&this._document.removeEventListener(We,this._fullScreenListener),this._document.addEventListener(We,ue),this._fullScreenListener=ue)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var ue=this._document;ue.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":ue.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":ue.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":ue.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var ue=this._document;return ue.fullscreenElement||ue.webkitFullscreenElement||ue.mozFullScreenElement||ue.msFullscreenElement||null}}]),de}(jt);wn.\u0275fac=function(dt){return new(dt||wn)(A.LFG(E.K0),A.LFG(I.t4))},wn.\u0275prov=A.Yz7({token:wn,factory:wn.\u0275fac,providedIn:"root"})},925:function(qe,J,m){"use strict";m.d(J,{Mq:function(){return w},Oy:function(){return se},_i:function(){return S},ht:function(){return $},i$:function(){return k},kV:function(){return W},qK:function(){return F},sA:function(){return ce},t4:function(){return P}});var L,z=m(3144),Y=m(5671),M=m(5e3),U=m(9808);try{L="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ee){L=!1}var P=(0,z.Z)(function ee(oe){(0,Y.Z)(this,ee),this._platformId=oe,this.isBrowser=this._platformId?(0,U.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&&!L)&&"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(oe){return new(oe||P)(M.LFG(M.Lbi))},P.\u0275prov=M.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var D=(0,z.Z)(function ee(){(0,Y.Z)(this,ee)});D.\u0275fac=function(oe){return new(oe||D)},D.\u0275mod=M.oAB({type:D}),D.\u0275inj=M.cJS({});var y,E,I,T,N,K=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function F(){if(y)return y;if("object"!=typeof document||!document)return y=new Set(K);var ee=document.createElement("input");return y=new Set(K.filter(function(oe){return ee.setAttribute("type",oe),ee.type===oe}))}function k(ee){return function A(){if(null==E&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return E=!0}}))}finally{E=E||!1}return E}()?ee:!!ee.capture}function w(){if(null==T){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return T=!1;if("scrollBehavior"in document.documentElement.style)T=!0;else{var ee=Element.prototype.scrollTo;T=!!ee&&!/\{\s*\[native code\]\s*\}/.test(ee.toString())}}return T}function S(){if("object"!=typeof document||!document)return 0;if(null==I){var ee=document.createElement("div"),oe=ee.style;ee.dir="rtl",oe.width="1px",oe.overflow="auto",oe.visibility="hidden",oe.pointerEvents="none",oe.position="absolute";var ge=document.createElement("div"),Oe=ge.style;Oe.width="2px",Oe.height="1px",ee.appendChild(ge),document.body.appendChild(ee),I=0,0===ee.scrollLeft&&(ee.scrollLeft=1,I=0===ee.scrollLeft?1:2),ee.remove()}return I}function W(ee){if(function R(){if(null==N){var ee="undefined"!=typeof document?document.head:null;N=!(!ee||!ee.createShadowRoot&&!ee.attachShadow)}return N}()){var oe=ee.getRootNode?ee.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&oe instanceof ShadowRoot)return oe}return null}function $(){for(var ee="undefined"!=typeof document&&document?document.activeElement:null;ee&&ee.shadowRoot;){var oe=ee.shadowRoot.activeElement;if(oe===ee)break;ee=oe}return ee}function ce(ee){return ee.composedPath?ee.composedPath()[0]:ee.target}function se(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(qe,J,m){"use strict";m.d(J,{C5:function(){return S},Pl:function(){return ge},UE:function(){return N},eL:function(){return ot},en:function(){return W},ig:function(){return ee},u0:function(){return ce}});var z=m(7326),Y=m(3237),M=m(1120),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(5e3),K=m(9808);var w=function(){function _e(){(0,P.Z)(this,_e)}return(0,D.Z)(_e,[{key:"attach",value:function(Be){return this._attachedHost=Be,Be.attach(this)}},{key:"detach",value:function(){var Be=this._attachedHost;null!=Be&&(this._attachedHost=null,Be.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(Be){this._attachedHost=Be}}]),_e}(),S=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct,Mt,Nt,Xt){var en;return(0,P.Z)(this,Be),(en=ke.call(this)).component=ct,en.viewContainerRef=Mt,en.injector=Nt,en.componentFactoryResolver=Xt,en}return(0,D.Z)(Be)}(w),N=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct,Mt,Nt){var Xt;return(0,P.Z)(this,Be),(Xt=ke.call(this)).templateRef=ct,Xt.viewContainerRef=Mt,Xt.context=Nt,Xt}return(0,D.Z)(Be,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(Mt){var Nt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=Nt,(0,Y.Z)((0,M.Z)(Be.prototype),"attach",this).call(this,Mt)}},{key:"detach",value:function(){return this.context=void 0,(0,Y.Z)((0,M.Z)(Be.prototype),"detach",this).call(this)}}]),Be}(w),R=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct){var Mt;return(0,P.Z)(this,Be),(Mt=ke.call(this)).element=ct instanceof y.SBq?ct.nativeElement:ct,Mt}return(0,D.Z)(Be)}(w),W=function(){function _e(){(0,P.Z)(this,_e),this._isDisposed=!1,this.attachDomPortal=null}return(0,D.Z)(_e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(Be){return Be instanceof S?(this._attachedPortal=Be,this.attachComponentPortal(Be)):Be instanceof N?(this._attachedPortal=Be,this.attachTemplatePortal(Be)):this.attachDomPortal&&Be instanceof R?(this._attachedPortal=Be,this.attachDomPortal(Be)):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(Be){this._disposeFn=Be}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),_e}(),ce=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct,Mt,Nt,Xt,en){var qt,Xe;return(0,P.Z)(this,Be),(Xe=ke.call(this)).outletElement=ct,Xe._componentFactoryResolver=Mt,Xe._appRef=Nt,Xe._defaultInjector=Xt,Xe.attachDomPortal=function(jt){Xe._document;var rt=jt.element;rt.parentNode;var vt=Xe._document.createComment("dom-portal");rt.parentNode.insertBefore(vt,rt),Xe.outletElement.appendChild(rt),Xe._attachedPortal=jt,(0,Y.Z)((qt=(0,z.Z)(Xe),(0,M.Z)(Be.prototype)),"setDisposeFn",qt).call(qt,function(){vt.parentNode&&vt.parentNode.replaceChild(rt,vt)})},Xe._document=en,Xe}return(0,D.Z)(Be,[{key:"attachComponentPortal",value:function(Mt){var qt,Nt=this,en=(Mt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Mt.component);return Mt.viewContainerRef?(qt=Mt.viewContainerRef.createComponent(en,Mt.viewContainerRef.length,Mt.injector||Mt.viewContainerRef.injector),this.setDisposeFn(function(){return qt.destroy()})):(qt=en.create(Mt.injector||this._defaultInjector||y.zs3.NULL),this._appRef.attachView(qt.hostView),this.setDisposeFn(function(){Nt._appRef.viewCount>0&&Nt._appRef.detachView(qt.hostView),qt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(qt)),this._attachedPortal=Mt,qt}},{key:"attachTemplatePortal",value:function(Mt){var Nt=this,Xt=Mt.viewContainerRef,en=Xt.createEmbeddedView(Mt.templateRef,Mt.context);return en.rootNodes.forEach(function(qt){return Nt.outletElement.appendChild(qt)}),en.detectChanges(),this.setDisposeFn(function(){var qt=Xt.indexOf(en);-1!==qt&&Xt.remove(qt)}),this._attachedPortal=Mt,en}},{key:"dispose",value:function(){(0,Y.Z)((0,M.Z)(Be.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(Mt){return Mt.hostView.rootNodes[0]}}]),Be}(W),ee=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct,Mt){return(0,P.Z)(this,Be),ke.call(this,ct,Mt)}return(0,D.Z)(Be)}(N);ee.\u0275fac=function(ke){return new(ke||ee)(y.Y36(y.Rgc),y.Y36(y.s_b))},ee.\u0275dir=y.lG2({type:ee,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[y.qOj]});var oe=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(){return(0,P.Z)(this,Be),ke.apply(this,arguments)}return(0,D.Z)(Be)}(ee);oe.\u0275fac=function(){var _e;return function(Be){return(_e||(_e=y.n5z(oe)))(Be||oe)}}(),oe.\u0275dir=y.lG2({type:oe,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[y._Bn([{provide:ee,useExisting:oe}]),y.qOj]});var ge=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(ct,Mt,Nt){var Xt,en;return(0,P.Z)(this,Be),(en=ke.call(this))._componentFactoryResolver=ct,en._viewContainerRef=Mt,en._isInitialized=!1,en.attached=new y.vpe,en.attachDomPortal=function(qt){en._document;var Xe=qt.element;Xe.parentNode;var jt=en._document.createComment("dom-portal");qt.setAttachedHost((0,z.Z)(en)),Xe.parentNode.insertBefore(jt,Xe),en._getRootNode().appendChild(Xe),en._attachedPortal=qt,(0,Y.Z)((Xt=(0,z.Z)(en),(0,M.Z)(Be.prototype)),"setDisposeFn",Xt).call(Xt,function(){jt.parentNode&&jt.parentNode.replaceChild(Xe,jt)})},en._document=Nt,en}return(0,D.Z)(Be,[{key:"portal",get:function(){return this._attachedPortal},set:function(Mt){this.hasAttached()&&!Mt&&!this._isInitialized||(this.hasAttached()&&(0,Y.Z)((0,M.Z)(Be.prototype),"detach",this).call(this),Mt&&(0,Y.Z)((0,M.Z)(Be.prototype),"attach",this).call(this,Mt),this._attachedPortal=Mt||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,Y.Z)((0,M.Z)(Be.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(Mt){Mt.setAttachedHost(this);var Nt=null!=Mt.viewContainerRef?Mt.viewContainerRef:this._viewContainerRef,en=(Mt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Mt.component),qt=Nt.createComponent(en,Nt.length,Mt.injector||Nt.injector);return Nt!==this._viewContainerRef&&this._getRootNode().appendChild(qt.hostView.rootNodes[0]),(0,Y.Z)((0,M.Z)(Be.prototype),"setDisposeFn",this).call(this,function(){return qt.destroy()}),this._attachedPortal=Mt,this._attachedRef=qt,this.attached.emit(qt),qt}},{key:"attachTemplatePortal",value:function(Mt){var Nt=this;Mt.setAttachedHost(this);var Xt=this._viewContainerRef.createEmbeddedView(Mt.templateRef,Mt.context);return(0,Y.Z)((0,M.Z)(Be.prototype),"setDisposeFn",this).call(this,function(){return Nt._viewContainerRef.clear()}),this._attachedPortal=Mt,this._attachedRef=Xt,this.attached.emit(Xt),Xt}},{key:"_getRootNode",value:function(){var Mt=this._viewContainerRef.element.nativeElement;return Mt.nodeType===Mt.ELEMENT_NODE?Mt:Mt.parentNode}}]),Be}(W);ge.\u0275fac=function(ke){return new(ke||ge)(y.Y36(y._Vd),y.Y36(y.s_b),y.Y36(K.K0))},ge.\u0275dir=y.lG2({type:ge,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[y.qOj]});var Oe=function(_e){(0,U.Z)(Be,_e);var ke=(0,L.Z)(Be);function Be(){return(0,P.Z)(this,Be),ke.apply(this,arguments)}return(0,D.Z)(Be)}(ge);Oe.\u0275fac=function(){var _e;return function(Be){return(_e||(_e=y.n5z(Oe)))(Be||Oe)}}(),Oe.\u0275dir=y.lG2({type:Oe,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[y._Bn([{provide:ge,useExisting:Oe}]),y.qOj]});var ot=(0,D.Z)(function _e(){(0,P.Z)(this,_e)});ot.\u0275fac=function(ke){return new(ke||ot)},ot.\u0275mod=y.oAB({type:ot}),ot.\u0275inj=y.cJS({})},9071:function(qe,J,m){"use strict";m.d(J,{Cl:function(){return An},PQ:function(){return Xe},ZD:function(){return _n},mF:function(){return qt},rL:function(){return rt}});var z=m(7685),Y=m(7762),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(3191),F=m(5e3),E=m(8929),A=m(1086),k=m(7451),I=m(3753),T=m(352),w=m(9931),S=m(4096),N=m(4715),R=m(5778),W=m(7568),$=m(9664),ce=m(7625),se=m(1059),ee=m(519),oe=m(7545),ge=m(5154),Oe=m(9808),ot=m(925),xe=m(226),_e=m(449),ke=["contentWrapper"],ct=new F.OlP("VIRTUAL_SCROLL_STRATEGY"),Mt=function(){function Gt(Zt,Et,Ut){(0,D.Z)(this,Gt),this._scrolledIndexChange=new E.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,R.x)()),this._viewport=null,this._itemSize=Zt,this._minBufferPx=Et,this._maxBufferPx=Ut}return(0,y.Z)(Gt,[{key:"attach",value:function(Et){this._viewport=Et,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(Et,Ut,Ht){this._itemSize=Et,this._minBufferPx=Ut,this._maxBufferPx=Ht,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(Et,Ut){this._viewport&&this._viewport.scrollToOffset(Et*this._itemSize,Ut)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var Et=this._viewport.getRenderedRange(),Ut={start:Et.start,end:Et.end},Ht=this._viewport.getViewportSize(),sn=this._viewport.getDataLength(),yt=this._viewport.measureScrollOffset(),mt=this._itemSize>0?yt/this._itemSize:0;if(Ut.end>sn){var cn=Math.ceil(Ht/this._itemSize),$t=Math.max(0,Math.min(mt,sn-cn));mt!=$t&&(mt=$t,yt=$t*this._itemSize,Ut.start=Math.floor(mt)),Ut.end=Math.max(0,Math.min(sn,Ut.start+cn))}var j=yt-Ut.start*this._itemSize;if(j<this._minBufferPx&&0!=Ut.start){var V=Math.ceil((this._maxBufferPx-j)/this._itemSize);Ut.start=Math.max(0,Ut.start-V),Ut.end=Math.min(sn,Math.ceil(mt+(Ht+this._minBufferPx)/this._itemSize))}else{var Jn=Ut.end*this._itemSize-(yt+Ht);if(Jn<this._minBufferPx&&Ut.end!=sn){var wn=Math.ceil((this._maxBufferPx-Jn)/this._itemSize);wn>0&&(Ut.end=Math.min(sn,Ut.end+wn),Ut.start=Math.max(0,Math.floor(mt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Ut),this._viewport.setRenderedContentOffset(this._itemSize*Ut.start),this._scrolledIndexChange.next(Math.floor(mt))}}}]),Gt}();var Xt=function(){function Gt(){(0,D.Z)(this,Gt),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,y.Z)(Gt,[{key:"itemSize",get:function(){return this._itemSize},set:function(Et){this._itemSize=(0,K.su)(Et)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(Et){this._minBufferPx=(0,K.su)(Et)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(Et){this._maxBufferPx=(0,K.su)(Et)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),Gt}();Xt.\u0275fac=function(Zt){return new(Zt||Xt)},Xt.\u0275dir=F.lG2({type:Xt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[F._Bn([{provide:ct,useFactory:function Nt(Gt){return Gt._scrollStrategy},deps:[(0,F.Gpc)(function(){return Xt})]}]),F.TTD]});var qt=function(){function Gt(Zt,Et,Ut){(0,D.Z)(this,Gt),this._ngZone=Zt,this._platform=Et,this._scrolled=new E.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ut}return(0,y.Z)(Gt,[{key:"register",value:function(Et){var Ut=this;this.scrollContainers.has(Et)||this.scrollContainers.set(Et,Et.elementScrolled().subscribe(function(){return Ut._scrolled.next(Et)}))}},{key:"deregister",value:function(Et){var Ut=this.scrollContainers.get(Et);Ut&&(Ut.unsubscribe(),this.scrollContainers.delete(Et))}},{key:"scrolled",value:function(){var Et=this,Ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new k.y(function(Ht){Et._globalSubscription||Et._addGlobalListener();var sn=Ut>0?Et._scrolled.pipe((0,W.e)(Ut)).subscribe(Ht):Et._scrolled.subscribe(Ht);return Et._scrolledCount++,function(){sn.unsubscribe(),Et._scrolledCount--,Et._scrolledCount||Et._removeGlobalListener()}}):(0,A.of)()}},{key:"ngOnDestroy",value:function(){var Et=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(Ut,Ht){return Et.deregister(Ht)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(Et,Ut){var Ht=this.getAncestorScrollContainers(Et);return this.scrolled(Ut).pipe((0,$.h)(function(sn){return!sn||Ht.indexOf(sn)>-1}))}},{key:"getAncestorScrollContainers",value:function(Et){var Ut=this,Ht=[];return this.scrollContainers.forEach(function(sn,yt){Ut._scrollableContainsElement(yt,Et)&&Ht.push(yt)}),Ht}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(Et,Ut){var Ht=(0,K.fI)(Ut),sn=Et.getElementRef().nativeElement;do{if(Ht==sn)return!0}while(Ht=Ht.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var Et=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var Ut=Et._getWindow();return(0,I.R)(Ut.document,"scroll").subscribe(function(){return Et._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Gt}();qt.\u0275fac=function(Zt){return new(Zt||qt)(F.LFG(F.R0b),F.LFG(ot.t4),F.LFG(Oe.K0,8))},qt.\u0275prov=F.Yz7({token:qt,factory:qt.\u0275fac,providedIn:"root"});var Xe=function(){function Gt(Zt,Et,Ut,Ht){var sn=this;(0,D.Z)(this,Gt),this.elementRef=Zt,this.scrollDispatcher=Et,this.ngZone=Ut,this.dir=Ht,this._destroyed=new E.xQ,this._elementScrolled=new k.y(function(yt){return sn.ngZone.runOutsideAngular(function(){return(0,I.R)(sn.elementRef.nativeElement,"scroll").pipe((0,ce.R)(sn._destroyed)).subscribe(yt)})})}return(0,y.Z)(Gt,[{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(Et){var Ut=this.elementRef.nativeElement,Ht=this.dir&&"rtl"==this.dir.value;null==Et.left&&(Et.left=Ht?Et.end:Et.start),null==Et.right&&(Et.right=Ht?Et.start:Et.end),null!=Et.bottom&&(Et.top=Ut.scrollHeight-Ut.clientHeight-Et.bottom),Ht&&0!=(0,ot._i)()?(null!=Et.left&&(Et.right=Ut.scrollWidth-Ut.clientWidth-Et.left),2==(0,ot._i)()?Et.left=Et.right:1==(0,ot._i)()&&(Et.left=Et.right?-Et.right:Et.right)):null!=Et.right&&(Et.left=Ut.scrollWidth-Ut.clientWidth-Et.right),this._applyScrollToOptions(Et)}},{key:"_applyScrollToOptions",value:function(Et){var Ut=this.elementRef.nativeElement;(0,ot.Mq)()?Ut.scrollTo(Et):(null!=Et.top&&(Ut.scrollTop=Et.top),null!=Et.left&&(Ut.scrollLeft=Et.left))}},{key:"measureScrollOffset",value:function(Et){var Ut="left",sn=this.elementRef.nativeElement;if("top"==Et)return sn.scrollTop;if("bottom"==Et)return sn.scrollHeight-sn.clientHeight-sn.scrollTop;var yt=this.dir&&"rtl"==this.dir.value;return"start"==Et?Et=yt?"right":Ut:"end"==Et&&(Et=yt?Ut:"right"),yt&&2==(0,ot._i)()?Et==Ut?sn.scrollWidth-sn.clientWidth-sn.scrollLeft:sn.scrollLeft:yt&&1==(0,ot._i)()?Et==Ut?sn.scrollLeft+sn.scrollWidth-sn.clientWidth:-sn.scrollLeft:Et==Ut?sn.scrollLeft:sn.scrollWidth-sn.clientWidth-sn.scrollLeft}}]),Gt}();Xe.\u0275fac=function(Zt){return new(Zt||Xe)(F.Y36(F.SBq),F.Y36(qt),F.Y36(F.R0b),F.Y36(xe.Is,8))},Xe.\u0275dir=F.lG2({type:Xe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var rt=function(){function Gt(Zt,Et,Ut){var Ht=this;(0,D.Z)(this,Gt),this._platform=Zt,this._change=new E.xQ,this._changeListener=function(sn){Ht._change.next(sn)},this._document=Ut,Et.runOutsideAngular(function(){if(Zt.isBrowser){var sn=Ht._getWindow();sn.addEventListener("resize",Ht._changeListener),sn.addEventListener("orientationchange",Ht._changeListener)}Ht.change().subscribe(function(){return Ht._viewportSize=null})})}return(0,y.Z)(Gt,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var Et=this._getWindow();Et.removeEventListener("resize",this._changeListener),Et.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var Et={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Et}},{key:"getViewportRect",value:function(){var Et=this.getViewportScrollPosition(),Ut=this.getViewportSize(),Ht=Ut.width,sn=Ut.height;return{top:Et.top,left:Et.left,bottom:Et.top+sn,right:Et.left+Ht,height:sn,width:Ht}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var Et=this._document,Ut=this._getWindow(),Ht=Et.documentElement,sn=Ht.getBoundingClientRect();return{top:-sn.top||Et.body.scrollTop||Ut.scrollY||Ht.scrollTop||0,left:-sn.left||Et.body.scrollLeft||Ut.scrollX||Ht.scrollLeft||0}}},{key:"change",value:function(){var Et=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return Et>0?this._change.pipe((0,W.e)(Et)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var Et=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Et.innerWidth,height:Et.innerHeight}:{width:0,height:0}}}]),Gt}();rt.\u0275fac=function(Zt){return new(Zt||rt)(F.LFG(ot.t4),F.LFG(F.R0b),F.LFG(Oe.K0,8))},rt.\u0275prov=F.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"});var nt="undefined"!=typeof requestAnimationFrame?T.Z:w.E,Rt=function(Gt){(0,L.Z)(Et,Gt);var Zt=(0,P.Z)(Et);function Et(Ut,Ht,sn,yt,mt,cn,$t){var j;return(0,D.Z)(this,Et),(j=Zt.call(this,Ut,cn,sn,mt)).elementRef=Ut,j._changeDetectorRef=Ht,j._scrollStrategy=yt,j._detachedSubject=new E.xQ,j._renderedRangeSubject=new E.xQ,j._orientation="vertical",j._appendOnly=!1,j.scrolledIndexChange=new k.y(function(V){return j._scrollStrategy.scrolledIndexChange.subscribe(function(Jn){return Promise.resolve().then(function(){return j.ngZone.run(function(){return V.next(Jn)})})})}),j.renderedRangeStream=j._renderedRangeSubject,j._totalContentSize=0,j._totalContentWidth="",j._totalContentHeight="",j._renderedRange={start:0,end:0},j._dataLength=0,j._viewportSize=0,j._renderedContentOffset=0,j._renderedContentOffsetNeedsRewrite=!1,j._isChangeDetectionPending=!1,j._runAfterChangeDetection=[],j._viewportChanges=S.w.EMPTY,j._viewportChanges=$t.change().subscribe(function(){j.checkViewportSize()}),j}return(0,y.Z)(Et,[{key:"orientation",get:function(){return this._orientation},set:function(Ht){this._orientation!==Ht&&(this._orientation=Ht,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Ht){this._appendOnly=(0,K.Ig)(Ht)}},{key:"ngOnInit",value:function(){var Ht=this;(0,M.Z)((0,U.Z)(Et.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Ht._measureViewportSize(),Ht._scrollStrategy.attach(Ht),Ht.elementScrolled().pipe((0,se.O)(null),(0,W.e)(0,nt)).subscribe(function(){return Ht._scrollStrategy.onContentScrolled()}),Ht._markChangeDetectionNeeded()})})}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,M.Z)((0,U.Z)(Et.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Ht){var sn=this;this._forOf,this.ngZone.runOutsideAngular(function(){sn._forOf=Ht,sn._forOf.dataStream.pipe((0,ce.R)(sn._detachedSubject)).subscribe(function(yt){var mt=yt.length;mt!==sn._dataLength&&(sn._dataLength=mt,sn._scrollStrategy.onDataLengthChanged()),sn._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:"setTotalContentSize",value:function(Ht){this._totalContentSize!==Ht&&(this._totalContentSize=Ht,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Ht){var sn=this;(function vt(Gt,Zt){return Gt.start==Zt.start&&Gt.end==Zt.end})(this._renderedRange,Ht)||(this.appendOnly&&(Ht={start:0,end:Math.max(this._renderedRange.end,Ht.end)}),this._renderedRangeSubject.next(this._renderedRange=Ht),this._markChangeDetectionNeeded(function(){return sn._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Ht){var sn=this,yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start",mt=this.dir&&"rtl"==this.dir.value,cn="horizontal"==this.orientation,$t=cn?"X":"Y",j=cn&&mt?-1:1,V="translate".concat($t,"(").concat(Number(j*Ht),"px)");Ht=this.appendOnly&&"to-start"===yt?0:Ht,this._renderedContentOffset=Ht,"to-end"===yt&&(V+=" translate".concat($t,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=V&&(this._renderedContentTransform=V,this._markChangeDetectionNeeded(function(){sn._renderedContentOffsetNeedsRewrite?(sn._renderedContentOffset-=sn.measureRenderedContentSize(),sn._renderedContentOffsetNeedsRewrite=!1,sn.setRenderedContentOffset(sn._renderedContentOffset)):sn._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Ht){var sn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",yt={behavior:sn};"horizontal"===this.orientation?yt.start=Ht:yt.top=Ht,this.scrollTo(yt)}},{key:"scrollToIndex",value:function(Ht){var sn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Ht,sn)}},{key:"measureScrollOffset",value:function(Ht){return Ht?(0,M.Z)((0,U.Z)(Et.prototype),"measureScrollOffset",this).call(this,Ht):(0,M.Z)((0,U.Z)(Et.prototype),"measureScrollOffset",this).call(this,"horizontal"===this.orientation?"start":"top")}},{key:"measureRenderedContentSize",value:function(){var Ht=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Ht.offsetWidth:Ht.offsetHeight}},{key:"measureRangeSize",value:function(Ht){return this._forOf?this._forOf.measureRangeSize(Ht,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){var Ht=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?Ht.clientWidth:Ht.clientHeight}},{key:"_markChangeDetectionNeeded",value:function(Ht){var sn=this;Ht&&this._runAfterChangeDetection.push(Ht),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){sn._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Ht=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Ht._changeDetectorRef.markForCheck()});var sn=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var mt,yt=(0,Y.Z)(sn);try{for(yt.s();!(mt=yt.n()).done;){(0,mt.value)()}}catch($t){yt.e($t)}finally{yt.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),Et}(Xe);function It(Gt,Zt,Et){var Ut=Et;if(!Ut.getBoundingClientRect)return 0;var Ht=Ut.getBoundingClientRect();return"horizontal"===Gt?"start"===Zt?Ht.left:Ht.right:"start"===Zt?Ht.top:Ht.bottom}Rt.\u0275fac=function(Zt){return new(Zt||Rt)(F.Y36(F.SBq),F.Y36(F.sBO),F.Y36(F.R0b),F.Y36(ct,8),F.Y36(xe.Is,8),F.Y36(qt),F.Y36(rt))},Rt.\u0275cmp=F.Xpm({type:Rt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Zt,Et){var Ut;(1&Zt&&F.Gf(ke,7),2&Zt)&&(F.iGM(Ut=F.CRH())&&(Et._contentWrapper=Ut.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Zt,Et){2&Zt&&F.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Et.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Et.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[F._Bn([{provide:Xe,useExisting:Rt}]),F.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Zt,Et){1&Zt&&(F.F$t(),F.TgZ(0,"div",0,1),F.Hsn(2),F.qZA(),F._UZ(3,"div",2)),2&Zt&&(F.xp6(3),F.Udp("width",Et._totalContentWidth)("height",Et._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-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{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0});var on=function(){function Gt(Zt,Et,Ut,Ht,sn,yt){var mt=this;(0,D.Z)(this,Gt),this._viewContainerRef=Zt,this._template=Et,this._differs=Ut,this._viewRepeater=Ht,this._viewport=sn,this.viewChange=new E.xQ,this._dataSourceChanges=new E.xQ,this.dataStream=this._dataSourceChanges.pipe((0,se.O)(null),(0,ee.G)(),(0,oe.w)(function(cn){var $t=(0,z.Z)(cn,2),j=$t[0],V=$t[1];return mt._changeDataSource(j,V)}),(0,ge.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new E.xQ,this.dataStream.subscribe(function(cn){mt._data=cn,mt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,ce.R)(this._destroyed)).subscribe(function(cn){mt._renderedRange=cn,mt.viewChange.observers.length&&yt.run(function(){return mt.viewChange.next(mt._renderedRange)}),mt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,y.Z)(Gt,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(Et){this._cdkVirtualForOf=Et,(0,_e.Z9)(Et)?this._dataSourceChanges.next(Et):this._dataSourceChanges.next(new _e.P3((0,N.b)(Et)?Et:Array.from(Et||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(Et){var Ut=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=Et?function(Ht,sn){return Et(Ht+(Ut._renderedRange?Ut._renderedRange.start:0),sn)}:void 0}},{key:"cdkVirtualForTemplate",set:function(Et){Et&&(this._needsUpdate=!0,this._template=Et)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(Et){this._viewRepeater.viewCacheSize=(0,K.su)(Et)}},{key:"measureRangeSize",value:function(Et,Ut){if(Et.start>=Et.end)return 0;Et.start<this._renderedRange.start||(Et.end,this._renderedRange.end);for(var yt,mt,Ht=Et.start-this._renderedRange.start,sn=Et.end-Et.start,cn=0;cn<sn;cn++){var $t=this._viewContainerRef.get(cn+Ht);if($t&&$t.rootNodes.length){yt=mt=$t.rootNodes[0];break}}for(var j=sn-1;j>-1;j--){var V=this._viewContainerRef.get(j+Ht);if(V&&V.rootNodes.length){mt=V.rootNodes[V.rootNodes.length-1];break}}return yt&&mt?It(Ut,"end",mt)-It(Ut,"start",yt):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var Et=this._differ.diff(this._renderedItems);Et?this._applyChanges(Et):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 Et=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(Ut,Ht){return Et.cdkVirtualForTrackBy?Et.cdkVirtualForTrackBy(Ut,Ht):Ht})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(Et,Ut){return Et&&Et.disconnect(this),this._needsUpdate=!0,Ut?Ut.connect(this):(0,A.of)()}},{key:"_updateContext",value:function(){for(var Et=this._data.length,Ut=this._viewContainerRef.length;Ut--;){var Ht=this._viewContainerRef.get(Ut);Ht.context.index=this._renderedRange.start+Ut,Ht.context.count=Et,this._updateComputedContextProperties(Ht.context),Ht.detectChanges()}}},{key:"_applyChanges",value:function(Et){var Ut=this;this._viewRepeater.applyChanges(Et,this._viewContainerRef,function(mt,cn,$t){return Ut._getEmbeddedViewArgs(mt,$t)},function(mt){return mt.item}),Et.forEachIdentityChange(function(mt){Ut._viewContainerRef.get(mt.currentIndex).context.$implicit=mt.item});for(var Ht=this._data.length,sn=this._viewContainerRef.length;sn--;){var yt=this._viewContainerRef.get(sn);yt.context.index=this._renderedRange.start+sn,yt.context.count=Ht,this._updateComputedContextProperties(yt.context)}}},{key:"_updateComputedContextProperties",value:function(Et){Et.first=0===Et.index,Et.last=Et.index===Et.count-1,Et.even=Et.index%2==0,Et.odd=!Et.even}},{key:"_getEmbeddedViewArgs",value:function(Et,Ut){return{templateRef:this._template,context:{$implicit:Et.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ut}}}]),Gt}();on.\u0275fac=function(Zt){return new(Zt||on)(F.Y36(F.s_b),F.Y36(F.Rgc),F.Y36(F.ZZ4),F.Y36(_e.k),F.Y36(Rt,4),F.Y36(F.R0b))},on.\u0275dir=F.lG2({type:on,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[F._Bn([{provide:_e.k,useClass:_e.eX}])]});var _n=(0,y.Z)(function Gt(){(0,D.Z)(this,Gt)});_n.\u0275fac=function(Zt){return new(Zt||_n)},_n.\u0275mod=F.oAB({type:_n}),_n.\u0275inj=F.cJS({});var An=(0,y.Z)(function Gt(){(0,D.Z)(this,Gt)});An.\u0275fac=function(Zt){return new(Zt||An)},An.\u0275mod=F.oAB({type:An}),An.\u0275inj=F.cJS({imports:[[xe.vT,_n],xe.vT,_n]})},9808:function(qe,J,m){"use strict";m.d(J,{Do:function(){return Oe},ED:function(){return Ko},EM:function(){return es},HT:function(){return E},JF:function(){return Eu},K0:function(){return k},Mx:function(){return lo},NF:function(){return $a},O5:function(){return hr},Ov:function(){return ei},PC:function(){return ws},RF:function(){return Do},S$:function(){return se},V_:function(){return w},Ye:function(){return ot},b0:function(){return ge},bD:function(){return ba},ez:function(){return us},lw:function(){return I},mk:function(){return uo},mr:function(){return oe},n9:function(){return _i},q:function(){return K},sg:function(){return $r},tP:function(){return oa},w_:function(){return A}});var z=m(7762),Y=m(7685),M=m(136),U=m(9388),L=m(3144),P=m(5671),D=m(5e3),y=null;function K(){return y}function E(ve){y||(y=ve)}var A=(0,L.Z)(function ve(){(0,P.Z)(this,ve)}),k=new D.OlP("DocumentToken"),I=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"historyGo",value:function(Ge){throw new Error("Not implemented")}}]),ve}();I.\u0275fac=function(Pe){return new(Pe||I)},I.\u0275prov=D.Yz7({token:I,factory:function(){return function T(){return(0,D.LFG)(S)}()},providedIn:"platform"});var w=new D.OlP("Location Initialized"),S=function(ve){(0,M.Z)(Ge,ve);var Pe=(0,U.Z)(Ge);function Ge(gt){var St;return(0,P.Z)(this,Ge),(St=Pe.call(this))._doc=gt,St._init(),St}return(0,L.Z)(Ge,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return K().getBaseHref(this._doc)}},{key:"onPopState",value:function(St){var un=K().getGlobalEventTarget(this._doc,"window");return un.addEventListener("popstate",St,!1),function(){return un.removeEventListener("popstate",St)}}},{key:"onHashChange",value:function(St){var un=K().getGlobalEventTarget(this._doc,"window");return un.addEventListener("hashchange",St,!1),function(){return un.removeEventListener("hashchange",St)}}},{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(St){this.location.pathname=St}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(St,un,Mn){N()?this._history.pushState(St,un,Mn):this.location.hash=Mn}},{key:"replaceState",value:function(St,un,Mn){N()?this._history.replaceState(St,un,Mn):this.location.hash=Mn}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(St)}},{key:"getState",value:function(){return this._history.state}}]),Ge}(I);function N(){return!!window.history.pushState}function W(ve,Pe){if(0==ve.length)return Pe;if(0==Pe.length)return ve;var Ge=0;return ve.endsWith("/")&&Ge++,Pe.startsWith("/")&&Ge++,2==Ge?ve+Pe.substring(1):1==Ge?ve+Pe:ve+"/"+Pe}function $(ve){var Pe=ve.match(/#|\?|$/),Ge=Pe&&Pe.index||ve.length,gt=Ge-("/"===ve[Ge-1]?1:0);return ve.slice(0,gt)+ve.slice(Ge)}function ce(ve){return ve&&"?"!==ve[0]?"?"+ve:ve}S.\u0275fac=function(Pe){return new(Pe||S)(D.LFG(k))},S.\u0275prov=D.Yz7({token:S,factory:function(){return function R(){return new S((0,D.LFG)(k))}()},providedIn:"platform"});var se=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"historyGo",value:function(Ge){throw new Error("Not implemented")}}]),ve}();se.\u0275fac=function(Pe){return new(Pe||se)},se.\u0275prov=D.Yz7({token:se,factory:function(){return function ee(ve){var Pe=(0,D.LFG)(k).location;return new ge((0,D.LFG)(I),Pe&&Pe.origin||"")}()},providedIn:"root"});var oe=new D.OlP("appBaseHref"),ge=function(ve){(0,M.Z)(Ge,ve);var Pe=(0,U.Z)(Ge);function Ge(gt,St){var un;if((0,P.Z)(this,Ge),(un=Pe.call(this))._platformLocation=gt,un._removeListenerFns=[],null==St&&(St=un._platformLocation.getBaseHrefFromDOM()),null==St)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return un._baseHref=St,un}return(0,L.Z)(Ge,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(St){this._removeListenerFns.push(this._platformLocation.onPopState(St),this._platformLocation.onHashChange(St))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(St){return W(this._baseHref,St)}},{key:"path",value:function(){var St=arguments.length>0&&void 0!==arguments[0]&&arguments[0],un=this._platformLocation.pathname+ce(this._platformLocation.search),Mn=this._platformLocation.hash;return Mn&&St?"".concat(un).concat(Mn):un}},{key:"pushState",value:function(St,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));this._platformLocation.pushState(St,un,Or)}},{key:"replaceState",value:function(St,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));this._platformLocation.replaceState(St,un,Or)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var un,Mn,St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(un=this._platformLocation).historyGo)||void 0===Mn||Mn.call(un,St)}}]),Ge}(se);ge.\u0275fac=function(Pe){return new(Pe||ge)(D.LFG(I),D.LFG(oe,8))},ge.\u0275prov=D.Yz7({token:ge,factory:ge.\u0275fac});var Oe=function(ve){(0,M.Z)(Ge,ve);var Pe=(0,U.Z)(Ge);function Ge(gt,St){var un;return(0,P.Z)(this,Ge),(un=Pe.call(this))._platformLocation=gt,un._baseHref="",un._removeListenerFns=[],null!=St&&(un._baseHref=St),un}return(0,L.Z)(Ge,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(St){this._removeListenerFns.push(this._platformLocation.onPopState(St),this._platformLocation.onHashChange(St))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var un=this._platformLocation.hash;return null==un&&(un="#"),un.length>0?un.substring(1):un}},{key:"prepareExternalUrl",value:function(St){var un=W(this._baseHref,St);return un.length>0?"#"+un:un}},{key:"pushState",value:function(St,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));0==Or.length&&(Or=this._platformLocation.pathname),this._platformLocation.pushState(St,un,Or)}},{key:"replaceState",value:function(St,un,Mn,Pn){var Or=this.prepareExternalUrl(Mn+ce(Pn));0==Or.length&&(Or=this._platformLocation.pathname),this._platformLocation.replaceState(St,un,Or)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var un,Mn,St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Mn=(un=this._platformLocation).historyGo)||void 0===Mn||Mn.call(un,St)}}]),Ge}(se);Oe.\u0275fac=function(Pe){return new(Pe||Oe)(D.LFG(I),D.LFG(oe,8))},Oe.\u0275prov=D.Yz7({token:Oe,factory:Oe.\u0275fac});var ot=function(){function ve(Pe,Ge){var gt=this;(0,P.Z)(this,ve),this._subject=new D.vpe,this._urlChangeListeners=[],this._platformStrategy=Pe;var St=this._platformStrategy.getBaseHref();this._platformLocation=Ge,this._baseHref=$(ke(St)),this._platformStrategy.onPopState(function(un){gt._subject.emit({url:gt.path(!0),pop:!0,state:un.state,type:un.type})})}return(0,L.Z)(ve,[{key:"path",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(Ge))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(Ge+ce(gt))}},{key:"normalize",value:function(Ge){return ve.stripTrailingSlash(function _e(ve,Pe){return ve&&Pe.startsWith(ve)?Pe.substring(ve.length):Pe}(this._baseHref,ke(Ge)))}},{key:"prepareExternalUrl",value:function(Ge){return Ge&&"/"!==Ge[0]&&(Ge="/"+Ge),this._platformStrategy.prepareExternalUrl(Ge)}},{key:"go",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(St,"",Ge,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ge+ce(gt)),St)}},{key:"replaceState",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(St,"",Ge,gt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ge+ce(gt)),St)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var gt,St,Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(St=(gt=this._platformStrategy).historyGo)||void 0===St||St.call(gt,Ge)}},{key:"onUrlChange",value:function(Ge){var gt=this;this._urlChangeListeners.push(Ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(St){gt._notifyUrlChangeListeners(St.url,St.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var Ge=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",gt=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(St){return St(Ge,gt)})}},{key:"subscribe",value:function(Ge,gt,St){return this._subject.subscribe({next:Ge,error:gt,complete:St})}}]),ve}();function ke(ve){return ve.replace(/\/index.html$/,"")}ot.normalizeQueryParams=ce,ot.joinWithSlash=W,ot.stripTrailingSlash=$,ot.\u0275fac=function(Pe){return new(Pe||ot)(D.LFG(se),D.LFG(I))},ot.\u0275prov=D.Yz7({token:ot,factory:function(){return function xe(){return new ot((0,D.LFG)(se),(0,D.LFG)(I))}()},providedIn:"root"});var ct,ve,Mt,Nt,Xt,en,qt,Xe,Be={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,"\u0440.",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"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],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 _n(ve,Pe){return Jn((0,D.cg1)(ve)[D.wAp.DateFormat],Pe)}function An(ve,Pe){return Jn((0,D.cg1)(ve)[D.wAp.TimeFormat],Pe)}function Gt(ve,Pe){return Jn((0,D.cg1)(ve)[D.wAp.DateTimeFormat],Pe)}function Zt(ve,Pe){var Ge=(0,D.cg1)(ve),gt=Ge[D.wAp.NumberSymbols][Pe];if(void 0===gt){if(Pe===qt.CurrencyDecimal)return Ge[D.wAp.NumberSymbols][qt.Decimal];if(Pe===qt.CurrencyGroup)return Ge[D.wAp.NumberSymbols][qt.Group]}return gt}function Et(ve,Pe){return(0,D.cg1)(ve)[D.wAp.NumberFormats][Pe]}function yt(ve){return(0,D.cg1)(ve)[D.wAp.Currencies]}(ve=ct||(ct={}))[ve.Decimal=0]="Decimal",ve[ve.Percent=1]="Percent",ve[ve.Currency=2]="Currency",ve[ve.Scientific=3]="Scientific",function(ve){ve[ve.Zero=0]="Zero",ve[ve.One=1]="One",ve[ve.Two=2]="Two",ve[ve.Few=3]="Few",ve[ve.Many=4]="Many",ve[ve.Other=5]="Other"}(Mt||(Mt={})),function(ve){ve[ve.Format=0]="Format",ve[ve.Standalone=1]="Standalone"}(Nt||(Nt={})),function(ve){ve[ve.Narrow=0]="Narrow",ve[ve.Abbreviated=1]="Abbreviated",ve[ve.Wide=2]="Wide",ve[ve.Short=3]="Short"}(Xt||(Xt={})),function(ve){ve[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full"}(en||(en={})),function(ve){ve[ve.Decimal=0]="Decimal",ve[ve.Group=1]="Group",ve[ve.List=2]="List",ve[ve.PercentSign=3]="PercentSign",ve[ve.PlusSign=4]="PlusSign",ve[ve.MinusSign=5]="MinusSign",ve[ve.Exponential=6]="Exponential",ve[ve.SuperscriptingExponent=7]="SuperscriptingExponent",ve[ve.PerMille=8]="PerMille",ve[ve.Infinity=9]="Infinity",ve[ve.NaN=10]="NaN",ve[ve.TimeSeparator=11]="TimeSeparator",ve[ve.CurrencyDecimal=12]="CurrencyDecimal",ve[ve.CurrencyGroup=13]="CurrencyGroup"}(qt||(qt={})),function(ve){ve[ve.Sunday=0]="Sunday",ve[ve.Monday=1]="Monday",ve[ve.Tuesday=2]="Tuesday",ve[ve.Wednesday=3]="Wednesday",ve[ve.Thursday=4]="Thursday",ve[ve.Friday=5]="Friday",ve[ve.Saturday=6]="Saturday"}(Xe||(Xe={}));var mt=D.kL8;function cn(ve){if(!ve[D.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ve[D.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Jn(ve,Pe){for(var Ge=Pe;Ge>-1;Ge--)if(void 0!==ve[Ge])return ve[Ge];throw new Error("Locale data API: locale data undefined")}function wn(ve){var Pe=ve.split(":"),Ge=(0,Y.Z)(Pe,2);return{hours:+Ge[0],minutes:+Ge[1]}}function Bt(ve,Pe){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",gt=yt(Ge)[ve]||Be[ve]||[],St=gt[1];return"narrow"===Pe&&"string"==typeof St?St:gt[0]||ve}var at,Dt,tn,Te=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ue={},We=/((?:[^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 Jt(ve,Pe,Ge,gt){var St=function Se(ve){if(Qe(ve))return ve;if("number"==typeof ve&&!isNaN(ve))return new Date(ve);if("string"==typeof ve){if(ve=ve.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ve)){var Pe=ve.split("-").map(function(ai){return+ai}),Ge=(0,Y.Z)(Pe,3),gt=Ge[0],St=Ge[1],un=void 0===St?1:St,Mn=Ge[2];return nn(gt,un-1,void 0===Mn?1:Mn)}var jr,Or=parseFloat(ve);if(!isNaN(ve-Or))return new Date(Or);if(jr=ve.match(Te))return function Ae(ve){var Pe=new Date(0),Ge=0,gt=0,St=ve[8]?Pe.setUTCFullYear:Pe.setFullYear,un=ve[8]?Pe.setUTCHours:Pe.setHours;ve[9]&&(Ge=Number(ve[9]+ve[10]),gt=Number(ve[9]+ve[11])),St.call(Pe,Number(ve[1]),Number(ve[2])-1,Number(ve[3]));var Mn=Number(ve[4]||0)-Ge,Pn=Number(ve[5]||0)-gt,Or=Number(ve[6]||0),jr=Math.floor(1e3*parseFloat("0."+(ve[7]||0)));return un.call(Pe,Mn,Pn,Or,jr),Pe}(jr)}var ar=new Date(ve);if(!Qe(ar))throw new Error('Unable to convert "'.concat(ve,'" into a date'));return ar}(ve);Pe=dn(Ge,Pe)||Pe;for(var Pn,Mn=[];Pe;){if(!(Pn=We.exec(Pe))){Mn.push(Pe);break}var Or=(Mn=Mn.concat(Pn.slice(1))).pop();if(!Or)break;Pe=Or}var jr=St.getTimezoneOffset();gt&&(jr=rr(gt,jr),St=function lt(ve,Pe,Ge){var gt=Ge?-1:1,St=ve.getTimezoneOffset(),un=rr(Pe,St);return function pn(ve,Pe){return(ve=new Date(ve.getTime())).setMinutes(ve.getMinutes()+Pe),ve}(ve,gt*(un-St))}(St,gt,!0));var ar="";return Mn.forEach(function(ai){var Xi=function En(ve){if(Yt[ve])return Yt[ve];var Pe;switch(ve){case"G":case"GG":case"GGG":Pe=mn(tn.Eras,Xt.Abbreviated);break;case"GGGG":Pe=mn(tn.Eras,Xt.Wide);break;case"GGGGG":Pe=mn(tn.Eras,Xt.Narrow);break;case"y":Pe=Ln(Dt.FullYear,1,0,!1,!0);break;case"yy":Pe=Ln(Dt.FullYear,2,0,!0,!0);break;case"yyy":Pe=Ln(Dt.FullYear,3,0,!1,!0);break;case"yyyy":Pe=Ln(Dt.FullYear,4,0,!1,!0);break;case"Y":Pe=bt(1);break;case"YY":Pe=bt(2,!0);break;case"YYY":Pe=bt(3);break;case"YYYY":Pe=bt(4);break;case"M":case"L":Pe=Ln(Dt.Month,1,1);break;case"MM":case"LL":Pe=Ln(Dt.Month,2,1);break;case"MMM":Pe=mn(tn.Months,Xt.Abbreviated);break;case"MMMM":Pe=mn(tn.Months,Xt.Wide);break;case"MMMMM":Pe=mn(tn.Months,Xt.Narrow);break;case"LLL":Pe=mn(tn.Months,Xt.Abbreviated,Nt.Standalone);break;case"LLLL":Pe=mn(tn.Months,Xt.Wide,Nt.Standalone);break;case"LLLLL":Pe=mn(tn.Months,Xt.Narrow,Nt.Standalone);break;case"w":Pe=He(1);break;case"ww":Pe=He(2);break;case"W":Pe=He(1,!0);break;case"d":Pe=Ln(Dt.Date,1);break;case"dd":Pe=Ln(Dt.Date,2);break;case"c":case"cc":Pe=Ln(Dt.Day,1);break;case"ccc":Pe=mn(tn.Days,Xt.Abbreviated,Nt.Standalone);break;case"cccc":Pe=mn(tn.Days,Xt.Wide,Nt.Standalone);break;case"ccccc":Pe=mn(tn.Days,Xt.Narrow,Nt.Standalone);break;case"cccccc":Pe=mn(tn.Days,Xt.Short,Nt.Standalone);break;case"E":case"EE":case"EEE":Pe=mn(tn.Days,Xt.Abbreviated);break;case"EEEE":Pe=mn(tn.Days,Xt.Wide);break;case"EEEEE":Pe=mn(tn.Days,Xt.Narrow);break;case"EEEEEE":Pe=mn(tn.Days,Xt.Short);break;case"a":case"aa":case"aaa":Pe=mn(tn.DayPeriods,Xt.Abbreviated);break;case"aaaa":Pe=mn(tn.DayPeriods,Xt.Wide);break;case"aaaaa":Pe=mn(tn.DayPeriods,Xt.Narrow);break;case"b":case"bb":case"bbb":Pe=mn(tn.DayPeriods,Xt.Abbreviated,Nt.Standalone,!0);break;case"bbbb":Pe=mn(tn.DayPeriods,Xt.Wide,Nt.Standalone,!0);break;case"bbbbb":Pe=mn(tn.DayPeriods,Xt.Narrow,Nt.Standalone,!0);break;case"B":case"BB":case"BBB":Pe=mn(tn.DayPeriods,Xt.Abbreviated,Nt.Format,!0);break;case"BBBB":Pe=mn(tn.DayPeriods,Xt.Wide,Nt.Format,!0);break;case"BBBBB":Pe=mn(tn.DayPeriods,Xt.Narrow,Nt.Format,!0);break;case"h":Pe=Ln(Dt.Hours,1,-12);break;case"hh":Pe=Ln(Dt.Hours,2,-12);break;case"H":Pe=Ln(Dt.Hours,1);break;case"HH":Pe=Ln(Dt.Hours,2);break;case"m":Pe=Ln(Dt.Minutes,1);break;case"mm":Pe=Ln(Dt.Minutes,2);break;case"s":Pe=Ln(Dt.Seconds,1);break;case"ss":Pe=Ln(Dt.Seconds,2);break;case"S":Pe=Ln(Dt.FractionalSeconds,1);break;case"SS":Pe=Ln(Dt.FractionalSeconds,2);break;case"SSS":Pe=Ln(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Pe=Yn(at.Short);break;case"ZZZZZ":Pe=Yn(at.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Pe=Yn(at.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Pe=Yn(at.Long);break;default:return null}return Yt[ve]=Pe,Pe}(ai);ar+=Xi?Xi(St,Ge,jr):"''"===ai?"'":ai.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ar}function nn(ve,Pe,Ge){var gt=new Date(0);return gt.setFullYear(ve,Pe,Ge),gt.setHours(0,0,0),gt}function dn(ve,Pe){var Ge=function jt(ve){return(0,D.cg1)(ve)[D.wAp.LocaleId]}(ve);if(ue[Ge]=ue[Ge]||{},ue[Ge][Pe])return ue[Ge][Pe];var gt="";switch(Pe){case"shortDate":gt=_n(ve,en.Short);break;case"mediumDate":gt=_n(ve,en.Medium);break;case"longDate":gt=_n(ve,en.Long);break;case"fullDate":gt=_n(ve,en.Full);break;case"shortTime":gt=An(ve,en.Short);break;case"mediumTime":gt=An(ve,en.Medium);break;case"longTime":gt=An(ve,en.Long);break;case"fullTime":gt=An(ve,en.Full);break;case"short":var St=dn(ve,"shortTime"),un=dn(ve,"shortDate");gt=On(Gt(ve,en.Short),[St,un]);break;case"medium":var Mn=dn(ve,"mediumTime"),Pn=dn(ve,"mediumDate");gt=On(Gt(ve,en.Medium),[Mn,Pn]);break;case"long":var Or=dn(ve,"longTime"),jr=dn(ve,"longDate");gt=On(Gt(ve,en.Long),[Or,jr]);break;case"full":var ar=dn(ve,"fullTime"),ai=dn(ve,"fullDate");gt=On(Gt(ve,en.Full),[ar,ai])}return gt&&(ue[Ge][Pe]=gt),gt}function On(ve,Pe){return Pe&&(ve=ve.replace(/\{([^}]+)}/g,function(Ge,gt){return null!=Pe&> in Pe?Pe[gt]:Ge})),ve}function Dn(ve,Pe){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",gt=arguments.length>3?arguments[3]:void 0,St=arguments.length>4?arguments[4]:void 0,un="";(ve<0||St&&ve<=0)&&(St?ve=1-ve:(ve=-ve,un=Ge));for(var Mn=String(ve);Mn.length<Pe;)Mn="0"+Mn;return gt&&(Mn=Mn.substr(Mn.length-Pe)),un+Mn}function zn(ve,Pe){return Dn(ve,3).substr(0,Pe)}function Ln(ve,Pe){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,gt=arguments.length>3&&void 0!==arguments[3]&&arguments[3],St=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(un,Mn){var Pn=jn(ve,un);if((Ge>0||Pn>-Ge)&&(Pn+=Ge),ve===Dt.Hours)0===Pn&&-12===Ge&&(Pn=12);else if(ve===Dt.FractionalSeconds)return zn(Pn,Pe);var Or=Zt(Mn,qt.MinusSign);return Dn(Pn,Pe,Or,gt,St)}}function jn(ve,Pe){switch(ve){case Dt.FullYear:return Pe.getFullYear();case Dt.Month:return Pe.getMonth();case Dt.Date:return Pe.getDate();case Dt.Hours:return Pe.getHours();case Dt.Minutes:return Pe.getMinutes();case Dt.Seconds:return Pe.getSeconds();case Dt.FractionalSeconds:return Pe.getMilliseconds();case Dt.Day:return Pe.getDay();default:throw new Error('Unknown DateType value "'.concat(ve,'".'))}}function mn(ve,Pe){var Ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt.Format,gt=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(St,un){return lr(St,un,ve,Pe,Ge,gt)}}function lr(ve,Pe,Ge,gt,St,un){switch(Ge){case tn.Months:return function nt(ve,Pe,Ge){var gt=(0,D.cg1)(ve),un=Jn([gt[D.wAp.MonthsFormat],gt[D.wAp.MonthsStandalone]],Pe);return Jn(un,Ge)}(Pe,St,gt)[ve.getMonth()];case tn.Days:return function vt(ve,Pe,Ge){var gt=(0,D.cg1)(ve),un=Jn([gt[D.wAp.DaysFormat],gt[D.wAp.DaysStandalone]],Pe);return Jn(un,Ge)}(Pe,St,gt)[ve.getDay()];case tn.DayPeriods:var Mn=ve.getHours(),Pn=ve.getMinutes();if(un){var Or=function $t(ve){var Pe=(0,D.cg1)(ve);return cn(Pe),(Pe[D.wAp.ExtraData][2]||[]).map(function(gt){return"string"==typeof gt?wn(gt):[wn(gt[0]),wn(gt[1])]})}(Pe),jr=function j(ve,Pe,Ge){var gt=(0,D.cg1)(ve);cn(gt);var un=Jn([gt[D.wAp.ExtraData][0],gt[D.wAp.ExtraData][1]],Pe)||[];return Jn(un,Ge)||[]}(Pe,St,gt),ar=Or.findIndex(function(Xi){if(Array.isArray(Xi)){var So=(0,Y.Z)(Xi,2),xi=So[0],Xo=So[1],Ve=Mn>=xi.hours&&Pn>=xi.minutes,Le=Mn<Xo.hours||Mn===Xo.hours&&Pn<Xo.minutes;if(xi.hours<Xo.hours){if(Ve&&Le)return!0}else if(Ve||Le)return!0}else if(Xi.hours===Mn&&Xi.minutes===Pn)return!0;return!1});if(-1!==ar)return jr[ar]}return function rt(ve,Pe,Ge){var gt=(0,D.cg1)(ve),un=Jn([gt[D.wAp.DayPeriodsFormat],gt[D.wAp.DayPeriodsStandalone]],Pe);return Jn(un,Ge)}(Pe,St,gt)[Mn<12?0:1];case tn.Eras:return function Rt(ve,Pe){return Jn((0,D.cg1)(ve)[D.wAp.Eras],Pe)}(Pe,gt)[ve.getFullYear()<=0?0:1];default:var ai=Ge;throw new Error("unexpected translation type ".concat(ai))}}function Yn(ve){return function(Pe,Ge,gt){var St=-1*gt,un=Zt(Ge,qt.MinusSign),Mn=St>0?Math.floor(St/60):Math.ceil(St/60);switch(ve){case at.Short:return(St>=0?"+":"")+Dn(Mn,2,un)+Dn(Math.abs(St%60),2,un);case at.ShortGMT:return"GMT"+(St>=0?"+":"")+Dn(Mn,1,un);case at.Long:return"GMT"+(St>=0?"+":"")+Dn(Mn,2,un)+":"+Dn(Math.abs(St%60),2,un);case at.Extended:return 0===gt?"Z":(St>=0?"+":"")+Dn(Mn,2,un)+":"+Dn(Math.abs(St%60),2,un);default:throw new Error('Unknown zone width "'.concat(ve,'"'))}}}!function(ve){ve[ve.Short=0]="Short",ve[ve.ShortGMT=1]="ShortGMT",ve[ve.Long=2]="Long",ve[ve.Extended=3]="Extended"}(at||(at={})),function(ve){ve[ve.FullYear=0]="FullYear",ve[ve.Month=1]="Month",ve[ve.Date=2]="Date",ve[ve.Hours=3]="Hours",ve[ve.Minutes=4]="Minutes",ve[ve.Seconds=5]="Seconds",ve[ve.FractionalSeconds=6]="FractionalSeconds",ve[ve.Day=7]="Day"}(Dt||(Dt={})),function(ve){ve[ve.DayPeriods=0]="DayPeriods",ve[ve.Days=1]="Days",ve[ve.Months=2]="Months",ve[ve.Eras=3]="Eras"}(tn||(tn={}));function Ue(ve){var Pe=nn(ve,0,1).getDay();return nn(ve,0,1+(Pe<=4?4:11)-Pe)}function Ee(ve){return nn(ve.getFullYear(),ve.getMonth(),ve.getDate()+(4-ve.getDay()))}function He(ve){var Pe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(Ge,gt){var St;if(Pe){var un=new Date(Ge.getFullYear(),Ge.getMonth(),1).getDay()-1,Mn=Ge.getDate();St=1+Math.floor((Mn+un)/7)}else{var Pn=Ee(Ge),Or=Ue(Pn.getFullYear()),jr=Pn.getTime()-Or.getTime();St=1+Math.round(jr/6048e5)}return Dn(St,ve,Zt(gt,qt.MinusSign))}}function bt(ve){var Pe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(Ge,gt){return Dn(Ee(Ge).getFullYear(),ve,Zt(gt,qt.MinusSign),Pe)}}var Yt={};function rr(ve,Pe){ve=ve.replace(/:/g,"");var Ge=Date.parse("Jan 01, 1970 00:00:00 "+ve)/6e4;return isNaN(Ge)?Pe:Ge}function Qe(ve){return ve instanceof Date&&!isNaN(ve.valueOf())}var _t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Rn="0";function bo(ve,Pe,Ge,gt,St,un){var Mn=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Pn="",Or=!1;if(isFinite(ve)){var jr=qo(ve);Mn&&(jr=_a(jr));var ar=Pe.minInt,ai=Pe.minFrac,Xi=Pe.maxFrac;if(un){var So=un.match(_t);if(null===So)throw new Error("".concat(un," is not a valid digit info"));var xi=So[1],Xo=So[3],Ve=So[5];null!=xi&&(ar=Ja(xi)),null!=Xo&&(ai=Ja(Xo)),null!=Ve?Xi=Ja(Ve):null!=Xo&&ai>Xi&&(Xi=ai)}yi(jr,ai,Xi);var Le=jr.digits,be=jr.integerLen,Je=jr.exponent,Ke=[];for(Or=Le.every(function(an){return!an});be<ar;be++)Le.unshift(0);for(;be<0;be++)Le.unshift(0);be>0?Ke=Le.splice(be,Le.length):(Ke=Le,Le=[0]);var Pt=[];for(Le.length>=Pe.lgSize&&Pt.unshift(Le.splice(-Pe.lgSize,Le.length).join(""));Le.length>Pe.gSize;)Pt.unshift(Le.splice(-Pe.gSize,Le.length).join(""));Le.length&&Pt.unshift(Le.join("")),Pn=Pt.join(Zt(Ge,gt)),Ke.length&&(Pn+=Zt(Ge,St)+Ke.join("")),Je&&(Pn+=Zt(Ge,qt.Exponential)+"+"+Je)}else Pn=Zt(Ge,qt.Infinity);return Pn=ve<0&&!Or?Pe.negPre+Pn+Pe.negSuf:Pe.posPre+Pn+Pe.posSuf}function Gi(ve,Pe,Ge,gt,St){var Mn=Go(Et(Pe,ct.Currency),Zt(Pe,qt.MinusSign));return Mn.minFrac=function de(ve){var Pe,Ge=Be[ve];return Ge&&(Pe=Ge[2]),"number"==typeof Pe?Pe:2}(gt),Mn.maxFrac=Mn.minFrac,bo(ve,Mn,Pe,qt.CurrencyGroup,qt.CurrencyDecimal,St).replace("\xa4",Ge).replace("\xa4","").trim()}function Go(ve){var Pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",Ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},gt=ve.split(";"),St=gt[0],un=gt[1],Mn=-1!==St.indexOf(".")?St.split("."):[St.substring(0,St.lastIndexOf(Rn)+1),St.substring(St.lastIndexOf(Rn)+1)],Pn=Mn[0],Or=Mn[1]||"";Ge.posPre=Pn.substr(0,Pn.indexOf("#"));for(var jr=0;jr<Or.length;jr++){var ar=Or.charAt(jr);ar===Rn?Ge.minFrac=Ge.maxFrac=jr+1:"#"===ar?Ge.maxFrac=jr+1:Ge.posSuf+=ar}var ai=Pn.split(",");if(Ge.gSize=ai[1]?ai[1].length:0,Ge.lgSize=ai[2]||ai[1]?(ai[2]||ai[1]).length:0,un){var Xi=St.length-Ge.posPre.length-Ge.posSuf.length,So=un.indexOf("#");Ge.negPre=un.substr(0,So).replace(/'/g,""),Ge.negSuf=un.substr(So+Xi).replace(/'/g,"")}else Ge.negPre=Pe+Ge.posPre,Ge.negSuf=Ge.posSuf;return Ge}function _a(ve){if(0===ve.digits[0])return ve;var Pe=ve.digits.length-ve.integerLen;return ve.exponent?ve.exponent+=2:(0===Pe?ve.digits.push(0,0):1===Pe&&ve.digits.push(0),ve.integerLen+=2),ve}function qo(ve){var gt,St,un,Mn,Pn,Pe=Math.abs(ve)+"",Ge=0;for((St=Pe.indexOf("."))>-1&&(Pe=Pe.replace(".","")),(un=Pe.search(/e/i))>0?(St<0&&(St=un),St+=+Pe.slice(un+1),Pe=Pe.substring(0,un)):St<0&&(St=Pe.length),un=0;Pe.charAt(un)===Rn;un++);if(un===(Pn=Pe.length))gt=[0],St=1;else{for(Pn--;Pe.charAt(Pn)===Rn;)Pn--;for(St-=un,gt=[],Mn=0;un<=Pn;un++,Mn++)gt[Mn]=Number(Pe.charAt(un))}return St>22&&(gt=gt.splice(0,21),Ge=St-1,St=1),{digits:gt,exponent:Ge,integerLen:St}}function yi(ve,Pe,Ge){if(Pe>Ge)throw new Error("The minimum number of digits after fraction (".concat(Pe,") is higher than the maximum (").concat(Ge,")."));var gt=ve.digits,St=gt.length-ve.integerLen,un=Math.min(Math.max(Pe,St),Ge),Mn=un+ve.integerLen,Pn=gt[Mn];if(Mn>0){gt.splice(Math.max(ve.integerLen,Mn));for(var Or=Mn;Or<gt.length;Or++)gt[Or]=0}else{St=Math.max(0,St),ve.integerLen=1,gt.length=Math.max(1,Mn=un+1),gt[0]=0;for(var jr=1;jr<Mn;jr++)gt[jr]=0}if(Pn>=5)if(Mn-1<0){for(var ar=0;ar>Mn;ar--)gt.unshift(0),ve.integerLen++;gt.unshift(1),ve.integerLen++}else gt[Mn-1]++;for(;St<Math.max(0,un);St++)gt.push(0);var ai=0!==un,Xi=Pe+ve.integerLen,So=gt.reduceRight(function(xi,Xo,Ve,Le){return Xo+=xi,Le[Ve]=Xo<10?Xo:Xo-10,ai&&(0===Le[Ve]&&Ve>=Xi?Le.pop():ai=!1),Xo>=10?1:0},0);So&&(gt.unshift(So),ve.integerLen++)}function Ja(ve){var Pe=parseInt(ve);if(isNaN(Pe))throw new Error("Invalid integer literal when parsing "+ve);return Pe}var zi=(0,L.Z)(function ve(){(0,P.Z)(this,ve)});function or(ve,Pe,Ge,gt){var St="=".concat(ve);if(Pe.indexOf(St)>-1||(St=Ge.getPluralCategory(ve,gt),Pe.indexOf(St)>-1))return St;if(Pe.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ve,'"'))}zi.\u0275fac=function(Pe){return new(Pe||zi)},zi.\u0275prov=D.Yz7({token:zi,factory:function(Pe){var gt,Ge=null;return Pe?Ge=new Pe:(gt=D.LFG(D.soG),Ge=new Pr(gt)),Ge},providedIn:"root"});var Pr=function(ve){(0,M.Z)(Ge,ve);var Pe=(0,U.Z)(Ge);function Ge(gt){var St;return(0,P.Z)(this,Ge),(St=Pe.call(this)).locale=gt,St}return(0,L.Z)(Ge,[{key:"getPluralCategory",value:function(St,un){switch(mt(un||this.locale)(St)){case Mt.Zero:return"zero";case Mt.One:return"one";case Mt.Two:return"two";case Mt.Few:return"few";case Mt.Many:return"many";default:return"other"}}}]),Ge}(zi);function lo(ve,Pe){Pe=encodeURIComponent(Pe);var gt,Ge=(0,z.Z)(ve.split(";"));try{for(Ge.s();!(gt=Ge.n()).done;){var St=gt.value,un=St.indexOf("="),Mn=-1==un?[St,""]:[St.slice(0,un),St.slice(un+1)],Pn=(0,Y.Z)(Mn,2),Or=Pn[0],jr=Pn[1];if(Or.trim()===Pe)return decodeURIComponent(jr)}}catch(ar){Ge.e(ar)}finally{Ge.f()}return null}Pr.\u0275fac=function(Pe){return new(Pe||Pr)(D.LFG(D.soG))},Pr.\u0275prov=D.Yz7({token:Pr,factory:Pr.\u0275fac});var uo=function(){function ve(Pe,Ge,gt,St){(0,P.Z)(this,ve),this._iterableDiffers=Pe,this._keyValueDiffers=Ge,this._ngEl=gt,this._renderer=St,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,L.Z)(ve,[{key:"klass",set:function(Ge){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Ge?Ge.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(Ge){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Ge?Ge.split(/\s+/):Ge,this._rawClass&&((0,D.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 Ge=this._iterableDiffer.diff(this._rawClass);Ge&&this._applyIterableChanges(Ge)}else if(this._keyValueDiffer){var gt=this._keyValueDiffer.diff(this._rawClass);gt&&this._applyKeyValueChanges(gt)}}},{key:"_applyKeyValueChanges",value:function(Ge){var gt=this;Ge.forEachAddedItem(function(St){return gt._toggleClass(St.key,St.currentValue)}),Ge.forEachChangedItem(function(St){return gt._toggleClass(St.key,St.currentValue)}),Ge.forEachRemovedItem(function(St){St.previousValue&>._toggleClass(St.key,!1)})}},{key:"_applyIterableChanges",value:function(Ge){var gt=this;Ge.forEachAddedItem(function(St){if("string"!=typeof St.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,D.AaK)(St.item)));gt._toggleClass(St.item,!0)}),Ge.forEachRemovedItem(function(St){return gt._toggleClass(St.item,!1)})}},{key:"_applyClasses",value:function(Ge){var gt=this;Ge&&(Array.isArray(Ge)||Ge instanceof Set?Ge.forEach(function(St){return gt._toggleClass(St,!0)}):Object.keys(Ge).forEach(function(St){return gt._toggleClass(St,!!Ge[St])}))}},{key:"_removeClasses",value:function(Ge){var gt=this;Ge&&(Array.isArray(Ge)||Ge instanceof Set?Ge.forEach(function(St){return gt._toggleClass(St,!1)}):Object.keys(Ge).forEach(function(St){return gt._toggleClass(St,!1)}))}},{key:"_toggleClass",value:function(Ge,gt){var St=this;(Ge=Ge.trim())&&Ge.split(/\s+/g).forEach(function(un){gt?St._renderer.addClass(St._ngEl.nativeElement,un):St._renderer.removeClass(St._ngEl.nativeElement,un)})}}]),ve}();uo.\u0275fac=function(Pe){return new(Pe||uo)(D.Y36(D.ZZ4),D.Y36(D.aQg),D.Y36(D.SBq),D.Y36(D.Qsj))},uo.\u0275dir=D.lG2({type:uo,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}});var mi=function(){function ve(Pe){(0,P.Z)(this,ve),this._viewContainerRef=Pe,this._componentRef=null,this._moduleRef=null}return(0,L.Z)(ve,[{key:"ngOnChanges",value:function(Ge){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var gt=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(Ge.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var St=gt.get(D.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(St.injector)}else this._moduleRef=null;var Mn=(this._moduleRef?this._moduleRef.componentFactoryResolver:gt.get(D._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(Mn,this._viewContainerRef.length,gt,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ve}();mi.\u0275fac=function(Pe){return new(Pe||mi)(D.Y36(D.s_b))},mi.\u0275dir=D.lG2({type:mi,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[D.TTD]});var Bo=function(){function ve(Pe,Ge,gt,St){(0,P.Z)(this,ve),this.$implicit=Pe,this.ngForOf=Ge,this.index=gt,this.count=St}return(0,L.Z)(ve,[{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}}]),ve}(),$r=function(){function ve(Pe,Ge,gt){(0,P.Z)(this,ve),this._viewContainer=Pe,this._template=Ge,this._differs=gt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,L.Z)(ve,[{key:"ngForOf",set:function(Ge){this._ngForOf=Ge,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(Ge){this._trackByFn=Ge}},{key:"ngForTemplate",set:function(Ge){Ge&&(this._template=Ge)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var Ge=this._ngForOf;!this._differ&&Ge&&(this._differ=this._differs.find(Ge).create(this.ngForTrackBy))}if(this._differ){var gt=this._differ.diff(this._ngForOf);gt&&this._applyChanges(gt)}}},{key:"_applyChanges",value:function(Ge){var gt=this,St=this._viewContainer;Ge.forEachOperation(function(jr,ar,ai){if(null==jr.previousIndex)St.createEmbeddedView(gt._template,new Bo(jr.item,gt._ngForOf,-1,-1),null===ai?void 0:ai);else if(null==ai)St.remove(null===ar?void 0:ar);else if(null!==ar){var Xi=St.get(ar);St.move(Xi,ai),Pi(Xi,jr)}});for(var un=0,Mn=St.length;un<Mn;un++){var Or=St.get(un).context;Or.index=un,Or.count=Mn,Or.ngForOf=this._ngForOf}Ge.forEachIdentityChange(function(jr){Pi(St.get(jr.currentIndex),jr)})}}],[{key:"ngTemplateContextGuard",value:function(Ge,gt){return!0}}]),ve}();function Pi(ve,Pe){ve.context.$implicit=Pe.item}$r.\u0275fac=function(Pe){return new(Pe||$r)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(D.ZZ4))},$r.\u0275dir=D.lG2({type:$r,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var hr=function(){function ve(Pe,Ge){(0,P.Z)(this,ve),this._viewContainer=Pe,this._context=new Js,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ge}return(0,L.Z)(ve,[{key:"ngIf",set:function(Ge){this._context.$implicit=this._context.ngIf=Ge,this._updateView()}},{key:"ngIfThen",set:function(Ge){Qa("ngIfThen",Ge),this._thenTemplateRef=Ge,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(Ge){Qa("ngIfElse",Ge),this._elseTemplateRef=Ge,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(Ge,gt){return!0}}]),ve}();hr.\u0275fac=function(Pe){return new(Pe||hr)(D.Y36(D.s_b),D.Y36(D.Rgc))},hr.\u0275dir=D.lG2({type:hr,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var Js=(0,L.Z)(function ve(){(0,P.Z)(this,ve),this.$implicit=null,this.ngIf=null});function Qa(ve,Pe){if(!!(Pe&&!Pe.createEmbeddedView))throw new Error("".concat(ve," must be a TemplateRef, but received '").concat((0,D.AaK)(Pe),"'."))}var Ri=function(){function ve(Pe,Ge){(0,P.Z)(this,ve),this._viewContainerRef=Pe,this._templateRef=Ge,this._created=!1}return(0,L.Z)(ve,[{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(Ge){Ge&&!this._created?this.create():!Ge&&this._created&&this.destroy()}}]),ve}(),Do=function(){function ve(){(0,P.Z)(this,ve),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,L.Z)(ve,[{key:"ngSwitch",set:function(Ge){this._ngSwitch=Ge,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(Ge){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Ge)}},{key:"_matchCase",value:function(Ge){var gt=Ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),gt}},{key:"_updateDefaultCases",value:function(Ge){if(this._defaultViews&&Ge!==this._defaultUsed){this._defaultUsed=Ge;for(var gt=0;gt<this._defaultViews.length;gt++){this._defaultViews[gt].enforceState(Ge)}}}}]),ve}();Do.\u0275fac=function(Pe){return new(Pe||Do)},Do.\u0275dir=D.lG2({type:Do,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}});var _i=function(){function ve(Pe,Ge,gt){(0,P.Z)(this,ve),this.ngSwitch=gt,gt._addCase(),this._view=new Ri(Pe,Ge)}return(0,L.Z)(ve,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ve}();_i.\u0275fac=function(Pe){return new(Pe||_i)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(Do,9))},_i.\u0275dir=D.lG2({type:_i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}});var Ko=(0,L.Z)(function ve(Pe,Ge,gt){(0,P.Z)(this,ve),gt._addDefault(new Ri(Pe,Ge))});Ko.\u0275fac=function(Pe){return new(Pe||Ko)(D.Y36(D.s_b),D.Y36(D.Rgc),D.Y36(Do,9))},Ko.\u0275dir=D.lG2({type:Ko,selectors:[["","ngSwitchDefault",""]]});var bi=function(){function ve(Pe){(0,P.Z)(this,ve),this._localization=Pe,this._caseViews={}}return(0,L.Z)(ve,[{key:"ngPlural",set:function(Ge){this._switchValue=Ge,this._updateView()}},{key:"addCase",value:function(Ge,gt){this._caseViews[Ge]=gt}},{key:"_updateView",value:function(){this._clearViews();var Ge=Object.keys(this._caseViews),gt=or(this._switchValue,Ge,this._localization);this._activateView(this._caseViews[gt])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(Ge){Ge&&(this._activeView=Ge,this._activeView.create())}}]),ve}();bi.\u0275fac=function(Pe){return new(Pe||bi)(D.Y36(zi))},bi.\u0275dir=D.lG2({type:bi,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}});var Nr=(0,L.Z)(function ve(Pe,Ge,gt,St){(0,P.Z)(this,ve),this.value=Pe;var un=!isNaN(Number(Pe));St.addCase(un?"=".concat(Pe):Pe,new Ri(gt,Ge))});Nr.\u0275fac=function(Pe){return new(Pe||Nr)(D.$8M("ngPluralCase"),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(bi,1))},Nr.\u0275dir=D.lG2({type:Nr,selectors:[["","ngPluralCase",""]]});var ws=function(){function ve(Pe,Ge,gt){(0,P.Z)(this,ve),this._ngEl=Pe,this._differs=Ge,this._renderer=gt,this._ngStyle=null,this._differ=null}return(0,L.Z)(ve,[{key:"ngStyle",set:function(Ge){this._ngStyle=Ge,!this._differ&&Ge&&(this._differ=this._differs.find(Ge).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var Ge=this._differ.diff(this._ngStyle);Ge&&this._applyChanges(Ge)}}},{key:"_setStyle",value:function(Ge,gt){var St=Ge.split("."),un=(0,Y.Z)(St,2),Mn=un[0],Pn=un[1];null!=(gt=null!=gt&&Pn?"".concat(gt).concat(Pn):gt)?this._renderer.setStyle(this._ngEl.nativeElement,Mn,gt):this._renderer.removeStyle(this._ngEl.nativeElement,Mn)}},{key:"_applyChanges",value:function(Ge){var gt=this;Ge.forEachRemovedItem(function(St){return gt._setStyle(St.key,null)}),Ge.forEachAddedItem(function(St){return gt._setStyle(St.key,St.currentValue)}),Ge.forEachChangedItem(function(St){return gt._setStyle(St.key,St.currentValue)})}}]),ve}();ws.\u0275fac=function(Pe){return new(Pe||ws)(D.Y36(D.SBq),D.Y36(D.aQg),D.Y36(D.Qsj))},ws.\u0275dir=D.lG2({type:ws,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}});var oa=function(){function ve(Pe){(0,P.Z)(this,ve),this._viewContainerRef=Pe,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return(0,L.Z)(ve,[{key:"ngOnChanges",value:function(Ge){if(Ge.ngTemplateOutlet){var gt=this._viewContainerRef;this._viewRef&>.remove(gt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?gt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ve}();oa.\u0275fac=function(Pe){return new(Pe||oa)(D.Y36(D.s_b))},oa.\u0275dir=D.lG2({type:oa,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[D.TTD]});function vn(ve,Pe){return new D.vHH(2100,"")}var bn=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"createSubscription",value:function(Ge,gt){return Ge.subscribe({next:gt,error:function(un){throw un}})}},{key:"dispose",value:function(Ge){Ge.unsubscribe()}},{key:"onDestroy",value:function(Ge){Ge.unsubscribe()}}]),ve}(),oi=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"createSubscription",value:function(Ge,gt){return Ge.then(gt,function(St){throw St})}},{key:"dispose",value:function(Ge){}},{key:"onDestroy",value:function(Ge){}}]),ve}(),Li=new oi,qi=new bn,ei=function(){function ve(Pe){(0,P.Z)(this,ve),this._ref=Pe,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return(0,L.Z)(ve,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(Ge){return this._obj?Ge!==this._obj?(this._dispose(),this.transform(Ge)):this._latestValue:(Ge&&this._subscribe(Ge),this._latestValue)}},{key:"_subscribe",value:function(Ge){var gt=this;this._obj=Ge,this._strategy=this._selectStrategy(Ge),this._subscription=this._strategy.createSubscription(Ge,function(St){return gt._updateLatestValue(Ge,St)})}},{key:"_selectStrategy",value:function(Ge){if((0,D.QGY)(Ge))return Li;if((0,D.F4k)(Ge))return qi;throw vn()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(Ge,gt){Ge===this._obj&&(this._latestValue=gt,this._ref.markForCheck())}}]),ve}();ei.\u0275fac=function(Pe){return new(Pe||ei)(D.Y36(D.sBO,16))},ei.\u0275pipe=D.Yjl({name:"async",type:ei,pure:!1});var Fo=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw vn();return Ge.toLowerCase()}}]),ve}();Fo.\u0275fac=function(Pe){return new(Pe||Fo)},Fo.\u0275pipe=D.Yjl({name:"lowercase",type:Fo,pure:!0});var va=/(?:[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,Ki=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw vn();return Ge.replace(va,function(gt){return gt[0].toUpperCase()+gt.substr(1).toLowerCase()})}}]),ve}();Ki.\u0275fac=function(Pe){return new(Pe||Ki)},Ki.\u0275pipe=D.Yjl({name:"titlecase",type:Ki,pure:!0});var Ci=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){if(null==Ge)return null;if("string"!=typeof Ge)throw vn();return Ge.toUpperCase()}}]),ve}();Ci.\u0275fac=function(Pe){return new(Pe||Ci)},Ci.\u0275pipe=D.Yjl({name:"uppercase",type:Ci,pure:!0});var Co=new D.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),ks=function(){function ve(Pe,Ge){(0,P.Z)(this,ve),this.locale=Pe,this.defaultTimezone=Ge}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){var Mn,gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",St=arguments.length>2?arguments[2]:void 0,un=arguments.length>3?arguments[3]:void 0;if(null==Ge||""===Ge||Ge!=Ge)return null;try{return Jt(Ge,gt,un||this.locale,null!==(Mn=null!=St?St:this.defaultTimezone)&&void 0!==Mn?Mn:void 0)}catch(Pn){throw vn(0,Pn.message)}}}]),ve}();ks.\u0275fac=function(Pe){return new(Pe||ks)(D.Y36(D.soG,16),D.Y36(Co,24))},ks.\u0275pipe=D.Yjl({name:"date",type:ks,pure:!0});var Uo=/#/g,ya=function(){function ve(Pe){(0,P.Z)(this,ve),this._localization=Pe}return(0,L.Z)(ve,[{key:"transform",value:function(Ge,gt,St){if(null==Ge)return"";if("object"!=typeof gt||null===gt)throw vn();return gt[or(Ge,Object.keys(gt),this._localization,St)].replace(Uo,Ge.toString())}}]),ve}();ya.\u0275fac=function(Pe){return new(Pe||ya)(D.Y36(zi,16))},ya.\u0275pipe=D.Yjl({name:"i18nPlural",type:ya,pure:!0});var Ho=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge,gt){if(null==Ge)return"";if("object"!=typeof gt||"string"!=typeof Ge)throw vn();return gt.hasOwnProperty(Ge)?gt[Ge]:gt.hasOwnProperty("other")?gt.other:""}}]),ve}();Ho.\u0275fac=function(Pe){return new(Pe||Ho)},Ho.\u0275pipe=D.Yjl({name:"i18nSelect",type:Ho,pure:!0});var Ji=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){return JSON.stringify(Ge,null,2)}}]),ve}();function mo(ve,Pe){return{key:ve,value:Pe}}Ji.\u0275fac=function(Pe){return new(Pe||Ji)},Ji.\u0275pipe=D.Yjl({name:"json",type:Ji,pure:!1});var tr=function(){function ve(Pe){(0,P.Z)(this,ve),this.differs=Pe,this.keyValues=[],this.compareFn=Ba}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){var gt=this,St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ba;if(!Ge||!(Ge instanceof Map)&&"object"!=typeof Ge)return null;this.differ||(this.differ=this.differs.find(Ge).create());var un=this.differ.diff(Ge),Mn=St!==this.compareFn;return un&&(this.keyValues=[],un.forEachItem(function(Pn){gt.keyValues.push(mo(Pn.key,Pn.currentValue))})),(un||Mn)&&(this.keyValues.sort(St),this.compareFn=St),this.keyValues}}]),ve}();function Ba(ve,Pe){var Ge=ve.key,gt=Pe.key;if(Ge===gt)return 0;if(void 0===Ge)return 1;if(void 0===gt)return-1;if(null===Ge)return 1;if(null===gt)return-1;if("string"==typeof Ge&&"string"==typeof gt)return Ge<gt?-1:1;if("number"==typeof Ge&&"number"==typeof gt)return Ge-gt;if("boolean"==typeof Ge&&"boolean"==typeof gt)return Ge<gt?-1:1;var St=String(Ge),un=String(gt);return St==un?0:St<un?-1:1}tr.\u0275fac=function(Pe){return new(Pe||tr)(D.Y36(D.aQg,16))},tr.\u0275pipe=D.Yjl({name:"keyvalue",type:tr,pure:!1});var Oo=function(){function ve(Pe){(0,P.Z)(this,ve),this._locale=Pe}return(0,L.Z)(ve,[{key:"transform",value:function(Ge,gt,St){if(!la(Ge))return null;St=St||this._locale;try{return function Za(ve,Pe,Ge){return bo(ve,Go(Et(Pe,ct.Decimal),Zt(Pe,qt.MinusSign)),Pe,qt.Group,qt.Decimal,Ge)}(Jo(Ge),St,gt)}catch(Mn){throw vn(0,Mn.message)}}}]),ve}();Oo.\u0275fac=function(Pe){return new(Pe||Oo)(D.Y36(D.soG,16))},Oo.\u0275pipe=D.Yjl({name:"number",type:Oo,pure:!0});var io=function(){function ve(Pe){(0,P.Z)(this,ve),this._locale=Pe}return(0,L.Z)(ve,[{key:"transform",value:function(Ge,gt,St){if(!la(Ge))return null;St=St||this._locale;try{return function Ka(ve,Pe,Ge){return bo(ve,Go(Et(Pe,ct.Percent),Zt(Pe,qt.MinusSign)),Pe,qt.Group,qt.Decimal,Ge,!0).replace(new RegExp("%","g"),Zt(Pe,qt.PercentSign))}(Jo(Ge),St,gt)}catch(Mn){throw vn(0,Mn.message)}}}]),ve}();io.\u0275fac=function(Pe){return new(Pe||io)(D.Y36(D.soG,16))},io.\u0275pipe=D.Yjl({name:"percent",type:io,pure:!0});var Kr=function(){function ve(Pe){var Ge=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,P.Z)(this,ve),this._locale=Pe,this._defaultCurrencyCode=Ge}return(0,L.Z)(ve,[{key:"transform",value:function(Ge){var gt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,St=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",un=arguments.length>3?arguments[3]:void 0,Mn=arguments.length>4?arguments[4]:void 0;if(!la(Ge))return null;Mn=Mn||this._locale,"boolean"==typeof St&&(St=St?"symbol":"code");var Pn=gt||this._defaultCurrencyCode;"code"!==St&&(Pn="symbol"===St||"symbol-narrow"===St?Bt(Pn,"symbol"===St?"wide":"narrow",Mn):St);try{var Or=Jo(Ge);return Gi(Or,Mn,Pn,gt,un)}catch(jr){throw vn(0,jr.message)}}}]),ve}();function la(ve){return!(null==ve||""===ve||ve!=ve)}function Jo(ve){if("string"==typeof ve&&!isNaN(Number(ve)-parseFloat(ve)))return Number(ve);if("number"!=typeof ve)throw new Error("".concat(ve," is not a number"));return ve}Kr.\u0275fac=function(Pe){return new(Pe||Kr)(D.Y36(D.soG,16),D.Y36(D.EJc,16))},Kr.\u0275pipe=D.Yjl({name:"currency",type:Kr,pure:!0});var br=function(){function ve(){(0,P.Z)(this,ve)}return(0,L.Z)(ve,[{key:"transform",value:function(Ge,gt,St){if(null==Ge)return null;if(!this.supports(Ge))throw vn();return Ge.slice(gt,St)}},{key:"supports",value:function(Ge){return"string"==typeof Ge||Array.isArray(Ge)}}]),ve}();br.\u0275fac=function(Pe){return new(Pe||br)},br.\u0275pipe=D.Yjl({name:"slice",type:br,pure:!1});var us=(0,L.Z)(function ve(){(0,P.Z)(this,ve)});us.\u0275fac=function(Pe){return new(Pe||us)},us.\u0275mod=D.oAB({type:us}),us.\u0275inj=D.cJS({});var ba="browser";function $a(ve){return ve===ba}new D.GfV("13.3.11");var es=(0,L.Z)(function ve(){(0,P.Z)(this,ve)});es.\u0275prov=(0,D.Yz7)({token:es,providedIn:"root",factory:function(){return new Rs((0,D.LFG)(k),window)}});var Rs=function(){function ve(Pe,Ge){(0,P.Z)(this,ve),this.document=Pe,this.window=Ge,this.offset=function(){return[0,0]}}return(0,L.Z)(ve,[{key:"setOffset",value:function(Ge){Array.isArray(Ge)?this.offset=function(){return Ge}:this.offset=Ge}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(Ge){this.supportsScrolling()&&this.window.scrollTo(Ge[0],Ge[1])}},{key:"scrollToAnchor",value:function(Ge){if(this.supportsScrolling()){var gt=function wo(ve,Pe){var Ge=ve.getElementById(Pe)||ve.getElementsByName(Pe)[0];if(Ge)return Ge;if("function"==typeof ve.createTreeWalker&&ve.body&&(ve.body.createShadowRoot||ve.body.attachShadow))for(var gt=ve.createTreeWalker(ve.body,NodeFilter.SHOW_ELEMENT),St=gt.currentNode;St;){var un=St.shadowRoot;if(un){var Mn=un.getElementById(Pe)||un.querySelector('[name="'.concat(Pe,'"]'));if(Mn)return Mn}St=gt.nextNode()}return null}(this.document,Ge);gt&&(this.scrollToElement(gt),gt.focus())}}},{key:"setHistoryScrollRestoration",value:function(Ge){if(this.supportScrollRestoration()){var gt=this.window.history;gt&>.scrollRestoration&&(gt.scrollRestoration=Ge)}}},{key:"scrollToElement",value:function(Ge){var gt=Ge.getBoundingClientRect(),St=gt.left+this.window.pageXOffset,un=gt.top+this.window.pageYOffset,Mn=this.offset();this.window.scrollTo(St-Mn[0],un-Mn[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var Ge=iu(this.window.history)||iu(Object.getPrototypeOf(this.window.history));return!(!Ge||!Ge.writable&&!Ge.set)}catch(gt){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Ge){return!1}}}]),ve}();function iu(ve){return Object.getOwnPropertyDescriptor(ve,"scrollRestoration")}var Eu=(0,L.Z)(function ve(){(0,P.Z)(this,ve)})},520:function(qe,J,m){"use strict";m.d(J,{JF:function(){return wn},LE:function(){return se},TP:function(){return jt},UA:function(){return Xt},WM:function(){return w},eN:function(){return qt}});var z=m(136),Y=m(9388),M=m(7685),U=m(4902),L=m(3144),P=m(5671),D=m(9808),y=m(5e3),K=m(1086),F=m(7451),E=m(1406),A=m(9664),k=m(4850),I=(0,L.Z)(function de(){(0,P.Z)(this,de)}),T=(0,L.Z)(function de(){(0,P.Z)(this,de)}),w=function(){function de(Te){var ue=this;(0,P.Z)(this,de),this.normalizedNames=new Map,this.lazyUpdate=null,Te?this.lazyInit="string"==typeof Te?function(){ue.headers=new Map,Te.split("\n").forEach(function(We){var at=We.indexOf(":");if(at>0){var Dt=We.slice(0,at),tn=Dt.toLowerCase(),Jt=We.slice(at+1).trim();ue.maybeSetNormalizedName(Dt,tn),ue.headers.has(tn)?ue.headers.get(tn).push(Jt):ue.headers.set(tn,[Jt])}})}:function(){ue.headers=new Map,Object.keys(Te).forEach(function(We){var at=Te[We],Dt=We.toLowerCase();"string"==typeof at&&(at=[at]),at.length>0&&(ue.headers.set(Dt,at),ue.maybeSetNormalizedName(We,Dt))})}:this.headers=new Map}return(0,L.Z)(de,[{key:"has",value:function(ue){return this.init(),this.headers.has(ue.toLowerCase())}},{key:"get",value:function(ue){this.init();var We=this.headers.get(ue.toLowerCase());return We&&We.length>0?We[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(ue){return this.init(),this.headers.get(ue.toLowerCase())||null}},{key:"append",value:function(ue,We){return this.clone({name:ue,value:We,op:"a"})}},{key:"set",value:function(ue,We){return this.clone({name:ue,value:We,op:"s"})}},{key:"delete",value:function(ue,We){return this.clone({name:ue,value:We,op:"d"})}},{key:"maybeSetNormalizedName",value:function(ue,We){this.normalizedNames.has(We)||this.normalizedNames.set(We,ue)}},{key:"init",value:function(){var ue=this;this.lazyInit&&(this.lazyInit instanceof de?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(We){return ue.applyUpdate(We)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(ue){var We=this;ue.init(),Array.from(ue.headers.keys()).forEach(function(at){We.headers.set(at,ue.headers.get(at)),We.normalizedNames.set(at,ue.normalizedNames.get(at))})}},{key:"clone",value:function(ue){var We=new de;return We.lazyInit=this.lazyInit&&this.lazyInit instanceof de?this.lazyInit:this,We.lazyUpdate=(this.lazyUpdate||[]).concat([ue]),We}},{key:"applyUpdate",value:function(ue){var We=ue.name.toLowerCase();switch(ue.op){case"a":case"s":var at=ue.value;if("string"==typeof at&&(at=[at]),0===at.length)return;this.maybeSetNormalizedName(ue.name,We);var Dt=("a"===ue.op?this.headers.get(We):void 0)||[];Dt.push.apply(Dt,(0,U.Z)(at)),this.headers.set(We,Dt);break;case"d":var tn=ue.value;if(tn){var Jt=this.headers.get(We);if(!Jt)return;0===(Jt=Jt.filter(function(nn){return-1===tn.indexOf(nn)})).length?(this.headers.delete(We),this.normalizedNames.delete(We)):this.headers.set(We,Jt)}else this.headers.delete(We),this.normalizedNames.delete(We)}}},{key:"forEach",value:function(ue){var We=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(at){return ue(We.normalizedNames.get(at),We.headers.get(at))})}}]),de}(),S=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,[{key:"encodeKey",value:function(ue){return $(ue)}},{key:"encodeValue",value:function(ue){return $(ue)}},{key:"decodeKey",value:function(ue){return decodeURIComponent(ue)}},{key:"decodeValue",value:function(ue){return decodeURIComponent(ue)}}]),de}();function N(de,Te){var ue=new Map;de.length>0&&de.replace(/^\?/,"").split("&").forEach(function(at){var Dt=at.indexOf("="),tn=-1==Dt?[Te.decodeKey(at),""]:[Te.decodeKey(at.slice(0,Dt)),Te.decodeValue(at.slice(Dt+1))],Jt=(0,M.Z)(tn,2),nn=Jt[0],dn=Jt[1],On=ue.get(nn)||[];On.push(dn),ue.set(nn,On)});return ue}var R=/%(\d[a-f0-9])/gi,W={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function $(de){return encodeURIComponent(de).replace(R,function(Te,ue){var We;return null!==(We=W[ue])&&void 0!==We?We:Te})}function ce(de){return"".concat(de)}var se=function(){function de(){var Te=this,ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,P.Z)(this,de),this.updates=null,this.cloneFrom=null,this.encoder=ue.encoder||new S,ue.fromString){if(ue.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=N(ue.fromString,this.encoder)}else ue.fromObject?(this.map=new Map,Object.keys(ue.fromObject).forEach(function(We){var at=ue.fromObject[We];Te.map.set(We,Array.isArray(at)?at:[at])})):this.map=null}return(0,L.Z)(de,[{key:"has",value:function(ue){return this.init(),this.map.has(ue)}},{key:"get",value:function(ue){this.init();var We=this.map.get(ue);return We?We[0]:null}},{key:"getAll",value:function(ue){return this.init(),this.map.get(ue)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(ue,We){return this.clone({param:ue,value:We,op:"a"})}},{key:"appendAll",value:function(ue){var We=[];return Object.keys(ue).forEach(function(at){var Dt=ue[at];Array.isArray(Dt)?Dt.forEach(function(tn){We.push({param:at,value:tn,op:"a"})}):We.push({param:at,value:Dt,op:"a"})}),this.clone(We)}},{key:"set",value:function(ue,We){return this.clone({param:ue,value:We,op:"s"})}},{key:"delete",value:function(ue,We){return this.clone({param:ue,value:We,op:"d"})}},{key:"toString",value:function(){var ue=this;return this.init(),this.keys().map(function(We){var at=ue.encoder.encodeKey(We);return ue.map.get(We).map(function(Dt){return at+"="+ue.encoder.encodeValue(Dt)}).join("&")}).filter(function(We){return""!==We}).join("&")}},{key:"clone",value:function(ue){var We=new de({encoder:this.encoder});return We.cloneFrom=this.cloneFrom||this,We.updates=(this.updates||[]).concat(ue),We}},{key:"init",value:function(){var ue=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(We){return ue.map.set(We,ue.cloneFrom.map.get(We))}),this.updates.forEach(function(We){switch(We.op){case"a":case"s":var at=("a"===We.op?ue.map.get(We.param):void 0)||[];at.push(ce(We.value)),ue.map.set(We.param,at);break;case"d":if(void 0===We.value){ue.map.delete(We.param);break}var Dt=ue.map.get(We.param)||[],tn=Dt.indexOf(ce(We.value));-1!==tn&&Dt.splice(tn,1),Dt.length>0?ue.map.set(We.param,Dt):ue.map.delete(We.param)}}),this.cloneFrom=this.updates=null)}}]),de}(),oe=function(){function de(){(0,P.Z)(this,de),this.map=new Map}return(0,L.Z)(de,[{key:"set",value:function(ue,We){return this.map.set(ue,We),this}},{key:"get",value:function(ue){return this.map.has(ue)||this.map.set(ue,ue.defaultValue()),this.map.get(ue)}},{key:"delete",value:function(ue){return this.map.delete(ue),this}},{key:"has",value:function(ue){return this.map.has(ue)}},{key:"keys",value:function(){return this.map.keys()}}]),de}();function Oe(de){return"undefined"!=typeof ArrayBuffer&&de instanceof ArrayBuffer}function ot(de){return"undefined"!=typeof Blob&&de instanceof Blob}function xe(de){return"undefined"!=typeof FormData&&de instanceof FormData}var Be,de,ke=function(){function de(Te,ue,We,at){var Dt;if((0,P.Z)(this,de),this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Te.toUpperCase(),function ge(de){switch(de){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||at?(this.body=void 0!==We?We:null,Dt=at):Dt=We,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new w),this.context||(this.context=new oe),this.params){var tn=this.params.toString();if(0===tn.length)this.urlWithParams=ue;else{var Jt=ue.indexOf("?"),nn=-1===Jt?"?":Jt<ue.length-1?"&":"";this.urlWithParams=ue+nn+tn}}else this.params=new se,this.urlWithParams=ue}return(0,L.Z)(de,[{key:"serializeBody",value:function(){return null===this.body?null:Oe(this.body)||ot(this.body)||xe(this.body)||function _e(de){return"undefined"!=typeof URLSearchParams&&de instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof se?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||xe(this.body)?null:ot(this.body)?this.body.type||null:Oe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof se?"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 We,ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},at=ue.method||this.method,Dt=ue.url||this.url,tn=ue.responseType||this.responseType,Jt=void 0!==ue.body?ue.body:this.body,nn=void 0!==ue.withCredentials?ue.withCredentials:this.withCredentials,dn=void 0!==ue.reportProgress?ue.reportProgress:this.reportProgress,On=ue.headers||this.headers,Dn=ue.params||this.params,zn=null!==(We=ue.context)&&void 0!==We?We:this.context;return void 0!==ue.setHeaders&&(On=Object.keys(ue.setHeaders).reduce(function(Ln,jn){return Ln.set(jn,ue.setHeaders[jn])},On)),ue.setParams&&(Dn=Object.keys(ue.setParams).reduce(function(Ln,jn){return Ln.set(jn,ue.setParams[jn])},Dn)),new de(at,Dt,Jt,{params:Dn,headers:On,context:zn,reportProgress:dn,responseType:tn,withCredentials:nn})}}]),de}();(de=Be||(Be={}))[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User";var ct=(0,L.Z)(function de(Te){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,We=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,P.Z)(this,de),this.headers=Te.headers||new w,this.status=void 0!==Te.status?Te.status:ue,this.statusText=Te.statusText||We,this.url=Te.url||null,this.ok=this.status>=200&&this.status<300}),Mt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(){var We,at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,ue),(We=Te.call(this,at)).type=Be.ResponseHeader,We}return(0,L.Z)(ue,[{key:"clone",value:function(){var at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({headers:at.headers||this.headers,status:void 0!==at.status?at.status:this.status,statusText:at.statusText||this.statusText,url:at.url||this.url||void 0})}}]),ue}(ct),Nt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(){var We,at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,ue),(We=Te.call(this,at)).type=Be.Response,We.body=void 0!==at.body?at.body:null,We}return(0,L.Z)(ue,[{key:"clone",value:function(){var at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ue({body:void 0!==at.body?at.body:this.body,headers:at.headers||this.headers,status:void 0!==at.status?at.status:this.status,statusText:at.statusText||this.statusText,url:at.url||this.url||void 0})}}]),ue}(ct),Xt=function(de){(0,z.Z)(ue,de);var Te=(0,Y.Z)(ue);function ue(We){var at;return(0,P.Z)(this,ue),(at=Te.call(this,We,0,"Unknown Error")).name="HttpErrorResponse",at.ok=!1,at.status>=200&&at.status<300?at.message="Http failure during parsing for ".concat(We.url||"(unknown url)"):at.message="Http failure response for ".concat(We.url||"(unknown url)",": ").concat(We.status," ").concat(We.statusText),at.error=We.error||null,at}return(0,L.Z)(ue)}(ct);function en(de,Te){return{body:Te,headers:de.headers,context:de.context,observe:de.observe,params:de.params,reportProgress:de.reportProgress,responseType:de.responseType,withCredentials:de.withCredentials}}var qt=function(){function de(Te){(0,P.Z)(this,de),this.handler=Te}return(0,L.Z)(de,[{key:"request",value:function(ue,We){var tn,at=this,Dt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ue instanceof ke)tn=ue;else{var Jt=void 0;Jt=Dt.headers instanceof w?Dt.headers:new w(Dt.headers);var nn=void 0;Dt.params&&(nn=Dt.params instanceof se?Dt.params:new se({fromObject:Dt.params})),tn=new ke(ue,We,void 0!==Dt.body?Dt.body:null,{headers:Jt,context:Dt.context,params:nn,reportProgress:Dt.reportProgress,responseType:Dt.responseType||"json",withCredentials:Dt.withCredentials})}var dn=(0,K.of)(tn).pipe((0,E.b)(function(Dn){return at.handler.handle(Dn)}));if(ue instanceof ke||"events"===Dt.observe)return dn;var On=dn.pipe((0,A.h)(function(Dn){return Dn instanceof Nt}));switch(Dt.observe||"body"){case"body":switch(tn.responseType){case"arraybuffer":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&!(Dn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Dn.body}));case"blob":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&!(Dn.body instanceof Blob))throw new Error("Response is not a Blob.");return Dn.body}));case"text":return On.pipe((0,k.U)(function(Dn){if(null!==Dn.body&&"string"!=typeof Dn.body)throw new Error("Response is not a string.");return Dn.body}));default:return On.pipe((0,k.U)(function(Dn){return Dn.body}))}case"response":return On;default:throw new Error("Unreachable: unhandled observe type ".concat(Dt.observe,"}"))}}},{key:"delete",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",ue,We)}},{key:"get",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",ue,We)}},{key:"head",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",ue,We)}},{key:"jsonp",value:function(ue,We){return this.request("JSONP",ue,{params:(new se).append(We,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(ue){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",ue,We)}},{key:"patch",value:function(ue,We){var at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",ue,en(at,We))}},{key:"post",value:function(ue,We){var at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",ue,en(at,We))}},{key:"put",value:function(ue,We){var at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",ue,en(at,We))}}]),de}();qt.\u0275fac=function(Te){return new(Te||qt)(y.LFG(I))},qt.\u0275prov=y.Yz7({token:qt,factory:qt.\u0275fac});var Xe=function(){function de(Te,ue){(0,P.Z)(this,de),this.next=Te,this.interceptor=ue}return(0,L.Z)(de,[{key:"handle",value:function(ue){return this.interceptor.intercept(ue,this.next)}}]),de}(),jt=new y.OlP("HTTP_INTERCEPTORS"),rt=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){return We.handle(ue)}}]),de}();rt.\u0275fac=function(Te){return new(Te||rt)},rt.\u0275prov=y.Yz7({token:rt,factory:rt.\u0275fac});var nt,vt=0,_n=(0,L.Z)(function de(){(0,P.Z)(this,de)}),An=function(){function de(Te,ue){(0,P.Z)(this,de),this.callbackMap=Te,this.document=ue,this.resolvedPromise=Promise.resolve()}return(0,L.Z)(de,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(vt++)}},{key:"handle",value:function(ue){var We=this;if("JSONP"!==ue.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ue.responseType)throw new Error("JSONP requests must use Json response type.");return new F.y(function(at){var Dt=We.nextCallback(),tn=ue.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(Dt,"$1")),Jt=We.document.createElement("script");Jt.src=tn;var nn=null,dn=!1;We.callbackMap[Dt]=function(Ln){delete We.callbackMap[Dt],nn=Ln,dn=!0};var On=function(){Jt.parentNode&&Jt.parentNode.removeChild(Jt),delete We.callbackMap[Dt]};return Jt.addEventListener("load",function(jn){We.resolvedPromise.then(function(){On(),dn?(at.next(new Nt({body:nn,status:200,statusText:"OK",url:tn})),at.complete()):at.error(new Xt({url:tn,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),Jt.addEventListener("error",function(jn){On(),at.error(new Xt({error:jn,status:0,statusText:"JSONP Error",url:tn}))}),We.document.body.appendChild(Jt),at.next({type:Be.Sent}),function(){dn||We.removeListeners(Jt),On()}})}},{key:"removeListeners",value:function(ue){nt||(nt=this.document.implementation.createHTMLDocument()),nt.adoptNode(ue)}}]),de}();An.\u0275fac=function(Te){return new(Te||An)(y.LFG(_n),y.LFG(D.K0))},An.\u0275prov=y.Yz7({token:An,factory:An.\u0275fac});var Gt=function(){function de(Te){(0,P.Z)(this,de),this.jsonp=Te}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){return"JSONP"===ue.method?this.jsonp.handle(ue):We.handle(ue)}}]),de}();Gt.\u0275fac=function(Te){return new(Te||Gt)(y.LFG(An))},Gt.\u0275prov=y.Yz7({token:Gt,factory:Gt.\u0275fac});var Zt=/^\)\]\}',?\n/;var Ut=function(){function de(Te){(0,P.Z)(this,de),this.xhrFactory=Te}return(0,L.Z)(de,[{key:"handle",value:function(ue){var We=this;if("JSONP"===ue.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new F.y(function(at){var Dt=We.xhrFactory.build();if(Dt.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Dt.withCredentials=!0),ue.headers.forEach(function(lr,Yn){return Dt.setRequestHeader(lr,Yn.join(","))}),ue.headers.has("Accept")||Dt.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){var tn=ue.detectContentTypeHeader();null!==tn&&Dt.setRequestHeader("Content-Type",tn)}if(ue.responseType){var Jt=ue.responseType.toLowerCase();Dt.responseType="json"!==Jt?Jt:"text"}var nn=ue.serializeBody(),dn=null,On=function(){if(null!==dn)return dn;var Yn=Dt.statusText||"OK",Kt=new w(Dt.getAllResponseHeaders()),tt=function Et(de){return"responseURL"in de&&de.responseURL?de.responseURL:/^X-Request-URL:/m.test(de.getAllResponseHeaders())?de.getResponseHeader("X-Request-URL"):null}(Dt)||ue.url;return dn=new Mt({headers:Kt,status:Dt.status,statusText:Yn,url:tt})},Dn=function(){var Yn=On(),Kt=Yn.headers,tt=Yn.status,Ue=Yn.statusText,Ee=Yn.url,He=null;204!==tt&&(He=void 0===Dt.response?Dt.responseText:Dt.response),0===tt&&(tt=He?200:0);var bt=tt>=200&&tt<300;if("json"===ue.responseType&&"string"==typeof He){var Yt=He;He=He.replace(Zt,"");try{He=""!==He?JSON.parse(He):null}catch(En){He=Yt,bt&&(bt=!1,He={error:En,text:He})}}bt?(at.next(new Nt({body:He,headers:Kt,status:tt,statusText:Ue,url:Ee||void 0})),at.complete()):at.error(new Xt({error:He,headers:Kt,status:tt,statusText:Ue,url:Ee||void 0}))},zn=function(Yn){var tt=On().url,Ue=new Xt({error:Yn,status:Dt.status||0,statusText:Dt.statusText||"Unknown Error",url:tt||void 0});at.error(Ue)},Ln=!1,jn=function(Yn){Ln||(at.next(On()),Ln=!0);var Kt={type:Be.DownloadProgress,loaded:Yn.loaded};Yn.lengthComputable&&(Kt.total=Yn.total),"text"===ue.responseType&&!!Dt.responseText&&(Kt.partialText=Dt.responseText),at.next(Kt)},mn=function(Yn){var Kt={type:Be.UploadProgress,loaded:Yn.loaded};Yn.lengthComputable&&(Kt.total=Yn.total),at.next(Kt)};return Dt.addEventListener("load",Dn),Dt.addEventListener("error",zn),Dt.addEventListener("timeout",zn),Dt.addEventListener("abort",zn),ue.reportProgress&&(Dt.addEventListener("progress",jn),null!==nn&&Dt.upload&&Dt.upload.addEventListener("progress",mn)),Dt.send(nn),at.next({type:Be.Sent}),function(){Dt.removeEventListener("error",zn),Dt.removeEventListener("abort",zn),Dt.removeEventListener("load",Dn),Dt.removeEventListener("timeout",zn),ue.reportProgress&&(Dt.removeEventListener("progress",jn),null!==nn&&Dt.upload&&Dt.upload.removeEventListener("progress",mn)),Dt.readyState!==Dt.DONE&&Dt.abort()}})}}]),de}();Ut.\u0275fac=function(Te){return new(Te||Ut)(y.LFG(D.JF))},Ut.\u0275prov=y.Yz7({token:Ut,factory:Ut.\u0275fac});var Ht=new y.OlP("XSRF_COOKIE_NAME"),sn=new y.OlP("XSRF_HEADER_NAME"),yt=(0,L.Z)(function de(){(0,P.Z)(this,de)}),mt=function(){function de(Te,ue,We){(0,P.Z)(this,de),this.doc=Te,this.platform=ue,this.cookieName=We,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,L.Z)(de,[{key:"getToken",value:function(){if("server"===this.platform)return null;var ue=this.doc.cookie||"";return ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,D.Mx)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}}]),de}();mt.\u0275fac=function(Te){return new(Te||mt)(y.LFG(D.K0),y.LFG(y.Lbi),y.LFG(Ht))},mt.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac});var cn=function(){function de(Te,ue){(0,P.Z)(this,de),this.tokenService=Te,this.headerName=ue}return(0,L.Z)(de,[{key:"intercept",value:function(ue,We){var at=ue.url.toLowerCase();if("GET"===ue.method||"HEAD"===ue.method||at.startsWith("http://")||at.startsWith("https://"))return We.handle(ue);var Dt=this.tokenService.getToken();return null!==Dt&&!ue.headers.has(this.headerName)&&(ue=ue.clone({headers:ue.headers.set(this.headerName,Dt)})),We.handle(ue)}}]),de}();cn.\u0275fac=function(Te){return new(Te||cn)(y.LFG(yt),y.LFG(sn))},cn.\u0275prov=y.Yz7({token:cn,factory:cn.\u0275fac});var $t=function(){function de(Te,ue){(0,P.Z)(this,de),this.backend=Te,this.injector=ue,this.chain=null}return(0,L.Z)(de,[{key:"handle",value:function(ue){if(null===this.chain){var We=this.injector.get(jt,[]);this.chain=We.reduceRight(function(at,Dt){return new Xe(at,Dt)},this.backend)}return this.chain.handle(ue)}}]),de}();$t.\u0275fac=function(Te){return new(Te||$t)(y.LFG(T),y.LFG(y.zs3))},$t.\u0275prov=y.Yz7({token:$t,factory:$t.\u0275fac});var Jn=function(){function de(){(0,P.Z)(this,de)}return(0,L.Z)(de,null,[{key:"disable",value:function(){return{ngModule:de,providers:[{provide:cn,useClass:rt}]}}},{key:"withOptions",value:function(){var ue=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:de,providers:[ue.cookieName?{provide:Ht,useValue:ue.cookieName}:[],ue.headerName?{provide:sn,useValue:ue.headerName}:[]]}}}]),de}();Jn.\u0275fac=function(Te){return new(Te||Jn)},Jn.\u0275mod=y.oAB({type:Jn}),Jn.\u0275inj=y.cJS({providers:[cn,{provide:jt,useExisting:cn,multi:!0},{provide:yt,useClass:mt},{provide:Ht,useValue:"XSRF-TOKEN"},{provide:sn,useValue:"X-XSRF-TOKEN"}]});var wn=(0,L.Z)(function de(){(0,P.Z)(this,de)});wn.\u0275fac=function(Te){return new(Te||wn)},wn.\u0275mod=y.oAB({type:wn}),wn.\u0275inj=y.cJS({providers:[qt,{provide:I,useClass:$t},Ut,{provide:T,useExisting:Ut}],imports:[[Jn.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]});var Bt=(0,L.Z)(function de(){(0,P.Z)(this,de)});Bt.\u0275fac=function(Te){return new(Te||Bt)},Bt.\u0275mod=y.oAB({type:Bt}),Bt.\u0275inj=y.cJS({providers:[An,{provide:_n,useFactory:function V(){return"object"==typeof window?window:{}}},{provide:jt,useClass:Gt,multi:!0}]});D.JF},5e3:function(qe,J,m){"use strict";m.d(J,{$8M:function(){return sT},$Z:function(){return V3},AA_:function(){return mT},AFp:function(){return Ff},ALo:function(){return ch},AaK:function(){return ce},AcB:function(){return Gz},Akn:function(){return kc},AsE:function(){return uM},B6R:function(){return Ae},BQk:function(){return T1},CHM:function(){return pi},CRH:function(){return z6},CZH:function(){return Ad},Ckj:function(){return lP},CqO:function(){return WF},DdM:function(){return R6},DyG:function(){return xb},E6H:function(){return a8},EJc:function(){return q1},EiD:function(){return Fb},EpF:function(){return zF},F$t:function(){return YF},F4k:function(){return q3},FYo:function(){return Sd},FiY:function(){return Zm},G48:function(){return x8},GSi:function(){return AF},Gf:function(){return Nf},GfV:function(){return Sc},GkF:function(){return G3},Gpc:function(){return oe},Gre:function(){return dM},HOy:function(){return Qp},Hsn:function(){return X3},IIB:function(){return s8},Ikx:function(){return Ai},JOm:function(){return Ev},JVY:function(){return dB},Jf7:function(){return Kb},L6J:function(){return c8},L6k:function(){return Nb},LAX:function(){return vT},LFG:function(){return ns},LSH:function(){return TT},LVF:function(){return oR},Lbi:function(){return cR},MAs:function(){return Z3},MGl:function(){return iM},NdJ:function(){return K3},O4$:function(){return df},OlP:function(){return wa},Oqu:function(){return i6},PXZ:function(){return k8},PiD:function(){return Pb},Q2q:function(){return C1},Q6J:function(){return JE},QGY:function(){return eM},Qsj:function(){return xd},R0b:function(){return Uf},RDi:function(){return St},Rgc:function(){return Lf},SBq:function(){return Af},Sil:function(){return B_},Suo:function(){return U1},TTD:function(){return Ps},TgZ:function(){return w1},Tol:function(){return a4},Udp:function(){return t6},VKq:function(){return PM},VLi:function(){return C8},W1O:function(){return jM},WFA:function(){return J3},WLB:function(){return j4},XFs:function(){return ue},Xek:function(){return iR},Xpm:function(){return Se},Y36:function(){return Bv},YKP:function(){return Qv},YNc:function(){return RE},Yjl:function(){return Xr},Yz7:function(){return yt},ZZ4:function(){return gi},_Bn:function(){return DM},_UZ:function(){return XE},_Vd:function(){return R1},_c5:function(){return Ch},_uU:function(){return d4},a5r:function(){return I8},aQ5:function(){return qz},aQg:function(){return jf},ahi:function(){return LI},c2e:function(){return N_},cJS:function(){return cn},cg1:function(){return Yr},d8E:function(){return qn},dDg:function(){return Ac},deG:function(){return Yz},dqk:function(){return Yn},eBb:function(){return yv},eFA:function(){return vh},ekj:function(){return oM},evT:function(){return Jb},f3M:function(){return fs},g9A:function(){return uR},h0i:function(){return Ta},hGG:function(){return ju},hYB:function(){return $3},hij:function(){return lM},i9L:function(){return XN},iGM:function(){return UM},ifc:function(){return zn},ip1:function(){return aR},kL8:function(){return mr},kYT:function(){return Rn},kcU:function(){return Em},lG2:function(){return Rr},lcZ:function(){return L6},lnq:function(){return o6},mCW:function(){return Hm},n4l:function(){return dn},n5z:function(){return JN},n_E:function(){return N6},oAB:function(){return gn},oJD:function(){return sP},oxw:function(){return VF},pB0:function(){return bv},pfw:function(){return u8},q3G:function(){return uu},qLn:function(){return Vm},qOj:function(){return DE},qZA:function(){return k1},qzn:function(){return Um},r_U:function(){return l8},s9C:function(){return rM},sBO:function(){return aS},sIi:function(){return a_},s_b:function(){return dh},soG:function(){return QM},tBr:function(){return gv},tb:function(){return dR},tp0:function(){return Nm},uIk:function(){return u_},vHH:function(){return xe},vR:function(){return Kz},vpe:function(){return Dc},wA2:function(){return G1},wAp:function(){return xo},xi3:function(){return ZM},xp6:function(){return NP},yhl:function(){return JI},ynx:function(){return $E},z2F:function(){return Od},z3N:function(){return _l},zSh:function(){return TE},zWS:function(){return AE},zlt:function(){return rn},zs3:function(){return Bs}});var z=m(3237),Y=m(1120),M=m(7326),U=m(7685),D=(m(4942),m(4506),m(7762)),y=m(4902),K=m(5647),F=m(3144),E=m(5671),A=m(136),k=m(9388),I=m(5724),T=m(4096),w=m(8929),S=m(7451),N=m(6787),R=m(8117);function W(c){for(var d in c)if(c[d]===W)return d;throw Error("Could not find renamed property on target object.")}function $(c,d){for(var p in d)d.hasOwnProperty(p)&&!c.hasOwnProperty(p)&&(c[p]=d[p])}function ce(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(ce).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var d=c.toString();if(null==d)return""+d;var p=d.indexOf("\n");return-1===p?d:d.substring(0,p)}function se(c,d){return null==c||""===c?null===d?"":d:null==d||""===d?c:c+" "+d}var ee=W({__forward_ref__:W});function oe(c){return c.__forward_ref__=oe,c.toString=function(){return ce(this())},c}function ge(c){return Oe(c)?c():c}function Oe(c){return"function"==typeof c&&c.hasOwnProperty(ee)&&c.__forward_ref__===oe}var xe=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b){var Z;return(0,E.Z)(this,p),(Z=d.call(this,_e(_,b))).code=_,Z}return(0,F.Z)(p)}((0,I.Z)(Error));function _e(c,d){var p="NG0".concat(Math.abs(c));return"".concat(p).concat(d?": "+d:"")}function ke(c){return"string"==typeof c?c:null==c?"":String(c)}function Be(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():ke(c)}function Xt(c,d){var p=d?" in ".concat(d):"";throw new xe(-201,"No provider for ".concat(Be(c)," found").concat(p))}function rt(c,d,p){c!=d&&Et(p,c,d,"==")}function Zt(c,d){null==c&&Et(d,c,null,"!=")}function Et(c,d,p,_){throw new Error("ASSERTION ERROR: ".concat(c)+(null==_?"":" [Expected=> ".concat(p," ").concat(_," ").concat(d," <=Actual]")))}function yt(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function cn(c){return{providers:c.providers||[],imports:c.imports||[]}}function $t(c){return j(c,Bt)||j(c,de)}function j(c,d){return c.hasOwnProperty(d)?c[d]:null}function wn(c){return c&&(c.hasOwnProperty(dt)||c.hasOwnProperty(Te))?c[dt]:null}var ue,c,We,dn,On,zn,Bt=W({"\u0275prov":W}),dt=W({"\u0275inj":W}),de=W({ngInjectableDef:W}),Te=W({ngInjectorDef:W});function at(){return We}function Dt(c){var d=We;return We=c,d}function tn(c,d,p){var _=$t(c);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:p&ue.Optional?null:void 0!==d?d:void Xt(ce(c),"Injector")}function nn(c){return{toString:c}.toString()}(c=ue||(ue={}))[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"}(dn||(dn={})),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"}(On||(On={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(zn||(zn={}));var Ln="undefined"!=typeof globalThis&&globalThis,jn="undefined"!=typeof window&&window,mn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lr="undefined"!=typeof global&&global,Yn=Ln||lr||jn||mn;var Ue={},Ee=[],He=W({"\u0275cmp":W}),bt=W({"\u0275dir":W}),Yt=W({"\u0275pipe":W}),En=W({"\u0275mod":W}),rr=W({"\u0275fac":W}),pn=W({__NG_ELEMENT_ID__:W}),lt=0;function Se(c){return nn(function(){var p={},_={type:c.type,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:p,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===dn.OnPush,directiveDefs:null,pipeDefs:null,selectors:c.selectors||Ee,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||zn.Emulated,id:"c",styles:c.styles||Ee,_:null,setInput:null,schemas:c.schemas||null,tView:null},b=c.directives,Z=c.features,Q=c.pipes;return _.id+=lt++,_.inputs=cr(c.inputs,p),_.outputs=cr(c.outputs),Z&&Z.forEach(function(le){return le(_)}),_.directiveDefs=b?function(){return("function"==typeof b?b():b).map(Qe)}:null,_.pipeDefs=Q?function(){return("function"==typeof Q?Q():Q).map(_t)}:null,_})}function Ae(c,d,p){var _=c.\u0275cmp;_.directiveDefs=function(){return d.map(Qe)},_.pipeDefs=function(){return p.map(_t)}}function Qe(c){return Mr(c)||Hi(c)}function _t(c){return bo(c)}var Wt={};function gn(c){return nn(function(){var d={type:c.type,bootstrap:c.bootstrap||Ee,declarations:c.declarations||Ee,imports:c.imports||Ee,exports:c.exports||Ee,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null};return null!=c.id&&(Wt[c.id]=c.type),d})}function Rn(c,d){return nn(function(){var p=Gi(c,!0);p.declarations=d.declarations||Ee,p.imports=d.imports||Ee,p.exports=d.exports||Ee})}function cr(c,d){if(null==c)return Ue;var p={};for(var _ in c)if(c.hasOwnProperty(_)){var b=c[_],Z=b;Array.isArray(b)&&(Z=b[1],b=b[0]),p[b]=_,d&&(d[b]=Z)}return p}var Rr=Se;function Xr(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,onDestroy:c.type.prototype.ngOnDestroy||null}}function Mr(c){return c[He]||null}function Hi(c){return c[bt]||null}function bo(c){return c[Yt]||null}function Gi(c,d){var p=c[En]||null;if(!p&&!0===d)throw new Error("Type ".concat(ce(c)," does not have '\u0275mod' property."));return p}function Na(c){return Array.isArray(c)&&"object"==typeof c[1]}function vn(c){return Array.isArray(c)&&!0===c[1]}function bn(c){return 0!=(8&c.flags)}function oi(c){return 2==(2&c.flags)}function Li(c){return 1==(1&c.flags)}function qi(c){return null!==c.template}function ei(c){return 0!=(512&c[2])}function Qi(c,d){return c.hasOwnProperty(rr)?c[rr]:null}var Xa=function(){function c(d,p,_){(0,E.Z)(this,c),this.previousValue=d,this.currentValue=p,this.firstChange=_}return(0,F.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function Ps(){return $a}function $a(c){return c.type.prototype.ngOnChanges&&(c.setInput=Tu),Fa}function Fa(){var c=Qo(this),d=null==c?void 0:c.current;if(d){var p=c.previous;if(p===Ue)c.previous=d;else for(var _ in d)p[_]=d[_];c.current=null,this.ngOnChanges(d)}}function Tu(c,d,p,_){var b=Qo(c)||function es(c,d){return c[Ua]=d}(c,{previous:Ue,current:null}),Z=b.current||(b.current={}),Q=b.previous,le=this.declaredInputs[p],pe=Q[le];Z[le]=new Xa(pe&&pe.currentValue,d,Q===Ue),c[_]=d}Ps.ngInherit=!0;var Ua="__ngSimpleChanges__";function Qo(c){return c[Ua]||null}var Rs=null,wo=function(d,p,_){null!=Rs&&Rs(d,p,_)},ve="math";var Mn,gt=void 0;function St(c){gt=c}function un(){return void 0!==gt?gt:"undefined"!=typeof document?document:void 0}function Pn(c){return!!c.listen}!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Mn||(Mn={}));var Or={createRenderer:function(d,p){return un()}};function ar(c){for(;Array.isArray(c);)c=c[0];return c}function So(c,d){return ar(d[c])}function xi(c,d){return ar(d[c.index])}function Ve(c,d){return c.data[d]}function Le(c,d){return c[d]}function be(c,d){var p=d[c];return Na(p)?p:p[0]}function Je(c){return 4==(4&c[2])}function Ke(c){return 128==(128&c[2])}function an(c,d){return null==d?null:c[d]}function nr(c){c[18]=0}function Lr(c,d){c[5]+=d;for(var p=c,_=c[3];null!==_&&(1===d&&1===p[5]||-1===d&&0===p[5]);)_[5]+=d,p=_,_=_[3]}var Ir={lFrame:At(null),bindingsEnabled:!0};function si(){return Ir.bindingsEnabled}function dr(){Ir.bindingsEnabled=!0}function ac(){Ir.bindingsEnabled=!1}function Nn(){return Ir.lFrame.lView}function wi(){return Ir.lFrame.tView}function pi(c){return Ir.lFrame.contextLView=c,c[8]}function Di(){for(var c=cf();null!==c&&64===c.type;)c=c.parent;return c}function cf(){return Ir.lFrame.currentTNode}function Mu(){var c=Ir.lFrame,d=c.currentTNode;return c.isParent?d:d.parent}function ji(c,d){var p=Ir.lFrame;p.currentTNode=c,p.isParent=d}function hl(){return Ir.lFrame.isParent}function ze(){Ir.lFrame.isParent=!1}function $e(){var c=Ir.lFrame,d=c.bindingRootIndex;return-1===d&&(d=c.bindingRootIndex=c.tView.bindingStartIndex),d}function wt(){return Ir.lFrame.bindingIndex}function Ft(c){return Ir.lFrame.bindingIndex=c}function Vt(){return Ir.lFrame.bindingIndex++}function Qt(c){var d=Ir.lFrame,p=d.bindingIndex;return d.bindingIndex=d.bindingIndex+c,p}function Qn(c){Ir.lFrame.inI18n=c}function ir(c,d){var p=Ir.lFrame;p.bindingIndex=p.bindingRootIndex=c,gr(d)}function gr(c){Ir.lFrame.currentDirectiveIndex=c}function di(c){var d=Ir.lFrame.currentDirectiveIndex;return-1===d?null:c[d]}function Ne(){return Ir.lFrame.currentQueryIndex}function we(c){Ir.lFrame.currentQueryIndex=c}function X(c){var d=c[1];return 2===d.type?d.declTNode:1===d.type?c[6]:null}function je(c,d,p){if(p&ue.SkipSelf){for(var _=d,b=c;null===(_=_.parent)&&!(p&ue.Host)&&!(null===(_=X(b))||(b=b[15],10&_.type)););if(null===_)return!1;d=_,c=b}var Z=Ir.lFrame=it();return Z.currentTNode=d,Z.lView=c,!0}function De(c){var d=it(),p=c[1];Ir.lFrame=d,d.currentTNode=p.firstChild,d.lView=c,d.tView=p,d.contextLView=c,d.bindingIndex=p.bindingStartIndex,d.inI18n=!1}function it(){var c=Ir.lFrame,d=null===c?null:c.child;return null===d?At(c):d}function At(c){var d={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=d),d}function fn(){var c=Ir.lFrame;return Ir.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Sn=fn;function Sr(){var c=fn();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 Ti(c){var d=Ir.lFrame.contextLView=function jo(c,d){for(;c>0;)d=d[15],c--;return d}(c,Ir.lFrame.contextLView);return d[8]}function $i(){return Ir.lFrame.selectedIndex}function Ts(c){Ir.lFrame.selectedIndex=c}function eo(){var c=Ir.lFrame;return Ve(c.tView,c.selectedIndex)}function df(){Ir.lFrame.currentNamespace="svg"}function au(){Ir.lFrame.currentNamespace=ve}function Em(){!function id(){Ir.lFrame.currentNamespace=null}()}function ff(c,d){for(var p=d.directiveStart,_=d.directiveEnd;p<_;p++){var Z=c.data[p].type.prototype,Q=Z.ngAfterContentInit,le=Z.ngAfterContentChecked,pe=Z.ngAfterViewInit,Ie=Z.ngAfterViewChecked,et=Z.ngOnDestroy;Q&&(c.contentHooks||(c.contentHooks=[])).push(-p,Q),le&&((c.contentHooks||(c.contentHooks=[])).push(p,le),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(p,le)),pe&&(c.viewHooks||(c.viewHooks=[])).push(-p,pe),Ie&&((c.viewHooks||(c.viewHooks=[])).push(p,Ie),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(p,Ie)),null!=et&&(c.destroyHooks||(c.destroyHooks=[])).push(p,et)}}function Ip(c,d,p){od(c,d,3,p)}function pf(c,d,p,_){(3&c[2])===p&&od(c,d,p,_)}function Pp(c,d){var p=c[2];(3&p)===d&&(p&=2047,p+=1,c[2]=p)}function od(c,d,p,_){for(var b=void 0!==_?65535&c[18]:0,Z=null!=_?_:-1,Q=d.length-1,le=0,pe=b;pe<Q;pe++){if("number"==typeof d[pe+1]){if(le=d[pe],null!=_&&le>=_)break}else d[pe]<0&&(c[18]+=65536),(le<Z||-1==Z)&&(nv(c,p,d,pe),c[18]=(4294901760&c[18])+pe+2),pe++}}function nv(c,d,p,_){var b=p[_]<0,Z=p[_+1],le=c[b?-p[_]:p[_]];if(b){if(c[2]>>11<c[18]>>16&&(3&c[2])===d){c[2]+=2048,wo(4,le,Z);try{Z.call(le)}finally{wo(5,le,Z)}}}else{wo(4,le,Z);try{Z.call(le)}finally{wo(5,le,Z)}}}var ts=(0,F.Z)(function c(d,p,_){(0,E.Z)(this,c),this.factory=d,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=_});function xu(c,d,p){for(var _=Pn(c),b=0;b<p.length;){var Z=p[b];if("number"==typeof Z){if(0!==Z)break;b++;var Q=p[b++],le=p[b++],pe=p[b++];_?c.setAttribute(d,le,pe,Q):d.setAttributeNS(Q,le,pe)}else{var Ie=Z,et=p[++b];ad(Ie)?_&&c.setProperty(d,Ie,et):_?c.setAttribute(d,Ie,et):d.setAttribute(Ie,et),b++}}return b}function Du(c){return 3===c||4===c||6===c}function ad(c){return 64===c.charCodeAt(0)}function uc(c,d){if(null!==d&&0!==d.length)if(null===c||0===c.length)c=d.slice();else for(var p=-1,_=0;_<d.length;_++){var b=d[_];"number"==typeof b?p=b:0===p||xm(c,p,b,null,-1===p||2===p?d[++_]:null)}return c}function xm(c,d,p,_,b){var Z=0,Q=c.length;if(-1===d)Q=-1;else for(;Z<c.length;){var le=c[Z++];if("number"==typeof le){if(le===d){Q=-1;break}if(le>d){Q=Z-1;break}}}for(;Z<c.length;){var pe=c[Z];if("number"==typeof pe)break;if(pe===p){if(null===_)return void(null!==b&&(c[Z+1]=b));if(_===c[Z+1])return void(c[Z+2]=b)}Z++,null!==_&&Z++,null!==b&&Z++}-1!==Q&&(c.splice(Q,0,d),Z=Q+1),c.splice(Z++,0,p),null!==_&&c.splice(Z++,0,_),null!==b&&c.splice(Z++,0,b)}function Ca(c){return-1!==c}function Au(c){return 32767&c}function cs(c,d){for(var p=function Dm(c){return c>>16}(c),_=d;p>0;)_=_[15],p--;return _}var Ou=!0;function cc(c){var d=Ou;return Ou=c,d}var YN=0;function iv(c,d){var p=DI(c,d);if(-1!==p)return p;var _=d[1];_.firstCreatePass&&(c.injectorIndex=d.length,Mb(_.data,c),Mb(d,null),Mb(_.blueprint,null));var b=oT(c,d),Z=c.injectorIndex;if(Ca(b))for(var Q=Au(b),le=cs(b,d),pe=le[1].data,Ie=0;Ie<8;Ie++)d[Z+Ie]=le[Q+Ie]|pe[Q+Ie];return d[Z+8]=b,Z}function Mb(c,d){c.push(0,0,0,0,0,0,0,0,d)}function DI(c,d){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===d[c.injectorIndex+8]?-1:c.injectorIndex}function oT(c,d){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var p=0,_=null,b=d;null!==b;){var Z=b[1],Q=Z.type;if(null===(_=2===Q?Z.declTNode:1===Q?b[6]:null))return-1;if(p++,b=b[15],-1!==_.injectorIndex)return _.injectorIndex|p<<16}return-1}function aT(c,d,p){!function xI(c,d,p){var _;"string"==typeof p?_=p.charCodeAt(0)||0:p.hasOwnProperty(pn)&&(_=p[pn]),null==_&&(_=p[pn]=YN++);var b=255&_,Z=1<<b;d.data[c+(b>>5)]|=Z}(c,d,p)}function GN(c,d,p){if(p&ue.Optional)return c;Xt(d,"NodeInjector")}function ld(c,d,p,_){if(p&ue.Optional&&void 0===_&&(_=null),0==(p&(ue.Self|ue.Host))){var b=c[9],Z=Dt(void 0);try{return b?b.get(d,_,p&ue.Optional):tn(d,_,p&ue.Optional)}finally{Dt(Z)}}return GN(_,d,p)}function ov(c,d,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ue.Default,b=arguments.length>4?arguments[4]:void 0;if(null!==c){var Z=Vz(p);if("function"==typeof Z){if(!je(d,c,_))return _&ue.Host?GN(b,p,_):ld(d,p,_,b);try{var Q=Z(_);if(null!=Q||_&ue.Optional)return Q;Xt(p)}finally{Sn()}}else if("number"==typeof Z){var le=null,pe=DI(c,d),Ie=-1,et=_&ue.Host?d[16][6]:null;for((-1===pe||_&ue.SkipSelf)&&(-1!==(Ie=-1===pe?oT(c,d):d[pe+8])&&II(_,!1)?(le=d[1],pe=Au(Ie),d=cs(Ie,d)):pe=-1);-1!==pe;){var Tt=d[1];if(KN(Z,pe,Tt.data)){var Ot=qN(pe,d,p,le,_,et);if(Ot!==Am)return Ot}-1!==(Ie=d[pe+8])&&II(_,d[1].data[pe+8]===et)&&KN(Z,pe,d)?(le=Tt,pe=Au(Ie),d=cs(Ie,d)):pe=-1}}}return ld(d,p,_,b)}var Am={};function OI(){return new Om(Di(),Nn())}function qN(c,d,p,_,b,Z){var Q=d[1],le=Q.data[c+8],et=av(le,Q,p,null==_?oi(le)&&Ou:_!=Q&&0!=(3&le.type),b&ue.Host&&Z===le);return null!==et?hf(d,Q,et,le):Am}function av(c,d,p,_,b){for(var Z=c.providerIndexes,Q=d.data,le=1048575&Z,pe=c.directiveStart,Ie=c.directiveEnd,et=Z>>20,Ot=b?le+et:Ie,zt=_?le:le+et;zt<Ot;zt++){var hn=Q[zt];if(zt<pe&&p===hn||zt>=pe&&hn.type===p)return zt}if(b){var Bn=Q[pe];if(Bn&&qi(Bn)&&Bn.type===p)return pe}return null}function hf(c,d,p,_){var b=c[p],Z=d.data;if(function Sm(c){return c instanceof ts}(b)){var Q=b;Q.resolving&&function ct(c,d){var p=d?". Dependency path: ".concat(d.join(" > ")," > ").concat(c):"";throw new xe(-200,"Circular dependency in DI detected for ".concat(c).concat(p))}(Be(Z[p]));var le=cc(Q.canSeeViewProviders);Q.resolving=!0;var pe=Q.injectImpl?Dt(Q.injectImpl):null;je(c,_,ue.Default);try{b=c[p]=Q.factory(void 0,Z,c,_),d.firstCreatePass&&p>=_.directiveStart&&function Mm(c,d,p){var _=d.type.prototype,b=_.ngOnChanges,Z=_.ngOnInit,Q=_.ngDoCheck;if(b){var le=$a(d);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,le),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,le)}Z&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,Z),Q&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,Q),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,Q))}(p,Z[p],d)}finally{null!==pe&&Dt(pe),cc(le),Q.resolving=!1,Sn()}}return b}function Vz(c){if("string"==typeof c)return c.charCodeAt(0)||0;var d=c.hasOwnProperty(pn)?c[pn]:void 0;return"number"==typeof d?d>=0?255&d:OI:d}function KN(c,d,p){var _=1<<c;return!!(p[d+(c>>5)]&_)}function II(c,d){return!(c&ue.Self||c&ue.Host&&d)}var Om=function(){function c(d,p){(0,E.Z)(this,c),this._tNode=d,this._lView=p}return(0,F.Z)(c,[{key:"get",value:function(p,_,b){return ov(this._tNode,this._lView,p,b,_)}}]),c}();function JN(c){return nn(function(){for(var d=c.prototype.constructor,p=d[rr]||PI(d),_=Object.prototype,b=Object.getPrototypeOf(c.prototype).constructor;b&&b!==_;){var Z=b[rr]||PI(b);if(Z&&Z!==p)return Z;b=Object.getPrototypeOf(b)}return function(Q){return new Q}})}function PI(c){return Oe(c)?function(){var d=PI(ge(c));return d&&d()}:Qi(c)}function sT(c){return function AI(c,d){if("class"===d)return c.classes;if("style"===d)return c.styles;var p=c.attrs;if(p)for(var _=p.length,b=0;b<_;){var Z=p[b];if(Du(Z))break;if(0===Z)b+=2;else if("number"==typeof Z)for(b++;b<_&&"string"==typeof p[b];)b++;else{if(Z===d)return p[b+1];b+=2}}return null}(Di(),c)}var Im="__annotations__",sv="__parameters__",lv="__prop__metadata__";function Sb(c,d,p,_,b){return nn(function(){var Z=RI(d);function Q(){for(var le=arguments.length,pe=new Array(le),Ie=0;Ie<le;Ie++)pe[Ie]=arguments[Ie];if(this instanceof Q)return Z.call.apply(Z,[this].concat(pe)),this;var et=(0,K.Z)(Q,pe);return function(Ot){return b&&b.apply(void 0,[Ot].concat(pe)),(Ot.hasOwnProperty(Im)?Ot[Im]:Object.defineProperty(Ot,Im,{value:[]})[Im]).push(et),_&&_(Ot),Ot}}return p&&(Q.prototype=Object.create(p.prototype)),Q.prototype.ngMetadataName=c,Q.annotationCls=Q,Q})}function RI(c){return function(){if(c){var p=c.apply(void 0,arguments);for(var _ in p)this[_]=p[_]}}}function uv(c,d,p){return nn(function(){var _=RI(d);function b(){for(var Z=arguments.length,Q=new Array(Z),le=0;le<Z;le++)Q[le]=arguments[le];if(this instanceof b)return _.apply(this,Q),this;var pe=(0,K.Z)(b,Q);return Ie.annotation=pe,Ie;function Ie(et,Tt,Ot){for(var zt=et.hasOwnProperty(sv)?et[sv]:Object.defineProperty(et,sv,{value:[]})[sv];zt.length<=Ot;)zt.push(null);return(zt[Ot]=zt[Ot]||[]).push(pe),et}}return p&&(b.prototype=Object.create(p.prototype)),b.prototype.ngMetadataName=c,b.annotationCls=b,b})}function Rp(c,d,p,_){return nn(function(){var b=RI(d);function Z(){for(var Q=arguments.length,le=new Array(Q),pe=0;pe<Q;pe++)le[pe]=arguments[pe];if(this instanceof Z)return b.apply(this,le),this;var Ie=(0,K.Z)(Z,le);function et(Tt,Ot){var zt=Tt.constructor,hn=zt.hasOwnProperty(lv)?zt[lv]:Object.defineProperty(zt,lv,{value:{}})[lv];hn[Ot]=hn.hasOwnProperty(Ot)&&hn[Ot]||[],hn[Ot].unshift(Ie),_&&_.apply(void 0,[Tt,Ot].concat(le))}return et}return p&&(Z.prototype=Object.create(p.prototype)),Z.prototype.ngMetadataName=c,Z.annotationCls=Z,Z})}var Pm,$N,LI=uv("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return sT(c)}}}),wa=function(){function c(d,p){(0,E.Z)(this,c),this._desc=d,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=yt({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}return(0,F.Z)(c,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),Yz=new wa("AnalyzeForEntryComponents"),lT=(0,F.Z)(function c(){(0,E.Z)(this,c)}),Gz=Rp("ContentChildren",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},d)},lT),qz=Rp("ContentChild",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},d)},lT),Kz=Rp("ViewChildren",function(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},d)},lT),XN=Rp("ViewChild",function(c,d){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},d)},lT);function ds(c){var d=Yn.ng;if(d&&d.\u0275compilerFacade)return d.\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"}(Pm||(Pm={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}($N||($N={}));var xb=Function;function cv(c){return"function"==typeof c}function ml(c,d){void 0===d&&(d=c);for(var p=0;p<c.length;p++){var _=c[p];Array.isArray(_)?(d===c&&(d=c.slice(0,p)),ml(_,d)):d!==c&&d.push(_)}return d}function fc(c,d){c.forEach(function(p){return Array.isArray(p)?fc(p,d):d(p)})}function NI(c,d,p){d>=c.length?c.push(p):c.splice(d,0,p)}function dv(c,d){return d>=c.length-1?c.pop():c.splice(d,1)[0]}function Rm(c,d){for(var p=[],_=0;_<c;_++)p.push(d);return p}function Rl(c,d,p){var _=Lp(c,d);return _>=0?c[1|_]=p:function eB(c,d,p,_){var b=c.length;if(b==d)c.push(p,_);else if(1===b)c.push(_,c[0]),c[0]=p;else{for(b--,c.push(c[b-1],c[b]);b>d;){var Z=b-2;c[b]=c[Z],b--}c[d]=p,c[d+1]=_}}(c,_=~_,d,p),_}function uT(c,d){var p=Lp(c,d);if(p>=0)return c[1|p]}function Lp(c,d){return dT(c,d,1)}function dT(c,d,p){for(var _=0,b=c.length>>p;b!==_;){var Z=_+(b-_>>1),Q=c[Z<<p];if(d===Q)return Z<<p;Q>d?b=Z:_=Z+1}return~(b<<p)}var fT=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Ab=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,BI=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,nB=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var Ob=function(){function c(d){(0,E.Z)(this,c),this._reflect=d||Yn.Reflect}return(0,F.Z)(c,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(p){return function(){for(var _=arguments.length,b=new Array(_),Z=0;Z<_;Z++)b[Z]=arguments[Z];return(0,K.Z)(p,b)}}},{key:"_zipTypesAndAnnotations",value:function(p,_){var b;b=Rm(void 0===p?_.length:p.length);for(var Z=0;Z<b.length;Z++)void 0===p?b[Z]=[]:p[Z]&&p[Z]!=Object?b[Z]=[p[Z]]:b[Z]=[],_&&null!=_[Z]&&(b[Z]=b[Z].concat(_[Z]));return b}},{key:"_ownParameters",value:function(p,_){if(function rB(c){return fT.test(c)||nB.test(c)||Ab.test(c)&&!BI.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==_.parameters)return p.parameters;var Z=p.ctorParameters;if(Z&&Z!==_.ctorParameters){var Q="function"==typeof Z?Z():Z,le=Q.map(function(Tt){return Tt&&Tt.type}),pe=Q.map(function(Tt){return Tt&&Ll(Tt.decorators)});return this._zipTypesAndAnnotations(le,pe)}var Ie=p.hasOwnProperty(sv)&&p[sv],et=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return et||Ie?this._zipTypesAndAnnotations(et,Ie):Rm(p.length)}},{key:"parameters",value:function(p){if(!cv(p))return[];var _=mf(p),b=this._ownParameters(p,_);return!b&&_!==Object&&(b=this.parameters(_)),b||[]}},{key:"_ownAnnotations",value:function(p,_){if(p.annotations&&p.annotations!==_.annotations){var b=p.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}return p.decorators&&p.decorators!==_.decorators?Ll(p.decorators):p.hasOwnProperty(Im)?p[Im]:null}},{key:"annotations",value:function(p){if(!cv(p))return[];var _=mf(p),b=this._ownAnnotations(p,_)||[];return(_!==Object?this.annotations(_):[]).concat(b)}},{key:"_ownPropMetadata",value:function(p,_){if(p.propMetadata&&p.propMetadata!==_.propMetadata){var b=p.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(p.propDecorators&&p.propDecorators!==_.propDecorators){var Z=p.propDecorators,Q={};return Object.keys(Z).forEach(function(le){Q[le]=Ll(Z[le])}),Q}return p.hasOwnProperty(lv)?p[lv]:null}},{key:"propMetadata",value:function(p){if(!cv(p))return{};var _=mf(p),b={};if(_!==Object){var Z=this.propMetadata(_);Object.keys(Z).forEach(function(le){b[le]=Z[le]})}var Q=this._ownPropMetadata(p,_);return Q&&Object.keys(Q).forEach(function(le){var pe=[];b.hasOwnProperty(le)&&pe.push.apply(pe,(0,y.Z)(b[le])),pe.push.apply(pe,(0,y.Z)(Q[le])),b[le]=pe}),b}},{key:"ownPropMetadata",value:function(p){return cv(p)&&this._ownPropMetadata(p,mf(p))||{}}},{key:"hasLifecycleHook",value:function(p,_){return p instanceof xb&&_ in p.prototype}},{key:"guards",value:function(p){return{}}},{key:"getter",value:function(p){return new Function("o","return o."+p+";")}},{key:"setter",value:function(p){return new Function("o","v","return o."+p+" = v;")}},{key:"method",value:function(p){var _="if (!o.".concat(p,") throw new Error('\"").concat(p,"\" is undefined');\n return o.").concat(p,".apply(o, args);");return new Function("o","args",_)}},{key:"importUri",value:function(p){return"object"==typeof p&&p.filePath?p.filePath:"./".concat(ce(p))}},{key:"resourceUri",value:function(p){return"./".concat(ce(p))}},{key:"resolveIdentifier",value:function(p,_,b,Z){return Z}},{key:"resolveEnum",value:function(p,_){return p[_]}}]),c}();function Ll(c){return c?c.map(function(d){var _=d.type.annotationCls,b=d.args?d.args:[];return(0,K.Z)(_,(0,y.Z)(b))}):[]}function mf(c){var d=c.prototype?Object.getPrototypeOf(c.prototype):null;return(d?d.constructor:null)||Object}var _f={},pT="__NG_DI_FLAG__",pv="ngTempTokenPath",aB=/\n/gm,hT="__source",mv=W({provide:String,useValue:W}),Ls=void 0;function _v(c){var d=Ls;return Ls=c,d}function sB(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;if(void 0===Ls){var p="";throw new xe(203,p)}return null===Ls?tn(c,void 0,d):Ls.get(c,d&ue.Optional?null:void 0,d)}function ns(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default;return(at()||sB)(ge(c),d)}function FI(c){throw new Error("invalid")}var fs=ns;function UI(c){for(var d=[],p=0;p<c.length;p++){var _=ge(c[p]);if(Array.isArray(_)){if(0===_.length){throw new xe(900,"")}for(var Z=void 0,Q=ue.Default,le=0;le<_.length;le++){var pe=_[le],Ie=Ib(pe);"number"==typeof Ie?-1===Ie?Z=pe.token:Q|=Ie:Z=pe}d.push(ns(Z,Q))}else d.push(ns(_))}return d}function Iu(c,d){return c[pT]=d,c.prototype[pT]=d,c}function Ib(c){return c[pT]}function HI(c,d,p,_){var b=c[pv];throw d[hT]&&b.unshift(d[hT]),c.message=function jI(c,d,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.substr(2):c;var b=ce(d);if(Array.isArray(d))b=d.map(ce).join(" -> ");else if("object"==typeof d){var Z=[];for(var Q in d)if(d.hasOwnProperty(Q)){var le=d[Q];Z.push(Q+":"+("string"==typeof le?JSON.stringify(le):ce(le)))}b="{".concat(Z.join(", "),"}")}return"".concat(p).concat(_?"("+_+")":"","[").concat(b,"]: ").concat(c.replace(aB,"\n "))}("\n"+c.message,b,p,_),c.ngTokenPath=b,c[pv]=null,c}var gv=Iu(uv("Inject",function(c){return{token:c}}),-1),Zm=Iu(uv("Optional"),8),Pb=Iu(uv("Self"),2),Nm=Iu(uv("SkipSelf"),4),mT=Iu(uv("Host"),1),su=null;function Zs(){return su=su||new Ob}function Rb(c){return Lb(Zs().parameters(c))}function Lb(c){return c.map(function(d){return function Zp(c){var d={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 b=Object.getPrototypeOf(_);if(_ instanceof Zm||"Optional"===b.ngMetadataName)d.optional=!0;else if(_ instanceof Nm||"SkipSelf"===b.ngMetadataName)d.skipSelf=!0;else if(_ instanceof Pb||"Self"===b.ngMetadataName)d.self=!0;else if(_ instanceof mT||"Host"===b.ngMetadataName)d.host=!0;else if(_ instanceof gv)d.token=_.token;else if(_ instanceof LI){if(void 0===_.attributeName)throw new Error("Attribute name must be defined.");d.attribute=_.attributeName}else d.token=_}}else void 0===c||Array.isArray(c)&&0===c.length?d.token=null:d.token=c;return d}(d)})}var Fp,cd,Np=new Map,Bp=new Set;function Bm(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}function Up(){if(void 0===Fp&&(Fp=null,Yn.trustedTypes))try{Fp=Yn.trustedTypes.createPolicy("angular",{createHTML:function(d){return d},createScript:function(d){return d},createScriptURL:function(d){return d}})}catch(c){}return Fp}function Fm(c){var d;return(null===(d=Up())||void 0===d?void 0:d.createHTML(c))||c}function Pu(){if(void 0===cd&&(cd=null,Yn.trustedTypes))try{cd=Yn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(d){return d},createScript:function(d){return d},createScriptURL:function(d){return d}})}catch(c){}return cd}function dd(c){var d;return(null===(d=Pu())||void 0===d?void 0:d.createHTML(c))||c}function pc(c){var d;return(null===(d=Pu())||void 0===d?void 0:d.createScript(c))||c}function Hp(c){var d;return(null===(d=Pu())||void 0===d?void 0:d.createScriptURL(c))||c}var lu=function(){function c(d){(0,E.Z)(this,c),this.changingThisBreaksApplicationSecurity=d}return(0,F.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),gf=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(lu),qI=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(lu),gT=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(lu),cB=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(lu),KI=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),p}(lu);function _l(c){return c instanceof lu?c.changingThisBreaksApplicationSecurity:c}function Um(c,d){var p=JI(c);if(null!=p&&p!==d){if("ResourceURL"===p&&"URL"===d)return!0;throw new Error("Required a safe ".concat(d,", got a ").concat(p," (see https://g.co/ng/security#xss)"))}return p===d}function JI(c){return c instanceof lu&&c.getTypeName()||null}function dB(c){return new gf(c)}function Nb(c){return new qI(c)}function yv(c){return new gT(c)}function vT(c){return new cB(c)}function bv(c){return new KI(c)}function QI(c){var d=new jp(c);return function fB(){try{return!!(new window.DOMParser).parseFromString(Fm(""),"text/html")}catch(c){return!1}}()?new yT(d):d}var yT=function(){function c(d){(0,E.Z)(this,c),this.inertDocumentHelper=d}return(0,F.Z)(c,[{key:"getInertBodyElement",value:function(p){p="<body><remove></remove>"+p;try{var _=(new window.DOMParser).parseFromString(Fm(p),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(p):(_.removeChild(_.firstChild),_)}catch(b){return null}}}]),c}(),jp=function(){function c(d){if((0,E.Z)(this,c),this.defaultDoc=d,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,F.Z)(c,[{key:"getInertBodyElement",value:function(p){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Fm(p),_;var b=this.inertDocument.createElement("body");return b.innerHTML=Fm(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(b),b}},{key:"stripCustomNsAttrs",value:function(p){for(var _=p.attributes,b=_.length-1;0<b;b--){var Q=_.item(b).name;("xmlns:ns1"===Q||0===Q.indexOf("ns1:"))&&p.removeAttribute(Q)}for(var le=p.firstChild;le;)le.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(le),le=le.nextSibling}}]),c}();var pB=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,$I=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Hm(c){return(c=String(c)).match(pB)||c.match($I)?c:"unsafe:"+c}function bT(c){return(c=String(c)).split(",").map(function(d){return Hm(d.trim())}).join(", ")}function Ru(c){var _,d={},p=(0,D.Z)(c.split(","));try{for(p.s();!(_=p.n()).done;){d[_.value]=!0}}catch(Z){p.e(Z)}finally{p.f()}return d}function jm(){for(var c={},d=arguments.length,p=new Array(d),_=0;_<d;_++)p[_]=arguments[_];for(var b=0,Z=p;b<Z.length;b++){var Q=Z[b];for(var le in Q)Q.hasOwnProperty(le)&&(c[le]=!0)}return c}var vf,uu,CT=Ru("area,br,col,hr,img,wbr"),zm=Ru("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fd=Ru("rp,rt"),eP=jm(fd,zm),hc=jm(zm,Ru("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")),tP=jm(fd,Ru("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")),nP=jm(CT,hc,tP,eP),rP=Ru("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),iP=Ru("srcset"),hB=Ru("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wT=Ru("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"),pd=jm(rP,iP,hB,wT),kT=Ru("script,style,template"),mB=function(){function c(){(0,E.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,F.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var _=p.firstChild,b=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?b=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,b&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var Z=this.checkClobberedElement(_,_.nextSibling);if(Z){_=Z;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var _=p.nodeName.toLowerCase();if(!nP.hasOwnProperty(_))return this.sanitizedSomething=!0,!kT.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var b=p.attributes,Z=0;Z<b.length;Z++){var Q=b.item(Z),le=Q.name,pe=le.toLowerCase();if(pd.hasOwnProperty(pe)){var Ie=Q.value;rP[pe]&&(Ie=Hm(Ie)),iP[pe]&&(Ie=bT(Ie)),this.buf.push(" ",le,'="',Bb(Ie),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var _=p.nodeName.toLowerCase();nP.hasOwnProperty(_)&&!CT.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(Bb(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}(),oP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,aP=/([^\#-~ |!])/g;function Bb(c){return c.replace(/&/g,"&").replace(oP,function(d){return"&#"+(1024*(d.charCodeAt(0)-55296)+(d.charCodeAt(1)-56320)+65536)+";"}).replace(aP,function(d){return"&#"+d.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function Fb(c,d){var p=null;try{vf=vf||QI(c);var _=d?String(d):"";p=vf.getInertBodyElement(_);var b=5,Z=_;do{if(0===b)throw new Error("Failed to sanitize html because the input is unstable");b--,_=Z,Z=p.innerHTML,p=vf.getInertBodyElement(_)}while(_!==Z);return Fm((new mB).sanitizeChildren(ja(p)||p))}finally{if(p)for(var pe=ja(p)||p;pe.firstChild;)pe.removeChild(pe.firstChild)}}function ja(c){return"content"in c&&function hd(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function sP(c){var d=Cv();return d?dd(d.sanitize(uu.HTML,c)||""):Um(c,"HTML")?dd(_l(c)):Fb(un(),ke(c))}function lP(c){var d=Cv();return d?d.sanitize(uu.STYLE,c)||"":Um(c,"Style")?_l(c):ke(c)}function TT(c){var d=Cv();return d?d.sanitize(uu.URL,c)||"":Um(c,"URL")?_l(c):Hm(ke(c))}function zp(c){var d=Cv();if(d)return Hp(d.sanitize(uu.RESOURCE_URL,c)||"");if(Um(c,"ResourceURL"))return Hp(_l(c));throw new xe(904,"")}function uP(c){var d=Cv();if(d)return pc(d.sanitize(uu.SCRIPT,c)||"");if(Um(c,"Script"))return pc(_l(c));throw new xe(905,"")}function _B(c){return Fm(c[0])}function Ub(c){return function ud(c){var d;return(null===(d=Up())||void 0===d?void 0:d.createScriptURL(c))||c}(c[0])}function vB(c,d,p){return function gB(c,d){return"src"===d&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===d&&("base"===c||"link"===c)?zp:TT}(d,p)(c)}function Cv(){var c=Nn();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"}(uu||(uu={}));var cP="__ngContext__";function Ns(c,d){c[cP]=d}function wv(c){return c[cP]||null}function jb(c){var d=wv(c);return d?Array.isArray(d)?d:d.lView:null}var gl="ngOriginalError";function Tv(c){return c[gl]}function yf(c){for(var d=arguments.length,p=new Array(d>1?d-1:0),_=1;_<d;_++)p[_-1]=arguments[_];c.error.apply(c,p)}var Vm=function(){function c(){(0,E.Z)(this,c),this._console=console}return(0,F.Z)(c,[{key:"handleError",value:function(p){var _=this._findOriginalError(p),b=function DT(c){return c&&c.ngErrorLogger||yf}(p);b(this._console,"ERROR",p),_&&b(this._console,"ORIGINAL ERROR",_)}},{key:"_findOriginalError",value:function(p){for(var _=p&&Tv(p);_&&Tv(_);)_=Tv(_);return _||null}}]),c}(),Yb=/^>|^->|<!--|-->|--!>|<!-$/g,OT=/(<|>)/;function vl(c){return c.replace(Yb,function(d){return d.replace(OT,"\u200b$1\u200b")})}var Ym=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Yn);function Kb(c){return c.ownerDocument.defaultView}function Jb(c){return c.ownerDocument}function Gm(c){return c.ownerDocument.body}var Ev,PT;function Wa(c){return c instanceof Function?c():c}function Mv(c,d){return PT(c,d)}!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Ev||(Ev={}));function Sv(c){var d=c[3];return vn(d)?d[3]:d}function ZT(c){return mP(c[13])}function NT(c){return mP(c[4])}function mP(c){for(;null!==c&&!vn(c);)c=c[4];return c}function qm(c,d,p,_,b){if(null!=_){var Z,Q=!1;vn(_)?Z=_:Na(_)&&(Q=!0,_=_[0]);var le=ar(_);0===c&&null!==p?null==b?CP(d,p,le):Yp(d,p,le,b||null,!0):1===c&&null!==p?Yp(d,p,le,b||null,!0):2===c?MP(d,le,Q):3===c&&d.destroyNode(le),null!=Z&&function MB(c,d,p,_,b){var Z=p[7],Q=ar(p);Z!==Q&&qm(d,c,_,Z,b);for(var le=10;le<p.length;le++){var pe=p[le];Dv(pe[1],pe,c,d,_,Z)}}(d,c,Z,p,b)}}function Xb(c,d){return Pn(c)?c.createText(d):c.createTextNode(d)}function _P(c,d,p){Pn(c)?c.setValue(d,p):d.textContent=p}function BT(c,d){return c.createComment(vl(d))}function $b(c,d,p){if(Pn(c))return c.createElement(d,p);var _=null!==p?function Ge(c){var d=c.toLowerCase();return"svg"===d?"http://www.w3.org/2000/svg":d===ve?"http://www.w3.org/1998/MathML/":null}(p):null;return null===_?c.createElement(d):c.createElementNS(_,d)}function Xs(c,d,p,_){var b=10+_,Z=p.length;_>0&&(p[b-1][4]=d),_<Z-10?(d[4]=p[b],NI(p,10+_,d)):(p.push(d),d[4]=null),d[3]=p;var Q=d[17];null!==Q&&p!==Q&&function TB(c,d){var p=c[9],b=d[3][3][16];d[16]!==b&&(c[2]=!0),null===p?c[9]=[d]:p.push(d)}(Q,d);var le=d[19];null!==le&&le.insertView(c),d[2]|=128}function e1(c,d){var p=c[9],_=p.indexOf(d),b=d[3];1024&d[2]&&(d[2]&=-1025,Lr(b,-1)),p.splice(_,1)}function t1(c,d){if(!(c.length<=10)){var p=10+d,_=c[p];if(_){var b=_[17];null!==b&&b!==c&&e1(b,_),d>0&&(c[p-1][4]=_[4]);var Z=dv(c,10+d);!function wB(c,d){Dv(c,d,d[11],2,null,null),d[0]=null,d[6]=null}(_[1],_);var Q=Z[19];null!==Q&&Q.detachView(Z[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}}function n1(c,d){if(!(256&d[2])){var p=d[11];Pn(p)&&p.destroyNode&&Dv(c,d,p,3,null,null),function gP(c){var d=c[13];if(!d)return FT(c[1],c);for(;d;){var p=null;if(Na(d))p=d[13];else{var _=d[10];_&&(p=_)}if(!p){for(;d&&!d[4]&&d!==c;)Na(d)&&FT(d[1],d),d=d[3];null===d&&(d=c),Na(d)&&FT(d[1],d),p=d&&d[4]}d=p}}(d)}}function FT(c,d){if(!(256&d[2])){d[2]&=-129,d[2]|=256,function Km(c,d){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var _=0;_<p.length;_+=2){var b=d[p[_]];if(!(b instanceof ts)){var Z=p[_+1];if(Array.isArray(Z))for(var Q=0;Q<Z.length;Q+=2){var le=b[Z[Q]],pe=Z[Q+1];wo(4,le,pe);try{pe.call(le)}finally{wo(5,le,pe)}}else{wo(4,b,Z);try{Z.call(b)}finally{wo(5,b,Z)}}}}}(c,d),function vP(c,d){var p=c.cleanup,_=d[7],b=-1;if(null!==p)for(var Z=0;Z<p.length-1;Z+=2)if("string"==typeof p[Z]){var Q=p[Z+1],le="function"==typeof Q?Q(d):ar(d[Q]),pe=_[b=p[Z+2]],Ie=p[Z+3];"boolean"==typeof Ie?le.removeEventListener(p[Z],pe,Ie):Ie>=0?_[b=Ie]():_[b=-Ie].unsubscribe(),Z+=2}else{var et=_[b=p[Z+1]];p[Z].call(et)}if(null!==_){for(var Tt=b+1;Tt<_.length;Tt++){(0,_[Tt])()}d[7]=null}}(c,d),1===d[1].type&&Pn(d[11])&&d[11].destroy();var p=d[17];if(null!==p&&vn(d[3])){p!==d[3]&&e1(p,d);var _=d[19];null!==_&&_.detachView(c)}}}function yP(c,d,p){return bP(c,d.parent,p)}function bP(c,d,p){for(var _=d;null!==_&&40&_.type;)_=(d=_).parent;if(null===_)return p[0];if(2&_.flags){var b=c.data[_.directiveStart].encapsulation;if(b===zn.None||b===zn.Emulated)return null}return xi(_,p)}function Yp(c,d,p,_,b){Pn(c)?c.insertBefore(d,p,_,b):d.insertBefore(p,_,b)}function CP(c,d,p){Pn(c)?c.appendChild(d,p):d.appendChild(p)}function UT(c,d,p,_,b){null!==_?Yp(c,d,p,_,b):CP(c,d,p)}function Jm(c,d){return Pn(c)?c.parentNode(d):d.parentNode}function wP(c,d,p){return TP(c,d,p)}function kP(c,d,p){return 40&c.type?xi(c,p):null}var _d,TP=kP;function jT(c,d){TP=c,_d=d}function i1(c,d,p,_){var b=yP(c,_,d),Z=d[11],le=wP(_.parent||d[6],_,d);if(null!=b)if(Array.isArray(p))for(var pe=0;pe<p.length;pe++)UT(Z,b,p[pe],le,!1);else UT(Z,b,p,le,!1);void 0!==_d&&_d(Z,_,d,p,b)}function xv(c,d){if(null!==d){var p=d.type;if(3&p)return xi(d,c);if(4&p)return bf(-1,c[d.index]);if(8&p){var _=d.child;if(null!==_)return xv(c,_);var b=c[d.index];return vn(b)?bf(-1,b):ar(b)}if(32&p)return Mv(d,c)()||ar(c[d.index]);var le=EP(c,d);return null!==le?Array.isArray(le)?le[0]:xv(Sv(c[16]),le):xv(c,d.next)}return null}function EP(c,d){if(null!==d){var _=c[16][6],b=d.projection;return _.projection[b]}return null}function bf(c,d){var p=10+c+1;if(p<d.length){var _=d[p],b=_[1].firstChild;if(null!==b)return xv(_,b)}return d[7]}function MP(c,d,p){var _=Jm(c,d);_&&function r1(c,d,p,_){Pn(c)?c.removeChild(d,p,_):d.removeChild(p)}(c,_,d,p)}function zT(c,d,p,_,b,Z,Q){for(;null!=p;){var le=_[p.index],pe=p.type;if(Q&&0===d&&(le&&Ns(ar(le),_),p.flags|=4),64!=(64&p.flags))if(8&pe)zT(c,d,p.child,_,b,Z,!1),qm(d,c,b,le,Z);else if(32&pe){for(var Ie=Mv(p,_),et=void 0;et=Ie();)qm(d,c,b,et,Z);qm(d,c,b,le,Z)}else 16&pe?SP(c,d,_,p,b,Z):qm(d,c,b,le,Z);p=Q?p.projectionNext:p.next}}function Dv(c,d,p,_,b,Z){zT(p,_,c.firstChild,d,b,Z,!1)}function EB(c,d,p){SP(d[11],0,d,p,yP(c,p,d),wP(p.parent||d[6],p,d))}function SP(c,d,p,_,b,Z){var Q=p[16],pe=Q[6].projection[_.projection];if(Array.isArray(pe))for(var Ie=0;Ie<pe.length;Ie++){qm(d,c,b,pe[Ie],Z)}else zT(c,d,pe,Q[3],b,Z,!0)}function xP(c,d,p){Pn(c)?c.setAttribute(d,"style",p):d.style.cssText=p}function VT(c,d,p){Pn(c)?""===p?c.removeAttribute(d,"class"):c.setAttribute(d,"class",p):d.className=p}function DP(c,d,p){for(var _=c.length;;){var b=c.indexOf(d,p);if(-1===b)return b;if(0===b||c.charCodeAt(b-1)<=32){var Z=d.length;if(b+Z===_||c.charCodeAt(b+Z)<=32)return b}p=b+1}}var AP="ng-template";function YT(c,d,p){for(var _=0;_<c.length;){var b=c[_++];if(p&&"class"===b){if(-1!==DP((b=c[_]).toLowerCase(),d,0))return!0}else if(1===b){for(;_<c.length&&"string"==typeof(b=c[_++]);)if(b.toLowerCase()===d)return!0;return!1}}return!1}function GT(c){return 4===c.type&&c.value!==AP}function SB(c,d,p){return d===(4!==c.type||p?c.value:AP)}function OP(c,d,p){for(var _=4,b=c.attrs||[],Z=function RP(c){for(var d=0;d<c.length;d++){if(Du(c[d]))return d}return c.length}(b),Q=!1,le=0;le<d.length;le++){var pe=d[le];if("number"!=typeof pe){if(!Q)if(4&_){if(_=2|1&_,""!==pe&&!SB(c,pe,p)||""===pe&&1===d.length){if(Lu(_))return!1;Q=!0}}else{var Ie=8&_?pe:d[++le];if(8&_&&null!==c.attrs){if(!YT(c.attrs,Ie,p)){if(Lu(_))return!1;Q=!0}continue}var Tt=xB(8&_?"class":pe,b,GT(c),p);if(-1===Tt){if(Lu(_))return!1;Q=!0;continue}if(""!==Ie){var Ot=void 0;Ot=Tt>Z?"":b[Tt+1].toLowerCase();var zt=8&_?Ot:null;if(zt&&-1!==DP(zt,Ie,0)||2&_&&Ie!==Ot){if(Lu(_))return!1;Q=!0}}}}else{if(!Q&&!Lu(_)&&!Lu(pe))return!1;if(Q&&Lu(pe))continue;Q=!1,_=pe|1&_}}return Lu(_)||Q}function Lu(c){return 0==(1&c)}function xB(c,d,p,_){if(null===d)return-1;var b=0;if(_||!p){for(var Z=!1;b<d.length;){var Q=d[b];if(Q===c)return b;if(3===Q||6===Q)Z=!0;else{if(1===Q||2===Q){for(var le=d[++b];"string"==typeof le;)le=d[++b];continue}if(4===Q)break;if(0===Q){b+=4;continue}}b+=Z?1:2}return-1}return function DB(c,d){var p=c.indexOf(4);if(p>-1)for(p++;p<c.length;){var _=c[p];if("number"==typeof _)return-1;if(_===d)return p;p++}return-1}(d,c)}function IP(c,d){for(var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=0;_<d.length;_++)if(OP(c,d[_],p))return!0;return!1}function o1(c,d){e:for(var p=0;p<d.length;p++){var _=d[p];if(c.length===_.length){for(var b=0;b<c.length;b++)if(c[b]!==_[b])continue e;return!0}}return!1}function qT(c,d){return c?":not("+d.trim()+")":d}function LP(c){for(var d=c[0],p=1,_=2,b="",Z=!1;p<c.length;){var Q=c[p];if("string"==typeof Q)if(2&_){var le=c[++p];b+="["+Q+(le.length>0?'="'+le+'"':"")+"]"}else 8&_?b+="."+Q:4&_&&(b+=" "+Q);else""!==b&&!Lu(Q)&&(d+=qT(Z,b),b=""),_=Q,Z=Z||!Lu(_);p++}return""!==b&&(d+=qT(Z,b)),d}var fi={};function NP(c){BP(wi(),Nn(),$i()+c,!1)}function BP(c,d,p,_){if(!_)if(3==(3&d[2])){var Z=c.preOrderCheckHooks;null!==Z&&Ip(d,Z,p)}else{var Q=c.preOrderHooks;null!==Q&&pf(d,Q,0,p)}Ts(p)}function hi(c,d){return c<<17|d<<2}function Zu(c){return c>>17&32767}function JT(c){return 2==(2&c)}function a1(c){return 2|c}function vd(c){return(131068&c)>>2}function QT(c,d){return-131069&c|d<<2}function FP(c){return 1==(1&c)}function Av(c){return 1|c}var iE=Promise.resolve(null);function qP(c,d){var p=c.contentQueries;if(null!==p)for(var _=0;_<p.length;_+=2){var b=p[_],Z=p[_+1];if(-1!==Z){var Q=c.data[Z];we(b),Q.contentQueries(2,d[Z],Z)}}}function n_(c,d,p,_,b,Z,Q,le,pe,Ie){var et=d.blueprint.slice();return et[0]=b,et[2]=140|_,nr(et),et[3]=et[15]=c,et[8]=p,et[10]=Q||c&&c[10],et[11]=le||c&&c[11],et[12]=pe||c&&c[12]||null,et[9]=Ie||c&&c[9]||null,et[6]=Z,et[16]=2==d.type?c[16]:et,et}function r_(c,d,p,_,b){var Z=c.data[d];if(null===Z)Z=u1(c,d,p,_,b),function yn(){return Ir.lFrame.inI18n}()&&(Z.flags|=64);else if(64&Z.type){Z.type=p,Z.value=_,Z.attrs=b;var Q=Mu();Z.injectorIndex=null===Q?-1:Q.injectorIndex}return ji(Z,!0),Z}function u1(c,d,p,_,b){var Z=cf(),Q=hl(),le=Q?Z:Z&&Z.parent,pe=c.data[d]=function e3(c,d,p,_,b,Z){var Q=d?d.injectorIndex:-1;return{type:p,index:_,insertBeforeIndex:null,injectorIndex:Q,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:b,attrs:Z,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:d,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,le,p,d,_,b);return null===c.firstChild&&(c.firstChild=pe),null!==Z&&(Q?null==Z.child&&null!==pe.parent&&(Z.child=pe):null===Z.next&&(Z.next=pe)),pe}function i_(c,d,p,_){if(0===p)return-1;for(var b=d.length,Z=0;Z<p;Z++)d.push(_),c.blueprint.push(_),c.data.push(null);return b}function Gp(c,d,p){De(d);try{var _=c.viewQuery;null!==_&&bE(1,_,p);var b=c.template;null!==b&&KP(c,d,b,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&qP(c,d),c.staticViewQueries&&bE(2,c.viewQuery,p);var Z=c.components;null!==Z&&function UB(c,d){for(var p=0;p<d.length;p++)QB(c,d[p])}(d,Z)}catch(Q){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),Q}finally{d[2]&=-5,Sr()}}function bl(c,d,p,_){var b=d[2];if(256!=(256&b)){De(d);try{nr(d),Ft(c.bindingStartIndex),null!==p&&KP(c,d,p,2,_);var Q=3==(3&b);if(Q){var le=c.preOrderCheckHooks;null!==le&&Ip(d,le,null)}else{var pe=c.preOrderHooks;null!==pe&&pf(d,pe,0,null),Pp(d,0)}if(function mE(c){for(var d=ZT(c);null!==d;d=NT(d))if(d[2])for(var p=d[9],_=0;_<p.length;_++){var b=p[_],Z=b[3];0==(1024&b[2])&&Lr(Z,1),b[2]|=1024}}(d),function lW(c){for(var d=ZT(c);null!==d;d=NT(d))for(var p=10;p<d.length;p++){var _=d[p],b=_[1];Ke(_)&&bl(b,_,b.template,_[8])}}(d),null!==c.contentQueries&&qP(c,d),Q){var Ie=c.contentCheckHooks;null!==Ie&&Ip(d,Ie)}else{var et=c.contentHooks;null!==et&&pf(d,et,1),Pp(d,1)}!function BB(c,d){var p=c.hostBindingOpCodes;if(null!==p)try{for(var _=0;_<p.length;_++){var b=p[_];if(b<0)Ts(~b);else{var Z=b,Q=p[++_],le=p[++_];ir(Q,Z),le(2,d[Z])}}}finally{Ts(-1)}}(c,d);var Tt=c.components;null!==Tt&&function FB(c,d){for(var p=0;p<d.length;p++)_E(c,d[p])}(d,Tt);var Ot=c.viewQuery;if(null!==Ot&&bE(2,Ot,_),Q){var zt=c.viewCheckHooks;null!==zt&&Ip(d,zt)}else{var hn=c.viewHooks;null!==hn&&pf(d,hn,2),Pp(d,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),d[2]&=-73,1024&d[2]&&(d[2]&=-1025,Lr(d[3],-1))}finally{Sr()}}}function oE(c,d,p,_){var b=d[10],Q=Je(d);try{!Q&&b.begin&&b.begin(),Q&&Gp(c,d,_),bl(c,d,p,_)}finally{!Q&&b.end&&b.end()}}function KP(c,d,p,_,b){var Z=$i(),Q=2&_;try{Ts(-1),Q&&d.length>20&&BP(c,d,20,!1),wo(Q?2:0,b),p(_,b)}finally{Ts(Z),wo(Q?3:1,b)}}function JP(c,d,p){if(bn(d))for(var _=d.directiveStart,b=d.directiveEnd,Z=_;Z<b;Z++){var Q=c.data[Z];Q.contentQueries&&Q.contentQueries(1,p[Z],Z)}}function c1(c,d,p){!si()||(function YB(c,d,p,_){var b=p.directiveStart,Z=p.directiveEnd;c.firstCreatePass||iv(p,d),Ns(_,d);for(var Q=p.initialInputs,le=b;le<Z;le++){var pe=c.data[le],Ie=qi(pe);Ie&&l3(d,p,pe);var et=hf(d,c,le,p);if(Ns(et,d),null!==Q&&KB(d,le-b,et,pe,p,Q),Ie)be(p.index,d)[8]=et}}(c,d,p,xi(p,d)),128==(128&p.flags)&&function GB(c,d,p){var _=p.directiveStart,b=p.directiveEnd,Q=(c.firstCreatePass,p.index),le=function _r(){return Ir.lFrame.currentDirectiveIndex}();try{Ts(Q);for(var pe=_;pe<b;pe++){var Ie=c.data[pe],et=d[pe];gr(pe),(null!==Ie.hostBindings||0!==Ie.hostVars||null!==Ie.hostAttrs)&&o3(Ie,et)}}finally{Ts(-1),gr(le)}}(c,d,p))}function d1(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xi,_=d.localNames;if(null!==_)for(var b=d.index+1,Z=0;Z<_.length;Z+=2){var Q=_[Z+1],le=-1===Q?p(d,c):c[Q];c[b++]=le}}function QP(c){var d=c.tView;if(null===d||d.incompleteFirstPass){return c.tView=Lv(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return d}function Lv(c,d,p,_,b,Z,Q,le,pe,Ie){var et=20+_,Tt=et+b,Ot=function HB(c,d){for(var p=[],_=0;_<d;_++)p.push(_<c?null:fi);return p}(et,Tt),zt="function"==typeof Ie?Ie():Ie;return Ot[1]={type:c,blueprint:Ot,template:p,queries:null,viewQuery:le,declTNode:d,data:Ot.slice().fill(null,et),bindingStartIndex:et,expandoStartIndex:Tt,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 Z?Z():Z,pipeRegistry:"function"==typeof Q?Q():Q,firstChild:null,schemas:pe,consts:zt,incompleteFirstPass:!1}}function XP(c,d,p){if(Pn(c)){var _=p===zn.ShadowDom;return c.selectRootElement(d,_)}var b="string"==typeof d?c.querySelector(d):d;return b.textContent="",b}function $P(c,d,p,_){var b=f3(d);null===p?b.push(_):(b.push(p),c.firstCreatePass&&p3(c).push(_,b.length-1))}function sE(c,d,p){for(var _ in c)if(c.hasOwnProperty(_)){p=null===p?{}:p;var b=c[_];p.hasOwnProperty(_)?p[_].push(d,b):p[_]=[d,b]}return p}function du(c,d,p,_,b,Z,Q,le){var et,pe=xi(d,p),Ie=d.inputs;!le&&null!=Ie&&(et=Ie[_])?(wE(c,p,et,_,b),oi(d)&&function zB(c,d){var p=be(d,c);16&p[2]||(p[2]|=64)}(p,d.index)):3&d.type?(_=function t3(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),b=null!=Q?Q(b,d.value||"",_):b,Pn(Z)?Z.setProperty(pe,_,b):ad(_)||(pe.setProperty?pe.setProperty(_,b):pe[_]=b)):d.type}function r3(c,d,p,_){var b=!1;if(si()){var Z=function dE(c,d,p){var _=c.directiveRegistry,b=null;if(_)for(var Z=0;Z<_.length;Z++){var Q=_[Z];IP(p,Q.selectors,!1)&&(b||(b=[]),aT(iv(p,d),c,Q.type),qi(Q)?(a3(c,p),b.unshift(Q)):b.push(Q))}return b}(c,d,p),Q=null===_?null:{"":-1};if(null!==Z){b=!0,fE(p,c.data.length,Z.length);for(var le=0;le<Z.length;le++){var pe=Z[le];pe.providersResolver&&pe.providersResolver(pe)}for(var Ie=!1,et=!1,Tt=i_(c,d,Z.length,null),Ot=0;Ot<Z.length;Ot++){var zt=Z[Ot];p.mergedAttrs=uc(p.mergedAttrs,zt.hostAttrs),pE(c,p,d,Tt,zt),qB(Tt,zt,Q),null!==zt.contentQueries&&(p.flags|=8),(null!==zt.hostBindings||null!==zt.hostAttrs||0!==zt.hostVars)&&(p.flags|=128);var hn=zt.type.prototype;!Ie&&(hn.ngOnChanges||hn.ngOnInit||hn.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(p.index),Ie=!0),!et&&(hn.ngOnChanges||hn.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(p.index),et=!0),Tt++}!function jB(c,d){for(var p=d.directiveStart,_=d.directiveEnd,b=c.data,Z=d.attrs,Q=[],le=null,pe=null,Ie=p;Ie<_;Ie++){var et=b[Ie],Tt=et.inputs,Ot=null===Z||GT(d)?null:JB(Tt,Z);Q.push(Ot),le=sE(Tt,Ie,le),pe=sE(et.outputs,Ie,pe)}null!==le&&(le.hasOwnProperty("class")&&(d.flags|=16),le.hasOwnProperty("style")&&(d.flags|=32)),d.initialInputs=Q,d.inputs=le,d.outputs=pe}(c,p)}Q&&function s3(c,d,p){if(d)for(var _=c.localNames=[],b=0;b<d.length;b+=2){var Z=p[d[b+1]];if(null==Z)throw new xe(-301,!1);_.push(d[b],Z)}}(p,_,Q)}return p.mergedAttrs=uc(p.mergedAttrs,p.attrs),b}function i3(c,d,p,_,b,Z){var Q=Z.hostBindings;if(Q){var le=c.hostBindingOpCodes;null===le&&(le=c.hostBindingOpCodes=[]);var pe=~d.index;(function VB(c){for(var d=c.length;d>0;){var p=c[--d];if("number"==typeof p&&p<0)return p}return 0})(le)!=pe&&le.push(pe),le.push(_,b,Q)}}function o3(c,d){null!==c.hostBindings&&c.hostBindings(1,d)}function a3(c,d){d.flags|=2,(c.components||(c.components=[])).push(d.index)}function qB(c,d,p){if(p){if(d.exportAs)for(var _=0;_<d.exportAs.length;_++)p[d.exportAs[_]]=c;qi(d)&&(p[""]=c)}}function fE(c,d,p){c.flags|=1,c.directiveStart=d,c.directiveEnd=d+p,c.providerIndexes=d}function pE(c,d,p,_,b){c.data[_]=b;var Z=b.factory||(b.factory=Qi(b.type)),Q=new ts(Z,qi(b),null);c.blueprint[_]=Q,p[_]=Q,i3(c,d,0,_,i_(c,p,b.hostVars,fi),b)}function l3(c,d,p){var _=xi(d,c),b=QP(p),Z=c[10],Q=f1(c,n_(c,b,null,p.onPush?64:16,_,d,Z,Z.createRenderer(_,p),null,null));c[d.index]=Q}function gc(c,d,p,_,b,Z){var Q=xi(c,d);hE(d[11],Q,Z,c.value,p,_,b)}function hE(c,d,p,_,b,Z,Q){if(null==Z)Pn(c)?c.removeAttribute(d,b,p):d.removeAttribute(b);else{var le=null==Q?ke(Z):Q(Z,_||"",b);Pn(c)?c.setAttribute(d,b,le,p):p?d.setAttributeNS(p,b,le):d.setAttribute(b,le)}}function KB(c,d,p,_,b,Z){var Q=Z[d];if(null!==Q)for(var le=_.setInput,pe=0;pe<Q.length;){var Ie=Q[pe++],et=Q[pe++],Tt=Q[pe++];null!==le?_.setInput(p,Tt,Ie,et):p[et]=Tt}}function JB(c,d){for(var p=null,_=0;_<d.length;){var b=d[_];if(0!==b)if(5!==b){if("number"==typeof b)break;c.hasOwnProperty(b)&&(null===p&&(p=[]),p.push(b,c[b],d[_+1])),_+=2}else _+=2;else _+=4}return p}function c3(c,d,p,_){return new Array(c,!0,!1,d,null,0,_,p,null,null)}function _E(c,d){var p=be(d,c);if(Ke(p)){var _=p[1];80&p[2]?bl(_,p,_.template,p[8]):p[5]>0&&vc(p)}}function vc(c){for(var d=ZT(c);null!==d;d=NT(d))for(var p=10;p<d.length;p++){var _=d[p];if(1024&_[2]){var b=_[1];bl(b,_,b.template,_[8])}else _[5]>0&&vc(_)}var Q=c[1].components;if(null!==Q)for(var le=0;le<Q.length;le++){var pe=be(Q[le],c);Ke(pe)&&pe[5]>0&&vc(pe)}}function QB(c,d){var p=be(d,c),_=p[1];(function XB(c,d){for(var p=d.length;p<c.blueprint.length;p++)d.push(c.blueprint[p])})(_,p),Gp(_,p,p[8])}function f1(c,d){return c[13]?c[14][4]=d:c[13]=d,c[14]=d,d}function gE(c){for(;c;){c[2]|=64;var d=Sv(c);if(ei(c)&&!d)return c;c=d}return null}function vE(c){for(var d=0;d<c.components.length;d++){var p=c.components[d],_=jb(p),b=_[1];oE(b,_,b.template,p)}}function yE(c,d,p){var _=d[10];_.begin&&_.begin();try{bl(c,d,c.template,p)}catch(b){throw CE(d,b),b}finally{_.end&&_.end()}}function d3(c){vE(c[8])}function bE(c,d,p){we(0),d(c,p)}var Cl=iE;function f3(c){return c[7]||(c[7]=[])}function p3(c){return c.cleanup||(c.cleanup=[])}function h3(c,d,p){return(null===c||qi(c))&&(p=function ai(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(p[d.index])),p[11]}function CE(c,d){var p=c[9],_=p?p.get(Vm,null):null;_&&_.handleError(d)}function wE(c,d,p,_,b){for(var Z=0;Z<p.length;){var Q=p[Z++],le=p[Z++],pe=d[Q],Ie=c.data[Q];null!==Ie.setInput?Ie.setInput(pe,b,_,le):pe[le]=b}}function yc(c,d,p){var _=So(d,c);_P(c[11],_,p)}function Zv(c,d,p){var _=p?c.styles:null,b=p?c.classes:null,Z=0;if(null!==d)for(var Q=0;Q<d.length;Q++){var le=d[Q];if("number"==typeof le)Z=le;else if(1==Z)b=se(b,le);else if(2==Z){_=se(_,le+": "+d[++Q]+";")}}p?c.styles=_:c.stylesWithoutHost=_,p?c.classes=b:c.classesWithoutHost=b}var bc=new wa("INJECTOR",-1),kE=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f;if(_===_f){var b=new Error("NullInjectorError: No provider for ".concat(ce(p),"!"));throw b.name="NullInjectorError",b}return _}}]),c}(),TE=new wa("Set Injector scope."),Nv={},nF={},EE=void 0;function ME(){return void 0===EE&&(EE=new kE),EE}function h1(c){var d=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,b=_3(c,d,p,_);return b._resolveInjectorDefTypes(),b}function _3(c){var d=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;return new rF(c,p,d||ME(),_)}var rF=function(){function c(d,p,_){var b=this,Z=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,E.Z)(this,c),this.parent=_,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var Q=[];p&&fc(p,function(pe){return b.processProvider(pe,d,p)}),fc([d],function(pe){return b.processInjectorType(pe,[],Q)}),this.records.set(bc,kf(void 0,this));var le=this.records.get(TE);this.scope=null!=le?le.value:null,this.source=Z||("object"==typeof d?null:ce(d))}return(0,F.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(p){return p.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;this.assertNotDestroyed();var Z=_v(this),Q=Dt(void 0);try{if(!(b&ue.SkipSelf)){var le=this.records.get(p);if(void 0===le){var pe=sF(p)&&$t(p);le=pe&&this.injectableDefInScope(pe)?kf(SE(p),Nv):null,this.records.set(p,le)}if(null!=le)return this.hydrate(p,le)}var Ie=b&ue.Self?ME():this.parent;return _=b&ue.Optional&&_===_f?null:_,Ie.get(p,_)}catch(Tt){if("NullInjectorError"===Tt.name){var et=Tt[pv]=Tt[pv]||[];if(et.unshift(ce(p)),Z)throw Tt;return HI(Tt,p,"R3InjectorError",this.source)}throw Tt}finally{Dt(Q),_v(Z)}}},{key:"_resolveInjectorDefTypes",value:function(){var p=this;this.injectorDefTypes.forEach(function(_){return p.get(_)})}},{key:"toString",value:function(){var p=[];return this.records.forEach(function(b,Z){return p.push(ce(Z))}),"R3Injector[".concat(p.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new xe(205,!1)}},{key:"processInjectorType",value:function(p,_,b){var Z=this;if(!(p=ge(p)))return!1;var Q=wn(p),le=null==Q&&p.ngModule||void 0,pe=void 0===le?p:le,Tt=-1!==b.indexOf(pe);if(void 0!==le&&(Q=wn(le)),null==Q)return!1;if(null!=Q.imports&&!Tt){var Ot;b.push(pe);try{fc(Q.imports,function(xn){Z.processInjectorType(xn,_,b)&&(void 0===Ot&&(Ot=[]),Ot.push(xn))})}finally{}if(void 0!==Ot)for(var zt=function(Cr){var ki=Ot[Cr],Ni=ki.ngModule,Po=ki.providers;fc(Po,function(rs){return Z.processProvider(rs,Ni,Po||Ee)})},hn=0;hn<Ot.length;hn++)zt(hn)}this.injectorDefTypes.add(pe);var Bn=Qi(pe)||function(){return new pe};this.records.set(pe,kf(Bn,Nv));var Xn=Q.providers;if(null!=Xn&&!Tt){var fr=p;fc(Xn,function(xn){return Z.processProvider(xn,fr,Xn)})}return void 0!==le&&void 0!==p.providers}},{key:"processProvider",value:function(p,_,b){var Z=o_(p=ge(p))?p:ge(p&&p.provide),Q=function iF(c,d,p){return m1(c)?kf(void 0,c.useValue):kf(g3(c,d,p),Nv)}(p,_,b);if(o_(p)||!0!==p.multi)this.records.get(Z);else{var le=this.records.get(Z);le||((le=kf(void 0,Nv,!0)).factory=function(){return UI(le.multi)},this.records.set(Z,le)),Z=p,le.multi.push(p)}this.records.set(Z,Q)}},{key:"hydrate",value:function(p,_){return _.value===Nv&&(_.value=nF,_.value=_.factory()),"object"==typeof _.value&&_.value&&function b3(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(_.value)&&this.onDestroy.add(_.value),_.value}},{key:"injectableDefInScope",value:function(p){if(!p.providedIn)return!1;var _=ge(p.providedIn);return"string"==typeof _?"any"===_||_===this.scope:this.injectorDefTypes.has(_)}}]),c}();function SE(c){var d=$t(c),p=null!==d?d.factory:Qi(c);if(null!==p)return p;if(c instanceof wa)throw new xe(204,!1);if(c instanceof Function)return function Cc(c){var d=c.length;if(d>0){Rm(d,"?");throw new xe(204,!1)}var _=function V(c){var d=c&&(c[Bt]||c[de]);if(d){var p=function Jn(c){if(c.hasOwnProperty("name"))return c.name;var d=(""+c).match(/^function\s*([^\s(]+)/);return null===d?"":d[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.')),d}return null}(c);return null!==_?function(){return _.factory(c)}:function(){return new c}}(c);throw new xe(204,!1)}function g3(c,d,p){var _=void 0;if(o_(c)){var b=ge(c);return Qi(b)||SE(b)}if(m1(c))_=function(){return ge(c.useValue)};else if(function oF(c){return!(!c||!c.useFactory)}(c))_=function(){return c.useFactory.apply(c,(0,y.Z)(UI(c.deps||[])))};else if(function v3(c){return!(!c||!c.useExisting)}(c))_=function(){return ns(ge(c.useExisting))};else{var Z=ge(c&&(c.useClass||c.provide));if(!function y3(c){return!!c.deps}(c))return Qi(Z)||SE(Z);_=function(){return(0,K.Z)(Z,(0,y.Z)(UI(c.deps)))}}return _}function kf(c,d){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:d,multi:p?[]:void 0}}function m1(c){return null!==c&&"object"==typeof c&&mv in c}function o_(c){return"function"==typeof c}function sF(c){return"function"==typeof c||"object"==typeof c&&c instanceof wa}var Bs=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,null,[{key:"create",value:function(p,_){var b;if(Array.isArray(p))return h1({name:""},_,p,"");var Z=null!==(b=p.name)&&void 0!==b?b:"";return h1({name:Z},p.parent,p.providers,Z)}}]),c}();Bs.THROW_IF_NOT_FOUND=_f,Bs.NULL=new kE,Bs.\u0275prov=yt({token:Bs,providedIn:"any",factory:function(){return ns(bc)}}),Bs.__NG_ELEMENT_ID__=-1;function E3(c,d,p,_,b,Z){var Q=p[1];p[20]=c;var pe=r_(Q,20,2,"#host",null),Ie=pe.mergedAttrs=d.hostAttrs;null!==Ie&&(Zv(pe,Ie,!0),null!==c&&(xu(b,c,Ie),null!==pe.classes&&VT(b,c,pe.classes),null!==pe.styles&&xP(b,c,pe.styles)));var et=_.createRenderer(c,d),Tt=n_(p,QP(d),null,d.onPush?64:16,p[20],pe,_,et,Z||null,null);return Q.firstCreatePass&&(aT(iv(pe,p),Q,d.type),a3(Q,pe),fE(pe,p.length,1)),f1(p,Tt),p[20]=Tt}function _1(c,d,p,_,b){var Z=p[1],Q=function WB(c,d,p){var _=Di();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),pE(c,_,d,i_(c,d,1,null),p));var Z=hf(d,c,_.directiveStart,_);Ns(Z,d);var Q=xi(_,d);return Q&&Ns(Q,d),Z}(Z,p,d);if(_.components.push(Q),c[8]=Q,b&&b.forEach(function(et){return et(Q,d)}),d.contentQueries){var le=Di();d.contentQueries(1,Q,le.directiveStart)}var pe=Di();!Z.firstCreatePass||null===d.hostBindings&&null===d.hostAttrs||(Ts(pe.index),i3(p[1],pe,0,pe.directiveStart,pe.directiveEnd,d),o3(d,Q));return Q}function M3(c,d){return{components:[],scheduler:c||Ym,clean:Cl,playerHandler:d||null,flags:0}}function yF(c,d){ff(jb(c)[1],Di())}function g1(c){return Object.getPrototypeOf(c.prototype).constructor}function DE(c){for(var d=g1(c.type),p=!0,_=[c];d;){var b=void 0;if(qi(c))b=d.\u0275cmp||d.\u0275dir;else{if(d.\u0275cmp){throw new xe(903,"")}b=d.\u0275dir}if(b){if(p){_.push(b);var Q=c;Q.inputs=v1(c.inputs),Q.declaredInputs=v1(c.declaredInputs),Q.outputs=v1(c.outputs);var le=b.hostBindings;le&&S3(c,le);var pe=b.viewQuery,Ie=b.contentQueries;if(pe&&CF(c,pe),Ie&&wF(c,Ie),$(c.inputs,b.inputs),$(c.declaredInputs,b.declaredInputs),$(c.outputs,b.outputs),qi(b)&&b.data.animation){var et=c.data;et.animation=(et.animation||[]).concat(b.data.animation)}}var Tt=b.features;if(Tt)for(var Ot=0;Ot<Tt.length;Ot++){var zt=Tt[Ot];zt&&zt.ngInherit&&zt(c),zt===DE&&(p=!1)}}d=Object.getPrototypeOf(d)}!function Tf(c){for(var d=0,p=null,_=c.length-1;_>=0;_--){var b=c[_];b.hostVars=d+=b.hostVars,b.hostAttrs=uc(b.hostAttrs,p=uc(p,b.hostAttrs))}}(_)}function v1(c){return c===Ue?{}:c===Ee?[]:c}function CF(c,d){var p=c.viewQuery;c.viewQuery=p?function(_,b){d(_,b),p(_,b)}:d}function wF(c,d){var p=c.contentQueries;c.contentQueries=p?function(_,b,Z){d(_,b,Z),p(_,b,Z)}:d}function S3(c,d){var p=c.hostBindings;c.hostBindings=p?function(_,b){d(_,b),p(_,b)}:d}var kF=["providersResolver"],TF=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function EF(c){var d=g1(c.type),p=void 0;p=qi(c)?d.\u0275cmp:d.\u0275dir;var Z,_=c,b=(0,D.Z)(kF);try{for(b.s();!(Z=b.n()).done;){var Q=Z.value;_[Q]=p[Q]}}catch(et){b.e(et)}finally{b.f()}if(qi(p)){var pe,le=(0,D.Z)(TF);try{for(le.s();!(pe=le.n()).done;){var Ie=pe.value;_[Ie]=p[Ie]}}catch(et){le.e(et)}finally{le.f()}}}var y1=null;function Ef(){if(!y1){var c=Yn.Symbol;if(c&&c.iterator)y1=c.iterator;else for(var d=Object.getOwnPropertyNames(Map.prototype),p=0;p<d.length;++p){var _=d[p];"entries"!==_&&"size"!==_&&Map.prototype[_]===Map.prototype.entries&&(y1=_)}}return y1}function a_(c){return!!D3(c)&&(Array.isArray(c)||!(c instanceof Map)&&Ef()in c)}function D3(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function wc(c,d,p){return c[d]=p}function l_(c,d){return c[d]}function Fs(c,d,p){var _=c[d];return!Object.is(_,p)&&(c[d]=p,!0)}function qp(c,d,p,_){var b=Fs(c,d,p);return Fs(c,d+1,_)||b}function b1(c,d,p,_,b){var Z=qp(c,d,p,_);return Fs(c,d+2,b)||Z}function Zl(c,d,p,_,b,Z){var Q=qp(c,d,p,_);return qp(c,d+2,b,Z)||Q}function u_(c,d,p,_){var b=Nn();if(Fs(b,Vt(),d)){wi();gc(eo(),b,c,d,p,_)}return u_}function Kp(c,d){for(var p=!1,_=wt(),b=1;b<d.length;b+=2)p=Fs(c,_++,d[b])||p;if(Ft(_),!p)return fi;for(var Z=d[0],Q=1;Q<d.length;Q+=2)Z+=ke(d[Q])+d[Q+1];return Z}function c_(c,d,p,_){return Fs(c,Vt(),p)?d+ke(p)+_:fi}function d_(c,d,p,_,b,Z){var le=qp(c,wt(),p,b);return Qt(2),le?d+ke(p)+_+ke(b)+Z:fi}function f_(c,d,p,_,b,Z,Q,le){var Ie=b1(c,wt(),p,b,Q);return Qt(3),Ie?d+ke(p)+_+ke(b)+Z+ke(Q)+le:fi}function Mf(c,d,p,_,b,Z,Q,le,pe,Ie){var Tt=Zl(c,wt(),p,b,Q,pe);return Qt(4),Tt?d+ke(p)+_+ke(b)+Z+ke(Q)+le+ke(pe)+Ie:fi}function yd(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt){var Ot=wt(),zt=Zl(c,Ot,p,b,Q,pe);return zt=Fs(c,Ot+4,et)||zt,Qt(5),zt?d+ke(p)+_+ke(b)+Z+ke(Q)+le+ke(pe)+Ie+ke(et)+Tt:fi}function Jp(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt){var hn=wt(),Bn=Zl(c,hn,p,b,Q,pe);return Bn=qp(c,hn+4,et,Ot)||Bn,Qt(6),Bn?d+ke(p)+_+ke(b)+Z+ke(Q)+le+ke(pe)+Ie+ke(et)+Tt+ke(Ot)+zt:fi}function p_(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn){var Xn=wt(),fr=Zl(c,Xn,p,b,Q,pe);return fr=b1(c,Xn+4,et,Ot,hn)||fr,Qt(7),fr?d+ke(p)+_+ke(b)+Z+ke(Q)+le+ke(pe)+Ie+ke(et)+Tt+ke(Ot)+zt+ke(hn)+Bn:fi}function h_(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr){var xn=wt(),Cr=Zl(c,xn,p,b,Q,pe);return Cr=Zl(c,xn+4,et,Ot,hn,Xn)||Cr,Qt(8),Cr?d+ke(p)+_+ke(b)+Z+ke(Q)+le+ke(pe)+Ie+ke(et)+Tt+ke(Ot)+zt+ke(hn)+Bn+ke(Xn)+fr:fi}function C1(c,d,p,_,b,Z){var Q=Nn(),le=c_(Q,d,p,_);le!==fi&&gc(eo(),Q,c,le,b,Z);return C1}function AE(c,d,p,_,b,Z,Q,le){var pe=Nn(),Ie=d_(pe,d,p,_,b,Z);Ie!==fi&&gc(eo(),pe,c,Ie,Q,le);return AE}function OE(c,d,p,_,b,Z,Q,le,pe,Ie){var et=Nn(),Tt=f_(et,d,p,_,b,Z,Q,le);Tt!==fi&&gc(eo(),et,c,Tt,pe,Ie);return OE}function A3(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt){var Ot=Nn(),zt=Mf(Ot,d,p,_,b,Z,Q,le,pe,Ie);zt!==fi&&gc(eo(),Ot,c,zt,et,Tt);return A3}function O3(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt){var hn=Nn(),Bn=yd(hn,d,p,_,b,Z,Q,le,pe,Ie,et,Tt);Bn!==fi&&gc(eo(),hn,c,Bn,Ot,zt);return O3}function IE(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn){var Xn=Nn(),fr=Jp(Xn,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt);fr!==fi&&gc(eo(),Xn,c,fr,hn,Bn);return IE}function PE(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr){var xn=Nn(),Cr=p_(xn,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn);Cr!==fi&&gc(eo(),xn,c,Cr,Xn,fr);return PE}function I3(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr,xn,Cr){var ki=Nn(),Ni=h_(ki,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr);Ni!==fi&&gc(eo(),ki,c,Ni,xn,Cr);return I3}function P3(c,d,p,_){var b=Nn(),Z=Kp(b,d);Z!==fi&&gc(eo(),b,c,Z,p,_);return P3}function RE(c,d,p,_,b,Z,Q,le){var pe=Nn(),Ie=wi(),et=c+20,Tt=Ie.firstCreatePass?function R3(c,d,p,_,b,Z,Q,le,pe){var Ie=d.consts,et=r_(d,c,4,Q||null,an(Ie,le));r3(d,p,et,an(Ie,pe)),ff(d,et);var Tt=et.tViews=Lv(2,et,_,b,Z,d.directiveRegistry,d.pipeRegistry,null,d.schemas,Ie);return null!==d.queries&&(d.queries.template(d,et),Tt.queries=d.queries.embeddedTView(et)),et}(et,Ie,pe,d,p,_,b,Z,Q):Ie.data[et];ji(Tt,!1);var Ot=pe[11].createComment("");i1(Ie,pe,Ot,Tt),Ns(Ot,pe),f1(pe,pe[et]=c3(Ot,pe,Ot,Tt)),Li(Tt)&&c1(Ie,pe,Tt),null!=Q&&d1(pe,Tt,le)}function Z3(c){return Le(function ie(){return Ir.lFrame.contextLView}(),20+c)}var N3={"\u0275\u0275defineInjectable":yt,"\u0275\u0275defineInjector":cn,"\u0275\u0275inject":ns,"\u0275\u0275invalidFactoryDep":FI,resolveForwardRef:ge};function SF(c,d){var p=null,_=null;c.hasOwnProperty(Bt)||Object.defineProperty(c,Bt,{get:function(){if(null===p){var Z=ds();p=Z.compileInjectable(N3,"ng:///".concat(c.name,"/\u0275prov.js"),function DF(c,d){var p=d||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(LE(p)||NE(p))&&void 0!==p.deps&&(_.deps=Lb(p.deps)),LE(p)?_.useClass=p.useClass:function ZE(c){return xF in c}(p)?_.useValue=p.useValue:NE(p)?_.useFactory=p.useFactory:function B3(c){return void 0!==c.useExisting}(p)&&(_.useExisting=p.useExisting),_}(c,d))}return p}}),c.hasOwnProperty(rr)||Object.defineProperty(c,rr,{get:function(){if(null===_){var Z=ds();_=Z.compileFactory(N3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:Rb(c),target:Z.FactoryTarget.Injectable})}return _},configurable:!0})}var xF=W({provide:String,useValue:W});function LE(c){return void 0!==c.useClass}function NE(c){return void 0!==c.useFactory}var AF=Sb("Injectable",void 0,void 0,void 0,function(c,d){return SF(c,d)});function BE(c){if(c.length>1){var d=function F3(c){for(var d=[],p=0;p<c.length;++p){if(d.indexOf(c[p])>-1)return d.push(c[p]),d;d.push(c[p])}return d}(c.slice().reverse());return" ("+d.map(function(_){return ce(_.token)}).join(" -> ")+")"}return""}function FE(c,d,p,_){var b=[d],Z=p(b),Q=_?function xT(c,d){var p="".concat(c," caused by: ").concat(d instanceof Error?d.message:d),_=Error(p);return _[gl]=d,_}(Z,_):Error(Z);return Q.addKey=OF,Q.keys=b,Q.injectors=[c],Q.constructResolvingMessage=p,Q[gl]=_,Q}function OF(c,d){this.injectors.push(c),this.keys.push(d),this.message=this.constructResolvingMessage(this.keys)}function U3(c,d){for(var p=[],_=0,b=d.length;_<b;_++){var Z=d[_];Z&&0!=Z.length?p.push(Z.map(ce).join(" ")):p.push("?")}return Error("Cannot resolve all parameters for '"+ce(c)+"'("+p.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ce(c)+"' is decorated with Injectable.")}function H3(c,d){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(d))}var bd=function(){function c(d,p){if((0,E.Z)(this,c),this.token=d,this.id=p,!d)throw new Error("Token must be defined!");this.displayName=ce(this.token)}return(0,F.Z)(c,null,[{key:"get",value:function(p){return UE.get(ge(p))}},{key:"numberOfKeys",get:function(){return UE.numberOfKeys}}]),c}(),j3=function(){function c(){(0,E.Z)(this,c),this._allKeys=new Map}return(0,F.Z)(c,[{key:"get",value:function(p){if(p instanceof bd)return p;if(this._allKeys.has(p))return this._allKeys.get(p);var _=new bd(p,bd.numberOfKeys);return this._allKeys.set(p,_),_}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),UE=new j3,z3=function(){function c(d){(0,E.Z)(this,c),this.reflectionCapabilities=d}return(0,F.Z)(c,[{key:"updateCapabilities",value:function(p){this.reflectionCapabilities=p}},{key:"factory",value:function(p){return this.reflectionCapabilities.factory(p)}},{key:"parameters",value:function(p){return this.reflectionCapabilities.parameters(p)}},{key:"annotations",value:function(p){return this.reflectionCapabilities.annotations(p)}},{key:"propMetadata",value:function(p){return this.reflectionCapabilities.propMetadata(p)}},{key:"hasLifecycleHook",value:function(p,_){return this.reflectionCapabilities.hasLifecycleHook(p,_)}},{key:"getter",value:function(p){return this.reflectionCapabilities.getter(p)}},{key:"setter",value:function(p){return this.reflectionCapabilities.setter(p)}},{key:"method",value:function(p){return this.reflectionCapabilities.method(p)}},{key:"importUri",value:function(p){return this.reflectionCapabilities.importUri(p)}},{key:"resourceUri",value:function(p){return this.reflectionCapabilities.resourceUri(p)}},{key:"resolveIdentifier",value:function(p,_,b,Z){return this.reflectionCapabilities.resolveIdentifier(p,_,b,Z)}},{key:"resolveEnum",value:function(p,_){return this.reflectionCapabilities.resolveEnum(p,_)}}]),c}(),HE=new z3(new Ob),jE=function(){function c(d,p,_){(0,E.Z)(this,c),this.key=d,this.optional=p,this.visibility=_}return(0,F.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),W3=[],zE=(0,F.Z)(function c(d,p,_){(0,E.Z)(this,c),this.key=d,this.resolvedFactories=p,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),NF=(0,F.Z)(function c(d,p){(0,E.Z)(this,c),this.factory=d,this.dependencies=p});function BF(c){var d,p;if(c.useClass){var _=ge(c.useClass);d=HE.factory(_),p=VE(_)}else c.useExisting?(d=function(Z){return Z},p=[jE.fromKey(bd.get(c.useExisting))]):c.useFactory?(d=c.useFactory,p=function m_(c,d){if(d){var p=d.map(function(_){return[_]});return d.map(function(_){return YE(c,_,p)})}return VE(c)}(c.useFactory,c.deps)):(d=function(){return c.useValue},p=W3);return new NF(d,p)}function FF(c){return new zE(bd.get(c.provide),[BF(c)],c.multi||!1)}function UF(c){var _=function HF(c,d){for(var p=0;p<c.length;p++){var _=c[p],b=d.get(_.key.id);if(b){if(_.multiProvider!==b.multiProvider)throw H3(b,_);if(_.multiProvider)for(var Z=0;Z<_.resolvedFactories.length;Z++)b.resolvedFactories.push(_.resolvedFactories[Z]);else d.set(_.key.id,_)}else{var Q=void 0;Q=_.multiProvider?new zE(_.key,_.resolvedFactories.slice(),_.multiProvider):_,d.set(_.key.id,Q)}}return d}(WE(c,[]).map(FF),new Map);return Array.from(_.values())}function WE(c,d){return c.forEach(function(p){if(p instanceof xb)d.push({provide:p,useClass:p});else if(p&&"object"==typeof p&&void 0!==p.provide)d.push(p);else{if(!Array.isArray(p))throw function LF(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(p);WE(p,d)}}),d}function VE(c){var d=HE.parameters(c);if(!d)return[];if(d.some(function(p){return null==p}))throw U3(c,d);return d.map(function(p){return YE(c,p,d)})}function YE(c,d,p){var _=null,b=!1;if(!Array.isArray(d))return GE(d instanceof gv?d.token:d,b,null);for(var Z=null,Q=0;Q<d.length;++Q){var le=d[Q];le instanceof xb?_=le:le instanceof gv?_=le.token:le instanceof Zm?b=!0:le instanceof Pb||le instanceof Nm?Z=le:le instanceof wa&&(_=le)}if(null!=(_=ge(_)))return GE(_,b,Z);throw U3(c,p)}function GE(c,d,p){return new jE(bd.get(c),d,p)}var __={},qE=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,null,[{key:"resolve",value:function(p){return UF(p)}},{key:"resolveAndCreate",value:function(p,_){var b=c.resolve(p);return c.fromResolvedProviders(b,_)}},{key:"fromResolvedProviders",value:function(p,_){return new KE(p,_)}}]),c}(),KE=function(){function c(d,p){(0,E.Z)(this,c),this._constructionCounter=0,this._providers=d,this.parent=p||null;var _=d.length;this.keyIds=[],this.objs=[];for(var b=0;b<_;b++)this.keyIds[b]=d[b].key.id,this.objs[b]=__}return(0,F.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_f;return this._getByKey(bd.get(p),null,_)}},{key:"resolveAndCreateChild",value:function(p){var _=qE.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(qE.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 ZF(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 PF(c,d){return FE(c,d,function(p){return"Cannot instantiate cyclic dependency!".concat(BE(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 _=[],b=0;b<p.resolvedFactories.length;++b)_[b]=this._instantiate(p,p.resolvedFactories[b]);return _}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,_){var Q,le,b=this,Z=_.factory;try{Q=_.dependencies.map(function(pe){return b._getByReflectiveDependency(pe)})}catch(pe){throw pe.addKey&&pe.addKey(this,p.key),pe}try{le=Z.apply(void 0,(0,y.Z)(Q))}catch(pe){throw function RF(c,d,p,_){return FE(c,_,function(b){var Z=ce(b[0].token);return"".concat(d.message,": Error during instantiation of ").concat(Z,"!").concat(BE(b),".")},d)}(this,pe,pe.stack,p.key)}return le}},{key:"_getByReflectiveDependency",value:function(p){return this._getByKey(p.key,p.visibility,p.optional?null:_f)}},{key:"_getByKey",value:function(p,_,b){return p===c.INJECTOR_KEY?this:_ instanceof Pb?this._getByKeySelf(p,b):this._getByKeyDefault(p,b,_)}},{key:"_getObjByKeyId",value:function(p){for(var _=0;_<this.keyIds.length;_++)if(this.keyIds[_]===p)return this.objs[_]===__&&(this.objs[_]=this._new(this._providers[_])),this.objs[_];return __}},{key:"_throwOrNull",value:function(p,_){if(_!==_f)return _;throw function IF(c,d){return FE(c,d,function(p){var _=ce(p[0].token);return"No provider for ".concat(_,"!").concat(BE(p))})}(this,p)}},{key:"_getByKeySelf",value:function(p,_){var b=this._getObjByKeyId(p.id);return b!==__?b:this._throwOrNull(p,_)}},{key:"_getByKeyDefault",value:function(p,_,b){var Z;for(Z=b instanceof Nm?this.parent:this;Z instanceof c;){var Q=Z,le=Q._getObjByKeyId(p.id);if(le!==__)return le;Z=Q.parent}return null!==Z?Z.get(p.token,_):this._throwOrNull(p,_)}},{key:"displayName",get:function(){var p=function jF(c,d){for(var p=[],_=0;_<c._providers.length;++_)p[_]=d(c.getProviderAtIndex(_));return p}(this,function(_){return' "'+_.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(p,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function Bv(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.Default,p=Nn();if(null===p)return ns(c,d);var _=Di();return ov(_,p,ge(c),d)}function V3(){throw new Error("invalid")}function JE(c,d,p){var _=Nn();Fs(_,Vt(),d)&&du(wi(),eo(),_,c,d,_[11],p,!1);return JE}function QE(c,d,p,_,b){var Q=b?"class":"style";wE(c,p,d.inputs[Q],Q,_)}function w1(c,d,p,_){var b=Nn(),Z=wi(),Q=20+c,le=b[11],pe=b[Q]=$b(le,d,function Eb(){return Ir.lFrame.currentNamespace}()),Ie=Z.firstCreatePass?function Y3(c,d,p,_,b,Z,Q){var le=d.consts,Ie=r_(d,c,2,b,an(le,Z));return r3(d,p,Ie,an(le,Q)),null!==Ie.attrs&&Zv(Ie,Ie.attrs,!1),null!==Ie.mergedAttrs&&Zv(Ie,Ie.mergedAttrs,!0),null!==d.queries&&d.queries.elementStart(d,Ie),Ie}(Q,Z,b,0,d,p,_):Z.data[Q];ji(Ie,!0);var et=Ie.mergedAttrs;null!==et&&xu(le,pe,et);var Tt=Ie.classes;null!==Tt&&VT(le,pe,Tt);var Ot=Ie.styles;return null!==Ot&&xP(le,pe,Ot),64!=(64&Ie.flags)&&i1(Z,b,pe,Ie),0===function ou(){return Ir.lFrame.elementDepthCount}()&&Ns(pe,b),function rd(){Ir.lFrame.elementDepthCount++}(),Li(Ie)&&(c1(Z,b,Ie),JP(Z,Ie,b)),null!==_&&d1(b,Ie),w1}function k1(){var c=Di();hl()?ze():ji(c=c.parent,!1);var d=c;!function oc(){Ir.lFrame.elementDepthCount--}();var p=wi();return p.firstCreatePass&&(ff(p,c),bn(c)&&p.queries.elementEnd(c)),null!=d.classesWithoutHost&&function ur(c){return 0!=(16&c.flags)}(d)&&QE(p,d,Nn(),d.classesWithoutHost,!0),null!=d.stylesWithoutHost&&function Wr(c){return 0!=(32&c.flags)}(d)&&QE(p,d,Nn(),d.stylesWithoutHost,!1),k1}function XE(c,d,p,_){return w1(c,d,p,_),k1(),XE}function $E(c,d,p){var _=Nn(),b=wi(),Z=c+20,Q=b.firstCreatePass?function vW(c,d,p,_,b){var Z=d.consts,Q=an(Z,_),le=r_(d,c,8,"ng-container",Q);return null!==Q&&Zv(le,Q,!0),r3(d,p,le,an(Z,b)),null!==d.queries&&d.queries.elementStart(d,le),le}(Z,b,_,d,p):b.data[Z];ji(Q,!0);var le=_[Z]=_[11].createComment("");return i1(b,_,le,Q),Ns(le,_),Li(Q)&&(c1(b,_,Q),JP(b,Q,_)),null!=p&&d1(_,Q),$E}function T1(){var c=Di(),d=wi();return hl()?ze():ji(c=c.parent,!1),d.firstCreatePass&&(ff(d,c),bn(c)&&d.queries.elementEnd(c)),T1}function G3(c,d,p){return $E(c,d,p),T1(),G3}function zF(){return Nn()}function eM(c){return!!c&&"function"==typeof c.then}function q3(c){return!!c&&"function"==typeof c.subscribe}KE.INJECTOR_KEY=bd.get(Bs);var WF=q3;function K3(c,d,p,_){var b=Nn(),Z=wi(),Q=Di();return tM(Z,b,b[11],Q,c,d,!!p,_),K3}function J3(c,d){var p=Di(),_=Nn(),b=wi();return tM(b,_,h3(di(b.data),p,_),p,c,d,!1),J3}function tM(c,d,p,_,b,Z,Q,le){var pe=Li(_),et=c.firstCreatePass&&p3(c),Tt=d[8],Ot=f3(d),zt=!0;if(3&_.type||le){var hn=xi(_,d),Bn=le?le(hn):hn,Xn=Ot.length,fr=le?function(tC){return le(ar(tC[_.index]))}:_.index;if(Pn(p)){var xn=null;if(!le&&pe&&(xn=function yW(c,d,p,_){var b=c.cleanup;if(null!=b)for(var Z=0;Z<b.length-1;Z+=2){var Q=b[Z];if(Q===p&&b[Z+1]===_){var le=d[7],pe=b[Z+2];return le.length>pe?le[pe]:null}"string"==typeof Q&&(Z+=2)}return null}(c,d,b,_.index)),null!==xn){(xn.__ngLastListenerFn__||xn).__ngNextListenerFn__=Z,xn.__ngLastListenerFn__=Z,zt=!1}else{Z=Q3(_,d,Tt,Z,!1);var ki=p.listen(Bn,b,Z);Ot.push(Z,ki),et&&et.push(b,fr,Xn,Xn+1)}}else Z=Q3(_,d,Tt,Z,!0),Bn.addEventListener(b,Z,Q),Ot.push(Z),et&&et.push(b,fr,Xn,Q)}else Z=Q3(_,d,Tt,Z,!1);var Po,Ni=_.outputs;if(zt&&null!==Ni&&(Po=Ni[b])){var rs=Po.length;if(rs)for(var nl=0;nl<rs;nl+=2){var Fl=Po[nl],Ul=Po[nl+1],ly=d[Fl][Ul].subscribe(Z),uy=Ot.length;Ot.push(Z,ly),et&&et.push(b,_.index,uy,-(uy+1))}}}function nM(c,d,p,_){try{return wo(6,d,p),!1!==p(_)}catch(b){return CE(c,b),!1}finally{wo(7,d,p)}}function Q3(c,d,p,_,b){return function Z(Q){if(Q===Function)return _;var le=2&c.flags?be(c.index,d):d;0==(32&d[2])&&gE(le);for(var pe=nM(d,p,_,Q),Ie=Z.__ngNextListenerFn__;Ie;)pe=nM(d,p,Ie,Q)&&pe,Ie=Ie.__ngNextListenerFn__;return b&&!1===pe&&(Q.preventDefault(),Q.returnValue=!1),pe}}function VF(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Ti(c)}function bW(c,d){for(var p=null,_=function PP(c){var d=c.attrs;if(null!=d){var p=d.indexOf(5);if(0==(1&p))return d[p+1]}return null}(c),b=0;b<d.length;b++){var Z=d[b];if("*"!==Z){if(null===_?IP(c,Z,!0):o1(_,Z))return b}else p=b}return p}function YF(c){var d=Nn()[16][6];if(!d.projection)for(var p=c?c.length:1,_=d.projection=Rm(p,null),b=_.slice(),Z=d.child;null!==Z;){var Q=c?bW(Z,c):0;null!==Q&&(b[Q]?b[Q].projectionNext=Z:_[Q]=Z,b[Q]=Z),Z=Z.next}}function X3(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,_=Nn(),b=wi(),Z=r_(b,20+c,16,null,p||null);null===Z.projection&&(Z.projection=d),ze(),64!=(64&Z.flags)&&EB(b,_,Z)}function rM(c,d,p){return iM(c,"",d,"",p),rM}function iM(c,d,p,_,b){var Z=Nn(),Q=c_(Z,d,p,_);Q!==fi&&du(wi(),eo(),Z,c,Q,Z[11],b,!1);return iM}function $3(c,d,p,_,b,Z,Q){var le=Nn(),pe=d_(le,d,p,_,b,Z);pe!==fi&&du(wi(),eo(),le,c,pe,le[11],Q,!1);return $3}function GF(c,d,p,_,b,Z,Q,le,pe){var Ie=Nn(),et=f_(Ie,d,p,_,b,Z,Q,le);et!==fi&&du(wi(),eo(),Ie,c,et,Ie[11],pe,!1);return GF}function qF(c,d,p,_,b,Z,Q,le,pe,Ie,et){var Tt=Nn(),Ot=Mf(Tt,d,p,_,b,Z,Q,le,pe,Ie);Ot!==fi&&du(wi(),eo(),Tt,c,Ot,Tt[11],et,!1);return qF}function KF(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot){var zt=Nn(),hn=yd(zt,d,p,_,b,Z,Q,le,pe,Ie,et,Tt);hn!==fi&&du(wi(),eo(),zt,c,hn,zt[11],Ot,!1);return KF}function JF(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn){var Bn=Nn(),Xn=Jp(Bn,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt);Xn!==fi&&du(wi(),eo(),Bn,c,Xn,Bn[11],hn,!1);return JF}function QF(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn){var fr=Nn(),xn=p_(fr,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn);xn!==fi&&du(wi(),eo(),fr,c,xn,fr[11],Xn,!1);return QF}function XF(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr,xn){var Cr=Nn(),ki=h_(Cr,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr);ki!==fi&&du(wi(),eo(),Cr,c,ki,Cr[11],xn,!1);return XF}function $F(c,d,p){var _=Nn(),b=Kp(_,d);b!==fi&&du(wi(),eo(),_,c,b,_[11],p,!1);return $F}function CW(c,d,p,_,b,Z){var Q=Z?d.classBindings:d.styleBindings,le=Zu(Q),pe=vd(Q);c[_]=p;var et,Ie=!1;if(Array.isArray(p)){var Tt=p;(null===(et=Tt[1])||Lp(Tt,et)>0)&&(Ie=!0)}else et=p;if(b)if(0!==pe){var zt=Zu(c[le+1]);c[_+1]=hi(zt,le),0!==zt&&(c[zt+1]=QT(c[zt+1],_)),c[le+1]=function gd(c,d){return 131071&c|d<<17}(c[le+1],_)}else c[_+1]=hi(le,0),0!==le&&(c[le+1]=QT(c[le+1],_)),le=_;else c[_+1]=hi(pe,0),0===le?le=_:c[pe+1]=QT(c[pe+1],_),pe=_;Ie&&(c[_+1]=a1(c[_+1])),e4(c,et,_,!0,Z),e4(c,et,_,!1,Z),function wW(c,d,p,_,b){var Z=b?c.residualClasses:c.residualStyles;null!=Z&&"string"==typeof d&&Lp(Z,d)>=0&&(p[_+1]=Av(p[_+1]))}(d,et,c,_,Z),Q=hi(le,pe),Z?d.classBindings=Q:d.styleBindings=Q}function e4(c,d,p,_,b){for(var Z=c[p+1],Q=null===d,le=_?Zu(Z):vd(Z),pe=!1;0!==le&&(!1===pe||Q);){var Ie=c[le],et=c[le+1];kW(Ie,d)&&(pe=!0,c[le+1]=_?Av(et):a1(et)),le=_?Zu(et):vd(et)}pe&&(c[p+1]=_?a1(Z):Av(Z))}function kW(c,d){return null===c||null==d||(Array.isArray(c)?c[1]:c)===d||!(!Array.isArray(c)||"string"!=typeof d)&&Lp(c,d)>=0}var ps={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function e6(c){return c.substring(ps.key,ps.keyEnd)}function TW(c){return c.substring(ps.value,ps.valueEnd)}function t4(c,d){var p=ps.textEnd;return p===d?-1:(d=ps.keyEnd=function SW(c,d,p){for(;d<p&&c.charCodeAt(d)>32;)d++;return d}(c,ps.key=d,p),Fv(c,d,p))}function n4(c,d){var p=ps.textEnd,_=ps.key=Fv(c,d,p);return p===_?-1:(_=ps.keyEnd=function xW(c,d,p){for(var _;d<p&&(45===(_=c.charCodeAt(d))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)d++;return d}(c,_,p),_=i4(c,_,p,58),_=ps.value=Fv(c,_,p),_=ps.valueEnd=function DW(c,d,p){for(var _=-1,b=-1,Z=-1,Q=d,le=Q;Q<p;){var pe=c.charCodeAt(Q++);if(59===pe)return le;34===pe||39===pe?le=Q=o4(c,pe,Q,p):d===Q-4&&85===Z&&82===b&&76===_&&40===pe?le=Q=o4(c,41,Q,p):pe>32&&(le=Q),Z=b,b=_,_=-33&pe}return le}(c,_,p),i4(c,_,p,59))}function r4(c){ps.key=0,ps.keyEnd=0,ps.value=0,ps.valueEnd=0,ps.textEnd=c.length}function Fv(c,d,p){for(;d<p&&c.charCodeAt(d)<=32;)d++;return d}function i4(c,d,p,_){return(d=Fv(c,d,p))<p&&d++,d}function o4(c,d,p,_){for(var b=-1,Z=p;Z<_;){var Q=c.charCodeAt(Z++);if(Q==d&&92!==b)return Z;b=92==Q&&92===b?0:Q}throw new Error}function t6(c,d,p){return Tc(c,d,p,!1),t6}function oM(c,d){return Tc(c,d,null,!0),oM}function kc(c){Ec(l4,AW,c,!1)}function AW(c,d){for(var p=function MW(c){return r4(c),n4(c,Fv(c,0,ps.textEnd))}(d);p>=0;p=n4(d,p))l4(c,e6(d),TW(d))}function a4(c){Ec(Rl,Cd,c,!0)}function Cd(c,d){for(var p=function EW(c){return r4(c),t4(c,Fv(c,0,ps.textEnd))}(d);p>=0;p=t4(d,p))Rl(c,e6(d),!0)}function Tc(c,d,p,_){var b=Nn(),Z=wi(),Q=Qt(2);(Z.firstUpdatePass&&n6(Z,c,Q,_),d!==fi&&Fs(b,Q,d))&&aM(Z,Z.data[$i()],b,b[11],c,b[Q+1]=function NW(c,d){return null==c||("string"==typeof d?c+=d:"object"==typeof c&&(c=ce(_l(c)))),c}(d,p),_,Q)}function Ec(c,d,p,_){var b=wi(),Z=Qt(2);b.firstUpdatePass&&n6(b,null,Z,_);var Q=Nn();if(p!==fi&&Fs(Q,Z,p)){var le=b.data[$i()];if(c4(le,_)&&!s4(b,Z)){var Ie=_?le.classesWithoutHost:le.stylesWithoutHost;null!==Ie&&(p=se(Ie,p||"")),QE(b,le,Q,p,_)}else!function ZW(c,d,p,_,b,Z,Q,le){b===fi&&(b=Ee);for(var pe=0,Ie=0,et=0<b.length?b[0]:null,Tt=0<Z.length?Z[0]:null;null!==et||null!==Tt;){var Ot=pe<b.length?b[pe+1]:void 0,zt=Ie<Z.length?Z[Ie+1]:void 0,hn=null,Bn=void 0;et===Tt?(pe+=2,Ie+=2,Ot!==zt&&(hn=Tt,Bn=zt)):null===Tt||null!==et&&et<Tt?(pe+=2,hn=et):(Ie+=2,hn=Tt,Bn=zt),null!==hn&&aM(c,d,p,_,hn,Bn,Q,le),et=pe<b.length?b[pe]:null,Tt=Ie<Z.length?Z[Ie]:null}}(b,le,Q,Q[11],Q[Z+1],Q[Z+1]=function LW(c,d,p){if(null==p||""===p)return Ee;var _=[],b=_l(p);if(Array.isArray(b))for(var Z=0;Z<b.length;Z++)c(_,b[Z],!0);else if("object"==typeof b)for(var Q in b)b.hasOwnProperty(Q)&&c(_,Q,b[Q]);else"string"==typeof b&&d(_,b);return _}(c,d,p),_,Z)}}function s4(c,d){return d>=c.expandoStartIndex}function n6(c,d,p,_){var b=c.data;if(null===b[p+1]){var Z=b[$i()],Q=s4(c,p);c4(Z,_)&&null===d&&!Q&&(d=!1),d=function OW(c,d,p,_){var b=di(c),Z=_?d.residualClasses:d.residualStyles;if(null===b){0===(_?d.classBindings:d.styleBindings)&&(p=E1(p=r6(null,c,d,p,_),d.attrs,_),Z=null)}else{var le=d.directiveStylingLast;if(-1===le||c[le]!==b)if(p=r6(b,c,d,p,_),null===Z){var Ie=function IW(c,d,p){var _=p?d.classBindings:d.styleBindings;if(0!==vd(_))return c[Zu(_)]}(c,d,_);void 0!==Ie&&Array.isArray(Ie)&&function PW(c,d,p,_){var b=p?d.classBindings:d.styleBindings;c[Zu(b)]=_}(c,d,_,Ie=E1(Ie=r6(null,c,d,Ie[1],_),d.attrs,_))}else Z=function RW(c,d,p){for(var _=void 0,b=d.directiveEnd,Z=1+d.directiveStylingLast;Z<b;Z++){_=E1(_,c[Z].hostAttrs,p)}return E1(_,d.attrs,p)}(c,d,_)}return void 0!==Z&&(_?d.residualClasses=Z:d.residualStyles=Z),p}(b,Z,d,_),CW(b,Z,d,p,Q,_)}}function r6(c,d,p,_,b){var Z=null,Q=p.directiveEnd,le=p.directiveStylingLast;for(-1===le?le=p.directiveStart:le++;le<Q&&(_=E1(_,(Z=d[le]).hostAttrs,b),Z!==c);)le++;return null!==c&&(p.directiveStylingLast=le),_}function E1(c,d,p){var _=p?1:2,b=-1;if(null!==d)for(var Z=0;Z<d.length;Z++){var Q=d[Z];"number"==typeof Q?b=Q:b===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),Rl(c,Q,!!p||d[++Z]))}return void 0===c?null:c}function l4(c,d,p){Rl(c,d,_l(p))}function aM(c,d,p,_,b,Z,Q,le){if(3&d.type){var pe=c.data,Ie=pe[le+1];if(!sM(FP(Ie)?u4(pe,d,p,b,vd(Ie),Q):void 0))sM(Z)||JT(Ie)&&(Z=u4(pe,null,p,b,le,Q)),function WT(c,d,p,_,b){var Z=Pn(c);if(d)b?Z?c.addClass(p,_):p.classList.add(_):Z?c.removeClass(p,_):p.classList.remove(_);else{var Q=-1===_.indexOf("-")?void 0:Ev.DashCase;if(null==b)Z?c.removeStyle(p,_,Q):p.style.removeProperty(_);else{var le="string"==typeof b&&b.endsWith("!important");le&&(b=b.slice(0,-10),Q|=Ev.Important),Z?c.setStyle(p,_,b,Q):p.style.setProperty(_,b,le?"important":"")}}}(_,Q,So($i(),p),b,Z)}}function u4(c,d,p,_,b,Z){for(var Q=null===d,le=void 0;b>0;){var pe=c[b],Ie=Array.isArray(pe),et=Ie?pe[1]:pe,Tt=null===et,Ot=p[b+1];Ot===fi&&(Ot=Tt?Ee:void 0);var zt=Tt?uT(Ot,_):et===_?Ot:void 0;if(Ie&&!sM(zt)&&(zt=uT(pe,_)),sM(zt)&&(le=zt,Q))return le;var hn=c[b+1];b=Q?Zu(hn):vd(hn)}if(null!==d){var Bn=Z?d.residualClasses:d.residualStyles;null!=Bn&&(le=uT(Bn,_))}return le}function sM(c){return void 0!==c}function c4(c,d){return 0!=(c.flags&(d?16:32))}function d4(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=Nn(),_=wi(),b=c+20,Z=_.firstCreatePass?r_(_,b,1,d,null):_.data[b],Q=p[b]=Xb(p[11],d);i1(_,p,Q,Z),ji(Z,!1)}function i6(c){return lM("",c,""),i6}function lM(c,d,p){var _=Nn(),b=c_(_,c,d,p);return b!==fi&&yc(_,$i(),b),lM}function uM(c,d,p,_,b){var Z=Nn(),Q=d_(Z,c,d,p,_,b);return Q!==fi&&yc(Z,$i(),Q),uM}function o6(c,d,p,_,b,Z,Q){var le=Nn(),pe=f_(le,c,d,p,_,b,Z,Q);return pe!==fi&&yc(le,$i(),pe),o6}function Qp(c,d,p,_,b,Z,Q,le,pe){var Ie=Nn(),et=Mf(Ie,c,d,p,_,b,Z,Q,le,pe);return et!==fi&&yc(Ie,$i(),et),Qp}function M1(c,d,p,_,b,Z,Q,le,pe,Ie,et){var Tt=Nn(),Ot=yd(Tt,c,d,p,_,b,Z,Q,le,pe,Ie,et);return Ot!==fi&&yc(Tt,$i(),Ot),M1}function a6(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot){var zt=Nn(),hn=Jp(zt,c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot);return hn!==fi&&yc(zt,$i(),hn),a6}function cM(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn){var Bn=Nn(),Xn=p_(Bn,c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn);return Xn!==fi&&yc(Bn,$i(),Xn),cM}function s6(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn){var fr=Nn(),xn=h_(fr,c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn);return xn!==fi&&yc(fr,$i(),xn),s6}function f4(c){var d=Nn(),p=Kp(d,c);return p!==fi&&yc(d,$i(),p),f4}function dM(c,d,p){Ec(Rl,Cd,c_(Nn(),c,d,p),!0)}function l6(c,d,p,_,b){Ec(Rl,Cd,d_(Nn(),c,d,p,_,b),!0)}function p4(c,d,p,_,b,Z,Q){Ec(Rl,Cd,f_(Nn(),c,d,p,_,b,Z,Q),!0)}function BW(c,d,p,_,b,Z,Q,le,pe){Ec(Rl,Cd,Mf(Nn(),c,d,p,_,b,Z,Q,le,pe),!0)}function h4(c,d,p,_,b,Z,Q,le,pe,Ie,et){Ec(Rl,Cd,yd(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et),!0)}function m4(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot){Ec(Rl,Cd,Jp(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot),!0)}function _4(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn){Ec(Rl,Cd,p_(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn),!0)}function u6(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn){Ec(Rl,Cd,h_(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn),!0)}function g4(c){Ec(Rl,Cd,Kp(Nn(),c),!0)}function v4(c,d,p){kc(c_(Nn(),c,d,p))}function FW(c,d,p,_,b){kc(d_(Nn(),c,d,p,_,b))}function y4(c,d,p,_,b,Z,Q){kc(f_(Nn(),c,d,p,_,b,Z,Q))}function UW(c,d,p,_,b,Z,Q,le,pe){kc(Mf(Nn(),c,d,p,_,b,Z,Q,le,pe))}function b4(c,d,p,_,b,Z,Q,le,pe,Ie,et){kc(yd(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et))}function C4(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot){kc(Jp(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot))}function HW(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn){kc(p_(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn))}function w4(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn){kc(h_(Nn(),c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn))}function k4(c){kc(Kp(Nn(),c))}function T4(c,d,p,_,b){return Tc(c,c_(Nn(),d,p,_),b,!1),T4}function c6(c,d,p,_,b,Z,Q){return Tc(c,d_(Nn(),d,p,_,b,Z),Q,!1),c6}function d6(c,d,p,_,b,Z,Q,le,pe){return Tc(c,f_(Nn(),d,p,_,b,Z,Q,le),pe,!1),d6}function E4(c,d,p,_,b,Z,Q,le,pe,Ie,et){return Tc(c,Mf(Nn(),d,p,_,b,Z,Q,le,pe,Ie),et,!1),E4}function f6(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot){return Tc(c,yd(Nn(),d,p,_,b,Z,Q,le,pe,Ie,et,Tt),Ot,!1),f6}function n(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn){return Tc(c,Jp(Nn(),d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt),hn,!1),n}function Ct(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn){return Tc(c,p_(Nn(),d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn),Xn,!1),Ct}function Zi(c,d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr,xn){return Tc(c,h_(Nn(),d,p,_,b,Z,Q,le,pe,Ie,et,Tt,Ot,zt,hn,Bn,Xn,fr),xn,!1),Zi}function Un(c,d,p){return Tc(c,Kp(Nn(),d),p,!1),Un}function Ai(c,d,p){var _=Nn();Fs(_,Vt(),d)&&du(wi(),eo(),_,c,d,_[11],p,!0);return Ai}function qn(c,d,p){var _=Nn();if(Fs(_,Vt(),d)){var Z=wi(),Q=eo();du(Z,Q,_,c,d,h3(di(Z.data),Q,_),p,!0)}return qn}var Io=void 0;var xo,S4=["en",[["a","p"],["AM","PM"],Io],[["AM","PM"],Io,Io],[["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"]],Io,[["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"]],Io,[["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}",Io,"{1} 'at' {0}",Io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function M4(c){var p=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===_?1:5}],fo={};function Yr(c){var d=function ka(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=to(d);if(p)return p;var _=d.split("-")[0];if(p=to(_))return p;if("en"===_)return S4;throw new Error('Missing locale data for the locale "'.concat(c,'".'))}function mr(c){return Yr(c)[xo.PluralCase]}function to(c){return c in fo||(fo[c]=Yn.ng&&Yn.ng.common&&Yn.ng.common.locales&&Yn.ng.common.locales[c]),fo[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"}(xo||(xo={}));var Es=["zero","one","two","few","many"];var $s,wd="en-US",Xp={marker:"element"},Uv={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}($s||($s={}));var S1=wd;function hM(c,d,p){var _=d.insertBeforeIndex,b=Array.isArray(_)?_[0]:_;return null===b?kP(c,0,p):ar(p[b])}function mM(c,d,p,_,b){var Z=d.insertBeforeIndex;if(Array.isArray(Z)){var Q=_,le=null;if(3&d.type||(le=Q,Q=b),null!==Q&&0==(2&d.flags))for(var pe=1;pe<Z.length;pe++){Yp(c,Q,p[Z[pe]],le,!1)}}}function _M(c,d){if(c.push(d),c.length>1)for(var p=c.length-2;p>=0;p--){var _=c[p];gM(_)||x4(_,d)&&null===m6(_)&&_6(_,d.index)}}function gM(c){return!(64&c.type)}function x4(c,d){return gM(d)||c.index>d.index}function m6(c){var d=c.insertBeforeIndex;return Array.isArray(d)?d[0]:d}function _6(c,d){var p=c.insertBeforeIndex;Array.isArray(p)?p[0]=d:(jT(hM,mM),c.insertBeforeIndex=d)}function g_(c,d){var p=c.data[d];return null===p||"string"==typeof p?null:p.hasOwnProperty("currentCaseLViewIndex")?p:p.value}function vM(c,d,p){var _=u1(c,p,64,null,null);return _M(d,_),_}function D1(c,d){var p=d[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function jv(c){return c>>>17}function yM(c){return(131070&c)>>>1}var y_=0,zv=0;function Wv(c,d,p,_){for(var b=c[11],Z=0;Z<d.length;Z++){var Q=d[Z++],le=d[Z],pe=(Q&$s.COMMENT)===$s.COMMENT,Ie=(Q&$s.APPEND_EAGERLY)===$s.APPEND_EAGERLY,et=Q>>>$s.SHIFT,Tt=c[et];null===Tt&&(Tt=c[et]=pe?b.createComment(le):Xb(b,le)),Ie&&null!==p&&Yp(b,p,Tt,_,!1)}}function bM(c,d,p,_){for(var Q,b=p[11],Z=null,le=0;le<d.length;le++){var pe=d[le];if("string"==typeof pe){var Ie=d[++le];null===p[Ie]&&(p[Ie]=Xb(b,pe))}else if("number"==typeof pe)switch(1&pe){case 0:var et=jv(pe);null===Z&&(Z=et,Q=Jm(b,_));var Tt=void 0,Ot=void 0;if(et===Z?(Tt=_,Ot=Q):(Tt=null,Ot=ar(p[et])),null!==Ot){var zt=yM(pe);Yp(b,Ot,p[zt],Tt,!1);var Bn=g_(c,zt);if(null!==Bn&&"object"==typeof Bn){var Xn=D1(Bn,p);null!==Xn&&bM(c,Bn.create[Xn],p,p[Bn.anchorIdx])}}break;case 1:var fr=pe>>>1,xn=d[++le],Cr=d[++le];hE(b,So(fr,p),null,null,xn,Cr,null)}else switch(pe){case Uv:var ki=d[++le],Ni=d[++le];if(null===p[Ni])Ns(p[Ni]=BT(b,ki),p);break;case Xp:var rs=d[++le],nl=d[++le];if(null===p[nl])Ns(p[nl]=$b(b,rs,null),p)}}}function CM(c,d,p,_,b){for(var Z=0;Z<p.length;Z++){var Q=p[Z],le=p[++Z];if(Q&b)for(var pe="",Ie=Z+1;Ie<=Z+le;Ie++){var et=p[Ie];if("string"==typeof et)pe+=et;else if("number"==typeof et)if(et<0)pe+=ke(d[_-et]);else{var Tt=et>>>2;switch(3&et){case 1:var Ot=p[++Ie],zt=p[++Ie],hn=c.data[Tt];"string"==typeof hn?hE(d[11],d[Tt],null,hn,Ot,pe,zt):du(c,hn,d,Ot,pe,d[11],zt,!1);break;case 0:var Bn=d[Tt];null!==Bn&&_P(d[11],Bn,pe);break;case 2:y6(c,g_(c,Tt),d,pe);break;case 3:v6(c,g_(c,Tt),_,d)}}}else{var Xn=p[Z+1];if(Xn>0&&3==(3&Xn)){var xn=g_(c,Xn>>>2);d[xn.currentCaseLViewIndex]<0&&v6(c,xn,_,d)}}Z+=le}}function v6(c,d,p,_){var b=_[d.currentCaseLViewIndex];if(null!==b){var Z=y_;b<0&&(b=_[d.currentCaseLViewIndex]=~b,Z=-1),CM(c,_,d.update[b],p,Z)}}function y6(c,d,p,_){var b=function A4(c,d){var p=c.cases.indexOf(d);if(-1===p)switch(c.type){case 1:var _=function fM(c,d){var p=mr(d)(parseInt(c,10)),_=Es[p];return void 0!==_?_:"other"}(d,function Hv(){return S1}());-1===(p=c.cases.indexOf(_))&&"other"!==_&&(p=c.cases.indexOf("other"));break;case 0:p=c.cases.indexOf("other")}return-1===p?null:p}(d,_);if(D1(d,p)!==b&&(wM(c,d,p),p[d.currentCaseLViewIndex]=null===b?null:~b,null!==b)){var Q=p[d.anchorIdx];Q&&bM(c,d.create[b],p,Q)}}function wM(c,d,p){var _=D1(d,p);if(null!==_)for(var b=d.remove[_],Z=0;Z<b.length;Z++){var Q=b[Z];if(Q>0){var le=So(Q,p);null!==le&&MP(p[11],le)}else wM(c,g_(c,~Q),p)}}function A1(){var p,_,c=[],d=-1;function Z(le,pe){d=0;var Ie=D1(le,pe);_=null!==Ie?le.remove[Ie]:Ee}function Q(){if(d<_.length){var le=_[d++];if(le>0)return p[le];c.push(d,_);var Ie=~le;return Z(p[1].data[Ie],p),Q()}return 0===c.length?null:(_=c.pop(),d=c.pop(),Q())}return function b(le,pe){for(p=pe;c.length;)c.pop();return Z(le.value,pe),Q}}var Sf=/\ufffd(\d+):?\d*\ufffd/gi,C6=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,VW=/\ufffd(\d+)\ufffd/,w6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,b_="\ufffd",C_=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,kM=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Yv=/\uE500/g;function Gv(c,d,p,_,b,Z){var Q=Mu(),le=[],pe=[],Ie=[[]];b=function go(c,d){if(function po(c){return-1===c}(d))return el(c);var p=c.indexOf(":".concat(d).concat(b_))+2+d.toString().length,_=c.search(new RegExp("".concat(b_,"\\/\\*\\d+:").concat(d).concat(b_)));return el(c.substring(p,_))}(b,Z);for(var et=function k6(c){return c.replace(Yv," ")}(b).split(kM),Tt=0;Tt<et.length;Tt++){var Ot=et[Tt];if(0==(1&Tt))for(var zt=EM(Ot),hn=0;hn<zt.length;hn++){var Bn=zt[hn];if(0==(1&hn)){var Xn=Bn;""!==Xn&&qv(c,Q,Ie[0],le,pe,p,Xn)}else{var fr=Bn;if("object"!=typeof fr)throw new Error('Unable to parse ICU expression in "'.concat(b,'" message.'));I1(c,p,pe,d,fr,TM(c,Q,Ie[0],p,le,"",!0).index)}}else{var ki=47===Ot.charCodeAt(0),Po=(Ot.charCodeAt(ki?1:0),20+Number.parseInt(Ot.substring(ki?2:1)));if(ki)Ie.shift(),ji(Mu(),!1);else{var rs=vM(c,Ie[0],Po);Ie.unshift([]),ji(rs,!0)}}}c.data[_]={create:le,update:pe}}function TM(c,d,p,_,b,Z,Q){var le=i_(c,_,1,null),pe=le<<$s.SHIFT,Ie=Mu();d===Ie&&(Ie=null),null===Ie&&(pe|=$s.APPEND_EAGERLY),Q&&(pe|=$s.COMMENT,function Vp(c){void 0===PT&&(PT=c())}(A1)),b.push(pe,null===Z?"":Z);var et=u1(c,le,Q?32:1,null===Z?"":Z,null);_M(p,et);var Tt=et.index;return ji(et,!1),null!==Ie&&d!==Ie&&function D4(c,d){var p=c.insertBeforeIndex;null===p?(jT(hM,mM),p=c.insertBeforeIndex=[null,d]):(rt(Array.isArray(p),!0,"Expecting array here"),p.push(d))}(Ie,Tt),et}function qv(c,d,p,_,b,Z,Q){var le=Q.match(Sf),pe=TM(c,d,p,Z,_,le?null:Q,!1);le&&Bu(b,Q,pe.index,null,0,null)}function Bu(c,d,p,_,b,Z){var Q=c.length,le=Q+1;c.push(null,null);for(var pe=Q+2,Ie=d.split(Sf),et=0,Tt=0;Tt<Ie.length;Tt++){var Ot=Ie[Tt];if(1&Tt){var zt=b+parseInt(Ot,10);c.push(-1-zt),et|=Ao(zt)}else""!==Ot&&c.push(Ot)}return c.push(p<<2|(_?1:0)),_&&c.push(_,Z),c[Q]=et,c[le]=c.length-pe,et}function w_(c){for(var d=0,p=0;p<c.length;p++){var _=c[p];"number"==typeof _&&_<0&&d++}return d}function Ao(c){return 1<<Math.min(c,31)}function el(c){for(var d,Z,p="",_=0,b=!1;null!==(d=C_.exec(c));)b?d[0]==="".concat(b_,"/*").concat(Z).concat(b_)&&(_=d.index,b=!1):(p+=c.substring(_,d.index+d[0].length),Z=d[1],b=!0);return p+=c.substr(_)}function I1(c,d,p,_,b,Z){var Q=0,le={type:b.type,currentCaseLViewIndex:i_(c,d,1,null),anchorIdx:Z,cases:[],create:[],remove:[],update:[]};(function k_(c,d,p){c.push(Ao(d.mainBinding),2,-1-d.mainBinding,p<<2|2)})(p,b,Z),function x1(c,d,p){var _=c.data[d];null===_?c.data[d]=p:_.value=p}(c,Z,le);for(var pe=b.values,Ie=0;Ie<pe.length;Ie++){for(var et=pe[Ie],Tt=[],Ot=0;Ot<et.length;Ot++){var zt=et[Ot];if("string"!=typeof zt){var hn=Tt.push(zt)-1;et[Ot]="\x3c!--\ufffd".concat(hn,"\ufffd--\x3e")}}Q=I4(c,le,d,p,_,b.cases[Ie],et.join(""),Tt)|Q}Q&&function P4(c,d,p){c.push(d,1,p<<2|3)}(p,Q,Z)}function pr(c){for(var d=[],p=[],_=1,b=0,Z=EM(c=c.replace(w6,function(Ie,et,Tt){return _="select"===Tt?0:1,b=parseInt(et.substr(1),10),""})),Q=0;Q<Z.length;){var le=Z[Q++].trim();1===_&&(le=le.replace(/\s*(?:=)?(\w+)\s*/,"$1")),le.length&&d.push(le);var pe=EM(Z[Q++]);d.length>p.length&&p.push(pe)}return{type:_,mainBinding:b,cases:d,values:p}}function EM(c){if(!c)return[];var Z,d=0,p=[],_=[],b=/[{}]/g;for(b.lastIndex=0;Z=b.exec(c);){var Q=Z.index;if("}"==Z[0]){if(p.pop(),0==p.length){var le=c.substring(d,Q);w6.test(le)?_.push(pr(le)):_.push(le),d=Q+1}}else{if(0==p.length){var pe=c.substring(d,Q);_.push(pe),d=Q+1}p.push("{")}}var Ie=c.substring(d);return _.push(Ie),_}function I4(c,d,p,_,b,Z,Q,le){var pe=[],Ie=[],et=[];d.cases.push(Z),d.create.push(pe),d.remove.push(Ie),d.update.push(et);var Ot=QI(un()).getInertBodyElement(Q),zt=ja(Ot)||Ot;return zt?T6(c,d,p,_,pe,Ie,et,zt,b,le,0):0}function T6(c,d,p,_,b,Z,Q,le,pe,Ie,et){for(var Tt=0,Ot=le.firstChild;Ot;){var zt=i_(c,p,1,null);switch(Ot.nodeType){case Node.ELEMENT_NODE:var hn=Ot,Bn=hn.tagName.toLowerCase();if(nP.hasOwnProperty(Bn)){fu(b,Xp,Bn,pe,zt),c.data[zt]=Bn;for(var Xn=hn.attributes,fr=0;fr<Xn.length;fr++){var xn=Xn.item(fr),Cr=xn.name.toLowerCase();!!xn.value.match(Sf)?pd.hasOwnProperty(Cr)&&(rP[Cr]?Bu(Q,xn.value,zt,xn.name,0,Hm):iP[Cr]?Bu(Q,xn.value,zt,xn.name,0,bT):Bu(Q,xn.value,zt,xn.name,0,null)):Mc(b,zt,xn)}Tt=T6(c,d,p,_,b,Z,Q,Ot,zt,Ie,et+1)|Tt,E6(Z,zt,et)}break;case Node.TEXT_NODE:var Ni=Ot.textContent||"",Po=Ni.match(Sf);fu(b,null,Po?"":Ni,pe,zt),E6(Z,zt,et),Po&&(Tt=Bu(Q,Ni,zt,null,0,null)|Tt);break;case Node.COMMENT_NODE:var rs=VW.exec(Ot.textContent||"");if(rs){var Fl=Ie[parseInt(rs[1],10)];fu(b,Uv,"",pe,zt),I1(c,p,_,pe,Fl,zt),MM(Z,zt,et)}}Ot=Ot.nextSibling}return Tt}function E6(c,d,p){0===p&&c.push(d)}function MM(c,d,p){0===p&&(c.push(~d),c.push(d))}function fu(c,d,p,_,b){null!==d&&c.push(d),c.push(p,b,function g6(c,d,p){return c|d<<17|p<<1}(0,_,b))}function Mc(c,d,p){c.push(d<<1|1,p.name,p.value)}var R4=/\[(\ufffd.+?\ufffd?)\]/,L4=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,wl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,SM=/{([A-Z0-9_]+)}/g,eh=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,T_=/\/\*/,th=/\d+\:(\d+)/;function M6(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(R4.test(c)){var _={},b=[0];p=p.replace(L4,function(Z,Q,le){var pe=Q||le,Ie=_[pe]||[];if(Ie.length||(pe.split("|").forEach(function(fr){var xn=fr.match(th),Cr=xn?parseInt(xn[1],10):0,ki=T_.test(fr);Ie.push([Cr,ki,fr])}),_[pe]=Ie),!Ie.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(pe));for(var et=b[b.length-1],Tt=0,Ot=0;Ot<Ie.length;Ot++)if(Ie[Ot][0]===et){Tt=Ot;break}var zt=(0,U.Z)(Ie[Tt],3),hn=zt[0],Bn=zt[1],Xn=zt[2];return Bn?b.pop():et!==hn&&b.push(hn),Ie.splice(Tt,1),Xn})}return Object.keys(d).length&&(p=(p=(p=p.replace(wl,function(Z,Q,le,pe,Ie,et){return d.hasOwnProperty(le)?"".concat(Q).concat(d[le]).concat(et):Z})).replace(SM,function(Z,Q){return d.hasOwnProperty(Q)?d[Q]:Z})).replace(eh,function(Z,Q){if(d.hasOwnProperty(Q)){var le=d[Q];if(!le.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(Z," with key: ").concat(Q));return le.shift()}return Z})),p}function P1(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=wi(),b=Nn(),Z=20+c,Q=an(_.consts,d),le=Mu();_.firstCreatePass&&Gv(_,null===le?0:le.index,b,Z,Q,p);var pe=_.data[Z],Ie=le===b[6]?null:le,et=bP(_,Ie,b),Tt=le&&8&le.type?b[le.index]:null;Wv(b,pe.create,et,Tt),Qn(!0)}function xf(){Qn(!1)}function YW(c,d,p){P1(c,d,p),xf()}function nh(c,d){var p=wi();!function O4(c,d,p){var b=Di().index,Z=[];if(c.firstCreatePass&&null===c.data[d]){for(var Q=0;Q<p.length;Q+=2){var le=p[Q],pe=p[Q+1];if(""!==pe){if(C6.test(pe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(pe,'".'));Bu(Z,pe,b,le,w_(Z),null)}}c.data[d]=Z}}(p,c+20,an(p.consts,d))}function S6(c){return function jW(c){c&&(y_|=1<<Math.min(zv,31)),zv++}(Fs(Nn(),Vt(),c)),S6}function Z4(c){!function zW(c,d,p){if(zv>0){var _=c.data[p];CM(c,d,Array.isArray(_)?_:_.update,wt()-zv-1,y_)}y_=0,zv=0}(wi(),Nn(),c+20)}function Td(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return M6(c,d)}function N4(c,d,p){var _=wi();if(_.firstCreatePass){var b=qi(c);xM(p,_.data,_.blueprint,b,!0),xM(d,_.data,_.blueprint,b,!1)}}function xM(c,d,p,_,b){if(c=ge(c),Array.isArray(c))for(var Z=0;Z<c.length;Z++)xM(c[Z],d,p,_,b);else{var Q=wi(),le=Nn(),pe=o_(c)?c:ge(c.provide),Ie=g3(c),et=Di(),Tt=1048575&et.providerIndexes,Ot=et.directiveStart,zt=et.providerIndexes>>20;if(o_(c)||!c.multi){var hn=new ts(Ie,b,Bv),Bn=Us(pe,d,b?Tt:Tt+zt,Ot);-1===Bn?(aT(iv(et,le),Q,pe),Fu(Q,c,d.length),d.push(pe),et.directiveStart++,et.directiveEnd++,b&&(et.providerIndexes+=1048576),p.push(hn),le.push(hn)):(p[Bn]=hn,le[Bn]=hn)}else{var Xn=Us(pe,d,Tt+zt,Ot),fr=Us(pe,d,Tt,Tt+zt),xn=Xn>=0&&p[Xn],Cr=fr>=0&&p[fr];if(b&&!Cr||!b&&!xn){aT(iv(et,le),Q,pe);var ki=function Df(c,d,p,_,b){var Z=new ts(c,p,Bv);return Z.multi=[],Z.index=d,Z.componentProviders=0,Ed(Z,b,_&&!p),Z}(b?ih:rh,p.length,b,_,Ie);!b&&Cr&&(p[fr].providerFactory=ki),Fu(Q,c,d.length,0),d.push(pe),et.directiveStart++,et.directiveEnd++,b&&(et.providerIndexes+=1048576),p.push(ki),le.push(ki)}else{Fu(Q,c,Xn>-1?Xn:fr,Ed(p[b?fr:Xn],Ie,!b&&_))}!b&&_&&Cr&&p[fr].componentProviders++}}}function Fu(c,d,p,_){var b=o_(d),Z=function aF(c){return!!c.useClass}(d);if(b||Z){var pe=(Z?ge(d.useClass):d).prototype.ngOnDestroy;if(pe){var Ie=c.destroyHooks||(c.destroyHooks=[]);if(!b&&d.multi){var et=Ie.indexOf(p);-1===et?Ie.push(p,[_,pe]):Ie[et+1].push(_,pe)}else Ie.push(p,pe)}}}function Ed(c,d,p){return p&&c.componentProviders++,c.multi.push(d)-1}function Us(c,d,p,_){for(var b=p;b<_;b++)if(d[b]===c)return b;return-1}function rh(c,d,p,_){return Md(this.multi,[])}function ih(c,d,p,_){var Z,b=this.multi;if(this.providerFactory){var Q=this.providerFactory.componentProviders,le=hf(p,p[1],this.providerFactory.index,_);Md(b,Z=le.slice(0,Q));for(var pe=Q;pe<le.length;pe++)Z.push(le[pe])}else Md(b,Z=[]);return Z}function Md(c,d){for(var p=0;p<c.length;p++){var _=c[p];d.push(_())}return d}function DM(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(_,b){return N4(_,b?b(c):c,d)}}}var B4=(0,F.Z)(function c(){(0,E.Z)(this,c)}),F4=(0,F.Z)(function c(){(0,E.Z)(this,c)});var U4="ngComponent";var qW=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"resolveComponentFactory",value:function(p){throw function GW(c){var d=Error("No component factory found for ".concat(ce(c),". Did you add it to @NgModule.entryComponents?"));return d[U4]=c,d}(p)}}]),c}(),R1=(0,F.Z)(function c(){(0,E.Z)(this,c)});function Kv(c,d){return new Af(xi(c,d))}R1.NULL=new qW;var Af=(0,F.Z)(function c(d){(0,E.Z)(this,c),this.nativeElement=d});function Jv(c){return c instanceof Af?c.nativeElement:c}Af.__NG_ELEMENT_ID__=function KW(){return Kv(Di(),Nn())};new wa("Renderer2Interceptor");var Sd=(0,F.Z)(function c(){(0,E.Z)(this,c)}),xd=(0,F.Z)(function c(){(0,E.Z)(this,c)});xd.__NG_ELEMENT_ID__=function(){return function JW(){var c=Nn(),p=be(Di().index,c);return function Of(c){return c[11]}(Na(p)?p:c)}()};var x6=(0,F.Z)(function c(){(0,E.Z)(this,c)});x6.\u0275prov=yt({token:x6,providedIn:"root",factory:function(){return null}});var Sc=(0,F.Z)(function c(d){(0,E.Z)(this,c),this.full=d,this.major=d.split(".")[0],this.minor=d.split(".")[1],this.patch=d.split(".").slice(2).join(".")}),L1=new Sc("13.3.11"),If={};function AM(c,d,p,_){for(var b=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var Z=d[p.index];if(null!==Z&&_.push(ar(Z)),vn(Z))for(var Q=10;Q<Z.length;Q++){var le=Z[Q],pe=le[1].firstChild;null!==pe&&AM(le[1],le,pe,_)}var Ie=p.type;if(8&Ie)AM(c,d,p.child,_);else if(32&Ie)for(var et=Mv(p,d),Tt=void 0;Tt=et();)_.push(Tt);else if(16&Ie){var Ot=EP(d,p);if(Array.isArray(Ot))_.push.apply(_,(0,y.Z)(Ot));else{var zt=Sv(d[16]);AM(zt[1],zt,Ot,_,!0)}}p=b?p.projectionNext:p.next}return _}var Uu=function(){function c(d,p){(0,E.Z)(this,c),this._lView=d,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}return(0,F.Z)(c,[{key:"rootNodes",get:function(){var p=this._lView,_=p[1];return AM(_,p,_.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(p){this._lView[8]=p}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var p=this._lView[3];if(vn(p)){var _=p[8],b=_?_.indexOf(this):-1;b>-1&&(t1(p,b),dv(_,b))}this._attachedToViewContainer=!1}n1(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){$P(this._lView[1],this._lView,null,p)}},{key:"markForCheck",value:function(){gE(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){yE(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef){throw new xe(902,"")}this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function kB(c,d){Dv(c,d,d[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(p){if(this._attachedToViewContainer){throw new xe(902,"")}this._appRef=p}}]),c}(),Hu=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_){var b;return(0,E.Z)(this,p),(b=d.call(this,_))._view=_,b}return(0,F.Z)(p,[{key:"detectChanges",value:function(){d3(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(Uu),ne=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_){var b;return(0,E.Z)(this,p),(b=d.call(this)).ngModule=_,b}return(0,F.Z)(p,[{key:"resolveComponentFactory",value:function(b){var Z=Mr(b);return new Ei(Z,this.ngModule)}}]),p}(R1);function ln(c){var d=[];for(var p in c)if(c.hasOwnProperty(p)){var _=c[p];d.push({propName:_,templateName:p})}return d}var Ei=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b){var Z;return(0,E.Z)(this,p),(Z=d.call(this)).componentDef=_,Z.ngModule=b,Z.componentType=_.type,Z.selector=function ZP(c){return c.map(LP).join(",")}(_.selectors),Z.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],Z.isBoundToModule=!!b,Z}return(0,F.Z)(p,[{key:"inputs",get:function(){return ln(this.componentDef.inputs)}},{key:"outputs",get:function(){return ln(this.componentDef.outputs)}},{key:"create",value:function(b,Z,Q,le){var xn,Cr,pe=(le=le||this.ngModule)?function Pf(c,d){return{get:function(_,b,Z){var Q=c.get(_,If,Z);return Q!==If||b===If?Q:d.get(_,b,Z)}}}(b,le.injector):b,Ie=pe.get(Sd,Or),et=pe.get(x6,null),Tt=Ie.createRenderer(null,this.componentDef),Ot=this.componentDef.selectors[0][0]||"div",zt=Q?XP(Tt,Q,this.componentDef.encapsulation):$b(Ie.createRenderer(null,this.componentDef),Ot,function Gr(c){var d=c.toLowerCase();return"svg"===d?"svg":"math"===d?ve:null}(Ot)),hn=this.componentDef.onPush?576:528,Bn=M3(),Xn=Lv(0,null,null,1,0,null,null,null,null,null),fr=n_(null,Xn,Bn,hn,null,null,Ie,Tt,et,pe);De(fr);try{var ki=E3(zt,this.componentDef,fr,Ie,Tt);if(zt)if(Q)xu(Tt,zt,["ng-version",L1.full]);else{var Ni=function AB(c){for(var d=[],p=[],_=1,b=2;_<c.length;){var Z=c[_];if("string"==typeof Z)2===b?""!==Z&&d.push(Z,c[++_]):8===b&&p.push(Z);else{if(!Lu(b))break;b=Z}_++}return{attrs:d,classes:p}}(this.componentDef.selectors[0]),Po=Ni.attrs,rs=Ni.classes;Po&&xu(Tt,zt,Po),rs&&rs.length>0&&VT(Tt,zt,rs.join(" "))}if(Cr=Ve(Xn,20),void 0!==Z)for(var nl=Cr.projection=[],Fl=0;Fl<this.ngContentSelectors.length;Fl++){var Ul=Z[Fl];nl.push(null!=Ul?Array.from(Ul):null)}xn=_1(ki,this.componentDef,fr,Bn,[yF]),Gp(Xn,fr,null)}finally{Sr()}return new A6(this.componentType,xn,Kv(Cr,fr),fr,Cr)}}]),p}(F4);new ne;var A6=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b,Z,Q,le){var pe;return(0,E.Z)(this,p),(pe=d.call(this)).location=Z,pe._rootLView=Q,pe._tNode=le,pe.instance=b,pe.hostView=pe.changeDetectorRef=new Hu(Q),pe.componentType=_,pe}return(0,F.Z)(p,[{key:"injector",get:function(){return new Om(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(b){this.hostView.onDestroy(b)}}]),p}(B4);function rn(c,d,p,_){return nn(function(){var b=c;if(null!==d)if(b.hasOwnProperty("decorators")&&void 0!==b.decorators){var Z;(Z=b.decorators).push.apply(Z,(0,y.Z)(d))}else b.decorators=d;null!==p&&(b.ctorParameters=p),null!==_&&(b.hasOwnProperty("propDecorators")&&void 0!==b.propDecorators?b.propDecorators=Object.assign(Object.assign({},b.propDecorators),_):b.propDecorators=_)})}var Ta=(0,F.Z)(function c(){(0,E.Z)(this,c)}),Qv=(0,F.Z)(function c(){(0,E.Z)(this,c)}),E_=new Map;function O6(c,d,p){if(d&&d!==p)throw new Error("Duplicate module registered for ".concat(c," - ").concat(ce(d)," vs ").concat(ce(d.name)))}var P6=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b){var Z;(0,E.Z)(this,p),(Z=d.call(this))._parent=b,Z._bootstrapComponents=[],Z.injector=(0,M.Z)(Z),Z.destroyCbs=[],Z.componentFactoryResolver=new ne((0,M.Z)(Z));var Q=Gi(_);return Z._bootstrapComponents=Wa(Q.bootstrap),Z._r3Injector=_3(_,b,[{provide:Ta,useValue:(0,M.Z)(Z)},{provide:R1,useValue:Z.componentFactoryResolver}],ce(_)),Z._r3Injector._resolveInjectorDefTypes(),Z.instance=Z.get(_),Z}return(0,F.Z)(p,[{key:"get",value:function(b){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bs.THROW_IF_NOT_FOUND,Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue.Default;return b===Bs||b===Ta||b===bc?this:this._r3Injector.get(b,Z,Q)}},{key:"destroy",value:function(){var b=this._r3Injector;!b.destroyed&&b.destroy(),this.destroyCbs.forEach(function(Z){return Z()}),this.destroyCbs=null}},{key:"onDestroy",value:function(b){this.destroyCbs.push(b)}}]),p}(Ta),IM=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_){var b;return(0,E.Z)(this,p),(b=d.call(this)).moduleType=_,null!==Gi(_)&&function H4(c){var d=new Set;!function p(_){var b=Gi(_,!0),Z=b.id;null!==Z&&(O6(Z,E_.get(Z),_),E_.set(Z,_));var Ie,le=Wa(b.imports),pe=(0,D.Z)(le);try{for(pe.s();!(Ie=pe.n()).done;){var et=Ie.value;d.has(et)||(d.add(et),p(et))}}catch(Tt){pe.e(Tt)}finally{pe.f()}}(c)}(_),b}return(0,F.Z)(p,[{key:"create",value:function(b){return new P6(this.moduleType,b)}}]),p}(Qv);function R6(c,d,p){var _=$e()+c,b=Nn();return b[_]===fi?wc(b,_,p?d.call(p):d()):l_(b,_)}function PM(c,d,p,_){return Rf(Nn(),$e(),c,d,p,_)}function j4(c,d,p,_,b){return lh(Nn(),$e(),c,d,p,_,b)}function z4(c,d,p,_,b,Z){return Z1(Nn(),$e(),c,d,p,_,b,Z)}function RM(c,d,p,_,b,Z,Q){return uh(Nn(),$e(),c,d,p,_,b,Z,Q)}function W4(c,d,p,_,b,Z,Q,le){var pe=$e()+c,Ie=Nn(),et=Zl(Ie,pe,p,_,b,Z);return Fs(Ie,pe+4,Q)||et?wc(Ie,pe+5,le?d.call(le,p,_,b,Z,Q):d(p,_,b,Z,Q)):l_(Ie,pe+5)}function Dd(c,d,p,_,b,Z,Q,le,pe){var Ie=$e()+c,et=Nn(),Tt=Zl(et,Ie,p,_,b,Z);return qp(et,Ie+4,Q,le)||Tt?wc(et,Ie+6,pe?d.call(pe,p,_,b,Z,Q,le):d(p,_,b,Z,Q,le)):l_(et,Ie+6)}function M_(c,d,p,_,b,Z,Q,le,pe,Ie){var et=$e()+c,Tt=Nn(),Ot=Zl(Tt,et,p,_,b,Z);return b1(Tt,et+4,Q,le,pe)||Ot?wc(Tt,et+7,Ie?d.call(Ie,p,_,b,Z,Q,le,pe):d(p,_,b,Z,Q,le,pe)):l_(Tt,et+7)}function ah(c,d,p,_,b,Z,Q,le,pe,Ie,et){var Tt=$e()+c,Ot=Nn(),zt=Zl(Ot,Tt,p,_,b,Z);return Zl(Ot,Tt+4,Q,le,pe,Ie)||zt?wc(Ot,Tt+8,et?d.call(et,p,_,b,Z,Q,le,pe,Ie):d(p,_,b,Z,Q,le,pe,Ie)):l_(Ot,Tt+8)}function sh(c,d,p,_){return Ea(Nn(),$e(),c,d,p,_)}function xc(c,d){var p=c[d];return p===fi?void 0:p}function Rf(c,d,p,_,b,Z){var Q=d+p;return Fs(c,Q,b)?wc(c,Q+1,Z?_.call(Z,b):_(b)):xc(c,Q+1)}function lh(c,d,p,_,b,Z,Q){var le=d+p;return qp(c,le,b,Z)?wc(c,le+2,Q?_.call(Q,b,Z):_(b,Z)):xc(c,le+2)}function Z1(c,d,p,_,b,Z,Q,le){var pe=d+p;return b1(c,pe,b,Z,Q)?wc(c,pe+3,le?_.call(le,b,Z,Q):_(b,Z,Q)):xc(c,pe+3)}function uh(c,d,p,_,b,Z,Q,le,pe){var Ie=d+p;return Zl(c,Ie,b,Z,Q,le)?wc(c,Ie+4,pe?_.call(pe,b,Z,Q,le):_(b,Z,Q,le)):xc(c,Ie+4)}function Ea(c,d,p,_,b,Z){for(var Q=d+p,le=!1,pe=0;pe<b.length;pe++)Fs(c,Q++,b[pe])&&(le=!0);return le?wc(c,Q,_.apply(Z,b)):xc(c,Q)}function ch(c,d){var _,p=wi(),b=c+20;p.firstCreatePass?(_=function LM(c,d){if(d)for(var p=d.length-1;p>=0;p--){var _=d[p];if(c===_.name)return _}}(d,p.pipeRegistry),p.data[b]=_,_.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(b,_.onDestroy)):_=p.data[b];var Z=_.factory||(_.factory=Qi(_.type)),Q=Dt(Bv);try{var le=cc(!1),pe=Z();return cc(le),function L3(c,d,p,_){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),d[p]=_}(p,Nn(),b,pe),pe}finally{Dt(Q)}}function L6(c,d,p){var _=c+20,b=Nn(),Z=Le(b,_);return S_(b,_)?Rf(b,$e(),d,Z.transform,p,Z):Z.transform(p)}function ZM(c,d,p,_){var b=c+20,Z=Nn(),Q=Le(Z,b);return S_(Z,b)?lh(Z,$e(),d,Q.transform,p,_,Q):Q.transform(p,_)}function V4(c,d,p,_,b){var Z=c+20,Q=Nn(),le=Le(Q,Z);return S_(Q,Z)?Z1(Q,$e(),d,le.transform,p,_,b,le):le.transform(p,_,b)}function NM(c,d,p,_,b,Z){var Q=c+20,le=Nn(),pe=Le(le,Q);return S_(le,Q)?uh(le,$e(),d,pe.transform,p,_,b,Z,pe):pe.transform(p,_,b,Z)}function BM(c,d,p){var _=c+20,b=Nn(),Z=Le(b,_);return S_(b,_)?Ea(b,$e(),d,Z.transform,p,Z):Z.transform.apply(Z,p)}function S_(c,d){return c[1].data[d].pure}var Z6=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){var _,b=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,E.Z)(this,p),(_=d.call(this)).__isAsync=b,_}return(0,F.Z)(p,[{key:"emit",value:function(b){(0,z.Z)((0,Y.Z)(p.prototype),"next",this).call(this,b)}},{key:"subscribe",value:function(b,Z,Q){var le,pe,Ie,et=b,Tt=Z||function(){return null},Ot=Q;if(b&&"object"==typeof b){var zt=b;et=null===(le=zt.next)||void 0===le?void 0:le.bind(zt),Tt=null===(pe=zt.error)||void 0===pe?void 0:pe.bind(zt),Ot=null===(Ie=zt.complete)||void 0===Ie?void 0:Ie.bind(zt)}this.__isAsync&&(Tt=Xv(Tt),et&&(et=Xv(et)),Ot&&(Ot=Xv(Ot)));var hn=(0,z.Z)((0,Y.Z)(p.prototype),"subscribe",this).call(this,{next:et,error:Tt,complete:Ot});return b instanceof T.w&&b.add(hn),hn}}]),p}(w.xQ);function Xv(c){return function(d){setTimeout(c,void 0,d)}}var Dc=Z6;function Y4(){return this._results[Ef()]()}var N6=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,E.Z)(this,c),this._emitDistinctChangesOnly=d,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var p=Ef(),_=c.prototype;_[p]||(_[p]=Y4)}return(0,F.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new Dc)}},{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 b=this;b.dirty=!1;var Z=ml(p);(this._changesDetected=!function ZI(c,d,p){if(c.length!==d.length)return!1;for(var _=0;_<c.length;_++){var b=c[_],Z=d[_];if(p&&(b=p(b),Z=p(Z)),Z!==b)return!1}return!0}(b._results,Z,_))&&(b._results=Z,b.length=Z.length,b.last=Z[this.length-1],b.first=Z[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}();Symbol.iterator;var Lf=(0,F.Z)(function c(){(0,E.Z)(this,c)});Lf.__NG_ELEMENT_ID__=function B6(){return N1(Di(),Nn())};var q4=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b,Z){var Q;return(0,E.Z)(this,p),(Q=d.call(this))._declarationLView=_,Q._declarationTContainer=b,Q.elementRef=Z,Q}return(0,F.Z)(p,[{key:"createEmbeddedView",value:function(b){var Z=this._declarationTContainer.tViews,Q=n_(this._declarationLView,Z,b,16,null,Z.declTNode,null,null,null,null),le=this._declarationLView[this._declarationTContainer.index];Q[17]=le;var pe=this._declarationLView[19];return null!==pe&&(Q[19]=pe.createEmbeddedView(Z)),Gp(Z,Q,b),new Uu(Q)}}]),p}(Lf);function N1(c,d){return 4&c.type?new q4(d,c,Kv(c,d)):null}var dh=(0,F.Z)(function c(){(0,E.Z)(this,c)});dh.__NG_ELEMENT_ID__=function K4(){return x_(Di(),Nn())};var F6=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(_,b,Z){var Q;return(0,E.Z)(this,p),(Q=d.call(this))._lContainer=_,Q._hostTNode=b,Q._hostLView=Z,Q}return(0,F.Z)(p,[{key:"element",get:function(){return Kv(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Om(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var b=oT(this._hostTNode,this._hostLView);if(Ca(b)){var Z=cs(b,this._hostLView),Q=Au(b),le=Z[1].data[Q+8];return new Om(le,Z)}return new Om(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(b){var Z=B1(this._lContainer);return null!==Z&&Z[b]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(b,Z,Q){var le=b.createEmbeddedView(Z||{});return this.insert(le,Q),le}},{key:"createComponent",value:function(b,Z,Q,le,pe){var et,Ie=b&&!cv(b);if(Ie)et=Z;else{var Tt=Z||{};et=Tt.index,Q=Tt.injector,le=Tt.projectableNodes,pe=Tt.ngModuleRef}var Ot=Ie?b:new Ei(Mr(b)),zt=Q||this.parentInjector;if(!pe&&null==Ot.ngModule){var Bn=(Ie?zt:this.parentInjector).get(Ta,null);Bn&&(pe=Bn)}var Xn=Ot.create(zt,le,void 0,pe);return this.insert(Xn.hostView,et),Xn}},{key:"insert",value:function(b,Z){var Q=b._lView,le=Q[1];if(function Pt(c){return vn(c[3])}(Q)){var pe=this.indexOf(b);if(-1!==pe)this.detach(pe);else{var Ie=Q[3],et=new F6(Ie,Ie[6],Ie[3]);et.detach(et.indexOf(b))}}var Tt=this._adjustIndex(Z),Ot=this._lContainer;Xs(le,Q,Ot,Tt);var zt=bf(Tt,Ot),hn=Q[11],Bn=Jm(hn,Ot[7]);return null!==Bn&&function co(c,d,p,_,b,Z){_[0]=b,_[6]=d,Dv(c,_,p,1,b,Z)}(le,Ot[6],hn,Q,Bn,zt),b.attachToViewContainerRef(),NI($v(Ot),Tt,b),b}},{key:"move",value:function(b,Z){return this.insert(b,Z)}},{key:"indexOf",value:function(b){var Z=B1(this._lContainer);return null!==Z?Z.indexOf(b):-1}},{key:"remove",value:function(b){var Z=this._adjustIndex(b,-1),Q=t1(this._lContainer,Z);Q&&(dv($v(this._lContainer),Z),n1(Q[1],Q))}},{key:"detach",value:function(b){var Z=this._adjustIndex(b,-1),Q=t1(this._lContainer,Z);return Q&&null!=dv($v(this._lContainer),Z)?new Uu(Q):null}},{key:"_adjustIndex",value:function(b){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==b?this.length+Z:b}}]),p}(dh);function B1(c){return c[8]}function $v(c){return c[8]||(c[8]=[])}function x_(c,d){var p,_=d[c.index];if(vn(_))p=_;else{var b;if(8&c.type)b=ar(_);else{var Z=d[11];b=Z.createComment("");var Q=xi(c,d);Yp(Z,Jm(Z,Q),b,function HT(c,d){return Pn(c)?c.nextSibling(d):d.nextSibling}(Z,Q),!1)}d[c.index]=p=c3(_,d,b,c),f1(d,p)}return new F6(p,c,d)}var J4=function(){function c(d){(0,E.Z)(this,c),this.queryList=d,this.matches=null}return(0,F.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),U6=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,E.Z)(this,c),this.queries=d}return(0,F.Z)(c,[{key:"createEmbeddedView",value:function(p){var _=p.queries;if(null!==_){for(var b=null!==p.contentQueries?p.contentQueries[0]:_.length,Z=[],Q=0;Q<b;Q++){var le=_.getByIndex(Q),pe=this.queries[le.indexInDeclarationView];Z.push(pe.clone())}return new c(Z)}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!==Y6(p,_).matches&&this.queries[_].setDirty()}}]),c}(),H6=(0,F.Z)(function c(d,p){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,E.Z)(this,c),this.predicate=d,this.flags=p,this.read=_}),FM=function(){function c(){var d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,E.Z)(this,c),this.queries=d}return(0,F.Z)(c,[{key:"elementStart",value:function(p,_){for(var b=0;b<this.queries.length;b++)this.queries[b].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,b=0;b<this.length;b++){var Z=null!==_?_.length:0,Q=this.getByIndex(b).embeddedTView(p,Z);Q&&(Q.indexInDeclarationView=b,null!==_?_.push(Q):_=[Q])}return null!==_?new c(_):null}},{key:"template",value:function(p,_){for(var b=0;b<this.queries.length;b++)this.queries[b].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}(),F1=function(){function c(d){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,E.Z)(this,c),this.metadata=d,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}return(0,F.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,b=p.parent;null!==b&&8&b.type&&b.index!==_;)b=b.parent;return _===(null!==b?b.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,_){var b=this.metadata.predicate;if(Array.isArray(b))for(var Z=0;Z<b.length;Z++){var Q=b[Z];this.matchTNodeWithReadOption(p,_,ph(_,Q)),this.matchTNodeWithReadOption(p,_,av(_,p,Q,!1,!1))}else b===Lf?4&_.type&&this.matchTNodeWithReadOption(p,_,-1):this.matchTNodeWithReadOption(p,_,av(_,p,b,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,_,b){if(null!==b){var Z=this.metadata.read;if(null!==Z)if(Z===Af||Z===dh||Z===Lf&&4&_.type)this.addMatch(_.index,-2);else{var Q=av(_,p,Z,!1,!1);null!==Q&&this.addMatch(_.index,Q)}else this.addMatch(_.index,b)}}},{key:"addMatch",value:function(p,_){null===this.matches?this.matches=[p,_]:this.matches.push(p,_)}}]),c}();function ph(c,d){var p=c.localNames;if(null!==p)for(var _=0;_<p.length;_+=2)if(p[_]===d)return p[_+1];return null}function ty(c,d,p,_){return-1===p?function A_(c,d){return 11&c.type?Kv(c,d):4&c.type?N1(c,d):null}(d,c):-2===p?function j6(c,d,p){if(p===Af)return Kv(d,c);if(p===Lf)return N1(d,c);if(p===dh)return x_(d,c)}(c,d,_):hf(c,c[1],p,d)}function ny(c,d,p,_){var b=d[19].queries[_];if(null===b.matches){for(var Z=c.data,Q=p.matches,le=[],pe=0;pe<Q.length;pe+=2){var Ie=Q[pe];if(Ie<0)le.push(null);else{var et=Z[Ie];le.push(ty(d,et,Q[pe+1],p.metadata.read))}}b.matches=le}return b.matches}function Zf(c,d,p,_){var b=c.queries.getByIndex(p),Z=b.matches;if(null!==Z)for(var Q=ny(c,d,b,p),le=0;le<Z.length;le+=2){var pe=Z[le];if(pe>0)_.push(Q[le/2]);else{for(var Ie=Z[le+1],et=d[-pe],Tt=10;Tt<et.length;Tt++){var Ot=et[Tt];Ot[17]===Ot[3]&&Zf(Ot[1],Ot,Ie,_)}if(null!==et[9])for(var zt=et[9],hn=0;hn<zt.length;hn++){var Bn=zt[hn];Zf(Bn[1],Bn,Ie,_)}}}return _}function UM(c){var d=Nn(),p=wi(),_=Ne();we(_+1);var b=Y6(p,_);if(c.dirty&&Je(d)===(2==(2&b.metadata.flags))){if(null===b.matches)c.reset([]);else{var Z=b.crossesNgTemplate?Zf(p,d,_,[]):ny(p,d,b,_);c.reset(Z,Jv),c.notifyOnChanges()}return!0}return!1}function Nf(c,d,p){var _=wi();_.firstCreatePass&&(V6(_,new H6(c,d,p),-1),2==(2&d)&&(_.staticViewQueries=!0)),HM(_,Nn(),d)}function U1(c,d,p,_){var b=wi();if(b.firstCreatePass){var Z=Di();V6(b,new H6(d,p,_),Z.index),function O_(c,d){var p=c.contentQueries||(c.contentQueries=[]),_=p.length?p[p.length-1]:-1;d!==_&&p.push(c.queries.length-1,d)}(b,c),2==(2&p)&&(b.staticContentQueries=!0)}HM(b,Nn(),p)}function z6(){return function W6(c,d){return c[19].queries[d].queryList}(Nn(),Ne())}function HM(c,d,p){var _=new N6(4==(4&p));$P(c,d,_,_.destroy),null===d[19]&&(d[19]=new U6),d[19].queries.push(new J4(_))}function V6(c,d,p){null===c.queries&&(c.queries=new FM),c.queries.track(new F1(d,p))}function Y6(c,d){return c.queries.getByIndex(d)}function jM(c,d){return N1(c,d)}var tl={"\u0275\u0275attribute":u_,"\u0275\u0275attributeInterpolate1":C1,"\u0275\u0275attributeInterpolate2":AE,"\u0275\u0275attributeInterpolate3":OE,"\u0275\u0275attributeInterpolate4":A3,"\u0275\u0275attributeInterpolate5":O3,"\u0275\u0275attributeInterpolate6":IE,"\u0275\u0275attributeInterpolate7":PE,"\u0275\u0275attributeInterpolate8":I3,"\u0275\u0275attributeInterpolateV":P3,"\u0275\u0275defineComponent":Se,"\u0275\u0275defineDirective":Rr,"\u0275\u0275defineInjectable":yt,"\u0275\u0275defineInjector":cn,"\u0275\u0275defineNgModule":gn,"\u0275\u0275definePipe":Xr,"\u0275\u0275directiveInject":Bv,"\u0275\u0275getInheritedFactory":JN,"\u0275\u0275inject":ns,"\u0275\u0275injectAttribute":sT,"\u0275\u0275invalidFactory":V3,"\u0275\u0275invalidFactoryDep":FI,"\u0275\u0275templateRefExtractor":jM,"\u0275\u0275NgOnChangesFeature":Ps,"\u0275\u0275ProvidersFeature":DM,"\u0275\u0275CopyDefinitionFeature":EF,"\u0275\u0275InheritDefinitionFeature":DE,"\u0275\u0275nextContext":VF,"\u0275\u0275namespaceHTML":Em,"\u0275\u0275namespaceMathML":au,"\u0275\u0275namespaceSVG":df,"\u0275\u0275enableBindings":dr,"\u0275\u0275disableBindings":ac,"\u0275\u0275elementStart":w1,"\u0275\u0275elementEnd":k1,"\u0275\u0275element":XE,"\u0275\u0275elementContainerStart":$E,"\u0275\u0275elementContainerEnd":T1,"\u0275\u0275elementContainer":G3,"\u0275\u0275pureFunction0":R6,"\u0275\u0275pureFunction1":PM,"\u0275\u0275pureFunction2":j4,"\u0275\u0275pureFunction3":z4,"\u0275\u0275pureFunction4":RM,"\u0275\u0275pureFunction5":W4,"\u0275\u0275pureFunction6":Dd,"\u0275\u0275pureFunction7":M_,"\u0275\u0275pureFunction8":ah,"\u0275\u0275pureFunctionV":sh,"\u0275\u0275getCurrentView":zF,"\u0275\u0275restoreView":pi,"\u0275\u0275listener":K3,"\u0275\u0275projection":X3,"\u0275\u0275syntheticHostProperty":qn,"\u0275\u0275syntheticHostListener":J3,"\u0275\u0275pipeBind1":L6,"\u0275\u0275pipeBind2":ZM,"\u0275\u0275pipeBind3":V4,"\u0275\u0275pipeBind4":NM,"\u0275\u0275pipeBindV":BM,"\u0275\u0275projectionDef":YF,"\u0275\u0275hostProperty":Ai,"\u0275\u0275property":JE,"\u0275\u0275propertyInterpolate":rM,"\u0275\u0275propertyInterpolate1":iM,"\u0275\u0275propertyInterpolate2":$3,"\u0275\u0275propertyInterpolate3":GF,"\u0275\u0275propertyInterpolate4":qF,"\u0275\u0275propertyInterpolate5":KF,"\u0275\u0275propertyInterpolate6":JF,"\u0275\u0275propertyInterpolate7":QF,"\u0275\u0275propertyInterpolate8":XF,"\u0275\u0275propertyInterpolateV":$F,"\u0275\u0275pipe":ch,"\u0275\u0275queryRefresh":UM,"\u0275\u0275viewQuery":Nf,"\u0275\u0275loadQuery":z6,"\u0275\u0275contentQuery":U1,"\u0275\u0275reference":Z3,"\u0275\u0275classMap":a4,"\u0275\u0275classMapInterpolate1":dM,"\u0275\u0275classMapInterpolate2":l6,"\u0275\u0275classMapInterpolate3":p4,"\u0275\u0275classMapInterpolate4":BW,"\u0275\u0275classMapInterpolate5":h4,"\u0275\u0275classMapInterpolate6":m4,"\u0275\u0275classMapInterpolate7":_4,"\u0275\u0275classMapInterpolate8":u6,"\u0275\u0275classMapInterpolateV":g4,"\u0275\u0275styleMap":kc,"\u0275\u0275styleMapInterpolate1":v4,"\u0275\u0275styleMapInterpolate2":FW,"\u0275\u0275styleMapInterpolate3":y4,"\u0275\u0275styleMapInterpolate4":UW,"\u0275\u0275styleMapInterpolate5":b4,"\u0275\u0275styleMapInterpolate6":C4,"\u0275\u0275styleMapInterpolate7":HW,"\u0275\u0275styleMapInterpolate8":w4,"\u0275\u0275styleMapInterpolateV":k4,"\u0275\u0275styleProp":t6,"\u0275\u0275stylePropInterpolate1":T4,"\u0275\u0275stylePropInterpolate2":c6,"\u0275\u0275stylePropInterpolate3":d6,"\u0275\u0275stylePropInterpolate4":E4,"\u0275\u0275stylePropInterpolate5":f6,"\u0275\u0275stylePropInterpolate6":n,"\u0275\u0275stylePropInterpolate7":Ct,"\u0275\u0275stylePropInterpolate8":Zi,"\u0275\u0275stylePropInterpolateV":Un,"\u0275\u0275classProp":oM,"\u0275\u0275advance":NP,"\u0275\u0275template":RE,"\u0275\u0275text":d4,"\u0275\u0275textInterpolate":i6,"\u0275\u0275textInterpolate1":lM,"\u0275\u0275textInterpolate2":uM,"\u0275\u0275textInterpolate3":o6,"\u0275\u0275textInterpolate4":Qp,"\u0275\u0275textInterpolate5":M1,"\u0275\u0275textInterpolate6":a6,"\u0275\u0275textInterpolate7":cM,"\u0275\u0275textInterpolate8":s6,"\u0275\u0275textInterpolateV":f4,"\u0275\u0275i18n":YW,"\u0275\u0275i18nAttributes":nh,"\u0275\u0275i18nExp":S6,"\u0275\u0275i18nStart":P1,"\u0275\u0275i18nEnd":xf,"\u0275\u0275i18nApply":Z4,"\u0275\u0275i18nPostprocess":Td,"\u0275\u0275resolveWindow":Kb,"\u0275\u0275resolveDocument":Jb,"\u0275\u0275resolveBody":Gm,"\u0275\u0275setComponentScope":Ae,"\u0275\u0275setNgModuleScope":Rn,"\u0275\u0275sanitizeHtml":sP,"\u0275\u0275sanitizeStyle":lP,"\u0275\u0275sanitizeResourceUrl":zp,"\u0275\u0275sanitizeScript":uP,"\u0275\u0275sanitizeUrl":TT,"\u0275\u0275sanitizeUrlOrResourceUrl":vB,"\u0275\u0275trustConstantHtml":_B,"\u0275\u0275trustConstantResourceUrl":Ub,forwardRef:oe,resolveForwardRef:ge},I_=null;var hh=[];function q6(c,d){hh.push({moduleType:c,ngModule:d})}var zM=!1;function ry(c){return Array.isArray(c)?c.every(ry):!!ge(c)}function Nl(c,d){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=ml(d.declarations||Ee),b=null;Object.defineProperty(c,En,{configurable:!0,get:function(){if(null===b){var pe=ds();(b=pe.compileNgModule(tl,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:ml(d.bootstrap||Ee).map(ge),declarations:_.map(ge),imports:ml(d.imports||Ee).map(ge).map(K6),exports:ml(d.exports||Ee).map(ge).map(K6),schemas:d.schemas?ml(d.schemas):null,id:d.id||null})).schemas||(b.schemas=[])}return b}});var Z=null;Object.defineProperty(c,rr,{get:function(){if(null===Z){var pe=ds();Z=pe.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:Rb(c),target:pe.FactoryTarget.NgModule,typeArgumentCount:0})}return Z},configurable:!1});var Q=null;Object.defineProperty(c,dt,{get:function(){if(null===Q){var pe={name:c.name,type:c,providers:d.providers||Ee,imports:[(d.imports||Ee).map(ge),(d.exports||Ee).map(ge)]},Ie=ds();Q=Ie.compileInjector(tl,"ng:///".concat(c.name,"/\u0275inj.js"),pe)}return Q},configurable:!1})}function e8(c,d){var p=ml(d.declarations||Ee),_=W1(c);p.forEach(function(b){b.hasOwnProperty(He)?L_(Mr(b),_):!b.hasOwnProperty(bt)&&!b.hasOwnProperty(Yt)&&(b.ngSelectorScope=c)})}function L_(c,d){c.directiveDefs=function(){return Array.from(d.compilation.directives).map(function(p){return p.hasOwnProperty(He)?Mr(p):Hi(p)}).filter(function(p){return!!p})},c.pipeDefs=function(){return Array.from(d.compilation.pipes).map(function(p){return bo(p)})},c.schemas=d.schemas,c.tView=null}function W1(c){if(!WM(c))throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"));var d=Gi(c);if(null!==d.transitiveCompileScopes)return d.transitiveCompileScopes;var p={schemas:d.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Wa(d.imports).forEach(function(_){var b=_;if(!WM(b))throw new Error("Importing ".concat(b.name," which does not have a \u0275mod property"));var Z=W1(b);Z.exported.directives.forEach(function(Q){return p.compilation.directives.add(Q)}),Z.exported.pipes.forEach(function(Q){return p.compilation.pipes.add(Q)})}),Wa(d.declarations).forEach(function(_){bo(_)?p.compilation.pipes.add(_):p.compilation.directives.add(_)}),Wa(d.exports).forEach(function(_){var b=_;if(WM(b)){var Z=W1(b);Z.exported.directives.forEach(function(Q){p.compilation.directives.add(Q),p.exported.directives.add(Q)}),Z.exported.pipes.forEach(function(Q){p.compilation.pipes.add(Q),p.exported.pipes.add(Q)})}else bo(b)?p.exported.pipes.add(b):p.exported.directives.add(b)}),d.transitiveCompileScopes=p,p}function K6(c){return function J6(c){return void 0!==c.ngModule}(c)?c.ngModule:c}function WM(c){return!!Gi(c)}var VM=0;function YM(c,d){var p=null;(function WI(c,d){Bm(d)&&(Np.set(c,d),Bp.add(c))})(c,d),eR(c,d),Object.defineProperty(c,He,{get:function(){if(null===p){var b=ds();if(Bm(d)){var Z=["Component '".concat(c.name,"' is not resolved:")];throw d.templateUrl&&Z.push(" - templateUrl: ".concat(d.templateUrl)),d.styleUrls&&d.styleUrls.length&&Z.push(" - styleUrls: ".concat(JSON.stringify(d.styleUrls))),Z.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(Z.join("\n"))}var Q=function G6(){return I_}(),le=d.preserveWhitespaces;void 0===le&&(le=null!==Q&&void 0!==Q.preserveWhitespaces&&Q.preserveWhitespaces);var pe=d.encapsulation;void 0===pe&&(pe=null!==Q&&void 0!==Q.defaultEncapsulation?Q.defaultEncapsulation:zn.Emulated);var Ie=d.templateUrl||"ng:///".concat(c.name,"/template.html"),et=Object.assign(Object.assign({},GM(c,d)),{typeSourceSpan:b.createParseSourceSpan("Component",c.name,Ie),template:d.template||"",preserveWhitespaces:le,styles:d.styles||Ee,animations:d.animations,directives:[],changeDetection:d.changeDetection,pipes:new Map,encapsulation:pe,interpolation:d.interpolation,viewProviders:d.viewProviders||null});VM++;try{et.usesInheritance&&tR(c),p=b.compileComponent(tl,Ie,et)}finally{VM--}if(0===VM&&function X4(){if(!zM){zM=!0;try{for(var c=hh.length-1;c>=0;c--){var d=hh[c],p=d.moduleType,_=d.ngModule;_.declarations&&_.declarations.every(ry)&&(hh.splice(c,1),e8(p,_))}}finally{zM=!1}}}(),function Q6(c){return void 0!==c.ngSelectorScope}(c)){var Tt=W1(c.ngSelectorScope);L_(p,Tt)}}return p},configurable:!1})}function X6(c,d){var p=null;eR(c,d||{}),Object.defineProperty(c,bt,{get:function(){if(null===p){var b=$6(c,d||{}),Z=ds();p=Z.compileDirective(tl,b.sourceMapUrl,b.metadata)}return p},configurable:!1})}function $6(c,d){var p=c&&c.name,_="ng:///".concat(p,"/\u0275dir.js"),b=ds(),Z=GM(c,d);return Z.typeSourceSpan=b.createParseSourceSpan("Directive",p,_),Z.usesInheritance&&tR(c),{metadata:Z,sourceMapUrl:_}}function eR(c,d){var p=null;Object.defineProperty(c,rr,{get:function(){if(null===p){var b=$6(c,d),Z=ds();p=Z.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:b.metadata.name,type:b.metadata.type,typeArgumentCount:0,deps:Rb(c),target:Z.FactoryTarget.Directive})}return p},configurable:!1})}function t8(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function GM(c,d){var p=Zs(),_=p.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==d.selector?d.selector:null,host:d.host||Ue,propMetadata:_,inputs:d.inputs||Ee,outputs:d.outputs||Ee,queries:nR(c,_,oy),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!t8(c),exportAs:V1(d.exportAs),providers:d.providers||null,viewQueries:nR(c,_,Y1)}}function tR(c){for(var d=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==d;)!Hi(p)&&!Mr(p)&&i8(p)&&X6(p,null),p=Object.getPrototypeOf(p)}function n8(c){return"string"==typeof c?KM(c):ge(c)}function nR(c,d,p){var _=[],b=function(le){if(d.hasOwnProperty(le)){var pe=d[le];pe.forEach(function(Ie){if(p(Ie)){if(!Ie.selector)throw new Error("Can't construct a query for the property \"".concat(le,'" of ')+'"'.concat(Be(c),"\" since the query selector wasn't defined."));if(pe.some(Z_))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function qM(c,d){return{propertyName:c,predicate:n8(d.selector),descendants:d.descendants,first:d.first,read:d.read?d.read:null,static:!!d.static,emitDistinctChangesOnly:!!d.emitDistinctChangesOnly}}(le,Ie))}})}};for(var Z in d)b(Z);return _}function V1(c){return void 0===c?null:KM(c)}function oy(c){var d=c.ngMetadataName;return"ContentChild"===d||"ContentChildren"===d}function Y1(c){var d=c.ngMetadataName;return"ViewChild"===d||"ViewChildren"===d}function Z_(c){return"Input"===c.ngMetadataName}function KM(c){return c.split(",").map(function(d){return d.trim()})}var r8=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function i8(c){var d=Zs();if(r8.some(function(pe){return d.hasLifecycleHook(c,pe)}))return!0;var p=d.propMetadata(c);for(var _ in p)for(var b=p[_],Z=0;Z<b.length;Z++){var Q=b[Z],le=Q.ngMetadataName;if(Z_(Q)||oy(Q)||Y1(Q)||"Output"===le||"HostBinding"===le||"HostListener"===le)return!0}return!1}function rR(c,d){return{type:c,name:c.name,pipeName:d.name,pure:void 0===d.pure||d.pure}}var iR=Sb("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,d){return X6(c,d)}),G1=Sb("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:dn.Default},c)},iR,void 0,function(c,d){return YM(c,d)}),a8=Sb("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,d){return function o8(c,d){var p=null,_=null;Object.defineProperty(c,rr,{get:function(){if(null===_){var Z=rR(c,d),Q=ds(Z.type);_=Q.compileFactory(tl,"ng:///".concat(Z.name,"/\u0275fac.js"),{name:Z.name,type:Z.type,typeArgumentCount:0,deps:Rb(c),target:Q.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Yt,{get:function(){if(null===p){var Z=rR(c,d),Q=ds(Z.type);p=Q.compilePipe(tl,"ng:///".concat(Z.name,"/\u0275pipe.js"),Z)}return p},configurable:!1})}(c,d)}),s8=Rp("Input",function(c){return{bindingPropertyName:c}}),l8=Rp("Output",function(c){return{bindingPropertyName:c}}),u8=Rp("HostBinding",function(c){return{hostPropertyName:c}}),c8=Rp("HostListener",function(c,d){return{eventName:c,args:d}}),oR=Sb("NgModule",function(c){return c},void 0,void 0,function(c,d){return function $4(c){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nl(c,d),q6(c,d)}(c,d)});function _h(){}var aR=new wa("Application Initializer"),Ad=function(){function c(d){var p=this;(0,E.Z)(this,c),this.appInits=d,this.resolve=_h,this.reject=_h,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,b){p.resolve=_,p.reject=b})}return(0,F.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var _=[],b=function(){p.done=!0,p.resolve()};if(this.appInits)for(var Z=function(pe){var Ie=p.appInits[pe]();if(eM(Ie))_.push(Ie);else if(WF(Ie)){var et=new Promise(function(Tt,Ot){Ie.subscribe({complete:Tt,error:Ot})});_.push(et)}},Q=0;Q<this.appInits.length;Q++)Z(Q);Promise.all(_).then(function(){b()}).catch(function(le){p.reject(le)}),0===_.length&&b(),this.initialized=!0}}}]),c}();Ad.\u0275fac=function(d){return new(d||Ad)(ns(aR,8))},Ad.\u0275prov=yt({token:Ad,factory:Ad.\u0275fac,providedIn:"root"});var Ff=new wa("AppId",{providedIn:"root",factory:sR});function sR(){return"".concat(JM()).concat(JM()).concat(JM())}function JM(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var uR=new wa("Platform Initializer"),cR=new wa("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),dR=new wa("appBootstrapListener"),N_=(new wa("Application Packages Root URL"),function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"log",value:function(p){console.log(p)}},{key:"warn",value:function(p){console.warn(p)}}]),c}());N_.\u0275fac=function(d){return new(d||N_)},N_.\u0275prov=yt({token:N_,factory:N_.\u0275fac,providedIn:"platform"});var pR,QM=new wa("LocaleId",{providedIn:"root",factory:function(){return fs(QM,ue.Optional|ue.SkipSelf)||function fR(){return"undefined"!=typeof $localize&&$localize.locale||wd}()}}),q1=new wa("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new wa("Translations"),new wa("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(pR||(pR={}));var p8=(0,F.Z)(function c(d,p){(0,E.Z)(this,c),this.ngModuleFactory=d,this.componentFactories=p}),B_=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"compileModuleSync",value:function(p){return new IM(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var _=this.compileModuleSync(p),Z=Wa(Gi(p).declarations).reduce(function(Q,le){var pe=Mr(le);return pe&&Q.push(new Ei(pe)),Q},[]);return new p8(_,Z)}},{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}();B_.\u0275fac=function(d){return new(d||B_)},B_.\u0275prov=yt({token:B_,factory:B_.\u0275fac,providedIn:"root"});new wa("compilerOptions");var m8=Promise.resolve(0);function XM(c){"undefined"==typeof Zone?m8.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var Uf=function(){function c(d){var p=d.enableLongStackTrace,_=void 0!==p&&p,b=d.shouldCoalesceEventChangeDetection,Z=void 0!==b&&b,Q=d.shouldCoalesceRunChangeDetection,le=void 0!==Q&&Q;if((0,E.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Dc(!1),this.onMicrotaskEmpty=new Dc(!1),this.onStable=new Dc(!1),this.onError=new Dc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var pe=this;pe._nesting=0,pe._outer=pe._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(pe._inner=pe._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(pe._inner=pe._inner.fork(Zone.longStackTraceZoneSpec)),pe.shouldCoalesceEventChangeDetection=!le&&Z,pe.shouldCoalesceRunChangeDetection=le,pe.lastRequestAnimationFrameId=-1,pe.nativeRequestAnimationFrame=function _8(){var c=Yn.requestAnimationFrame,d=Yn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&d){var p=c[Zone.__symbol__("OriginalDelegate")];p&&(c=p);var _=d[Zone.__symbol__("OriginalDelegate")];_&&(d=_)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function y8(c){var d=function(){!function v8(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(Yn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,eS(c),c.isCheckStableRunning=!0,$M(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),eS(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(_,b,Z,Q,le,pe){try{return hR(c),_.invokeTask(Z,Q,le,pe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===Q.type||c.shouldCoalesceRunChangeDetection)&&d(),K1(c)}},onInvoke:function(_,b,Z,Q,le,pe,Ie){try{return hR(c),_.invoke(Z,Q,le,pe,Ie)}finally{c.shouldCoalesceRunChangeDetection&&d(),K1(c)}},onHasTask:function(_,b,Z,Q){_.hasTask(Z,Q),b===Z&&("microTask"==Q.change?(c._hasPendingMicrotasks=Q.microTask,eS(c),$M(c)):"macroTask"==Q.change&&(c.hasPendingMacrotasks=Q.macroTask))},onHandleError:function(_,b,Z,Q){return _.handleError(Z,Q),c.runOutsideAngular(function(){return c.onError.emit(Q)}),!1}})}(pe)}return(0,F.Z)(c,[{key:"run",value:function(p,_,b){return this._inner.run(p,_,b)}},{key:"runTask",value:function(p,_,b,Z){var Q=this._inner,le=Q.scheduleEventTask("NgZoneEvent: "+Z,p,g8,_h,_h);try{return Q.runTask(le,_,b)}finally{Q.cancelTask(le)}}},{key:"runGuarded",value:function(p,_,b){return this._inner.runGuarded(p,_,b)}},{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 Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),c}(),g8={};function $M(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 eS(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function hR(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function K1(c){c._nesting--,$M(c)}var mR=function(){function c(){(0,E.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Dc,this.onMicrotaskEmpty=new Dc,this.onStable=new Dc,this.onError=new Dc}return(0,F.Z)(c,[{key:"run",value:function(p,_,b){return p.apply(_,b)}},{key:"runGuarded",value:function(p,_,b){return p.apply(_,b)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,_,b,Z){return p.apply(_,b)}}]),c}(),Ac=function(){function c(d){var p=this;(0,E.Z)(this,c),this._ngZone=d,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),d.run(function(){p.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,F.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(){Uf.assertNotInAngularZone(),XM(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())XM(function(){for(;0!==p._callbacks.length;){var b=p._callbacks.pop();clearTimeout(b.timeoutId),b.doneCb(p._didWork)}p._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(b){return!b.updateCb||!b.updateCb(_)||(clearTimeout(b.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,_,b){var Z=this,Q=-1;_&&_>0&&(Q=setTimeout(function(){Z._callbacks=Z._callbacks.filter(function(le){return le.timeoutId!==Q}),p(Z._didWork,Z.getPendingTasks())},_)),this._callbacks.push({doneCb:p,timeoutId:Q,updateCb:b})}},{key:"whenStable",value:function(p,_,b){if(b&&!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,_,b),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(p,_,b){return[]}}]),c}();Ac.\u0275fac=function(d){return new(d||Ac)(ns(Uf))},Ac.\u0275prov=yt({token:Ac,factory:Ac.\u0275fac});var F_=function(){function c(){(0,E.Z)(this,c),this._applications=new Map,tS.addToWindow(this)}return(0,F.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 _=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tS.findTestabilityInTree(this,p,_)}}]),c}();F_.\u0275fac=function(d){return new(d||F_)},F_.\u0275prov=yt({token:F_,factory:F_.\u0275fac,providedIn:"platform"});var b8=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"addToWindow",value:function(p){}},{key:"findTestabilityInTree",value:function(p,_,b){return null}}]),c}();function C8(c){tS=c}var tS=new b8,gh=null,_R=new wa("AllowMultipleToken"),gR=new wa("PlatformOnDestroy");function vR(c,d,p){var _=new IM(p);return Promise.resolve(_)}var k8=(0,F.Z)(function c(d,p){(0,E.Z)(this,c),this.name=d,this.token=p});function T8(c){if(gh&&!gh.get(_R,!1)){throw new xe(400,"")}gh=c;var p=c.get(Hf),_=c.get(uR,null);return _&&_.forEach(function(b){return b()}),p}function vh(c,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(d),b=new wa(_);return function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Q=nS();if(!Q||Q.injector.get(_R,!1)){var le=[].concat((0,y.Z)(p),(0,y.Z)(Z),[{provide:b,useValue:!0}]);c?c(le):T8(M8(le,_))}return E8(b)}}function E8(c){var d=nS();if(!d){throw new xe(401,"")}return d}function M8(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],d=arguments.length>1?arguments[1]:void 0;return Bs.create({name:d,providers:[{provide:TE,useValue:"platform"},{provide:gR,useValue:function(){return gh=null}}].concat((0,y.Z)(c))})}function nS(){var c;return null!==(c=null==gh?void 0:gh.get(Hf))&&void 0!==c?c:null}var Hf=function(){function c(d){(0,E.Z)(this,c),this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,F.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,_){var b=this,pe=function rS(c,d){var p;return p="noop"===c?new mR:("zone.js"===c?void 0:c)||new Uf({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==d?void 0:d.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==d?void 0:d.ngZoneRunCoalescing)}),p}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),Ie=[{provide:Uf,useValue:pe}];return pe.run(function(){var et=Bs.create({providers:Ie,parent:b.injector,name:p.moduleType.name}),Tt=p.create(et),Ot=Tt.injector.get(Vm,null);if(!Ot){throw new xe(402,"")}return pe.runOutsideAngular(function(){var hn=pe.onError.subscribe({next:function(Xn){Ot.handleError(Xn)}});Tt.onDestroy(function(){oS(b._modules,Tt),hn.unsubscribe()})}),function yR(c,d,p){try{var _=p();return eM(_)?_.catch(function(b){throw d.runOutsideAngular(function(){return c.handleError(b)}),b}):_}catch(b){throw d.runOutsideAngular(function(){return c.handleError(b)}),b}}(Ot,pe,function(){var hn=Tt.injector.get(Ad);return hn.runInitializers(),hn.donePromise.then(function(){return function pM(c){Zt(c,"Expected localeId to be defined"),"string"==typeof c&&(S1=c.toLowerCase().replace(/_/g,"-"))}(Tt.injector.get(QM,wd)||wd),b._moduleDoBootstrap(Tt),Tt})})})}},{key:"bootstrapModule",value:function(p){var _=this,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Z=iS({},b);return vR(this.injector,0,p).then(function(Q){return _.bootstrapModuleFactory(Q,Z)})}},{key:"_moduleDoBootstrap",value:function(p){var _=p.injector.get(Od);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(Z){return _.bootstrap(Z)});else{if(!p.instance.ngDoBootstrap){throw new xe(403,"")}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 xe(404,"")}this._modules.slice().forEach(function(b){return b.destroy()}),this._destroyListeners.forEach(function(b){return b()});var _=this._injector.get(gR,null);null==_||_(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function iS(c,d){return c=Array.isArray(d)?d.reduce(iS,c):Object.assign(Object.assign({},c),d)}Hf.\u0275fac=function(d){return new(d||Hf)(ns(Bs))},Hf.\u0275prov=yt({token:Hf,factory:Hf.\u0275fac,providedIn:"platform"});var Od=function(){function c(d,p,_,b){var Z=this;(0,E.Z)(this,c),this._zone=d,this._injector=p,this._exceptionHandler=_,this._initStatus=b,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){Z._zone.run(function(){Z.tick()})}});var Q=new S.y(function(pe){Z._stable=Z._zone.isStable&&!Z._zone.hasPendingMacrotasks&&!Z._zone.hasPendingMicrotasks,Z._zone.runOutsideAngular(function(){pe.next(Z._stable),pe.complete()})}),le=new S.y(function(pe){var Ie;Z._zone.runOutsideAngular(function(){Ie=Z._zone.onStable.subscribe(function(){Uf.assertNotInAngularZone(),XM(function(){!Z._stable&&!Z._zone.hasPendingMacrotasks&&!Z._zone.hasPendingMicrotasks&&(Z._stable=!0,pe.next(!0))})})});var et=Z._zone.onUnstable.subscribe(function(){Uf.assertInAngularZone(),Z._stable&&(Z._stable=!1,Z._zone.runOutsideAngular(function(){pe.next(!1)}))});return function(){Ie.unsubscribe(),et.unsubscribe()}});this.isStable=(0,N.T)(Q,le.pipe((0,R.B)()))}return(0,F.Z)(c,[{key:"bootstrap",value:function(p,_){var Q,b=this;if(!this._initStatus.done){throw new xe(405,"")}p instanceof F4?Q=p:Q=this._injector.get(R1).resolveComponentFactory(p);this.componentTypes.push(Q.componentType);var pe=function w8(c){return c.isBoundToModule}(Q)?void 0:this._injector.get(Ta),Ie=_||Q.selector,et=Q.create(Bs.NULL,[],Ie,pe),Tt=et.location.nativeElement,Ot=et.injector.get(Ac,null),zt=Ot&&et.injector.get(F_);return Ot&&zt&&zt.registerApplication(Tt,Ot),et.onDestroy(function(){b.detachView(et.hostView),oS(b.components,et),zt&&zt.unregisterApplication(Tt)}),this._loadComponent(et),et}},{key:"tick",value:function(){var p=this;if(this._runningTick){throw new xe(101,"")}try{this._runningTick=!0;var Z,b=(0,D.Z)(this._views);try{for(b.s();!(Z=b.n()).done;){Z.value.detectChanges()}}catch(et){b.e(et)}finally{b.f()}}catch(et){this._zone.runOutsideAngular(function(){return p._exceptionHandler.handleError(et)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(p){var _=p;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(p){var _=p;oS(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(dR,[]).concat(this._bootstrapListeners).forEach(function(b){return b(p)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(p){return p.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),c}();function oS(c,d){var p=c.indexOf(d);p>-1&&c.splice(p,1)}Od.\u0275fac=function(d){return new(d||Od)(ns(Uf),ns(Bs),ns(Vm),ns(Ad))},Od.\u0275prov=yt({token:Od,factory:Od.\u0275fac,providedIn:"root"});var wR=!1;function x8(){if(wR)throw new Error("Cannot enable prod mode after platform setup.");!1}var aS=(0,F.Z)(function c(){(0,E.Z)(this,c)});aS.__NG_ELEMENT_ID__=function D8(c){return function A8(c,d,p){if(oi(c)&&!p){var _=be(c.index,d);return new Uu(_,_)}if(47&c.type){var b=d[16];return new Uu(b,d)}return null}(Di(),Nn(),16==(16&c))};var O8=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p)}(aS),I8=function(c){(0,A.Z)(p,c);var d=(0,k.Z)(p);function p(){return(0,E.Z)(this,p),d.apply(this,arguments)}return(0,F.Z)(p)}(O8);var SR=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"supports",value:function(p){return a_(p)}},{key:"create",value:function(p){return new Q1(p)}}]),c}(),L8=function(d,p){return p},Q1=function(){function c(d){(0,E.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=d||L8}return(0,F.Z)(c,[{key:"forEachItem",value:function(p){var _;for(_=this._itHead;null!==_;_=_._next)p(_)}},{key:"forEachOperation",value:function(p){for(var _=this._itHead,b=this._removalsHead,Z=0,Q=null;_||b;){var le=!b||_&&_.currentIndex<AR(b,Z,Q)?_:b,pe=AR(le,Z,Q),Ie=le.currentIndex;if(le===b)Z--,b=b._nextRemoved;else if(_=_._next,null==le.previousIndex)Z++;else{Q||(Q=[]);var et=pe-Z,Tt=Ie-Z;if(et!=Tt){for(var Ot=0;Ot<et;Ot++){var zt=Ot<Q.length?Q[Ot]:Q[Ot]=0,hn=zt+Ot;Tt<=hn&&hn<et&&(Q[Ot]=zt+1)}Q[le.previousIndex]=Tt-et}}pe!==Ie&&p(le,pe,Ie)}}},{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=[]),!a_(p)){throw new xe(900,"")}return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var Q,le,pe,b=this._itHead,Z=!1;if(Array.isArray(p)){this.length=p.length;for(var Ie=0;Ie<this.length;Ie++)le=p[Ie],pe=this._trackByFn(Ie,le),null!==b&&Object.is(b.trackById,pe)?(Z&&(b=this._verifyReinsertion(b,le,pe,Ie)),Object.is(b.item,le)||this._addIdentityChange(b,le)):(b=this._mismatch(b,le,pe,Ie),Z=!0),b=b._next}else Q=0,function MF(c,d){if(Array.isArray(c))for(var p=0;p<c.length;p++)d(c[p]);else for(var b,_=c[Ef()]();!(b=_.next()).done;)d(b.value)}(p,function(et){pe=_._trackByFn(Q,et),null!==b&&Object.is(b.trackById,pe)?(Z&&(b=_._verifyReinsertion(b,et,pe,Q)),Object.is(b.item,et)||_._addIdentityChange(b,et)):(b=_._mismatch(b,et,pe,Q),Z=!0),b=b._next,Q++}),this.length=Q;return this._truncate(b),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,_,b,Z){var Q;return null===p?Q=this._itTail:(Q=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._reinsertAfter(p,Q,Z)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(b,Z))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._moveAfter(p,Q,Z)):p=this._addAfter(new xR(_,b),Q,Z),p}},{key:"_verifyReinsertion",value:function(p,_,b,Z){var Q=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b,null);return null!==Q?p=this._reinsertAfter(Q,p._prev,Z):p.currentIndex!=Z&&(p.currentIndex=Z,this._addToMoves(p,Z)),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,_,b){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var Z=p._prevRemoved,Q=p._nextRemoved;return null===Z?this._removalsHead=Q:Z._nextRemoved=Q,null===Q?this._removalsTail=Z:Q._prevRemoved=Z,this._insertAfter(p,_,b),this._addToMoves(p,b),p}},{key:"_moveAfter",value:function(p,_,b){return this._unlink(p),this._insertAfter(p,_,b),this._addToMoves(p,b),p}},{key:"_addAfter",value:function(p,_,b){return this._insertAfter(p,_,b),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,_,b){var Z=null===_?this._itHead:_._next;return p._next=Z,p._prev=_,null===Z?this._itTail=p:Z._prev=p,null===_?this._itHead=p:_._next=p,null===this._linkedRecords&&(this._linkedRecords=new DR),this._linkedRecords.put(p),p.currentIndex=b,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,b=p._next;return null===_?this._itHead=b:_._next=b,null===b?this._itTail=_:b._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 DR),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}(),xR=(0,F.Z)(function c(d,p){(0,E.Z)(this,c),this.item=d,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}),Z8=function(){function c(){(0,E.Z)(this,c),this._head=null,this._tail=null}return(0,F.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 b;for(b=this._head;null!==b;b=b._nextDup)if((null===_||_<=b.currentIndex)&&Object.is(b.trackById,p))return b;return null}},{key:"remove",value:function(p){var _=p._prevDup,b=p._nextDup;return null===_?this._head=b:_._nextDup=b,null===b?this._tail=_:b._prevDup=_,null===this._head}}]),c}(),DR=function(){function c(){(0,E.Z)(this,c),this.map=new Map}return(0,F.Z)(c,[{key:"put",value:function(p){var _=p.trackById,b=this.map.get(_);b||(b=new Z8,this.map.set(_,b)),b.add(p)}},{key:"get",value:function(p,_){var b=p,Z=this.map.get(b);return Z?Z.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 AR(c,d,p){var _=c.previousIndex;if(null===_)return _;var b=0;return p&&_<p.length&&(b=p[_]),_+d+b}var cS=function(){function c(){(0,E.Z)(this,c)}return(0,F.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||D3(p)}},{key:"create",value:function(){return new Bl}}]),c}(),Bl=function(){function c(){(0,E.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,F.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||D3(p))){throw new xe(900,"")}}else p=new Map;return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var b=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(Q,le){if(b&&b.key===le)_._maybeAddToChanges(b,Q),_._appendAfter=b,b=b._next;else{var pe=_._getOrCreateRecordForKey(le,Q);b=_._insertBeforeOrAppend(b,pe)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(var Z=b;null!==Z;Z=Z._nextRemoved)Z===this._mapHead&&(this._mapHead=null),this._records.delete(Z.key),Z._nextRemoved=Z._next,Z.previousValue=Z.currentValue,Z.currentValue=null,Z._prev=null,Z._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 b=p._prev;return _._next=p,_._prev=b,p._prev=_,b&&(b._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 b=this._records.get(p);this._maybeAddToChanges(b,_);var Z=b._prev,Q=b._next;return Z&&(Z._next=Q),Q&&(Q._prev=Z),b._next=null,b._prev=null,b}var le=new OR(p);return this._records.set(p,le),le.currentValue=_,this._addToAdditions(le),le}},{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(b){return _(p[b],b)})}}]),c}(),OR=(0,F.Z)(function c(d){(0,E.Z)(this,c),this.key=d,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 Id(){return new gi([new SR])}var gi=function(){function c(d){(0,E.Z)(this,c),this.factories=d}return(0,F.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(Z){return Z.supports(p)});if(null!=_)return _;throw new xe(901,"")}}],[{key:"create",value:function(p,_){if(null!=_){var b=_.factories.slice();p=p.concat(b)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(b){return c.create(p,b||Id())},deps:[[c,new Nm,new Zm]]}}}]),c}();function bh(){return new jf([new cS])}gi.\u0275prov=yt({token:gi,providedIn:"root",factory:Id});var jf=function(){function c(d){(0,E.Z)(this,c),this.factories=d}return(0,F.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(Z){return Z.supports(p)});if(_)return _;throw new xe(901,"")}}],[{key:"create",value:function(p,_){if(_){var b=_.factories.slice();p=p.concat(b)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(b){return c.create(p,b||bh())},deps:[[c,new Nm,new Zm]]}}}]),c}();jf.\u0275prov=yt({token:jf,providedIn:"root",factory:bh});var X1=[new cS],$1=[new SR],Ch=(new gi($1),new jf(X1),vh(null,"core",[])),ju=(0,F.Z)(function c(d){(0,E.Z)(this,c)});ju.\u0275fac=function(d){return new(d||ju)(ns(Od))},ju.\u0275mod=gn({type:ju}),ju.\u0275inj=cn({})},3075:function(qe,J,m){"use strict";m.d(J,{Cf:function(){return ee},F:function(){return Pi},Fj:function(){return $},JJ:function(){return V},JL:function(){return Jn},JU:function(){return T},NI:function(){return lo},On:function(){return bi},Q7:function(){return wo},UX:function(){return Xi},Zs:function(){return Ha},_Y:function(){return Nr},a5:function(){return yt},cw:function(){return uo},kI:function(){return Oe},oH:function(){return Ki},qu:function(){return xi},sg:function(){return Co},u:function(){return tr},u5:function(){return ai},wV:function(){return oa}});var z=m(7326),Y=m(7762),M=m(4902),U=m(136),L=m(9388),P=m(5671),D=m(3144),y=m(5e3),K=m(9808),F=m(3527),E=m(567),A=m(4850),k=function(){function Ve(Le,be){(0,P.Z)(this,Ve),this._renderer=Le,this._elementRef=be,this.onChange=function(Je){},this.onTouched=function(){}}return(0,D.Z)(Ve,[{key:"setProperty",value:function(be,Je){this._renderer.setProperty(this._elementRef.nativeElement,be,Je)}},{key:"registerOnTouched",value:function(be){this.onTouched=be}},{key:"registerOnChange",value:function(be){this.onChange=be}},{key:"setDisabledState",value:function(be){this.setProperty("disabled",be)}}]),Ve}();k.\u0275fac=function(Le){return new(Le||k)(y.Y36(y.Qsj),y.Y36(y.SBq))},k.\u0275dir=y.lG2({type:k});var I=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be)}(k);I.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(I)))(be||I)}}(),I.\u0275dir=y.lG2({type:I,features:[y.qOj]});var T=new y.OlP("NgValueAccessor"),w={provide:T,useExisting:(0,y.Gpc)(function(){return S}),multi:!0},S=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be,[{key:"writeValue",value:function(Ke){this.setProperty("checked",Ke)}}]),be}(I);S.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(S)))(be||S)}}(),S.\u0275dir=y.lG2({type:S,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("change",function(Ke){return be.onChange(Ke.target.checked)})("blur",function(){return be.onTouched()})},features:[y._Bn([w]),y.qOj]});var N={provide:T,useExisting:(0,y.Gpc)(function(){return $}),multi:!0};var W=new y.OlP("CompositionEventMode"),$=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this,Je,Ke))._compositionMode=Pt,an._composing=!1,null==an._compositionMode&&(an._compositionMode=!function R(){var Ve=(0,K.q)()?(0,K.q)().getUserAgent():"";return/android (\d+)/.test(Ve.toLowerCase())}()),an}return(0,D.Z)(be,[{key:"writeValue",value:function(Ke){var Pt=null==Ke?"":Ke;this.setProperty("value",Pt)}},{key:"_handleInput",value:function(Ke){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ke)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Ke){this._composing=!1,this._compositionMode&&this.onChange(Ke)}}]),be}(k);function ce(Ve){return null==Ve||0===Ve.length}function se(Ve){return null!=Ve&&"number"==typeof Ve.length}$.\u0275fac=function(Le){return new(Le||$)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(W,8))},$.\u0275dir=y.lG2({type:$,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(Le,be){1&Le&&y.NdJ("input",function(Ke){return be._handleInput(Ke.target.value)})("blur",function(){return be.onTouched()})("compositionstart",function(){return be._compositionStart()})("compositionend",function(Ke){return be._compositionEnd(Ke.target.value)})},features:[y._Bn([N]),y.qOj]});var ee=new y.OlP("NgValidators"),oe=new y.OlP("NgAsyncValidators"),ge=/^(?=.{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])?)*$/,Oe=function(){function Ve(){(0,P.Z)(this,Ve)}return(0,D.Z)(Ve,null,[{key:"min",value:function(be){return ot(be)}},{key:"max",value:function(be){return xe(be)}},{key:"required",value:function(be){return _e(be)}},{key:"requiredTrue",value:function(be){return ke(be)}},{key:"email",value:function(be){return Be(be)}},{key:"minLength",value:function(be){return ct(be)}},{key:"maxLength",value:function(be){return Mt(be)}},{key:"pattern",value:function(be){return Nt(be)}},{key:"nullValidator",value:function(be){return null}},{key:"compose",value:function(be){return nt(be)}},{key:"composeAsync",value:function(be){return It(be)}}]),Ve}();function ot(Ve){return function(Le){if(ce(Le.value)||ce(Ve))return null;var be=parseFloat(Le.value);return!isNaN(be)&&be<Ve?{min:{min:Ve,actual:Le.value}}:null}}function xe(Ve){return function(Le){if(ce(Le.value)||ce(Ve))return null;var be=parseFloat(Le.value);return!isNaN(be)&&be>Ve?{max:{max:Ve,actual:Le.value}}:null}}function _e(Ve){return ce(Ve.value)?{required:!0}:null}function ke(Ve){return!0===Ve.value?null:{required:!0}}function Be(Ve){return ce(Ve.value)||ge.test(Ve.value)?null:{email:!0}}function ct(Ve){return function(Le){return ce(Le.value)||!se(Le.value)?null:Le.value.length<Ve?{minlength:{requiredLength:Ve,actualLength:Le.value.length}}:null}}function Mt(Ve){return function(Le){return se(Le.value)&&Le.value.length>Ve?{maxlength:{requiredLength:Ve,actualLength:Le.value.length}}:null}}function Nt(Ve){return Ve?("string"==typeof Ve?(be="","^"!==Ve.charAt(0)&&(be+="^"),be+=Ve,"$"!==Ve.charAt(Ve.length-1)&&(be+="$"),Le=new RegExp(be)):(be=Ve.toString(),Le=Ve),function(Je){if(ce(Je.value))return null;var Ke=Je.value;return Le.test(Ke)?null:{pattern:{requiredPattern:be,actualValue:Ke}}}):Xt;var Le,be}function Xt(Ve){return null}function en(Ve){return null!=Ve}function qt(Ve){var Le=(0,y.QGY)(Ve)?(0,F.D)(Ve):Ve;return(0,y.CqO)(Le),Le}function Xe(Ve){var Le={};return Ve.forEach(function(be){Le=null!=be?Object.assign(Object.assign({},Le),be):Le}),0===Object.keys(Le).length?null:Le}function jt(Ve,Le){return Le.map(function(be){return be(Ve)})}function vt(Ve){return Ve.map(function(Le){return function rt(Ve){return!Ve.validate}(Le)?Le:function(be){return Le.validate(be)}})}function nt(Ve){if(!Ve)return null;var Le=Ve.filter(en);return 0==Le.length?null:function(be){return Xe(jt(be,Le))}}function Rt(Ve){return null!=Ve?nt(vt(Ve)):null}function It(Ve){if(!Ve)return null;var Le=Ve.filter(en);return 0==Le.length?null:function(be){var Je=jt(be,Le).map(qt);return(0,E.D)(Je).pipe((0,A.U)(Xe))}}function on(Ve){return null!=Ve?It(vt(Ve)):null}function _n(Ve,Le){return null===Ve?[Le]:Array.isArray(Ve)?[].concat((0,M.Z)(Ve),[Le]):[Ve,Le]}function An(Ve){return Ve._rawValidators}function Gt(Ve){return Ve._rawAsyncValidators}function Zt(Ve){return Ve?Array.isArray(Ve)?Ve:[Ve]:[]}function Et(Ve,Le){return Array.isArray(Ve)?Ve.includes(Le):Ve===Le}function Ut(Ve,Le){var be=Zt(Le);return Zt(Ve).forEach(function(Ke){Et(be,Ke)||be.push(Ke)}),be}function Ht(Ve,Le){return Zt(Le).filter(function(be){return!Et(Ve,be)})}var sn=function(){function Ve(){(0,P.Z)(this,Ve),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,D.Z)(Ve,[{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(be){this._rawValidators=be||[],this._composedValidatorFn=Rt(this._rawValidators)}},{key:"_setAsyncValidators",value:function(be){this._rawAsyncValidators=be||[],this._composedAsyncValidatorFn=on(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(be){this._onDestroyCallbacks.push(be)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(be){return be()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(be)}},{key:"hasError",value:function(be,Je){return!!this.control&&this.control.hasError(be,Je)}},{key:"getError",value:function(be,Je){return this.control?this.control.getError(be,Je):null}}]),Ve}(),yt=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments))._parent=null,Je.name=null,Je.valueAccessor=null,Je}return(0,D.Z)(be)}(sn),mt=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),be}(sn),cn=function(){function Ve(Le){(0,P.Z)(this,Ve),this._cd=Le}return(0,D.Z)(Ve,[{key:"is",value:function(be){var Je,Ke,Pt;return"submitted"===be?!!(null===(Je=this._cd)||void 0===Je?void 0:Je.submitted):!!(null===(Pt=null===(Ke=this._cd)||void 0===Ke?void 0:Ke.control)||void 0===Pt?void 0:Pt[be])}}]),Ve}(),V=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je){return(0,P.Z)(this,be),Le.call(this,Je)}return(0,D.Z)(be)}(cn);V.\u0275fac=function(Le){return new(Le||V)(y.Y36(yt,2))},V.\u0275dir=y.lG2({type:V,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Le,be){2&Le&&y.ekj("ng-untouched",be.is("untouched"))("ng-touched",be.is("touched"))("ng-pristine",be.is("pristine"))("ng-dirty",be.is("dirty"))("ng-valid",be.is("valid"))("ng-invalid",be.is("invalid"))("ng-pending",be.is("pending"))},features:[y.qOj]});var Jn=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je){return(0,P.Z)(this,be),Le.call(this,Je)}return(0,D.Z)(be)}(cn);Jn.\u0275fac=function(Le){return new(Le||Jn)(y.Y36(mt,10))},Jn.\u0275dir=y.lG2({type:Jn,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Le,be){2&Le&&y.ekj("ng-untouched",be.is("untouched"))("ng-touched",be.is("touched"))("ng-pristine",be.is("pristine"))("ng-dirty",be.is("dirty"))("ng-valid",be.is("valid"))("ng-invalid",be.is("invalid"))("ng-pending",be.is("pending"))("ng-submitted",be.is("submitted"))},features:[y.qOj]});function Ln(Ve,Le){return[].concat((0,M.Z)(Le.path),[Ve])}function jn(Ve,Le){Kt(Ve,Le),Le.valueAccessor.writeValue(Ve.value),function Ue(Ve,Le){Le.valueAccessor.registerOnChange(function(be){Ve._pendingValue=be,Ve._pendingChange=!0,Ve._pendingDirty=!0,"change"===Ve.updateOn&&He(Ve,Le)})}(Ve,Le),function bt(Ve,Le){var be=function(Ke,Pt){Le.valueAccessor.writeValue(Ke),Pt&&Le.viewToModelUpdate(Ke)};Ve.registerOnChange(be),Le._registerOnDestroy(function(){Ve._unregisterOnChange(be)})}(Ve,Le),function Ee(Ve,Le){Le.valueAccessor.registerOnTouched(function(){Ve._pendingTouched=!0,"blur"===Ve.updateOn&&Ve._pendingChange&&He(Ve,Le),"submit"!==Ve.updateOn&&Ve.markAsTouched()})}(Ve,Le),function Yn(Ve,Le){if(Le.valueAccessor.setDisabledState){var be=function(Ke){Le.valueAccessor.setDisabledState(Ke)};Ve.registerOnDisabledChange(be),Le._registerOnDestroy(function(){Ve._unregisterOnDisabledChange(be)})}}(Ve,Le)}function mn(Ve,Le){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Je=function(){};Le.valueAccessor&&(Le.valueAccessor.registerOnChange(Je),Le.valueAccessor.registerOnTouched(Je)),tt(Ve,Le),Ve&&(Le._invokeOnDestroyCallbacks(),Ve._registerOnCollectionChange(function(){}))}function lr(Ve,Le){Ve.forEach(function(be){be.registerOnValidatorChange&&be.registerOnValidatorChange(Le)})}function Kt(Ve,Le){var be=An(Ve);null!==Le.validator?Ve.setValidators(_n(be,Le.validator)):"function"==typeof be&&Ve.setValidators([be]);var Je=Gt(Ve);null!==Le.asyncValidator?Ve.setAsyncValidators(_n(Je,Le.asyncValidator)):"function"==typeof Je&&Ve.setAsyncValidators([Je]);var Ke=function(){return Ve.updateValueAndValidity()};lr(Le._rawValidators,Ke),lr(Le._rawAsyncValidators,Ke)}function tt(Ve,Le){var be=!1;if(null!==Ve){if(null!==Le.validator){var Je=An(Ve);if(Array.isArray(Je)&&Je.length>0){var Ke=Je.filter(function(Lr){return Lr!==Le.validator});Ke.length!==Je.length&&(be=!0,Ve.setValidators(Ke))}}if(null!==Le.asyncValidator){var Pt=Gt(Ve);if(Array.isArray(Pt)&&Pt.length>0){var an=Pt.filter(function(Lr){return Lr!==Le.asyncValidator});an.length!==Pt.length&&(be=!0,Ve.setAsyncValidators(an))}}}var nr=function(){};return lr(Le._rawValidators,nr),lr(Le._rawAsyncValidators,nr),be}function He(Ve,Le){Ve._pendingDirty&&Ve.markAsDirty(),Ve.setValue(Ve._pendingValue,{emitModelToViewChange:!1}),Le.viewToModelUpdate(Ve._pendingValue),Ve._pendingChange=!1}function Yt(Ve,Le){Kt(Ve,Le)}function Ae(Ve,Le){if(!Ve.hasOwnProperty("model"))return!1;var be=Ve.model;return!!be.isFirstChange()||!Object.is(Le,be.currentValue)}function _t(Ve,Le){Ve._syncPendingControls(),Le.forEach(function(be){var Je=be.control;"submit"===Je.updateOn&&Je._pendingChange&&(be.viewToModelUpdate(Je._pendingValue),Je._pendingChange=!1)})}function Wt(Ve,Le){if(!Le)return null;Array.isArray(Le);var be=void 0,Je=void 0,Ke=void 0;return Le.forEach(function(Pt){Pt.constructor===$?be=Pt:function Qe(Ve){return Object.getPrototypeOf(Ve.constructor)===I}(Pt)?Je=Pt:Ke=Pt}),Ke||Je||be||null}function gn(Ve,Le){var be=Ve.indexOf(Le);be>-1&&Ve.splice(be,1)}var Rr="VALID",Xr="INVALID",Mr="PENDING",Hi="DISABLED";function Gi(Ve){return(_a(Ve)?Ve.validators:Ve)||null}function Ka(Ve){return Array.isArray(Ve)?Rt(Ve):Ve||null}function Za(Ve,Le){return(_a(Le)?Le.asyncValidators:Ve)||null}function Go(Ve){return Array.isArray(Ve)?on(Ve):Ve||null}function _a(Ve){return null!=Ve&&!Array.isArray(Ve)&&"object"==typeof Ve}var qo=function(Le){return Le instanceof lo},yi=function(Le){return Le instanceof uo},Ja=function(Le){return Le instanceof mi};function zi(Ve){return qo(Ve)?Ve.value:Ve.getRawValue()}function or(Ve,Le){var be=yi(Ve),Je=Ve.controls;if(!(be?Object.keys(Je):Je).length)throw new y.vHH(1e3,"");if(!Je[Le])throw new y.vHH(1001,"")}function Pr(Ve,Le){yi(Ve);Ve._forEachChild(function(Je,Ke){if(void 0===Le[Ke])throw new y.vHH(1002,"")})}var ci=function(){function Ve(Le,be){(0,P.Z)(this,Ve),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=Le,this._rawAsyncValidators=be,this._composedValidatorFn=Ka(this._rawValidators),this._composedAsyncValidatorFn=Go(this._rawAsyncValidators)}return(0,D.Z)(Ve,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(be){this._rawValidators=this._composedValidatorFn=be}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(be){this._rawAsyncValidators=this._composedAsyncValidatorFn=be}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Rr}},{key:"invalid",get:function(){return this.status===Xr}},{key:"pending",get:function(){return this.status==Mr}},{key:"disabled",get:function(){return this.status===Hi}},{key:"enabled",get:function(){return this.status!==Hi}},{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(be){this._rawValidators=be,this._composedValidatorFn=Ka(be)}},{key:"setAsyncValidators",value:function(be){this._rawAsyncValidators=be,this._composedAsyncValidatorFn=Go(be)}},{key:"addValidators",value:function(be){this.setValidators(Ut(be,this._rawValidators))}},{key:"addAsyncValidators",value:function(be){this.setAsyncValidators(Ut(be,this._rawAsyncValidators))}},{key:"removeValidators",value:function(be){this.setValidators(Ht(be,this._rawValidators))}},{key:"removeAsyncValidators",value:function(be){this.setAsyncValidators(Ht(be,this._rawAsyncValidators))}},{key:"hasValidator",value:function(be){return Et(this._rawValidators,be)}},{key:"hasAsyncValidator",value:function(be){return Et(this._rawAsyncValidators,be)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!be.onlySelf&&this._parent.markAsTouched(be)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(be){return be.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Je){Je.markAsUntouched({onlySelf:!0})}),this._parent&&!be.onlySelf&&this._parent._updateTouched(be)}},{key:"markAsDirty",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!be.onlySelf&&this._parent.markAsDirty(be)}},{key:"markAsPristine",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Je){Je.markAsPristine({onlySelf:!0})}),this._parent&&!be.onlySelf&&this._parent._updatePristine(be)}},{key:"markAsPending",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Mr,!1!==be.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!be.onlySelf&&this._parent.markAsPending(be)}},{key:"disable",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Je=this._parentMarkedDirty(be.onlySelf);this.status=Hi,this.errors=null,this._forEachChild(function(Ke){Ke.disable(Object.assign(Object.assign({},be),{onlySelf:!0}))}),this._updateValue(),!1!==be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},be),{skipPristineCheck:Je})),this._onDisabledChange.forEach(function(Ke){return Ke(!0)})}},{key:"enable",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Je=this._parentMarkedDirty(be.onlySelf);this.status=Rr,this._forEachChild(function(Ke){Ke.enable(Object.assign(Object.assign({},be),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:be.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},be),{skipPristineCheck:Je})),this._onDisabledChange.forEach(function(Ke){return Ke(!1)})}},{key:"_updateAncestors",value:function(be){this._parent&&!be.onlySelf&&(this._parent.updateValueAndValidity(be),be.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(be){this._parent=be}},{key:"updateValueAndValidity",value:function(){var be=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===Rr||this.status===Mr)&&this._runAsyncValidator(be.emitEvent)),!1!==be.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!be.onlySelf&&this._parent.updateValueAndValidity(be)}},{key:"_updateTreeValidity",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Je){return Je._updateTreeValidity(be)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:be.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Hi:Rr}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(be){var Je=this;if(this.asyncValidator){this.status=Mr,this._hasOwnPendingAsyncValidator=!0;var Ke=qt(this.asyncValidator(this));this._asyncValidationSubscription=Ke.subscribe(function(Pt){Je._hasOwnPendingAsyncValidator=!1,Je.setErrors(Pt,{emitEvent:be})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(be){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=be,this._updateControlsErrors(!1!==Je.emitEvent)}},{key:"get",value:function(be){return function bo(Ve,Le,be){if(null==Le||(Array.isArray(Le)||(Le=Le.split(be)),Array.isArray(Le)&&0===Le.length))return null;var Je=Ve;return Le.forEach(function(Ke){Je=yi(Je)?Je.controls.hasOwnProperty(Ke)?Je.controls[Ke]:null:Ja(Je)&&Je.at(Ke)||null}),Je}(this,be,".")}},{key:"getError",value:function(be,Je){var Ke=Je?this.get(Je):this;return Ke&&Ke.errors?Ke.errors[be]:null}},{key:"hasError",value:function(be,Je){return!!this.getError(be,Je)}},{key:"root",get:function(){for(var be=this;be._parent;)be=be._parent;return be}},{key:"_updateControlsErrors",value:function(be){this.status=this._calculateStatus(),be&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(be)}},{key:"_initObservables",value:function(){this.valueChanges=new y.vpe,this.statusChanges=new y.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Hi:this.errors?Xr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mr)?Mr:this._anyControlsHaveStatus(Xr)?Xr:Rr}},{key:"_anyControlsHaveStatus",value:function(be){return this._anyControls(function(Je){return Je.status===be})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(be){return be.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(be){return be.touched})}},{key:"_updatePristine",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!be.onlySelf&&this._parent._updatePristine(be)}},{key:"_updateTouched",value:function(){var be=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!be.onlySelf&&this._parent._updateTouched(be)}},{key:"_isBoxedValue",value:function(be){return"object"==typeof be&&null!==be&&2===Object.keys(be).length&&"value"in be&&"disabled"in be}},{key:"_registerOnCollectionChange",value:function(be){this._onCollectionChange=be}},{key:"_setUpdateStrategy",value:function(be){_a(be)&&null!=be.updateOn&&(this._updateOn=be.updateOn)}},{key:"_parentMarkedDirty",value:function(be){var Je=this._parent&&this._parent.dirty;return!be&&!!Je&&!this._parent._anyControlsDirty()}}]),Ve}(),lo=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je,Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,Pt=arguments.length>1?arguments[1]:void 0,an=arguments.length>2?arguments[2]:void 0;return(0,P.Z)(this,be),(Je=Le.call(this,Gi(Pt),Za(an,Pt))).defaultValue=null,Je._onChange=[],Je._pendingChange=!1,Je._applyFormState(Ke),Je._setUpdateStrategy(Pt),Je._initObservables(),Je.updateValueAndValidity({onlySelf:!0,emitEvent:!!Je.asyncValidator}),_a(Pt)&&Pt.initialValueIsDefault&&(Je._isBoxedValue(Ke)?Je.defaultValue=Ke.value:Je.defaultValue=Ke),Je}return(0,D.Z)(be,[{key:"setValue",value:function(Ke){var Pt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Ke,this._onChange.length&&!1!==an.emitModelToViewChange&&this._onChange.forEach(function(nr){return nr(Pt.value,!1!==an.emitViewToModelChange)}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Ke,Pt)}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Ke),this.markAsPristine(Pt),this.markAsUntouched(Pt),this.setValue(this.value,Pt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Ke){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Ke){this._onChange.push(Ke)}},{key:"_unregisterOnChange",value:function(Ke){gn(this._onChange,Ke)}},{key:"registerOnDisabledChange",value:function(Ke){this._onDisabledChange.push(Ke)}},{key:"_unregisterOnDisabledChange",value:function(Ke){gn(this._onDisabledChange,Ke)}},{key:"_forEachChild",value:function(Ke){}},{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(Ke){this._isBoxedValue(Ke)?(this.value=this._pendingValue=Ke.value,Ke.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ke}}]),be}(ci),uo=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this,Gi(Ke),Za(Pt,Ke))).controls=Je,an._initObservables(),an._setUpdateStrategy(Ke),an._setUpControls(),an.updateValueAndValidity({onlySelf:!0,emitEvent:!!an.asyncValidator}),an}return(0,D.Z)(be,[{key:"registerControl",value:function(Ke,Pt){return this.controls[Ke]?this.controls[Ke]:(this.controls[Ke]=Pt,Pt.setParent(this),Pt._registerOnCollectionChange(this._onCollectionChange),Pt)}},{key:"addControl",value:function(Ke,Pt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Ke,Pt),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Ke){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),delete this.controls[Ke],this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Ke,Pt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),delete this.controls[Ke],Pt&&this.registerControl(Ke,Pt),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Ke){return this.controls.hasOwnProperty(Ke)&&this.controls[Ke].enabled}},{key:"setValue",value:function(Ke){var Pt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr(this,Ke),Object.keys(Ke).forEach(function(nr){or(Pt,nr),Pt.controls[nr].setValue(Ke[nr],{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Pt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ke&&(Object.keys(Ke).forEach(function(nr){Pt.controls[nr]&&Pt.controls[nr].patchValue(Ke[nr],{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an))}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(an,nr){an.reset(Ke[nr],{onlySelf:!0,emitEvent:Pt.emitEvent})}),this._updatePristine(Pt),this._updateTouched(Pt),this.updateValueAndValidity(Pt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Ke,Pt,an){return Ke[an]=zi(Pt),Ke})}},{key:"_syncPendingControls",value:function(){var Ke=this._reduceChildren(!1,function(Pt,an){return!!an._syncPendingControls()||Pt});return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}},{key:"_forEachChild",value:function(Ke){var Pt=this;Object.keys(this.controls).forEach(function(an){var nr=Pt.controls[an];nr&&Ke(nr,an)})}},{key:"_setUpControls",value:function(){var Ke=this;this._forEachChild(function(Pt){Pt.setParent(Ke),Pt._registerOnCollectionChange(Ke._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Ke){for(var Pt=0,an=Object.keys(this.controls);Pt<an.length;Pt++){var nr=an[Pt],Lr=this.controls[nr];if(this.contains(nr)&&Ke(Lr))return!0}return!1}},{key:"_reduceValue",value:function(){var Ke=this;return this._reduceChildren({},function(Pt,an,nr){return(an.enabled||Ke.disabled)&&(Pt[nr]=an.value),Pt})}},{key:"_reduceChildren",value:function(Ke,Pt){var an=Ke;return this._forEachChild(function(nr,Lr){an=Pt(an,nr,Lr)}),an}},{key:"_allControlsDisabled",value:function(){for(var Ke=0,Pt=Object.keys(this.controls);Ke<Pt.length;Ke++){var an=Pt[Ke];if(this.controls[an].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}}]),be}(ci),mi=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this,Gi(Ke),Za(Pt,Ke))).controls=Je,an._initObservables(),an._setUpdateStrategy(Ke),an._setUpControls(),an.updateValueAndValidity({onlySelf:!0,emitEvent:!!an.asyncValidator}),an}return(0,D.Z)(be,[{key:"at",value:function(Ke){return this.controls[Ke]}},{key:"push",value:function(Ke){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Ke),this._registerControl(Ke),this.updateValueAndValidity({emitEvent:Pt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Ke,Pt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Ke,0,Pt),this._registerControl(Pt),this.updateValueAndValidity({emitEvent:an.emitEvent})}},{key:"removeAt",value:function(Ke){var Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),this.controls.splice(Ke,1),this.updateValueAndValidity({emitEvent:Pt.emitEvent})}},{key:"setControl",value:function(Ke,Pt){var an=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Ke]&&this.controls[Ke]._registerOnCollectionChange(function(){}),this.controls.splice(Ke,1),Pt&&(this.controls.splice(Ke,0,Pt),this._registerControl(Pt)),this.updateValueAndValidity({emitEvent:an.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Ke){var Pt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pr(this,Ke),Ke.forEach(function(nr,Lr){or(Pt,Lr),Pt.at(Lr).setValue(nr,{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an)}},{key:"patchValue",value:function(Ke){var Pt=this,an=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Ke&&(Ke.forEach(function(nr,Lr){Pt.at(Lr)&&Pt.at(Lr).patchValue(nr,{onlySelf:!0,emitEvent:an.emitEvent})}),this.updateValueAndValidity(an))}},{key:"reset",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(an,nr){an.reset(Ke[nr],{onlySelf:!0,emitEvent:Pt.emitEvent})}),this._updatePristine(Pt),this._updateTouched(Pt),this.updateValueAndValidity(Pt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Ke){return zi(Ke)})}},{key:"clear",value:function(){var Ke=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:Ke.emitEvent}))}},{key:"_syncPendingControls",value:function(){var Ke=this.controls.reduce(function(Pt,an){return!!an._syncPendingControls()||Pt},!1);return Ke&&this.updateValueAndValidity({onlySelf:!0}),Ke}},{key:"_forEachChild",value:function(Ke){this.controls.forEach(function(Pt,an){Ke(Pt,an)})}},{key:"_updateValue",value:function(){var Ke=this;this.value=this.controls.filter(function(Pt){return Pt.enabled||Ke.disabled}).map(function(Pt){return Pt.value})}},{key:"_anyControls",value:function(Ke){return this.controls.some(function(Pt){return Pt.enabled&&Ke(Pt)})}},{key:"_setUpControls",value:function(){var Ke=this;this._forEachChild(function(Pt){return Ke._registerControl(Pt)})}},{key:"_allControlsDisabled",value:function(){var Pt,Ke=(0,Y.Z)(this.controls);try{for(Ke.s();!(Pt=Ke.n()).done;){if(Pt.value.enabled)return!1}}catch(nr){Ke.e(nr)}finally{Ke.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Ke){Ke.setParent(this),Ke._registerOnCollectionChange(this._onCollectionChange)}}]),be}(ci),Bo={provide:mt,useExisting:(0,y.Gpc)(function(){return Pi})},$r=Promise.resolve(null),Pi=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke){var Pt;return(0,P.Z)(this,be),(Pt=Le.call(this)).submitted=!1,Pt._directives=new Set,Pt.ngSubmit=new y.vpe,Pt.form=new uo({},Rt(Je),on(Ke)),Pt}return(0,D.Z)(be,[{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(Ke){var Pt=this;$r.then(function(){var an=Pt._findContainer(Ke.path);Ke.control=an.registerControl(Ke.name,Ke.control),jn(Ke.control,Ke),Ke.control.updateValueAndValidity({emitEvent:!1}),Pt._directives.add(Ke)})}},{key:"getControl",value:function(Ke){return this.form.get(Ke.path)}},{key:"removeControl",value:function(Ke){var Pt=this;$r.then(function(){var an=Pt._findContainer(Ke.path);an&&an.removeControl(Ke.name),Pt._directives.delete(Ke)})}},{key:"addFormGroup",value:function(Ke){var Pt=this;$r.then(function(){var an=Pt._findContainer(Ke.path),nr=new uo({});Yt(nr,Ke),an.registerControl(Ke.name,nr),nr.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Ke){var Pt=this;$r.then(function(){var an=Pt._findContainer(Ke.path);an&&an.removeControl(Ke.name)})}},{key:"getFormGroup",value:function(Ke){return this.form.get(Ke.path)}},{key:"updateModel",value:function(Ke,Pt){var an=this;$r.then(function(){an.form.get(Ke.path).setValue(Pt)})}},{key:"setValue",value:function(Ke){this.control.setValue(Ke)}},{key:"onSubmit",value:function(Ke){return this.submitted=!0,_t(this.form,this._directives),this.ngSubmit.emit(Ke),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ke),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Ke){return Ke.pop(),Ke.length?this.form.get(Ke):this.form}}]),be}(mt);Pi.\u0275fac=function(Le){return new(Le||Pi)(y.Y36(ee,10),y.Y36(oe,10))},Pi.\u0275dir=y.lG2({type:Pi,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("submit",function(Ke){return be.onSubmit(Ke)})("reset",function(){return be.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Bo]),y.qOj]});var Wi=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be,[{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 Ln(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(){}}]),be}(mt);Wi.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Wi)))(be||Wi)}}(),Wi.\u0275dir=y.lG2({type:Wi,features:[y.qOj]});var Do={provide:mt,useExisting:(0,y.Gpc)(function(){return _i})},_i=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Pt),an}return(0,D.Z)(be,[{key:"_checkParentType",value:function(){!(this._parent instanceof be)&&this._parent}}]),be}(Wi);_i.\u0275fac=function(Le){return new(Le||_i)(y.Y36(mt,5),y.Y36(ee,10),y.Y36(oe,10))},_i.\u0275dir=y.lG2({type:_i,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[y._Bn([Do]),y.qOj]});var Ko={provide:yt,useExisting:(0,y.Gpc)(function(){return bi})},ga=Promise.resolve(null),bi=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt,an,nr){var Lr;return(0,P.Z)(this,be),(Lr=Le.call(this))._changeDetectorRef=nr,Lr.control=new lo,Lr._registered=!1,Lr.update=new y.vpe,Lr._parent=Je,Lr._setValidators(Ke),Lr._setAsyncValidators(Pt),Lr.valueAccessor=Wt((0,z.Z)(Lr),an),Lr}return(0,D.Z)(be,[{key:"ngOnChanges",value:function(Ke){if(this._checkForErrors(),!this._registered||"name"in Ke){if(this._registered&&(this._checkName(),this.formDirective)){var Pt=Ke.name.previousValue;this.formDirective.removeControl({name:Pt,path:this._getPath(Pt)})}this._setUpControl()}"isDisabled"in Ke&&this._updateDisabled(Ke),Ae(Ke,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(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{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(){jn(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(Ke){var Pt=this;ga.then(function(){var an;Pt.control.setValue(Ke,{emitViewToModelChange:!1}),null===(an=Pt._changeDetectorRef)||void 0===an||an.markForCheck()})}},{key:"_updateDisabled",value:function(Ke){var Pt=this,an=Ke.isDisabled.currentValue,nr=""===an||an&&"false"!==an;ga.then(function(){var Lr;nr&&!Pt.control.disabled?Pt.control.disable():!nr&&Pt.control.disabled&&Pt.control.enable(),null===(Lr=Pt._changeDetectorRef)||void 0===Lr||Lr.markForCheck()})}},{key:"_getPath",value:function(Ke){return this._parent?Ln(Ke,this._parent):[Ke]}}]),be}(yt);bi.\u0275fac=function(Le){return new(Le||bi)(y.Y36(mt,9),y.Y36(ee,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(y.sBO,8))},bi.\u0275dir=y.lG2({type:bi,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[y._Bn([Ko]),y.qOj,y.TTD]});var Nr=(0,D.Z)(function Ve(){(0,P.Z)(this,Ve)});Nr.\u0275fac=function(Le){return new(Le||Nr)},Nr.\u0275dir=y.lG2({type:Nr,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var ws={provide:T,useExisting:(0,y.Gpc)(function(){return oa}),multi:!0},oa=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be,[{key:"writeValue",value:function(Ke){var Pt=null==Ke?"":Ke;this.setProperty("value",Pt)}},{key:"registerOnChange",value:function(Ke){this.onChange=function(Pt){Ke(""==Pt?null:parseFloat(Pt))}}}]),be}(I);oa.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(oa)))(be||oa)}}(),oa.\u0275dir=y.lG2({type:oa,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("input",function(Ke){return be.onChange(Ke.target.value)})("blur",function(){return be.onTouched()})},features:[y._Bn([ws]),y.qOj]});var Na={provide:T,useExisting:(0,y.Gpc)(function(){return Li}),multi:!0};var bn=(0,D.Z)(function Ve(){(0,P.Z)(this,Ve)});bn.\u0275fac=function(Le){return new(Le||bn)},bn.\u0275mod=y.oAB({type:bn}),bn.\u0275inj=y.cJS({});var oi=function(){function Ve(){(0,P.Z)(this,Ve),this._accessors=[]}return(0,D.Z)(Ve,[{key:"add",value:function(be,Je){this._accessors.push([be,Je])}},{key:"remove",value:function(be){for(var Je=this._accessors.length-1;Je>=0;--Je)if(this._accessors[Je][1]===be)return void this._accessors.splice(Je,1)}},{key:"select",value:function(be){var Je=this;this._accessors.forEach(function(Ke){Je._isSameGroup(Ke,be)&&Ke[1]!==be&&Ke[1].fireUncheck(be.value)})}},{key:"_isSameGroup",value:function(be,Je){return!!be[0].control&&(be[0]._parent===Je._control._parent&&be[1].name===Je.name)}}]),Ve}();oi.\u0275fac=function(Le){return new(Le||oi)},oi.\u0275prov=y.Yz7({token:oi,factory:oi.\u0275fac,providedIn:bn});var Li=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt,an){var nr;return(0,P.Z)(this,be),(nr=Le.call(this,Je,Ke))._registry=Pt,nr._injector=an,nr.onChange=function(){},nr}return(0,D.Z)(be,[{key:"ngOnInit",value:function(){this._control=this._injector.get(yt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Ke){this._state=Ke===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Ke){var Pt=this;this._fn=Ke,this.onChange=function(){Ke(Pt.value),Pt._registry.select(Pt)}}},{key:"fireUncheck",value:function(Ke){this.writeValue(Ke)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),be}(I);Li.\u0275fac=function(Le){return new(Le||Li)(y.Y36(y.Qsj),y.Y36(y.SBq),y.Y36(oi),y.Y36(y.zs3))},Li.\u0275dir=y.lG2({type:Li,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("change",function(){return be.onChange()})("blur",function(){return be.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[y._Bn([Na]),y.qOj]});var qi={provide:T,useExisting:(0,y.Gpc)(function(){return ei}),multi:!0},ei=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){return(0,P.Z)(this,be),Le.apply(this,arguments)}return(0,D.Z)(be,[{key:"writeValue",value:function(Ke){this.setProperty("value",parseFloat(Ke))}},{key:"registerOnChange",value:function(Ke){this.onChange=function(Pt){Ke(""==Pt?null:parseFloat(Pt))}}}]),be}(I);ei.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(ei)))(be||ei)}}(),ei.\u0275dir=y.lG2({type:ei,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("change",function(Ke){return be.onChange(Ke.target.value)})("input",function(Ke){return be.onChange(Ke.target.value)})("blur",function(){return be.onTouched()})},features:[y._Bn([qi]),y.qOj]});var Fo=new y.OlP("NgModelWithFormControlWarning"),va={provide:yt,useExisting:(0,y.Gpc)(function(){return Ki})},Ki=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt,an){var nr;return(0,P.Z)(this,be),(nr=Le.call(this))._ngModelWarningConfig=an,nr.update=new y.vpe,nr._ngModelWarningSent=!1,nr._setValidators(Je),nr._setAsyncValidators(Ke),nr.valueAccessor=Wt((0,z.Z)(nr),Pt),nr}return(0,D.Z)(be,[{key:"isDisabled",set:function(Ke){}},{key:"ngOnChanges",value:function(Ke){if(this._isControlChanged(Ke)){var Pt=Ke.form.previousValue;Pt&&mn(Pt,this,!1),jn(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ae(Ke,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&mn(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{key:"_isControlChanged",value:function(Ke){return Ke.hasOwnProperty("form")}}]),be}(yt);Ki._ngModelWarningSentOnce=!1,Ki.\u0275fac=function(Le){return new(Le||Ki)(y.Y36(ee,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(Fo,8))},Ki.\u0275dir=y.lG2({type:Ki,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[y._Bn([va]),y.qOj,y.TTD]});var Ci={provide:mt,useExisting:(0,y.Gpc)(function(){return Co})},Co=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke){var Pt;return(0,P.Z)(this,be),(Pt=Le.call(this)).validators=Je,Pt.asyncValidators=Ke,Pt.submitted=!1,Pt._onCollectionChange=function(){return Pt._updateDomValue()},Pt.directives=[],Pt.form=null,Pt.ngSubmit=new y.vpe,Pt._setValidators(Je),Pt._setAsyncValidators(Ke),Pt}return(0,D.Z)(be,[{key:"ngOnChanges",value:function(Ke){this._checkFormPresent(),Ke.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(tt(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(Ke){var Pt=this.form.get(Ke.path);return jn(Pt,Ke),Pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ke),Pt}},{key:"getControl",value:function(Ke){return this.form.get(Ke.path)}},{key:"removeControl",value:function(Ke){mn(Ke.control||null,Ke,!1),gn(this.directives,Ke)}},{key:"addFormGroup",value:function(Ke){this._setUpFormContainer(Ke)}},{key:"removeFormGroup",value:function(Ke){this._cleanUpFormContainer(Ke)}},{key:"getFormGroup",value:function(Ke){return this.form.get(Ke.path)}},{key:"addFormArray",value:function(Ke){this._setUpFormContainer(Ke)}},{key:"removeFormArray",value:function(Ke){this._cleanUpFormContainer(Ke)}},{key:"getFormArray",value:function(Ke){return this.form.get(Ke.path)}},{key:"updateModel",value:function(Ke,Pt){this.form.get(Ke.path).setValue(Pt)}},{key:"onSubmit",value:function(Ke){return this.submitted=!0,_t(this.form,this.directives),this.ngSubmit.emit(Ke),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Ke),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Ke=this;this.directives.forEach(function(Pt){var an=Pt.control,nr=Ke.form.get(Pt.path);an!==nr&&(mn(an||null,Pt),qo(nr)&&(jn(nr,Pt),Pt.control=nr))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Ke){var Pt=this.form.get(Ke.path);Yt(Pt,Ke),Pt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Ke){if(this.form){var Pt=this.form.get(Ke.path);if(Pt){var an=function En(Ve,Le){return tt(Ve,Le)}(Pt,Ke);an&&Pt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Kt(this.form,this),this._oldForm&&tt(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),be}(mt);Co.\u0275fac=function(Le){return new(Le||Co)(y.Y36(ee,10),y.Y36(oe,10))},Co.\u0275dir=y.lG2({type:Co,selectors:[["","formGroup",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("submit",function(Ke){return be.onSubmit(Ke)})("reset",function(){return be.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[y._Bn([Ci]),y.qOj,y.TTD]});var ks={provide:mt,useExisting:(0,y.Gpc)(function(){return Uo})},Uo=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Pt),an}return(0,D.Z)(be,[{key:"_checkParentType",value:function(){Ji(this._parent)}}]),be}(Wi);Uo.\u0275fac=function(Le){return new(Le||Uo)(y.Y36(mt,13),y.Y36(ee,10),y.Y36(oe,10))},Uo.\u0275dir=y.lG2({type:Uo,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[y._Bn([ks]),y.qOj]});var ya={provide:mt,useExisting:(0,y.Gpc)(function(){return Ho})},Ho=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt){var an;return(0,P.Z)(this,be),(an=Le.call(this))._parent=Je,an._setValidators(Ke),an._setAsyncValidators(Pt),an}return(0,D.Z)(be,[{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 Ln(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){Ji(this._parent)}}]),be}(mt);function Ji(Ve){return!(Ve instanceof Uo||Ve instanceof Co||Ve instanceof Ho)}Ho.\u0275fac=function(Le){return new(Le||Ho)(y.Y36(mt,13),y.Y36(ee,10),y.Y36(oe,10))},Ho.\u0275dir=y.lG2({type:Ho,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[y._Bn([ya]),y.qOj]});var mo={provide:yt,useExisting:(0,y.Gpc)(function(){return tr})},tr=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(Je,Ke,Pt,an,nr){var Lr;return(0,P.Z)(this,be),(Lr=Le.call(this))._ngModelWarningConfig=nr,Lr._added=!1,Lr.update=new y.vpe,Lr._ngModelWarningSent=!1,Lr._parent=Je,Lr._setValidators(Ke),Lr._setAsyncValidators(Pt),Lr.valueAccessor=Wt((0,z.Z)(Lr),an),Lr}return(0,D.Z)(be,[{key:"isDisabled",set:function(Ke){}},{key:"ngOnChanges",value:function(Ke){this._added||this._setUpControl(),Ae(Ke,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(Ke){this.viewModel=Ke,this.update.emit(Ke)}},{key:"path",get:function(){return Ln(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}]),be}(yt);tr._ngModelWarningSentOnce=!1,tr.\u0275fac=function(Le){return new(Le||tr)(y.Y36(mt,13),y.Y36(ee,10),y.Y36(oe,10),y.Y36(T,10),y.Y36(Fo,8))},tr.\u0275dir=y.lG2({type:tr,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[y._Bn([mo]),y.qOj,y.TTD]});var Ba={provide:T,useExisting:(0,y.Gpc)(function(){return Kr}),multi:!0};function Oo(Ve,Le){return null==Ve?"".concat(Le):(Le&&"object"==typeof Le&&(Le="Object"),"".concat(Ve,": ").concat(Le).slice(0,50))}var Kr=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments))._optionMap=new Map,Je._idCounter=0,Je._compareWith=Object.is,Je}return(0,D.Z)(be,[{key:"compareWith",set:function(Ke){this._compareWith=Ke}},{key:"writeValue",value:function(Ke){this.value=Ke;var an=Oo(this._getOptionId(Ke),Ke);this.setProperty("value",an)}},{key:"registerOnChange",value:function(Ke){var Pt=this;this.onChange=function(an){Pt.value=Pt._getOptionValue(an),Ke(Pt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Ke){for(var Pt=0,an=Array.from(this._optionMap.keys());Pt<an.length;Pt++){var nr=an[Pt];if(this._compareWith(this._optionMap.get(nr),Ke))return nr}return null}},{key:"_getOptionValue",value:function(Ke){var Pt=function io(Ve){return Ve.split(":")[0]}(Ke);return this._optionMap.has(Pt)?this._optionMap.get(Pt):Ke}}]),be}(I);Kr.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Kr)))(be||Kr)}}(),Kr.\u0275dir=y.lG2({type:Kr,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("change",function(Ke){return be.onChange(Ke.target.value)})("blur",function(){return be.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([Ba]),y.qOj]});var la=function(){function Ve(Le,be,Je){(0,P.Z)(this,Ve),this._element=Le,this._renderer=be,this._select=Je,this._select&&(this.id=this._select._registerOption())}return(0,D.Z)(Ve,[{key:"ngValue",set:function(be){null!=this._select&&(this._select._optionMap.set(this.id,be),this._setElementValue(Oo(this.id,be)),this._select.writeValue(this._select.value))}},{key:"value",set:function(be){this._setElementValue(be),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),Ve}();la.\u0275fac=function(Le){return new(Le||la)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(Kr,9))},la.\u0275dir=y.lG2({type:la,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Jo={provide:T,useExisting:(0,y.Gpc)(function(){return ba}),multi:!0};function br(Ve,Le){return null==Ve?"".concat(Le):("string"==typeof Le&&(Le="'".concat(Le,"'")),Le&&"object"==typeof Le&&(Le="Object"),"".concat(Ve,": ").concat(Le).slice(0,50))}var ba=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments))._optionMap=new Map,Je._idCounter=0,Je._compareWith=Object.is,Je}return(0,D.Z)(be,[{key:"compareWith",set:function(Ke){this._compareWith=Ke}},{key:"writeValue",value:function(Ke){var an,Pt=this;if(this.value=Ke,Array.isArray(Ke)){var nr=Ke.map(function(Lr){return Pt._getOptionId(Lr)});an=function(Ir,_o){Ir._setSelected(nr.indexOf(_o.toString())>-1)}}else an=function(Ir,_o){Ir._setSelected(!1)};this._optionMap.forEach(an)}},{key:"registerOnChange",value:function(Ke){var Pt=this;this.onChange=function(an){var nr=[],Lr=an.selectedOptions;if(void 0!==Lr)for(var Ir=Lr,_o=0;_o<Ir.length;_o++){var uf=Ir[_o],ou=Pt._getOptionValue(uf.value);nr.push(ou)}else for(var rd=an.options,oc=0;oc<rd.length;oc++){var si=rd[oc];if(si.selected){var dr=Pt._getOptionValue(si.value);nr.push(dr)}}Pt.value=nr,Ke(nr)}}},{key:"_registerOption",value:function(Ke){var Pt=(this._idCounter++).toString();return this._optionMap.set(Pt,Ke),Pt}},{key:"_getOptionId",value:function(Ke){for(var Pt=0,an=Array.from(this._optionMap.keys());Pt<an.length;Pt++){var nr=an[Pt];if(this._compareWith(this._optionMap.get(nr)._value,Ke))return nr}return null}},{key:"_getOptionValue",value:function(Ke){var Pt=function Is(Ve){return Ve.split(":")[0]}(Ke);return this._optionMap.has(Pt)?this._optionMap.get(Pt)._value:Ke}}]),be}(I);ba.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(ba)))(be||ba)}}(),ba.\u0275dir=y.lG2({type:ba,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Le,be){1&Le&&y.NdJ("change",function(Ke){return be.onChange(Ke.target)})("blur",function(){return be.onTouched()})},inputs:{compareWith:"compareWith"},features:[y._Bn([Jo]),y.qOj]});var Qi=function(){function Ve(Le,be,Je){(0,P.Z)(this,Ve),this._element=Le,this._renderer=be,this._select=Je,this._select&&(this.id=this._select._registerOption(this))}return(0,D.Z)(Ve,[{key:"ngValue",set:function(be){null!=this._select&&(this._value=be,this._setElementValue(br(this.id,be)),this._select.writeValue(this._select.value))}},{key:"value",set:function(be){this._select?(this._value=be,this._setElementValue(br(this.id,be)),this._select.writeValue(this._select.value)):this._setElementValue(be)}},{key:"_setElementValue",value:function(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}},{key:"_setSelected",value:function(be){this._renderer.setProperty(this._element.nativeElement,"selected",be)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),Ve}();function Xa(Ve){return"number"==typeof Ve?Ve:parseInt(Ve,10)}function Ps(Ve){return null!=Ve&&!1!==Ve&&"false"!=="".concat(Ve)}function $a(Ve){return"number"==typeof Ve?Ve:parseFloat(Ve)}Qi.\u0275fac=function(Le){return new(Le||Qi)(y.Y36(y.SBq),y.Y36(y.Qsj),y.Y36(ba,9))},Qi.\u0275dir=y.lG2({type:Qi,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Fa=function(){function Ve(){(0,P.Z)(this,Ve),this._validator=Xt}return(0,D.Z)(Ve,[{key:"ngOnChanges",value:function(be){if(this.inputName in be){var Je=this.normalizeInput(be[this.inputName].currentValue);this._enabled=this.enabled(Je),this._validator=this._enabled?this.createValidator(Je):Xt,this._onChange&&this._onChange()}}},{key:"validate",value:function(be){return this._validator(be)}},{key:"registerOnValidatorChange",value:function(be){this._onChange=be}},{key:"enabled",value:function(be){return null!=be}}]),Ve}();Fa.\u0275fac=function(Le){return new(Le||Fa)},Fa.\u0275dir=y.lG2({type:Fa,features:[y.TTD]});var Tu={provide:ee,useExisting:(0,y.Gpc)(function(){return Ua}),multi:!0},Ua=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="max",Je.normalizeInput=function(Ke){return $a(Ke)},Je.createValidator=function(Ke){return xe(Ke)},Je}return(0,D.Z)(be)}(Fa);Ua.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Ua)))(be||Ua)}}(),Ua.\u0275dir=y.lG2({type:Ua,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("max",be._enabled?be.max:null)},inputs:{max:"max"},features:[y._Bn([Tu]),y.qOj]});var Qo={provide:ee,useExisting:(0,y.Gpc)(function(){return es}),multi:!0},es=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="min",Je.normalizeInput=function(Ke){return $a(Ke)},Je.createValidator=function(Ke){return ot(Ke)},Je}return(0,D.Z)(be)}(Fa);es.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(es)))(be||es)}}(),es.\u0275dir=y.lG2({type:es,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("min",be._enabled?be.min:null)},inputs:{min:"min"},features:[y._Bn([Qo]),y.qOj]});var Rs={provide:ee,useExisting:(0,y.Gpc)(function(){return wo}),multi:!0},iu={provide:ee,useExisting:(0,y.Gpc)(function(){return Ha}),multi:!0},wo=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="required",Je.normalizeInput=function(Ke){return Ps(Ke)},Je.createValidator=function(Ke){return _e},Je}return(0,D.Z)(be,[{key:"enabled",value:function(Ke){return Ke}}]),be}(Fa);wo.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(wo)))(be||wo)}}(),wo.\u0275dir=y.lG2({type:wo,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("required",be._enabled?"":null)},inputs:{required:"required"},features:[y._Bn([Rs]),y.qOj]});var Ha=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).createValidator=function(Ke){return ke},Je}return(0,D.Z)(be)}(wo);Ha.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Ha)))(be||Ha)}}(),Ha.\u0275dir=y.lG2({type:Ha,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("required",be._enabled?"":null)},features:[y._Bn([iu]),y.qOj]});var Eu={provide:ee,useExisting:(0,y.Gpc)(function(){return ve}),multi:!0},ve=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="email",Je.normalizeInput=function(Ke){return""===Ke||!0===Ke||"true"===Ke},Je.createValidator=function(Ke){return Be},Je}return(0,D.Z)(be,[{key:"enabled",value:function(Ke){return Ke}}]),be}(Fa);ve.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(ve)))(be||ve)}}(),ve.\u0275dir=y.lG2({type:ve,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[y._Bn([Eu]),y.qOj]});var Pe={provide:ee,useExisting:(0,y.Gpc)(function(){return Ge}),multi:!0},Ge=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="minlength",Je.normalizeInput=function(Ke){return Xa(Ke)},Je.createValidator=function(Ke){return ct(Ke)},Je}return(0,D.Z)(be)}(Fa);Ge.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Ge)))(be||Ge)}}(),Ge.\u0275dir=y.lG2({type:Ge,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("minlength",be._enabled?be.minlength:null)},inputs:{minlength:"minlength"},features:[y._Bn([Pe]),y.qOj]});var gt={provide:ee,useExisting:(0,y.Gpc)(function(){return St}),multi:!0},St=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="maxlength",Je.normalizeInput=function(Ke){return Xa(Ke)},Je.createValidator=function(Ke){return Mt(Ke)},Je}return(0,D.Z)(be)}(Fa);St.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(St)))(be||St)}}(),St.\u0275dir=y.lG2({type:St,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("maxlength",be._enabled?be.maxlength:null)},inputs:{maxlength:"maxlength"},features:[y._Bn([gt]),y.qOj]});var un={provide:ee,useExisting:(0,y.Gpc)(function(){return Mn}),multi:!0},Mn=function(Ve){(0,U.Z)(be,Ve);var Le=(0,L.Z)(be);function be(){var Je;return(0,P.Z)(this,be),(Je=Le.apply(this,arguments)).inputName="pattern",Je.normalizeInput=function(Ke){return Ke},Je.createValidator=function(Ke){return Nt(Ke)},Je}return(0,D.Z)(be)}(Fa);Mn.\u0275fac=function(){var Ve;return function(be){return(Ve||(Ve=y.n5z(Mn)))(be||Mn)}}(),Mn.\u0275dir=y.lG2({type:Mn,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Le,be){2&Le&&y.uIk("pattern",be._enabled?be.pattern:null)},inputs:{pattern:"pattern"},features:[y._Bn([un]),y.qOj]});var ar=(0,D.Z)(function Ve(){(0,P.Z)(this,Ve)});ar.\u0275fac=function(Le){return new(Le||ar)},ar.\u0275mod=y.oAB({type:ar}),ar.\u0275inj=y.cJS({imports:[[bn]]});var ai=(0,D.Z)(function Ve(){(0,P.Z)(this,Ve)});ai.\u0275fac=function(Le){return new(Le||ai)},ai.\u0275mod=y.oAB({type:ai}),ai.\u0275inj=y.cJS({imports:[ar]});var Xi=function(){function Ve(){(0,P.Z)(this,Ve)}return(0,D.Z)(Ve,null,[{key:"withConfig",value:function(be){return{ngModule:Ve,providers:[{provide:Fo,useValue:be.warnOnNgModelWithFormControl}]}}}]),Ve}();function So(Ve){return void 0!==Ve.asyncValidators||void 0!==Ve.validators||void 0!==Ve.updateOn}Xi.\u0275fac=function(Le){return new(Le||Xi)},Xi.\u0275mod=y.oAB({type:Xi}),Xi.\u0275inj=y.cJS({imports:[ar]});var xi=function(){function Ve(){(0,P.Z)(this,Ve)}return(0,D.Z)(Ve,[{key:"group",value:function(be){var Je=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ke=this._reduceControls(be),Pt=null,an=null,nr=void 0;return null!=Je&&(So(Je)?(Pt=null!=Je.validators?Je.validators:null,an=null!=Je.asyncValidators?Je.asyncValidators:null,nr=null!=Je.updateOn?Je.updateOn:void 0):(Pt=null!=Je.validator?Je.validator:null,an=null!=Je.asyncValidator?Je.asyncValidator:null)),new uo(Ke,{asyncValidators:an,updateOn:nr,validators:Pt})}},{key:"control",value:function(be,Je,Ke){return new lo(be,Je,Ke)}},{key:"array",value:function(be,Je,Ke){var Pt=this,an=be.map(function(nr){return Pt._createControl(nr)});return new mi(an,Je,Ke)}},{key:"_reduceControls",value:function(be){var Je=this,Ke={};return Object.keys(be).forEach(function(Pt){Ke[Pt]=Je._createControl(be[Pt])}),Ke}},{key:"_createControl",value:function(be){if(qo(be)||yi(be)||Ja(be))return be;if(Array.isArray(be)){var Je=be[0],Ke=be.length>1?be[1]:null,Pt=be.length>2?be[2]:null;return this.control(Je,Ke,Pt)}return this.control(be)}}]),Ve}();xi.\u0275fac=function(Le){return new(Le||xi)},xi.\u0275prov=y.Yz7({token:xi,factory:xi.\u0275fac,providedIn:Xi});new y.GfV("13.3.11")},508:function(qe,J,m){"use strict";m.d(J,{yN:function(){return ge},mZ:function(){return Oe},rD:function(){return Et},K7:function(){return dn},HF:function(){return Dt},Y2:function(){return de},BQ:function(){return _e},X2:function(){return Ut},uc:function(){return yt},Nv:function(){return On},ey:function(){return jn},Ng:function(){return Yn},rN:function(){return zn},nP:function(){return We},us:function(){return at},wG:function(){return Te},si:function(){return ue},IR:function(){return wn},CB:function(){return mn},jH:function(){return lr},pj:function(){return Nt},Kr:function(){return Xt},Id:function(){return Mt},FD:function(){return qt},dB:function(){return Xe},sb:function(){return en},E0:function(){return Ht}});var z=m(7326),Y=m(3237),M=m(1120),U=m(136),L=m(9388),P=m(3144),D=m(5671),y=m(5e3),K=m(226),E=(new y.GfV("13.3.9"),m(9808)),A=m(925),k=m(5664),I=m(3191),T=m(8929),w=m(7451),S=m(1059),N=m(6360),R=m(1159),W=["*",[["mat-option"],["ng-container"]]];function ce(Kt,tt){if(1&Kt&&y._UZ(0,"mat-pseudo-checkbox",4),2&Kt){var Ue=y.oxw();y.Q6J("state",Ue.selected?"checked":"unchecked")("disabled",Ue.disabled)}}function se(Kt,tt){if(1&Kt&&(y.TgZ(0,"span",5),y._uU(1),y.qZA()),2&Kt){var Ue=y.oxw();y.xp6(1),y.hij("(",Ue.group.label,")")}}new y.GfV("13.3.9");var ge=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});ge.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ge.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ge.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ge.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var Oe=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Oe.COMPLEX="375ms",Oe.ENTERING="225ms",Oe.EXITING="195ms";var xe=new y.OlP("mat-sanity-checks",{providedIn:"root",factory:function ot(){return!0}}),_e=function(){function Kt(tt,Ue,Ee){(0,D.Z)(this,Kt),this._sanityChecks=Ue,this._document=Ee,this._hasDoneGlobalChecks=!1,tt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(Kt,[{key:"_checkIsEnabled",value:function(Ue){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ue])}}]),Kt}();function Mt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._disabled=!1,He}return(0,P.Z)(Ee,[{key:"disabled",get:function(){return this._disabled},set:function(bt){this._disabled=(0,I.Ig)(bt)}}]),Ee}(Kt)}function Nt(Kt,tt){return function(Ue){(0,U.Z)(He,Ue);var Ee=(0,L.Z)(He);function He(){var bt;(0,D.Z)(this,He);for(var Yt=arguments.length,En=new Array(Yt),rr=0;rr<Yt;rr++)En[rr]=arguments[rr];return(bt=Ee.call.apply(Ee,[this].concat(En))).defaultColor=tt,bt.color=tt,bt}return(0,P.Z)(He,[{key:"color",get:function(){return this._color},set:function(Yt){var En=Yt||this.defaultColor;En!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),En&&this._elementRef.nativeElement.classList.add("mat-".concat(En)),this._color=En)}}]),He}(Kt)}function Xt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._disableRipple=!1,He}return(0,P.Z)(Ee,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(bt){this._disableRipple=(0,I.Ig)(bt)}}]),Ee}(Kt)}function en(Kt){var tt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(Ue){(0,U.Z)(He,Ue);var Ee=(0,L.Z)(He);function He(){var bt;(0,D.Z)(this,He);for(var Yt=arguments.length,En=new Array(Yt),rr=0;rr<Yt;rr++)En[rr]=arguments[rr];return(bt=Ee.call.apply(Ee,[this].concat(En)))._tabIndex=tt,bt.defaultTabIndex=tt,bt}return(0,P.Z)(He,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Yt){this._tabIndex=null!=Yt?(0,I.su)(Yt):this.defaultTabIndex}}]),He}(Kt)}function qt(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt))).stateChanges=new T.xQ,He.errorState=!1,He}return(0,P.Z)(Ee,[{key:"updateErrorState",value:function(){var bt=this.errorState,Yt=this._parentFormGroup||this._parentForm,En=this.errorStateMatcher||this._defaultErrorStateMatcher,rr=this.ngControl?this.ngControl.control:null,pn=En.isErrorState(rr,Yt);pn!==bt&&(this.errorState=pn,this.stateChanges.next())}}]),Ee}(Kt)}function Xe(Kt){return function(tt){(0,U.Z)(Ee,tt);var Ue=(0,L.Z)(Ee);function Ee(){var He;(0,D.Z)(this,Ee);for(var bt=arguments.length,Yt=new Array(bt),En=0;En<bt;En++)Yt[En]=arguments[En];return(He=Ue.call.apply(Ue,[this].concat(Yt)))._isInitialized=!1,He._pendingSubscribers=[],He.initialized=new w.y(function(rr){He._isInitialized?He._notifySubscriber(rr):He._pendingSubscribers.push(rr)}),He}return(0,P.Z)(Ee,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(bt){bt.next(),bt.complete()}}]),Ee}(Kt)}_e.\u0275fac=function(tt){return new(tt||_e)(y.LFG(k.qm),y.LFG(xe,8),y.LFG(E.K0))},_e.\u0275mod=y.oAB({type:_e}),_e.\u0275inj=y.cJS({imports:[[K.vT],K.vT]});var jt=new y.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function rt(){return(0,y.f3M)(y.soG)}});var vt=function(){function Kt(){(0,D.Z)(this,Kt),this._localeChanges=new T.xQ,this.localeChanges=this._localeChanges}return(0,P.Z)(Kt,[{key:"getValidDateOrNull",value:function(Ue){return this.isDateInstance(Ue)&&this.isValid(Ue)?Ue:null}},{key:"deserialize",value:function(Ue){return null==Ue||this.isDateInstance(Ue)&&this.isValid(Ue)?Ue:this.invalid()}},{key:"setLocale",value:function(Ue){this.locale=Ue,this._localeChanges.next()}},{key:"compareDate",value:function(Ue,Ee){return this.getYear(Ue)-this.getYear(Ee)||this.getMonth(Ue)-this.getMonth(Ee)||this.getDate(Ue)-this.getDate(Ee)}},{key:"sameDate",value:function(Ue,Ee){if(Ue&&Ee){var He=this.isValid(Ue),bt=this.isValid(Ee);return He&&bt?!this.compareDate(Ue,Ee):He==bt}return Ue==Ee}},{key:"clampDate",value:function(Ue,Ee,He){return Ee&&this.compareDate(Ue,Ee)<0?Ee:He&&this.compareDate(Ue,He)>0?He:Ue}}]),Kt}(),nt=new y.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 It(Kt,tt){for(var Ue=Array(Kt),Ee=0;Ee<Kt;Ee++)Ue[Ee]=tt(Ee);return Ue}var on=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee,He){var bt,Yt;return(0,D.Z)(this,Ue),(Yt=tt.call(this)).useUtcForDisplay=!1,(0,Y.Z)((bt=(0,z.Z)(Yt),(0,M.Z)(Ue.prototype)),"setLocale",bt).call(bt,Ee),Yt}return(0,P.Z)(Ue,[{key:"getYear",value:function(He){return He.getFullYear()}},{key:"getMonth",value:function(He){return He.getMonth()}},{key:"getDate",value:function(He){return He.getDate()}},{key:"getDayOfWeek",value:function(He){return He.getDay()}},{key:"getMonthNames",value:function(He){var bt=this,Yt=new Intl.DateTimeFormat(this.locale,{month:He,timeZone:"utc"});return It(12,function(En){return bt._format(Yt,new Date(2017,En,1))})}},{key:"getDateNames",value:function(){var He=this,bt=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return It(31,function(Yt){return He._format(bt,new Date(2017,0,Yt+1))})}},{key:"getDayOfWeekNames",value:function(He){var bt=this,Yt=new Intl.DateTimeFormat(this.locale,{weekday:He,timeZone:"utc"});return It(7,function(En){return bt._format(Yt,new Date(2017,0,En+1))})}},{key:"getYearName",value:function(He){var bt=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(bt,He)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(He){return this.getDate(this._createDateWithOverflow(this.getYear(He),this.getMonth(He)+1,0))}},{key:"clone",value:function(He){return new Date(He.getTime())}},{key:"createDate",value:function(He,bt,Yt){var En=this._createDateWithOverflow(He,bt,Yt);return En.getMonth(),En}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(He){return"number"==typeof He?new Date(He):He?new Date(Date.parse(He)):null}},{key:"format",value:function(He,bt){if(!this.isValid(He))throw Error("NativeDateAdapter: Cannot format invalid date.");var Yt=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},bt),{timeZone:"utc"}));return this._format(Yt,He)}},{key:"addCalendarYears",value:function(He,bt){return this.addCalendarMonths(He,12*bt)}},{key:"addCalendarMonths",value:function(He,bt){var Yt=this._createDateWithOverflow(this.getYear(He),this.getMonth(He)+bt,this.getDate(He));return this.getMonth(Yt)!=((this.getMonth(He)+bt)%12+12)%12&&(Yt=this._createDateWithOverflow(this.getYear(Yt),this.getMonth(Yt),0)),Yt}},{key:"addCalendarDays",value:function(He,bt){return this._createDateWithOverflow(this.getYear(He),this.getMonth(He),this.getDate(He)+bt)}},{key:"toIso8601",value:function(He){return[He.getUTCFullYear(),this._2digit(He.getUTCMonth()+1),this._2digit(He.getUTCDate())].join("-")}},{key:"deserialize",value:function(He){if("string"==typeof He){if(!He)return null;if(Rt.test(He)){var bt=new Date(He);if(this.isValid(bt))return bt}}return(0,Y.Z)((0,M.Z)(Ue.prototype),"deserialize",this).call(this,He)}},{key:"isDateInstance",value:function(He){return He instanceof Date}},{key:"isValid",value:function(He){return!isNaN(He.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(He,bt,Yt){var En=new Date;return En.setFullYear(He,bt,Yt),En.setHours(0,0,0,0),En}},{key:"_2digit",value:function(He){return("00"+He).slice(-2)}},{key:"_format",value:function(He,bt){var Yt=new Date;return Yt.setUTCFullYear(bt.getFullYear(),bt.getMonth(),bt.getDate()),Yt.setUTCHours(bt.getHours(),bt.getMinutes(),bt.getSeconds(),bt.getMilliseconds()),He.format(Yt)}}]),Ue}(vt);on.\u0275fac=function(tt){return new(tt||on)(y.LFG(jt,8),y.LFG(A.t4))},on.\u0275prov=y.Yz7({token:on,factory:on.\u0275fac});var An=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});An.\u0275fac=function(tt){return new(tt||An)},An.\u0275mod=y.oAB({type:An}),An.\u0275inj=y.cJS({providers:[{provide:vt,useClass:on}]});var Gt=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Gt.\u0275fac=function(tt){return new(tt||Gt)},Gt.\u0275mod=y.oAB({type:Gt}),Gt.\u0275inj=y.cJS({providers:[{provide:nt,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:[[An]]});var Zt=function(){function Kt(){(0,D.Z)(this,Kt)}return(0,P.Z)(Kt,[{key:"isErrorState",value:function(Ue,Ee){return!!(Ue&&Ue.invalid&&(Ue.dirty||Ee&&Ee.submitted))}}]),Kt}();Zt.\u0275fac=function(tt){return new(tt||Zt)},Zt.\u0275prov=y.Yz7({token:Zt,factory:Zt.\u0275fac});var Et=function(){function Kt(){(0,D.Z)(this,Kt)}return(0,P.Z)(Kt,[{key:"isErrorState",value:function(Ue,Ee){return!!(Ue&&Ue.invalid&&(Ue.touched||Ee&&Ee.submitted))}}]),Kt}();Et.\u0275fac=function(tt){return new(tt||Et)},Et.\u0275prov=y.Yz7({token:Et,factory:Et.\u0275fac,providedIn:"root"});var Ut=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});function Ht(Kt,tt){var Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";Kt.changes.pipe((0,S.O)(Kt)).subscribe(function(Ee){var He=Ee.length;sn(tt,"".concat(Ue,"-2-line"),!1),sn(tt,"".concat(Ue,"-3-line"),!1),sn(tt,"".concat(Ue,"-multi-line"),!1),2===He||3===He?sn(tt,"".concat(Ue,"-").concat(He,"-line"),!0):He>3&&sn(tt,"".concat(Ue,"-multi-line"),!0)})}function sn(Kt,tt,Ue){Kt.nativeElement.classList.toggle(tt,Ue)}Ut.\u0275fac=function(tt){return new(tt||Ut)},Ut.\u0275dir=y.lG2({type:Ut,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var yt=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});yt.\u0275fac=function(tt){return new(tt||yt)},yt.\u0275mod=y.oAB({type:yt}),yt.\u0275inj=y.cJS({imports:[[_e],_e]});var mt=function(){function Kt(tt,Ue,Ee){(0,D.Z)(this,Kt),this._renderer=tt,this.element=Ue,this.config=Ee,this.state=3}return(0,P.Z)(Kt,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),Kt}(),cn={enterDuration:225,exitDuration:150},j=(0,A.i$)({passive:!0}),V=["mousedown","touchstart"],Jn=["mouseup","mouseleave","touchend","touchcancel"],wn=function(){function Kt(tt,Ue,Ee,He){(0,D.Z)(this,Kt),this._target=tt,this._ngZone=Ue,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,He.isBrowser&&(this._containerElement=(0,I.fI)(Ee))}return(0,P.Z)(Kt,[{key:"fadeInRipple",value:function(Ue,Ee){var He=this,bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Yt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),En=Object.assign(Object.assign({},cn),bt.animation);bt.centered&&(Ue=Yt.left+Yt.width/2,Ee=Yt.top+Yt.height/2);var rr=bt.radius||dt(Ue,Ee,Yt),pn=Ue-Yt.left,lt=Ee-Yt.top,Se=En.enterDuration,Ae=document.createElement("div");Ae.classList.add("mat-ripple-element"),Ae.style.left="".concat(pn-rr,"px"),Ae.style.top="".concat(lt-rr,"px"),Ae.style.height="".concat(2*rr,"px"),Ae.style.width="".concat(2*rr,"px"),null!=bt.color&&(Ae.style.backgroundColor=bt.color),Ae.style.transitionDuration="".concat(Se,"ms"),this._containerElement.appendChild(Ae),Bt(Ae),Ae.style.transform="scale(1)";var Qe=new mt(this,Ae,bt);return Qe.state=0,this._activeRipples.add(Qe),bt.persistent||(this._mostRecentTransientRipple=Qe),this._runTimeoutOutsideZone(function(){var _t=Qe===He._mostRecentTransientRipple;Qe.state=1,!bt.persistent&&(!_t||!He._isPointerDown)&&Qe.fadeOut()},Se),Qe}},{key:"fadeOutRipple",value:function(Ue){var Ee=this._activeRipples.delete(Ue);if(Ue===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),Ee){var He=Ue.element,bt=Object.assign(Object.assign({},cn),Ue.config.animation);He.style.transitionDuration="".concat(bt.exitDuration,"ms"),He.style.opacity="0",Ue.state=2,this._runTimeoutOutsideZone(function(){Ue.state=3,He.remove()},bt.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(Ue){return Ue.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(Ue){Ue.config.persistent||Ue.fadeOut()})}},{key:"setupTriggerEvents",value:function(Ue){var Ee=(0,I.fI)(Ue);!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,this._registerEvents(V))}},{key:"handleEvent",value:function(Ue){"mousedown"===Ue.type?this._onMousedown(Ue):"touchstart"===Ue.type?this._onTouchStart(Ue):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Jn),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(Ue){var Ee=(0,k.X6)(Ue),He=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ee&&!He&&(this._isPointerDown=!0,this.fadeInRipple(Ue.clientX,Ue.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(Ue){if(!this._target.rippleDisabled&&!(0,k.yG)(Ue)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var Ee=Ue.changedTouches,He=0;He<Ee.length;He++)this.fadeInRipple(Ee[He].clientX,Ee[He].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(function(Ue){var Ee=1===Ue.state||Ue.config.terminateOnPointerUp&&0===Ue.state;!Ue.config.persistent&&Ee&&Ue.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(Ue){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(Ue,Ee)})}},{key:"_registerEvents",value:function(Ue){var Ee=this;this._ngZone.runOutsideAngular(function(){Ue.forEach(function(He){Ee._triggerElement.addEventListener(He,Ee,j)})})}},{key:"_removeTriggerEvents",value:function(){var Ue=this;this._triggerElement&&(V.forEach(function(Ee){Ue._triggerElement.removeEventListener(Ee,Ue,j)}),this._pointerUpEventsRegistered&&Jn.forEach(function(Ee){Ue._triggerElement.removeEventListener(Ee,Ue,j)}))}}]),Kt}();function Bt(Kt){window.getComputedStyle(Kt).getPropertyValue("opacity")}function dt(Kt,tt,Ue){var Ee=Math.max(Math.abs(Kt-Ue.left),Math.abs(Kt-Ue.right)),He=Math.max(Math.abs(tt-Ue.top),Math.abs(tt-Ue.bottom));return Math.sqrt(Ee*Ee+He*He)}var de=new y.OlP("mat-ripple-global-options"),Te=function(){function Kt(tt,Ue,Ee,He,bt){(0,D.Z)(this,Kt),this._elementRef=tt,this._animationMode=bt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=He||{},this._rippleRenderer=new wn(this,Ue,tt,Ee)}return(0,P.Z)(Kt,[{key:"disabled",get:function(){return this._disabled},set:function(Ue){Ue&&this.fadeOutAllNonPersistent(),this._disabled=Ue,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(Ue){this._trigger=Ue,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(Ue){var Ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,He=arguments.length>2?arguments[2]:void 0;return"number"==typeof Ue?this._rippleRenderer.fadeInRipple(Ue,Ee,Object.assign(Object.assign({},this.rippleConfig),He)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),Ue))}}]),Kt}();Te.\u0275fac=function(tt){return new(tt||Te)(y.Y36(y.SBq),y.Y36(y.R0b),y.Y36(A.t4),y.Y36(de,8),y.Y36(N.Qb,8))},Te.\u0275dir=y.lG2({type:Te,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(tt,Ue){2&tt&&y.ekj("mat-ripple-unbounded",Ue.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 ue=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});ue.\u0275fac=function(tt){return new(tt||ue)},ue.\u0275mod=y.oAB({type:ue}),ue.\u0275inj=y.cJS({imports:[[_e],_e]});var We=(0,P.Z)(function Kt(tt){(0,D.Z)(this,Kt),this._animationMode=tt,this.state="unchecked",this.disabled=!1});We.\u0275fac=function(tt){return new(tt||We)(y.Y36(N.Qb,8))},We.\u0275cmp=y.Xpm({type:We,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(tt,Ue){2&tt&&y.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Ue.state)("mat-pseudo-checkbox-checked","checked"===Ue.state)("mat-pseudo-checkbox-disabled",Ue.disabled)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(tt,Ue){},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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::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}\n'],encapsulation:2,changeDetection:0});var at=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});at.\u0275fac=function(tt){return new(tt||at)},at.\u0275mod=y.oAB({type:at}),at.\u0275inj=y.cJS({imports:[[_e]]});var Dt=new y.OlP("MAT_OPTION_PARENT_COMPONENT"),tn=Mt(function(){return(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)})}()),Jt=0,nn=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee){var He,bt;return(0,D.Z)(this,Ue),(He=tt.call(this))._labelId="mat-optgroup-label-".concat(Jt++),He._inert=null!==(bt=null==Ee?void 0:Ee.inertGroups)&&void 0!==bt&&bt,He}return(0,P.Z)(Ue)}(tn);nn.\u0275fac=function(tt){return new(tt||nn)(y.Y36(Dt,8))},nn.\u0275dir=y.lG2({type:nn,inputs:{label:"label"},features:[y.qOj]});var dn=new y.OlP("MatOptgroup"),On=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(){return(0,D.Z)(this,Ue),tt.apply(this,arguments)}return(0,P.Z)(Ue)}(nn);On.\u0275fac=function(){var Kt;return function(Ue){return(Kt||(Kt=y.n5z(On)))(Ue||On)}}(),On.\u0275cmp=y.Xpm({type:On,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(tt,Ue){2&tt&&(y.uIk("role",Ue._inert?null:"group")("aria-disabled",Ue._inert?null:Ue.disabled.toString())("aria-labelledby",Ue._inert?null:Ue._labelId),y.ekj("mat-optgroup-disabled",Ue.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[y._Bn([{provide:dn,useExisting:On}]),y.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(tt,Ue){1&tt&&(y.F$t(W),y.TgZ(0,"span",0),y._uU(1),y.Hsn(2),y.qZA(),y.Hsn(3,1)),2&tt&&(y.Q6J("id",Ue._labelId),y.xp6(1),y.hij("",Ue.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}\n"],encapsulation:2,changeDetection:0});var Dn=0,zn=(0,P.Z)(function Kt(tt){var Ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,D.Z)(this,Kt),this.source=tt,this.isUserInput=Ue}),Ln=function(){function Kt(tt,Ue,Ee,He){(0,D.Z)(this,Kt),this._element=tt,this._changeDetectorRef=Ue,this._parent=Ee,this.group=He,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Dn++),this.onSelectionChange=new y.vpe,this._stateChanges=new T.xQ}return(0,P.Z)(Kt,[{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(Ue){this._disabled=(0,I.Ig)(Ue)}},{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(Ue,Ee){var He=this._getHostElement();"function"==typeof He.focus&&He.focus(Ee)}},{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(Ue){(Ue.keyCode===R.K5||Ue.keyCode===R.L_)&&!(0,R.Vb)(Ue)&&(this._selectViaInteraction(),Ue.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 Ue=this.viewValue;Ue!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ue,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var Ue=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new zn(this,Ue))}}]),Kt}();Ln.\u0275fac=function(tt){y.$Z()},Ln.\u0275dir=y.lG2({type:Ln,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var jn=function(Kt){(0,U.Z)(Ue,Kt);var tt=(0,L.Z)(Ue);function Ue(Ee,He,bt,Yt){return(0,D.Z)(this,Ue),tt.call(this,Ee,He,bt,Yt)}return(0,P.Z)(Ue)}(Ln);function mn(Kt,tt,Ue){if(Ue.length){for(var Ee=tt.toArray(),He=Ue.toArray(),bt=0,Yt=0;Yt<Kt+1;Yt++)Ee[Yt].group&&Ee[Yt].group===He[bt]&&bt++;return bt}return 0}function lr(Kt,tt,Ue,Ee){return Kt<Ue?Kt:Kt+tt>Ue+Ee?Math.max(0,Kt-Ee+tt):Ue}jn.\u0275fac=function(tt){return new(tt||jn)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(Dt,8),y.Y36(dn,8))},jn.\u0275cmp=y.Xpm({type:jn,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(tt,Ue){1&tt&&y.NdJ("click",function(){return Ue._selectViaInteraction()})("keydown",function(He){return Ue._handleKeydown(He)}),2&tt&&(y.Ikx("id",Ue.id),y.uIk("tabindex",Ue._getTabIndex())("aria-selected",Ue._getAriaSelected())("aria-disabled",Ue.disabled.toString()),y.ekj("mat-selected",Ue.selected)("mat-option-multiple",Ue.multiple)("mat-active",Ue.active)("mat-option-disabled",Ue.disabled))},exportAs:["matOption"],features:[y.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(tt,Ue){1&tt&&(y.F$t(),y.YNc(0,ce,1,2,"mat-pseudo-checkbox",0),y.TgZ(1,"span",1),y.Hsn(2),y.qZA(),y.YNc(3,se,2,1,"span",2),y._UZ(4,"div",3)),2&tt&&(y.Q6J("ngIf",Ue.multiple),y.xp6(3),y.Q6J("ngIf",Ue.group&&Ue.group._inert),y.xp6(1),y.Q6J("matRippleTrigger",Ue._getHostElement())("matRippleDisabled",Ue.disabled||Ue.disableRipple))},directives:[We,E.O5,Te],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:transparent}.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}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}\n"],encapsulation:2,changeDetection:0});var Yn=(0,P.Z)(function Kt(){(0,D.Z)(this,Kt)});Yn.\u0275fac=function(tt){return new(tt||Yn)},Yn.\u0275mod=y.oAB({type:Yn}),Yn.\u0275inj=y.cJS({imports:[[ue,E.ez,_e,at]]})},4834:function(qe,J,m){"use strict";m.d(J,{d:function(){return P},t:function(){return D}});var z=m(5671),Y=m(3144),M=m(5e3),U=m(3191),L=m(508),P=function(){function y(){(0,z.Z)(this,y),this._vertical=!1,this._inset=!1}return(0,Y.Z)(y,[{key:"vertical",get:function(){return this._vertical},set:function(F){this._vertical=(0,U.Ig)(F)}},{key:"inset",get:function(){return this._inset},set:function(F){this._inset=(0,U.Ig)(F)}}]),y}();P.\u0275fac=function(K){return new(K||P)},P.\u0275cmp=M.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(K,F){2&K&&(M.uIk("aria-orientation",F.vertical?"vertical":"horizontal"),M.ekj("mat-divider-vertical",F.vertical)("mat-divider-horizontal",!F.vertical)("mat-divider-inset",F.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(K,F){},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}\n"],encapsulation:2,changeDetection:0});var D=(0,Y.Z)(function y(){(0,z.Z)(this,y)});D.\u0275fac=function(K){return new(K||D)},D.\u0275mod=M.oAB({type:D}),D.\u0275inj=M.cJS({imports:[[L.BQ],L.BQ]})},7322:function(qe,J,m){"use strict";m.d(J,{Eo:function(){return rt},G_:function(){return j},KE:function(){return V},R9:function(){return Ht},TO:function(){return Xe},hX:function(){return An},lN:function(){return Jn}});var z=m(4902),Y=m(136),M=m(9388),U=m(3144),L=m(5671),P=m(7144),D=m(9808),y=m(5e3),K=m(508),F=m(3191),E=m(8929),A=m(6787),k=m(3753),I=m(1059),T=m(7625),w=m(2986),S=m(1777),N=m(6360),R=m(226),W=m(925),$=["connectionContainer"],ce=["inputContainer"],se=["label"];function ee(wn,Bt){1&wn&&(y.ynx(0),y.TgZ(1,"div",14),y._UZ(2,"div",15)(3,"div",16)(4,"div",17),y.qZA(),y.TgZ(5,"div",18),y._UZ(6,"div",15)(7,"div",16)(8,"div",17),y.qZA(),y.BQk())}function oe(wn,Bt){if(1&wn){var dt=y.EpF();y.TgZ(0,"div",19),y.NdJ("cdkObserveContent",function(){return y.CHM(dt),y.oxw().updateOutlineGap()}),y.Hsn(1,1),y.qZA()}if(2&wn){var de=y.oxw();y.Q6J("cdkObserveContentDisabled","outline"!=de.appearance)}}function ge(wn,Bt){if(1&wn&&(y.ynx(0),y.Hsn(1,2),y.TgZ(2,"span"),y._uU(3),y.qZA(),y.BQk()),2&wn){var dt=y.oxw(2);y.xp6(3),y.Oqu(dt._control.placeholder)}}function Oe(wn,Bt){1&wn&&y.Hsn(0,3,["*ngSwitchCase","true"])}function ot(wn,Bt){1&wn&&(y.TgZ(0,"span",23),y._uU(1," *"),y.qZA())}function xe(wn,Bt){if(1&wn){var dt=y.EpF();y.TgZ(0,"label",20,21),y.NdJ("cdkObserveContent",function(){return y.CHM(dt),y.oxw().updateOutlineGap()}),y.YNc(2,ge,4,1,"ng-container",12),y.YNc(3,Oe,1,0,"ng-content",12),y.YNc(4,ot,2,0,"span",22),y.qZA()}if(2&wn){var de=y.oxw();y.ekj("mat-empty",de._control.empty&&!de._shouldAlwaysFloat())("mat-form-field-empty",de._control.empty&&!de._shouldAlwaysFloat())("mat-accent","accent"==de.color)("mat-warn","warn"==de.color),y.Q6J("cdkObserveContentDisabled","outline"!=de.appearance)("id",de._labelId)("ngSwitch",de._hasLabel()),y.uIk("for",de._control.id)("aria-owns",de._control.id),y.xp6(2),y.Q6J("ngSwitchCase",!1),y.xp6(1),y.Q6J("ngSwitchCase",!0),y.xp6(1),y.Q6J("ngIf",!de.hideRequiredMarker&&de._control.required&&!de._control.disabled)}}function _e(wn,Bt){1&wn&&(y.TgZ(0,"div",24),y.Hsn(1,4),y.qZA())}function ke(wn,Bt){if(1&wn&&(y.TgZ(0,"div",25),y._UZ(1,"span",26),y.qZA()),2&wn){var dt=y.oxw();y.xp6(1),y.ekj("mat-accent","accent"==dt.color)("mat-warn","warn"==dt.color)}}function Be(wn,Bt){if(1&wn&&(y.TgZ(0,"div"),y.Hsn(1,5),y.qZA()),2&wn){var dt=y.oxw();y.Q6J("@transitionMessages",dt._subscriptAnimationState)}}function ct(wn,Bt){if(1&wn&&(y.TgZ(0,"div",30),y._uU(1),y.qZA()),2&wn){var dt=y.oxw(2);y.Q6J("id",dt._hintLabelId),y.xp6(1),y.Oqu(dt.hintLabel)}}function Mt(wn,Bt){if(1&wn&&(y.TgZ(0,"div",27),y.YNc(1,ct,2,2,"div",28),y.Hsn(2,6),y._UZ(3,"div",29),y.Hsn(4,7),y.qZA()),2&wn){var dt=y.oxw();y.Q6J("@transitionMessages",dt._subscriptAnimationState),y.xp6(1),y.Q6J("ngIf",dt.hintLabel)}}var Nt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],en=0,qt=new y.OlP("MatError"),Xe=(0,U.Z)(function wn(Bt,dt){(0,L.Z)(this,wn),this.id="mat-error-".concat(en++),Bt||dt.nativeElement.setAttribute("aria-live","polite")});Xe.\u0275fac=function(Bt){return new(Bt||Xe)(y.$8M("aria-live"),y.Y36(y.SBq))},Xe.\u0275dir=y.lG2({type:Xe,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Bt,dt){2&Bt&&y.uIk("id",dt.id)},inputs:{id:"id"},features:[y._Bn([{provide:qt,useExisting:Xe}])]});var jt={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)")])])},rt=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});rt.\u0275fac=function(Bt){return new(Bt||rt)},rt.\u0275dir=y.lG2({type:rt});var It=0,on=new y.OlP("MatHint"),_n=(0,U.Z)(function wn(){(0,L.Z)(this,wn),this.align="start",this.id="mat-hint-".concat(It++)});_n.\u0275fac=function(Bt){return new(Bt||_n)},_n.\u0275dir=y.lG2({type:_n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Bt,dt){2&Bt&&(y.uIk("id",dt.id)("align",null),y.ekj("mat-form-field-hint-end","end"===dt.align))},inputs:{align:"align",id:"id"},features:[y._Bn([{provide:on,useExisting:_n}])]});var An=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});An.\u0275fac=function(Bt){return new(Bt||An)},An.\u0275dir=y.lG2({type:An,selectors:[["mat-label"]]});var Gt=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Gt.\u0275fac=function(Bt){return new(Bt||Gt)},Gt.\u0275dir=y.lG2({type:Gt,selectors:[["mat-placeholder"]]});var Zt=new y.OlP("MatPrefix"),Et=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Et.\u0275fac=function(Bt){return new(Bt||Et)},Et.\u0275dir=y.lG2({type:Et,selectors:[["","matPrefix",""]],features:[y._Bn([{provide:Zt,useExisting:Et}])]});var Ut=new y.OlP("MatSuffix"),Ht=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Ht.\u0275fac=function(Bt){return new(Bt||Ht)},Ht.\u0275dir=y.lG2({type:Ht,selectors:[["","matSuffix",""]],features:[y._Bn([{provide:Ut,useExisting:Ht}])]});var sn=0,cn=(0,K.pj)(function(){return(0,U.Z)(function wn(Bt){(0,L.Z)(this,wn),this._elementRef=Bt})}(),"primary"),$t=new y.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),j=new y.OlP("MatFormField"),V=function(wn){(0,Y.Z)(dt,wn);var Bt=(0,M.Z)(dt);function dt(de,Te,ue,We,at,Dt,tn){var Jt;return(0,L.Z)(this,dt),(Jt=Bt.call(this,de))._changeDetectorRef=Te,Jt._dir=ue,Jt._defaults=We,Jt._platform=at,Jt._ngZone=Dt,Jt._outlineGapCalculationNeededImmediately=!1,Jt._outlineGapCalculationNeededOnStable=!1,Jt._destroyed=new E.xQ,Jt._showAlwaysAnimate=!1,Jt._subscriptAnimationState="",Jt._hintLabel="",Jt._hintLabelId="mat-hint-".concat(sn++),Jt._labelId="mat-form-field-label-".concat(sn++),Jt.floatLabel=Jt._getDefaultFloatLabelState(),Jt._animationsEnabled="NoopAnimations"!==tn,Jt.appearance=We&&We.appearance?We.appearance:"legacy",Jt._hideRequiredMarker=!(!We||null==We.hideRequiredMarker)&&We.hideRequiredMarker,Jt}return(0,U.Z)(dt,[{key:"appearance",get:function(){return this._appearance},set:function(Te){var ue=this._appearance;this._appearance=Te||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&ue!==Te&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Te){this._hideRequiredMarker=(0,F.Ig)(Te)}},{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(Te){this._hintLabel=Te,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Te){Te!==this._floatLabel&&(this._floatLabel=Te||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Te){this._explicitFormFieldControl=Te}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Te=this;this._validateControlChild();var ue=this._control;ue.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(ue.controlType)),ue.stateChanges.pipe((0,I.O)(null)).subscribe(function(){Te._validatePlaceholders(),Te._syncDescribedByIds(),Te._changeDetectorRef.markForCheck()}),ue.ngControl&&ue.ngControl.valueChanges&&ue.ngControl.valueChanges.pipe((0,T.R)(this._destroyed)).subscribe(function(){return Te._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Te._ngZone.onStable.pipe((0,T.R)(Te._destroyed)).subscribe(function(){Te._outlineGapCalculationNeededOnStable&&Te.updateOutlineGap()})}),(0,A.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Te._outlineGapCalculationNeededOnStable=!0,Te._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(function(){Te._processHints(),Te._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(function(){Te._syncDescribedByIds(),Te._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,T.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Te._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Te.updateOutlineGap()})}):Te.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(Te){var ue=this._control?this._control.ngControl:null;return ue&&ue[Te]}},{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 Te=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,k.R)(this._label.nativeElement,"transitionend").pipe((0,w.q)(1)).subscribe(function(){Te._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 Te=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Te.push.apply(Te,(0,z.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var ue=this._hintChildren?this._hintChildren.find(function(at){return"start"===at.align}):null,We=this._hintChildren?this._hintChildren.find(function(at){return"end"===at.align}):null;ue?Te.push(ue.id):this._hintLabel&&Te.push(this._hintLabelId),We&&Te.push(We.id)}else this._errorChildren&&Te.push.apply(Te,(0,z.Z)(this._errorChildren.map(function(at){return at.id})));this._control.setDescribedByIds(Te)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Te=this._label?this._label.nativeElement:null,ue=this._connectionContainerRef.nativeElement,We=".mat-form-field-outline-start",at=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Te||!Te.children.length||!Te.textContent.trim()){for(var Dt=ue.querySelectorAll("".concat(We,", ").concat(at)),tn=0;tn<Dt.length;tn++)Dt[tn].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var Jt=0,nn=0,dn=ue.querySelectorAll(We),On=ue.querySelectorAll(at);if(this._label&&this._label.nativeElement.children.length){var Dn=ue.getBoundingClientRect();if(0===Dn.width&&0===Dn.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var zn=this._getStartEnd(Dn),Ln=Te.children,jn=this._getStartEnd(Ln[0].getBoundingClientRect()),mn=0,lr=0;lr<Ln.length;lr++)mn+=Ln[lr].offsetWidth;Jt=Math.abs(jn-zn)-5,nn=mn>0?.75*mn+10:0}for(var Yn=0;Yn<dn.length;Yn++)dn[Yn].style.width="".concat(Jt,"px");for(var Kt=0;Kt<On.length;Kt++)On[Kt].style.width="".concat(nn,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Te){return this._dir&&"rtl"===this._dir.value?Te.right:Te.left}},{key:"_isAttachedToDOM",value:function(){var Te=this._elementRef.nativeElement;if(Te.getRootNode){var ue=Te.getRootNode();return ue&&ue!==Te}return document.documentElement.contains(Te)}}]),dt}(cn);V.\u0275fac=function(Bt){return new(Bt||V)(y.Y36(y.SBq),y.Y36(y.sBO),y.Y36(R.Is,8),y.Y36($t,8),y.Y36(W.t4),y.Y36(y.R0b),y.Y36(N.Qb,8))},V.\u0275cmp=y.Xpm({type:V,selectors:[["mat-form-field"]],contentQueries:function(Bt,dt,de){var Te;(1&Bt&&(y.Suo(de,rt,5),y.Suo(de,rt,7),y.Suo(de,An,5),y.Suo(de,An,7),y.Suo(de,Gt,5),y.Suo(de,qt,5),y.Suo(de,on,5),y.Suo(de,Zt,5),y.Suo(de,Ut,5)),2&Bt)&&(y.iGM(Te=y.CRH())&&(dt._controlNonStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._controlStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._labelChildNonStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._labelChildStatic=Te.first),y.iGM(Te=y.CRH())&&(dt._placeholderChild=Te.first),y.iGM(Te=y.CRH())&&(dt._errorChildren=Te),y.iGM(Te=y.CRH())&&(dt._hintChildren=Te),y.iGM(Te=y.CRH())&&(dt._prefixChildren=Te),y.iGM(Te=y.CRH())&&(dt._suffixChildren=Te))},viewQuery:function(Bt,dt){var de;(1&Bt&&(y.Gf($,7),y.Gf(ce,5),y.Gf(se,5)),2&Bt)&&(y.iGM(de=y.CRH())&&(dt._connectionContainerRef=de.first),y.iGM(de=y.CRH())&&(dt._inputContainerRef=de.first),y.iGM(de=y.CRH())&&(dt._label=de.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(Bt,dt){2&Bt&&y.ekj("mat-form-field-appearance-standard","standard"==dt.appearance)("mat-form-field-appearance-fill","fill"==dt.appearance)("mat-form-field-appearance-outline","outline"==dt.appearance)("mat-form-field-appearance-legacy","legacy"==dt.appearance)("mat-form-field-invalid",dt._control.errorState)("mat-form-field-can-float",dt._canLabelFloat())("mat-form-field-should-float",dt._shouldLabelFloat())("mat-form-field-has-label",dt._hasFloatingLabel())("mat-form-field-hide-placeholder",dt._hideControlPlaceholder())("mat-form-field-disabled",dt._control.disabled)("mat-form-field-autofilled",dt._control.autofilled)("mat-focused",dt._control.focused)("ng-untouched",dt._shouldForward("untouched"))("ng-touched",dt._shouldForward("touched"))("ng-pristine",dt._shouldForward("pristine"))("ng-dirty",dt._shouldForward("dirty"))("ng-valid",dt._shouldForward("valid"))("ng-invalid",dt._shouldForward("invalid"))("ng-pending",dt._shouldForward("pending"))("_mat-animation-noopable",!dt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[y._Bn([{provide:j,useExisting:V}]),y.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(Bt,dt){1&Bt&&(y.F$t(Nt),y.TgZ(0,"div",0)(1,"div",1,2),y.NdJ("click",function(Te){return dt._control.onContainerClick&&dt._control.onContainerClick(Te)}),y.YNc(3,ee,9,0,"ng-container",3),y.YNc(4,oe,2,1,"div",4),y.TgZ(5,"div",5,6),y.Hsn(7),y.TgZ(8,"span",7),y.YNc(9,xe,5,16,"label",8),y.qZA()(),y.YNc(10,_e,2,0,"div",9),y.qZA(),y.YNc(11,ke,2,4,"div",10),y.TgZ(12,"div",11),y.YNc(13,Be,2,1,"div",12),y.YNc(14,Mt,5,2,"div",13),y.qZA()()),2&Bt&&(y.xp6(3),y.Q6J("ngIf","outline"==dt.appearance),y.xp6(1),y.Q6J("ngIf",dt._prefixChildren.length),y.xp6(5),y.Q6J("ngIf",dt._hasFloatingLabel()),y.xp6(1),y.Q6J("ngIf",dt._suffixChildren.length),y.xp6(1),y.Q6J("ngIf","outline"!=dt.appearance),y.xp6(1),y.Q6J("ngSwitch",dt._getDisplayedMessages()),y.xp6(1),y.Q6J("ngSwitchCase","error"),y.xp6(1),y.Q6J("ngSwitchCase","hint"))},directives:[D.O5,P.wD,D.RF,D.n9],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}\n",'.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}\n','.mat-input-element{font:inherit;background:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;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:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}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:transparent;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 transparent;border-right:5px solid transparent;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}\n',".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:transparent}.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}\n",".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:transparent}.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}\n",".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:transparent}.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}\n"],encapsulation:2,data:{animation:[jt.transitionMessages]},changeDetection:0});var Jn=(0,U.Z)(function wn(){(0,L.Z)(this,wn)});Jn.\u0275fac=function(Bt){return new(Bt||Jn)},Jn.\u0275mod=y.oAB({type:Jn}),Jn.\u0275inj=y.cJS({imports:[[D.ez,K.BQ,P.Q8],K.BQ]})},4107:function(qe,J,m){"use strict";m.d(J,{LD:function(){return wn},gD:function(){return Jn}});var z=m(3237),Y=m(1120),M=m(4902),U=m(7326),L=m(136),P=m(9388),D=m(3144),y=m(5671),K=m(1314),F=m(9808),E=m(5e3),A=m(508),k=m(7322),I=m(9071),T=m(5664),w=m(3191),S=m(449),N=m(1159),R=m(3075),W=m(8929),$=m(8514),ce=m(6787),se=m(1059),ee=m(7545),oe=m(2986),ge=m(9664),Oe=m(4850),ot=m(5778),xe=m(7625),_e=m(1777),ke=m(226),Be=["trigger"],ct=["panel"];function Mt(Bt,dt){if(1&Bt&&(E.TgZ(0,"span",8),E._uU(1),E.qZA()),2&Bt){var de=E.oxw();E.xp6(1),E.Oqu(de.placeholder)}}function Nt(Bt,dt){if(1&Bt&&(E.TgZ(0,"span",12),E._uU(1),E.qZA()),2&Bt){var de=E.oxw(2);E.xp6(1),E.Oqu(de.triggerValue)}}function Xt(Bt,dt){1&Bt&&E.Hsn(0,0,["*ngSwitchCase","true"])}function en(Bt,dt){if(1&Bt&&(E.TgZ(0,"span",9),E.YNc(1,Nt,2,1,"span",10),E.YNc(2,Xt,1,0,"ng-content",11),E.qZA()),2&Bt){var de=E.oxw();E.Q6J("ngSwitch",!!de.customTrigger),E.xp6(2),E.Q6J("ngSwitchCase",!0)}}function qt(Bt,dt){if(1&Bt){var de=E.EpF();E.TgZ(0,"div",13)(1,"div",14,15),E.NdJ("@transformPanel.done",function(We){return E.CHM(de),E.oxw()._panelDoneAnimatingStream.next(We.toState)})("keydown",function(We){return E.CHM(de),E.oxw()._handleKeydown(We)}),E.Hsn(3,1),E.qZA()()}if(2&Bt){var Te=E.oxw();E.Q6J("@transformPanelWrap",void 0),E.xp6(1),E.Gre("mat-select-panel ",Te._getPanelTheme(),""),E.Udp("transform-origin",Te._transformOrigin)("font-size",Te._triggerFontSize,"px"),E.Q6J("ngClass",Te.panelClass)("@transformPanel",Te.multiple?"showing-multiple":"showing"),E.uIk("id",Te.id+"-panel")("aria-multiselectable",Te.multiple)("aria-label",Te.ariaLabel||null)("aria-labelledby",Te._getPanelAriaLabelledby())}}var Xe=[[["mat-select-trigger"]],"*"],rt={transformPanelWrap:(0,_e.X$)("transformPanelWrap",[(0,_e.eR)("* => void",(0,_e.IO)("@transformPanel",[(0,_e.pV)()],{optional:!0}))]),transformPanel:(0,_e.X$)("transformPanel",[(0,_e.SB)("void",(0,_e.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,_e.SB)("showing",(0,_e.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,_e.SB)("showing-multiple",(0,_e.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,_e.eR)("void => *",(0,_e.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,_e.eR)("* => void",(0,_e.jt)("100ms 25ms linear",(0,_e.oB)({opacity:0})))])};var It=0,Ut=new E.OlP("mat-select-scroll-strategy");var sn=new E.OlP("MAT_SELECT_CONFIG"),yt={provide:Ut,deps:[K.aV],useFactory:function Ht(Bt){return function(){return Bt.scrollStrategies.reposition()}}},mt=(0,D.Z)(function Bt(dt,de){(0,y.Z)(this,Bt),this.source=dt,this.value=de}),cn=(0,A.Kr)((0,A.sb)((0,A.Id)((0,A.FD)(function(){return(0,D.Z)(function Bt(dt,de,Te,ue,We){(0,y.Z)(this,Bt),this._elementRef=dt,this._defaultErrorStateMatcher=de,this._parentForm=Te,this._parentFormGroup=ue,this.ngControl=We})}())))),$t=new E.OlP("MatSelectTrigger"),j=(0,D.Z)(function Bt(){(0,y.Z)(this,Bt)});j.\u0275fac=function(dt){return new(dt||j)},j.\u0275dir=E.lG2({type:j,selectors:[["mat-select-trigger"]],features:[E._Bn([{provide:$t,useExisting:j}])]});var V=function(Bt){(0,L.Z)(de,Bt);var dt=(0,P.Z)(de);function de(Te,ue,We,at,Dt,tn,Jt,nn,dn,On,Dn,zn,Ln,jn){var mn,lr,Yn,Kt;return(0,y.Z)(this,de),(mn=dt.call(this,Dt,at,Jt,nn,On))._viewportRuler=Te,mn._changeDetectorRef=ue,mn._ngZone=We,mn._dir=tn,mn._parentFormField=dn,mn._liveAnnouncer=Ln,mn._defaultOptions=jn,mn._panelOpen=!1,mn._compareWith=function(tt,Ue){return tt===Ue},mn._uid="mat-select-".concat(It++),mn._triggerAriaLabelledBy=null,mn._destroy=new W.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(It++),mn._panelDoneAnimatingStream=new W.xQ,mn._overlayPanelClass=(null===(lr=mn._defaultOptions)||void 0===lr?void 0:lr.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(Kt=null===(Yn=mn._defaultOptions)||void 0===Yn?void 0:Yn.disableOptionCentering)&&void 0!==Kt&&Kt,mn.ariaLabel="",mn.optionSelectionChanges=(0,$.P)(function(){var tt=mn.options;return tt?tt.changes.pipe((0,se.O)(tt),(0,ee.w)(function(){return ce.T.apply(void 0,(0,M.Z)(tt.map(function(Ue){return Ue.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,oe.q)(1),(0,ee.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new E.vpe,mn._openedStream=mn.openedChange.pipe((0,ge.h)(function(tt){return tt}),(0,Oe.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,ge.h)(function(tt){return!tt}),(0,Oe.U)(function(){})),mn.selectionChange=new E.vpe,mn.valueChange=new E.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,U.Z)(mn)),null!=(null==jn?void 0:jn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=jn.typeaheadDebounceInterval),mn._scrollStrategyFactory=zn,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(Dn)||0,mn.id=mn.id,mn}return(0,D.Z)(de,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(ue){this._placeholder=ue,this.stateChanges.next()}},{key:"required",get:function(){var ue,We,at,Dt;return null!==(Dt=null!==(ue=this._required)&&void 0!==ue?ue:null===(at=null===(We=this.ngControl)||void 0===We?void 0:We.control)||void 0===at?void 0:at.hasValidator(R.kI.required))&&void 0!==Dt&&Dt},set:function(ue){this._required=(0,w.Ig)(ue),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(ue){this._selectionModel,this._multiple=(0,w.Ig)(ue)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(ue){this._disableOptionCentering=(0,w.Ig)(ue)}},{key:"compareWith",get:function(){return this._compareWith},set:function(ue){this._compareWith=ue,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(ue){this._assignValue(ue)&&this._onChange(ue)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(ue){this._typeaheadDebounceInterval=(0,w.su)(ue)}},{key:"id",get:function(){return this._id},set:function(ue){this._id=ue||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var ue=this;this._selectionModel=new S.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ot.x)(),(0,xe.R)(this._destroy)).subscribe(function(){return ue._panelDoneAnimating(ue.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var ue=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,xe.R)(this._destroy)).subscribe(function(We){We.added.forEach(function(at){return at.select()}),We.removed.forEach(function(at){return at.deselect()})}),this.options.changes.pipe((0,se.O)(null),(0,xe.R)(this._destroy)).subscribe(function(){ue._resetOptions(),ue._initializeSelection()})}},{key:"ngDoCheck",value:function(){var ue=this._getTriggerAriaLabelledby(),We=this.ngControl;if(ue!==this._triggerAriaLabelledBy){var at=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ue,ue?at.setAttribute("aria-labelledby",ue):at.removeAttribute("aria-labelledby")}We&&(this._previousControl!==We.control&&(void 0!==this._previousControl&&null!==We.disabled&&We.disabled!==this.disabled&&(this.disabled=We.disabled),this._previousControl=We.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(ue){ue.disabled&&this.stateChanges.next(),ue.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(ue){this._assignValue(ue)}},{key:"registerOnChange",value:function(ue){this._onChange=ue}},{key:"registerOnTouched",value:function(ue){this._onTouched=ue}},{key:"setDisabledState",value:function(ue){this.disabled=ue,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var ue,We;return this.multiple?(null===(ue=this._selectionModel)||void 0===ue?void 0:ue.selected)||[]:null===(We=this._selectionModel)||void 0===We?void 0:We.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var ue=this._selectionModel.selected.map(function(We){return We.viewValue});return this._isRtl()&&ue.reverse(),ue.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(ue){this.disabled||(this.panelOpen?this._handleOpenKeydown(ue):this._handleClosedKeydown(ue))}},{key:"_handleClosedKeydown",value:function(ue){var We=ue.keyCode,at=We===N.JH||We===N.LH||We===N.oh||We===N.SV,Dt=We===N.K5||We===N.L_,tn=this._keyManager;if(!tn.isTyping()&&Dt&&!(0,N.Vb)(ue)||(this.multiple||ue.altKey)&&at)ue.preventDefault(),this.open();else if(!this.multiple){var Jt=this.selected;tn.onKeydown(ue);var nn=this.selected;nn&&Jt!==nn&&this._liveAnnouncer.announce(nn.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(ue){var We=this._keyManager,at=ue.keyCode,Dt=at===N.JH||at===N.LH,tn=We.isTyping();if(Dt&&ue.altKey)ue.preventDefault(),this.close();else if(tn||at!==N.K5&&at!==N.L_||!We.activeItem||(0,N.Vb)(ue))if(!tn&&this._multiple&&at===N.A&&ue.ctrlKey){ue.preventDefault();var Jt=this.options.some(function(dn){return!dn.disabled&&!dn.selected});this.options.forEach(function(dn){dn.disabled||(Jt?dn.select():dn.deselect())})}else{var nn=We.activeItemIndex;We.onKeydown(ue),this._multiple&&Dt&&ue.shiftKey&&We.activeItem&&We.activeItemIndex!==nn&&We.activeItem._selectViaInteraction()}else ue.preventDefault(),We.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 ue=this;this._overlayDir.positionChange.pipe((0,oe.q)(1)).subscribe(function(){ue._changeDetectorRef.detectChanges(),ue._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 ue=this;Promise.resolve().then(function(){ue.ngControl&&(ue._value=ue.ngControl.value),ue._setSelectionByValue(ue._value),ue.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(ue){var We=this;if(this._selectionModel.selected.forEach(function(Dt){return Dt.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&ue)Array.isArray(ue),ue.forEach(function(Dt){return We._selectOptionByValue(Dt)}),this._sortValues();else{var at=this._selectOptionByValue(ue);at?this._keyManager.updateActiveItem(at):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(ue){var We=this,at=this.options.find(function(Dt){if(We._selectionModel.isSelected(Dt))return!1;try{return null!=Dt.value&&We._compareWith(Dt.value,ue)}catch(tn){return!1}});return at&&this._selectionModel.select(at),at}},{key:"_assignValue",value:function(ue){return!!(ue!==this._value||this._multiple&&Array.isArray(ue))&&(this.options&&this._setSelectionByValue(ue),this._value=ue,!0)}},{key:"_initKeyManager",value:function(){var ue=this;this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,xe.R)(this._destroy)).subscribe(function(){ue.panelOpen&&(!ue.multiple&&ue._keyManager.activeItem&&ue._keyManager.activeItem._selectViaInteraction(),ue.focus(),ue.close())}),this._keyManager.change.pipe((0,xe.R)(this._destroy)).subscribe(function(){ue._panelOpen&&ue.panel?ue._scrollOptionIntoView(ue._keyManager.activeItemIndex||0):!ue._panelOpen&&!ue.multiple&&ue._keyManager.activeItem&&ue._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var ue=this,We=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,xe.R)(We)).subscribe(function(at){ue._onSelect(at.source,at.isUserInput),at.isUserInput&&!ue.multiple&&ue._panelOpen&&(ue.close(),ue.focus())}),ce.T.apply(void 0,(0,M.Z)(this.options.map(function(at){return at._stateChanges}))).pipe((0,xe.R)(We)).subscribe(function(){ue._changeDetectorRef.markForCheck(),ue.stateChanges.next()})}},{key:"_onSelect",value:function(ue,We){var at=this._selectionModel.isSelected(ue);null!=ue.value||this._multiple?(at!==ue.selected&&(ue.selected?this._selectionModel.select(ue):this._selectionModel.deselect(ue)),We&&this._keyManager.setActiveItem(ue),this.multiple&&(this._sortValues(),We&&this.focus())):(ue.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ue.value)),at!==this._selectionModel.isSelected(ue)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var ue=this;if(this.multiple){var We=this.options.toArray();this._selectionModel.sort(function(at,Dt){return ue.sortComparator?ue.sortComparator(at,Dt,We):We.indexOf(at)-We.indexOf(Dt)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(ue){var We=null;We=this.multiple?this.selected.map(function(at){return at.value}):this.selected?this.selected.value:ue,this._value=We,this.valueChange.emit(We),this._onChange(We),this.selectionChange.emit(this._getChangeEvent(We)),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 ue;return!this._panelOpen&&!this.disabled&&(null===(ue=this.options)||void 0===ue?void 0:ue.length)>0}},{key:"focus",value:function(ue){this._elementRef.nativeElement.focus(ue)}},{key:"_getPanelAriaLabelledby",value:function(){var ue;if(this.ariaLabel)return null;var We=null===(ue=this._parentFormField)||void 0===ue?void 0:ue.getLabelId(),at=We?We+" ":"";return this.ariaLabelledby?at+this.ariaLabelledby:We}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var ue;if(this.ariaLabel)return null;var We=null===(ue=this._parentFormField)||void 0===ue?void 0:ue.getLabelId(),at=(We?We+" ":"")+this._valueId;return this.ariaLabelledby&&(at+=" "+this.ariaLabelledby),at}},{key:"_panelDoneAnimating",value:function(ue){this.openedChange.emit(ue)}},{key:"setDescribedByIds",value:function(ue){this._ariaDescribedby=ue.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),de}(cn);V.\u0275fac=function(dt){return new(dt||V)(E.Y36(I.rL),E.Y36(E.sBO),E.Y36(E.R0b),E.Y36(A.rD),E.Y36(E.SBq),E.Y36(ke.Is,8),E.Y36(R.F,8),E.Y36(R.sg,8),E.Y36(k.G_,8),E.Y36(R.a5,10),E.$8M("tabindex"),E.Y36(Ut),E.Y36(T.Kd),E.Y36(sn,8))},V.\u0275dir=E.lG2({type:V,viewQuery:function(dt,de){var Te;(1&dt&&(E.Gf(Be,5),E.Gf(ct,5),E.Gf(K.pI,5)),2&dt)&&(E.iGM(Te=E.CRH())&&(de.trigger=Te.first),E.iGM(Te=E.CRH())&&(de.panel=Te.first),E.iGM(Te=E.CRH())&&(de._overlayDir=Te.first))},inputs:{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:[E.qOj,E.TTD]});var Jn=function(Bt){(0,L.Z)(de,Bt);var dt=(0,P.Z)(de);function de(){var Te;return(0,y.Z)(this,de),(Te=dt.apply(this,arguments))._scrollTop=0,Te._triggerFontSize=0,Te._transformOrigin="top",Te._offsetY=0,Te._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Te}return(0,D.Z)(de,[{key:"_calculateOverlayScroll",value:function(ue,We,at){var Dt=this._getItemHeight(),nn=Dt*ue-We+Dt/2;return Math.min(Math.max(0,nn),at)}},{key:"ngOnInit",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,xe.R)(this._destroy)).subscribe(function(){ue.panelOpen&&(ue._triggerRect=ue.trigger.nativeElement.getBoundingClientRect(),ue._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var ue=this;(0,z.Z)((0,Y.Z)(de.prototype),"_canOpen",this).call(this)&&((0,z.Z)((0,Y.Z)(de.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,oe.q)(1)).subscribe(function(){ue._triggerFontSize&&ue._overlayDir.overlayRef&&ue._overlayDir.overlayRef.overlayElement&&(ue._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(ue._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(ue){var We=(0,A.CB)(ue,this.options,this.optionGroups),at=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ue&&1===We?0:(0,A.jH)((ue+We)*at,at,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(ue){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,z.Z)((0,Y.Z)(de.prototype),"_panelDoneAnimating",this).call(this,ue)}},{key:"_getChangeEvent",value:function(ue){return new mt(this,ue)}},{key:"_calculateOverlayOffsetX",value:function(){var tn,ue=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),We=this._viewportRuler.getViewportSize(),at=this._isRtl(),Dt=this.multiple?56:32;if(this.multiple)tn=40;else if(this.disableOptionCentering)tn=16;else{var Jt=this._selectionModel.selected[0]||this.options.first;tn=Jt&&Jt.group?32:16}at||(tn*=-1);var nn=0-(ue.left+tn-(at?Dt:0)),dn=ue.right+tn-We.width+(at?0:Dt);nn>0?tn+=nn+8:dn>0&&(tn-=dn+8),this._overlayDir.offsetX=Math.round(tn),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(ue,We,at){var nn,Dt=this._getItemHeight(),tn=(Dt-this._triggerRect.height)/2,Jt=Math.floor(256/Dt);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)nn=ue*Dt;else if(this._scrollTop===at){nn=(ue-(this._getItemCount()-Jt))*Dt+(Dt-(this._getItemCount()*Dt-256)%Dt)}else nn=We-Dt/2;return Math.round(-1*nn-tn)}},{key:"_checkOverlayWithinViewport",value:function(ue){var We=this._getItemHeight(),at=this._viewportRuler.getViewportSize(),Dt=this._triggerRect.top-8,tn=at.height-this._triggerRect.bottom-8,Jt=Math.abs(this._offsetY),dn=Math.min(this._getItemCount()*We,256)-Jt-this._triggerRect.height;dn>tn?this._adjustPanelUp(dn,tn):Jt>Dt?this._adjustPanelDown(Jt,Dt,ue):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(ue,We){var at=Math.round(ue-We);this._scrollTop-=at,this._offsetY-=at,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(ue,We,at){var Dt=Math.round(ue-We);if(this._scrollTop+=Dt,this._offsetY+=Dt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=at)return this._scrollTop=at,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var Jt,ue=this._getItemHeight(),We=this._getItemCount(),at=Math.min(We*ue,256),tn=We*ue-at;Jt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Jt+=(0,A.CB)(Jt,this.options,this.optionGroups);var nn=at/2;this._scrollTop=this._calculateOverlayScroll(Jt,nn,tn),this._offsetY=this._calculateOverlayOffsetY(Jt,nn,tn),this._checkOverlayWithinViewport(tn)}},{key:"_getOriginBasedOnOption",value:function(){var ue=this._getItemHeight(),We=(ue-this._triggerRect.height)/2,at=Math.abs(this._offsetY)-We+ue/2;return"50% ".concat(at,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),de}(V);Jn.\u0275fac=function(){var Bt;return function(de){return(Bt||(Bt=E.n5z(Jn)))(de||Jn)}}(),Jn.\u0275cmp=E.Xpm({type:Jn,selectors:[["mat-select"]],contentQueries:function(dt,de,Te){var ue;(1&dt&&(E.Suo(Te,$t,5),E.Suo(Te,A.ey,5),E.Suo(Te,A.K7,5)),2&dt)&&(E.iGM(ue=E.CRH())&&(de.customTrigger=ue.first),E.iGM(ue=E.CRH())&&(de.options=ue),E.iGM(ue=E.CRH())&&(de.optionGroups=ue))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(dt,de){1&dt&&E.NdJ("keydown",function(ue){return de._handleKeydown(ue)})("focus",function(){return de._onFocus()})("blur",function(){return de._onBlur()}),2&dt&&(E.uIk("id",de.id)("tabindex",de.tabIndex)("aria-controls",de.panelOpen?de.id+"-panel":null)("aria-expanded",de.panelOpen)("aria-label",de.ariaLabel||null)("aria-required",de.required.toString())("aria-disabled",de.disabled.toString())("aria-invalid",de.errorState)("aria-describedby",de._ariaDescribedby||null)("aria-activedescendant",de._getAriaActiveDescendant()),E.ekj("mat-select-disabled",de.disabled)("mat-select-invalid",de.errorState)("mat-select-required",de.required)("mat-select-empty",de.empty)("mat-select-multiple",de.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[E._Bn([{provide:k.Eo,useExisting:Jn},{provide:A.HF,useExisting:Jn}]),E.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(dt,de){if(1&dt&&(E.F$t(Xe),E.TgZ(0,"div",0,1),E.NdJ("click",function(){return de.toggle()}),E.TgZ(3,"div",2),E.YNc(4,Mt,2,1,"span",3),E.YNc(5,en,3,2,"span",4),E.qZA(),E.TgZ(6,"div",5),E._UZ(7,"div",6),E.qZA()(),E.YNc(8,qt,4,14,"ng-template",7),E.NdJ("backdropClick",function(){return de.close()})("attach",function(){return de._onAttached()})("detach",function(){return de.close()})),2&dt){var Te=E.MAs(1);E.uIk("aria-owns",de.panelOpen?de.id+"-panel":null),E.xp6(3),E.Q6J("ngSwitch",de.empty),E.uIk("id",de._valueId),E.xp6(1),E.Q6J("ngSwitchCase",!0),E.xp6(1),E.Q6J("ngSwitchCase",!1),E.xp6(3),E.Q6J("cdkConnectedOverlayPanelClass",de._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",de._scrollStrategy)("cdkConnectedOverlayOrigin",Te)("cdkConnectedOverlayOpen",de.panelOpen)("cdkConnectedOverlayPositions",de._positions)("cdkConnectedOverlayMinWidth",null==de._triggerRect?null:de._triggerRect.width)("cdkConnectedOverlayOffsetY",de._offsetY)}},directives:[K.xu,F.RF,F.n9,F.ED,K.pI,F.mk],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 transparent;border-right:5px solid transparent;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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[rt.transformPanelWrap,rt.transformPanel]},changeDetection:0});var wn=(0,D.Z)(function Bt(){(0,y.Z)(this,Bt)});wn.\u0275fac=function(dt){return new(dt||wn)},wn.\u0275mod=E.oAB({type:wn}),wn.\u0275inj=E.cJS({providers:[yt],imports:[[F.ez,K.U8,A.Ng,A.BQ],I.ZD,k.lN,A.Ng,A.BQ]})},3251:function(qe,J,m){"use strict";m.d(J,{BU:function(){return Ee},Nh:function(){return rr},Nj:function(){return Yt},SP:function(){return Kt},uD:function(){return Jn},uX:function(){return dt}});var z=m(7326),Y=m(4902),M=m(3237),U=m(1120),L=m(136),P=m(9388),D=m(5671),y=m(3144),K=m(5664),F=m(7144),E=m(7429),A=m(9808),k=m(5e3),I=m(508),T=m(6360),w=m(2986),S=m(1059),N=m(5778),R=m(7625),W=m(7545),$=m(1307),ce=m(8929),se=m(4096),ee=m(3753),oe=m(1086),ge=m(6787),Oe=m(8896),ot=m(7451),xe=m(8723),_e=m(1777),ke=m(226),Be=m(3191),ct=m(1159),Mt=m(925),Nt=m(9071);function Xt(pn,lt){1&pn&&k.Hsn(0)}var en=["*"];function qt(pn,lt){}var Xe=function(lt){return{animationDuration:lt}},jt=function(lt,Se){return{value:lt,params:Se}},rt=["tabListContainer"],vt=["tabList"],nt=["tabListInner"],Rt=["nextPaginator"],It=["previousPaginator"],on=["tabBodyWrapper"],_n=["tabHeader"];function An(pn,lt){}function Gt(pn,lt){if(1&pn&&k.YNc(0,An,0,0,"ng-template",10),2&pn){var Se=k.oxw().$implicit;k.Q6J("cdkPortalOutlet",Se.templateLabel)}}function Zt(pn,lt){if(1&pn&&k._uU(0),2&pn){var Se=k.oxw().$implicit;k.Oqu(Se.textLabel)}}function Et(pn,lt){if(1&pn){var Se=k.EpF();k.TgZ(0,"div",6),k.NdJ("click",function(){var Rn=k.CHM(Se),cr=Rn.$implicit,Rr=Rn.index,Xr=k.oxw(),Mr=k.MAs(1);return Xr._handleClick(cr,Mr,Rr)})("cdkFocusChange",function(Rn){var Rr=k.CHM(Se).index;return k.oxw()._tabFocusChanged(Rn,Rr)}),k.TgZ(1,"div",7),k.YNc(2,Gt,1,1,"ng-template",8),k.YNc(3,Zt,1,1,"ng-template",null,9,k.W1O),k.qZA()()}if(2&pn){var Ae=lt.$implicit,Qe=lt.index,_t=k.MAs(4),Wt=k.oxw();k.ekj("mat-tab-label-active",Wt.selectedIndex===Qe),k.Q6J("id",Wt._getTabLabelId(Qe))("ngClass",Ae.labelClass)("disabled",Ae.disabled)("matRippleDisabled",Ae.disabled||Wt.disableRipple),k.uIk("tabIndex",Wt._getTabIndex(Ae,Qe))("aria-posinset",Qe+1)("aria-setsize",Wt._tabs.length)("aria-controls",Wt._getTabContentId(Qe))("aria-selected",Wt.selectedIndex===Qe)("aria-label",Ae.ariaLabel||null)("aria-labelledby",!Ae.ariaLabel&&Ae.ariaLabelledby?Ae.ariaLabelledby:null),k.xp6(2),k.Q6J("ngIf",Ae.templateLabel)("ngIfElse",_t)}}function Ut(pn,lt){if(1&pn){var Se=k.EpF();k.TgZ(0,"mat-tab-body",11),k.NdJ("_onCentered",function(){return k.CHM(Se),k.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(gn){return k.CHM(Se),k.oxw()._setTabBodyWrapperHeight(gn)}),k.qZA()}if(2&pn){var Ae=lt.$implicit,Qe=lt.index,_t=k.oxw();k.ekj("mat-tab-body-active",_t.selectedIndex===Qe),k.Q6J("id",_t._getTabContentId(Qe))("ngClass",Ae.bodyClass)("content",Ae.content)("position",Ae.position)("origin",Ae.origin)("animationDuration",_t.animationDuration),k.uIk("tabindex",null!=_t.contentTabIndex&&_t.selectedIndex===Qe?_t.contentTabIndex:null)("aria-labelledby",_t._getTabLabelId(Qe))}}var sn=new k.OlP("MatInkBarPositioner",{providedIn:"root",factory:function yt(){return function(Se){return{left:Se?(Se.offsetLeft||0)+"px":"0",width:Se?(Se.offsetWidth||0)+"px":"0"}}}});var mt=function(){function pn(lt,Se,Ae,Qe){(0,D.Z)(this,pn),this._elementRef=lt,this._ngZone=Se,this._inkBarPositioner=Ae,this._animationMode=Qe}return(0,y.Z)(pn,[{key:"alignToElement",value:function(Se){var Ae=this;this.show(),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(function(){var Qe=Ae._inkBarPositioner(Se),_t=Ae._elementRef.nativeElement;_t.style.left=Qe.left,_t.style.width=Qe.width})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),pn}();mt.\u0275fac=function(lt){return new(lt||mt)(k.Y36(k.SBq),k.Y36(k.R0b),k.Y36(sn),k.Y36(T.Qb,8))},mt.\u0275dir=k.lG2({type:mt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(lt,Se){2<&&k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode)}});var cn=new k.OlP("MatTabContent"),$t=(0,y.Z)(function pn(lt){(0,D.Z)(this,pn),this.template=lt});$t.\u0275fac=function(lt){return new(lt||$t)(k.Y36(k.Rgc))},$t.\u0275dir=k.lG2({type:$t,selectors:[["","matTabContent",""]],features:[k._Bn([{provide:cn,useExisting:$t}])]});var j=new k.OlP("MatTabLabel"),V=new k.OlP("MAT_TAB"),Jn=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t){var Wt;return(0,D.Z)(this,Se),(Wt=lt.call(this,Ae,Qe))._closestTab=_t,Wt}return(0,y.Z)(Se)}(E.ig);Jn.\u0275fac=function(lt){return new(lt||Jn)(k.Y36(k.Rgc),k.Y36(k.s_b),k.Y36(V,8))},Jn.\u0275dir=k.lG2({type:Jn,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[k._Bn([{provide:j,useExisting:Jn}]),k.qOj]});var wn=(0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()),Bt=new k.OlP("MAT_TAB_GROUP"),dt=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe){var _t;return(0,D.Z)(this,Se),(_t=lt.call(this))._viewContainerRef=Ae,_t._closestTabGroup=Qe,_t.textLabel="",_t._contentPortal=null,_t._stateChanges=new ce.xQ,_t.position=null,_t.origin=null,_t.isActive=!1,_t}return(0,y.Z)(Se,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(Qe){this._setTemplateLabelInput(Qe)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(Qe){(Qe.hasOwnProperty("textLabel")||Qe.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new E.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(Qe){Qe&&Qe._closestTab===this&&(this._templateLabel=Qe)}}]),Se}(wn);dt.\u0275fac=function(lt){return new(lt||dt)(k.Y36(k.s_b),k.Y36(Bt,8))},dt.\u0275cmp=k.Xpm({type:dt,selectors:[["mat-tab"]],contentQueries:function(lt,Se,Ae){var Qe;(1<&&(k.Suo(Ae,j,5),k.Suo(Ae,cn,7,k.Rgc)),2<)&&(k.iGM(Qe=k.CRH())&&(Se.templateLabel=Qe.first),k.iGM(Qe=k.CRH())&&(Se._explicitContent=Qe.first))},viewQuery:function(lt,Se){var Ae;(1<&&k.Gf(k.Rgc,7),2<)&&(k.iGM(Ae=k.CRH())&&(Se._implicitContent=Ae.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[k._Bn([{provide:V,useExisting:dt}]),k.qOj,k.TTD],ngContentSelectors:en,decls:1,vars:0,template:function(lt,Se){1<&&(k.F$t(),k.YNc(0,Xt,1,0,"ng-template"))},encapsulation:2});var de={translateTab:(0,_e.X$)("translateTab",[(0,_e.SB)("center, void, left-origin-center, right-origin-center",(0,_e.oB)({transform:"none"})),(0,_e.SB)("left",(0,_e.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,_e.SB)("right",(0,_e.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,_e.eR)("* => left, * => right, left => center, right => center",(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,_e.eR)("void => left-origin-center",[(0,_e.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,_e.eR)("void => right-origin-center",[(0,_e.oB)({transform:"translate3d(100%, 0, 0)"}),(0,_e.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Te=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){var gn;return(0,D.Z)(this,Se),(gn=lt.call(this,Ae,Qe,Wt))._host=_t,gn._centeringSub=se.w.EMPTY,gn._leavingSub=se.w.EMPTY,gn}return(0,y.Z)(Se,[{key:"ngOnInit",value:function(){var Qe=this;(0,M.Z)((0,U.Z)(Se.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,S.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(_t){_t&&!Qe.hasAttached()&&Qe.attach(Qe._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){Qe.detach()})}},{key:"ngOnDestroy",value:function(){(0,M.Z)((0,U.Z)(Se.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),Se}(E.Pl);Te.\u0275fac=function(lt){return new(lt||Te)(k.Y36(k._Vd),k.Y36(k.s_b),k.Y36((0,k.Gpc)(function(){return We})),k.Y36(A.K0))},Te.\u0275dir=k.lG2({type:Te,selectors:[["","matTabBodyHost",""]],features:[k.qOj]});var ue=function(){function pn(lt,Se,Ae){var Qe=this;(0,D.Z)(this,pn),this._elementRef=lt,this._dir=Se,this._dirChangeSubscription=se.w.EMPTY,this._translateTabComplete=new ce.xQ,this._onCentering=new k.vpe,this._beforeCentering=new k.vpe,this._afterLeavingCenter=new k.vpe,this._onCentered=new k.vpe(!0),this.animationDuration="500ms",Se&&(this._dirChangeSubscription=Se.change.subscribe(function(_t){Qe._computePositionAnimationState(_t),Ae.markForCheck()})),this._translateTabComplete.pipe((0,N.x)(function(_t,Wt){return _t.fromState===Wt.fromState&&_t.toState===Wt.toState})).subscribe(function(_t){Qe._isCenterPosition(_t.toState)&&Qe._isCenterPosition(Qe._position)&&Qe._onCentered.emit(),Qe._isCenterPosition(_t.fromState)&&!Qe._isCenterPosition(Qe._position)&&Qe._afterLeavingCenter.emit()})}return(0,y.Z)(pn,[{key:"position",set:function(Se){this._positionIndex=Se,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(Se){var Ae=this._isCenterPosition(Se.toState);this._beforeCentering.emit(Ae),Ae&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(Se){return"center"==Se||"left-origin-center"==Se||"right-origin-center"==Se}},{key:"_computePositionAnimationState",value:function(){var Se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==Se?"left":"right":this._positionIndex>0?this._position="ltr"==Se?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function(Se){var Ae=this._getLayoutDirection();return"ltr"==Ae&&Se<=0||"rtl"==Ae&&Se>0?"left-origin-center":"right-origin-center"}}]),pn}();ue.\u0275fac=function(lt){return new(lt||ue)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.sBO))},ue.\u0275dir=k.lG2({type:ue,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var We=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t){return(0,D.Z)(this,Se),lt.call(this,Ae,Qe,_t)}return(0,y.Z)(Se)}(ue);We.\u0275fac=function(lt){return new(lt||We)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.sBO))},We.\u0275cmp=k.Xpm({type:We,selectors:[["mat-tab-body"]],viewQuery:function(lt,Se){var Ae;(1<&&k.Gf(E.Pl,5),2<)&&(k.iGM(Ae=k.CRH())&&(Se._portalHost=Ae.first))},hostAttrs:[1,"mat-tab-body"],features:[k.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(lt,Se){1<&&(k.TgZ(0,"div",0,1),k.NdJ("@translateTab.start",function(Qe){return Se._onTranslateTabStarted(Qe)})("@translateTab.done",function(Qe){return Se._translateTabComplete.next(Qe)}),k.YNc(2,qt,0,0,"ng-template",2),k.qZA()),2<&&k.Q6J("@translateTab",k.WLB(3,jt,Se._position,k.VKq(1,Xe,Se.animationDuration)))},directives:[Te],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}\n'],encapsulation:2,data:{animation:[de.translateTab]}});var at=new k.OlP("MAT_TABS_CONFIG"),tn=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae){var Qe;return(0,D.Z)(this,Se),(Qe=lt.call(this)).elementRef=Ae,Qe}return(0,y.Z)(Se,[{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}}]),Se}((0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()));tn.\u0275fac=function(lt){return new(lt||tn)(k.Y36(k.SBq))},tn.\u0275dir=k.lG2({type:tn,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(lt,Se){2<&&(k.uIk("aria-disabled",!!Se.disabled),k.ekj("mat-tab-disabled",Se.disabled))},inputs:{disabled:"disabled"},features:[k.qOj]});var Jt=(0,Mt.i$)({passive:!0}),Dn=function(){function pn(lt,Se,Ae,Qe,_t,Wt,gn){var Rn=this;(0,D.Z)(this,pn),this._elementRef=lt,this._changeDetectorRef=Se,this._viewportRuler=Ae,this._dir=Qe,this._ngZone=_t,this._platform=Wt,this._animationMode=gn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ce.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ce.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new k.vpe,this.indexFocused=new k.vpe,_t.runOutsideAngular(function(){(0,ee.R)(lt.nativeElement,"mouseleave").pipe((0,R.R)(Rn._destroyed)).subscribe(function(){Rn._stopInterval()})})}return(0,y.Z)(pn,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Se){Se=(0,Be.su)(Se),this._selectedIndex!=Se&&(this._selectedIndexChanged=!0,this._selectedIndex=Se,this._keyManager&&this._keyManager.updateActiveItem(Se))}},{key:"ngAfterViewInit",value:function(){var Se=this;(0,ee.R)(this._previousPaginator.nativeElement,"touchstart",Jt).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._handlePaginatorPress("before")}),(0,ee.R)(this._nextPaginator.nativeElement,"touchstart",Jt).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var Se=this,Ae=this._dir?this._dir.change:(0,oe.of)("ltr"),Qe=this._viewportRuler.change(150),_t=function(){Se.updatePagination(),Se._alignInkBarToSelectedTab()};this._keyManager=new K.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(_t),(0,ge.T)(Ae,Qe,this._items.changes,this._itemsResized()).pipe((0,R.R)(this._destroyed)).subscribe(function(){Se._ngZone.run(function(){Promise.resolve().then(function(){Se._scrollDistance=Math.max(0,Math.min(Se._getMaxScrollDistance(),Se._scrollDistance)),_t()})}),Se._keyManager.withHorizontalOrientation(Se._getLayoutDirection())}),this._keyManager.change.pipe((0,R.R)(this._destroyed)).subscribe(function(Wt){Se.indexFocused.emit(Wt),Se._setTabFocus(Wt)})}},{key:"_itemsResized",value:function(){var Se=this;return"function"!=typeof ResizeObserver?Oe.E:this._items.changes.pipe((0,S.O)(this._items),(0,W.w)(function(Ae){return new ot.y(function(Qe){return Se._ngZone.runOutsideAngular(function(){var _t=new ResizeObserver(function(){Qe.next()});return Ae.forEach(function(Wt){_t.observe(Wt.elementRef.nativeElement)}),function(){_t.disconnect()}})})}),(0,$.T)(1))}},{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(Se){if(!(0,ct.Vb)(Se))switch(Se.keyCode){case ct.K5:case ct.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Se));break;default:this._keyManager.onKeydown(Se)}}},{key:"_onContentChanges",value:function(){var Se=this,Ae=this._elementRef.nativeElement.textContent;Ae!==this._currentTextContent&&(this._currentTextContent=Ae||"",this._ngZone.run(function(){Se.updatePagination(),Se._alignInkBarToSelectedTab(),Se._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(Se){!this._isValidIndex(Se)||this.focusIndex===Se||!this._keyManager||this._keyManager.setActiveItem(Se)}},{key:"_isValidIndex",value:function(Se){if(!this._items)return!0;var Ae=this._items?this._items.toArray()[Se]:null;return!!Ae&&!Ae.disabled}},{key:"_setTabFocus",value:function(Se){if(this._showPaginationControls&&this._scrollToLabel(Se),this._items&&this._items.length){this._items.toArray()[Se].focus();var Ae=this._tabListContainer.nativeElement,Qe=this._getLayoutDirection();Ae.scrollLeft="ltr"==Qe?0:Ae.scrollWidth-Ae.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var Se=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-Se:Se;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(Ae),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(Se){this._scrollTo(Se)}},{key:"_scrollHeader",value:function(Se){var Qe=("before"==Se?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+Qe)}},{key:"_handlePaginatorClick",value:function(Se){this._stopInterval(),this._scrollHeader(Se)}},{key:"_scrollToLabel",value:function(Se){if(!this.disablePagination){var Ae=this._items?this._items.toArray()[Se]:null;if(Ae){var Rn,cr,Qe=this._tabListContainer.nativeElement.offsetWidth,_t=Ae.elementRef.nativeElement,Wt=_t.offsetLeft,gn=_t.offsetWidth;"ltr"==this._getLayoutDirection()?cr=(Rn=Wt)+gn:Rn=(cr=this._tabListInner.nativeElement.offsetWidth-Wt)-gn;var Rr=this.scrollDistance,Xr=this.scrollDistance+Qe;Rn<Rr?this.scrollDistance-=Rr-Rn+60:cr>Xr&&(this.scrollDistance+=cr-Xr+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var Se=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Se||(this.scrollDistance=0),Se!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Se}}},{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 Se=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ae=Se?Se.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(Se,Ae){var Qe=this;Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,xe.H)(650,100).pipe((0,R.R)((0,ge.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var _t=Qe._scrollHeader(Se),Wt=_t.maxScrollDistance,gn=_t.distance;(0===gn||gn>=Wt)&&Qe._stopInterval()}))}},{key:"_scrollTo",value:function(Se){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,Se)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}]),pn}();Dn.\u0275fac=function(lt){return new(lt||Dn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Dn.\u0275dir=k.lG2({type:Dn,inputs:{disablePagination:"disablePagination"}});var zn=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn,cr){var Rr;return(0,D.Z)(this,Se),(Rr=lt.call(this,Ae,Qe,_t,Wt,gn,Rn,cr))._disableRipple=!1,Rr}return(0,y.Z)(Se,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Qe){this._disableRipple=(0,Be.Ig)(Qe)}},{key:"_itemSelected",value:function(Qe){Qe.preventDefault()}}]),Se}(Dn);zn.\u0275fac=function(lt){return new(lt||zn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},zn.\u0275dir=k.lG2({type:zn,inputs:{disableRipple:"disableRipple"},features:[k.qOj]});var Ln=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn,cr){return(0,D.Z)(this,Se),lt.call(this,Ae,Qe,_t,Wt,gn,Rn,cr)}return(0,y.Z)(Se)}(zn);Ln.\u0275fac=function(lt){return new(lt||Ln)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Ln.\u0275cmp=k.Xpm({type:Ln,selectors:[["mat-tab-header"]],contentQueries:function(lt,Se,Ae){var Qe;(1<&&k.Suo(Ae,tn,4),2<)&&(k.iGM(Qe=k.CRH())&&(Se._items=Qe))},viewQuery:function(lt,Se){var Ae;(1<&&(k.Gf(mt,7),k.Gf(rt,7),k.Gf(vt,7),k.Gf(nt,7),k.Gf(Rt,5),k.Gf(It,5)),2<)&&(k.iGM(Ae=k.CRH())&&(Se._inkBar=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListContainer=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabList=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListInner=Ae.first),k.iGM(Ae=k.CRH())&&(Se._nextPaginator=Ae.first),k.iGM(Ae=k.CRH())&&(Se._previousPaginator=Ae.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(lt,Se){2<&&k.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[k.qOj],ngContentSelectors:en,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(lt,Se){1<&&(k.F$t(),k.TgZ(0,"button",0,1),k.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(Qe){return Se._handlePaginatorPress("before",Qe)})("touchend",function(){return Se._stopInterval()}),k._UZ(2,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.NdJ("keydown",function(Qe){return Se._handleKeydown(Qe)}),k.TgZ(5,"div",5,6),k.NdJ("cdkObserveContent",function(){return Se._onContentChanges()}),k.TgZ(7,"div",7,8),k.Hsn(9),k.qZA(),k._UZ(10,"mat-ink-bar"),k.qZA()(),k.TgZ(11,"button",9,10),k.NdJ("mousedown",function(Qe){return Se._handlePaginatorPress("after",Qe)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),k._UZ(13,"div",2),k.qZA()),2<&&(k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),k.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),k.xp6(5),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(6),k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),k.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[I.wG,F.wD,mt],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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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-animation-noopable.mat-tab-list{transition:none;animation:none}.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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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{min-width:72px}}\n"],encapsulation:2});var jn=0,mn=(0,y.Z)(function pn(){(0,D.Z)(this,pn)}),Yn=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){var gn,Rn;return(0,D.Z)(this,Se),(gn=lt.call(this,Ae))._changeDetectorRef=Qe,gn._animationMode=Wt,gn._tabs=new k.n_E,gn._indexToSelect=0,gn._lastFocusedTabIndex=null,gn._tabBodyWrapperHeight=0,gn._tabsSubscription=se.w.EMPTY,gn._tabLabelSubscription=se.w.EMPTY,gn._selectedIndex=null,gn.headerPosition="above",gn.selectedIndexChange=new k.vpe,gn.focusChange=new k.vpe,gn.animationDone=new k.vpe,gn.selectedTabChange=new k.vpe(!0),gn._groupId=jn++,gn.animationDuration=_t&&_t.animationDuration?_t.animationDuration:"500ms",gn.disablePagination=!(!_t||null==_t.disablePagination)&&_t.disablePagination,gn.dynamicHeight=!(!_t||null==_t.dynamicHeight)&&_t.dynamicHeight,gn.contentTabIndex=null!==(Rn=null==_t?void 0:_t.contentTabIndex)&&void 0!==Rn?Rn:null,gn}return(0,y.Z)(Se,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(Qe){this._dynamicHeight=(0,Be.Ig)(Qe)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(Qe){this._indexToSelect=(0,Be.su)(Qe,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(Qe){this._animationDuration=/^\d+$/.test(Qe+"")?Qe+"ms":Qe}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(Qe){this._contentTabIndex=(0,Be.su)(Qe,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(Qe){var _t=this._elementRef.nativeElement;_t.classList.remove("mat-background-".concat(this.backgroundColor)),Qe&&_t.classList.add("mat-background-".concat(Qe)),this._backgroundColor=Qe}},{key:"ngAfterContentChecked",value:function(){var Qe=this,_t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=_t){var Wt=null==this._selectedIndex;if(!Wt){this.selectedTabChange.emit(this._createChangeEvent(_t));var gn=this._tabBodyWrapper.nativeElement;gn.style.minHeight=gn.clientHeight+"px"}Promise.resolve().then(function(){Qe._tabs.forEach(function(Rn,cr){return Rn.isActive=cr===_t}),Wt||(Qe.selectedIndexChange.emit(_t),Qe._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Rn,cr){Rn.position=cr-_t,null!=Qe._selectedIndex&&0==Rn.position&&!Rn.origin&&(Rn.origin=_t-Qe._selectedIndex)}),this._selectedIndex!==_t&&(this._selectedIndex=_t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var _t=Qe._clampTabIndex(Qe._indexToSelect);if(_t===Qe._selectedIndex){for(var gn,Wt=Qe._tabs.toArray(),Rn=0;Rn<Wt.length;Rn++)if(Wt[Rn].isActive){Qe._indexToSelect=Qe._selectedIndex=Rn,Qe._lastFocusedTabIndex=null,gn=Wt[Rn];break}!gn&&Wt[_t]&&Promise.resolve().then(function(){Wt[_t].isActive=!0,Qe.selectedTabChange.emit(Qe._createChangeEvent(_t))})}Qe._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var Qe=this;this._allTabs.changes.pipe((0,S.O)(this._allTabs)).subscribe(function(_t){Qe._tabs.reset(_t.filter(function(Wt){return Wt._closestTabGroup===Qe||!Wt._closestTabGroup})),Qe._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(Qe){var _t=this._tabHeader;_t&&(_t.focusIndex=Qe)}},{key:"_focusChanged",value:function(Qe){this._lastFocusedTabIndex=Qe,this.focusChange.emit(this._createChangeEvent(Qe))}},{key:"_createChangeEvent",value:function(Qe){var _t=new mn;return _t.index=Qe,this._tabs&&this._tabs.length&&(_t.tab=this._tabs.toArray()[Qe]),_t}},{key:"_subscribeToTabLabels",value:function(){var Qe=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ge.T.apply(void 0,(0,Y.Z)(this._tabs.map(function(_t){return _t._stateChanges}))).subscribe(function(){return Qe._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(Qe){return Math.min(this._tabs.length-1,Math.max(Qe||0,0))}},{key:"_getTabLabelId",value:function(Qe){return"mat-tab-label-".concat(this._groupId,"-").concat(Qe)}},{key:"_getTabContentId",value:function(Qe){return"mat-tab-content-".concat(this._groupId,"-").concat(Qe)}},{key:"_setTabBodyWrapperHeight",value:function(Qe){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var _t=this._tabBodyWrapper.nativeElement;_t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(_t.style.height=Qe+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var Qe=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Qe.clientHeight,Qe.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(Qe,_t,Wt){Qe.disabled||(this.selectedIndex=_t.focusIndex=Wt)}},{key:"_getTabIndex",value:function(Qe,_t){var Wt;return Qe.disabled?null:_t===(null!==(Wt=this._lastFocusedTabIndex)&&void 0!==Wt?Wt:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(Qe,_t){Qe&&"mouse"!==Qe&&"touch"!==Qe&&(this._tabHeader.focusIndex=_t)}}]),Se}((0,I.pj)((0,I.Kr)(function(){return(0,y.Z)(function pn(lt){(0,D.Z)(this,pn),this._elementRef=lt})}()),"primary"));Yn.\u0275fac=function(lt){return new(lt||Yn)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(at,8),k.Y36(T.Qb,8))},Yn.\u0275dir=k.lG2({type:Yn,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[k.qOj]});var Kt=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt){return(0,D.Z)(this,Se),lt.call(this,Ae,Qe,_t,Wt)}return(0,y.Z)(Se)}(Yn);Kt.\u0275fac=function(lt){return new(lt||Kt)(k.Y36(k.SBq),k.Y36(k.sBO),k.Y36(at,8),k.Y36(T.Qb,8))},Kt.\u0275cmp=k.Xpm({type:Kt,selectors:[["mat-tab-group"]],contentQueries:function(lt,Se,Ae){var Qe;(1<&&k.Suo(Ae,dt,5),2<)&&(k.iGM(Qe=k.CRH())&&(Se._allTabs=Qe))},viewQuery:function(lt,Se){var Ae;(1<&&(k.Gf(on,5),k.Gf(_n,5)),2<)&&(k.iGM(Ae=k.CRH())&&(Se._tabBodyWrapper=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabHeader=Ae.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(lt,Se){2<&&k.ekj("mat-tab-group-dynamic-height",Se.dynamicHeight)("mat-tab-group-inverted-header","below"===Se.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[k._Bn([{provide:Bt,useExisting:Kt}]),k.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","_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","_onCentered","_onCentering"]],template:function(lt,Se){1<&&(k.TgZ(0,"mat-tab-header",0,1),k.NdJ("indexFocused",function(Qe){return Se._focusChanged(Qe)})("selectFocusedIndex",function(Qe){return Se.selectedIndex=Qe}),k.YNc(2,Et,5,15,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.YNc(5,Ut,1,10,"mat-tab-body",5),k.qZA()),2<&&(k.Q6J("selectedIndex",Se.selectedIndex||0)("disableRipple",Se.disableRipple)("disablePagination",Se.disablePagination),k.xp6(2),k.Q6J("ngForOf",Se._tabs),k.xp6(1),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(2),k.Q6J("ngForOf",Se._tabs))},directives:[Ln,We,A.sg,tn,I.wG,K.kH,A.mk,A.O5,E.Pl],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}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.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-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.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}\n"],encapsulation:2});var tt=0,Ue=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn,cr){var Rr;return(0,D.Z)(this,Se),(Rr=lt.call(this,Ae,Wt,gn,Qe,_t,Rn,cr))._disableRipple=!1,Rr.color="primary",Rr}return(0,y.Z)(Se,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(Qe){var _t=this._elementRef.nativeElement.classList;_t.remove("mat-background-".concat(this.backgroundColor)),Qe&&_t.add("mat-background-".concat(Qe)),this._backgroundColor=Qe}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(Qe){this._disableRipple=(0,Be.Ig)(Qe)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var Qe=this;this._items.changes.pipe((0,S.O)(null),(0,R.R)(this._destroyed)).subscribe(function(){Qe.updateActiveLink()}),(0,M.Z)((0,U.Z)(Se.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var Qe=this._items.toArray(),_t=0;_t<Qe.length;_t++)if(Qe[_t].active)return this.selectedIndex=_t,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=Qe[_t].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),Se}(Dn);Ue.\u0275fac=function(lt){return new(lt||Ue)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Ue.\u0275dir=k.lG2({type:Ue,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[k.qOj]});var Ee=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn,cr){return(0,D.Z)(this,Se),lt.call(this,Ae,Qe,_t,Wt,gn,Rn,cr)}return(0,y.Z)(Se)}(Ue);Ee.\u0275fac=function(lt){return new(lt||Ee)(k.Y36(k.SBq),k.Y36(ke.Is,8),k.Y36(k.R0b),k.Y36(k.sBO),k.Y36(Nt.rL),k.Y36(Mt.t4),k.Y36(T.Qb,8))},Ee.\u0275cmp=k.Xpm({type:Ee,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(lt,Se,Ae){var Qe;(1<&&k.Suo(Ae,Yt,5),2<)&&(k.iGM(Qe=k.CRH())&&(Se._items=Qe))},viewQuery:function(lt,Se){var Ae;(1<&&(k.Gf(mt,7),k.Gf(rt,7),k.Gf(vt,7),k.Gf(nt,7),k.Gf(Rt,5),k.Gf(It,5)),2<)&&(k.iGM(Ae=k.CRH())&&(Se._inkBar=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListContainer=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabList=Ae.first),k.iGM(Ae=k.CRH())&&(Se._tabListInner=Ae.first),k.iGM(Ae=k.CRH())&&(Se._nextPaginator=Ae.first),k.iGM(Ae=k.CRH())&&(Se._previousPaginator=Ae.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(lt,Se){2<&&(k.uIk("role",Se._getRole()),k.ekj("mat-tab-header-pagination-controls-enabled",Se._showPaginationControls)("mat-tab-header-rtl","rtl"==Se._getLayoutDirection())("mat-primary","warn"!==Se.color&&"accent"!==Se.color)("mat-accent","accent"===Se.color)("mat-warn","warn"===Se.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[k.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:en,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(lt,Se){1<&&(k.F$t(),k.TgZ(0,"button",0,1),k.NdJ("click",function(){return Se._handlePaginatorClick("before")})("mousedown",function(Qe){return Se._handlePaginatorPress("before",Qe)})("touchend",function(){return Se._stopInterval()}),k._UZ(2,"div",2),k.qZA(),k.TgZ(3,"div",3,4),k.NdJ("keydown",function(Qe){return Se._handleKeydown(Qe)}),k.TgZ(5,"div",5,6),k.NdJ("cdkObserveContent",function(){return Se._onContentChanges()}),k.TgZ(7,"div",7,8),k.Hsn(9),k.qZA(),k._UZ(10,"mat-ink-bar"),k.qZA()(),k.TgZ(11,"button",9,10),k.NdJ("mousedown",function(Qe){return Se._handlePaginatorPress("after",Qe)})("click",function(){return Se._handlePaginatorClick("after")})("touchend",function(){return Se._stopInterval()}),k._UZ(13,"div",2),k.qZA()),2<&&(k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollBefore),k.Q6J("matRippleDisabled",Se._disableScrollBefore||Se.disableRipple)("disabled",Se._disableScrollBefore||null),k.xp6(5),k.ekj("_mat-animation-noopable","NoopAnimations"===Se._animationMode),k.xp6(6),k.ekj("mat-tab-header-pagination-disabled",Se._disableScrollAfter),k.Q6J("matRippleDisabled",Se._disableScrollAfter||Se.disableRipple)("disabled",Se._disableScrollAfter||null))},directives:[I.wG,F.wD,mt],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:transparent;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-animation-noopable.mat-ink-bar{transition:none;animation:none}.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:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.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}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2});var bt=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn){var cr;return(0,D.Z)(this,Se),(cr=lt.call(this))._tabNavBar=Ae,cr.elementRef=Qe,cr._focusMonitor=gn,cr._isActive=!1,cr.id="mat-tab-link-".concat(tt++),cr.rippleConfig=_t||{},cr.tabIndex=parseInt(Wt)||0,"NoopAnimations"===Rn&&(cr.rippleConfig.animation={enterDuration:0,exitDuration:0}),cr}return(0,y.Z)(Se,[{key:"active",get:function(){return this._isActive},set:function(Qe){var _t=(0,Be.Ig)(Qe);_t!==this._isActive&&(this._isActive=_t,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(Qe){this._tabNavBar.tabPanel&&Qe.keyCode===ct.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var Qe;return this._tabNavBar.tabPanel?null===(Qe=this._tabNavBar.tabPanel)||void 0===Qe?void 0:Qe.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?0:-1:this.tabIndex}}]),Se}((0,I.sb)((0,I.Kr)((0,I.Id)(function(){return(0,y.Z)(function pn(){(0,D.Z)(this,pn)})}()))));bt.\u0275fac=function(lt){return new(lt||bt)(k.Y36(Ue),k.Y36(k.SBq),k.Y36(I.Y2,8),k.$8M("tabindex"),k.Y36(K.tE),k.Y36(T.Qb,8))},bt.\u0275dir=k.lG2({type:bt,inputs:{active:"active",id:"id"},features:[k.qOj]});var Yt=function(pn){(0,L.Z)(Se,pn);var lt=(0,P.Z)(Se);function Se(Ae,Qe,_t,Wt,gn,Rn,cr,Rr){var Xr;return(0,D.Z)(this,Se),(Xr=lt.call(this,Ae,Qe,gn,Rn,cr,Rr))._tabLinkRipple=new I.IR((0,z.Z)(Xr),_t,Qe,Wt),Xr._tabLinkRipple.setupTriggerEvents(Qe.nativeElement),Xr}return(0,y.Z)(Se,[{key:"ngOnDestroy",value:function(){(0,M.Z)((0,U.Z)(Se.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),Se}(bt);Yt.\u0275fac=function(lt){return new(lt||Yt)(k.Y36(Ee),k.Y36(k.SBq),k.Y36(k.R0b),k.Y36(Mt.t4),k.Y36(I.Y2,8),k.$8M("tabindex"),k.Y36(K.tE),k.Y36(T.Qb,8))},Yt.\u0275dir=k.lG2({type:Yt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(lt,Se){1<&&k.NdJ("focus",function(){return Se._handleFocus()})("keydown",function(Qe){return Se._handleKeydown(Qe)}),2<&&(k.uIk("aria-controls",Se._getAriaControls())("aria-current",Se._getAriaCurrent())("aria-disabled",Se.disabled)("aria-selected",Se._getAriaSelected())("id",Se.id)("tabIndex",Se._getTabIndex())("role",Se._getRole()),k.ekj("mat-tab-disabled",Se.disabled)("mat-tab-label-active",Se.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[k.qOj]});var En=(0,y.Z)(function pn(){(0,D.Z)(this,pn),this.id="mat-tab-nav-panel-".concat(tt++)});En.\u0275fac=function(lt){return new(lt||En)},En.\u0275cmp=k.Xpm({type:En,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(lt,Se){2<&&k.uIk("aria-labelledby",Se._activeTabId)("id",Se.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:en,decls:1,vars:0,template:function(lt,Se){1<&&(k.F$t(),k.Hsn(0))},encapsulation:2,changeDetection:0});var rr=(0,y.Z)(function pn(){(0,D.Z)(this,pn)});rr.\u0275fac=function(lt){return new(lt||rr)},rr.\u0275mod=k.oAB({type:rr}),rr.\u0275inj=k.cJS({imports:[[A.ez,I.BQ,E.eL,I.si,F.Q8,K.rt],I.BQ]})},6360:function(qe,J,m){"use strict";m.d(J,{Qb:function(){return pi},PW:function(){return ji}});var z=m(7685),Y=m(5671),M=m(3144),U=m(136),L=m(9388),P=m(5e3),D=m(2313),y=m(1777),K=m(7762),F=m(4902),E=!1;function k(ze){return new P.vHH(3e3,E)}function en(ze){return new P.vHH(3502,E)}function Xe(){return new P.vHH(3300,E)}function jt(ze){return new P.vHH(3504,E)}function Zt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Et(ze){switch(ze.length){case 0:return new y.ZN;case 1:return ze[0];default:return new y.ZE(ze)}}function Ut(ze,me,ie,fe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},$e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},wt=[],Ft=[],Vt=-1,Qt=null;if(fe.forEach(function(yn){var Qn=yn.offset,ir=Qn==Vt,_r=ir&&Qt||{};Object.keys(yn).forEach(function(gr){var di=gr,Ne=yn[gr];if("offset"!==gr)switch(di=me.normalizePropertyName(di,wt),Ne){case y.k1:Ne=Ze[gr];break;case y.l3:Ne=$e[gr];break;default:Ne=me.normalizeStyleValue(gr,di,Ne,wt)}_r[di]=Ne}),ir||Ft.push(_r),Qt=_r,Vt=Qn}),wt.length)throw en();return Ft}function Ht(ze,me,ie,fe){switch(me){case"start":ze.onStart(function(){return fe(ie&&sn(ie,"start",ze))});break;case"done":ze.onDone(function(){return fe(ie&&sn(ie,"done",ze))});break;case"destroy":ze.onDestroy(function(){return fe(ie&&sn(ie,"destroy",ze))})}}function sn(ze,me,ie){var fe=ie.totalTime,Ze=!!ie.disabled,$e=yt(ze.element,ze.triggerName,ze.fromState,ze.toState,me||ze.phaseName,null==fe?ze.totalTime:fe,Ze),wt=ze._data;return null!=wt&&($e._data=wt),$e}function yt(ze,me,ie,fe){var Ze=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",$e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,wt=arguments.length>6?arguments[6]:void 0;return{element:ze,triggerName:me,fromState:ie,toState:fe,phaseName:Ze,totalTime:$e,disabled:!!wt}}function mt(ze,me,ie){var fe;return ze instanceof Map?(fe=ze.get(me))||ze.set(me,fe=ie):(fe=ze[me])||(fe=ze[me]=ie),fe}function cn(ze){var me=ze.indexOf(":");return[ze.substring(1,me),ze.substr(me+1)]}var $t=function(me,ie){return!1},j=function(me,ie,fe){return[]},V=null;function Jn(ze){var me=ze.parentNode||ze.host;return me===V?null:me}(Zt()||"undefined"!=typeof Element)&&(function Gt(){return"undefined"!=typeof window&&void 0!==window.document}()?(V=function(){return document.documentElement}(),$t=function(me,ie){for(;ie;){if(ie===me)return!0;ie=Jn(ie)}return!1}):$t=function(me,ie){return me.contains(ie)},j=function(me,ie,fe){if(fe)return Array.from(me.querySelectorAll(ie));var Ze=me.querySelector(ie);return Ze?[Ze]:[]});var dt=null,de=!1;function Te(ze){dt||(dt=function ue(){return"undefined"!=typeof document?document.body:null}()||{},de=!!dt.style&&"WebkitAppearance"in dt.style);var me=!0;dt.style&&!function Bt(ze){return"ebkit"==ze.substring(1,6)}(ze)&&(!(me=ze in dt.style)&&de)&&(me="Webkit"+ze.charAt(0).toUpperCase()+ze.substr(1)in dt.style);return me}var We=$t,at=j;var tn=function(){function ze(){(0,Y.Z)(this,ze)}return(0,M.Z)(ze,[{key:"validateStyleProperty",value:function(ie){return Te(ie)}},{key:"matchesElement",value:function(ie,fe){return!1}},{key:"containsElement",value:function(ie,fe){return We(ie,fe)}},{key:"getParentElement",value:function(ie){return Jn(ie)}},{key:"query",value:function(ie,fe,Ze){return at(ie,fe,Ze)}},{key:"computeStyle",value:function(ie,fe,Ze){return Ze||""}},{key:"animate",value:function(ie,fe,Ze,$e,wt){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new y.ZN(Ze,$e)}}]),ze}();tn.\u0275fac=function(me){return new(me||tn)},tn.\u0275prov=P.Yz7({token:tn,factory:tn.\u0275fac});var Jt=(0,M.Z)(function ze(){(0,Y.Z)(this,ze)});Jt.NOOP=new tn;var Dn="ng-enter",zn="ng-leave",Ln="ng-trigger",jn=".ng-trigger",mn="ng-animating",lr=".ng-animating";function Yn(ze){if("number"==typeof ze)return ze;var me=ze.match(/^(-?[\.\d]+)(m?s)/);return!me||me.length<2?0:Kt(parseFloat(me[1]),me[2])}function Kt(ze,me){return"s"===me?1e3*ze:ze}function tt(ze,me,ie){return ze.hasOwnProperty("duration")?ze:function Ue(ze,me,ie){var Ze,fe=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,$e=0,wt="";if("string"==typeof ze){var Ft=ze.match(fe);if(null===Ft)return me.push(k()),{duration:0,delay:0,easing:""};Ze=Kt(parseFloat(Ft[1]),Ft[2]);var Vt=Ft[3];null!=Vt&&($e=Kt(parseFloat(Vt),Ft[4]));var Qt=Ft[5];Qt&&(wt=Qt)}else Ze=ze;if(!ie){var yn=!1,Qn=me.length;Ze<0&&(me.push(function I(){return new P.vHH(3100,E)}()),yn=!0),$e<0&&(me.push(function T(){return new P.vHH(3101,E)}()),yn=!0),yn&&me.splice(Qn,0,k())}return{duration:Ze,delay:$e,easing:wt}}(ze,me,ie)}function Ee(ze){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(ze).forEach(function(ie){me[ie]=ze[ie]}),me}function bt(ze,me){var ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(me)for(var fe in ze)ie[fe]=ze[fe];else Ee(ze,ie);return ie}function Yt(ze,me,ie){return ie?me+":"+ie+";":""}function En(ze){for(var me="",ie=0;ie<ze.style.length;ie++){var fe=ze.style.item(ie);me+=Yt(0,fe,ze.style.getPropertyValue(fe))}for(var Ze in ze.style)if(ze.style.hasOwnProperty(Ze)&&!Ze.startsWith("_")){me+=Yt(0,cr(Ze),ze.style[Ze])}ze.setAttribute("style",me)}function rr(ze,me,ie){ze.style&&(Object.keys(me).forEach(function(fe){var Ze=Rn(fe);ie&&!ie.hasOwnProperty(fe)&&(ie[fe]=ze.style[Ze]),ze.style[Ze]=me[fe]}),Zt()&&En(ze))}function pn(ze,me){ze.style&&(Object.keys(me).forEach(function(ie){var fe=Rn(ie);ze.style[fe]=""}),Zt()&&En(ze))}function lt(ze){return Array.isArray(ze)?1==ze.length?ze[0]:(0,y.vP)(ze):ze}function Se(ze,me,ie){var fe=me.params||{},Ze=Qe(ze);Ze.length&&Ze.forEach(function($e){fe.hasOwnProperty($e)||ie.push(function w(ze){return new P.vHH(3001,E)}())})}var Ae=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Qe(ze){var me=[];if("string"==typeof ze){for(var ie;ie=Ae.exec(ze);)me.push(ie[1]);Ae.lastIndex=0}return me}function _t(ze,me,ie){var fe=ze.toString(),Ze=fe.replace(Ae,function($e,wt){var Ft=me[wt];return me.hasOwnProperty(wt)||(ie.push(function S(ze){return new P.vHH(3003,E)}()),Ft=""),Ft.toString()});return Ze==fe?ze:Ze}function Wt(ze){for(var me=[],ie=ze.next();!ie.done;)me.push(ie.value),ie=ze.next();return me}var gn=/-+([a-z0-9])/g;function Rn(ze){return ze.replace(gn,function(){for(var me=arguments.length,ie=new Array(me),fe=0;fe<me;fe++)ie[fe]=arguments[fe];return ie[1].toUpperCase()})}function cr(ze){return ze.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rr(ze,me){return 0===ze||0===me}function Xr(ze,me,ie){var fe=Object.keys(ie);if(fe.length&&me.length){var Ze=me[0],$e=[];if(fe.forEach(function(Vt){Ze.hasOwnProperty(Vt)||$e.push(Vt),Ze[Vt]=ie[Vt]}),$e.length)for(var wt=function(){var Qt=me[Ft];$e.forEach(function(yn){Qt[yn]=Hi(ze,yn)})},Ft=1;Ft<me.length;Ft++)wt()}return me}function Mr(ze,me,ie){switch(me.type){case 7:return ze.visitTrigger(me,ie);case 0:return ze.visitState(me,ie);case 1:return ze.visitTransition(me,ie);case 2:return ze.visitSequence(me,ie);case 3:return ze.visitGroup(me,ie);case 4:return ze.visitAnimate(me,ie);case 5:return ze.visitKeyframes(me,ie);case 6:return ze.visitStyle(me,ie);case 8:return ze.visitReference(me,ie);case 9:return ze.visitAnimateChild(me,ie);case 10:return ze.visitAnimateRef(me,ie);case 11:return ze.visitQuery(me,ie);case 12:return ze.visitStagger(me,ie);default:throw function N(ze){return new P.vHH(3004,E)}(me.type)}}function Hi(ze,me){return window.getComputedStyle(ze)[me]}function Ja(ze,me){var ie=[];return"string"==typeof ze?ze.split(/\s*,\s*/).forEach(function(fe){return function zi(ze,me,ie){if(":"==ze[0]){var fe=function or(ze,me){switch(ze){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(ie,fe){return parseFloat(fe)>parseFloat(ie)};case":decrement":return function(ie,fe){return parseFloat(fe)<parseFloat(ie)};default:return me.push(function ct(ze){return new P.vHH(3016,E)}()),"* => *"}}(ze,ie);if("function"==typeof fe)return void me.push(fe);ze=fe}var Ze=ze.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Ze||Ze.length<4)return ie.push(function Be(ze){return new P.vHH(3015,E)}()),me;var $e=Ze[1],wt=Ze[2],Ft=Ze[3];me.push(lo($e,Ft));var Vt="*"==$e&&"*"==Ft;"<"==wt[0]&&!Vt&&me.push(lo(Ft,$e))}(fe,ie,me)}):ie.push(ze),ie}var Pr=new Set(["true","1"]),ci=new Set(["false","0"]);function lo(ze,me){var ie=Pr.has(ze)||ci.has(ze),fe=Pr.has(me)||ci.has(me);return function(Ze,$e){var wt="*"==ze||ze==Ze,Ft="*"==me||me==$e;return!wt&&ie&&"boolean"==typeof Ze&&(wt=Ze?Pr.has(ze):ci.has(ze)),!Ft&&fe&&"boolean"==typeof $e&&(Ft=$e?Pr.has(me):ci.has(me)),wt&&Ft}}var uo=":self",mi=new RegExp("s*".concat(":self","s*,?"),"g");function Bo(ze,me,ie,fe){return new Pi(ze).build(me,ie,fe)}var Pi=function(){function ze(me){(0,Y.Z)(this,ze),this._driver=me}return(0,M.Z)(ze,[{key:"build",value:function(ie,fe,Ze){var $e=new Js(fe);this._resetContextStyleTimingState($e);var wt=Mr(this,lt(ie),$e);return $e.unsupportedCSSPropertiesFound.size&&(0,F.Z)($e.unsupportedCSSPropertiesFound.keys()),wt}},{key:"_resetContextStyleTimingState",value:function(ie){ie.currentQuerySelector="",ie.collectedStyles={},ie.collectedStyles[""]={},ie.currentTime=0}},{key:"visitTrigger",value:function(ie,fe){var Ze=this,$e=fe.queryCount=0,wt=fe.depCount=0,Ft=[],Vt=[];return"@"==ie.name.charAt(0)&&fe.errors.push(function W(){return new P.vHH(3006,E)}()),ie.definitions.forEach(function(Qt){if(Ze._resetContextStyleTimingState(fe),0==Qt.type){var yn=Qt,Qn=yn.name;Qn.toString().split(/\s*,\s*/).forEach(function(_r){yn.name=_r,Ft.push(Ze.visitState(yn,fe))}),yn.name=Qn}else if(1==Qt.type){var ir=Ze.visitTransition(Qt,fe);$e+=ir.queryCount,wt+=ir.depCount,Vt.push(ir)}else fe.errors.push(function $(){return new P.vHH(3007,E)}())}),{type:7,name:ie.name,states:Ft,transitions:Vt,queryCount:$e,depCount:wt,options:null}}},{key:"visitState",value:function(ie,fe){var Ze=this.visitStyle(ie.styles,fe),$e=ie.options&&ie.options.params||null;if(Ze.containsDynamicStyles){var wt=new Set,Ft=$e||{};if(Ze.styles.forEach(function(Qt){if(Ri(Qt)){var yn=Qt;Object.keys(yn).forEach(function(Qn){Qe(yn[Qn]).forEach(function(ir){Ft.hasOwnProperty(ir)||wt.add(ir)})})}}),wt.size){Wt(wt.values());fe.errors.push(function ce(ze,me){return new P.vHH(3008,E)}(ie.name))}}return{type:0,name:ie.name,style:Ze,options:$e?{params:$e}:null}}},{key:"visitTransition",value:function(ie,fe){fe.queryCount=0,fe.depCount=0;var Ze=Mr(this,lt(ie.animation),fe);return{type:1,matchers:Ja(ie.expr,fe.errors),animation:Ze,queryCount:fe.queryCount,depCount:fe.depCount,options:_i(ie.options)}}},{key:"visitSequence",value:function(ie,fe){var Ze=this;return{type:2,steps:ie.steps.map(function($e){return Mr(Ze,$e,fe)}),options:_i(ie.options)}}},{key:"visitGroup",value:function(ie,fe){var Ze=this,$e=fe.currentTime,wt=0,Ft=ie.steps.map(function(Vt){fe.currentTime=$e;var Qt=Mr(Ze,Vt,fe);return wt=Math.max(wt,fe.currentTime),Qt});return fe.currentTime=wt,{type:3,steps:Ft,options:_i(ie.options)}}},{key:"visitAnimate",value:function(ie,fe){var Ze=function Do(ze,me){if(ze.hasOwnProperty("duration"))return ze;if("number"==typeof ze){return Ko(tt(ze,me).duration,0,"")}var fe=ze,Ze=fe.split(/\s+/).some(function(Ft){return"{"==Ft.charAt(0)&&"{"==Ft.charAt(1)});if(Ze){var $e=Ko(0,0,"");return $e.dynamic=!0,$e.strValue=fe,$e}var wt=tt(fe,me);return Ko(wt.duration,wt.delay,wt.easing)}(ie.timings,fe.errors);fe.currentAnimateTimings=Ze;var $e,wt=ie.styles?ie.styles:(0,y.oB)({});if(5==wt.type)$e=this.visitKeyframes(wt,fe);else{var Ft=ie.styles,Vt=!1;if(!Ft){Vt=!0;var Qt={};Ze.easing&&(Qt.easing=Ze.easing),Ft=(0,y.oB)(Qt)}fe.currentTime+=Ze.duration+Ze.delay;var yn=this.visitStyle(Ft,fe);yn.isEmptyStep=Vt,$e=yn}return fe.currentAnimateTimings=null,{type:4,timings:Ze,style:$e,options:null}}},{key:"visitStyle",value:function(ie,fe){var Ze=this._makeStyleAst(ie,fe);return this._validateStyleAst(Ze,fe),Ze}},{key:"_makeStyleAst",value:function(ie,fe){var Ze=[];Array.isArray(ie.styles)?ie.styles.forEach(function(Ft){"string"==typeof Ft?Ft==y.l3?Ze.push(Ft):fe.errors.push(function se(ze){return new P.vHH(3002,E)}()):Ze.push(Ft)}):Ze.push(ie.styles);var $e=!1,wt=null;return Ze.forEach(function(Ft){if(Ri(Ft)){var Vt=Ft,Qt=Vt.easing;if(Qt&&(wt=Qt,delete Vt.easing),!$e)for(var yn in Vt){if(Vt[yn].toString().indexOf("{{")>=0){$e=!0;break}}}}),{type:6,styles:Ze,easing:wt,offset:ie.offset,containsDynamicStyles:$e,options:null}}},{key:"_validateStyleAst",value:function(ie,fe){var Ze=this,$e=fe.currentAnimateTimings,wt=fe.currentTime,Ft=fe.currentTime;$e&&Ft>0&&(Ft-=$e.duration+$e.delay),ie.styles.forEach(function(Vt){"string"!=typeof Vt&&Object.keys(Vt).forEach(function(Qt){if(!Ze._driver.validateStyleProperty(Qt))return delete Vt[Qt],void fe.unsupportedCSSPropertiesFound.add(Qt);var yn=fe.collectedStyles[fe.currentQuerySelector],Qn=yn[Qt],ir=!0;Qn&&(Ft!=wt&&Ft>=Qn.startTime&&wt<=Qn.endTime&&(fe.errors.push(function oe(ze,me,ie,fe,Ze){return new P.vHH(3010,E)}(0,Qn.startTime,Qn.endTime)),ir=!1),Ft=Qn.startTime),ir&&(yn[Qt]={startTime:Ft,endTime:wt}),fe.options&&Se(Vt[Qt],fe.options,fe.errors)})})}},{key:"visitKeyframes",value:function(ie,fe){var Ze=this,$e={type:5,styles:[],options:null};if(!fe.currentAnimateTimings)return fe.errors.push(function ge(){return new P.vHH(3011,E)}()),$e;var Ft=0,Vt=[],Qt=!1,yn=!1,Qn=0,ir=ie.steps.map(function(je){var De=Ze._makeStyleAst(je,fe),it=null!=De.offset?De.offset:function Qa(ze){if("string"==typeof ze)return null;var me=null;if(Array.isArray(ze))ze.forEach(function(fe){if(Ri(fe)&&fe.hasOwnProperty("offset")){var Ze=fe;me=parseFloat(Ze.offset),delete Ze.offset}});else if(Ri(ze)&&ze.hasOwnProperty("offset")){var ie=ze;me=parseFloat(ie.offset),delete ie.offset}return me}(De.styles),At=0;return null!=it&&(Ft++,At=De.offset=it),yn=yn||At<0||At>1,Qt=Qt||At<Qn,Qn=At,Vt.push(At),De});yn&&fe.errors.push(function Oe(){return new P.vHH(3012,E)}()),Qt&&fe.errors.push(function ot(){return new P.vHH(3200,E)}());var _r=ie.steps.length,gr=0;Ft>0&&Ft<_r?fe.errors.push(function xe(){return new P.vHH(3202,E)}()):0==Ft&&(gr=1/(_r-1));var di=_r-1,Ne=fe.currentTime,we=fe.currentAnimateTimings,X=we.duration;return ir.forEach(function(je,De){var it=gr>0?De==di?1:gr*De:Vt[De],At=it*X;fe.currentTime=Ne+we.delay+At,we.duration=At,Ze._validateStyleAst(je,fe),je.offset=it,$e.styles.push(je)}),$e}},{key:"visitReference",value:function(ie,fe){return{type:8,animation:Mr(this,lt(ie.animation),fe),options:_i(ie.options)}}},{key:"visitAnimateChild",value:function(ie,fe){return fe.depCount++,{type:9,options:_i(ie.options)}}},{key:"visitAnimateRef",value:function(ie,fe){return{type:10,animation:this.visitReference(ie.animation,fe),options:_i(ie.options)}}},{key:"visitQuery",value:function(ie,fe){var Ze=fe.currentQuerySelector,$e=ie.options||{};fe.queryCount++,fe.currentQuery=ie;var wt=function Wi(ze){var me=!!ze.split(/\s*,\s*/).find(function(ie){return ie==uo});return me&&(ze=ze.replace(mi,"")),ze=ze.replace(/@\*/g,jn).replace(/@\w+/g,function(ie){return jn+"-"+ie.substr(1)}).replace(/:animating/g,lr),[ze,me]}(ie.selector),Ft=(0,z.Z)(wt,2),Vt=Ft[0],Qt=Ft[1];fe.currentQuerySelector=Ze.length?Ze+" "+Vt:Vt,mt(fe.collectedStyles,fe.currentQuerySelector,{});var yn=Mr(this,lt(ie.animation),fe);return fe.currentQuery=null,fe.currentQuerySelector=Ze,{type:11,selector:Vt,limit:$e.limit||0,optional:!!$e.optional,includeSelf:Qt,animation:yn,originalSelector:ie.selector,options:_i(ie.options)}}},{key:"visitStagger",value:function(ie,fe){fe.currentQuery||fe.errors.push(function _e(){return new P.vHH(3013,E)}());var Ze="full"===ie.timings?{duration:0,delay:0,easing:"full"}:tt(ie.timings,fe.errors,!0);return{type:12,animation:Mr(this,lt(ie.animation),fe),timings:Ze,options:null}}}]),ze}();var Js=(0,M.Z)(function ze(me){(0,Y.Z)(this,ze),this.errors=me,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Ri(ze){return!Array.isArray(ze)&&"object"==typeof ze}function _i(ze){return ze?(ze=Ee(ze)).params&&(ze.params=function hr(ze){return ze?Ee(ze):null}(ze.params)):ze={},ze}function Ko(ze,me,ie){return{duration:ze,delay:me,easing:ie}}function ga(ze,me,ie,fe,Ze,$e){var wt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,Ft=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:ze,keyframes:me,preStyleProps:ie,postStyleProps:fe,duration:Ze,delay:$e,totalTime:Ze+$e,easing:wt,subTimeline:Ft}}var bi=function(){function ze(){(0,Y.Z)(this,ze),this._map=new Map}return(0,M.Z)(ze,[{key:"get",value:function(ie){return this._map.get(ie)||[]}},{key:"append",value:function(ie,fe){var Ze,$e=this._map.get(ie);$e||this._map.set(ie,$e=[]),(Ze=$e).push.apply(Ze,(0,F.Z)(fe))}},{key:"has",value:function(ie){return this._map.has(ie)}},{key:"clear",value:function(){this._map.clear()}}]),ze}(),oa=new RegExp(":enter","g"),vn=new RegExp(":leave","g");function bn(ze,me,ie,fe,Ze){var $e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},wt=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},Ft=arguments.length>7?arguments[7]:void 0,Vt=arguments.length>8?arguments[8]:void 0,Qt=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new oi).buildKeyframes(ze,me,ie,fe,Ze,$e,wt,Ft,Vt,Qt)}var oi=function(){function ze(){(0,Y.Z)(this,ze)}return(0,M.Z)(ze,[{key:"buildKeyframes",value:function(ie,fe,Ze,$e,wt,Ft,Vt,Qt,yn){var Qn=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];yn=yn||new bi;var ir=new qi(ie,fe,yn,$e,wt,Qn,[]);ir.options=Qt,ir.currentTimeline.setStyles([Ft],null,ir.errors,Qt),Mr(this,Ze,ir);var _r=ir.timelines.filter(function(we){return we.containsAnimation()});if(Object.keys(Vt).length){for(var gr,di=_r.length-1;di>=0;di--){var Ne=_r[di];if(Ne.element===fe){gr=Ne;break}}gr&&!gr.allowOnlyTimelineStyles()&&gr.setStyles([Vt],null,ir.errors,Qt)}return _r.length?_r.map(function(we){return we.buildKeyframes()}):[ga(fe,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(ie,fe){}},{key:"visitState",value:function(ie,fe){}},{key:"visitTransition",value:function(ie,fe){}},{key:"visitAnimateChild",value:function(ie,fe){var Ze=fe.subInstructions.get(fe.element);if(Ze){var $e=fe.createSubContext(ie.options),wt=fe.currentTimeline.currentTime,Ft=this._visitSubInstructions(Ze,$e,$e.options);wt!=Ft&&fe.transformIntoNewTimeline(Ft)}fe.previousNode=ie}},{key:"visitAnimateRef",value:function(ie,fe){var Ze=fe.createSubContext(ie.options);Ze.transformIntoNewTimeline(),this.visitReference(ie.animation,Ze),fe.transformIntoNewTimeline(Ze.currentTimeline.currentTime),fe.previousNode=ie}},{key:"_visitSubInstructions",value:function(ie,fe,Ze){var wt=fe.currentTimeline.currentTime,Ft=null!=Ze.duration?Yn(Ze.duration):null,Vt=null!=Ze.delay?Yn(Ze.delay):null;return 0!==Ft&&ie.forEach(function(Qt){var yn=fe.appendInstructionToTimeline(Qt,Ft,Vt);wt=Math.max(wt,yn.duration+yn.delay)}),wt}},{key:"visitReference",value:function(ie,fe){fe.updateOptions(ie.options,!0),Mr(this,ie.animation,fe),fe.previousNode=ie}},{key:"visitSequence",value:function(ie,fe){var Ze=this,$e=fe.subContextCount,wt=fe,Ft=ie.options;if(Ft&&(Ft.params||Ft.delay)&&((wt=fe.createSubContext(Ft)).transformIntoNewTimeline(),null!=Ft.delay)){6==wt.previousNode.type&&(wt.currentTimeline.snapshotCurrentStyles(),wt.previousNode=Li);var Vt=Yn(Ft.delay);wt.delayNextStep(Vt)}ie.steps.length&&(ie.steps.forEach(function(Qt){return Mr(Ze,Qt,wt)}),wt.currentTimeline.applyStylesToKeyframe(),wt.subContextCount>$e&&wt.transformIntoNewTimeline()),fe.previousNode=ie}},{key:"visitGroup",value:function(ie,fe){var Ze=this,$e=[],wt=fe.currentTimeline.currentTime,Ft=ie.options&&ie.options.delay?Yn(ie.options.delay):0;ie.steps.forEach(function(Vt){var Qt=fe.createSubContext(ie.options);Ft&&Qt.delayNextStep(Ft),Mr(Ze,Vt,Qt),wt=Math.max(wt,Qt.currentTimeline.currentTime),$e.push(Qt.currentTimeline)}),$e.forEach(function(Vt){return fe.currentTimeline.mergeTimelineCollectedStyles(Vt)}),fe.transformIntoNewTimeline(wt),fe.previousNode=ie}},{key:"_visitTiming",value:function(ie,fe){if(ie.dynamic){var Ze=ie.strValue;return tt(fe.params?_t(Ze,fe.params,fe.errors):Ze,fe.errors)}return{duration:ie.duration,delay:ie.delay,easing:ie.easing}}},{key:"visitAnimate",value:function(ie,fe){var Ze=fe.currentAnimateTimings=this._visitTiming(ie.timings,fe),$e=fe.currentTimeline;Ze.delay&&(fe.incrementTime(Ze.delay),$e.snapshotCurrentStyles());var wt=ie.style;5==wt.type?this.visitKeyframes(wt,fe):(fe.incrementTime(Ze.duration),this.visitStyle(wt,fe),$e.applyStylesToKeyframe()),fe.currentAnimateTimings=null,fe.previousNode=ie}},{key:"visitStyle",value:function(ie,fe){var Ze=fe.currentTimeline,$e=fe.currentAnimateTimings;!$e&&Ze.getCurrentStyleProperties().length&&Ze.forwardFrame();var wt=$e&&$e.easing||ie.easing;ie.isEmptyStep?Ze.applyEmptyStep(wt):Ze.setStyles(ie.styles,wt,fe.errors,fe.options),fe.previousNode=ie}},{key:"visitKeyframes",value:function(ie,fe){var Ze=fe.currentAnimateTimings,$e=fe.currentTimeline.duration,wt=Ze.duration,Vt=fe.createSubContext().currentTimeline;Vt.easing=Ze.easing,ie.styles.forEach(function(Qt){var yn=Qt.offset||0;Vt.forwardTime(yn*wt),Vt.setStyles(Qt.styles,Qt.easing,fe.errors,fe.options),Vt.applyStylesToKeyframe()}),fe.currentTimeline.mergeTimelineCollectedStyles(Vt),fe.transformIntoNewTimeline($e+wt),fe.previousNode=ie}},{key:"visitQuery",value:function(ie,fe){var Ze=this,$e=fe.currentTimeline.currentTime,wt=ie.options||{},Ft=wt.delay?Yn(wt.delay):0;Ft&&(6===fe.previousNode.type||0==$e&&fe.currentTimeline.getCurrentStyleProperties().length)&&(fe.currentTimeline.snapshotCurrentStyles(),fe.previousNode=Li);var Vt=$e,Qt=fe.invokeQuery(ie.selector,ie.originalSelector,ie.limit,ie.includeSelf,!!wt.optional,fe.errors);fe.currentQueryTotal=Qt.length;var yn=null;Qt.forEach(function(Qn,ir){fe.currentQueryIndex=ir;var _r=fe.createSubContext(ie.options,Qn);Ft&&_r.delayNextStep(Ft),Qn===fe.element&&(yn=_r.currentTimeline),Mr(Ze,ie.animation,_r),_r.currentTimeline.applyStylesToKeyframe();var gr=_r.currentTimeline.currentTime;Vt=Math.max(Vt,gr)}),fe.currentQueryIndex=0,fe.currentQueryTotal=0,fe.transformIntoNewTimeline(Vt),yn&&(fe.currentTimeline.mergeTimelineCollectedStyles(yn),fe.currentTimeline.snapshotCurrentStyles()),fe.previousNode=ie}},{key:"visitStagger",value:function(ie,fe){var Ze=fe.parentContext,$e=fe.currentTimeline,wt=ie.timings,Ft=Math.abs(wt.duration),Vt=Ft*(fe.currentQueryTotal-1),Qt=Ft*fe.currentQueryIndex;switch(wt.duration<0?"reverse":wt.easing){case"reverse":Qt=Vt-Qt;break;case"full":Qt=Ze.currentStaggerTime}var Qn=fe.currentTimeline;Qt&&Qn.delayNextStep(Qt);var ir=Qn.currentTime;Mr(this,ie.animation,fe),fe.previousNode=ie,Ze.currentStaggerTime=$e.currentTime-ir+($e.startTime-Ze.currentTimeline.startTime)}}]),ze}(),Li={},qi=function(){function ze(me,ie,fe,Ze,$e,wt,Ft,Vt){(0,Y.Z)(this,ze),this._driver=me,this.element=ie,this.subInstructions=fe,this._enterClassName=Ze,this._leaveClassName=$e,this.errors=wt,this.timelines=Ft,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Li,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Vt||new ei(this._driver,ie,0),Ft.push(this.currentTimeline)}return(0,M.Z)(ze,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(ie,fe){var Ze=this;if(ie){var $e=ie,wt=this.options;null!=$e.duration&&(wt.duration=Yn($e.duration)),null!=$e.delay&&(wt.delay=Yn($e.delay));var Ft=$e.params;if(Ft){var Vt=wt.params;Vt||(Vt=this.options.params={}),Object.keys(Ft).forEach(function(Qt){(!fe||!Vt.hasOwnProperty(Qt))&&(Vt[Qt]=_t(Ft[Qt],Vt,Ze.errors))})}}}},{key:"_copyOptions",value:function(){var ie={};if(this.options){var fe=this.options.params;if(fe){var Ze=ie.params={};Object.keys(fe).forEach(function($e){Ze[$e]=fe[$e]})}}return ie}},{key:"createSubContext",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,fe=arguments.length>1?arguments[1]:void 0,Ze=arguments.length>2?arguments[2]:void 0,$e=fe||this.element,wt=new ze(this._driver,$e,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork($e,Ze||0));return wt.previousNode=this.previousNode,wt.currentAnimateTimings=this.currentAnimateTimings,wt.options=this._copyOptions(),wt.updateOptions(ie),wt.currentQueryIndex=this.currentQueryIndex,wt.currentQueryTotal=this.currentQueryTotal,wt.parentContext=this,this.subContextCount++,wt}},{key:"transformIntoNewTimeline",value:function(ie){return this.previousNode=Li,this.currentTimeline=this.currentTimeline.fork(this.element,ie),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(ie,fe,Ze){var $e={duration:null!=fe?fe:ie.duration,delay:this.currentTimeline.currentTime+(null!=Ze?Ze:0)+ie.delay,easing:""},wt=new Fo(this._driver,ie.element,ie.keyframes,ie.preStyleProps,ie.postStyleProps,$e,ie.stretchStartingKeyframe);return this.timelines.push(wt),$e}},{key:"incrementTime",value:function(ie){this.currentTimeline.forwardTime(this.currentTimeline.duration+ie)}},{key:"delayNextStep",value:function(ie){ie>0&&this.currentTimeline.delayNextStep(ie)}},{key:"invokeQuery",value:function(ie,fe,Ze,$e,wt,Ft){var Vt=[];if($e&&Vt.push(this.element),ie.length>0){ie=(ie=ie.replace(oa,"."+this._enterClassName)).replace(vn,"."+this._leaveClassName);var Qt=1!=Ze,yn=this._driver.query(this.element,ie,Qt);0!==Ze&&(yn=Ze<0?yn.slice(yn.length+Ze,yn.length):yn.slice(0,Ze)),Vt.push.apply(Vt,(0,F.Z)(yn))}return!wt&&0==Vt.length&&Ft.push(function ke(ze){return new P.vHH(3014,E)}()),Vt}}]),ze}(),ei=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this._driver=me,this.element=ie,this.startTime=fe,this._elementTimelineStylesLookup=Ze,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(ie),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(ie,this._localTimelineStyles)),this._loadKeyframe()}return(0,M.Z)(ze,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(ie){var fe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||fe?(this.forwardTime(this.currentTime+ie),fe&&this.snapshotCurrentStyles()):this.startTime+=ie}},{key:"fork",value:function(ie,fe){return this.applyStylesToKeyframe(),new ze(this._driver,ie,fe||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=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(ie){this.applyStylesToKeyframe(),this.duration=ie,this._loadKeyframe()}},{key:"_updateStyle",value:function(ie,fe){this._localTimelineStyles[ie]=fe,this._globalTimelineStyles[ie]=fe,this._styleSummary[ie]={time:this.currentTime,value:fe}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(ie){var fe=this;ie&&(this._previousKeyframe.easing=ie),Object.keys(this._globalTimelineStyles).forEach(function(Ze){fe._backFill[Ze]=fe._globalTimelineStyles[Ze]||y.l3,fe._currentKeyframe[Ze]=y.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(ie,fe,Ze,$e){var wt=this;fe&&(this._previousKeyframe.easing=fe);var Ft=$e&&$e.params||{},Vt=function Ki(ze,me){var fe,ie={};return ze.forEach(function(Ze){"*"===Ze?(fe=fe||Object.keys(me)).forEach(function($e){ie[$e]=y.l3}):bt(Ze,!1,ie)}),ie}(ie,this._globalTimelineStyles);Object.keys(Vt).forEach(function(Qt){var yn=_t(Vt[Qt],Ft,Ze);wt._pendingStyles[Qt]=yn,wt._localTimelineStyles.hasOwnProperty(Qt)||(wt._backFill[Qt]=wt._globalTimelineStyles.hasOwnProperty(Qt)?wt._globalTimelineStyles[Qt]:y.l3),wt._updateStyle(Qt,yn)})}},{key:"applyStylesToKeyframe",value:function(){var ie=this,fe=this._pendingStyles,Ze=Object.keys(fe);0!=Ze.length&&(this._pendingStyles={},Ze.forEach(function($e){var wt=fe[$e];ie._currentKeyframe[$e]=wt}),Object.keys(this._localTimelineStyles).forEach(function($e){ie._currentKeyframe.hasOwnProperty($e)||(ie._currentKeyframe[$e]=ie._localTimelineStyles[$e])}))}},{key:"snapshotCurrentStyles",value:function(){var ie=this;Object.keys(this._localTimelineStyles).forEach(function(fe){var Ze=ie._localTimelineStyles[fe];ie._pendingStyles[fe]=Ze,ie._updateStyle(fe,Ze)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var ie=[];for(var fe in this._currentKeyframe)ie.push(fe);return ie}},{key:"mergeTimelineCollectedStyles",value:function(ie){var fe=this;Object.keys(ie._styleSummary).forEach(function(Ze){var $e=fe._styleSummary[Ze],wt=ie._styleSummary[Ze];(!$e||wt.time>$e.time)&&fe._updateStyle(Ze,wt.value)})}},{key:"buildKeyframes",value:function(){var ie=this;this.applyStylesToKeyframe();var fe=new Set,Ze=new Set,$e=1===this._keyframes.size&&0===this.duration,wt=[];this._keyframes.forEach(function(Qn,ir){var _r=bt(Qn,!0);Object.keys(_r).forEach(function(gr){var di=_r[gr];di==y.k1?fe.add(gr):di==y.l3&&Ze.add(gr)}),$e||(_r.offset=ir/ie.duration),wt.push(_r)});var Ft=fe.size?Wt(fe.values()):[],Vt=Ze.size?Wt(Ze.values()):[];if($e){var Qt=wt[0],yn=Ee(Qt);Qt.offset=0,yn.offset=1,wt=[Qt,yn]}return ga(this.element,wt,Ft,Vt,this.duration,this.startTime,this.easing,!1)}}]),ze}(),Fo=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e,wt,Ft,Vt){var Qt,yn=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,Y.Z)(this,ie),(Qt=me.call(this,fe,Ze,Vt.delay)).keyframes=$e,Qt.preStyleProps=wt,Qt.postStyleProps=Ft,Qt._stretchStartingKeyframe=yn,Qt.timings={duration:Vt.duration,delay:Vt.delay,easing:Vt.easing},Qt}return(0,M.Z)(ie,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var Ze=this.keyframes,$e=this.timings,wt=$e.delay,Ft=$e.duration,Vt=$e.easing;if(this._stretchStartingKeyframe&&wt){var Qt=[],yn=Ft+wt,Qn=wt/yn,ir=bt(Ze[0],!1);ir.offset=0,Qt.push(ir);var _r=bt(Ze[0],!1);_r.offset=va(Qn),Qt.push(_r);for(var gr=Ze.length-1,di=1;di<=gr;di++){var Ne=bt(Ze[di],!1),X=wt+Ne.offset*Ft;Ne.offset=va(X/yn),Qt.push(Ne)}Ft=yn,wt=0,Vt="",Ze=Qt}return ga(this.element,Ze,this.preStyleProps,this.postStyleProps,Ft,wt,Vt,!0)}}]),ie}(ei);function va(ze){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,ie=Math.pow(10,me-1);return Math.round(ze*ie)/ie}var Co=(0,M.Z)(function ze(){(0,Y.Z)(this,ze)}),Uo=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(){return(0,Y.Z)(this,ie),me.apply(this,arguments)}return(0,M.Z)(ie,[{key:"normalizePropertyName",value:function(Ze,$e){return Rn(Ze)}},{key:"normalizeStyleValue",value:function(Ze,$e,wt,Ft){var Vt="",Qt=wt.toString().trim();if(ya[$e]&&0!==wt&&"0"!==wt)if("number"==typeof wt)Vt="px";else{var yn=wt.match(/^[+-]?[\d\.]+([a-z]*)$/);yn&&0==yn[1].length&&Ft.push(function R(ze,me){return new P.vHH(3005,E)}())}return Qt+Vt}}]),ie}(Co),ya=function Ho(ze){var me={};return ze.forEach(function(ie){return me[ie]=!0}),me}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Ji(ze,me,ie,fe,Ze,$e,wt,Ft,Vt,Qt,yn,Qn,ir){return{type:0,element:ze,triggerName:me,isRemovalTransition:Ze,fromState:ie,fromStyles:$e,toState:fe,toStyles:wt,timelines:Ft,queriedElements:Vt,preStyleProps:Qt,postStyleProps:yn,totalTime:Qn,errors:ir}}var mo={},tr=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this._triggerName=me,this.ast=ie,this._stateStyles=fe}return(0,M.Z)(ze,[{key:"match",value:function(ie,fe,Ze,$e){return function Ba(ze,me,ie,fe,Ze){return ze.some(function($e){return $e(me,ie,fe,Ze)})}(this.ast.matchers,ie,fe,Ze,$e)}},{key:"buildStyles",value:function(ie,fe,Ze){var $e=this._stateStyles["*"],wt=this._stateStyles[ie],Ft=$e?$e.buildStyles(fe,Ze):{};return wt?wt.buildStyles(fe,Ze):Ft}},{key:"build",value:function(ie,fe,Ze,$e,wt,Ft,Vt,Qt,yn,Qn){var ir=[],_r=this.ast.options&&this.ast.options.params||mo,gr=Vt&&Vt.params||mo,di=this.buildStyles(Ze,gr,ir),Ne=Qt&&Qt.params||mo,we=this.buildStyles($e,Ne,ir),X=new Set,je=new Map,De=new Map,it="void"===$e,At={params:Object.assign(Object.assign({},_r),Ne)},fn=Qn?[]:bn(ie,fe,this.ast.animation,wt,Ft,di,we,At,yn,ir),Sn=0;if(fn.forEach(function(Ti){Sn=Math.max(Ti.duration+Ti.delay,Sn)}),ir.length)return Ji(fe,this._triggerName,Ze,$e,it,di,we,[],[],je,De,Sn,ir);fn.forEach(function(Ti){var jo=Ti.element,$i=mt(je,jo,{});Ti.preStyleProps.forEach(function(eo){return $i[eo]=!0});var Ts=mt(De,jo,{});Ti.postStyleProps.forEach(function(eo){return Ts[eo]=!0}),jo!==fe&&X.add(jo)});var Sr=Wt(X.values());return Ji(fe,this._triggerName,Ze,$e,it,di,we,fn,Sr,je,De,Sn)}}]),ze}();var Oo=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.styles=me,this.defaultParams=ie,this.normalizer=fe}return(0,M.Z)(ze,[{key:"buildStyles",value:function(ie,fe){var Ze=this,$e={},wt=Ee(this.defaultParams);return Object.keys(ie).forEach(function(Ft){var Vt=ie[Ft];null!=Vt&&(wt[Ft]=Vt)}),this.styles.styles.forEach(function(Ft){if("string"!=typeof Ft){var Vt=Ft;Object.keys(Vt).forEach(function(Qt){var yn=Vt[Qt];yn.length>1&&(yn=_t(yn,wt,fe));var Qn=Ze.normalizer.normalizePropertyName(Qt,fe);yn=Ze.normalizer.normalizeStyleValue(Qt,Qn,yn,fe),$e[Qn]=yn})}}),$e}}]),ze}();var Kr=function(){function ze(me,ie,fe){var Ze=this;(0,Y.Z)(this,ze),this.name=me,this.ast=ie,this._normalizer=fe,this.transitionFactories=[],this.states={},ie.states.forEach(function($e){var wt=$e.options&&$e.options.params||{};Ze.states[$e.name]=new Oo($e.style,wt,fe)}),Jo(this.states,"true","1"),Jo(this.states,"false","0"),ie.transitions.forEach(function($e){Ze.transitionFactories.push(new tr(me,$e,Ze.states))}),this.fallbackTransition=function la(ze,me,ie){return new tr(ze,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(wt,Ft){return!0}],options:null,queryCount:0,depCount:0},me)}(me,this.states,this._normalizer)}return(0,M.Z)(ze,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(ie,fe,Ze,$e){return this.transitionFactories.find(function(Ft){return Ft.match(ie,fe,Ze,$e)})||null}},{key:"matchStyles",value:function(ie,fe,Ze){return this.fallbackTransition.buildStyles(ie,fe,Ze)}}]),ze}();function Jo(ze,me,ie){ze.hasOwnProperty(me)?ze.hasOwnProperty(ie)||(ze[ie]=ze[me]):ze.hasOwnProperty(ie)&&(ze[me]=ze[ie])}var br=new bi,Is=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.bodyNode=me,this._driver=ie,this._normalizer=fe,this._animations={},this._playersById={},this.players=[]}return(0,M.Z)(ze,[{key:"register",value:function(ie,fe){var Ze=[],$e=[],wt=Bo(this._driver,fe,Ze,$e);if(Ze.length)throw function qt(ze){return new P.vHH(3503,E)}();$e.length,this._animations[ie]=wt}},{key:"_buildPlayer",value:function(ie,fe,Ze){var $e=ie.element,wt=Ut(this._driver,this._normalizer,$e,ie.keyframes,fe,Ze);return this._driver.animate($e,wt,ie.duration,ie.delay,ie.easing,[],!0)}},{key:"create",value:function(ie,fe){var Vt,Ze=this,$e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},wt=[],Ft=this._animations[ie],Qt=new Map;if(Ft?(Vt=bn(this._driver,fe,Ft,Dn,zn,{},{},$e,br,wt)).forEach(function(ir){var _r=mt(Qt,ir.element,{});ir.postStyleProps.forEach(function(gr){return _r[gr]=null})}):(wt.push(Xe()),Vt=[]),wt.length)throw jt();Qt.forEach(function(ir,_r){Object.keys(ir).forEach(function(gr){ir[gr]=Ze._driver.computeStyle(_r,gr,y.l3)})});var yn=Vt.map(function(ir){var _r=Qt.get(ir.element);return Ze._buildPlayer(ir,{},_r)}),Qn=Et(yn);return this._playersById[ie]=Qn,Qn.onDestroy(function(){return Ze.destroy(ie)}),this.players.push(Qn),Qn}},{key:"destroy",value:function(ie){var fe=this._getPlayer(ie);fe.destroy(),delete this._playersById[ie];var Ze=this.players.indexOf(fe);Ze>=0&&this.players.splice(Ze,1)}},{key:"_getPlayer",value:function(ie){var fe=this._playersById[ie];if(!fe)throw function rt(ze){return new P.vHH(3301,E)}();return fe}},{key:"listen",value:function(ie,fe,Ze,$e){var wt=yt(fe,"","","");return Ht(this._getPlayer(ie),Ze,wt,$e),function(){}}},{key:"command",value:function(ie,fe,Ze,$e){if("register"!=Ze)if("create"!=Ze){var Ft=this._getPlayer(ie);switch(Ze){case"play":Ft.play();break;case"pause":Ft.pause();break;case"reset":Ft.reset();break;case"restart":Ft.restart();break;case"finish":Ft.finish();break;case"init":Ft.init();break;case"setPosition":Ft.setPosition(parseFloat($e[0]));break;case"destroy":this.destroy(ie)}}else{var wt=$e[0]||{};this.create(ie,fe,wt)}else this.register(ie,$e[0])}}]),ze}(),us="ng-animate-queued",Qi="ng-animate-disabled",Ps="ng-star-inserted",Fa=[],Tu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ua={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Qo="__ng_removed",es=function(){function ze(me){var ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,Y.Z)(this,ze),this.namespaceId=ie;var fe=me&&me.hasOwnProperty("value"),Ze=fe?me.value:me;if(this.value=Pe(Ze),fe){var $e=Ee(me);delete $e.value,this.options=$e}else this.options={};this.options.params||(this.options.params={})}return(0,M.Z)(ze,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(ie){var fe=ie.params;if(fe){var Ze=this.options.params;Object.keys(fe).forEach(function($e){null==Ze[$e]&&(Ze[$e]=fe[$e])})}}}]),ze}(),Rs="void",iu=new es(Rs),wo=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.id=me,this.hostElement=ie,this._engine=fe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+me,Pn(ie,this._hostClassName)}return(0,M.Z)(ze,[{key:"listen",value:function(ie,fe,Ze,$e){var wt=this;if(!this._triggers.hasOwnProperty(fe))throw function vt(ze,me){return new P.vHH(3302,E)}();if(null==Ze||0==Ze.length)throw function nt(ze){return new P.vHH(3303,E)}();if(!function gt(ze){return"start"==ze||"done"==ze}(Ze))throw function Rt(ze,me){return new P.vHH(3400,E)}();var Ft=mt(this._elementListeners,ie,[]),Vt={name:fe,phase:Ze,callback:$e};Ft.push(Vt);var Qt=mt(this._engine.statesByElement,ie,{});return Qt.hasOwnProperty(fe)||(Pn(ie,Ln),Pn(ie,Ln+"-"+fe),Qt[fe]=iu),function(){wt._engine.afterFlush(function(){var yn=Ft.indexOf(Vt);yn>=0&&Ft.splice(yn,1),wt._triggers[fe]||delete Qt[fe]})}}},{key:"register",value:function(ie,fe){return!this._triggers[ie]&&(this._triggers[ie]=fe,!0)}},{key:"_getTrigger",value:function(ie){var fe=this._triggers[ie];if(!fe)throw function It(ze){return new P.vHH(3401,E)}();return fe}},{key:"trigger",value:function(ie,fe,Ze){var $e=this,wt=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Ft=this._getTrigger(fe),Vt=new Eu(this.id,fe,ie),Qt=this._engine.statesByElement.get(ie);Qt||(Pn(ie,Ln),Pn(ie,Ln+"-"+fe),this._engine.statesByElement.set(ie,Qt={}));var yn=Qt[fe],Qn=new es(Ze,this.id),ir=Ze&&Ze.hasOwnProperty("value");!ir&&yn&&Qn.absorbOptions(yn.options),Qt[fe]=Qn,yn||(yn=iu);var _r=Qn.value===Rs;if(_r||yn.value!==Qn.value){var we=mt(this._engine.playersByElement,ie,[]);we.forEach(function(De){De.namespaceId==$e.id&&De.triggerName==fe&&De.queued&&De.destroy()});var X=Ft.matchTransition(yn.value,Qn.value,ie,Qn.params),je=!1;if(!X){if(!wt)return;X=Ft.fallbackTransition,je=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:ie,triggerName:fe,transition:X,fromState:yn,toState:Qn,player:Vt,isFallbackTransition:je}),je||(Pn(ie,us),Vt.onStart(function(){Or(ie,us)})),Vt.onDone(function(){var De=$e.players.indexOf(Vt);De>=0&&$e.players.splice(De,1);var it=$e._engine.playersByElement.get(ie);if(it){var At=it.indexOf(Vt);At>=0&&it.splice(At,1)}}),this.players.push(Vt),we.push(Vt),Vt}if(!Xi(yn.params,Qn.params)){var gr=[],di=Ft.matchStyles(yn.value,yn.params,gr),Ne=Ft.matchStyles(Qn.value,Qn.params,gr);gr.length?this._engine.reportError(gr):this._engine.afterFlush(function(){pn(ie,di),rr(ie,Ne)})}}},{key:"deregister",value:function(ie){var fe=this;delete this._triggers[ie],this._engine.statesByElement.forEach(function(Ze,$e){delete Ze[ie]}),this._elementListeners.forEach(function(Ze,$e){fe._elementListeners.set($e,Ze.filter(function(wt){return wt.name!=ie}))})}},{key:"clearElementCache",value:function(ie){this._engine.statesByElement.delete(ie),this._elementListeners.delete(ie);var fe=this._engine.playersByElement.get(ie);fe&&(fe.forEach(function(Ze){return Ze.destroy()}),this._engine.playersByElement.delete(ie))}},{key:"_signalRemovalForInnerTriggers",value:function(ie,fe){var Ze=this,$e=this._engine.driver.query(ie,jn,!0);$e.forEach(function(wt){if(!wt[Qo]){var Ft=Ze._engine.fetchNamespacesByElement(wt);Ft.size?Ft.forEach(function(Vt){return Vt.triggerLeaveAnimation(wt,fe,!1,!0)}):Ze.clearElementCache(wt)}}),this._engine.afterFlushAnimationsDone(function(){return $e.forEach(function(wt){return Ze.clearElementCache(wt)})})}},{key:"triggerLeaveAnimation",value:function(ie,fe,Ze,$e){var wt=this,Ft=this._engine.statesByElement.get(ie),Vt=new Map;if(Ft){var Qt=[];if(Object.keys(Ft).forEach(function(yn){if(Vt.set(yn,Ft[yn].value),wt._triggers[yn]){var Qn=wt.trigger(ie,yn,Rs,$e);Qn&&Qt.push(Qn)}}),Qt.length)return this._engine.markElementAsRemoved(this.id,ie,!0,fe,Vt),Ze&&Et(Qt).onDone(function(){return wt._engine.processLeaveNode(ie)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(ie){var fe=this,Ze=this._elementListeners.get(ie),$e=this._engine.statesByElement.get(ie);if(Ze&&$e){var wt=new Set;Ze.forEach(function(Ft){var Vt=Ft.name;if(!wt.has(Vt)){wt.add(Vt);var yn=fe._triggers[Vt].fallbackTransition,Qn=$e[Vt]||iu,ir=new es(Rs),_r=new Eu(fe.id,Vt,ie);fe._engine.totalQueuedPlayers++,fe._queue.push({element:ie,triggerName:Vt,transition:yn,fromState:Qn,toState:ir,player:_r,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(ie,fe){var Ze=this,$e=this._engine;if(ie.childElementCount&&this._signalRemovalForInnerTriggers(ie,fe),!this.triggerLeaveAnimation(ie,fe,!0)){var wt=!1;if($e.totalAnimations){var Ft=$e.players.length?$e.playersByQueriedElement.get(ie):[];if(Ft&&Ft.length)wt=!0;else for(var Vt=ie;Vt=Vt.parentNode;){if($e.statesByElement.get(Vt)){wt=!0;break}}}if(this.prepareLeaveAnimationListeners(ie),wt)$e.markElementAsRemoved(this.id,ie,!1,fe);else{var yn=ie[Qo];(!yn||yn===Tu)&&($e.afterFlush(function(){return Ze.clearElementCache(ie)}),$e.destroyInnerAnimations(ie),$e._onRemovalComplete(ie,fe))}}}},{key:"insertNode",value:function(ie,fe){Pn(ie,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(ie){var fe=this,Ze=[];return this._queue.forEach(function($e){var wt=$e.player;if(!wt.destroyed){var Ft=$e.element,Vt=fe._elementListeners.get(Ft);Vt&&Vt.forEach(function(Qt){if(Qt.name==$e.triggerName){var yn=yt(Ft,$e.triggerName,$e.fromState.value,$e.toState.value);yn._data=ie,Ht($e.player,Qt.phase,yn,Qt.callback)}}),wt.markedForDestroy?fe._engine.afterFlush(function(){wt.destroy()}):Ze.push($e)}}),this._queue=[],Ze.sort(function($e,wt){var Ft=$e.transition.ast.depCount,Vt=wt.transition.ast.depCount;return 0==Ft||0==Vt?Ft-Vt:fe._engine.driver.containsElement($e.element,wt.element)?1:-1})}},{key:"destroy",value:function(ie){this.players.forEach(function(fe){return fe.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,ie)}},{key:"elementContainsData",value:function(ie){var fe=!1;return this._elementListeners.has(ie)&&(fe=!0),fe=!!this._queue.find(function(Ze){return Ze.element===ie})||fe}}]),ze}(),Ha=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.bodyNode=me,this.driver=ie,this._normalizer=fe,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(Ze,$e){}}return(0,M.Z)(ze,[{key:"_onRemovalComplete",value:function(ie,fe){this.onRemovalComplete(ie,fe)}},{key:"queuedPlayers",get:function(){var ie=[];return this._namespaceList.forEach(function(fe){fe.players.forEach(function(Ze){Ze.queued&&ie.push(Ze)})}),ie}},{key:"createNamespace",value:function(ie,fe){var Ze=new wo(ie,fe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,fe)?this._balanceNamespaceList(Ze,fe):(this.newHostElements.set(fe,Ze),this.collectEnterElement(fe)),this._namespaceLookup[ie]=Ze}},{key:"_balanceNamespaceList",value:function(ie,fe){var Ze=this._namespaceList,$e=this.namespacesByHostElement,wt=Ze.length-1;if(wt>=0){var Ft=!1;if(void 0!==this.driver.getParentElement)for(var Vt=this.driver.getParentElement(fe);Vt;){var Qt=$e.get(Vt);if(Qt){var yn=Ze.indexOf(Qt);Ze.splice(yn+1,0,ie),Ft=!0;break}Vt=this.driver.getParentElement(Vt)}else for(var Qn=wt;Qn>=0;Qn--){var ir=Ze[Qn];if(this.driver.containsElement(ir.hostElement,fe)){Ze.splice(Qn+1,0,ie),Ft=!0;break}}Ft||Ze.unshift(ie)}else Ze.push(ie);return $e.set(fe,ie),ie}},{key:"register",value:function(ie,fe){var Ze=this._namespaceLookup[ie];return Ze||(Ze=this.createNamespace(ie,fe)),Ze}},{key:"registerTrigger",value:function(ie,fe,Ze){var $e=this._namespaceLookup[ie];$e&&$e.register(fe,Ze)&&this.totalAnimations++}},{key:"destroy",value:function(ie,fe){var Ze=this;if(ie){var $e=this._fetchNamespace(ie);this.afterFlush(function(){Ze.namespacesByHostElement.delete($e.hostElement),delete Ze._namespaceLookup[ie];var wt=Ze._namespaceList.indexOf($e);wt>=0&&Ze._namespaceList.splice(wt,1)}),this.afterFlushAnimationsDone(function(){return $e.destroy(fe)})}}},{key:"_fetchNamespace",value:function(ie){return this._namespaceLookup[ie]}},{key:"fetchNamespacesByElement",value:function(ie){var fe=new Set,Ze=this.statesByElement.get(ie);if(Ze)for(var $e=Object.keys(Ze),wt=0;wt<$e.length;wt++){var Ft=Ze[$e[wt]].namespaceId;if(Ft){var Vt=this._fetchNamespace(Ft);Vt&&fe.add(Vt)}}return fe}},{key:"trigger",value:function(ie,fe,Ze,$e){if(Ge(fe)){var wt=this._fetchNamespace(ie);if(wt)return wt.trigger(fe,Ze,$e),!0}return!1}},{key:"insertNode",value:function(ie,fe,Ze,$e){if(Ge(fe)){var wt=fe[Qo];if(wt&&wt.setForRemoval){wt.setForRemoval=!1,wt.setForMove=!0;var Ft=this.collectedLeaveElements.indexOf(fe);Ft>=0&&this.collectedLeaveElements.splice(Ft,1)}if(ie){var Vt=this._fetchNamespace(ie);Vt&&Vt.insertNode(fe,Ze)}$e&&this.collectEnterElement(fe)}}},{key:"collectEnterElement",value:function(ie){this.collectedEnterElements.push(ie)}},{key:"markElementAsDisabled",value:function(ie,fe){fe?this.disabledNodes.has(ie)||(this.disabledNodes.add(ie),Pn(ie,Qi)):this.disabledNodes.has(ie)&&(this.disabledNodes.delete(ie),Or(ie,Qi))}},{key:"removeNode",value:function(ie,fe,Ze,$e){if(Ge(fe)){var wt=ie?this._fetchNamespace(ie):null;if(wt?wt.removeNode(fe,$e):this.markElementAsRemoved(ie,fe,!1,$e),Ze){var Ft=this.namespacesByHostElement.get(fe);Ft&&Ft.id!==ie&&Ft.removeNode(fe,$e)}}else this._onRemovalComplete(fe,$e)}},{key:"markElementAsRemoved",value:function(ie,fe,Ze,$e,wt){this.collectedLeaveElements.push(fe),fe[Qo]={namespaceId:ie,setForRemoval:$e,hasAnimation:Ze,removedBeforeQueried:!1,previousTriggersValues:wt}}},{key:"listen",value:function(ie,fe,Ze,$e,wt){return Ge(fe)?this._fetchNamespace(ie).listen(fe,Ze,$e,wt):function(){}}},{key:"_buildInstruction",value:function(ie,fe,Ze,$e,wt){return ie.transition.build(this.driver,ie.element,ie.fromState.value,ie.toState.value,Ze,$e,ie.fromState.options,ie.toState.options,fe,wt)}},{key:"destroyInnerAnimations",value:function(ie){var fe=this,Ze=this.driver.query(ie,jn,!0);Ze.forEach(function($e){return fe.destroyActiveAnimationsForElement($e)}),0!=this.playersByQueriedElement.size&&(Ze=this.driver.query(ie,lr,!0)).forEach(function($e){return fe.finishActiveQueriedAnimationOnElement($e)})}},{key:"destroyActiveAnimationsForElement",value:function(ie){var fe=this.playersByElement.get(ie);fe&&fe.forEach(function(Ze){Ze.queued?Ze.markedForDestroy=!0:Ze.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(ie){var fe=this.playersByQueriedElement.get(ie);fe&&fe.forEach(function(Ze){return Ze.finish()})}},{key:"whenRenderingDone",value:function(){var ie=this;return new Promise(function(fe){if(ie.players.length)return Et(ie.players).onDone(function(){return fe()});fe()})}},{key:"processLeaveNode",value:function(ie){var Ze,fe=this,$e=ie[Qo];if($e&&$e.setForRemoval){if(ie[Qo]=Tu,$e.namespaceId){this.destroyInnerAnimations(ie);var wt=this._fetchNamespace($e.namespaceId);wt&&wt.clearElementCache(ie)}this._onRemovalComplete(ie,$e.setForRemoval)}(null===(Ze=ie.classList)||void 0===Ze?void 0:Ze.contains(Qi))&&this.markElementAsDisabled(ie,!1),this.driver.query(ie,".ng-animate-disabled",!0).forEach(function(Ft){fe.markElementAsDisabled(Ft,!1)})}},{key:"flush",value:function(){var ie=this,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,Ze=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(ir,_r){return ie._balanceNamespaceList(ir,_r)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var $e=0;$e<this.collectedEnterElements.length;$e++){var wt=this.collectedEnterElements[$e];Pn(wt,Ps)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var Ft=[];try{Ze=this._flushAnimations(Ft,fe)}finally{for(var Vt=0;Vt<Ft.length;Vt++)Ft[Vt]()}}else for(var Qt=0;Qt<this.collectedLeaveElements.length;Qt++){var yn=this.collectedLeaveElements[Qt];this.processLeaveNode(yn)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(ir){return ir()}),this._flushFns=[],this._whenQuietFns.length){var Qn=this._whenQuietFns;this._whenQuietFns=[],Ze.length?Et(Ze).onDone(function(){Qn.forEach(function(ir){return ir()})}):Qn.forEach(function(ir){return ir()})}}},{key:"reportError",value:function(ie){throw function on(ze){return new P.vHH(3402,E)}()}},{key:"_flushAnimations",value:function(ie,fe){var Ze=this,$e=new bi,wt=[],Ft=new Map,Vt=[],Qt=new Map,yn=new Map,Qn=new Map,ir=new Set;this.disabledNodes.forEach(function(ur){ir.add(ur);for(var Wr=Ze.driver.query(ur,".ng-animate-queued",!0),li=0;li<Wr.length;li++)ir.add(Wr[li])});var _r=this.bodyNode,gr=Array.from(this.statesByElement.keys()),di=Mn(gr,this.collectedEnterElements),Ne=new Map,we=0;di.forEach(function(ur,Wr){var li=Dn+we++;Ne.set(Wr,li),ur.forEach(function($o){return Pn($o,li)})});for(var X=[],je=new Set,De=new Set,it=0;it<this.collectedLeaveElements.length;it++){var At=this.collectedLeaveElements[it],fn=At[Qo];fn&&fn.setForRemoval&&(X.push(At),je.add(At),fn.hasAnimation?this.driver.query(At,".ng-star-inserted",!0).forEach(function(ur){return je.add(ur)}):De.add(At))}var Sn=new Map,Sr=Mn(gr,Array.from(je));Sr.forEach(function(ur,Wr){var li=zn+we++;Sn.set(Wr,li),ur.forEach(function($o){return Pn($o,li)})}),ie.push(function(){di.forEach(function(ur,Wr){var li=Ne.get(Wr);ur.forEach(function($o){return Or($o,li)})}),Sr.forEach(function(ur,Wr){var li=Sn.get(Wr);ur.forEach(function($o){return Or($o,li)})}),X.forEach(function(ur){Ze.processLeaveNode(ur)})});for(var Ti=[],jo=[],$i=this._namespaceList.length-1;$i>=0;$i--){this._namespaceList[$i].drainQueuedTransitions(fe).forEach(function(ur){var Wr=ur.player,li=ur.element;if(Ti.push(Wr),Ze.collectedEnterElements.length){var $o=li[Qo];if($o&&$o.setForMove){if($o.previousTriggersValues&&$o.previousTriggersValues.has(ur.triggerName)){var xu=$o.previousTriggersValues.get(ur.triggerName),Du=Ze.statesByElement.get(ur.element);Du&&Du[ur.triggerName]&&(Du[ur.triggerName].value=xu)}return void Wr.destroy()}}var ad=!_r||!Ze.driver.containsElement(_r,li),uc=Sn.get(li),xm=Ne.get(li),Ca=Ze._buildInstruction(ur,$e,xm,uc,ad);if(Ca.errors&&Ca.errors.length)jo.push(Ca);else{if(ad)return Wr.onStart(function(){return pn(li,Ca.fromStyles)}),Wr.onDestroy(function(){return rr(li,Ca.toStyles)}),void wt.push(Wr);if(ur.isFallbackTransition)return Wr.onStart(function(){return pn(li,Ca.fromStyles)}),Wr.onDestroy(function(){return rr(li,Ca.toStyles)}),void wt.push(Wr);var Au=[];Ca.timelines.forEach(function(cs){cs.stretchStartingKeyframe=!0,Ze.disabledNodes.has(cs.element)||Au.push(cs)}),Ca.timelines=Au,$e.append(li,Ca.timelines);var Dm={instruction:Ca,player:Wr,element:li};Vt.push(Dm),Ca.queriedElements.forEach(function(cs){return mt(Qt,cs,[]).push(Wr)}),Ca.preStyleProps.forEach(function(cs,Ou){var cc=Object.keys(cs);if(cc.length){var dc=yn.get(Ou);dc||yn.set(Ou,dc=new Set),cc.forEach(function(sd){return dc.add(sd)})}}),Ca.postStyleProps.forEach(function(cs,Ou){var cc=Object.keys(cs),dc=Qn.get(Ou);dc||Qn.set(Ou,dc=new Set),cc.forEach(function(sd){return dc.add(sd)})})}})}if(jo.length){var eo=[];jo.forEach(function(ur){eo.push(function An(ze,me){return new P.vHH(3505,E)}(ur.triggerName,ur.errors))}),Ti.forEach(function(ur){return ur.destroy()}),this.reportError(eo)}var df=new Map,au=new Map;Vt.forEach(function(ur){var Wr=ur.element;$e.has(Wr)&&(au.set(Wr,Wr),Ze._beforeAnimationBuild(ur.player.namespaceId,ur.instruction,df))}),wt.forEach(function(ur){var Wr=ur.element;Ze._getPreviousPlayers(Wr,!1,ur.namespaceId,ur.triggerName,null).forEach(function($o){mt(df,Wr,[]).push($o),$o.destroy()})});var Em=X.filter(function(ur){return So(ur,yn,Qn)}),id=new Map;un(id,this.driver,De,Qn,y.l3).forEach(function(ur){So(ur,yn,Qn)&&Em.push(ur)});var Mm=new Map;di.forEach(function(ur,Wr){un(Mm,Ze.driver,new Set(ur),yn,y.k1)}),Em.forEach(function(ur){var Wr=id.get(ur),li=Mm.get(ur);id.set(ur,Object.assign(Object.assign({},Wr),li))});var ff=[],Ip=[],pf={};Vt.forEach(function(ur){var Wr=ur.element,li=ur.player,$o=ur.instruction;if($e.has(Wr)){if(ir.has(Wr))return li.onDestroy(function(){return rr(Wr,$o.toStyles)}),li.disabled=!0,li.overrideTotalTime($o.totalTime),void wt.push(li);var xu=pf;if(au.size>1){for(var Du=Wr,ad=[];Du=Du.parentNode;){var uc=au.get(Du);if(uc){xu=uc;break}ad.push(Du)}ad.forEach(function(Au){return au.set(Au,xu)})}var xm=Ze._buildAnimation(li.namespaceId,$o,df,Ft,Mm,id);if(li.setRealPlayer(xm),xu===pf)ff.push(li);else{var Ca=Ze.playersByElement.get(xu);Ca&&Ca.length&&(li.parentPlayer=Et(Ca)),wt.push(li)}}else pn(Wr,$o.fromStyles),li.onDestroy(function(){return rr(Wr,$o.toStyles)}),Ip.push(li),ir.has(Wr)&&wt.push(li)}),Ip.forEach(function(ur){var Wr=Ft.get(ur.element);if(Wr&&Wr.length){var li=Et(Wr);ur.setRealPlayer(li)}}),wt.forEach(function(ur){ur.parentPlayer?ur.syncPlayerEvents(ur.parentPlayer):ur.destroy()});for(var Pp=0;Pp<X.length;Pp++){var od=X[Pp],nv=od[Qo];if(Or(od,zn),!nv||!nv.hasAnimation){var ko=[];if(Qt.size){var ts=Qt.get(od);ts&&ts.length&&ko.push.apply(ko,(0,F.Z)(ts));for(var Sm=this.driver.query(od,lr,!0),sc=0;sc<Sm.length;sc++){var Su=Qt.get(Sm[sc]);Su&&Su.length&&ko.push.apply(ko,(0,F.Z)(Su))}}var lc=ko.filter(function(ur){return!ur.destroyed});lc.length?jr(this,od,lc):this.processLeaveNode(od)}}return X.length=0,ff.forEach(function(ur){Ze.players.push(ur),ur.onDone(function(){ur.destroy();var Wr=Ze.players.indexOf(ur);Ze.players.splice(Wr,1)}),ur.play()}),ff}},{key:"elementContainsData",value:function(ie,fe){var Ze=!1,$e=fe[Qo];return $e&&$e.setForRemoval&&(Ze=!0),this.playersByElement.has(fe)&&(Ze=!0),this.playersByQueriedElement.has(fe)&&(Ze=!0),this.statesByElement.has(fe)&&(Ze=!0),this._fetchNamespace(ie).elementContainsData(fe)||Ze}},{key:"afterFlush",value:function(ie){this._flushFns.push(ie)}},{key:"afterFlushAnimationsDone",value:function(ie){this._whenQuietFns.push(ie)}},{key:"_getPreviousPlayers",value:function(ie,fe,Ze,$e,wt){var Ft=[];if(fe){var Vt=this.playersByQueriedElement.get(ie);Vt&&(Ft=Vt)}else{var Qt=this.playersByElement.get(ie);if(Qt){var yn=!wt||wt==Rs;Qt.forEach(function(Qn){Qn.queued||!yn&&Qn.triggerName!=$e||Ft.push(Qn)})}}return(Ze||$e)&&(Ft=Ft.filter(function(Qn){return!(Ze&&Ze!=Qn.namespaceId||$e&&$e!=Qn.triggerName)})),Ft}},{key:"_beforeAnimationBuild",value:function(ie,fe,Ze){var Qn,$e=this,wt=fe.triggerName,Ft=fe.element,Vt=fe.isRemovalTransition?void 0:ie,Qt=fe.isRemovalTransition?void 0:wt,yn=(0,K.Z)(fe.timelines);try{var ir=function(){var di=Qn.value.element,Ne=di!==Ft,we=mt(Ze,di,[]);$e._getPreviousPlayers(di,Ne,Vt,Qt,fe.toState).forEach(function(je){var De=je.getRealPlayer();De.beforeDestroy&&De.beforeDestroy(),je.destroy(),we.push(je)})};for(yn.s();!(Qn=yn.n()).done;)ir()}catch(_r){yn.e(_r)}finally{yn.f()}pn(Ft,fe.fromStyles)}},{key:"_buildAnimation",value:function(ie,fe,Ze,$e,wt,Ft){var Vt=this,Qt=fe.triggerName,yn=fe.element,Qn=[],ir=new Set,_r=new Set,gr=fe.timelines.map(function(Ne){var we=Ne.element;ir.add(we);var X=we[Qo];if(X&&X.removedBeforeQueried)return new y.ZN(Ne.duration,Ne.delay);var je=we!==yn,De=function ar(ze){var me=[];return ai(ze,me),me}((Ze.get(we)||Fa).map(function(Ti){return Ti.getRealPlayer()})).filter(function(Ti){var jo=Ti;return!!jo.element&&jo.element===we}),it=wt.get(we),At=Ft.get(we),fn=Ut(Vt.driver,Vt._normalizer,we,Ne.keyframes,it,At),Sn=Vt._buildPlayer(Ne,fn,De);if(Ne.subTimeline&&$e&&_r.add(we),je){var Sr=new Eu(ie,Qt,we);Sr.setRealPlayer(Sn),Qn.push(Sr)}return Sn});Qn.forEach(function(Ne){mt(Vt.playersByQueriedElement,Ne.element,[]).push(Ne),Ne.onDone(function(){return function ve(ze,me,ie){var fe;if(ze instanceof Map){if(fe=ze.get(me)){if(fe.length){var Ze=fe.indexOf(ie);fe.splice(Ze,1)}0==fe.length&&ze.delete(me)}}else if(fe=ze[me]){if(fe.length){var $e=fe.indexOf(ie);fe.splice($e,1)}0==fe.length&&delete ze[me]}return fe}(Vt.playersByQueriedElement,Ne.element,Ne)})}),ir.forEach(function(Ne){return Pn(Ne,mn)});var di=Et(gr);return di.onDestroy(function(){ir.forEach(function(Ne){return Or(Ne,mn)}),rr(yn,fe.toStyles)}),_r.forEach(function(Ne){mt($e,Ne,[]).push(di)}),di}},{key:"_buildPlayer",value:function(ie,fe,Ze){return fe.length>0?this.driver.animate(ie.element,fe,ie.duration,ie.delay,ie.easing,Ze):new y.ZN(ie.duration,ie.delay)}}]),ze}(),Eu=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.namespaceId=me,this.triggerName=ie,this.element=fe,this._player=new y.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,M.Z)(ze,[{key:"setRealPlayer",value:function(ie){var fe=this;this._containsRealPlayer||(this._player=ie,Object.keys(this._queuedCallbacks).forEach(function(Ze){fe._queuedCallbacks[Ze].forEach(function($e){return Ht(ie,Ze,void 0,$e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(ie.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(ie){this.totalTime=ie}},{key:"syncPlayerEvents",value:function(ie){var fe=this,Ze=this._player;Ze.triggerCallback&&ie.onStart(function(){return Ze.triggerCallback("start")}),ie.onDone(function(){return fe.finish()}),ie.onDestroy(function(){return fe.destroy()})}},{key:"_queueEvent",value:function(ie,fe){mt(this._queuedCallbacks,ie,[]).push(fe)}},{key:"onDone",value:function(ie){this.queued&&this._queueEvent("done",ie),this._player.onDone(ie)}},{key:"onStart",value:function(ie){this.queued&&this._queueEvent("start",ie),this._player.onStart(ie)}},{key:"onDestroy",value:function(ie){this.queued&&this._queueEvent("destroy",ie),this._player.onDestroy(ie)}},{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(ie){this.queued||this._player.setPosition(ie)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(ie){var fe=this._player;fe.triggerCallback&&fe.triggerCallback(ie)}}]),ze}();function Pe(ze){return null!=ze?ze:null}function Ge(ze){return ze&&1===ze.nodeType}function St(ze,me){var ie=ze.style.display;return ze.style.display=null!=me?me:"none",ie}function un(ze,me,ie,fe,Ze){var $e=[];ie.forEach(function(Vt){return $e.push(St(Vt))});var wt=[];fe.forEach(function(Vt,Qt){var yn={};Vt.forEach(function(Qn){var ir=yn[Qn]=me.computeStyle(Qt,Qn,Ze);(!ir||0==ir.length)&&(Qt[Qo]=Ua,wt.push(Qt))}),ze.set(Qt,yn)});var Ft=0;return ie.forEach(function(Vt){return St(Vt,$e[Ft++])}),wt}function Mn(ze,me){var ie=new Map;if(ze.forEach(function(Ft){return ie.set(Ft,[])}),0==me.length)return ie;var Ze=new Set(me),$e=new Map;function wt(Ft){if(!Ft)return 1;var Vt=$e.get(Ft);if(Vt)return Vt;var Qt=Ft.parentNode;return Vt=ie.has(Qt)?Qt:Ze.has(Qt)?1:wt(Qt),$e.set(Ft,Vt),Vt}return me.forEach(function(Ft){var Vt=wt(Ft);1!==Vt&&ie.get(Vt).push(Ft)}),ie}function Pn(ze,me){var ie;null===(ie=ze.classList)||void 0===ie||ie.add(me)}function Or(ze,me){var ie;null===(ie=ze.classList)||void 0===ie||ie.remove(me)}function jr(ze,me,ie){Et(ie).onDone(function(){return ze.processLeaveNode(me)})}function ai(ze,me){for(var ie=0;ie<ze.length;ie++){var fe=ze[ie];fe instanceof y.ZE?ai(fe.players,me):me.push(fe)}}function Xi(ze,me){var ie=Object.keys(ze),fe=Object.keys(me);if(ie.length!=fe.length)return!1;for(var Ze=0;Ze<ie.length;Ze++){var $e=ie[Ze];if(!me.hasOwnProperty($e)||ze[$e]!==me[$e])return!1}return!0}function So(ze,me,ie){var fe=ie.get(ze);if(!fe)return!1;var Ze=me.get(ze);return Ze?fe.forEach(function($e){return Ze.add($e)}):me.set(ze,fe),ie.delete(ze),!0}var xi=function(){function ze(me,ie,fe){var Ze=this;(0,Y.Z)(this,ze),this.bodyNode=me,this._driver=ie,this._normalizer=fe,this._triggerCache={},this.onRemovalComplete=function($e,wt){},this._transitionEngine=new Ha(me,ie,fe),this._timelineEngine=new Is(me,ie,fe),this._transitionEngine.onRemovalComplete=function($e,wt){return Ze.onRemovalComplete($e,wt)}}return(0,M.Z)(ze,[{key:"registerTrigger",value:function(ie,fe,Ze,$e,wt){var Ft=ie+"-"+$e,Vt=this._triggerCache[Ft];if(!Vt){var Qt=[],yn=[],Qn=Bo(this._driver,wt,Qt,yn);if(Qt.length)throw function Xt(ze,me){return new P.vHH(3404,E)}();yn.length,Vt=function io(ze,me,ie){return new Kr(ze,me,ie)}($e,Qn,this._normalizer),this._triggerCache[Ft]=Vt}this._transitionEngine.registerTrigger(fe,$e,Vt)}},{key:"register",value:function(ie,fe){this._transitionEngine.register(ie,fe)}},{key:"destroy",value:function(ie,fe){this._transitionEngine.destroy(ie,fe)}},{key:"onInsert",value:function(ie,fe,Ze,$e){this._transitionEngine.insertNode(ie,fe,Ze,$e)}},{key:"onRemove",value:function(ie,fe,Ze,$e){this._transitionEngine.removeNode(ie,fe,$e||!1,Ze)}},{key:"disableAnimations",value:function(ie,fe){this._transitionEngine.markElementAsDisabled(ie,fe)}},{key:"process",value:function(ie,fe,Ze,$e){if("@"==Ze.charAt(0)){var wt=cn(Ze),Ft=(0,z.Z)(wt,2),Vt=Ft[0],Qt=Ft[1],yn=$e;this._timelineEngine.command(Vt,fe,Qt,yn)}else this._transitionEngine.trigger(ie,fe,Ze,$e)}},{key:"listen",value:function(ie,fe,Ze,$e,wt){if("@"==Ze.charAt(0)){var Ft=cn(Ze),Vt=(0,z.Z)(Ft,2),Qt=Vt[0],yn=Vt[1];return this._timelineEngine.listen(Qt,fe,yn,wt)}return this._transitionEngine.listen(ie,fe,Ze,$e,wt)}},{key:"flush",value:function(){var ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(ie)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),ze}();function Xo(ze,me){var ie=null,fe=null;return Array.isArray(me)&&me.length?(ie=Le(me[0]),me.length>1&&(fe=Le(me[me.length-1]))):me&&(ie=Le(me)),ie||fe?new Ve(ze,ie,fe):null}var Ve=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this._element=me,this._startStyles=ie,this._endStyles=fe,this._state=0;var Ze=ze.initialStylesByElement.get(me);Ze||ze.initialStylesByElement.set(me,Ze={}),this._initialStyles=Ze}return(0,M.Z)(ze,[{key:"start",value:function(){this._state<1&&(this._startStyles&&rr(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(rr(this._element,this._initialStyles),this._endStyles&&(rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(ze.initialStylesByElement.delete(this._element),this._startStyles&&(pn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pn(this._element,this._endStyles),this._endStyles=null),rr(this._element,this._initialStyles),this._state=3)}}]),ze}();function Le(ze){for(var me=null,ie=Object.keys(ze),fe=0;fe<ie.length;fe++){var Ze=ie[fe];be(Ze)&&((me=me||{})[Ze]=ze[Ze])}return me}function be(ze){return"display"===ze||"position"===ze}Ve.initialStylesByElement=new WeakMap;var Je=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this.element=me,this.keyframes=ie,this.options=fe,this._specialStyles=Ze,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=fe.duration,this._delay=fe.delay||0,this.time=this._duration+this._delay}return(0,M.Z)(ze,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(ie){return ie()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var ie=this;if(!this._initialized){this._initialized=!0;var fe=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,fe,this.options),this._finalKeyframe=fe.length?fe[fe.length-1]:{},this.domPlayer.addEventListener("finish",function(){return ie._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(ie,fe,Ze){return ie.animate(fe,Ze)}},{key:"onStart",value:function(ie){this._onStartFns.push(ie)}},{key:"onDone",value:function(ie){this._onDoneFns.push(ie)}},{key:"onDestroy",value:function(ie){this._onDestroyFns.push(ie)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(ie){return ie()}),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}},{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(ie){return ie()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(ie){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=ie*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 ie=this,fe={};if(this.hasStarted()){var Ze=this._finalKeyframe;Object.keys(Ze).forEach(function($e){"offset"!=$e&&(fe[$e]=ie._finished?Ze[$e]:Hi(ie.element,$e))})}this.currentSnapshot=fe}},{key:"triggerCallback",value:function(ie){var fe="start"==ie?this._onStartFns:this._onDoneFns;fe.forEach(function(Ze){return Ze()}),fe.length=0}}]),ze}(),Ke=function(){function ze(){(0,Y.Z)(this,ze)}return(0,M.Z)(ze,[{key:"validateStyleProperty",value:function(ie){return Te(ie)}},{key:"matchesElement",value:function(ie,fe){return!1}},{key:"containsElement",value:function(ie,fe){return We(ie,fe)}},{key:"getParentElement",value:function(ie){return Jn(ie)}},{key:"query",value:function(ie,fe,Ze){return at(ie,fe,Ze)}},{key:"computeStyle",value:function(ie,fe,Ze){return window.getComputedStyle(ie)[fe]}},{key:"animate",value:function(ie,fe,Ze,$e,wt){var Ft=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],Vt=0==$e?"both":"forwards",Qt={duration:Ze,delay:$e,fill:Vt};wt&&(Qt.easing=wt);var yn={},Qn=Ft.filter(function(_r){return _r instanceof Je});Rr(Ze,$e)&&Qn.forEach(function(_r){var gr=_r.currentSnapshot;Object.keys(gr).forEach(function(di){return yn[di]=gr[di]})});var ir=Xo(ie,fe=Xr(ie,fe=fe.map(function(_r){return bt(_r,!1)}),yn));return new Je(ie,fe,Qt,ir)}}]),ze}(),Pt=m(9808),an=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze){var $e;(0,Y.Z)(this,ie),($e=me.call(this))._nextAnimationId=0;var wt={id:"0",encapsulation:P.ifc.None,styles:[],data:{animation:[]}};return $e._renderer=fe.createRenderer(Ze.body,wt),$e}return(0,M.Z)(ie,[{key:"build",value:function(Ze){var $e=this._nextAnimationId.toString();this._nextAnimationId++;var wt=Array.isArray(Ze)?(0,y.vP)(Ze):Ze;return Ir(this._renderer,null,$e,"register",[wt]),new nr($e,this._renderer)}}]),ie}(y._j);an.\u0275fac=function(me){return new(me||an)(P.LFG(P.FYo),P.LFG(Pt.K0))},an.\u0275prov=P.Yz7({token:an,factory:an.\u0275fac});var nr=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze){var $e;return(0,Y.Z)(this,ie),($e=me.call(this))._id=fe,$e._renderer=Ze,$e}return(0,M.Z)(ie,[{key:"create",value:function(Ze,$e){return new Lr(this._id,Ze,$e||{},this._renderer)}}]),ie}(y.LC),Lr=function(){function ze(me,ie,fe,Ze){(0,Y.Z)(this,ze),this.id=me,this.element=ie,this._renderer=Ze,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",fe)}return(0,M.Z)(ze,[{key:"_listen",value:function(ie,fe){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(ie),fe)}},{key:"_command",value:function(ie){for(var fe=arguments.length,Ze=new Array(fe>1?fe-1:0),$e=1;$e<fe;$e++)Ze[$e-1]=arguments[$e];return Ir(this._renderer,this.element,this.id,ie,Ze)}},{key:"onDone",value:function(ie){this._listen("done",ie)}},{key:"onStart",value:function(ie){this._listen("start",ie)}},{key:"onDestroy",value:function(ie){this._listen("destroy",ie)}},{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(ie){this._command("setPosition",ie)}},{key:"getPosition",value:function(){var ie,fe;return null!==(fe=null===(ie=this._renderer.engine.players[+this.id])||void 0===ie?void 0:ie.getPosition())&&void 0!==fe?fe:0}}]),ze}();function Ir(ze,me,ie,fe,Ze){return ze.setProperty(me,"@@".concat(ie,":").concat(fe),Ze)}var uf="@.disabled",ou=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.delegate=me,this.engine=ie,this._zone=fe,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),ie.onRemovalComplete=function(Ze,$e){var wt=null==$e?void 0:$e.parentNode(Ze);wt&&$e.removeChild(wt,Ze)}}return(0,M.Z)(ze,[{key:"createRenderer",value:function(ie,fe){var Ze=this,wt=this.delegate.createRenderer(ie,fe);if(!(ie&&fe&&fe.data&&fe.data.animation)){var Ft=this._rendererCache.get(wt);return Ft||(Ft=new rd("",wt,this.engine),this._rendererCache.set(wt,Ft)),Ft}var Vt=fe.id,Qt=fe.id+"-"+this._currentId;this._currentId++,this.engine.register(Qt,ie);return fe.data.animation.forEach(function ir(_r){Array.isArray(_r)?_r.forEach(ir):Ze.engine.registerTrigger(Vt,Qt,ie,_r.name,_r)}),new oc(this,Qt,wt,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var ie=this;this.promise.then(function(){ie._microtaskId++})}},{key:"scheduleListenerCallback",value:function(ie,fe,Ze){var $e=this;ie>=0&&ie<this._microtaskId?this._zone.run(function(){return fe(Ze)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){$e._zone.run(function(){$e._animationCallbacksBuffer.forEach(function(wt){var Ft=(0,z.Z)(wt,2);(0,Ft[0])(Ft[1])}),$e._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([fe,Ze]))}},{key:"end",value:function(){var ie=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){ie._scheduleCountTask(),ie.engine.flush(ie._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),ze}();ou.\u0275fac=function(me){return new(me||ou)(P.LFG(P.FYo),P.LFG(xi),P.LFG(P.R0b))},ou.\u0275prov=P.Yz7({token:ou,factory:ou.\u0275fac});var rd=function(){function ze(me,ie,fe){(0,Y.Z)(this,ze),this.namespaceId=me,this.delegate=ie,this.engine=fe,this.destroyNode=this.delegate.destroyNode?function(Ze){return ie.destroyNode(Ze)}:null}return(0,M.Z)(ze,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(ie,fe){return this.delegate.createElement(ie,fe)}},{key:"createComment",value:function(ie){return this.delegate.createComment(ie)}},{key:"createText",value:function(ie){return this.delegate.createText(ie)}},{key:"appendChild",value:function(ie,fe){this.delegate.appendChild(ie,fe),this.engine.onInsert(this.namespaceId,fe,ie,!1)}},{key:"insertBefore",value:function(ie,fe,Ze){var $e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(ie,fe,Ze),this.engine.onInsert(this.namespaceId,fe,ie,$e)}},{key:"removeChild",value:function(ie,fe,Ze){this.engine.onRemove(this.namespaceId,fe,this.delegate,Ze)}},{key:"selectRootElement",value:function(ie,fe){return this.delegate.selectRootElement(ie,fe)}},{key:"parentNode",value:function(ie){return this.delegate.parentNode(ie)}},{key:"nextSibling",value:function(ie){return this.delegate.nextSibling(ie)}},{key:"setAttribute",value:function(ie,fe,Ze,$e){this.delegate.setAttribute(ie,fe,Ze,$e)}},{key:"removeAttribute",value:function(ie,fe,Ze){this.delegate.removeAttribute(ie,fe,Ze)}},{key:"addClass",value:function(ie,fe){this.delegate.addClass(ie,fe)}},{key:"removeClass",value:function(ie,fe){this.delegate.removeClass(ie,fe)}},{key:"setStyle",value:function(ie,fe,Ze,$e){this.delegate.setStyle(ie,fe,Ze,$e)}},{key:"removeStyle",value:function(ie,fe,Ze){this.delegate.removeStyle(ie,fe,Ze)}},{key:"setProperty",value:function(ie,fe,Ze){"@"==fe.charAt(0)&&fe==uf?this.disableAnimations(ie,!!Ze):this.delegate.setProperty(ie,fe,Ze)}},{key:"setValue",value:function(ie,fe){this.delegate.setValue(ie,fe)}},{key:"listen",value:function(ie,fe,Ze){return this.delegate.listen(ie,fe,Ze)}},{key:"disableAnimations",value:function(ie,fe){this.engine.disableAnimations(ie,fe)}}]),ze}(),oc=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e,wt){var Ft;return(0,Y.Z)(this,ie),(Ft=me.call(this,Ze,$e,wt)).factory=fe,Ft.namespaceId=Ze,Ft}return(0,M.Z)(ie,[{key:"setProperty",value:function(Ze,$e,wt){"@"==$e.charAt(0)?"."==$e.charAt(1)&&$e==uf?(wt=void 0===wt||!!wt,this.disableAnimations(Ze,wt)):this.engine.process(this.namespaceId,Ze,$e.substr(1),wt):this.delegate.setProperty(Ze,$e,wt)}},{key:"listen",value:function(Ze,$e,wt){var Ft=this;if("@"==$e.charAt(0)){var Vt=function si(ze){switch(ze){case"body":return document.body;case"document":return document;case"window":return window;default:return ze}}(Ze),Qt=$e.substr(1),yn="";if("@"!=Qt.charAt(0)){var Qn=function dr(ze){var me=ze.indexOf("."),ie=ze.substring(0,me),fe=ze.substr(me+1);return[ie,fe]}(Qt),ir=(0,z.Z)(Qn,2);Qt=ir[0],yn=ir[1]}return this.engine.listen(this.namespaceId,Vt,Qt,yn,function(_r){var gr=_r._data||-1;Ft.factory.scheduleListenerCallback(gr,wt,_r)})}return this.delegate.listen(Ze,$e,wt)}}]),ie}(rd);var ac=function(ze){(0,U.Z)(ie,ze);var me=(0,L.Z)(ie);function ie(fe,Ze,$e){return(0,Y.Z)(this,ie),me.call(this,fe.body,Ze,$e)}return(0,M.Z)(ie,[{key:"ngOnDestroy",value:function(){this.flush()}}]),ie}(xi);ac.\u0275fac=function(me){return new(me||ac)(P.LFG(Pt.K0),P.LFG(Jt),P.LFG(Co))},ac.\u0275prov=P.Yz7({token:ac,factory:ac.\u0275fac});var pi=new P.OlP("AnimationModuleType"),Di=[{provide:y._j,useClass:an},{provide:Co,useFactory:function Nn(){return new Uo}},{provide:xi,useClass:ac},{provide:P.FYo,useFactory:function wi(ze,me,ie){return new ou(ze,me,ie)},deps:[D.se,xi,P.R0b]}],cf=[{provide:Jt,useFactory:function(){return new Ke}},{provide:pi,useValue:"BrowserAnimations"}].concat(Di),Mu=[{provide:Jt,useClass:tn},{provide:pi,useValue:"NoopAnimations"}].concat(Di),ji=function(){function ze(){(0,Y.Z)(this,ze)}return(0,M.Z)(ze,null,[{key:"withConfig",value:function(ie){return{ngModule:ze,providers:ie.disableAnimations?Mu:cf}}}]),ze}();ji.\u0275fac=function(me){return new(me||ji)},ji.\u0275mod=P.oAB({type:ji}),ji.\u0275inj=P.cJS({providers:cf,imports:[D.b2]});var hl=(0,M.Z)(function ze(){(0,Y.Z)(this,ze)});hl.\u0275fac=function(me){return new(me||hl)},hl.\u0275mod=P.oAB({type:hl}),hl.\u0275inj=P.cJS({providers:Mu,imports:[D.b2]})},2313:function(qe,J,m){"use strict";m.d(J,{Dx:function(){return wn},H7:function(){return Yt},HJ:function(){return nn},b2:function(){return cn},q6:function(){return yt},se:function(){return en}});var k,z=m(3237),Y=m(1120),M=m(3144),U=m(5671),L=m(136),P=m(9388),D=m(9808),y=m(5e3),K=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(){var Qe;return(0,U.Z)(this,Ae),(Qe=Se.apply(this,arguments)).supportsDOMEvents=!0,Qe}return(0,M.Z)(Ae)}(D.w_),F=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(){return(0,U.Z)(this,Ae),Se.apply(this,arguments)}return(0,M.Z)(Ae,[{key:"onAndCancel",value:function(_t,Wt,gn){return _t.addEventListener(Wt,gn,!1),function(){_t.removeEventListener(Wt,gn,!1)}}},{key:"dispatchEvent",value:function(_t,Wt){_t.dispatchEvent(Wt)}},{key:"remove",value:function(_t){_t.parentNode&&_t.parentNode.removeChild(_t)}},{key:"createElement",value:function(_t,Wt){return(Wt=Wt||this.getDefaultDocument()).createElement(_t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(_t){return _t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(_t){return _t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(_t,Wt){return"window"===Wt?window:"document"===Wt?_t:"body"===Wt?_t.body:null}},{key:"getBaseHref",value:function(_t){var Wt=function A(){return(E=E||document.querySelector("base"))?E.getAttribute("href"):null}();return null==Wt?null:function I(lt){(k=k||document.createElement("a")).setAttribute("href",lt);var Se=k.pathname;return"/"===Se.charAt(0)?Se:"/".concat(Se)}(Wt)}},{key:"resetBaseElement",value:function(){E=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(_t){return(0,D.Mx)(document.cookie,_t)}}],[{key:"makeCurrent",value:function(){(0,D.HT)(new Ae)}}]),Ae}(K),E=null;var T=new y.OlP("TRANSITION_ID");var S=[{provide:y.ip1,useFactory:function w(lt,Se,Ae){return function(){Ae.get(y.CZH).donePromise.then(function(){for(var Qe=(0,D.q)(),_t=Se.querySelectorAll('style[ng-transition="'.concat(lt,'"]')),Wt=0;Wt<_t.length;Wt++)Qe.remove(_t[Wt])})}},deps:[T,D.K0,y.zs3],multi:!0}],N=function(){function lt(){(0,U.Z)(this,lt)}return(0,M.Z)(lt,[{key:"addToWindow",value:function(Ae){y.dqk.getAngularTestability=function(_t){var Wt=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],gn=Ae.findTestabilityInTree(_t,Wt);if(null==gn)throw new Error("Could not find testability for element.");return gn},y.dqk.getAllAngularTestabilities=function(){return Ae.getAllTestabilities()},y.dqk.getAllAngularRootElements=function(){return Ae.getAllRootElements()};y.dqk.frameworkStabilizers||(y.dqk.frameworkStabilizers=[]),y.dqk.frameworkStabilizers.push(function(Wt){var gn=y.dqk.getAllAngularTestabilities(),Rn=gn.length,cr=!1,Rr=function(Mr){cr=cr||Mr,0==--Rn&&Wt(cr)};gn.forEach(function(Xr){Xr.whenStable(Rr)})})}},{key:"findTestabilityInTree",value:function(Ae,Qe,_t){if(null==Qe)return null;var Wt=Ae.getTestability(Qe);return null!=Wt?Wt:_t?(0,D.q)().isShadowRoot(Qe)?this.findTestabilityInTree(Ae,Qe.host,!0):this.findTestabilityInTree(Ae,Qe.parentElement,!0):null}}],[{key:"init",value:function(){(0,y.VLi)(new lt)}}]),lt}(),R=function(){function lt(){(0,U.Z)(this,lt)}return(0,M.Z)(lt,[{key:"build",value:function(){return new XMLHttpRequest}}]),lt}();R.\u0275fac=function(Se){return new(Se||R)},R.\u0275prov=y.Yz7({token:R,factory:R.\u0275fac});var W=new y.OlP("EventManagerPlugins"),$=function(){function lt(Se,Ae){var Qe=this;(0,U.Z)(this,lt),this._zone=Ae,this._eventNameToPlugin=new Map,Se.forEach(function(_t){return _t.manager=Qe}),this._plugins=Se.slice().reverse()}return(0,M.Z)(lt,[{key:"addEventListener",value:function(Ae,Qe,_t){return this._findPluginFor(Qe).addEventListener(Ae,Qe,_t)}},{key:"addGlobalEventListener",value:function(Ae,Qe,_t){return this._findPluginFor(Qe).addGlobalEventListener(Ae,Qe,_t)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(Ae){var Qe=this._eventNameToPlugin.get(Ae);if(Qe)return Qe;for(var _t=this._plugins,Wt=0;Wt<_t.length;Wt++){var gn=_t[Wt];if(gn.supports(Ae))return this._eventNameToPlugin.set(Ae,gn),gn}throw new Error("No event manager plugin found for event ".concat(Ae))}}]),lt}();$.\u0275fac=function(Se){return new(Se||$)(y.LFG(W),y.LFG(y.R0b))},$.\u0275prov=y.Yz7({token:$,factory:$.\u0275fac});var ce=function(){function lt(Se){(0,U.Z)(this,lt),this._doc=Se}return(0,M.Z)(lt,[{key:"addGlobalEventListener",value:function(Ae,Qe,_t){var Wt=(0,D.q)().getGlobalEventTarget(this._doc,Ae);if(!Wt)throw new Error("Unsupported event target ".concat(Wt," for event ").concat(Qe));return this.addEventListener(Wt,Qe,_t)}}]),lt}(),se=function(){function lt(){(0,U.Z)(this,lt),this._stylesSet=new Set}return(0,M.Z)(lt,[{key:"addStyles",value:function(Ae){var Qe=this,_t=new Set;Ae.forEach(function(Wt){Qe._stylesSet.has(Wt)||(Qe._stylesSet.add(Wt),_t.add(Wt))}),this.onStylesAdded(_t)}},{key:"onStylesAdded",value:function(Ae){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),lt}();se.\u0275fac=function(Se){return new(Se||se)},se.\u0275prov=y.Yz7({token:se,factory:se.\u0275fac});var ee=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe){var _t;return(0,U.Z)(this,Ae),(_t=Se.call(this))._doc=Qe,_t._hostNodes=new Map,_t._hostNodes.set(Qe.head,[]),_t}return(0,M.Z)(Ae,[{key:"_addStylesToHost",value:function(_t,Wt,gn){var Rn=this;_t.forEach(function(cr){var Rr=Rn._doc.createElement("style");Rr.textContent=cr,gn.push(Wt.appendChild(Rr))})}},{key:"addHost",value:function(_t){var Wt=[];this._addStylesToHost(this._stylesSet,_t,Wt),this._hostNodes.set(_t,Wt)}},{key:"removeHost",value:function(_t){var Wt=this._hostNodes.get(_t);Wt&&Wt.forEach(oe),this._hostNodes.delete(_t)}},{key:"onStylesAdded",value:function(_t){var Wt=this;this._hostNodes.forEach(function(gn,Rn){Wt._addStylesToHost(_t,Rn,gn)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(_t){return _t.forEach(oe)})}}]),Ae}(se);function oe(lt){(0,D.q)().remove(lt)}ee.\u0275fac=function(Se){return new(Se||ee)(y.LFG(D.K0))},ee.\u0275prov=y.Yz7({token:ee,factory:ee.\u0275fac});var ge={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/"},Oe=/%COMP%/g,_e="_nghost-".concat("%COMP%"),ke="_ngcontent-".concat("%COMP%");function Mt(lt,Se,Ae){for(var Qe=0;Qe<Se.length;Qe++){var _t=Se[Qe];Array.isArray(_t)?Mt(lt,_t,Ae):(_t=_t.replace(Oe,lt),Ae.push(_t))}return Ae}function Nt(lt){return function(Se){if("__ngUnwrap__"===Se)return lt;!1===lt(Se)&&(Se.preventDefault(),Se.returnValue=!1)}}var en=function(){function lt(Se,Ae,Qe){(0,U.Z)(this,lt),this.eventManager=Se,this.sharedStylesHost=Ae,this.appId=Qe,this.rendererByCompId=new Map,this.defaultRenderer=new qt(Se)}return(0,M.Z)(lt,[{key:"createRenderer",value:function(Ae,Qe){if(!Ae||!Qe)return this.defaultRenderer;switch(Qe.encapsulation){case y.ifc.Emulated:var _t=this.rendererByCompId.get(Qe.id);return _t||(_t=new rt(this.eventManager,this.sharedStylesHost,Qe,this.appId),this.rendererByCompId.set(Qe.id,_t)),_t.applyToHost(Ae),_t;case 1:case y.ifc.ShadowDom:return new vt(this.eventManager,this.sharedStylesHost,Ae,Qe);default:if(!this.rendererByCompId.has(Qe.id)){var Wt=Mt(Qe.id,Qe.styles,[]);this.sharedStylesHost.addStyles(Wt),this.rendererByCompId.set(Qe.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),lt}();en.\u0275fac=function(Se){return new(Se||en)(y.LFG($),y.LFG(ee),y.LFG(y.AFp))},en.\u0275prov=y.Yz7({token:en,factory:en.\u0275fac});var qt=function(){function lt(Se){(0,U.Z)(this,lt),this.eventManager=Se,this.data=Object.create(null),this.destroyNode=null}return(0,M.Z)(lt,[{key:"destroy",value:function(){}},{key:"createElement",value:function(Ae,Qe){return Qe?document.createElementNS(ge[Qe]||Qe,Ae):document.createElement(Ae)}},{key:"createComment",value:function(Ae){return document.createComment(Ae)}},{key:"createText",value:function(Ae){return document.createTextNode(Ae)}},{key:"appendChild",value:function(Ae,Qe){Ae.appendChild(Qe)}},{key:"insertBefore",value:function(Ae,Qe,_t){Ae&&Ae.insertBefore(Qe,_t)}},{key:"removeChild",value:function(Ae,Qe){Ae&&Ae.removeChild(Qe)}},{key:"selectRootElement",value:function(Ae,Qe){var _t="string"==typeof Ae?document.querySelector(Ae):Ae;if(!_t)throw new Error('The selector "'.concat(Ae,'" did not match any elements'));return Qe||(_t.textContent=""),_t}},{key:"parentNode",value:function(Ae){return Ae.parentNode}},{key:"nextSibling",value:function(Ae){return Ae.nextSibling}},{key:"setAttribute",value:function(Ae,Qe,_t,Wt){if(Wt){Qe=Wt+":"+Qe;var gn=ge[Wt];gn?Ae.setAttributeNS(gn,Qe,_t):Ae.setAttribute(Qe,_t)}else Ae.setAttribute(Qe,_t)}},{key:"removeAttribute",value:function(Ae,Qe,_t){if(_t){var Wt=ge[_t];Wt?Ae.removeAttributeNS(Wt,Qe):Ae.removeAttribute("".concat(_t,":").concat(Qe))}else Ae.removeAttribute(Qe)}},{key:"addClass",value:function(Ae,Qe){Ae.classList.add(Qe)}},{key:"removeClass",value:function(Ae,Qe){Ae.classList.remove(Qe)}},{key:"setStyle",value:function(Ae,Qe,_t,Wt){Wt&(y.JOm.DashCase|y.JOm.Important)?Ae.style.setProperty(Qe,_t,Wt&y.JOm.Important?"important":""):Ae.style[Qe]=_t}},{key:"removeStyle",value:function(Ae,Qe,_t){_t&y.JOm.DashCase?Ae.style.removeProperty(Qe):Ae.style[Qe]=""}},{key:"setProperty",value:function(Ae,Qe,_t){Ae[Qe]=_t}},{key:"setValue",value:function(Ae,Qe){Ae.nodeValue=Qe}},{key:"listen",value:function(Ae,Qe,_t){return"string"==typeof Ae?this.eventManager.addGlobalEventListener(Ae,Qe,Nt(_t)):this.eventManager.addEventListener(Ae,Qe,Nt(_t))}}]),lt}();"@".charCodeAt(0);var rt=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,gn){var Rn;(0,U.Z)(this,Ae),(Rn=Se.call(this,Qe)).component=Wt;var cr=Mt(gn+"-"+Wt.id,Wt.styles,[]);return _t.addStyles(cr),Rn.contentAttr=function Be(lt){return ke.replace(Oe,lt)}(gn+"-"+Wt.id),Rn.hostAttr=function ct(lt){return _e.replace(Oe,lt)}(gn+"-"+Wt.id),Rn}return(0,M.Z)(Ae,[{key:"applyToHost",value:function(_t){(0,z.Z)((0,Y.Z)(Ae.prototype),"setAttribute",this).call(this,_t,this.hostAttr,"")}},{key:"createElement",value:function(_t,Wt){var gn=(0,z.Z)((0,Y.Z)(Ae.prototype),"createElement",this).call(this,_t,Wt);return(0,z.Z)((0,Y.Z)(Ae.prototype),"setAttribute",this).call(this,gn,this.contentAttr,""),gn}}]),Ae}(qt),vt=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,gn){var Rn;(0,U.Z)(this,Ae),(Rn=Se.call(this,Qe)).sharedStylesHost=_t,Rn.hostEl=Wt,Rn.shadowRoot=Wt.attachShadow({mode:"open"}),Rn.sharedStylesHost.addHost(Rn.shadowRoot);for(var cr=Mt(gn.id,gn.styles,[]),Rr=0;Rr<cr.length;Rr++){var Xr=document.createElement("style");Xr.textContent=cr[Rr],Rn.shadowRoot.appendChild(Xr)}return Rn}return(0,M.Z)(Ae,[{key:"nodeOrShadowRoot",value:function(_t){return _t===this.hostEl?this.shadowRoot:_t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(_t,Wt){return(0,z.Z)((0,Y.Z)(Ae.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(_t),Wt)}},{key:"insertBefore",value:function(_t,Wt,gn){return(0,z.Z)((0,Y.Z)(Ae.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(_t),Wt,gn)}},{key:"removeChild",value:function(_t,Wt){return(0,z.Z)((0,Y.Z)(Ae.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(_t),Wt)}},{key:"parentNode",value:function(_t){return this.nodeOrShadowRoot((0,z.Z)((0,Y.Z)(Ae.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(_t)))}}]),Ae}(qt),nt=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe){return(0,U.Z)(this,Ae),Se.call(this,Qe)}return(0,M.Z)(Ae,[{key:"supports",value:function(_t){return!0}},{key:"addEventListener",value:function(_t,Wt,gn){var Rn=this;return _t.addEventListener(Wt,gn,!1),function(){return Rn.removeEventListener(_t,Wt,gn)}}},{key:"removeEventListener",value:function(_t,Wt,gn){return _t.removeEventListener(Wt,gn)}}]),Ae}(ce);nt.\u0275fac=function(Se){return new(Se||nt)(y.LFG(D.K0))},nt.\u0275prov=y.Yz7({token:nt,factory:nt.\u0275fac});var Rt=["alt","control","meta","shift"],on={"\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"},_n={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},An={alt:function(Se){return Se.altKey},control:function(Se){return Se.ctrlKey},meta:function(Se){return Se.metaKey},shift:function(Se){return Se.shiftKey}},Gt=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe){return(0,U.Z)(this,Ae),Se.call(this,Qe)}return(0,M.Z)(Ae,[{key:"supports",value:function(_t){return null!=Ae.parseEventName(_t)}},{key:"addEventListener",value:function(_t,Wt,gn){var Rn=Ae.parseEventName(Wt),cr=Ae.eventCallback(Rn.fullKey,gn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,D.q)().onAndCancel(_t,Rn.domEventName,cr)})}}],[{key:"parseEventName",value:function(_t){var Wt=_t.toLowerCase().split("."),gn=Wt.shift();if(0===Wt.length||"keydown"!==gn&&"keyup"!==gn)return null;var Rn=Ae._normalizeKey(Wt.pop()),cr="";if(Rt.forEach(function(Xr){var Mr=Wt.indexOf(Xr);Mr>-1&&(Wt.splice(Mr,1),cr+=Xr+".")}),cr+=Rn,0!=Wt.length||0===Rn.length)return null;var Rr={};return Rr.domEventName=gn,Rr.fullKey=cr,Rr}},{key:"getEventFullKey",value:function(_t){var Wt="",gn=function Zt(lt){var Se=lt.key;if(null==Se){if(null==(Se=lt.keyIdentifier))return"Unidentified";Se.startsWith("U+")&&(Se=String.fromCharCode(parseInt(Se.substring(2),16)),3===lt.location&&_n.hasOwnProperty(Se)&&(Se=_n[Se]))}return on[Se]||Se}(_t);return" "===(gn=gn.toLowerCase())?gn="space":"."===gn&&(gn="dot"),Rt.forEach(function(Rn){Rn!=gn&&((0,An[Rn])(_t)&&(Wt+=Rn+"."))}),Wt+=gn}},{key:"eventCallback",value:function(_t,Wt,gn){return function(Rn){Ae.getEventFullKey(Rn)===_t&&gn.runGuarded(function(){return Wt(Rn)})}}},{key:"_normalizeKey",value:function(_t){return"esc"===_t?"escape":_t}}]),Ae}(ce);Gt.\u0275fac=function(Se){return new(Se||Gt)(y.LFG(D.K0))},Gt.\u0275prov=y.Yz7({token:Gt,factory:Gt.\u0275fac});var sn=[{provide:y.Lbi,useValue:D.bD},{provide:y.g9A,useValue:function Et(){F.makeCurrent(),N.init()},multi:!0},{provide:D.K0,useFactory:function Ht(){return(0,y.RDi)(document),document},deps:[]}],yt=(0,y.eFA)(y._c5,"browser",sn),mt=[{provide:y.zSh,useValue:"root"},{provide:y.qLn,useFactory:function Ut(){return new y.qLn},deps:[]},{provide:W,useClass:nt,multi:!0,deps:[D.K0,y.R0b,y.Lbi]},{provide:W,useClass:Gt,multi:!0,deps:[D.K0]},{provide:en,useClass:en,deps:[$,ee,y.AFp]},{provide:y.FYo,useExisting:en},{provide:se,useExisting:ee},{provide:ee,useClass:ee,deps:[D.K0]},{provide:y.dDg,useClass:y.dDg,deps:[y.R0b]},{provide:$,useClass:$,deps:[W,y.R0b]},{provide:D.JF,useClass:R,deps:[]}],cn=function(){function lt(Se){if((0,U.Z)(this,lt),Se)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return(0,M.Z)(lt,null,[{key:"withServerTransition",value:function(Ae){return{ngModule:lt,providers:[{provide:y.AFp,useValue:Ae.appId},{provide:T,useExisting:y.AFp},S]}}}]),lt}();cn.\u0275fac=function(Se){return new(Se||cn)(y.LFG(cn,12))},cn.\u0275mod=y.oAB({type:cn}),cn.\u0275inj=y.cJS({providers:mt,imports:[D.ez,y.hGG]});var j=function(){function lt(Se){(0,U.Z)(this,lt),this._doc=Se,this._dom=(0,D.q)()}return(0,M.Z)(lt,[{key:"addTag",value:function(Ae){var Qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ae?this._getOrCreateElement(Ae,Qe):null}},{key:"addTags",value:function(Ae){var Qe=this,_t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ae?Ae.reduce(function(Wt,gn){return gn&&Wt.push(Qe._getOrCreateElement(gn,_t)),Wt},[]):[]}},{key:"getTag",value:function(Ae){return Ae&&this._doc.querySelector("meta[".concat(Ae,"]"))||null}},{key:"getTags",value:function(Ae){if(!Ae)return[];var Qe=this._doc.querySelectorAll("meta[".concat(Ae,"]"));return Qe?[].slice.call(Qe):[]}},{key:"updateTag",value:function(Ae,Qe){if(!Ae)return null;Qe=Qe||this._parseSelector(Ae);var _t=this.getTag(Qe);return _t?this._setMetaElementAttributes(Ae,_t):this._getOrCreateElement(Ae,!0)}},{key:"removeTag",value:function(Ae){this.removeTagElement(this.getTag(Ae))}},{key:"removeTagElement",value:function(Ae){Ae&&this._dom.remove(Ae)}},{key:"_getOrCreateElement",value:function(Ae){var Qe=this,_t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!_t){var Wt=this._parseSelector(Ae),gn=this.getTags(Wt).filter(function(Rr){return Qe._containsAttributes(Ae,Rr)})[0];if(void 0!==gn)return gn}var Rn=this._dom.createElement("meta");this._setMetaElementAttributes(Ae,Rn);var cr=this._doc.getElementsByTagName("head")[0];return cr.appendChild(Rn),Rn}},{key:"_setMetaElementAttributes",value:function(Ae,Qe){var _t=this;return Object.keys(Ae).forEach(function(Wt){return Qe.setAttribute(_t._getMetaKeyMap(Wt),Ae[Wt])}),Qe}},{key:"_parseSelector",value:function(Ae){var Qe=Ae.name?"name":"property";return"".concat(Qe,'="').concat(Ae[Qe],'"')}},{key:"_containsAttributes",value:function(Ae,Qe){var _t=this;return Object.keys(Ae).every(function(Wt){return Qe.getAttribute(_t._getMetaKeyMap(Wt))===Ae[Wt]})}},{key:"_getMetaKeyMap",value:function(Ae){return V[Ae]||Ae}}]),lt}();j.\u0275fac=function(Se){return new(Se||j)(y.LFG(D.K0))},j.\u0275prov=y.Yz7({token:j,factory:function(Se){return Se?new Se:function $t(){return new j((0,y.LFG)(D.K0))}()},providedIn:"root"});var V={httpEquiv:"http-equiv"};var wn=function(){function lt(Se){(0,U.Z)(this,lt),this._doc=Se}return(0,M.Z)(lt,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(Ae){this._doc.title=Ae||""}}]),lt}();wn.\u0275fac=function(Se){return new(Se||wn)(y.LFG(D.K0))},wn.\u0275prov=y.Yz7({token:wn,factory:function(Se){return Se?new Se:function Jn(){return new wn((0,y.LFG)(D.K0))}()},providedIn:"root"});function ue(lt,Se){"undefined"!=typeof COMPILED&&COMPILED||((y.dqk.ng=y.dqk.ng||{})[lt]=Se)}var We="undefined"!=typeof window&&window||{},at=(0,M.Z)(function lt(Se,Ae){(0,U.Z)(this,lt),this.msPerTick=Se,this.numTicks=Ae}),Dt=function(){function lt(Se){(0,U.Z)(this,lt),this.appRef=Se.injector.get(y.z2F)}return(0,M.Z)(lt,[{key:"timeChangeDetection",value:function(Ae){var Qe=Ae&&Ae.record,_t="Change Detection",Wt=null!=We.console.profile;Qe&&Wt&&We.console.profile(_t);for(var gn=tn(),Rn=0;Rn<5||tn()-gn<500;)this.appRef.tick(),Rn++;var cr=tn();Qe&&Wt&&We.console.profileEnd(_t);var Rr=(cr-gn)/Rn;return We.console.log("ran ".concat(Rn," change detection cycles")),We.console.log("".concat(Rr.toFixed(2)," ms per check")),new at(Rr,Rn)}}]),lt}();function tn(){return We.performance&&We.performance.now?We.performance.now():(new Date).getTime()}var Jt="profiler";function nn(lt){return ue(Jt,new Dt(lt)),lt}var Ln=function(){function lt(){(0,U.Z)(this,lt),this.store={},this.onSerializeCallbacks={}}return(0,M.Z)(lt,[{key:"get",value:function(Ae,Qe){return void 0!==this.store[Ae]?this.store[Ae]:Qe}},{key:"set",value:function(Ae,Qe){this.store[Ae]=Qe}},{key:"remove",value:function(Ae){delete this.store[Ae]}},{key:"hasKey",value:function(Ae){return this.store.hasOwnProperty(Ae)}},{key:"onSerialize",value:function(Ae,Qe){this.onSerializeCallbacks[Ae]=Qe}},{key:"toJson",value:function(){for(var Ae in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(Ae))try{this.store[Ae]=this.onSerializeCallbacks[Ae]()}catch(Qe){console.warn("Exception in onSerialize callback: ",Qe)}return JSON.stringify(this.store)}}],[{key:"init",value:function(Ae){var Qe=new lt;return Qe.store=Ae,Qe}}]),lt}();Ln.\u0275fac=function(Se){return new(Se||Ln)},Ln.\u0275prov=y.Yz7({token:Ln,factory:Ln.\u0275fac});var mn=(0,M.Z)(function lt(){(0,U.Z)(this,lt)});mn.\u0275fac=function(Se){return new(Se||mn)},mn.\u0275mod=y.oAB({type:mn}),mn.\u0275inj=y.cJS({providers:[{provide:Ln,useFactory:function jn(lt,Se){var Ae=lt.getElementById(Se+"-state"),Qe={};if(Ae&&Ae.textContent)try{Qe=JSON.parse(function Dn(lt){var Se={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return lt.replace(/&[^;]+;/g,function(Ae){return Se[Ae]})}(Ae.textContent))}catch(_t){console.warn("Exception while restoring TransferState for app "+Se,_t)}return Ln.init(Qe)},deps:[D.K0,y.AFp]}]});var Kt={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},tt=new y.OlP("HammerGestureConfig"),Ue=new y.OlP("HammerLoader"),Ee=function(){function lt(){(0,U.Z)(this,lt),this.events=[],this.overrides={}}return(0,M.Z)(lt,[{key:"buildHammer",value:function(Ae){var Qe=new Hammer(Ae,this.options);for(var _t in Qe.get("pinch").set({enable:!0}),Qe.get("rotate").set({enable:!0}),this.overrides)Qe.get(_t).set(this.overrides[_t]);return Qe}}]),lt}();Ee.\u0275fac=function(Se){return new(Se||Ee)},Ee.\u0275prov=y.Yz7({token:Ee,factory:Ee.\u0275fac});var He=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe,_t,Wt,gn){var Rn;return(0,U.Z)(this,Ae),(Rn=Se.call(this,Qe))._config=_t,Rn.console=Wt,Rn.loader=gn,Rn._loaderPromise=null,Rn}return(0,M.Z)(Ae,[{key:"supports",value:function(_t){return!(!Kt.hasOwnProperty(_t.toLowerCase())&&!this.isCustomEvent(_t)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(_t,Wt,gn){var Rn=this,cr=this.manager.getZone();if(Wt=Wt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();var Rr=!1,Xr=function(){Rr=!0};return this._loaderPromise.then(function(){window.Hammer?Rr||(Xr=Rn.addEventListener(_t,Wt,gn)):Xr=function(){}}).catch(function(){Xr=function(){}}),function(){Xr()}}return cr.runOutsideAngular(function(){var Mr=Rn._config.buildHammer(_t),Hi=function(Gi){cr.runGuarded(function(){gn(Gi)})};return Mr.on(Wt,Hi),function(){Mr.off(Wt,Hi),"function"==typeof Mr.destroy&&Mr.destroy()}})}},{key:"isCustomEvent",value:function(_t){return this._config.events.indexOf(_t)>-1}}]),Ae}(ce);He.\u0275fac=function(Se){return new(Se||He)(y.LFG(D.K0),y.LFG(tt),y.LFG(y.c2e),y.LFG(Ue,8))},He.\u0275prov=y.Yz7({token:He,factory:He.\u0275fac});var bt=(0,M.Z)(function lt(){(0,U.Z)(this,lt)});bt.\u0275fac=function(Se){return new(Se||bt)},bt.\u0275mod=y.oAB({type:bt}),bt.\u0275inj=y.cJS({providers:[{provide:W,useClass:He,multi:!0,deps:[D.K0,tt,y.c2e,[new y.FiY,Ue]]},{provide:tt,useClass:Ee,deps:[]}]});var Yt=(0,M.Z)(function lt(){(0,U.Z)(this,lt)});Yt.\u0275fac=function(Se){return new(Se||Yt)},Yt.\u0275prov=y.Yz7({token:Yt,factory:function(Se){return Se?new(Se||Yt):y.LFG(rr)},providedIn:"root"});var rr=function(lt){(0,L.Z)(Ae,lt);var Se=(0,P.Z)(Ae);function Ae(Qe){var _t;return(0,U.Z)(this,Ae),(_t=Se.call(this))._doc=Qe,_t}return(0,M.Z)(Ae,[{key:"sanitize",value:function(_t,Wt){if(null==Wt)return null;switch(_t){case y.q3G.NONE:return Wt;case y.q3G.HTML:return(0,y.qzn)(Wt,"HTML")?(0,y.z3N)(Wt):(0,y.EiD)(this._doc,String(Wt)).toString();case y.q3G.STYLE:return(0,y.qzn)(Wt,"Style")?(0,y.z3N)(Wt):Wt;case y.q3G.SCRIPT:if((0,y.qzn)(Wt,"Script"))return(0,y.z3N)(Wt);throw new Error("unsafe value used in a script context");case y.q3G.URL:(0,y.yhl)(Wt);return(0,y.qzn)(Wt,"URL")?(0,y.z3N)(Wt):(0,y.mCW)(String(Wt));case y.q3G.RESOURCE_URL:if((0,y.qzn)(Wt,"ResourceURL"))return(0,y.z3N)(Wt);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(_t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(_t){return(0,y.JVY)(_t)}},{key:"bypassSecurityTrustStyle",value:function(_t){return(0,y.L6k)(_t)}},{key:"bypassSecurityTrustScript",value:function(_t){return(0,y.eBb)(_t)}},{key:"bypassSecurityTrustUrl",value:function(_t){return(0,y.LAX)(_t)}},{key:"bypassSecurityTrustResourceUrl",value:function(_t){return(0,y.pB0)(_t)}}]),Ae}(Yt);rr.\u0275fac=function(Se){return new(Se||rr)(y.LFG(D.K0))},rr.\u0275prov=y.Yz7({token:rr,factory:function(Se){return Se?new Se:function En(lt){return new rr(lt.get(D.K0))}(y.LFG(y.zs3))},providedIn:"root"});new y.GfV("13.3.11")},907:function(qe,J,m){"use strict";function z(Y,M){(null==M||M>Y.length)&&(M=Y.length);for(var U=0,L=new Array(M);U<M;U++)L[U]=Y[U];return L}m.d(J,{Z:function(){return z}})},3878:function(qe,J,m){"use strict";function z(Y){if(Array.isArray(Y))return Y}m.d(J,{Z:function(){return z}})},7326:function(qe,J,m){"use strict";function z(Y){if(void 0===Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}m.d(J,{Z:function(){return z}})},5671:function(qe,J,m){"use strict";function z(Y,M){if(!(Y instanceof M))throw new TypeError("Cannot call a class as a function")}m.d(J,{Z:function(){return z}})},5647:function(qe,J,m){"use strict";m.d(J,{Z:function(){return M}});var z=m(9611),Y=m(8814);function M(U,L,P){return(M=(0,Y.Z)()?Reflect.construct:function(y,K,F){var E=[null];E.push.apply(E,K);var k=new(Function.bind.apply(y,E));return F&&(0,z.Z)(k,F.prototype),k}).apply(null,arguments)}},3144:function(qe,J,m){"use strict";function z(M,U){for(var L=0;L<U.length;L++){var P=U[L];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,P.key,P)}}function Y(M,U,L){return U&&z(M.prototype,U),L&&z(M,L),Object.defineProperty(M,"prototype",{writable:!1}),M}m.d(J,{Z:function(){return Y}})},7762:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(181);function Y(M,U){var L="undefined"!=typeof Symbol&&M[Symbol.iterator]||M["@@iterator"];if(!L){if(Array.isArray(M)||(L=(0,z.Z)(M))||U&&M&&"number"==typeof M.length){L&&(M=L);var P=0,D=function(){};return{s:D,n:function(){return P>=M.length?{done:!0}:{done:!1,value:M[P++]}},e:function(A){throw A},f:D}}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 F,y=!0,K=!1;return{s:function(){L=L.call(M)},n:function(){var A=L.next();return y=A.done,A},e:function(A){K=!0,F=A},f:function(){try{!y&&null!=L.return&&L.return()}finally{if(K)throw F}}}}},9388:function(qe,J,m){"use strict";m.d(J,{Z:function(){return U}});var z=m(1120),Y=m(8814),M=m(245);function U(L){var P=(0,Y.Z)();return function(){var K,y=(0,z.Z)(L);if(P){var F=(0,z.Z)(this).constructor;K=Reflect.construct(y,arguments,F)}else K=y.apply(this,arguments);return(0,M.Z)(this,K)}}},4942:function(qe,J,m){"use strict";function z(Y,M,U){return M in Y?Object.defineProperty(Y,M,{value:U,enumerable:!0,configurable:!0,writable:!0}):Y[M]=U,Y}m.d(J,{Z:function(){return z}})},3237:function(qe,J,m){"use strict";m.d(J,{Z:function(){return M}});var z=m(1120);function Y(U,L){for(;!Object.prototype.hasOwnProperty.call(U,L)&&null!==(U=(0,z.Z)(U)););return U}function M(){return M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(L,P,D){var y=Y(L,P);if(y){var K=Object.getOwnPropertyDescriptor(y,P);return K.get?K.get.call(arguments.length<3?L:D):K.value}},M.apply(this,arguments)}},1120:function(qe,J,m){"use strict";function z(Y){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)})(Y)}m.d(J,{Z:function(){return z}})},136:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(9611);function Y(M,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(U&&U.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),U&&(0,z.Z)(M,U)}},8814:function(qe,J,m){"use strict";function z(){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(Y){return!1}}m.d(J,{Z:function(){return z}})},9199:function(qe,J,m){"use strict";function z(Y){if("undefined"!=typeof Symbol&&null!=Y[Symbol.iterator]||null!=Y["@@iterator"])return Array.from(Y)}m.d(J,{Z:function(){return z}})},5267:function(qe,J,m){"use strict";function z(){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(J,{Z:function(){return z}})},245:function(qe,J,m){"use strict";function z(U){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(U)}m.d(J,{Z:function(){return M}});var Y=m(7326);function M(U,L){if(L&&("object"===z(L)||"function"==typeof L))return L;if(void 0!==L)throw new TypeError("Derived constructors may only return object or undefined");return(0,Y.Z)(U)}},9611:function(qe,J,m){"use strict";function z(Y,M){return(z=Object.setPrototypeOf||function(L,P){return L.__proto__=P,L})(Y,M)}m.d(J,{Z:function(){return z}})},7685:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(3878);var M=m(181),U=m(5267);function L(P,D){return(0,z.Z)(P)||function Y(P,D){var y=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=y){var A,k,K=[],F=!0,E=!1;try{for(y=y.call(P);!(F=(A=y.next()).done)&&(K.push(A.value),!D||K.length!==D);F=!0);}catch(I){E=!0,k=I}finally{try{!F&&null!=y.return&&y.return()}finally{if(E)throw k}}return K}}(P,D)||(0,M.Z)(P,D)||(0,U.Z)()}},4506:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(3878),Y=m(9199),M=m(181),U=m(5267);function L(P){return(0,z.Z)(P)||(0,Y.Z)(P)||(0,M.Z)(P)||(0,U.Z)()}},4902:function(qe,J,m){"use strict";m.d(J,{Z:function(){return P}});var z=m(907);var M=m(9199),U=m(181);function P(D){return function Y(D){if(Array.isArray(D))return(0,z.Z)(D)}(D)||(0,M.Z)(D)||(0,U.Z)(D)||function L(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(qe,J,m){"use strict";m.d(J,{Z:function(){return Y}});var z=m(907);function Y(M,U){if(M){if("string"==typeof M)return(0,z.Z)(M,U);var L=Object.prototype.toString.call(M).slice(8,-1);if("Object"===L&&M.constructor&&(L=M.constructor.name),"Map"===L||"Set"===L)return Array.from(M);if("Arguments"===L||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return(0,z.Z)(M,U)}}},5724:function(qe,J,m){"use strict";m.d(J,{Z:function(){return L}});var z=m(1120),Y=m(9611);var U=m(5647);function L(P){var D="function"==typeof Map?new Map:void 0;return L=function(K){if(null===K||!function M(P){return-1!==Function.toString.call(P).indexOf("[native code]")}(K))return K;if("function"!=typeof K)throw new TypeError("Super expression must either be null or a function");if(void 0!==D){if(D.has(K))return D.get(K);D.set(K,F)}function F(){return(0,U.Z)(K,arguments,(0,z.Z)(this).constructor)}return F.prototype=Object.create(K.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),(0,Y.Z)(F,K)},L(P)}},4147:function(qe){"use strict";qe.exports={i8:"3.0.0a1"}}},function(qe){var z;z=7581,qe(qe.s=z)}]); |