mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +00:00
1 line
4.1 MiB
1 line
4.1 MiB
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[179],{5735:function(De,K,m){"use strict";m.d(K,{o:function(){return R}});var G=m(5671),W=m(3144),A=m(591),U=m(8929),R=function(){function P(){(0,G.Z)(this,P),this.data=[],this.dataChange=new A.X([]),this.itemUpdated=new U.xQ}return(0,W.Z)(P,[{key:"getItems",value:function(){return this.data}},{key:"add",value:function(D){this.findIndex(D)>=0?this.update(D):(this.data.push(D),this.dataChange.next(this.data))}},{key:"set",value:function(D){var j=this;D.forEach(function(v){var k=j.findIndex(v);if(k>=0){var b=Object.assign(j.data[k],v);j.data[k]=b}else j.data.push(v)}),this.data.filter(function(v){return 0===D.filter(function(k){return j.getItemKey(k)===j.getItemKey(v)}).length}).forEach(function(v){return j.remove(v)}),this.dataChange.next(this.data)}},{key:"get",value:function(D){var j=this,L=this.data.findIndex(function(v){return j.getItemKey(v)===D});if(L>=0)return this.data[L]}},{key:"update",value:function(D){var j=this.findIndex(D);if(j>=0){var L=Object.assign(this.data[j],D);this.data[j]=L,this.dataChange.next(this.data),this.itemUpdated.next(L)}}},{key:"remove",value:function(D){var j=this.findIndex(D);j>=0&&(this.data.splice(j,1),this.dataChange.next(this.data))}},{key:"changes",get:function(){return this.dataChange}},{key:"itemChanged",get:function(){return this.itemUpdated}},{key:"clear",value:function(){this.data=[],this.dataChange.next(this.data)}},{key:"findIndex",value:function(D){var j=this;return this.data.findIndex(function(L){return j.getItemKey(L)===j.getItemKey(D)})}}]),P}()},6215:function(De,K,m){"use strict";m.d(K,{F:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.link_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5366:function(De,K,m){"use strict";m.d(K,{G:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5735),P=m(5e3),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(){return(0,G.Z)(this,L),j.apply(this,arguments)}return(0,W.Z)(L,[{key:"getItemKey",value:function(k){return k.node_id}}]),L}(R.o);E.\u0275fac=function(){var D;return function(L){return(D||(D=P.n5z(E)))(L||E)}}(),E.\u0275prov=P.Yz7({token:E,factory:E.\u0275fac})},5542:function(De,K,m){"use strict";m.d(K,{X:function(){return P}});var G=m(5671),W=m(3144),A=m(4766),U=m(5e3),R=m(2437),P=function(){function E(D){(0,G.Z)(this,E),this.httpController=D}return(0,W.Z)(E,[{key:"getComputes",value:function(j){return this.httpController.get(j,"/computes")}},{key:"getUploadPath",value:function(j,L,v){return"".concat(j.protocol,"//").concat(j.host,":").concat(j.port,"/").concat(A.N.current_version,"/").concat(L,"/images/").concat(v)}},{key:"getStatistics",value:function(j){return this.httpController.get(j,"/statistics")}}]),E}();P.\u0275fac=function(D){return new(D||P)(U.LFG(R.zw))},P.\u0275prov=U.Yz7({token:P,factory:P.\u0275fac})},2437:function(De,K,m){"use strict";m.d(K,{CJ:function(){return k},zw:function(){return b}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(5724),P=m(5e3),E=m(4766),D=m(1737),j=m(7221),L=m(520),v=function(O){(0,A.Z)(y,O);var S=(0,U.Z)(y);function y(T){return(0,G.Z)(this,y),S.call(this,T)}return(0,W.Z)(y,null,[{key:"fromError",value:function(M,x){var N=new y(M);return N.originalError=x,N}}]),y}((0,R.Z)(Error)),k=function(){function O(){(0,G.Z)(this,O)}return(0,W.Z)(O,[{key:"handleError",value:function(y){var T=y;return"HttpErrorResponse"===y.name&&0===y.status&&(T=v.fromError("Controller is unreachable",y)),401===y.status&&window.location.reload(),(0,D._)(T)}}]),O}();k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=P.Yz7({token:k,factory:k.\u0275fac});var b=function(){function O(S,y){(0,G.Z)(this,O),this.http=S,this.errorHandler=y,this.requestsNotificationEmitter=new P.vpe}return(0,W.Z)(O,[{key:"get",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getText",value:function(y,T,M){M=this.getTextOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getBlob",value:function(y,T,M){M=this.getBlobOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("GET ".concat(x.url)),this.http.get(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"post",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("POST ".concat(N.url)),this.http.post(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"put",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.requestsNotificationEmitter.emit("PUT ".concat(N.url)),this.http.put(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"delete",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.requestsNotificationEmitter.emit("DELETE ".concat(x.url)),this.http.delete(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"patch",value:function(y,T,M,x){x=this.getJsonOptions(x);var N=this.getOptionsForController(y,T,x);return this.http.patch(N.url,M,N.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"head",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.head(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"options",value:function(y,T,M){M=this.getJsonOptions(M);var x=this.getOptionsForController(y,T,M);return this.http.options(x.url,x.options).pipe((0,j.K)(this.errorHandler.handleError))}},{key:"getJsonOptions",value:function(y){return y||{responseType:"json"}}},{key:"getTextOptions",value:function(y){return y||{responseType:"text"}}},{key:"getBlobOptions",value:function(y){return y||{responseType:"blob"}}},{key:"getOptionsForController",value:function(y,T,M){return y&&y.host&&y.port?(y.protocol||(y.protocol=location.protocol),T="".concat(y.protocol,"//").concat(y.host,":").concat(y.port,"/").concat(E.N.current_version).concat(T)):T="/".concat(E.N.current_version).concat(T),M.headers||(M.headers={}),y&&y.authToken&&!y.tokenExpired&&(M.headers.Authorization="Bearer ".concat(y.authToken)),{url:T,options:M}}}]),O}();b.\u0275fac=function(S){return new(S||b)(P.LFG(L.eN),P.LFG(k))},b.\u0275prov=P.Yz7({token:b,factory:b.\u0275fac})},9971:function(De,K,m){"use strict";m.d(K,{Y:function(){return j}});var G=m(5671),W=m(3144),A=m(4766),U=m(8929),R=m(5e3),P=m(2437),E=m(9449),D=m(9740),j=function(){function L(v,k,b){(0,G.Z)(this,L),this.httpController=v,this.settingsService=k,this.recentlyOpenedProjectService=b,this.compression_methods=[{id:1,value:"none",name:"None"},{id:2,value:"zip",name:"Zip compression (deflate)"},{id:3,value:"bzip2",name:"Bzip2 compression"},{id:4,value:"lzma",name:"Lzma compression"},{id:5,value:"zstd",name:"Zstandard compression"}],this.compression_level_default_value=[{id:1,name:"none",value:"",selectionValues:[]},{id:2,name:"zip",value:6,selectionValues:[0,1,2,3,4,5,6,7,8,9]},{id:3,name:"bzip2",value:9,selectionValues:[1,2,3,4,5,6,7,8,9]},{id:4,name:"lzma",value:" ",selectionValues:[]},{id:5,name:"zstd",value:3,selectionValues:[1,2,3,4,5,6,7,8,9.1,11,12,13,14,15,16,17,18,19,20,21,22]}],this.projectListSubject=new U.xQ,this.projectLockIconSubject=new U.xQ}return(0,W.Z)(L,[{key:"projectListUpdated",value:function(){this.projectListSubject.next(!0)}},{key:"getReadmeFile",value:function(k,b){return this.httpController.getText(k,"/projects/".concat(b,"/files/README.txt"))}},{key:"postReadmeFile",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/files/README.txt"),O)}},{key:"get",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b))}},{key:"open",value:function(k,b){return this.httpController.post(k,"/projects/".concat(b,"/open"),{})}},{key:"close",value:function(k,b){return this.recentlyOpenedProjectService.removeData(),this.httpController.post(k,"/projects/".concat(b,"/close"),{})}},{key:"list",value:function(k){return this.httpController.get(k,"/projects")}},{key:"nodes",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/nodes"))}},{key:"links",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/links"))}},{key:"drawings",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/drawings"))}},{key:"add",value:function(k,b,O){return this.httpController.post(k,"/projects",{name:b,project_id:O})}},{key:"update",value:function(k,b){return this.httpController.put(k,"/projects/".concat(b.project_id),{auto_close:b.auto_close,auto_open:b.auto_open,auto_start:b.auto_start,drawing_grid_size:b.drawing_grid_size,grid_size:b.grid_size,name:b.name,scene_width:b.scene_width,scene_height:b.scene_height,show_interface_labels:b.show_interface_labels})}},{key:"delete",value:function(k,b){return this.httpController.delete(k,"/projects/".concat(b))}},{key:"getUploadPath",value:function(k,b,O){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/import?name=").concat(O)}},{key:"getExportPath",value:function(k,b){return"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b.project_id,"/export")}},{key:"export",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/export"))}},{key:"getStatistics",value:function(k,b){return this.httpController.get(k,"/projects/".concat(b,"/stats"))}},{key:"duplicate",value:function(k,b,O){return this.httpController.post(k,"/projects/".concat(b,"/duplicate"),{name:O})}},{key:"isReadOnly",value:function(k){return!!k.readonly&&k.readonly}},{key:"getCompression",value:function(){return this.compression_methods}},{key:"getCompressionLevel",value:function(){return this.compression_level_default_value}},{key:"getexportPortableProjectPath",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null!=O.compression_level&&""!=O.compression_level?"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&compression_level=").concat(O.compression_level,"&token=").concat(k.authToken):"".concat(k.protocol,"//").concat(k.host,":").concat(k.port,"/").concat(A.N.current_version,"/projects/").concat(b,"/export?include_snapshots=").concat(O.include_snapshots,"&include_images=").concat(O.include_base_image,"&reset_mac_addresses=").concat(O.reset_mac_address,"&compression=").concat(O.compression,"&token=").concat(k.authToken)}},{key:"getProjectStatus",value:function(k,b){return this.get(k,"".concat(b,"/locked"))}},{key:"projectUpdateLockIcon",value:function(){this.projectLockIconSubject.next(!0)}}]),L}();j.\u0275fac=function(v){return new(v||j)(R.LFG(P.zw),R.LFG(E.g),R.LFG(D.p))},j.\u0275prov=R.Yz7({token:j,factory:j.\u0275fac})},9740:function(De,K,m){"use strict";m.d(K,{p:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R)}return(0,W.Z)(R,[{key:"setcontrollerId",value:function(E){this.controllerId=E}},{key:"setProjectId",value:function(E){this.projectId=E}},{key:"setcontrollerIdProjectList",value:function(E){this.controllerIdProjectList=E}},{key:"getcontrollerId",value:function(){return this.controllerId}},{key:"getProjectId",value:function(){return this.projectId}},{key:"getcontrollerIdProjectList",value:function(){return this.controllerIdProjectList}},{key:"removeData",value:function(){this.controllerId="",this.projectId=""}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac})},9449:function(De,K,m){"use strict";m.d(K,{g:function(){return U}});var G=m(5671),W=m(3144),A=m(5e3),U=function(){function R(){(0,G.Z)(this,R),this.settings={crash_reports:!0,console_command:void 0,anonymous_statistics:!0},this.reportsSettings="crash_reports",this.consoleSettings="console_command",this.statisticsSettings="statistics_command",this.getItem(this.reportsSettings)&&(this.settings.crash_reports="true"===this.getItem(this.reportsSettings)),this.getItem(this.consoleSettings)&&(this.settings.console_command=this.getItem(this.consoleSettings)),this.getItem(this.statisticsSettings)&&(this.settings.anonymous_statistics="true"===this.getItem(this.statisticsSettings))}return(0,W.Z)(R,[{key:"setReportsSettings",value:function(E){this.settings.crash_reports=E,this.removeItem(this.reportsSettings),E?this.setItem(this.reportsSettings,"true"):this.setItem(this.reportsSettings,"false")}},{key:"setStatisticsSettings",value:function(E){this.settings.anonymous_statistics=E,this.removeItem(this.statisticsSettings),E?this.setItem(this.statisticsSettings,"true"):this.setItem(this.statisticsSettings,"false")}},{key:"getReportsSettings",value:function(){return"true"===this.getItem(this.reportsSettings)}},{key:"getStatisticsSettings",value:function(){return"true"===this.getItem(this.statisticsSettings)}},{key:"setConsoleSettings",value:function(E){this.settings.console_command=E,this.removeItem(this.consoleSettings),this.setItem(this.consoleSettings,E)}},{key:"getConsoleSettings",value:function(){return this.getItem(this.consoleSettings)}},{key:"removeItem",value:function(E){localStorage.removeItem(E)}},{key:"setItem",value:function(E,D){localStorage.setItem(E,D)}},{key:"getItem",value:function(E){return localStorage.getItem(E)}},{key:"getAll",value:function(){return this.settings}},{key:"setAll",value:function(E){this.settings=E,this.setConsoleSettings(E.console_command),this.setReportsSettings(E.crash_reports),this.setStatisticsSettings(E.anonymous_statistics)}}]),R}();U.\u0275fac=function(P){return new(P||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"})},4068:function(De,K,m){"use strict";m.d(K,{f:function(){return R}});var G=m(5671),W=m(3144),A=m(5e3),U=m(591),R=function(){function P(){(0,G.Z)(this,P),this._darkMode$=new U.X(!1),this.darkMode$=this._darkMode$.asObservable(),this.themeChanged=new A.vpe,this.savedTheme="dark",localStorage.getItem("theme")||localStorage.setItem("theme","dark"),this.savedTheme=localStorage.getItem("theme")}return(0,W.Z)(P,[{key:"getActualTheme",value:function(){return this.savedTheme}},{key:"setDarkMode",value:function(D){D?(this.savedTheme="dark",this.themeChanged.emit("dark-theme"),localStorage.setItem("theme","dark")):(this.savedTheme="light",this.themeChanged.emit("light-theme"),localStorage.setItem("theme","light"))}}]),P}();R.\u0275fac=function(E){return new(E||R)},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})},4766:function(De,K,m){"use strict";m.d(K,{N:function(){return G}});var G={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"}},6742:function(De,K,m){"use strict";var G={};m.r(G),m.d(G,{active:function(){return SSe},arc:function(){return m1e},area:function(){return vee},areaRadial:function(){return wee},ascending:function(){return Jy},axisBottom:function(){return _ce},axisLeft:function(){return gce},axisRight:function(){return mce},axisTop:function(){return hce},bisect:function(){return Y1},bisectLeft:function(){return zue},bisectRight:function(){return VY},bisector:function(){return O7},brush:function(){return Dpe},brushSelection:function(){return Spe},brushX:function(){return Epe},brushY:function(){return xpe},chord:function(){return Ope},clientPoint:function(){return mN},cluster:function(){return oge},color:function(){return JL},contourDensity:function(){return _he},contours:function(){return Oq},create:function(){return UCe},creator:function(){return pN},cross:function(){return Vue},csvFormat:function(){return Mhe},csvFormatRows:function(){return She},csvParse:function(){return khe},csvParseRows:function(){return The},cubehelix:function(){return Dq},curveBasis:function(){return R1e},curveBasisClosed:function(){return L1e},curveBasisOpen:function(){return Z1e},curveBundle:function(){return N1e},curveCardinal:function(){return B1e},curveCardinalClosed:function(){return F1e},curveCardinalOpen:function(){return U1e},curveCatmullRom:function(){return H1e},curveCatmullRomClosed:function(){return j1e},curveCatmullRomOpen:function(){return G1e},curveLinear:function(){return vN},curveLinearClosed:function(){return z1e},curveMonotoneX:function(){return W1e},curveMonotoneY:function(){return V1e},curveNatural:function(){return Y1e},curveStep:function(){return K1e},curveStepAfter:function(){return J1e},curveStepBefore:function(){return q1e},customEvent:function(){return LCe},descending:function(){return Yue},deviation:function(){return qY},dispatch:function(){return Xy},drag:function(){return fg},dragDisable:function(){return xL},dragEnable:function(){return DL},dsvFormat:function(){return D9},easeBack:function(){return Hq},easeBackIn:function(){return Xhe},easeBackInOut:function(){return Hq},easeBackOut:function(){return $he},easeBounce:function(){return mx},easeBounceIn:function(){return Jhe},easeBounceInOut:function(){return Qhe},easeBounceOut:function(){return mx},easeCircle:function(){return Uq},easeCircleIn:function(){return Uhe},easeCircleInOut:function(){return Uq},easeCircleOut:function(){return Hhe},easeCubic:function(){return GL},easeCubicIn:function(){return mpe},easeCubicInOut:function(){return GL},easeCubicOut:function(){return _pe},easeElastic:function(){return jq},easeElasticIn:function(){return eme},easeElasticInOut:function(){return tme},easeElasticOut:function(){return jq},easeExp:function(){return Fq},easeExpIn:function(){return Bhe},easeExpInOut:function(){return Fq},easeExpOut:function(){return Fhe},easeLinear:function(){return Ohe},easePoly:function(){return Lq},easePolyIn:function(){return Rhe},easePolyInOut:function(){return Lq},easePolyOut:function(){return Lhe},easeQuad:function(){return Rq},easeQuadIn:function(){return Ihe},easeQuadInOut:function(){return Rq},easeQuadOut:function(){return Phe},easeSin:function(){return Bq},easeSinIn:function(){return Zhe},easeSinInOut:function(){return Bq},easeSinOut:function(){return Nhe},entries:function(){return Vpe},event:function(){return om},extent:function(){return I7},forceCenter:function(){return nme},forceCollide:function(){return Cme},forceLink:function(){return kme},forceManyBody:function(){return Dme},forceRadial:function(){return Ame},forceSimulation:function(){return xme},forceX:function(){return Ome},forceY:function(){return Ime},format:function(){return Xq},formatDefaultLocale:function(){return eJ},formatLocale:function(){return Qq},formatPrefix:function(){return $q},formatSpecifier:function(){return oZ},geoAlbers:function(){return pQ},geoAlbersUsa:function(){return F_e},geoArea:function(){return zme},geoAzimuthalEqualArea:function(){return U_e},geoAzimuthalEqualAreaRaw:function(){return bH},geoAzimuthalEquidistant:function(){return H_e},geoAzimuthalEquidistantRaw:function(){return CH},geoBounds:function(){return Kme},geoCentroid:function(){return e_e},geoCircle:function(){return t_e},geoClipAntimeridian:function(){return $9},geoClipCircle:function(){return LJ},geoClipExtent:function(){return l_e},geoClipRectangle:function(){return DZ},geoConicConformal:function(){return G_e},geoConicConformalRaw:function(){return _Q},geoConicEqualArea:function(){return UZ},geoConicEqualAreaRaw:function(){return fQ},geoConicEquidistant:function(){return W_e},geoConicEquidistantRaw:function(){return gQ},geoContains:function(){return m_e},geoDistance:function(){return Cx},geoEquirectangular:function(){return z_e},geoEquirectangularRaw:function(){return Ax},geoGnomonic:function(){return V_e},geoGnomonicRaw:function(){return wH},geoGraticule:function(){return WJ},geoGraticule10:function(){return __e},geoIdentity:function(){return Y_e},geoInterpolate:function(){return g_e},geoLength:function(){return ZJ},geoMercator:function(){return j_e},geoMercatorRaw:function(){return Dx},geoNaturalEarth1:function(){return K_e},geoNaturalEarth1Raw:function(){return kH},geoOrthographic:function(){return q_e},geoOrthographicRaw:function(){return TH},geoPath:function(){return D_e},geoProjection:function(){return nm},geoProjectionMutator:function(){return vH},geoRotation:function(){return EJ},geoStereographic:function(){return J_e},geoStereographicRaw:function(){return MH},geoStream:function(){return Qd},geoTransform:function(){return A_e},geoTransverseMercator:function(){return Q_e},geoTransverseMercatorRaw:function(){return SH},hcl:function(){return Tq},hierarchy:function(){return EH},histogram:function(){return Que},hsl:function(){return mq},interpolate:function(){return UH},interpolateArray:function(){return YQ},interpolateBasis:function(){return GQ},interpolateBasisClosed:function(){return zQ},interpolateBlues:function(){return nbe},interpolateBrBG:function(){return L0e},interpolateBuGn:function(){return z0e},interpolateBuPu:function(){return W0e},interpolateCool:function(){return pbe},interpolateCubehelix:function(){return wve},interpolateCubehelixDefault:function(){return dbe},interpolateCubehelixLong:function(){return kve},interpolateDate:function(){return KQ},interpolateGnBu:function(){return V0e},interpolateGreens:function(){return rbe},interpolateGreys:function(){return ibe},interpolateHcl:function(){return yve},interpolateHclLong:function(){return bve},interpolateHsl:function(){return mve},interpolateHslLong:function(){return _ve},interpolateInferno:function(){return gbe},interpolateLab:function(){return vve},interpolateMagma:function(){return _be},interpolateNumber:function(){return gp},interpolateObject:function(){return qQ},interpolateOrRd:function(){return Y0e},interpolateOranges:function(){return sbe},interpolatePRGn:function(){return Z0e},interpolatePiYG:function(){return N0e},interpolatePlasma:function(){return vbe},interpolatePuBu:function(){return q0e},interpolatePuBuGn:function(){return K0e},interpolatePuOr:function(){return B0e},interpolatePuRd:function(){return J0e},interpolatePurples:function(){return obe},interpolateRainbow:function(){return hbe},interpolateRdBu:function(){return F0e},interpolateRdGy:function(){return U0e},interpolateRdPu:function(){return Q0e},interpolateRdYlBu:function(){return H0e},interpolateRdYlGn:function(){return j0e},interpolateReds:function(){return abe},interpolateRgb:function(){return NH},interpolateRgbBasis:function(){return nve},interpolateRgbBasisClosed:function(){return rve},interpolateRound:function(){return ave},interpolateSpectral:function(){return G0e},interpolateString:function(){return JQ},interpolateTransformCss:function(){return uve},interpolateTransformSvg:function(){return cve},interpolateViridis:function(){return mbe},interpolateWarm:function(){return fbe},interpolateYlGn:function(){return $0e},interpolateYlGnBu:function(){return X0e},interpolateYlOrBr:function(){return ebe},interpolateYlOrRd:function(){return tbe},interpolateZoom:function(){return hve},interrupt:function(){return ene},interval:function(){return Hke},isoFormat:function(){return Nke},isoParse:function(){return Uke},keys:function(){return zpe},lab:function(){return kq},line:function(){return yN},lineRadial:function(){return Cee},linkHorizontal:function(){return T1e},linkRadial:function(){return S1e},linkVertical:function(){return M1e},local:function(){return hee},map:function(){return cg},matcher:function(){return tee},max:function(){return QY},mean:function(){return ece},median:function(){return tce},merge:function(){return B7},min:function(){return XY},mouse:function(){return jCe},namespace:function(){return Cj},namespaces:function(){return bj},nest:function(){return Upe},now:function(){return ug},pack:function(){return Age},packEnclose:function(){return yQ},packSiblings:function(){return Ege},pairs:function(){return Wue},partition:function(){return Oge},path:function(){return Jd},permute:function(){return nce},pie:function(){return v1e},pointRadial:function(){return Xx},polygonArea:function(){return Mve},polygonCentroid:function(){return Sve},polygonContains:function(){return Ave},polygonHull:function(){return Dve},polygonLength:function(){return Ove},precisionFixed:function(){return Bme},precisionPrefix:function(){return Fme},precisionRound:function(){return Ume},quadtree:function(){return rZ},quantile:function(){return $E},quantize:function(){return Tve},radialArea:function(){return wee},radialLine:function(){return Cee},randomBates:function(){return Rve},randomExponential:function(){return Lve},randomIrwinHall:function(){return wX},randomLogNormal:function(){return Pve},randomNormal:function(){return CX},randomUniform:function(){return Ive},range:function(){return hc},rgb:function(){return pq},ribbon:function(){return Fpe},scaleBand:function(){return nj},scaleIdentity:function(){return LX},scaleImplicit:function(){return ej},scaleLinear:function(){return RX},scaleLog:function(){return UX},scaleOrdinal:function(){return tj},scalePoint:function(){return Zve},scalePow:function(){return sj},scaleQuantile:function(){return HX},scaleQuantize:function(){return jX},scaleSequential:function(){return b$},scaleSqrt:function(){return rye},scaleThreshold:function(){return GX},scaleTime:function(){return C0e},scaleUtc:function(){return M0e},scan:function(){return rce},schemeAccent:function(){return E0e},schemeBlues:function(){return j$},schemeBrBG:function(){return C$},schemeBuGn:function(){return A$},schemeBuPu:function(){return O$},schemeCategory10:function(){return S0e},schemeDark2:function(){return x0e},schemeGnBu:function(){return I$},schemeGreens:function(){return G$},schemeGreys:function(){return z$},schemeOrRd:function(){return P$},schemeOranges:function(){return Y$},schemePRGn:function(){return w$},schemePaired:function(){return D0e},schemePastel1:function(){return A0e},schemePastel2:function(){return O0e},schemePiYG:function(){return k$},schemePuBu:function(){return L$},schemePuBuGn:function(){return R$},schemePuOr:function(){return T$},schemePuRd:function(){return Z$},schemePurples:function(){return W$},schemeRdBu:function(){return M$},schemeRdGy:function(){return S$},schemeRdPu:function(){return N$},schemeRdYlBu:function(){return E$},schemeRdYlGn:function(){return x$},schemeReds:function(){return V$},schemeSet1:function(){return I0e},schemeSet2:function(){return P0e},schemeSet3:function(){return R0e},schemeSpectral:function(){return D$},schemeYlGn:function(){return F$},schemeYlGnBu:function(){return B$},schemeYlOrBr:function(){return U$},schemeYlOrRd:function(){return H$},select:function(){return pee},selectAll:function(){return GCe},selection:function(){return FCe},selector:function(){return wj},selectorAll:function(){return $$},set:function(){return Gpe},shuffle:function(){return ice},stack:function(){return X1e},stackOffsetDiverging:function(){return ewe},stackOffsetExpand:function(){return $1e},stackOffsetNone:function(){return Dw},stackOffsetSilhouette:function(){return twe},stackOffsetWiggle:function(){return nwe},stackOrderAscending:function(){return Wee},stackOrderDescending:function(){return rwe},stackOrderInsideOut:function(){return iwe},stackOrderNone:function(){return Aw},stackOrderReverse:function(){return owe},stratify:function(){return Lge},style:function(){return iee},sum:function(){return oce},symbol:function(){return P1e},symbolCircle:function(){return Rj},symbolCross:function(){return kee},symbolDiamond:function(){return Mee},symbolSquare:function(){return xee},symbolStar:function(){return Eee},symbolTriangle:function(){return Dee},symbolWye:function(){return Aee},symbols:function(){return I1e},thresholdFreedmanDiaconis:function(){return Xue},thresholdScott:function(){return $ue},thresholdSturges:function(){return N7},tickIncrement:function(){return XE},tickStep:function(){return Qy},ticks:function(){return Z7},timeDay:function(){return cwe},timeDays:function(){return dwe},timeFormat:function(){return Pte},timeFormatDefaultLocale:function(){return Lte},timeFormatLocale:function(){return wte},timeFriday:function(){return ste},timeFridays:function(){return _we},timeHour:function(){return lwe},timeHours:function(){return uwe},timeInterval:function(){return ws},timeMillisecond:function(){return Yee},timeMilliseconds:function(){return Kee},timeMinute:function(){return awe},timeMinutes:function(){return swe},timeMonday:function(){return rte},timeMondays:function(){return fwe},timeMonth:function(){return vwe},timeMonths:function(){return ywe},timeParse:function(){return Rte},timeSaturday:function(){return lte},timeSaturdays:function(){return gwe},timeSecond:function(){return Xee},timeSeconds:function(){return $ee},timeSunday:function(){return zj},timeSundays:function(){return ute},timeThursday:function(){return ate},timeThursdays:function(){return mwe},timeTuesday:function(){return ite},timeTuesdays:function(){return pwe},timeWednesday:function(){return ote},timeWednesdays:function(){return hwe},timeWeek:function(){return zj},timeWeeks:function(){return ute},timeYear:function(){return bwe},timeYears:function(){return Cwe},timeout:function(){return lx},timer:function(){return sx},timerFlush:function(){return NK},touch:function(){return zCe},touches:function(){return WCe},transition:function(){return Cne},transpose:function(){return $Y},tree:function(){return Hge},treemap:function(){return jge},treemapBinary:function(){return Gge},treemapDice:function(){return Ix},treemapResquarify:function(){return Wge},treemapSlice:function(){return YZ},treemapSliceDice:function(){return zge},treemapSquarify:function(){return PQ},tsvFormat:function(){return Dhe},tsvFormatRows:function(){return Ahe},tsvParse:function(){return Ehe},tsvParseRows:function(){return xhe},utcDay:function(){return Swe},utcDays:function(){return Ewe},utcFormat:function(){return Kj},utcFriday:function(){return vte},utcFridays:function(){return Iwe},utcHour:function(){return Twe},utcHours:function(){return Mwe},utcMillisecond:function(){return Yee},utcMilliseconds:function(){return Kee},utcMinute:function(){return wwe},utcMinutes:function(){return kwe},utcMonday:function(){return hte},utcMondays:function(){return xwe},utcMonth:function(){return Rwe},utcMonths:function(){return Lwe},utcParse:function(){return qj},utcSaturday:function(){return yte},utcSaturdays:function(){return Pwe},utcSecond:function(){return Xee},utcSeconds:function(){return $ee},utcSunday:function(){return Vj},utcSundays:function(){return bte},utcThursday:function(){return gte},utcThursdays:function(){return Owe},utcTuesday:function(){return mte},utcTuesdays:function(){return Dwe},utcWednesday:function(){return _te},utcWednesdays:function(){return Awe},utcWeek:function(){return Vj},utcWeeks:function(){return bte},utcYear:function(){return Zwe},utcYears:function(){return Nwe},values:function(){return Wpe},variance:function(){return KY},voronoi:function(){return WSe},window:function(){return kj},zip:function(){return sce},zoom:function(){return Lne},zoomIdentity:function(){return HN},zoomTransform:function(){return Pne}});var W={};m.r(W),m.d(W,{safe:function(){return soe},spec:function(){return LLe}});var A={};m.r(A),m.d(A,{angle:function(){return bZe},decibel:function(){return MZe},flex:function(){return TZe},frequency:function(){return wZe},length:function(){return yZe},resolution:function(){return kZe},semitones:function(){return SZe},time:function(){return CZe}});var U={};m.r(U),m.d(U,{getTrace:function(){return Voe},isKeyword:function(){return dNe},isProperty:function(){return cNe},isType:function(){return uNe}});var R={};m.r(R),m.d(R,{generate:function(){return kNe},name:function(){return CNe},parse:function(){return eae},structure:function(){return wNe}});var P={};m.r(P),m.d(P,{generate:function(){return xNe},name:function(){return MNe},parse:function(){return nae},structure:function(){return ENe},walkContext:function(){return SNe}});var E={};m.r(E),m.d(E,{generate:function(){return INe},name:function(){return DNe},parse:function(){return rae},structure:function(){return ONe},walkContext:function(){return ANe}});var D={};m.r(D),m.d(D,{generate:function(){return UNe},name:function(){return BNe},parse:function(){return oae},structure:function(){return FNe}});var j={};m.r(j),m.d(j,{generate:function(){return VNe},name:function(){return GNe},parse:function(){return uae},structure:function(){return WNe},walkContext:function(){return zNe}});var L={};m.r(L),m.d(L,{generate:function(){return qNe},name:function(){return YNe},parse:function(){return cae},structure:function(){return KNe}});var v={};m.r(v),m.d(v,{generate:function(){return XNe},name:function(){return JNe},parse:function(){return dae},structure:function(){return QNe}});var k={};m.r(k),m.d(k,{generate:function(){return tBe},name:function(){return $Ne},parse:function(){return fae},structure:function(){return eBe}});var b={};m.r(b),m.d(b,{generate:function(){return oBe},name:function(){return rBe},parse:function(){return pae},structure:function(){return iBe}});var O={};m.r(O),m.d(O,{generate:function(){return dBe},name:function(){return uBe},parse:function(){return mae},structure:function(){return cBe}});var S={};m.r(S),m.d(S,{generate:function(){return _Be},name:function(){return hBe},parse:function(){return _ae},structure:function(){return mBe}});var y={};m.r(y),m.d(y,{generate:function(){return xBe},name:function(){return MBe},parse:function(){return yae},structure:function(){return EBe},walkContext:function(){return SBe}});var T={};m.r(T),m.d(T,{generate:function(){return RBe},name:function(){return IBe},parse:function(){return bae},structure:function(){return PBe}});var M={};m.r(M),m.d(M,{generate:function(){return NBe},name:function(){return LBe},parse:function(){return Cae},structure:function(){return ZBe}});var x={};m.r(x),m.d(x,{generate:function(){return HBe},name:function(){return BBe},parse:function(){return wae},structure:function(){return UBe},walkContext:function(){return FBe}});var N={};m.r(N),m.d(N,{generate:function(){return WBe},name:function(){return GBe},parse:function(){return kae},structure:function(){return zBe},xxx:function(){return jBe}});var F={};m.r(F),m.d(F,{generate:function(){return KBe},name:function(){return VBe},parse:function(){return Tae},structure:function(){return YBe}});var X={};m.r(X),m.d(X,{generate:function(){return QBe},name:function(){return qBe},parse:function(){return Mae},structure:function(){return JBe}});var $={};m.r($),m.d($,{generate:function(){return eFe},name:function(){return XBe},parse:function(){return Sae},structure:function(){return $Be}});var Y={};m.r(Y),m.d(Y,{generate:function(){return rFe},name:function(){return tFe},parse:function(){return Eae},structure:function(){return nFe}});var Q={};m.r(Q),m.d(Q,{generate:function(){return aFe},name:function(){return iFe},parse:function(){return xae},structure:function(){return oFe}});var ne={};m.r(ne),m.d(ne,{generate:function(){return cFe},name:function(){return lFe},parse:function(){return Dae},structure:function(){return uFe}});var be={};m.r(be),m.d(be,{generate:function(){return pFe},name:function(){return dFe},parse:function(){return Aae},structure:function(){return fFe}});var pe={};m.r(pe),m.d(pe,{generate:function(){return _Fe},name:function(){return hFe},parse:function(){return Oae},structure:function(){return mFe}});var de={};m.r(de),m.d(de,{generate:function(){return yFe},name:function(){return gFe},parse:function(){return Iae},structure:function(){return vFe}});var le={};m.r(le),m.d(le,{generate:function(){return wFe},name:function(){return bFe},parse:function(){return Pae},structure:function(){return CFe}});var ce={};m.r(ce),m.d(ce,{generate:function(){return MFe},name:function(){return kFe},parse:function(){return Rae},structure:function(){return TFe}});var me={};m.r(me),m.d(me,{generate:function(){return DFe},name:function(){return SFe},parse:function(){return Lae},structure:function(){return xFe},walkContext:function(){return EFe}});var je={};m.r(je),m.d(je,{generate:function(){return PFe},name:function(){return AFe},parse:function(){return Zae},structure:function(){return IFe},walkContext:function(){return OFe}});var at={};m.r(at),m.d(at,{generate:function(){return BFe},name:function(){return ZFe},parse:function(){return Bae},structure:function(){return NFe}});var Mt={};m.r(Mt),m.d(Mt,{generate:function(){return jFe},name:function(){return UFe},parse:function(){return Fae},structure:function(){return HFe}});var Tt={};m.r(Tt),m.d(Tt,{generate:function(){return YFe},name:function(){return zFe},parse:function(){return Hae},structure:function(){return VFe},walkContext:function(){return WFe}});var xt={};m.r(xt),m.d(xt,{generate:function(){return JFe},name:function(){return KFe},parse:function(){return jae},structure:function(){return qFe}});var Lt={};m.r(Lt),m.d(Lt,{generate:function(){return e5e},name:function(){return QFe},parse:function(){return Gae},structure:function(){return $Fe},walkContext:function(){return XFe}});var Ze={};m.r(Ze),m.d(Ze,{generate:function(){return i5e},name:function(){return n5e},parse:function(){return Yae},structure:function(){return r5e}});var $t={};m.r($t),m.d($t,{generate:function(){return u5e},name:function(){return a5e},parse:function(){return qae},structure:function(){return l5e},walkContext:function(){return s5e}});var Ft={};m.r(Ft),m.d(Ft,{generate:function(){return p5e},name:function(){return d5e},parse:function(){return Qae},structure:function(){return f5e}});var fn={};m.r(fn),m.d(fn,{generate:function(){return v5e},name:function(){return _5e},parse:function(){return ese},structure:function(){return g5e}});var nt={};m.r(nt),m.d(nt,{generate:function(){return E5e},name:function(){return M5e},parse:function(){return nse},structure:function(){return S5e}});var Ot={};m.r(Ot),m.d(Ot,{generate:function(){return A5e},name:function(){return x5e},parse:function(){return rse},structure:function(){return D5e}});var _t={};m.r(_t),m.d(_t,{generate:function(){return R5e},name:function(){return I5e},parse:function(){return ise},structure:function(){return P5e}});var Ct={};m.r(Ct),m.d(Ct,{AnPlusB:function(){return R},Atrule:function(){return P},AtrulePrelude:function(){return E},AttributeSelector:function(){return D},Block:function(){return j},Brackets:function(){return L},CDC:function(){return v},CDO:function(){return k},ClassSelector:function(){return b},Combinator:function(){return O},Comment:function(){return S},Declaration:function(){return y},DeclarationList:function(){return T},Dimension:function(){return M},Function:function(){return x},Hash:function(){return N},IdSelector:function(){return X},Identifier:function(){return F},MediaFeature:function(){return $},MediaQuery:function(){return Y},MediaQueryList:function(){return Q},NestingSelector:function(){return ne},Nth:function(){return be},Number:function(){return pe},Operator:function(){return de},Parentheses:function(){return le},Percentage:function(){return ce},PseudoClassSelector:function(){return me},PseudoElementSelector:function(){return je},Ratio:function(){return at},Raw:function(){return Mt},Rule:function(){return Tt},Selector:function(){return xt},SelectorList:function(){return Lt},String:function(){return Ze},StyleSheet:function(){return $t},TypeSelector:function(){return Ft},UnicodeRange:function(){return fn},Url:function(){return nt},Value:function(){return Ot},WhiteSpace:function(){return _t}});var We={};m.r(We),m.d(We,{AtrulePrelude:function(){return H5e},Selector:function(){return X5e},Value:function(){return t4e}});var lt={};m.r(lt),m.d(lt,{AnPlusB:function(){return eae},Atrule:function(){return nae},AtrulePrelude:function(){return rae},AttributeSelector:function(){return oae},Block:function(){return uae},Brackets:function(){return cae},CDC:function(){return dae},CDO:function(){return fae},ClassSelector:function(){return pae},Combinator:function(){return mae},Comment:function(){return _ae},Declaration:function(){return yae},DeclarationList:function(){return bae},Dimension:function(){return Cae},Function:function(){return wae},Hash:function(){return kae},IdSelector:function(){return Mae},Identifier:function(){return Tae},MediaFeature:function(){return Sae},MediaQuery:function(){return Eae},MediaQueryList:function(){return xae},NestingSelector:function(){return Dae},Nth:function(){return Aae},Number:function(){return Oae},Operator:function(){return Iae},Parentheses:function(){return Pae},Percentage:function(){return Rae},PseudoClassSelector:function(){return Lae},PseudoElementSelector:function(){return Zae},Ratio:function(){return Bae},Raw:function(){return Fae},Rule:function(){return Hae},Selector:function(){return jae},SelectorList:function(){return Gae},String:function(){return Yae},StyleSheet:function(){return qae},TypeSelector:function(){return Qae},UnicodeRange:function(){return ese},Url:function(){return nse},Value:function(){return rse},WhiteSpace:function(){return ise}});var qt,dt=m(3237),Ut=m(1120),B=m(3144),H=m(5671),tt=m(136),Ye=m(9388),ge=m(9808),t=m(5e3),Dt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments)).supportsDOMEvents=!0,i}return(0,B.Z)(e)}(ge.w_),Zt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"onAndCancel",value:function(o,a,s){return o.addEventListener(a,s,!1),function(){o.removeEventListener(a,s,!1)}}},{key:"dispatchEvent",value:function(o,a){o.dispatchEvent(a)}},{key:"remove",value:function(o){o.parentNode&&o.parentNode.removeChild(o)}},{key:"createElement",value:function(o,a){return(a=a||this.getDefaultDocument()).createElement(o)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(o){return o.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(o){return o instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(o,a){return"window"===a?window:"document"===a?o:"body"===a?o.body:null}},{key:"getBaseHref",value:function(o){var a=function sn(){return(zt=zt||document.querySelector("base"))?zt.getAttribute("href"):null}();return null==a?null:function yn(n){(qt=qt||document.createElement("a")).setAttribute("href",n);var r=qt.pathname;return"/"===r.charAt(0)?r:"/".concat(r)}(a)}},{key:"resetBaseElement",value:function(){zt=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(o){return(0,ge.Mx)(document.cookie,o)}}],[{key:"makeCurrent",value:function(){(0,ge.HT)(new e)}}]),e}(Dt),zt=null;var Kt=new t.OlP("TRANSITION_ID");var Je=[{provide:t.ip1,useFactory:function Xt(n,r,e){return function(){e.get(t.CZH).donePromise.then(function(){for(var i=(0,ge.q)(),o=r.querySelectorAll('style[ng-transition="'.concat(n,'"]')),a=0;a<o.length;a++)i.remove(o[a])})}},deps:[Kt,ge.K0,t.zs3],multi:!0}],Be=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"addToWindow",value:function(e){t.dqk.getAngularTestability=function(o){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=e.findTestabilityInTree(o,a);if(null==s)throw new Error("Could not find testability for element.");return s},t.dqk.getAllAngularTestabilities=function(){return e.getAllTestabilities()},t.dqk.getAllAngularRootElements=function(){return e.getAllRootElements()};t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(function(a){var s=t.dqk.getAllAngularTestabilities(),l=s.length,u=!1,d=function(g){u=u||g,0==--l&&a(u)};s.forEach(function(h){h.whenStable(d)})})}},{key:"findTestabilityInTree",value:function(e,i,o){if(null==i)return null;var a=e.getTestability(i);return null!=a?a:o?(0,ge.q)().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null}}]),n}(),te=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"build",value:function(){return new XMLHttpRequest}}]),n}();te.\u0275fac=function(r){return new(r||te)},te.\u0275prov=t.Yz7({token:te,factory:te.\u0275fac});var ye=new t.OlP("EventManagerPlugins"),fe=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._zone=e,this._eventNameToPlugin=new Map,r.forEach(function(o){return o.manager=i}),this._plugins=r.slice().reverse()}return(0,B.Z)(n,[{key:"addEventListener",value:function(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}},{key:"addGlobalEventListener",value:function(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var i=this._eventNameToPlugin.get(e);if(i)return i;for(var o=this._plugins,a=0;a<o.length;a++){var s=o[a];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error("No event manager plugin found for event ".concat(e))}}]),n}();fe.\u0275fac=function(r){return new(r||fe)(t.LFG(ye),t.LFG(t.R0b))},fe.\u0275prov=t.Yz7({token:fe,factory:fe.\u0275fac});var Ne=function(){function n(r){(0,H.Z)(this,n),this._doc=r}return(0,B.Z)(n,[{key:"addGlobalEventListener",value:function(e,i,o){var a=(0,ge.q)().getGlobalEventTarget(this._doc,e);if(!a)throw new Error("Unsupported event target ".concat(a," for event ").concat(i));return this.addEventListener(a,i,o)}}]),n}(),st=function(){function n(){(0,H.Z)(this,n),this._stylesSet=new Set}return(0,B.Z)(n,[{key:"addStyles",value:function(e){var i=this,o=new Set;e.forEach(function(a){i._stylesSet.has(a)||(i._stylesSet.add(a),o.add(a))}),this.onStylesAdded(o)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),n}();st.\u0275fac=function(r){return new(r||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac});var ct=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._doc=i,o._hostNodes=new Map,o._hostNodes.set(i.head,[]),o}return(0,B.Z)(e,[{key:"_addStylesToHost",value:function(o,a,s){var l=this;o.forEach(function(u){var d=l._doc.createElement("style");d.textContent=u,s.push(a.appendChild(d))})}},{key:"addHost",value:function(o){var a=[];this._addStylesToHost(this._stylesSet,o,a),this._hostNodes.set(o,a)}},{key:"removeHost",value:function(o){var a=this._hostNodes.get(o);a&&a.forEach(Bt),this._hostNodes.delete(o)}},{key:"onStylesAdded",value:function(o){var a=this;this._hostNodes.forEach(function(s,l){a._addStylesToHost(o,l,s)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(o){return o.forEach(Bt)})}}]),e}(st);function Bt(n){(0,ge.q)().remove(n)}ct.\u0275fac=function(r){return new(r||ct)(t.LFG(ge.K0))},ct.\u0275prov=t.Yz7({token:ct,factory:ct.\u0275fac});var jt={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/"},on=/%COMP%/g,En="_nghost-".concat("%COMP%"),hn="_ngcontent-".concat("%COMP%");function Et(n,r,e){for(var i=0;i<r.length;i++){var o=r[i];Array.isArray(o)?Et(n,o,e):(o=o.replace(on,n),e.push(o))}return e}function et(n){return function(r){if("__ngUnwrap__"===r)return n;!1===n(r)&&(r.preventDefault(),r.returnValue=!1)}}var ze=function(){function n(r,e,i){(0,H.Z)(this,n),this.eventManager=r,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Ke(r)}return(0,B.Z)(n,[{key:"createRenderer",value:function(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case t.ifc.Emulated:var o=this.rendererByCompId.get(i.id);return o||(o=new dn(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o;case 1:case t.ifc.ShadowDom:return new Hn(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){var a=Et(i.id,i.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),n}();ze.\u0275fac=function(r){return new(r||ze)(t.LFG(fe),t.LFG(ct),t.LFG(t.AFp))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac});var Ke=function(){function n(r){(0,H.Z)(this,n),this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}return(0,B.Z)(n,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,i){return i?document.createElementNS(jt[i]||i,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,i){(vt(e)?e.content:e).appendChild(i)}},{key:"insertBefore",value:function(e,i,o){e&&(vt(e)?e.content:e).insertBefore(i,o)}},{key:"removeChild",value:function(e,i){e&&e.removeChild(i)}},{key:"selectRootElement",value:function(e,i){var o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error('The selector "'.concat(e,'" did not match any elements'));return i||(o.textContent=""),o}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,i,o,a){if(a){i=a+":"+i;var s=jt[a];s?e.setAttributeNS(s,i,o):e.setAttribute(i,o)}else e.setAttribute(i,o)}},{key:"removeAttribute",value:function(e,i,o){if(o){var a=jt[o];a?e.removeAttributeNS(a,i):e.removeAttribute("".concat(o,":").concat(i))}else e.removeAttribute(i)}},{key:"addClass",value:function(e,i){e.classList.add(i)}},{key:"removeClass",value:function(e,i){e.classList.remove(i)}},{key:"setStyle",value:function(e,i,o,a){a&(t.JOm.DashCase|t.JOm.Important)?e.style.setProperty(i,o,a&t.JOm.Important?"important":""):e.style[i]=o}},{key:"removeStyle",value:function(e,i,o){o&t.JOm.DashCase?e.style.removeProperty(i):e.style[i]=""}},{key:"setProperty",value:function(e,i,o){e[i]=o}},{key:"setValue",value:function(e,i){e.nodeValue=i}},{key:"listen",value:function(e,i,o){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,i,et(o)):this.eventManager.addEventListener(e,i,et(o))}}]),n}();"@".charCodeAt(0);function vt(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}var dn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,H.Z)(this,e),(l=r.call(this,i)).component=a;var u=Et(s+"-"+a.id,a.styles,[]);return o.addStyles(u),l.contentAttr=function mn(n){return hn.replace(on,n)}(s+"-"+a.id),l.hostAttr=function At(n){return En.replace(on,n)}(s+"-"+a.id),l}return(0,B.Z)(e,[{key:"applyToHost",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"setAttribute",this).call(this,o,this.hostAttr,"")}},{key:"createElement",value:function(o,a){var s=(0,dt.Z)((0,Ut.Z)(e.prototype),"createElement",this).call(this,o,a);return(0,dt.Z)((0,Ut.Z)(e.prototype),"setAttribute",this).call(this,s,this.contentAttr,""),s}}]),e}(Ke),Hn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,H.Z)(this,e),(l=r.call(this,i)).sharedStylesHost=o,l.hostEl=a,l.shadowRoot=a.attachShadow({mode:"open"}),l.sharedStylesHost.addHost(l.shadowRoot);for(var u=Et(s.id,s.styles,[]),d=0;d<u.length;d++){var h=document.createElement("style");h.textContent=u[d],l.shadowRoot.appendChild(h)}return l}return(0,B.Z)(e,[{key:"nodeOrShadowRoot",value:function(o){return o===this.hostEl?this.shadowRoot:o}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(o,a){return(0,dt.Z)((0,Ut.Z)(e.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"insertBefore",value:function(o,a,s){return(0,dt.Z)((0,Ut.Z)(e.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(o),a,s)}},{key:"removeChild",value:function(o,a){return(0,dt.Z)((0,Ut.Z)(e.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(o),a)}},{key:"parentNode",value:function(o){return this.nodeOrShadowRoot((0,dt.Z)((0,Ut.Z)(e.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(o)))}}]),e}(Ke),Yt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,H.Z)(this,e),r.call(this,i)}return(0,B.Z)(e,[{key:"supports",value:function(o){return!0}},{key:"addEventListener",value:function(o,a,s){var l=this;return o.addEventListener(a,s,!1),function(){return l.removeEventListener(o,a,s)}}},{key:"removeEventListener",value:function(o,a,s){return o.removeEventListener(a,s)}}]),e}(Ne);Yt.\u0275fac=function(r){return new(r||Yt)(t.LFG(ge.K0))},Yt.\u0275prov=t.Yz7({token:Yt,factory:Yt.\u0275fac});var kt=["alt","control","meta","shift"],$e={"\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"},gt={alt:function(r){return r.altKey},control:function(r){return r.ctrlKey},meta:function(r){return r.metaKey},shift:function(r){return r.shiftKey}},yt=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,H.Z)(this,e),r.call(this,i)}return(0,B.Z)(e,[{key:"supports",value:function(o){return null!=e.parseEventName(o)}},{key:"addEventListener",value:function(o,a,s){var l=e.parseEventName(a),u=e.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return(0,ge.q)().onAndCancel(o,l.domEventName,u)})}}],[{key:"parseEventName",value:function(o){var a=o.toLowerCase().split("."),s=a.shift();if(0===a.length||"keydown"!==s&&"keyup"!==s)return null;var l=e._normalizeKey(a.pop()),u="",d=a.indexOf("code");if(d>-1&&(a.splice(d,1),u="code."),kt.forEach(function(g){var C=a.indexOf(g);C>-1&&(a.splice(C,1),u+=g+".")}),u+=l,0!=a.length||0===l.length)return null;var h={};return h.domEventName=s,h.fullKey=u,h}},{key:"matchEventFullKeyCode",value:function(o,a){var s=$e[o.key]||o.key,l="";return a.indexOf("code.")>-1&&(s=o.code,l="code."),!(null==s||!s)&&(" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),kt.forEach(function(u){u!==s&&((0,gt[u])(o)&&(l+=u+"."))}),(l+=s)===a)}},{key:"eventCallback",value:function(o,a,s){return function(l){e.matchEventFullKeyCode(l,o)&&s.runGuarded(function(){return a(l)})}}},{key:"_normalizeKey",value:function(o){return"esc"===o?"escape":o}}]),e}(Ne);yt.\u0275fac=function(r){return new(r||yt)(t.LFG(ge.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac});var Pa=[{provide:t.Lbi,useValue:ge.bD},{provide:t.g9A,useValue:function Or(){Zt.makeCurrent()},multi:!0},{provide:ge.K0,useFactory:function Gi(){return(0,t.RDi)(document),document},deps:[]}],Ra=(0,t.eFA)(t._c5,"browser",Pa),ua=new t.OlP(""),ss=[{provide:t.rWj,useClass:Be,deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],ta=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function hi(){return new t.qLn},deps:[]},{provide:ye,useClass:Yt,multi:!0,deps:[ge.K0,t.R0b,t.Lbi]},{provide:ye,useClass:yt,multi:!0,deps:[ge.K0]},{provide:ze,useClass:ze,deps:[fe,ct,t.AFp]},{provide:t.FYo,useExisting:ze},{provide:st,useExisting:ct},{provide:ct,useClass:ct,deps:[ge.K0]},{provide:fe,useClass:fe,deps:[ye,t.R0b]},{provide:ge.JF,useClass:te,deps:[]},[]],ri=function(){function n(r){(0,H.Z)(this,n),false}return(0,B.Z)(n,null,[{key:"withServerTransition",value:function(e){return{ngModule:n,providers:[{provide:t.AFp,useValue:e.appId},{provide:Kt,useExisting:t.AFp},Je]}}}]),n}();ri.\u0275fac=function(r){return new(r||ri)(t.LFG(ua,12))},ri.\u0275mod=t.oAB({type:ri}),ri.\u0275inj=t.cJS({providers:[].concat(ta,ss),imports:[ge.ez,t.hGG]});var zi=function(){function n(r){(0,H.Z)(this,n),this._doc=r,this._dom=(0,ge.q)()}return(0,B.Z)(n,[{key:"addTag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?this._getOrCreateElement(e,i):null}},{key:"addTags",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?e.reduce(function(a,s){return s&&a.push(i._getOrCreateElement(s,o)),a},[]):[]}},{key:"getTag",value:function(e){return e&&this._doc.querySelector("meta[".concat(e,"]"))||null}},{key:"getTags",value:function(e){if(!e)return[];var i=this._doc.querySelectorAll("meta[".concat(e,"]"));return i?[].slice.call(i):[]}},{key:"updateTag",value:function(e,i){if(!e)return null;i=i||this._parseSelector(e);var o=this.getTag(i);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}},{key:"removeTag",value:function(e){this.removeTagElement(this.getTag(e))}},{key:"removeTagElement",value:function(e){e&&this._dom.remove(e)}},{key:"_getOrCreateElement",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!o){var a=this._parseSelector(e),s=this.getTags(a).filter(function(d){return i._containsAttributes(e,d)})[0];if(void 0!==s)return s}var l=this._dom.createElement("meta");this._setMetaElementAttributes(e,l);var u=this._doc.getElementsByTagName("head")[0];return u.appendChild(l),l}},{key:"_setMetaElementAttributes",value:function(e,i){var o=this;return Object.keys(e).forEach(function(a){return i.setAttribute(o._getMetaKeyMap(a),e[a])}),i}},{key:"_parseSelector",value:function(e){var i=e.name?"name":"property";return"".concat(i,'="').concat(e[i],'"')}},{key:"_containsAttributes",value:function(e,i){var o=this;return Object.keys(e).every(function(a){return i.getAttribute(o._getMetaKeyMap(a))===e[a]})}},{key:"_getMetaKeyMap",value:function(e){return Yn[e]||e}}]),n}();zi.\u0275fac=function(r){return new(r||zi)(t.LFG(ge.K0))},zi.\u0275prov=t.Yz7({token:zi,factory:function(r){return r?new r:function Vs(){return new zi((0,t.LFG)(ge.K0))}()},providedIn:"root"});var Yn={httpEquiv:"http-equiv"};var Hr=function(){function n(r){(0,H.Z)(this,n),this._doc=r}return(0,B.Z)(n,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),n}();Hr.\u0275fac=function(r){return new(r||Hr)(t.LFG(ge.K0))},Hr.\u0275prov=t.Yz7({token:Hr,factory:function(r){return r?new r:function yr(){return new Hr((0,t.LFG)(ge.K0))}()},providedIn:"root"});function qr(n,r){"undefined"!=typeof COMPILED&&COMPILED||((t.dqk.ng=t.dqk.ng||{})[n]=r)}var Bi="undefined"!=typeof window&&window||{},ba=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.msPerTick=r,this.numTicks=e}),Ar=function(){function n(r){(0,H.Z)(this,n),this.appRef=r.injector.get(t.z2F)}return(0,B.Z)(n,[{key:"timeChangeDetection",value:function(e){var i=e&&e.record,o="Change Detection",a=null!=Bi.console.profile;i&&a&&Bi.console.profile(o);for(var s=Fi(),l=0;l<5||Fi()-s<500;)this.appRef.tick(),l++;var u=Fi();i&&a&&Bi.console.profileEnd(o);var d=(u-s)/l;return Bi.console.log("ran ".concat(l," change detection cycles")),Bi.console.log("".concat(d.toFixed(2)," ms per check")),new ba(d,l)}}]),n}();function Fi(){return Bi.performance&&Bi.performance.now?Bi.performance.now():(new Date).getTime()}var Uo="profiler";var Ai=function(){function n(){(0,H.Z)(this,n),this.store={},this.onSerializeCallbacks={}}return(0,B.Z)(n,[{key:"get",value:function(e,i){return void 0!==this.store[e]?this.store[e]:i}},{key:"set",value:function(e,i){this.store[e]=i}},{key:"remove",value:function(e){delete this.store[e]}},{key:"hasKey",value:function(e){return this.store.hasOwnProperty(e)}},{key:"isEmpty",get:function(){return 0===Object.keys(this.store).length}},{key:"onSerialize",value:function(e,i){this.onSerializeCallbacks[e]=i}},{key:"toJson",value:function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}]),n}();Ai.\u0275fac=function(r){return new(r||Ai)},Ai.\u0275prov=t.Yz7({token:Ai,factory:function(){return r=(0,t.f3M)(ge.K0),e=(0,t.f3M)(t.AFp),(i=new Ai).store=function fo(n,r){var e=n.getElementById(r+"-state"),i={};if(e&&e.textContent)try{i=JSON.parse(function na(n){var r={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return n.replace(/&[^;]+;/g,function(e){return r[e]})}(e.textContent))}catch(o){console.warn("Exception while restoring TransferState for app "+r,o)}return i}(r,e),i;var r,e,i},providedIn:"root"});var La=(0,B.Z)(function n(){(0,H.Z)(this,n)});La.\u0275fac=function(r){return new(r||La)},La.\u0275mod=t.oAB({type:La}),La.\u0275inj=t.cJS({});var gu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Wi=new t.OlP("HammerGestureConfig"),Ui=new t.OlP("HammerLoader"),Ss=function(){function n(){(0,H.Z)(this,n),this.events=[],this.overrides={}}return(0,B.Z)(n,[{key:"buildHammer",value:function(e){var i=new Hammer(e,this.options);for(var o in i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0}),this.overrides)i.get(o).set(this.overrides[o]);return i}}]),n}();Ss.\u0275fac=function(r){return new(r||Ss)},Ss.\u0275prov=t.Yz7({token:Ss,factory:Ss.\u0275fac});var qi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i))._config=o,l.console=a,l.loader=s,l._loaderPromise=null,l}return(0,B.Z)(e,[{key:"supports",value:function(o){return!(!gu.hasOwnProperty(o.toLowerCase())&&!this.isCustomEvent(o)||!window.Hammer&&!this.loader)}},{key:"addEventListener",value:function(o,a,s){var l=this,u=this.manager.getZone();if(a=a.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||u.runOutsideAngular(function(){return l.loader()});var d=!1,h=function(){d=!0};return u.runOutsideAngular(function(){return l._loaderPromise.then(function(){window.Hammer?d||(h=l.addEventListener(o,a,s)):h=function(){}}).catch(function(){h=function(){}})}),function(){h()}}return u.runOutsideAngular(function(){var g=l._config.buildHammer(o),C=function(z){u.runGuarded(function(){s(z)})};return g.on(a,C),function(){g.off(a,C),"function"==typeof g.destroy&&g.destroy()}})}},{key:"isCustomEvent",value:function(o){return this._config.events.indexOf(o)>-1}}]),e}(Ne);qi.\u0275fac=function(r){return new(r||qi)(t.LFG(ge.K0),t.LFG(Wi),t.LFG(t.c2e),t.LFG(Ui,8))},qi.\u0275prov=t.Yz7({token:qi,factory:qi.\u0275fac});var tn=(0,B.Z)(function n(){(0,H.Z)(this,n)});tn.\u0275fac=function(r){return new(r||tn)},tn.\u0275mod=t.oAB({type:tn}),tn.\u0275inj=t.cJS({providers:[{provide:ye,useClass:qi,multi:!0,deps:[ge.K0,Wi,t.c2e,[new t.FiY,Ui]]},{provide:Wi,useClass:Ss,deps:[]}]});var Jt=(0,B.Z)(function n(){(0,H.Z)(this,n)});Jt.\u0275fac=function(r){return new(r||Jt)},Jt.\u0275prov=t.Yz7({token:Jt,factory:function(r){return r?new(r||Jt):t.LFG(Mi)},providedIn:"root"});var Mi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._doc=i,o}return(0,B.Z)(e,[{key:"sanitize",value:function(o,a){if(null==a)return null;switch(o){case t.q3G.NONE:return a;case t.q3G.HTML:return(0,t.qzn)(a,"HTML")?(0,t.z3N)(a):(0,t.EiD)(this._doc,String(a)).toString();case t.q3G.STYLE:return(0,t.qzn)(a,"Style")?(0,t.z3N)(a):a;case t.q3G.SCRIPT:if((0,t.qzn)(a,"Script"))return(0,t.z3N)(a);throw new Error("unsafe value used in a script context");case t.q3G.URL:return(0,t.qzn)(a,"URL")?(0,t.z3N)(a):(0,t.mCW)(String(a));case t.q3G.RESOURCE_URL:if((0,t.qzn)(a,"ResourceURL"))return(0,t.z3N)(a);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(o," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(o){return(0,t.JVY)(o)}},{key:"bypassSecurityTrustStyle",value:function(o){return(0,t.L6k)(o)}},{key:"bypassSecurityTrustScript",value:function(o){return(0,t.eBb)(o)}},{key:"bypassSecurityTrustUrl",value:function(o){return(0,t.LAX)(o)}},{key:"bypassSecurityTrustResourceUrl",value:function(o){return(0,t.pB0)(o)}}]),e}(Jt);Mi.\u0275fac=function(r){return new(r||Mi)(t.LFG(ge.K0))},Mi.\u0275prov=t.Yz7({token:Mi,factory:function(r){return r?new r:function Jr(n){return new Mi(n.get(ge.K0))}(t.LFG(t.zs3))},providedIn:"root"});new t.GfV("14.3.0");var Ho=m(2963),bi=m(1002);function Rn(){Rn=function(){return n};var n={},r=Object.prototype,e=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(bt,Xe,Pe){return Object.defineProperty(bt,Xe,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),bt[Xe]}try{l({},"")}catch(bt){l=function(Pe,ft,Nt){return Pe[ft]=Nt}}function u(bt,Xe,Pe,ft){var Tn,jn,zn,or,Nt=Xe&&Xe.prototype instanceof g?Xe:g,Gt=Object.create(Nt.prototype),It=new Ae(ft||[]);return Gt._invoke=(Tn=bt,jn=Pe,zn=It,or="suspendedStart",function(Mr,_r){if("executing"===or)throw new Error("Generator is already running");if("completed"===or){if("throw"===Mr)throw _r;return{value:void 0,done:!0}}for(zn.method=Mr,zn.arg=_r;;){var zr=zn.delegate;if(zr){var Ur=Ee(zr,zn);if(Ur){if(Ur===h)continue;return Ur}}if("next"===zn.method)zn.sent=zn._sent=zn.arg;else if("throw"===zn.method){if("suspendedStart"===or)throw or="completed",zn.arg;zn.dispatchException(zn.arg)}else"return"===zn.method&&zn.abrupt("return",zn.arg);or="executing";var Kr=d(Tn,jn,zn);if("normal"===Kr.type){if(or=zn.done?"completed":"suspendedYield",Kr.arg===h)continue;return{value:Kr.arg,done:zn.done}}"throw"===Kr.type&&(or="completed",zn.method="throw",zn.arg=Kr.arg)}}),Gt}function d(bt,Xe,Pe){try{return{type:"normal",arg:bt.call(Xe,Pe)}}catch(ft){return{type:"throw",arg:ft}}}n.wrap=u;var h={};function g(){}function C(){}function Z(){}var z={};l(z,o,function(){return this});var q=Object.getPrototypeOf,re=q&&q(q(ot([])));re&&re!==r&&e.call(re,o)&&(z=re);var ae=Z.prototype=g.prototype=Object.create(z);function Se(bt){["next","throw","return"].forEach(function(Xe){l(bt,Xe,function(Pe){return this._invoke(Xe,Pe)})})}function Ce(bt,Xe){function Pe(Nt,Gt,It,Tn){var jn=d(bt[Nt],bt,Gt);if("throw"!==jn.type){var zn=jn.arg,or=zn.value;return or&&"object"==(0,bi.Z)(or)&&e.call(or,"__await")?Xe.resolve(or.__await).then(function(Mr){Pe("next",Mr,It,Tn)},function(Mr){Pe("throw",Mr,It,Tn)}):Xe.resolve(or).then(function(Mr){zn.value=Mr,It(zn)},function(Mr){return Pe("throw",Mr,It,Tn)})}Tn(jn.arg)}var ft;this._invoke=function(Nt,Gt){function It(){return new Xe(function(Tn,jn){Pe(Nt,Gt,Tn,jn)})}return ft=ft?ft.then(It,It):It()}}function Ee(bt,Xe){var Pe=bt.iterator[Xe.method];if(void 0===Pe){if(Xe.delegate=null,"throw"===Xe.method){if(bt.iterator.return&&(Xe.method="return",Xe.arg=void 0,Ee(bt,Xe),"throw"===Xe.method))return h;Xe.method="throw",Xe.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var ft=d(Pe,bt.iterator,Xe.arg);if("throw"===ft.type)return Xe.method="throw",Xe.arg=ft.arg,Xe.delegate=null,h;var Nt=ft.arg;return Nt?Nt.done?(Xe[bt.resultName]=Nt.value,Xe.next=bt.nextLoc,"return"!==Xe.method&&(Xe.method="next",Xe.arg=void 0),Xe.delegate=null,h):Nt:(Xe.method="throw",Xe.arg=new TypeError("iterator result is not an object"),Xe.delegate=null,h)}function Ve(bt){var Xe={tryLoc:bt[0]};1 in bt&&(Xe.catchLoc=bt[1]),2 in bt&&(Xe.finallyLoc=bt[2],Xe.afterLoc=bt[3]),this.tryEntries.push(Xe)}function ut(bt){var Xe=bt.completion||{};Xe.type="normal",delete Xe.arg,bt.completion=Xe}function Ae(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(Ve,this),this.reset(!0)}function ot(bt){if(bt){var Xe=bt[o];if(Xe)return Xe.call(bt);if("function"==typeof bt.next)return bt;if(!isNaN(bt.length)){var Pe=-1,ft=function Nt(){for(;++Pe<bt.length;)if(e.call(bt,Pe))return Nt.value=bt[Pe],Nt.done=!1,Nt;return Nt.value=void 0,Nt.done=!0,Nt};return ft.next=ft}}return{next:ht}}function ht(){return{value:void 0,done:!0}}return C.prototype=Z,l(ae,"constructor",Z),l(Z,"constructor",C),C.displayName=l(Z,s,"GeneratorFunction"),n.isGeneratorFunction=function(bt){var Xe="function"==typeof bt&&bt.constructor;return!!Xe&&(Xe===C||"GeneratorFunction"===(Xe.displayName||Xe.name))},n.mark=function(bt){return Object.setPrototypeOf?Object.setPrototypeOf(bt,Z):(bt.__proto__=Z,l(bt,s,"GeneratorFunction")),bt.prototype=Object.create(ae),bt},n.awrap=function(bt){return{__await:bt}},Se(Ce.prototype),l(Ce.prototype,a,function(){return this}),n.AsyncIterator=Ce,n.async=function(bt,Xe,Pe,ft,Nt){void 0===Nt&&(Nt=Promise);var Gt=new Ce(u(bt,Xe,Pe,ft),Nt);return n.isGeneratorFunction(Xe)?Gt:Gt.next().then(function(It){return It.done?It.value:Gt.next()})},Se(ae),l(ae,s,"Generator"),l(ae,o,function(){return this}),l(ae,"toString",function(){return"[object Generator]"}),n.keys=function(bt){var Xe=[];for(var Pe in bt)Xe.push(Pe);return Xe.reverse(),function ft(){for(;Xe.length;){var Nt=Xe.pop();if(Nt in bt)return ft.value=Nt,ft.done=!1,ft}return ft.done=!0,ft}},n.values=ot,Ae.prototype={constructor:Ae,reset:function(Xe){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(ut),!Xe)for(var Pe in this)"t"===Pe.charAt(0)&&e.call(this,Pe)&&!isNaN(+Pe.slice(1))&&(this[Pe]=void 0)},stop:function(){this.done=!0;var Xe=this.tryEntries[0].completion;if("throw"===Xe.type)throw Xe.arg;return this.rval},dispatchException:function(Xe){if(this.done)throw Xe;var Pe=this;function ft(zn,or){return It.type="throw",It.arg=Xe,Pe.next=zn,or&&(Pe.method="next",Pe.arg=void 0),!!or}for(var Nt=this.tryEntries.length-1;Nt>=0;--Nt){var Gt=this.tryEntries[Nt],It=Gt.completion;if("root"===Gt.tryLoc)return ft("end");if(Gt.tryLoc<=this.prev){var Tn=e.call(Gt,"catchLoc"),jn=e.call(Gt,"finallyLoc");if(Tn&&jn){if(this.prev<Gt.catchLoc)return ft(Gt.catchLoc,!0);if(this.prev<Gt.finallyLoc)return ft(Gt.finallyLoc)}else if(Tn){if(this.prev<Gt.catchLoc)return ft(Gt.catchLoc,!0)}else{if(!jn)throw new Error("try statement without catch or finally");if(this.prev<Gt.finallyLoc)return ft(Gt.finallyLoc)}}}},abrupt:function(Xe,Pe){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var Nt=this.tryEntries[ft];if(Nt.tryLoc<=this.prev&&e.call(Nt,"finallyLoc")&&this.prev<Nt.finallyLoc){var Gt=Nt;break}}Gt&&("break"===Xe||"continue"===Xe)&&Gt.tryLoc<=Pe&&Pe<=Gt.finallyLoc&&(Gt=null);var It=Gt?Gt.completion:{};return It.type=Xe,It.arg=Pe,Gt?(this.method="next",this.next=Gt.finallyLoc,h):this.complete(It)},complete:function(Xe,Pe){if("throw"===Xe.type)throw Xe.arg;return"break"===Xe.type||"continue"===Xe.type?this.next=Xe.arg:"return"===Xe.type?(this.rval=this.arg=Xe.arg,this.method="return",this.next="end"):"normal"===Xe.type&&Pe&&(this.next=Pe),h},finish:function(Xe){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var ft=this.tryEntries[Pe];if(ft.finallyLoc===Xe)return this.complete(ft.completion,ft.afterLoc),ut(ft),h}},catch:function(Xe){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var ft=this.tryEntries[Pe];if(ft.tryLoc===Xe){var Nt=ft.completion;if("throw"===Nt.type){var Gt=Nt.arg;ut(ft)}return Gt}}throw new Error("illegal catch attempt")},delegateYield:function(Xe,Pe,ft){return this.delegate={iterator:ot(Xe),resultName:Pe,nextLoc:ft},"next"===this.method&&(this.arg=void 0),h}},n}var mi,n,go=m(4506),Bl=m(5647),Nn=m(7685),xn=m(7762),pn=m(4902);function Ji(n){if(":"!=n[0])return[null,n];var r=n.indexOf(":",1);if(-1===r)throw new Error('Unsupported format "'.concat(n,'" expecting ":namespace:name"'));return[n.slice(1,r),n.slice(r+1)]}function jo(n){return"ng-container"===Ji(n)[1]}function Qi(n){return"ng-content"===Ji(n)[1]}function ei(n){return null===n?null:Ji(n)[0]}function _i(n,r){return n?":".concat(n,":").concat(r):r}(n=mi||(mi={}))[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA";var Do,Xi,ir=function(){function n(){var r=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.closedByChildren,o=e.implicitNamespacePrefix,a=e.contentType,s=void 0===a?mi.PARSABLE_DATA:a,l=e.closedByParent,u=void 0!==l&&l,d=e.isVoid,h=void 0!==d&&d,g=e.ignoreFirstLf,C=void 0!==g&&g,Z=e.preventNamespaceInheritance,z=void 0!==Z&&Z;(0,H.Z)(this,n),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(q){return r.closedByChildren[q]=!0}),this.isVoid=h,this.closedByParent=u||h,this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=C,this.preventNamespaceInheritance=z}return(0,B.Z)(n,[{key:"isClosedByChild",value:function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}},{key:"getContentType",value:function(e){if("object"==typeof this.contentType){var i=void 0===e?void 0:this.contentType[e];return null!=i?i:this.contentType.default}return this.contentType}}]),n}();function wa(n){var r,e;return Xi||(Do=new ir,Xi={base:new ir({isVoid:!0}),meta:new ir({isVoid:!0}),area:new ir({isVoid:!0}),embed:new ir({isVoid:!0}),link:new ir({isVoid:!0}),img:new ir({isVoid:!0}),input:new ir({isVoid:!0}),param:new ir({isVoid:!0}),hr:new ir({isVoid:!0}),br:new ir({isVoid:!0}),source:new ir({isVoid:!0}),track:new ir({isVoid:!0}),wbr:new ir({isVoid:!0}),p:new ir({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ir({closedByChildren:["tbody","tfoot"]}),tbody:new ir({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ir({closedByChildren:["tbody"],closedByParent:!0}),tr:new ir({closedByChildren:["tr"],closedByParent:!0}),td:new ir({closedByChildren:["td","th"],closedByParent:!0}),th:new ir({closedByChildren:["td","th"],closedByParent:!0}),col:new ir({isVoid:!0}),svg:new ir({implicitNamespacePrefix:"svg"}),foreignObject:new ir({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ir({implicitNamespacePrefix:"math"}),li:new ir({closedByChildren:["li"],closedByParent:!0}),dt:new ir({closedByChildren:["dt","dd"]}),dd:new ir({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ir({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ir({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ir({closedByChildren:["optgroup"],closedByParent:!0}),option:new ir({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ir({ignoreFirstLf:!0}),listing:new ir({ignoreFirstLf:!0}),style:new ir({contentType:mi.RAW_TEXT}),script:new ir({contentType:mi.RAW_TEXT}),title:new ir({contentType:{default:mi.ESCAPABLE_RAW_TEXT,svg:mi.PARSABLE_DATA}}),textarea:new ir({contentType:mi.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(e=null!==(r=Xi[n])&&void 0!==r?r:Xi[n.toLowerCase()])&&void 0!==e?e:Do}var ao,qa,Za=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),oo=function(){function n(){(0,H.Z)(this,n),this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return(0,B.Z)(n,[{key:"unescapeAttribute",value:function(e){for(var i="",o=!1,a=0;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 wa(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(Z,z){z.notSelectors.length>0&&!z.element&&0==z.classNames.length&&0==z.attrs.length&&(z.element="*"),Z.push(z)},a=new n,l=a,u=!1;for(Za.lastIndex=0;s=Za.exec(e);){if(s[1]){if(u)throw new Error("Nesting :not in a selector is not allowed");u=!0,l=new n,a.notSelectors.push(l)}var d=s[2];if(d){var h=s[3];"#"===h?l.addAttribute("id",d.slice(1)):"."===h?l.addClassName(d.slice(1)):l.setElement(d)}var g=s[4];if(g&&l.addAttribute(l.unescapeAttribute(g),s[6]),s[7]&&(u=!1,l=a),s[8]){if(u)throw new Error("Multiple selectors in :not are not supported");o(i,a),a=l=new n}}return o(i,a),i}}]),n}();!function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(ao||(ao={})),function(n){n[n.OnPush=0]="OnPush",n[n.Default=1]="Default"}(qa||(qa={}));var Hi,Yi,ka={name:"custom-elements"},vu={name:"no-errors-schema"};function Tf(n){var r=function Ec(n){var r=n.classNames&&n.classNames.length?[8].concat((0,pn.Z)(n.classNames)):[];return[n.element&&"*"!==n.element?n.element:""].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r))}(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(function(i){return function fl(n){var r=n.classNames&&n.classNames.length?[8].concat((0,pn.Z)(n.classNames)):[];return n.element?[5,n.element].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r)):n.attrs.length?[3].concat((0,pn.Z)(n.attrs),(0,pn.Z)(r)):n.classNames&&n.classNames.length?[9].concat((0,pn.Z)(n.classNames)):[]}(i)}):[];return r.concat.apply(r,(0,pn.Z)(e))}function us(n){return n?oo.parse(n).map(Tf):[]}!function(n){n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL"}(Hi||(Hi={})),function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Ignore=2]="Ignore"}(Yi||(Yi={}));var so=/-+([a-z0-9])/g;function vo(n,r,e){var i=n.indexOf(r);return-1==i?e:[n.slice(0,i).trim(),n.slice(i+1).trim()]}function Ba(n){throw new Error("Internal Error: ".concat(n))}function po(n){for(var r=[],e=0;e<n.length;e++){var i=n.charCodeAt(e);if(i>=55296&&i<=56319&&n.length>e+1){var o=n.charCodeAt(e+1);o>=56320&&o<=57343&&(e++,i=(i-55296<<10)+o-56320+65536)}i<=127?r.push(i):i<=2047?r.push(i>>6&31|192,63&i|128):i<=65535?r.push(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&r.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128)}return r}function Sf(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Sf).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return"".concat(n.overriddenName);if(n.name)return"".concat(n.name);if(!n.toString)return"object";var r=n.toString();if(null==r)return""+r;var e=r.indexOf("\n");return-1===e?r:r.substring(0,e)}var Ys=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.full=r;var e=r.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}),Ku=function(){return"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var ds=function(){function n(r){(0,H.Z)(this,n),this.digits=r}return(0,B.Z)(n,[{key:"clone",value:function(){return new n(this.digits.slice())}},{key:"add",value:function(e){var i=this.clone();return i.addToSelf(e),i}},{key:"addToSelf",value:function(e){for(var i=Math.max(this.digits.length,e.digits.length),o=0,a=0;a<i;a++){var s=o;a<this.digits.length&&(s+=this.digits[a]),a<e.digits.length&&(s+=e.digits[a]),s>=10?(this.digits[a]=s-10,o=1):(this.digits[a]=s,o=0)}o>0&&(this.digits[i]=1)}},{key:"toString",value:function(){for(var e="",i=this.digits.length-1;i>=0;i--)e+=this.digits[i];return e}}],[{key:"zero",value:function(){return new n([0])}},{key:"one",value:function(){return new n([1])}}]),n}(),Tr=function(){function n(r){(0,H.Z)(this,n),this.powerOfTwos=[r]}return(0,B.Z)(n,[{key:"getValue",value:function(){return this.powerOfTwos[0]}},{key:"multiplyBy",value:function(e){var i=ds.zero();return this.multiplyByAndAddTo(e,i),i}},{key:"multiplyByAndAddTo",value:function(e,i){for(var o=0;0!==e;e>>>=1,o++)if(1&e){var a=this.getMultipliedByPowerOfTwo(o);i.addToSelf(a)}}},{key:"getMultipliedByPowerOfTwo",value:function(e){for(var i=this.powerOfTwos.length;i<=e;i++){var o=this.powerOfTwos[i-1];this.powerOfTwos[i]=o.add(o)}return this.powerOfTwos[e]}}]),n}(),xs=function(){function n(r){(0,H.Z)(this,n),this.base=r,this.exponents=[new Tr(ds.one())]}return(0,B.Z)(n,[{key:"toThePowerOf",value:function(e){for(var i=this.exponents.length;i<=e;i++){var o=this.exponents[i-1].multiplyBy(this.base);this.exponents[i]=new Tr(o)}return this.exponents[e]}}]),n}();function rh(n){return function we(n){var r=po(n),e=function Xo(n,r){for(var e=n.length+3>>>2,i=[],o=0;o<e;o++)i[o]=Ks(n,4*o,r);return i}(r,Ht.Big),i=8*r.length,o=function Ul(n,r){for(var e=[],i=0;i<n;i++)e.push(r);return e}(80),a=1732584193,s=4023233417,l=2562383102,u=271733878,d=3285377520;e[i>>5]|=128<<24-i%32,e[15+(i+64>>9<<4)]=i;for(var h=0;h<e.length;h+=16){for(var g=a,C=s,Z=l,z=u,q=d,re=0;re<80;re++){o[re]=re<16?e[h+re]:yd(o[re-3]^o[re-8]^o[re-14]^o[re-16],1);var ae=Te(re,s,l,u),Se=ae[0],Ce=ae[1],Ee=[yd(a,5),Se,d,Ce,o[re]].reduce(On);d=u,u=l,l=yd(s,30),s=a,a=Ee}a=On(a,g),s=On(s,C),l=On(l,Z),u=On(u,z),d=On(d,q)}return function Xm(n){for(var r="",e=0;e<n.length;e++){var i=Ta(n,e);r+=(i>>>4).toString(16)+(15&i).toString(16)}return r.toLowerCase()}(function hl(n){return n.reduce(function(r,e){return r.concat(function fs(n){for(var r=[],e=0;e<4;e++)r.push(n>>>8*(3-e)&255);return r}(e))},[])}([a,s,l,u,d]))}(function Hl(n){return n.map(function(r){return r.visit(qu,null)})}(n.nodes).join("")+"[".concat(n.meaning,"]"))}function ih(n){return n.id||Ef(n)}function Ef(n){var r=new An;return Me(n.nodes.map(function(i){return i.visit(r,null)}).join(""),n.meaning)}var Ds=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e,i){return e.value}},{key:"visitContainer",value:function(e,i){var o=this;return"[".concat(e.children.map(function(a){return a.visit(o)}).join(", "),"]")}},{key:"visitIcu",value:function(e,i){var o=this,a=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(o),"}")});return"{".concat(e.expression,", ").concat(e.type,", ").concat(a.join(", "),"}")}},{key:"visitTagPlaceholder",value:function(e,i){var o=this;return e.isVoid?'<ph tag name="'.concat(e.startName,'"/>'):'<ph tag name="'.concat(e.startName,'">').concat(e.children.map(function(a){return a.visit(o)}).join(", "),'</ph name="').concat(e.closeName,'">')}},{key:"visitPlaceholder",value:function(e,i){return e.value?'<ph name="'.concat(e.name,'">').concat(e.value,"</ph>"):'<ph name="'.concat(e.name,'"/>')}},{key:"visitIcuPlaceholder",value:function(e,i){return'<ph icu name="'.concat(e.name,'">').concat(e.value.visit(this),"</ph>")}}]),n}(),qu=new Ds;var Ht,An=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visitIcu",value:function(o,a){var s=this,l=Object.keys(o.cases).map(function(u){return"".concat(u," {").concat(o.cases[u].visit(s),"}")});return"{".concat(o.type,", ").concat(l.join(", "),"}")}}]),e}(Ds);function Te(n,r,e,i){return n<20?[r&e|~r&i,1518500249]:n<40?[r^e^i,1859775393]:n<60?[r&e|r&i|e&i,2400959708]:[r^e^i,3395469782]}function se(n){var r=po(n),e=Oe(r,0),i=Oe(r,102072);return 0==e&&(0==i||1==i)&&(e^=319790063,i^=-1801410264),[e,i]}function Me(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=se(n);if(r){var i=se(r);e=pl(jl(e,1),i)}var o=e[0],a=e[1];return $m(2147483647&o,a)}function Oe(n,r){var o,e=2654435769,i=2654435769,a=n.length;for(o=0;o+12<=a;o+=12){var s=mt(e=On(e,Ks(n,o,Ht.Little)),i=On(i,Ks(n,o+4,Ht.Little)),r=On(r,Ks(n,o+8,Ht.Little)));e=s[0],i=s[1],r=s[2]}return e=On(e,Ks(n,o,Ht.Little)),i=On(i,Ks(n,o+4,Ht.Little)),r=On(r,a),mt(e,i,r=On(r,Ks(n,o+8,Ht.Little)<<8))[2]}function mt(n,r,e){return n=lo(n,r),n=lo(n,e),n^=e>>>13,r=lo(r,e),r=lo(r,n),r^=n<<8,e=lo(e,n),e=lo(e,r),e^=r>>>13,n=lo(n,r),n=lo(n,e),n^=e>>>12,r=lo(r,e),r=lo(r,n),r^=n<<16,e=lo(e,n),e=lo(e,r),e^=r>>>5,n=lo(n,r),n=lo(n,e),n^=e>>>3,r=lo(r,e),r=lo(r,n),r^=n<<10,e=lo(e,n),e=lo(e,r),[n,r,e^=r>>>15]}function On(n,r){return sr(n,r)[1]}function sr(n,r){var e=(65535&n)+(65535&r),i=(n>>>16)+(r>>>16)+(e>>>16);return[i>>>16,i<<16|65535&e]}function pl(n,r){var e=n[0],i=n[1],o=r[0],s=sr(i,r[1]),l=s[0],u=s[1];return[On(On(e,o),l),u]}function lo(n,r){var e=(65535&n)-(65535&r);return(n>>16)-(r>>16)+(e>>16)<<16|65535&e}function yd(n,r){return n<<r|n>>>32-r}function jl(n,r){var e=n[0],i=n[1];return[e<<r|i>>>32-r,i<<r|e>>>32-r]}function Ta(n,r){return r>=n.length?0:n[r]}function Ks(n,r,e){var i=0;if(e===Ht.Big)for(var o=0;o<4;o++)i+=Ta(n,r+o)<<24-8*o;else for(var a=0;a<4;a++)i+=Ta(n,r+a)<<8*a;return i}!function(n){n[n.Little=0]="Little",n[n.Big=1]="Big"}(Ht||(Ht={}));var bd,oh=new xs(256);function $m(n,r){var e=oh.toThePowerOf(0).multiplyBy(r);return oh.toThePowerOf(4).multiplyByAndAddTo(n,e),e.toString()}!function(n){n[n.None=0]="None",n[n.Const=1]="Const"}(bd||(bd={}));var ps,Ju=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bd.None;(0,H.Z)(this,n),this.modifiers=r}return(0,B.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}}]),n}();!function(n){n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None"}(ps||(ps={}));var Ge,it,ml=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,o)).name=i,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitBuiltinType(this,a)}}]),e}(Ju),hs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,H.Z)(this,e),(a=r.call(this,o)).value=i,a.typeParams=s,a}return(0,B.Z)(e,[{key:"visitType",value:function(o,a){return o.visitExpressionType(this,a)}}]),e}(Ju),qs=new ml(ps.Dynamic),ia=new ml(ps.Inferred),ah=new ml(ps.Bool),Ue=(new ml(ps.Int),new ml(ps.Number)),_e=new ml(ps.String),ke=(new ml(ps.Function),new ml(ps.None));function Wt(n,r){return null==n||null==r?n==r:n.isEquivalent(r)}function Cn(n,r,e){var i=n.length;if(i!==r.length)return!1;for(var o=0;o<i;o++)if(!e(n[o],r[o]))return!1;return!0}function gr(n,r){return Cn(n,r,function(e,i){return e.isEquivalent(i)})}!function(n){n[n.Minus=0]="Minus",n[n.Plus=1]="Plus"}(Ge||(Ge={})),function(n){n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseAnd=11]="BitwiseAnd",n[n.Lower=12]="Lower",n[n.LowerEquals=13]="LowerEquals",n[n.Bigger=14]="Bigger",n[n.BiggerEquals=15]="BiggerEquals",n[n.NullishCoalesce=16]="NullishCoalesce"}(it||(it={}));var Pr=function(){function n(r,e){(0,H.Z)(this,n),this.type=r||null,this.sourceSpan=e||null}return(0,B.Z)(n,[{key:"prop",value:function(e,i){return new uC(this,e,null,i)}},{key:"key",value:function(e,i,o){return new rM(this,e,i,o)}},{key:"callFn",value:function(e,i,o){return new Df(this,e,null,i,o)}},{key:"instantiate",value:function(e,i,o){return new ie(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 Si(this,e,i,null,o)}},{key:"equals",value:function(e,i){return new yo(it.Equals,this,e,null,i)}},{key:"notEquals",value:function(e,i){return new yo(it.NotEquals,this,e,null,i)}},{key:"identical",value:function(e,i){return new yo(it.Identical,this,e,null,i)}},{key:"notIdentical",value:function(e,i){return new yo(it.NotIdentical,this,e,null,i)}},{key:"minus",value:function(e,i){return new yo(it.Minus,this,e,null,i)}},{key:"plus",value:function(e,i){return new yo(it.Plus,this,e,null,i)}},{key:"divide",value:function(e,i){return new yo(it.Divide,this,e,null,i)}},{key:"multiply",value:function(e,i){return new yo(it.Multiply,this,e,null,i)}},{key:"modulo",value:function(e,i){return new yo(it.Modulo,this,e,null,i)}},{key:"and",value:function(e,i){return new yo(it.And,this,e,null,i)}},{key:"bitwiseAnd",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new yo(it.BitwiseAnd,this,e,null,i,o)}},{key:"or",value:function(e,i){return new yo(it.Or,this,e,null,i)}},{key:"lower",value:function(e,i){return new yo(it.Lower,this,e,null,i)}},{key:"lowerEquals",value:function(e,i){return new yo(it.LowerEquals,this,e,null,i)}},{key:"bigger",value:function(e,i){return new yo(it.Bigger,this,e,null,i)}},{key:"biggerEquals",value:function(e,i){return new yo(it.BiggerEquals,this,e,null,i)}},{key:"isBlank",value:function(e){return this.equals(sh,e)}},{key:"nullishCoalesce",value:function(e,i){return new yo(it.NullishCoalesce,this,e,null,i)}},{key:"toStmt",value:function(){return new Of(this,null)}}]),n}(),ms=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).name=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadVarExpr(this,a)}},{key:"set",value:function(o){return new Ac(this.name,o,null,this.sourceSpan)}}]),e}(Pr),_l=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).expr=i,s}return(0,B.Z)(e,[{key:"visitExpression",value:function(o,a){return o.visitTypeofExpr(this,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&o.expr.isEquivalent(this.expr)}},{key:"isConstant",value:function(){return this.expr.isConstant()}}]),e}(Pr),Ir=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).node=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.node===o.node}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWrappedNodeExpr(this,a)}}]),e}(Pr),Ac=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a||o.type,s)).name=i,l.value=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteVarExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new Af(this.name,this.value,o,a,this.sourceSpan)}},{key:"toConstDecl",value:function(){return this.toDeclStmt(ia,Os.Final)}}]),e}(Pr),xf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.index=o,u.value=a,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWriteKeyExpr(this,a)}}]),e}(Pr),e_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,s||a.type,l)).receiver=i,u.name=o,u.value=a,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name&&this.value.isEquivalent(o.value)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitWritePropExpr(this,a)}}]),e}(Pr),Df=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,H.Z)(this,e),(l=r.call(this,a,s)).fn=i,l.args=o,l.pure=u,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.fn.isEquivalent(o.fn)&&gr(this.args,o.args)&&this.pure===o.pure}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInvokeFunctionExpr(this,a)}}]),e}(Pr),lC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).tag=i,l.template=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.tag.isEquivalent(o.tag)&&Cn(this.template.elements,o.template.elements,function(a,s){return a.text===s.text})&&gr(this.template.expressions,o.template.expressions)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitTaggedTemplateExpr(this,a)}}]),e}(Pr),ie=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).classExpr=i,l.args=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.classExpr.isEquivalent(o.classExpr)&&gr(this.args,o.args)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitInstantiateExpr(this,a)}}]),e}(Pr),ue=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).value=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value===o.value}},{key:"isConstant",value:function(){return!0}},{key:"visitExpression",value:function(o,a){return o.visitLiteralExpr(this,a)}}]),e}(Pr),he=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.elements=r,this.expressions=e}),Fe=(0,B.Z)(function n(r,e,i){var o;(0,H.Z)(this,n),this.text=r,this.sourceSpan=e,this.rawText=null!==(o=null!=i?i:null==e?void 0:e.toString())&&void 0!==o?o:da(Qr(r))}),Qe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.text=r,this.sourceSpan=e}),Pt=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.text=r,this.sourceSpan=e,this.associatedMessage=i}),kr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,_e,l)).metaBlock=i,u.messageParts=o,u.placeHolderNames=a,u.expressions=s,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return!1}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitLocalizedString(this,a)}},{key:"serializeI18nHead",value:function(){var o=this.metaBlock.description||"";return this.metaBlock.meaning&&(o="".concat(this.metaBlock.meaning).concat("|").concat(o)),this.metaBlock.customId&&(o="".concat(o).concat("@@").concat(this.metaBlock.customId)),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(function(a){o="".concat(o).concat("\u241f").concat(a)}),As(o,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}},{key:"getMessagePartSourceSpan",value:function(o){var a,s;return null!==(s=null===(a=this.messageParts[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:this.sourceSpan}},{key:"getPlaceholderSourceSpan",value:function(o){var a,s,l,u;return null!==(u=null!==(s=null===(a=this.placeHolderNames[o])||void 0===a?void 0:a.sourceSpan)&&void 0!==s?s:null===(l=this.expressions[o])||void 0===l?void 0:l.sourceSpan)&&void 0!==u?u:this.sourceSpan}},{key:"serializeI18nTemplatePart",value:function(o){var a,s=this.placeHolderNames[o-1],l=this.messageParts[o],u=s.text;return 0===(null===(a=s.associatedMessage)||void 0===a?void 0:a.legacyIds.length)&&(u+="".concat("@@").concat(Me(s.associatedMessage.messageString,s.associatedMessage.meaning))),As(u,l.text,this.getMessagePartSourceSpan(o))}}]),e}(Pr),Qr=function(r){return r.replace(/\\/g,"\\\\")},si=function(r){return r.replace(/^:/,"\\:")},Ao=function(r){return r.replace(/:/g,"\\:")},da=function(r){return r.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function As(n,r,e){return""===n?{cooked:r,raw:da(si(Qr(r))),range:e}:{cooked:":".concat(n,":").concat(r),raw:da(":".concat(Ao(Qr(n)),":").concat(Qr(r))),range:e}}var Os,oa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0;return(0,H.Z)(this,e),(a=r.call(this,o,l)).value=i,a.typeParams=s,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.name===o.value.name&&this.value.moduleName===o.value.moduleName&&this.value.runtime===o.value.runtime}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitExternalExpr(this,a)}}]),e}(Pr),Si=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,H.Z)(this,e),(a=r.call(this,l||o.type,u)).condition=i,a.falseCase=s,a.trueCase=o,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&Wt(this.falseCase,o.falseCase)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitConditionalExpr(this,a)}}]),e}(Pr),Qu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,ah,o)).condition=i,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitNotExpr(this,a)}}]),e}(Pr),Go=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,H.Z)(this,n),this.name=r,this.type=e}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.name===e.name}}]),n}(),Xu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,a,s)).params=i,u.statements=o,u.name=l,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(this.statements,o.statements)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitFunctionExpr(this,a)}},{key:"toDeclStmt",value:function(o,a){return new aM(o,this.params,this.statements,this.type,a,this.sourceSpan)}}]),e}(Pr),$u=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l,u=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return(0,H.Z)(this,e),(l=r.call(this,a||Ue,s)).operator=i,l.expr=o,l.parens=u,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.expr.isEquivalent(o.expr)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitUnaryOperatorExpr(this,a)}}]),e}(Pr),yo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return(0,H.Z)(this,e),(u=r.call(this,s||o.type,l)).operator=i,u.rhs=a,u.parens=d,u.lhs=o,u}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.operator===o.operator&&this.lhs.isEquivalent(o.lhs)&&this.rhs.isEquivalent(o.rhs)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitBinaryOperatorExpr(this,a)}}]),e}(Pr),uC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.name=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadPropExpr(this,a)}},{key:"set",value:function(o){return new e_(this.receiver,this.name,o,null,this.sourceSpan)}}]),e}(Pr),rM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a,s)).receiver=i,l.index=o,l}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)}},{key:"isConstant",value:function(){return!1}},{key:"visitExpression",value:function(o,a){return o.visitReadKeyExpr(this,a)}},{key:"set",value:function(o){return new xf(this.receiver,this.index,o,null,this.sourceSpan)}}]),e}(Pr),cC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).entries=i,s}return(0,B.Z)(e,[{key:"isConstant",value:function(){return this.entries.every(function(o){return o.isConstant()})}},{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.entries,o.entries)}},{key:"visitExpression",value:function(o,a){return o.visitLiteralArrayExpr(this,a)}}]),e}(Pr),yu=function(){function n(r,e,i){(0,H.Z)(this,n),this.key=r,this.value=e,this.quoted=i}return(0,B.Z)(n,[{key:"isEquivalent",value:function(e){return this.key===e.key&&this.value.isEquivalent(e.value)}}]),n}(),iM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).entries=i,s.valueType=null,o&&(s.valueType=o.valueType),s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.entries,o.entries)}},{key:"isConstant",value:function(){return this.entries.every(function(o){return o.value.isConstant()})}},{key:"visitExpression",value:function(o,a){return o.visitLiteralMapExpr(this,a)}}]),e}(Pr),t_=new ue(null,null,null),sh=new ue(null,ia,null);!function(n){n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static"}(Os||(Os={}));var n_=function(){function n(r,e,i){(0,H.Z)(this,n),this.text=r,this.multiline=e,this.trailingNewline=i}return(0,B.Z)(n,[{key:"toString",value:function(){return this.multiline?" ".concat(this.text," "):this.text}}]),n}(),oM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,"",!0,!0)).tags=i,o}return(0,B.Z)(e,[{key:"toString",value:function(){return function ho(n){if(0===n.length)return"";if(1===n.length&&n[0].tagName&&!n[0].text)return"*".concat(uM(n[0])," ");var i,r="*\n",e=(0,xn.Z)(n);try{for(e.s();!(i=e.n()).done;){var o=i.value;r+=" *",r+=uM(o).replace(/\n/g,"\n * "),r+="\n"}}catch(a){e.e(a)}finally{e.f()}return r+" "}(this.tags)}}]),e}(n_),lh=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Os.None,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;(0,H.Z)(this,n),this.modifiers=r,this.sourceSpan=e,this.leadingComments=i}return(0,B.Z)(n,[{key:"hasModifier",value:function(e){return 0!=(this.modifiers&e)}},{key:"addLeadingComment",value:function(e){var i;this.leadingComments=null!==(i=this.leadingComments)&&void 0!==i?i:[],this.leadingComments.push(e)}}]),n}(),Af=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,s,l,u)).name=i,d.value=o,d.type=a||o&&o.type||null,d}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.name===o.name&&(this.value?!!o.value&&this.value.isEquivalent(o.value):!o.value)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareVarStmt(this,a)}}]),e}(lh),aM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,l,u,d)).name=i,h.params=o,h.statements=a,h.type=s||null,h}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&gr(this.params,o.params)&&gr(this.statements,o.statements)}},{key:"visitStatement",value:function(o,a){return o.visitDeclareFunctionStmt(this,a)}}]),e}(lh),Of=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,Os.None,o,a)).expr=i,s}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.expr.isEquivalent(o.expr)}},{key:"visitStatement",value:function(o,a){return o.visitExpressionStmt(this,a)}}]),e}(lh),_s=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2?arguments[2]:void 0;return(0,H.Z)(this,e),(o=r.call(this,Os.None,a,s)).value=i,o}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.value.isEquivalent(o.value)}},{key:"visitStatement",value:function(o,a){return o.visitReturnStmt(this,a)}}]),e}(lh),Dv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return(0,H.Z)(this,e),(a=r.call(this,Os.None,l,u)).condition=i,a.trueCase=o,a.falseCase=s,a}return(0,B.Z)(e,[{key:"isEquivalent",value:function(o){return o instanceof e&&this.condition.isEquivalent(o.condition)&&gr(this.trueCase,o.trueCase)&&gr(this.falseCase,o.falseCase)}},{key:"visitStatement",value:function(o,a){return o.visitIfStmt(this,a)}}]),e}(lh);function sM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new oM(n)}function ii(n,r,e){return new ms(n,r,e)}function Jn(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2?arguments[2]:void 0;return new oa(n,null,r,e)}function Is(n,r,e){return new hs(n,r,e)}function r_(n){return new _l(n)}function di(n,r,e){return new cC(n,r,e)}function Qs(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new iM(n.map(function(e){return new yu(e.key,e.value,e.quoted)}),r,null)}function uh(n,r){return new Qu(n,r)}function aa(n,r,e,i,o){return new Xu(n,r,e,i,o)}function wd(n,r,e,i,o){return new Dv(n,r,e,i,o)}function ch(n,r,e,i){return new lC(n,r,e,i)}function rn(n,r,e){return new ue(n,r,e)}function dh(n,r,e,i,o){return new kr(n,r,e,i,o)}function Oc(n){return n instanceof ue&&null===n.value}function uM(n){var r="";if(n.tagName&&(r+=" @".concat(n.tagName)),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');r+=" "+n.text.replace(/@/g,"\\@")}return r}var Ov=ii("<unknown>"),PP={},RP=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,i.type)).resolved=i,o.original=i,o}return(0,B.Z)(e,[{key:"visitExpression",value:function(o,a){return a===PP?this.original.visitExpression(o,a):this.resolved.visitExpression(o,a)}},{key:"isEquivalent",value:function(o){return o instanceof e&&this.resolved.isEquivalent(o.resolved)}},{key:"isConstant",value:function(){return!0}},{key:"fixup",value:function(o){this.resolved=o,this.shared=!0}}]),e}(Pr),LP=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,H.Z)(this,n),this.isClosureCompilerEnabled=r,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.nextNameIndex=0}return(0,B.Z)(n,[{key:"getConstLiteral",value:function(e,i){if(e instanceof ue&&!Ma(e)||e instanceof RP)return e;var o=this.keyOf(e),a=this.literals.get(o),s=!1;if(a||(a=new RP(e),this.literals.set(o,a),s=!0),!s&&!a.shared||s&&i){var u,d,l=this.freshName();this.isClosureCompilerEnabled&&Ma(e)?(u=ii(l).set(new Xu([],[new _s(e)])),d=ii(l).callFn([])):(u=ii(l).set(e),d=ii(l)),this.statements.push(u.toDeclStmt(ia,Os.Final)),a.fixup(d)}return a}},{key:"getLiteralFactory",value:function(e){if(e instanceof cC){var i=e.entries.map(function(l){return l.isConstant()?l:Ov}),o=this.keyOf(di(i));return this._getLiteralFactory(o,e.entries,function(l){return di(l)})}var a=Qs(e.entries.map(function(l){return{key:l.key,value:l.value.isConstant()?l.value:Ov,quoted:l.quoted}})),s=this.keyOf(a);return this._getLiteralFactory(s,e.entries.map(function(l){return l.value}),function(l){return Qs(l.map(function(u,d){return{key:e.entries[d].key,value:u,quoted:e.entries[d].quoted}}))})}},{key:"_getLiteralFactory",value:function(e,i,o){var a=this,s=this.literalFactories.get(e),l=i.filter(function(C){return!C.isConstant()});if(!s){var u=i.map(function(C,Z){return C.isConstant()?a.getConstLiteral(C,!0):ii("a".concat(Z))}),h=aa(u.filter(ZP).map(function(C){return new Go(C.name,qs)}),[new _s(o(u))],ia),g=this.freshName();this.statements.push(ii(g).set(h).toDeclStmt(ia,Os.Final)),s=ii(g),this.literalFactories.set(e,s)}return{literalFactory:s,literalFactoryArguments:l}}},{key:"uniqueName",value:function(e){return"".concat(e).concat(this.nextNameIndex++)}},{key:"freshName",value:function(){return this.uniqueName("_c")}},{key:"keyOf",value:function(e){return e.visitExpression(new fh,PP)}}]),n}(),fh=function(){function n(){(0,H.Z)(this,n),this.visitWrappedNodeExpr=Fa,this.visitWriteVarExpr=Fa,this.visitWriteKeyExpr=Fa,this.visitWritePropExpr=Fa,this.visitInvokeFunctionExpr=Fa,this.visitTaggedTemplateExpr=Fa,this.visitInstantiateExpr=Fa,this.visitConditionalExpr=Fa,this.visitNotExpr=Fa,this.visitAssertNotNullExpr=Fa,this.visitCastExpr=Fa,this.visitFunctionExpr=Fa,this.visitUnaryOperatorExpr=Fa,this.visitBinaryOperatorExpr=Fa,this.visitReadPropExpr=Fa,this.visitReadKeyExpr=Fa,this.visitCommaExpr=Fa,this.visitLocalizedString=Fa}return(0,B.Z)(n,[{key:"visitLiteralExpr",value:function(e){return"".concat("string"==typeof e.value?'"'+e.value+'"':e.value)}},{key:"visitLiteralArrayExpr",value:function(e,i){var o=this;return"[".concat(e.entries.map(function(a){return a.visitExpression(o,i)}).join(","),"]")}},{key:"visitLiteralMapExpr",value:function(e,i){var o=this;return"{".concat(e.entries.map(function(u){return"".concat(function(u){var d=u.quoted?'"':"";return"".concat(d).concat(u.key).concat(d)}(u),":").concat(u.value.visitExpression(o,i))}).join(","))}},{key:"visitExternalExpr",value:function(e){return e.value.moduleName?"EX:".concat(e.value.moduleName,":").concat(e.value.name):"EX:".concat(e.value.runtime.name)}},{key:"visitReadVarExpr",value:function(e){return"VAR:".concat(e.name)}},{key:"visitTypeofExpr",value:function(e,i){return"TYPEOF:".concat(e.expr.visitExpression(this,i))}}]),n}();function Fa(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function ZP(n){return n instanceof ms}function Ma(n){return n instanceof ue&&"string"==typeof n.value&&n.value.length>=50}var Qt="@angular/core",Le=(0,B.Z)(function n(){(0,H.Z)(this,n)});Le.NEW_METHOD="factory",Le.TRANSFORM_METHOD="transform",Le.PATCH_DEPS="patchedDeps",Le.core={name:null,moduleName:Qt},Le.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:Qt},Le.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:Qt},Le.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:Qt},Le.element={name:"\u0275\u0275element",moduleName:Qt},Le.elementStart={name:"\u0275\u0275elementStart",moduleName:Qt},Le.elementEnd={name:"\u0275\u0275elementEnd",moduleName:Qt},Le.advance={name:"\u0275\u0275advance",moduleName:Qt},Le.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:Qt},Le.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:Qt},Le.attribute={name:"\u0275\u0275attribute",moduleName:Qt},Le.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:Qt},Le.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:Qt},Le.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:Qt},Le.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:Qt},Le.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:Qt},Le.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:Qt},Le.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:Qt},Le.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:Qt},Le.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:Qt},Le.classProp={name:"\u0275\u0275classProp",moduleName:Qt},Le.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:Qt},Le.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:Qt},Le.elementContainer={name:"\u0275\u0275elementContainer",moduleName:Qt},Le.styleMap={name:"\u0275\u0275styleMap",moduleName:Qt},Le.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:Qt},Le.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:Qt},Le.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:Qt},Le.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:Qt},Le.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:Qt},Le.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:Qt},Le.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:Qt},Le.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:Qt},Le.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:Qt},Le.classMap={name:"\u0275\u0275classMap",moduleName:Qt},Le.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:Qt},Le.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:Qt},Le.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:Qt},Le.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:Qt},Le.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:Qt},Le.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:Qt},Le.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:Qt},Le.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:Qt},Le.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:Qt},Le.styleProp={name:"\u0275\u0275styleProp",moduleName:Qt},Le.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:Qt},Le.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:Qt},Le.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:Qt},Le.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:Qt},Le.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:Qt},Le.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:Qt},Le.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:Qt},Le.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:Qt},Le.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:Qt},Le.nextContext={name:"\u0275\u0275nextContext",moduleName:Qt},Le.resetView={name:"\u0275\u0275resetView",moduleName:Qt},Le.templateCreate={name:"\u0275\u0275template",moduleName:Qt},Le.text={name:"\u0275\u0275text",moduleName:Qt},Le.enableBindings={name:"\u0275\u0275enableBindings",moduleName:Qt},Le.disableBindings={name:"\u0275\u0275disableBindings",moduleName:Qt},Le.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:Qt},Le.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:Qt},Le.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:Qt},Le.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:Qt},Le.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:Qt},Le.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:Qt},Le.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:Qt},Le.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:Qt},Le.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:Qt},Le.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:Qt},Le.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:Qt},Le.restoreView={name:"\u0275\u0275restoreView",moduleName:Qt},Le.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:Qt},Le.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:Qt},Le.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:Qt},Le.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:Qt},Le.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:Qt},Le.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:Qt},Le.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:Qt},Le.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:Qt},Le.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:Qt},Le.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:Qt},Le.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:Qt},Le.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:Qt},Le.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:Qt},Le.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:Qt},Le.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:Qt},Le.hostProperty={name:"\u0275\u0275hostProperty",moduleName:Qt},Le.property={name:"\u0275\u0275property",moduleName:Qt},Le.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:Qt},Le.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:Qt},Le.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:Qt},Le.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:Qt},Le.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:Qt},Le.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:Qt},Le.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:Qt},Le.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:Qt},Le.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:Qt},Le.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:Qt},Le.i18n={name:"\u0275\u0275i18n",moduleName:Qt},Le.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:Qt},Le.i18nExp={name:"\u0275\u0275i18nExp",moduleName:Qt},Le.i18nStart={name:"\u0275\u0275i18nStart",moduleName:Qt},Le.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:Qt},Le.i18nApply={name:"\u0275\u0275i18nApply",moduleName:Qt},Le.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:Qt},Le.pipe={name:"\u0275\u0275pipe",moduleName:Qt},Le.projection={name:"\u0275\u0275projection",moduleName:Qt},Le.projectionDef={name:"\u0275\u0275projectionDef",moduleName:Qt},Le.reference={name:"\u0275\u0275reference",moduleName:Qt},Le.inject={name:"\u0275\u0275inject",moduleName:Qt},Le.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:Qt},Le.directiveInject={name:"\u0275\u0275directiveInject",moduleName:Qt},Le.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:Qt},Le.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:Qt},Le.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:Qt},Le.forwardRef={name:"forwardRef",moduleName:Qt},Le.resolveForwardRef={name:"resolveForwardRef",moduleName:Qt},Le.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:Qt},Le.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:Qt},Le.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:Qt},Le.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:Qt},Le.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:Qt},Le.resolveBody={name:"\u0275\u0275resolveBody",moduleName:Qt},Le.defineComponent={name:"\u0275\u0275defineComponent",moduleName:Qt},Le.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:Qt},Le.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:Qt},Le.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Qt},Le.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Qt},Le.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:Qt},Le.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:Qt},Le.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:Qt},Le.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:Qt},Le.defineDirective={name:"\u0275\u0275defineDirective",moduleName:Qt},Le.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:Qt},Le.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:Qt},Le.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:Qt},Le.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:Qt},Le.defineInjector={name:"\u0275\u0275defineInjector",moduleName:Qt},Le.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:Qt},Le.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:Qt},Le.ModuleWithProviders={name:"ModuleWithProviders",moduleName:Qt},Le.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:Qt},Le.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:Qt},Le.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:Qt},Le.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:Qt},Le.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:Qt},Le.definePipe={name:"\u0275\u0275definePipe",moduleName:Qt},Le.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:Qt},Le.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:Qt},Le.setClassMetadata={name:"\u0275setClassMetadata",moduleName:Qt},Le.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:Qt},Le.viewQuery={name:"\u0275\u0275viewQuery",moduleName:Qt},Le.loadQuery={name:"\u0275\u0275loadQuery",moduleName:Qt},Le.contentQuery={name:"\u0275\u0275contentQuery",moduleName:Qt},Le.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:Qt},Le.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:Qt},Le.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:Qt},Le.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:Qt},Le.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:Qt},Le.listener={name:"\u0275\u0275listener",moduleName:Qt},Le.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:Qt},Le.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:Qt},Le.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:Qt},Le.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:Qt},Le.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:Qt},Le.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:Qt},Le.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:Qt},Le.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:Qt},Le.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:Qt},Le.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:Qt};var Gl=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,H.Z)(this,n),this.file=r,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return(0,B.Z)(n,[{key:"addSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.sourcesContent.has(e)||this.sourcesContent.set(e,i),this}},{key:"addLine",value:function(){return this.lines.push([]),this.lastCol0=0,this}},{key:"addMapping",value:function(e,i,o,a){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=i&&!this.sourcesContent.has(i))throw new Error('Unknown source file "'.concat(i,'"'));if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(i&&(null==o||null==a))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:i,sourceLine0:o,sourceCol0:a}),this}},{key:"currentLine",get:function(){return this.lines.slice(-1)[0]}},{key:"toJSON",value:function(){var e=this;if(!this.hasMappings)return null;var i=new Map,o=[],a=[];Array.from(this.sourcesContent.keys()).forEach(function(g,C){i.set(g,C),o.push(g),a.push(e.sourcesContent.get(g)||null)});var s="",l=0,u=0,d=0,h=0;return this.lines.forEach(function(g){l=0,s+=g.map(function(C){var Z=Iv(C.col0-l);return l=C.col0,null!=C.sourceUrl&&(Z+=Iv(i.get(C.sourceUrl)-u),u=i.get(C.sourceUrl),Z+=Iv(C.sourceLine0-d),d=C.sourceLine0,Z+=Iv(C.sourceCol0-h),h=C.sourceCol0),Z}).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 kd(n){for(var r="",e=po(n),i=0;i<e.length;){var o=e[i++],a=i<e.length?e[i++]:null,s=i<e.length?e[i++]:null;r+=Td(o>>2),r+=Td((3&o)<<4|(null===a?0:a>>4)),r+=null===a?"=":Td((15&a)<<2|(null===s?0:s>>6)),r+=null===a||null===s?"=":Td(63&s)}return r}(JSON.stringify(this,null,0)):""}}]),n}();function Iv(n){n=n<0?1+(-n<<1):n<<1;var r="";do{var e=31&n;(n>>=5)>0&&(e|=32),r+=Td(e)}while(n>0);return r}function Td(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[n]}var NP=/'|\\|\n|\r|\$/g,r5=/^[$A-Z_][0-9A-Z_$]*$/i,i5=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.indent=r,this.partsLength=0,this.parts=[],this.srcSpans=[]}),eV=function(){function n(r){(0,H.Z)(this,n),this._indent=r,this._lines=[new i5(r)]}return(0,B.Z)(n,[{key:"_currentLine",get:function(){return this._lines[this._lines.length-1]}},{key:"println",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.print(e||null,i,!0)}},{key:"lineIsEmpty",value:function(){return 0===this._currentLine.parts.length}},{key:"lineLength",value:function(){return this._currentLine.indent*" ".length+this._currentLine.partsLength}},{key:"print",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.length>0&&(this._currentLine.parts.push(i),this._currentLine.partsLength+=i.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),o&&this._lines.push(new i5(this._indent))}},{key:"removeEmptyLastLine",value:function(){this.lineIsEmpty()&&this._lines.pop()}},{key:"incIndent",value:function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"decIndent",value:function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}},{key:"toSource",value:function(){return this.sourceLines.map(function(e){return e.parts.length>0?fC(e.indent)+e.parts.join(""):""}).join("\n")}},{key:"toSourceMapGenerator",value:function(e){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=new Gl(e),a=!1,s=function(){a||(o.addSource(e," ").addMapping(0,e,0,0),a=!0)},l=0;l<i;l++)o.addLine(),s();return this.sourceLines.forEach(function(u,d){o.addLine();for(var h=u.srcSpans,g=u.parts,C=u.indent*" ".length,Z=0;Z<h.length&&!h[Z];)C+=g[Z].length,Z++;for(Z<h.length&&0===d&&0===C?a=!0:s();Z<h.length;){var z=h[Z],q=z.start.file,re=z.start.line,ae=z.start.col;for(o.addSource(q.url,q.content).addMapping(C,q.url,re,ae),C+=g[Z].length,Z++;Z<h.length&&(z===h[Z]||!h[Z]);)C+=g[Z].length,Z++}}),o}},{key:"spanOf",value:function(e,i){var o=this._lines[e];if(o)for(var a=i-fC(o.indent).length,s=0;s<o.parts.length;s++){var l=o.parts[s];if(l.length>a)return o.srcSpans[s];a-=l.length}return null}},{key:"sourceLines",get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}],[{key:"createRoot",value:function(){return new n(0)}}]),n}(),BP=function(){function n(r){(0,H.Z)(this,n),this._escapeDollarInStrings=r}return(0,B.Z)(n,[{key:"printLeadingComments",value:function(e,i){if(void 0!==e.leadingComments){var a,o=(0,xn.Z)(e.leadingComments);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof oM?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,Ua(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 Ge.Plus:o="+";break;case Ge.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 it.Equals:o="==";break;case it.Identical:o="===";break;case it.NotEquals:o="!=";break;case it.NotIdentical:o="!==";break;case it.And:o="&&";break;case it.BitwiseAnd:o="&";break;case it.Or:o="||";break;case it.Plus:o="+";break;case it.Minus:o="-";break;case it.Divide:o="/";break;case it.Multiply:o="*";break;case it.Modulo:o="%";break;case it.Lower:o="<";break;case it.LowerEquals:o="<=";break;case it.Bigger:o=">";break;case it.BiggerEquals:o=">=";break;case it.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(Ua(a.key,o._escapeDollarInStrings,a.quoted),":")),a.value.visitExpression(o,i)},e.entries,i,","),i.print(e,"}"),null}},{key:"visitCommaExpr",value:function(e,i){return i.print(e,"("),this.visitAllExpressions(e.parts,i,","),i.print(e,")"),null}},{key:"visitAllExpressions",value:function(e,i,o){var a=this;this.visitAllObjects(function(s){return s.visitExpression(a,i)},e,i,o)}},{key:"visitAllObjects",value:function(e,i,o,a){for(var s=!1,l=0;l<i.length;l++)l>0&&(o.lineLength()>80?(o.print(null,a,!0),s||(o.incIndent(),o.incIndent(),s=!0)):o.print(null,a,!1)),e(i[l]);s&&(o.decIndent(),o.decIndent())}},{key:"visitAllStatements",value:function(e,i){var o=this;e.forEach(function(a){return a.visitStatement(o,i)})}}]),n}();function Ua(n,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(null==n)return null;var i=n.replace(NP,function(){return"$"==(arguments.length<=0?void 0:arguments[0])?r?"\\$":"$":"\n"==(arguments.length<=0?void 0:arguments[0])?"\\n":"\r"==(arguments.length<=0?void 0:arguments[0])?"\\r":"\\".concat(arguments.length<=0?void 0:arguments[0])}),o=e||!r5.test(i);return o?"'".concat(i,"'"):i}function fC(n){for(var r="",e=0;e<n;e++)r+=" ";return r}function Md(n,r){if(0===r)return Is(n);for(var e=[],i=0;i<r;i++)e.push(qs);return Is(n,void 0,e)}var If,ec;function dM(n){return"".concat("@").concat(n)}function a5(n,r){return"".concat("@").concat(n,".").concat(r)}function FP(n,r){return"animation_".concat(n,"_").concat(r)}function UP(n,r){var e=new oa({name:n,moduleName:null}),i=new yo(it.Identical,new _l(e),rn("undefined")),o=new yo(it.Or,i,e,void 0,void 0,!0);return new yo(it.And,o,r)}function Ja(n){var r=new Ir(n);return{value:r,type:r}}function gl(n,r){var e=di(n.map(function(i){return i.value}));return r?aa([],[new _s(e)]):e}function fM(n,r){return{expression:n,forwardRef:r}}function zl(n){var r=n.expression;switch(n.forwardRef){case 0:case 1:return r;case 2:return pC(r)}}function pC(n){return Jn(Le.forwardRef).callFn([aa([],[new _s(n)])])}function ph(n){var r=ii("t"),e=null,i=fa(n)?r:new yo(it.Or,r,n.internalType),o=null;null!==n.deps?"invalid"!==n.deps&&(o=new ie(i,pM(n.deps,n.target))):(e=ii("\u0275".concat(n.name,"_BaseFactory")),o=e.callFn([i]));var a=[],s=null;function l(Z){var z=ii("r");a.push(z.set(t_).toDeclStmt());var q=null!==o?z.set(o).toStmt():Jn(Le.invalidFactory).callFn([]).toStmt();return a.push(wd(r,[q],[z.set(Z).toStmt()])),z}if(fa(n)){var u=pM(n.delegateDeps,n.target);s=l(new(n.delegateType===If.Class?ie:Df)(n.delegate,u))}else s=function jP(n){return void 0!==n.expression}(n)?l(n.expression):o;if(null===s)a.push(Jn(Le.invalidFactory).callFn([]).toStmt());else if(null!==e){var h=Jn(Le.getInheritedFactory).callFn([n.internalType]),g=new yo(it.Or,e,e.set(h));a.push(new _s(g.callFn([i])))}else a.push(new _s(s));var C=aa([new Go("t",qs)],a,ia,void 0,"".concat(n.name,"_Factory"));return null!==e&&(C=aa([],[new Af(e.name),new _s(C)]).callFn([],void 0,!0)),{expression:C,statements:[],type:HP(n)}}function HP(n){var r=null!==n.deps&&"invalid"!==n.deps?function i_(n){var r=!1,e=n.map(function(i){var o=function c5(n){var r=[];return null!==n.attributeNameType&&r.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&r.push({key:"optional",value:rn(!0),quoted:!1}),n.host&&r.push({key:"host",value:rn(!0),quoted:!1}),n.self&&r.push({key:"self",value:rn(!0),quoted:!1}),n.skipSelf&&r.push({key:"skipSelf",value:rn(!0),quoted:!1}),r.length>0?Qs(r):null}(i);return null!==o?(r=!0,o):rn(null)});return r?Is(di(e)):ke}(n.deps):ke;return Is(Jn(Le.FactoryDeclaration,[Md(n.type.type,n.typeArgumentCount),r]))}function pM(n,r){return n.map(function(e,i){return function Pv(n,r,e){if(null===n.token)return Jn(Le.invalidFactoryDep).callFn([rn(e)]);if(null===n.attributeNameType){var i=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(r===ec.Pipe?16:0),o=0!==i||n.optional?rn(i):null,a=[n.token];o&&a.push(o);var s=function GP(n){switch(n){case ec.Component:case ec.Directive:case ec.Pipe:return Le.directiveInject;case ec.NgModule:case ec.Injectable:default:return Le.inject}}(r);return Jn(s).callFn(a)}return Jn(Le.injectAttribute).callFn([n.token])}(e,r,i)})}function fa(n){return void 0!==n.delegateType}!function(n){n[n.Class=0]="Class",n[n.Function=1]="Function"}(If||(If={})),function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(ec||(ec={}));var hM=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){throw new Error("visit() not implemented for Comment")}}]),n}(),Pf=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitText(this)}}]),n}(),mM=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e,this.i18n=i}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundText(this)}}]),n}(),_M=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a,this.i18n=s}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitTextAttribute(this)}}]),n}(),zP=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u,this.i18n=d}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundAttribute(this)}}],[{key:"fromBoundElementProperty",value:function(e,i){if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound attributes but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,i)}}]),n}(),Rv=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.name=r,this.type=e,this.handler=i,this.target=o,this.phase=a,this.sourceSpan=s,this.handlerSpan=l,this.keySpan=u}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitBoundEvent(this)}}],[{key:"fromParsedEvent",value:function(e){var i=0===e.type?e.targetOrPhase:null,o=1===e.type?e.targetOrPhase:null;if(void 0===e.keySpan)throw new Error("Unexpected state: keySpan must be defined for bound event but was not for ".concat(e.name,": ").concat(e.sourceSpan));return new n(e.name,e.type,e.handler,i,o,e.sourceSpan,e.handlerSpan,e.keySpan)}}]),n}(),Rf=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.name=r,this.attributes=e,this.inputs=i,this.outputs=o,this.children=a,this.references=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d,this.i18n=h}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitElement(this)}}]),n}(),hh=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,H.Z)(this,n),this.tagName=r,this.attributes=e,this.inputs=i,this.outputs=o,this.templateAttrs=a,this.children=s,this.references=l,this.variables=u,this.sourceSpan=d,this.startSourceSpan=h,this.endSourceSpan=g,this.i18n=C}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitTemplate(this)}}]),n}(),o_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.selector=r,this.attributes=e,this.sourceSpan=i,this.i18n=o,this.name="ng-content"}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitContent(this)}}]),n}(),gM=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitVariable(this)}}]),n}(),WP=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitReference(this)}}]),n}(),a_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.vars=r,this.placeholders=e,this.sourceSpan=i,this.i18n=o}return(0,B.Z)(n,[{key:"visit",value:function(e){return e.visitIcu(this)}}]),n}();function VP(n,r){var e=[];if(n.visit){var o,i=(0,xn.Z)(r);try{for(i.s();!(o=i.n()).done;){var a=o.value;n.visit(a)||a.visit(n)}}catch(g){i.e(g)}finally{i.f()}}else{var u,l=(0,xn.Z)(r);try{for(l.s();!(u=l.n()).done;){var h=u.value.visit(n);h&&e.push(h)}}catch(g){l.e(g)}finally{l.f()}}return e}var bu=(0,B.Z)(function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.nodes=r,this.placeholders=e,this.placeholderToMessage=i,this.meaning=o,this.description=a,this.customId=s,this.id=this.customId,this.legacyIds=[],this.messageString=function gC(n){var r=new YP,e=n.map(function(i){return i.visit(r)}).join("");return e}(this.nodes),r.length?this.sources=[{filePath:r[0].sourceSpan.start.file.url,startLine:r[0].sourceSpan.start.line+1,startCol:r[0].sourceSpan.start.col+1,endLine:r[r.length-1].sourceSpan.end.line+1,endCol:r[0].sourceSpan.start.col+1}]:this.sources=[]}),hC=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitText(this,i)}}]),n}(),mC=function(){function n(r,e){(0,H.Z)(this,n),this.children=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitContainer(this,i)}}]),n}(),yM=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.expression=r,this.type=e,this.cases=i,this.sourceSpan=o}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcu(this,i)}}]),n}(),f5=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.tag=r,this.attrs=e,this.startName=i,this.closeName=o,this.children=a,this.isVoid=s,this.sourceSpan=l,this.startSourceSpan=u,this.endSourceSpan=d}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitTagPlaceholder(this,i)}}]),n}(),p5=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitPlaceholder(this,i)}}]),n}(),_C=function(){function n(r,e,i){(0,H.Z)(this,n),this.value=r,this.name=e,this.sourceSpan=i}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitIcuPlaceholder(this,i)}}]),n}();var YP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(a){return"".concat(a," {").concat(e.cases[a].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this,o=e.children.map(function(a){return a.visit(i)}).join("");return"{$".concat(e.startName,"}").concat(o,"{$").concat(e.closeName,"}")}},{key:"visitPlaceholder",value:function(e){return"{$".concat(e.name,"}")}},{key:"visitIcuPlaceholder",value:function(e){return"{$".concat(e.name,"}")}}]),n}(),oV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitTag",value:function(e){var i=this,o=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<".concat(e.name).concat(o,"/>");var a=e.children.map(function(s){return s.visit(i)});return"<".concat(e.name).concat(o,">").concat(a.join(""),"</").concat(e.name,">")}},{key:"visitText",value:function(e){return e.value}},{key:"visitDeclaration",value:function(e){return"<?xml".concat(this._serializeAttributes(e.attrs)," ?>")}},{key:"_serializeAttributes",value:function(e){var i=Object.keys(e).map(function(o){return"".concat(o,'="').concat(e[o],'"')}).join(" ");return i.length>0?" "+i:""}},{key:"visitDoctype",value:function(e){return"<!DOCTYPE ".concat(e.rootTag," [\n").concat(e.dtd,"\n]>")}}]),n}();new oV;function Zv(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var vC="i18n-";function XP(n){return"i18n"===n||n.startsWith(vC)}function s_(n){return n instanceof bu}function yC(n){return s_(n)&&1===n.nodes.length&&n.nodes[0]instanceof yM}function w5(n){return!!n.i18n}function bC(n){return n.nodes[0]}function Nv(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=r>0?":".concat(r):"";return"".concat("\ufffd").concat(n).concat(e).concat("\ufffd")}function Ps(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=n;return function(){return r++}}function l_(n){var r={};return n.forEach(function(e,i){r[i]=rn(e.length>1?"[".concat(e.join("|"),"]"):e[0])}),r}function Bv(n,r){for(var e=n.get(r)||[],i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];e.push.apply(e,o),n.set(r,e)}function $P(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=new Map,a=n instanceof bu?n.nodes.find(function(s){return s instanceof mC}):n;return a&&a.children.filter(function(s){return s instanceof p5}).forEach(function(s,l){var u=Nv(i+l,e);Bv(o,s.name,u)}),o}function TM(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e={};return n&&Object.keys(n).length&&Object.keys(n).forEach(function(i){return e[u_(i,r)]=n[i]}),e}function u_(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=Zv(n);if(!r)return e;var o,i=e.split("_");if(1===i.length)return n.toLowerCase();/^\d+$/.test(i[i.length-1])&&(o=i.pop());var a=i.shift().toLowerCase();return i.length&&(a+=i.map(function(s){return s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()}).join("")),o?"".concat(a,"_").concat(o):a}function e3(n){return"".concat("MSG_").concat(n).toUpperCase()}function t3(n){return new Af(n.name,void 0,ia,void 0,n.sourceSpan)}var k5=/[-.]/,CC="_t",tc="ctx",Fv="rf",EM="restoredCtx",Uv=new Set([Le.element,Le.elementStart,Le.elementEnd,Le.elementContainer,Le.elementContainerStart,Le.elementContainerEnd,Le.i18nExp,Le.listener,Le.classProp,Le.syntheticHostListener,Le.hostProperty,Le.syntheticHostProperty,Le.property,Le.propertyInterpolate1,Le.propertyInterpolate2,Le.propertyInterpolate3,Le.propertyInterpolate4,Le.propertyInterpolate5,Le.propertyInterpolate6,Le.propertyInterpolate7,Le.propertyInterpolate8,Le.propertyInterpolateV,Le.attribute,Le.attributeInterpolate1,Le.attributeInterpolate2,Le.attributeInterpolate3,Le.attributeInterpolate4,Le.attributeInterpolate5,Le.attributeInterpolate6,Le.attributeInterpolate7,Le.attributeInterpolate8,Le.attributeInterpolateV,Le.styleProp,Le.stylePropInterpolate1,Le.stylePropInterpolate2,Le.stylePropInterpolate3,Le.stylePropInterpolate4,Le.stylePropInterpolate5,Le.stylePropInterpolate6,Le.stylePropInterpolate7,Le.stylePropInterpolate8,Le.stylePropInterpolateV,Le.textInterpolate,Le.textInterpolate1,Le.textInterpolate2,Le.textInterpolate3,Le.textInterpolate4,Le.textInterpolate5,Le.textInterpolate6,Le.textInterpolate7,Le.textInterpolate8,Le.textInterpolateV]);function mh(n,r,e){return Jn(r,null,n).callFn(e,n)}function n3(n,r){var e=null;return function(){return e||(n.push(new Af("_t",void 0,qs)),e=ii(r)),e}}function _h(n){throw new Error("Invalid state: Visitor ".concat(this.constructor.name," doesn't handle ").concat(n.constructor.name))}function vl(n){return Array.isArray(n)?di(n.map(vl)):rn(n,ia)}function Hv(n,r){return Object.getOwnPropertyNames(n).length>0?function uV(n,r){return Qs(Object.getOwnPropertyNames(n).map(function(e){var o,a,s,l,i=n[e];if(Array.isArray(i)){var u=(0,Nn.Z)(i,2);s=e,l=(a=u[0])!==(o=u[1])}else s=o=e,a=i,l=!1;return{key:s,quoted:k5.test(s),value:r&&l?di([vl(a),vl(o)]):vl(a)}}))}(n,r):null}function Lf(n){for(;Oc(n[n.length-1]);)n.pop();return n}function xM(n,r){if(Array.isArray(n.predicate)){var e=[];return n.predicate.forEach(function(i){var o=i.split(",").map(function(a){return rn(a.trim())});e.push.apply(e,(0,pn.Z)(o))}),r.getConstLiteral(di(e),!0)}switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Jn(Le.resolveForwardRef).callFn([n.predicate.expression])}}var Sa=function(){function n(){(0,H.Z)(this,n),this.values=[]}return(0,B.Z)(n,[{key:"set",value:function(e,i){i&&this.values.push({key:e,value:i,quoted:!1})}},{key:"toLiteralMap",value:function(){return Qs(this.values)}}]),n}();function Sd(n){var r=n.expressions,e=n.strings;return 1===r.length&&2===e.length&&""===e[0]&&""===e[1]?1:r.length+e.length}function wC(n){var r,l,e=[],i=null,o=null,a=0,s=(0,xn.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null!==(r="function"==typeof u.paramsOrFn?u.paramsOrFn():u.paramsOrFn)&&void 0!==r?r:[],h=Array.isArray(d)?d:[d];a<500&&o===u.reference&&Uv.has(o)?(i=i.callFn(h,i.sourceSpan),a++):(null!==i&&e.push(i.toStmt()),i=mh(u.span,u.reference,h),o=u.reference,a=0)}}catch(g){s.e(g)}finally{s.f()}return null!==i&&e.push(i.toStmt()),e}function r3(n,r){var e=null,i={name:n.name,type:n.type,internalType:n.internalType,typeArgumentCount:n.typeArgumentCount,deps:[],target:ec.Injectable};if(void 0!==n.useClass){var o=n.useClass.expression.isEquivalent(n.internalType),a=void 0;void 0!==n.deps&&(a=n.deps),e=void 0!==a?ph(Object.assign(Object.assign({},i),{delegate:n.useClass.expression,delegateDeps:a,delegateType:If.Class})):o?ph(i):{statements:[],expression:o3(n.type.value,n.useClass.expression,r)}}else e=void 0!==n.useFactory?void 0!==n.deps?ph(Object.assign(Object.assign({},i),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:If.Function})):{statements:[],expression:aa([],[new _s(n.useFactory.callFn([]))])}:void 0!==n.useValue?ph(Object.assign(Object.assign({},i),{expression:n.useValue.expression})):void 0!==n.useExisting?ph(Object.assign(Object.assign({},i),{expression:Jn(Le.inject).callFn([n.useExisting.expression])})):{statements:[],expression:o3(n.type.value,n.internalType,r)};var s=n.internalType,l=new Sa;return l.set("token",s),l.set("factory",e.expression),null!==n.providedIn.expression.value&&l.set("providedIn",zl(n.providedIn)),{expression:Jn(Le.\u0275\u0275defineInjectable).callFn([l.toLiteralMap()],void 0,!0),type:i3(n),statements:e.statements}}function i3(n){return new hs(Jn(Le.InjectableDeclaration,[Md(n.type.type,n.typeArgumentCount)]))}function o3(n,r,e){return n.node===r.node?r.prop("\u0275fac"):a3(e?Jn(Le.resolveForwardRef).callFn([r]):r)}function a3(n){return aa([new Go("t",qs)],[new _s(n.prop("\u0275fac").callFn([ii("t")]))])}var S5=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];var kC=function(){function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,null,[{key:"fromArray",value:function(e){return e?(function s3(n,r){if(null!=r&&(!Array.isArray(r)||2!=r.length))throw new Error("Expected '".concat(n,"' to be an array, [start, end]."));if(null!=r){var e=r[0],i=r[1];S5.forEach(function(o){if(o.test(e)||o.test(i))throw new Error("['".concat(e,"', '").concat(i,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new n(e[0],e[1])):wu}}]),n}(),wu=new kC("{{","}}"),Hf=123,Lc=125;function LM(n){return n>=9&&n<=32||160==n}function jf(n){return 48<=n&&n<=57}function ZM(n){return n>=97&&n<=122||n>=65&&n<=90}function Zc(n){return 10===n||13===n}function __(n){return 48<=n&&n<=55}function IC(n){return 39===n||34===n||96===n}var Dd,g_=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.file=r,this.offset=e,this.line=i,this.col=o}return(0,B.Z)(n,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(e){for(var i=this.file.content,o=i.length,a=this.offset,s=this.line,l=this.col;a>0&&e<0;){if(a--,e++,10==i.charCodeAt(a)){s--;var d=i.substring(0,a-1).lastIndexOf(String.fromCharCode(10));l=d>0?a-d:a}else l--}for(;a<o&&e>0;){var h=i.charCodeAt(a);a++,e--,10==h?(s++,l=0):l++}return new n(this.file,a,s,l)}},{key:"getContext",value:function(e,i){var o=this.file.content,a=this.offset;if(null!=a){a>o.length-1&&(a=o.length-1);for(var s=a,l=0,u=0;l<e&&a>0&&(l++,"\n"!=o[--a]||++u!=i););for(l=0,u=0;l<e&&s<o.length-1&&(l++,"\n"!=o[++s]||++u!=i););return{before:o.substring(a,this.offset),after:o.substring(this.offset,s+1)}}return null}}]),n}(),PC=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.content=r,this.url=e}),Qa=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;(0,H.Z)(this,n),this.start=r,this.end=e,this.fullStart=i,this.details=o}return(0,B.Z)(n,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),n}();!function(n){n[n.WARNING=0]="WARNING",n[n.ERROR=1]="ERROR"}(Dd||(Dd={}));var Yv=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;(0,H.Z)(this,n),this.span=r,this.msg=e,this.level=i}return(0,B.Z)(n,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(Dd[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),n}();var BM=0;function v_(n){return n.replace(/\W/g,"_")}var RC,FM='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',P5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this,!1)}return(0,B.Z)(e,[{key:"visitWrappedNodeExpr",value:function(o,a){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}},{key:"visitDeclareVarStmt",value:function(o,a){return a.print(o,"var ".concat(o.name)),o.value&&(a.print(o," = "),o.value.visitExpression(this,a)),a.println(o,";"),null}},{key:"visitTaggedTemplateExpr",value:function(o,a){var s=this,l=o.template.elements;return o.tag.visitExpression(this,a),a.print(o,"(".concat(FM,"(")),a.print(o,"[".concat(l.map(function(u){return Ua(u.text,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(u){return Ua(u.rawText,!1)}).join(", "),"])")),o.template.expressions.forEach(function(u){a.print(o,", "),u.visitExpression(s,a)}),a.print(o,")"),null}},{key:"visitFunctionExpr",value:function(o,a){return a.print(o,"function".concat(o.name?" "+o.name:"","(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.print(o,"}"),null}},{key:"visitDeclareFunctionStmt",value:function(o,a){return a.print(o,"function ".concat(o.name,"(")),this._visitParams(o.params,a),a.println(o,") {"),a.incIndent(),this.visitAllStatements(o.statements,a),a.decIndent(),a.println(o,"}"),null}},{key:"visitLocalizedString",value:function(o,a){var s=this;a.print(o,"$localize(".concat(FM,"("));for(var l=[o.serializeI18nHead()],u=1;u<o.messageParts.length;u++)l.push(o.serializeI18nTemplatePart(u));return a.print(o,"[".concat(l.map(function(d){return Ua(d.cooked,!1)}).join(", "),"], ")),a.print(o,"[".concat(l.map(function(d){return Ua(d.raw,!1)}).join(", "),"])")),o.expressions.forEach(function(d){a.print(o,", "),d.visitExpression(s,a)}),a.print(o,")"),null}},{key:"_visitParams",value:function(o,a){this.visitAllObjects(function(s){return a.print(null,s.name)},o,a,",")}}]),e}(BP);function L5(n){var r;return(null===(r=function R5(){if(void 0===RC&&(RC=null,Ku.trustedTypes))try{RC=Ku.trustedTypes.createPolicy("angular#unsafe-jit",{createScript:function(r){return r}})}catch(n){}return RC}())||void 0===r?void 0:r.createScript(n))||n}function UM(){for(var n=arguments.length,r=new Array(n),e=0;e<n;e++)r[e]=arguments[e];if(!Ku.trustedTypes)return(0,Bl.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=Ku.eval(L5(a));return void 0===s.bind?(0,Bl.Z)(Function,r):(s.toString=function(){return a},s.bind(Ku))}var LC=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"evaluateStatements",value:function(e,i,o,a){var s=new y3(o),l=eV.createRoot();return i.length>0&&!function HM(n){return n.isEquivalent(rn("use strict").toStmt())}(i[0])&&(i=[rn("use strict").toStmt()].concat((0,pn.Z)(i))),s.visitAllStatements(i,l),s.createReturnStmt(l),this.evaluateCode(e,l,s.getArgs(),a)}},{key:"evaluateCode",value:function(e,i,o,a){var s='"use strict";'.concat(i.toSource(),"\n//# sourceURL=").concat(e),l=[],u=[];for(var d in o)u.push(o[d]),l.push(d);if(a){var h=UM.apply(void 0,(0,pn.Z)(l.concat("return null;"))).toString(),g=h.slice(0,h.indexOf("return null;")).split("\n").length-1;s+="\n".concat(i.toSourceMapGenerator(e,g).toJsComment())}var C=UM.apply(void 0,(0,pn.Z)(l.concat(s)));return this.executeFunction(C,u)}},{key:"executeFunction",value:function(e,i){return e.apply(void 0,(0,pn.Z)(i))}}]),n}(),y3=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).refResolver=i,o._evalArgNames=[],o._evalArgValues=[],o._evalExportedVars=[],o}return(0,B.Z)(e,[{key:"createReturnStmt",value:function(o){new _s(new iM(this._evalExportedVars.map(function(s){return new yu(s,ii(s),!1)}))).visitStatement(this,o)}},{key:"getArgs",value:function(){for(var o={},a=0;a<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(Os.Exported)&&this._evalExportedVars.push(o.name),(0,dt.Z)((0,Ut.Z)(e.prototype),"visitDeclareVarStmt",this).call(this,o,a)}},{key:"visitDeclareFunctionStmt",value:function(o,a){return o.hasModifier(Os.Exported)&&this._evalExportedVars.push(o.name),(0,dt.Z)((0,Ut.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 I5(n){if(!n||!n.reference)return null;var r=n.reference;if(r.__anonymousType)return r.__anonymousType;if(r.__forward_ref__)return"__forward_ref__";var e=Sf(r);return e.indexOf("(")>=0?(e="anonymous_".concat(BM++),r.__anonymousType=e):e=v_(e),e}({reference:a})||"val";this._evalArgNames.push("jit_".concat(u,"_").concat(l))}s.print(o,this._evalArgNames[l])}}]),e}(P5);function b3(n){var r=new Sa;return null!==n.providers&&r.set("providers",n.providers),n.imports.length>0&&r.set("imports",di(n.imports)),{expression:Jn(Le.defineInjector).callFn([r.toLiteralMap()],void 0,!0),type:Ad(n),statements:[]}}function Ad(n){return new hs(Jn(Le.InjectorDeclaration,[new hs(n.type.type)]))}var y_,yh,C3=function(){function n(r){(0,H.Z)(this,n),this.context=r}return(0,B.Z)(n,[{key:"resolveExternalReference",value:function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to ".concat(e.moduleName,", only references to @angular/core are supported."));if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '".concat(e.name,"'."));return this.context[e.name]}}]),n}();function jM(n){var r=n.adjacentType,e=n.internalType,i=n.bootstrap,o=n.declarations,a=n.imports,s=n.exports,l=n.schemas,u=n.containsForwardDecls,d=n.selectorScopeMode,h=n.id,g=[],C=new Sa;if(C.set("type",e),i.length>0&&C.set("bootstrap",gl(i,u)),d===y_.Inline)o.length>0&&C.set("declarations",gl(o,u)),a.length>0&&C.set("imports",gl(a,u)),s.length>0&&C.set("exports",gl(s,u));else if(d===y_.SideEffect){var Z=function Z5(n){var r=n.adjacentType,e=n.declarations,i=n.imports,o=n.exports,a=n.containsForwardDecls,s=new Sa;if(e.length>0&&s.set("declarations",gl(e,a)),i.length>0&&s.set("imports",gl(i,a)),o.length>0&&s.set("exports",gl(o,a)),0===Object.keys(s.values).length)return null;var u=function l5(n){return UP("ngJitMode",n)}(new Df(Jn(Le.setNgModuleScope),[r,s.toLiteralMap()])),d=new Xu([],[u.toStmt()]);return new Df(d,[]).toStmt()}(n);null!==Z&&g.push(Z)}return null!==l&&l.length>0&&C.set("schemas",di(l.map(function(re){return re.value}))),null!==h&&(C.set("id",h),g.push(Jn(Le.registerNgModuleType).callFn([r,h]).toStmt())),{expression:Jn(Le.defineNgModule).callFn([C.toLiteralMap()],void 0,!0),type:k3(n),statements:g}}function k3(n){var r=n.type,e=n.declarations,i=n.exports,o=n.imports,a=n.includeImportTypes,s=n.publicDeclarationTypes;return new hs(Jn(Le.NgModuleDeclaration,[new hs(r.type),null===s?GM(e):N5(s),a?GM(o):ke,GM(i)]))}function GM(n){var r=n.map(function(e){return r_(e.type)});return n.length>0?Is(di(r)):ke}function N5(n){var r=n.map(function(e){return r_(e)});return n.length>0?Is(di(r)):ke}function T3(n){var r=[];return r.push({key:"name",value:rn(n.pipeName),quoted:!1}),r.push({key:"type",value:n.type.value,quoted:!1}),r.push({key:"pure",value:rn(n.pure),quoted:!1}),n.isStandalone&&r.push({key:"standalone",value:rn(!0),quoted:!1}),{expression:Jn(Le.definePipe).callFn([Qs(r)],void 0,!0),type:B5(n),statements:[]}}function B5(n){return new hs(Jn(Le.PipeDeclaration,[Md(n.type.type,n.typeArgumentCount),new hs(new ue(n.pipeName)),new hs(new ue(n.isStandalone))]))}!function(n){n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit"}(y_||(y_={})),function(n){n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule"}(yh||(yh={}));var Gf,bh=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.input=e,this.errLocation=i,this.ctxLocation=o,this.message="Parser Error: ".concat(r," ").concat(i," [").concat(e,"] in ").concat(o)}),Ch=function(){function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}return(0,B.Z)(n,[{key:"toAbsolute",value:function(e){return new Su(e+this.start,e+this.end)}}]),n}(),Ha=function(){function n(r,e){(0,H.Z)(this,n),this.span=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"AST"}}]),n}(),Kv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).nameSpan=a,s}return(0,B.Z)(e)}(Ha),Wl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}}]),e}(Ha),qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitImplicitReceiver(this,a)}}]),e}(Ha),ZC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"visit",value:function(o){var s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null===(s=o.visitThisReceiver)||void 0===s?void 0:s.call(o,this,a)}}]),e}(qv),NC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitChain(this,a)}}]),e}(Ha),Jv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).condition=a,u.trueExp=s,u.falseExp=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitConditional(this,a)}}]),e}(Ha),wh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyRead(this,a)}}]),e}(Kv),zM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,a)).receiver=s,d.name=l,d.value=u,d}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPropertyWrite(this,a)}}]),e}(Kv),Qv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o,a)).receiver=s,u.name=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafePropertyRead(this,a)}}]),e}(Kv),Xv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedRead(this,a)}}]),e}(Ha),$v=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).receiver=a,l.key=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeKeyedRead(this,a)}}]),e}(Ha),Od=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.key=s,u.value=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitKeyedWrite(this,a)}}]),e}(Ha),BC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,u)).exp=a,d.name=s,d.args=l,d}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPipe(this,a)}}]),e}(Kv),Xs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).value=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralPrimitive(this,a)}}]),e}(Ha),kh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expressions=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralArray(this,a)}}]),e}(Ha),WM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).keys=a,l.values=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitLiteralMap(this,a)}}]),e}(Ha),gs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).strings=a,l.expressions=s,l}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitInterpolation(this,a)}}]),e}(Ha),Vl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).operation=a,u.left=s,u.right=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitBinary(this,a)}}]),e}(Ha),Mu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,i,o,l,u,d)).operator=a,h.expr=s,h.left=null,h.right=null,h.operation=null,h}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==o.visitUnary?o.visitUnary(this,a):o.visitBinary(this,a)}}],[{key:"createMinus",value:function(o,a,s){return new e(o,a,"-",s,"-",new Xs(o,a,0),s)}},{key:"createPlus",value:function(o,a,s){return new e(o,a,"+",s,"-",s,new Xs(o,a,0))}}]),e}(Vl),FC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitPrefixNot(this,a)}}]),e}(Ha),ey=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).expression=a,s}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitNonNullAssert(this,a)}}]),e}(Ha),b_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitCall(this,a)}}]),e}(Ha),UC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).receiver=a,u.args=s,u.argumentSpan=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitSafeCall(this,a)}}]),e}(Ha),Su=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.start=r,this.end=e}),Yl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,new Ch(0,null===o?0:o.length),new Su(s,null===o?s:s+o.length))).ast=i,u.source=o,u.location=a,u.errors=l,u}return(0,B.Z)(e,[{key:"visit",value:function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.visitASTWithSource?o.visitASTWithSource(this,a):this.ast.visit(o,a)}},{key:"toString",value:function(){return"".concat(this.source," in ").concat(this.location)}}]),e}(Ha),VM=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),F5=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.sourceSpan=r,this.key=e,this.value=i}),U5=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visit",value:function(e,i){e.visit(this,i)}},{key:"visitUnary",value:function(e,i){this.visit(e.expr,i)}},{key:"visitBinary",value:function(e,i){this.visit(e.left,i),this.visit(e.right,i)}},{key:"visitChain",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){this.visit(e.condition,i),this.visit(e.trueExp,i),this.visit(e.falseExp,i)}},{key:"visitPipe",value:function(e,i){this.visit(e.exp,i),this.visitAll(e.args,i)}},{key:"visitImplicitReceiver",value:function(e,i){}},{key:"visitThisReceiver",value:function(e,i){}},{key:"visitInterpolation",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitKeyedWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i),this.visit(e.value,i)}},{key:"visitLiteralArray",value:function(e,i){this.visitAll(e.expressions,i)}},{key:"visitLiteralMap",value:function(e,i){this.visitAll(e.values,i)}},{key:"visitLiteralPrimitive",value:function(e,i){}},{key:"visitPrefixNot",value:function(e,i){this.visit(e.expression,i)}},{key:"visitNonNullAssert",value:function(e,i){this.visit(e.expression,i)}},{key:"visitPropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitPropertyWrite",value:function(e,i){this.visit(e.receiver,i),this.visit(e.value,i)}},{key:"visitSafePropertyRead",value:function(e,i){this.visit(e.receiver,i)}},{key:"visitSafeKeyedRead",value:function(e,i){this.visit(e.receiver,i),this.visit(e.key,i)}},{key:"visitCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitSafeCall",value:function(e,i){this.visit(e.receiver,i),this.visitAll(e.args,i)}},{key:"visitAll",value:function(e,i){var a,o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.visit(s,i)}}catch(l){o.e(l)}finally{o.f()}}}]),n}(),H5=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){return new gs(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}},{key:"visitLiteralPrimitive",value:function(e,i){return new Xs(e.span,e.sourceSpan,e.value)}},{key:"visitPropertyRead",value:function(e,i){return new wh(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitPropertyWrite",value:function(e,i){return new zM(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name,e.value.visit(this))}},{key:"visitSafePropertyRead",value:function(e,i){return new Qv(e.span,e.sourceSpan,e.nameSpan,e.receiver.visit(this),e.name)}},{key:"visitLiteralArray",value:function(e,i){return new kh(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitLiteralMap",value:function(e,i){return new WM(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}},{key:"visitUnary",value:function(e,i){switch(e.operator){case"+":return Mu.createPlus(e.span,e.sourceSpan,e.expr.visit(this));case"-":return Mu.createMinus(e.span,e.sourceSpan,e.expr.visit(this));default:throw new Error("Unknown unary operator ".concat(e.operator))}}},{key:"visitBinary",value:function(e,i){return new Vl(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}},{key:"visitPrefixNot",value:function(e,i){return new FC(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitNonNullAssert",value:function(e,i){return new ey(e.span,e.sourceSpan,e.expression.visit(this))}},{key:"visitConditional",value:function(e,i){return new Jv(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}},{key:"visitPipe",value:function(e,i){return new BC(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}},{key:"visitKeyedRead",value:function(e,i){return new Xv(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}},{key:"visitKeyedWrite",value:function(e,i){return new Od(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this),e.value.visit(this))}},{key:"visitCall",value:function(e,i){return new b_(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitSafeCall",value:function(e,i){return new UC(e.span,e.sourceSpan,e.receiver.visit(this),this.visitAll(e.args),e.argumentSpan)}},{key:"visitAll",value:function(e){for(var i=[],o=0;o<e.length;++o)i[o]=e[o].visit(this);return i}},{key:"visitChain",value:function(e,i){return new NC(e.span,e.sourceSpan,this.visitAll(e.expressions))}},{key:"visitSafeKeyedRead",value:function(e,i){return new $v(e.span,e.sourceSpan,e.receiver.visit(this),e.key.visit(this))}}]),n}(),YM=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitImplicitReceiver",value:function(e,i){return e}},{key:"visitThisReceiver",value:function(e,i){return e}},{key:"visitInterpolation",value:function(e,i){var o=this.visitAll(e.expressions);return o!==e.expressions?new gs(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 wh(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 zM(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 Qv(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 kh(e.span,e.sourceSpan,o):e}},{key:"visitLiteralMap",value:function(e,i){var o=this.visitAll(e.values);return o!==e.values?new WM(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 Mu.createPlus(e.span,e.sourceSpan,o);case"-":return Mu.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 Vl(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 FC(e.span,e.sourceSpan,o):e}},{key:"visitNonNullAssert",value:function(e,i){var o=e.expression.visit(this);return o!==e.expression?new ey(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 Jv(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 BC(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 Xv(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 Od(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 NC(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 b_(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 UC(e.span,e.sourceSpan,o,a,e.argumentSpan):e}},{key:"visitSafeKeyedRead",value:function(e,i){var o=e.receiver.visit(this),a=e.key.visit(this);return o!==e.receiver||a!==e.key?new $v(e.span,e.sourceSpan,o,a):e}}]),n}(),KM=(0,B.Z)(function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.name=r,this.expression=e,this.type=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=s,this.isLiteral=this.type===Gf.LITERAL_ATTR,this.isAnimation=this.type===Gf.ANIMATION});!function(n){n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION"}(Gf||(Gf={}));var M3=(0,B.Z)(function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.name=r,this.targetOrPhase=e,this.type=i,this.handler=o,this.sourceSpan=a,this.handlerSpan=s,this.keySpan=l}),S3=(0,B.Z)(function n(r,e,i,o,a){(0,H.Z)(this,n),this.name=r,this.value=e,this.sourceSpan=i,this.keySpan=o,this.valueSpan=a}),j5=(0,B.Z)(function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.name=r,this.type=e,this.securityContext=i,this.value=o,this.unit=a,this.sourceSpan=s,this.keySpan=l,this.valueSpan=u}),qM=(0,B.Z)(function n(){(0,H.Z)(this,n)});function C_(n,r,e,i,o,a,s){n||(n=new D3(s));var l=function G5(n,r){return function E3(n,r){var e=new Y5(n);return r.visit(e)}(n,r)}({createLiteralArrayConverter:function(Z){return function(z){return di(z)}},createLiteralMapConverter:function(Z){return function(z){return Qs(Z.map(function(re,ae){return{key:re.key,value:z[ae],quoted:re.quoted}}))}},createPipeConverter:function(Z){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(Z))}},e),u=new ty(n,r,i,!1,o,a),d=[];k_(l.visit(u,Oi.Statement),d),function JM(n,r,e){for(var i=n-1;i>=0;i--)e.unshift(x3(r,i))}(u.temporaryCount,i,d),u.usesImplicitReceiver&&n.notifyImplicitReceiverUse();var h=d.length-1;if(h>=0){var g=d[h];g instanceof Of&&(d[h]=new _s(g.expr))}return d}qM.event=ii("$event");var Oi,w_=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.stmts=r,this.currValExpr=e});function Th(n,r,e,i){n||(n=new D3);var o=new ty(n,r,i,!1),a=e.visit(o,Oi.Expression),s=W5(o,i);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),new w_(s,a)}function W5(n,r){for(var e=[],i=0;i<n.temporaryCount;i++)e.push(x3(r,i));return e}function HC(n,r){return"tmp_".concat(n,"_").concat(r)}function x3(n,r){return new Af(HC(n,r))}function jC(n,r){if(n!==Oi.Expression)throw new Error("Expected an expression, but saw ".concat(r))}function vs(n,r){return n===Oi.Statement?r.toStmt():r}!function(n){n[n.Statement=0]="Statement",n[n.Expression=1]="Expression"}(Oi||(Oi={}));var Y5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._converterFactory=i,o}return(0,B.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this,l=[o.exp].concat((0,pn.Z)(o.args)).map(function(u){return u.visit(s,a)});return new T_(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 T_(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 T_(o.span,o.sourceSpan,l,this._converterFactory.createLiteralMapConverter(o.keys))}}]),e}(H5),ty=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this._localResolver=r,this._implicitReceiver=e,this.bindingId=i,this.supportsInterpolation=o,this.baseSourceSpan=a,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}return(0,B.Z)(n,[{key:"visitUnary",value:function(e,i){var o;switch(e.operator){case"+":o=Ge.Plus;break;case"-":o=Ge.Minus;break;default:throw new Error("Unsupported operator ".concat(e.operator))}return vs(i,new $u(o,this._visit(e.expr,Oi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitBinary",value:function(e,i){var o;switch(e.operation){case"+":o=it.Plus;break;case"-":o=it.Minus;break;case"*":o=it.Multiply;break;case"/":o=it.Divide;break;case"%":o=it.Modulo;break;case"&&":o=it.And;break;case"||":o=it.Or;break;case"==":o=it.Equals;break;case"!=":o=it.NotEquals;break;case"===":o=it.Identical;break;case"!==":o=it.NotIdentical;break;case"<":o=it.Lower;break;case">":o=it.Bigger;break;case"<=":o=it.LowerEquals;break;case">=":o=it.BiggerEquals;break;case"??":return this.convertNullishCoalesce(e,i);default:throw new Error("Unsupported operation ".concat(e.operation))}return vs(i,new yo(o,this._visit(e.left,Oi.Expression),this._visit(e.right,Oi.Expression),void 0,this.convertSourceSpan(e.span)))}},{key:"visitChain",value:function(e,i){return function V5(n,r){if(n!==Oi.Statement)throw new Error("Expected a statement, but saw ".concat(r))}(i,e),this.visitAll(e.expressions,i)}},{key:"visitConditional",value:function(e,i){return vs(i,this._visit(e.condition,Oi.Expression).conditional(this._visit(e.trueExp,Oi.Expression),this._visit(e.falseExp,Oi.Expression),this.convertSourceSpan(e.span)))}},{key:"visitPipe",value:function(e,i){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: ".concat(e.name))}},{key:"visitImplicitReceiver",value:function(e,i){return jC(i,e),this.usesImplicitReceiver=!0,this._implicitReceiver}},{key:"visitThisReceiver",value:function(e,i){return this.visitImplicitReceiver(e,i)}},{key:"visitInterpolation",value:function(e,i){if(!this.supportsInterpolation)throw new Error("Unexpected interpolation");jC(i,e);for(var o=[],a=0;a<e.strings.length-1;a++)o.push(rn(e.strings[a])),o.push(this._visit(e.expressions[a],Oi.Expression));o.push(rn(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=[di(o)]),new K5(o)}},{key:"visitKeyedRead",value:function(e,i){var o=this.leftMostSafeNode(e);return o?this.convertSafeAccess(e,o,i):vs(i,this._visit(e.receiver,Oi.Expression).key(this._visit(e.key,Oi.Expression)))}},{key:"visitKeyedWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this._visit(e.key,Oi.Expression),s=this._visit(e.value,Oi.Expression);return o===this._implicitReceiver&&this._localResolver.maybeRestoreView(),vs(i,o.key(a).set(s))}},{key:"visitLiteralArray",value:function(e,i){throw new Error("Illegal State: literal arrays should have been converted into functions")}},{key:"visitLiteralMap",value:function(e,i){throw new Error("Illegal State: literal maps should have been converted into functions")}},{key:"visitLiteralPrimitive",value:function(e,i){var o=null===e.value||void 0===e.value||!0===e.value||!0===e.value?ia:void 0;return vs(i,rn(e.value,o,this.convertSourceSpan(e.span)))}},{key:"_getLocal",value:function(e,i){var o;return(null===(o=this._localResolver.globals)||void 0===o?void 0:o.has(e))&&i instanceof ZC?null:this._localResolver.getLocal(e)}},{key:"visitPrefixNot",value:function(e,i){return vs(i,uh(this._visit(e.expression,Oi.Expression)))}},{key:"visitNonNullAssert",value:function(e,i){return vs(i,this._visit(e.expression,Oi.Expression))}},{key:"visitPropertyRead",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=null,s=this.usesImplicitReceiver,l=this._visit(e.receiver,Oi.Expression);return l===this._implicitReceiver&&((a=this._getLocal(e.name,e.receiver))&&(this.usesImplicitReceiver=s,this.addImplicitReceiverAccess(e.name))),null==a&&(a=l.prop(e.name,this.convertSourceSpan(e.span))),vs(i,a)}},{key:"visitPropertyWrite",value:function(e,i){var o=this._visit(e.receiver,Oi.Expression),a=this.usesImplicitReceiver,s=null;if(o===this._implicitReceiver){var l=this._getLocal(e.name,e.receiver);if(l){if(!(l instanceof uC)){var u=e.name,d=e.value instanceof wh?e.value.name:void 0;throw new Error('Cannot assign value "'.concat(d,'" to template variable "').concat(u,'". Template variables are read-only.'))}s=l,this.usesImplicitReceiver=a,this.addImplicitReceiverAccess(e.name)}}return null===s&&(s=o.prop(e.name,this.convertSourceSpan(e.span))),vs(i,s.set(this._visit(e.value,Oi.Expression)))}},{key:"visitSafePropertyRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitSafeKeyedRead",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"visitAll",value:function(e,i){var o=this;return e.map(function(a){return o._visit(a,i)})}},{key:"visitCall",value:function(e,i){var o=this.leftMostSafeNode(e);if(o)return this.convertSafeAccess(e,o,i);var a=this.visitAll(e.args,Oi.Expression);if(e instanceof T_)return vs(i,e.converter(a));var s=e.receiver;if(s instanceof wh&&s.receiver instanceof qv&&!(s.receiver instanceof ZC)&&"$any"===s.name){if(1!==a.length)throw new Error("Invalid call to $any, expected 1 argument but received ".concat(a.length||"none"));return vs(i,a[0])}return vs(i,this._visit(s,Oi.Expression).callFn(a,this.convertSourceSpan(e.span)))}},{key:"visitSafeCall",value:function(e,i){return this.convertSafeAccess(e,this.leftMostSafeNode(e),i)}},{key:"_visit",value:function(e,i){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,i)}},{key:"convertSafeAccess",value:function(e,i,o){var a=this._visit(i.receiver,Oi.Expression),s=void 0;this.needsTemporaryInSafeAccess(i.receiver)&&(a=(s=this.allocateTemporary()).set(a),this._resultMap.set(i.receiver,s));var l=a.isBlank();i instanceof UC?this._nodeMap.set(i,new b_(i.span,i.sourceSpan,i.receiver,i.args,i.argumentSpan)):i instanceof $v?this._nodeMap.set(i,new Xv(i.span,i.sourceSpan,i.receiver,i.key)):this._nodeMap.set(i,new wh(i.span,i.sourceSpan,i.nameSpan,i.receiver,i.name));var u=this._visit(e,Oi.Expression);return this._nodeMap.delete(i),s&&this.releaseTemporary(s),vs(o,l.conditional(t_,u))}},{key:"convertNullishCoalesce",value:function(e,i){var o=this._visit(e.left,Oi.Expression),a=this._visit(e.right,Oi.Expression),s=this.allocateTemporary();return this.releaseTemporary(s),vs(i,s.set(o).notIdentical(t_).and(s.notIdentical(rn(void 0))).conditional(s,a))}},{key:"leftMostSafeNode",value:function(e){var i=this,o=function(s,l){return(i._nodeMap.get(l)||l).visit(s)};return e.visit({visitUnary:function(s){return null},visitBinary:function(s){return null},visitChain:function(s){return null},visitConditional:function(s){return null},visitCall:function(s){return o(this,s.receiver)},visitSafeCall:function(s){return o(this,s.receiver)||s},visitImplicitReceiver:function(s){return null},visitThisReceiver:function(s){return null},visitInterpolation:function(s){return null},visitKeyedRead:function(s){return o(this,s.receiver)},visitKeyedWrite:function(s){return null},visitLiteralArray:function(s){return null},visitLiteralMap:function(s){return null},visitLiteralPrimitive:function(s){return null},visitPipe:function(s){return null},visitPrefixNot:function(s){return null},visitNonNullAssert:function(s){return null},visitPropertyRead:function(s){return o(this,s.receiver)},visitPropertyWrite:function(s){return null},visitSafePropertyRead:function(s){return o(this,s.receiver)||s},visitSafeKeyedRead:function(s){return o(this,s.receiver)||s}})}},{key:"needsTemporaryInSafeAccess",value:function(e){var i=this,o=function(l,u){return u&&(i._nodeMap.get(u)||u).visit(l)};return e.visit({visitUnary:function(l){return o(this,l.expr)},visitBinary:function(l){return o(this,l.left)||o(this,l.right)},visitChain:function(l){return!1},visitConditional:function(l){return o(this,l.condition)||o(this,l.trueExp)||o(this,l.falseExp)},visitCall:function(l){return!0},visitSafeCall:function(l){return!0},visitImplicitReceiver:function(l){return!1},visitThisReceiver:function(l){return!1},visitInterpolation:function(l){return function(l,u){return u.some(function(d){return o(l,d)})}(this,l.expressions)},visitKeyedRead:function(l){return!1},visitKeyedWrite:function(l){return!1},visitLiteralArray:function(l){return!0},visitLiteralMap:function(l){return!0},visitLiteralPrimitive:function(l){return!1},visitPipe:function(l){return!0},visitPrefixNot:function(l){return o(this,l.expression)},visitNonNullAssert:function(l){return o(this,l.expression)},visitPropertyRead:function(l){return!1},visitPropertyWrite:function(l){return!1},visitSafePropertyRead:function(l){return!1},visitSafeKeyedRead:function(l){return!1}})}},{key:"allocateTemporary",value:function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ms(HC(this.bindingId,e))}},{key:"releaseTemporary",value:function(e){if(this._currentTemporary--,e.name!=HC(this.bindingId,this._currentTemporary))throw new Error("Temporary ".concat(e.name," released out of order"))}},{key:"convertSourceSpan",value:function(e){if(this.baseSourceSpan){var i=this.baseSourceSpan.start.moveBy(e.start),o=this.baseSourceSpan.start.moveBy(e.end),a=this.baseSourceSpan.fullStart.moveBy(e.start);return new Qa(i,o,a)}return null}},{key:"addImplicitReceiverAccess",value:function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)}}]),n}();function k_(n,r){Array.isArray(n)?n.forEach(function(e){return k_(e,r)}):r.push(n)}function QM(){throw new Error("Unsupported operation")}var ny,K5=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this,null,null)).args=i,o.isConstant=QM,o.isEquivalent=QM,o.visitExpression=QM,o}return(0,B.Z)(e)}(Pr),D3=function(){function n(r){(0,H.Z)(this,n),this.globals=r}return(0,B.Z)(n,[{key:"notifyImplicitReceiverUse",value:function(){}},{key:"maybeRestoreView",value:function(){}},{key:"getLocal",value:function(e){return e===qM.event.name?qM.event:null}}]),n}(),T_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o,new Wl(i,o),a,null)).converter=s,l}return(0,B.Z)(e)}(b_);function XM(){return ny||(ny={},GC(Hi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),GC(Hi.STYLE,["*|style"]),GC(Hi.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),GC(Hi.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ny}function GC(n,r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;ny[o.toLowerCase()]=n}}catch(a){e.e(a)}finally{e.f()}}var M_=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function Nc(n){return M_.has(n.toLowerCase())}var q5=function(){function n(){(0,H.Z)(this,n),this.strictStyling=!0}return(0,B.Z)(n,[{key:"shimCssText",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=n4(e);e=Z3(e),e=this._insertDirectives(e);var s=this._scopeCssText(e,i,o);return[s].concat((0,pn.Z)(a)).join("\n")}},{key:"_insertDirectives",value:function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}},{key:"_insertPolyfillDirectivesInCssText",value:function(e){return e.replace(hV,function(){return(arguments.length<=2?void 0:arguments[2])+"{"})}},{key:"_insertPolyfillRulesInCssText",value:function(e){return e.replace(mV,function(){for(var i=arguments.length,o=new Array(i),a=0;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($M.lastIndex=0;null!==(o=$M.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(O3,function(i,o,a){if(o){var d,s=[],l=o.split(",").map(function(C){return C.trim()}),u=(0,xn.Z)(l);try{for(u.s();!(d=u.n()).done;){var h=d.value;if(!h)break;var g=Mh+h.replace(eS,"")+a;s.push(g)}}catch(C){u.e(C)}finally{u.f()}return s.join(",")}return Mh+a})}},{key:"_convertColonHostContext",value:function(e){return e.replace(Q5,function(i){for(var o,s,a=[[]];s=I3.exec(i);){var l=(null!==(o=s[1])&&void 0!==o?o:"").trim().split(",").map(function(g){return g.trim()}).filter(function(g){return""!==g}),u=a.length;a4(a,l.length);for(var d=0;d<l.length;d++)for(var h=0;h<u;h++)a[h+d*u].push(l[d]);i=s[2]}return a.map(function(g){return function o4(n,r){var e=Mh;S_.lastIndex=0;var i=S_.test(r);if(0===n.length)return e+r;for(var o=[n.pop()||""];n.length>0;)for(var a=o.length,s=n.pop(),l=0;l<a;l++){var u=o[l];o[2*a+l]=u+" "+s,o[a+l]=s+" "+u,o[l]=s+u}return o.map(function(d){return i?"".concat(d).concat(r):"".concat(d).concat(e).concat(r,", ").concat(d," ").concat(e).concat(r)}).join(",")}(g,i)}).join(", ")})}},{key:"_convertShadowDOMSelectors",value:function(e){return rc.reduce(function(i,o){return i.replace(o," ")},e)}},{key:"_scopeSelectors",value:function(e,i,o){var a=this;return rS(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 nS(l,u)})}},{key:"_stripScopingSelectors",value:function(e){return rS(e,function(i){var o=i.selector.replace(R3," ").replace(P3," ");return new nS(o,i.content)})}},{key:"_scopeSelector",value:function(e,i,o,a){var s=this;return e.split(",").map(function(l){return l.trim().split(R3)}).map(function(l){var Z,u=(0,go.Z)(l),d=u[0],h=u.slice(1);return[(Z=d,s._selectorNeedsScoping(Z,i)?a?s._applyStrictSelectorScope(Z,i,o):s._applySelectorScope(Z,i,o):Z)].concat((0,pn.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+")"+L3,"m")}},{key:"_applySelectorScope",value:function(e,i,o){return this._applySimpleSelectorScope(e,i,o)}},{key:"_applySimpleSelectorScope",value:function(e,i,o){if(S_.lastIndex=0,S_.test(e)){var a=this.strictStyling?"[".concat(o,"]"):i;return e.replace(P3,function(s,l){return l.replace(/([^:]*)(:*)(.*)/,function(u,d,h,g){return d+a+h+g})}).replace(S_,a+" ")}return i+" "+e}},{key:"_applyStrictSelectorScope",value:function(e,i,o){var a=this;i=i.replace(/\[is=([^\]]*)\]/g,function(Ee){return arguments.length<=1?void 0:arguments[1]});for(var C,l="["+i+"]",u=function(Ve){var ut=Ve.trim();if(!ut)return"";if(Ve.indexOf(Mh)>-1)ut=a._applySimpleSelectorScope(Ve,i,o);else{var Ae=Ve.replace(S_,"");if(Ae.length>0){var ot=Ae.match(/([^:]*)(:*)(.*)/);ot&&(ut=ot[1]+l+ot[2]+ot[3])}}return ut},d=new J5(e),h="",g=0,Z=/( |>|\+|~(?!=))\s*/g,q=!((e=d.content()).indexOf(Mh)>-1);null!==(C=Z.exec(e));){var re=C[1],ae=e.slice(g,C.index).trim(),Se=(q=q||ae.indexOf(Mh)>-1)?u(ae):ae;h+="".concat(Se," ").concat(re," "),g=Z.lastIndex}var Ce=e.substring(g);return h+=(q=q||Ce.indexOf(Mh)>-1)?u(Ce):Ce,d.restore(h)}},{key:"_insertPolyfillHostInCssText",value:function(e){return e.replace($5,zC).replace(X5,eS)}}]),n}(),J5=function(){function n(r){var e=this;(0,H.Z)(this,n),this.placeholders=[],this.index=0,r=this._escapeRegexMatches(r,/(\[[^\]]*\])/g),r=this._escapeRegexMatches(r,/(\\.)/g),this._content=r.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(i,o,a){var s="__ph-".concat(e.index,"__");return e.placeholders.push(a),e.index++,o+s})}return(0,B.Z)(n,[{key:"restore",value:function(e){var i=this;return e.replace(/__ph-(\d+)__/g,function(o,a){return i.placeholders[+a]})}},{key:"content",value:function(){return this._content}},{key:"_escapeRegexMatches",value:function(e,i){var o=this;return e.replace(i,function(a,s){var l="__ph-".concat(o.index,"__");return o.placeholders.push(s),o.index++,l})}}]),n}(),hV=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,mV=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$M=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eS="-shadowcsshost",zC="-shadowcsscontext",A3="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",O3=new RegExp(eS+A3,"gim"),Q5=new RegExp(zC+A3,"gim"),I3=new RegExp(zC+A3,"im"),Mh=eS+"-no-combinator",P3=/-shadowcsshost-no-combinator([^\s]*)/,rc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],R3=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,L3="([>\\s~+[.,{:][\\s\\S]*)?$",S_=/-shadowcsshost/gim,X5=/:host/gim,$5=/:host-context/gim,e4=/\/\*[\s\S]*?\*\//g;function Z3(n){return n.replace(e4,"")}var t4=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;function n4(n){return n.match(t4)||[]}var tS="%BLOCK%",N3=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,B3=/%QUOTED%/g,F3=new Map([["{","}"]]),r4=new Map([['"','"'],["'","'"]]),nS=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.selector=r,this.content=e});function rS(n,r){var e=iS(n,r4,"%QUOTED%"),i=iS(e.escapedString,F3,tS),o=0,a=0;return i.escapedString.replace(N3,function(){var s=arguments.length<=2?void 0:arguments[2],l="",u=arguments.length<=4?void 0:arguments[4],d="";u&&u.startsWith("{"+tS)&&(l=i.blocks[o++],u=u.substring(tS.length+1),d="{");var h=r(new nS(s,l));return"".concat(arguments.length<=1?void 0:arguments[1]).concat(h.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(d).concat(h.content).concat(u)}).replace(B3,function(){return e.blocks[a++]})}var i4=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.escapedString=r,this.blocks=e});function iS(n,r,e){for(var u,d,i=[],o=[],a=0,s=0,l=-1,h=0;h<n.length;h++){var g=n[h];"\\"===g?h++:g===d?0===--a&&(o.push(n.substring(l,h)),i.push(e),s=h,l=-1,u=d=void 0):g===u?a++:0===a&&r.has(g)&&(u=g,d=r.get(g),a=1,l=h+1,i.push(n.substring(s,l)))}return-1!==l?(o.push(n.substring(l)),i.push(e)):i.push(n.substring(s)),new i4(i.join(""),o)}function a4(n,r){for(var e=n.length,i=1;i<r;i++)for(var o=0;o<e;o++)n[o+i*e]=n[o].slice(0)}function oS(n){var r=n.charCodeAt(0);if(r==n.charCodeAt(n.length-1)&&(39==r||34==r)){var i=n.substring(1,n.length-1);-1==i.indexOf("'")&&-1==i.indexOf('"')&&(n=i)}return n}function aS(n){return n.replace(/[a-z][A-Z]/g,function(r){return r.charAt(0)+"-"+r.charAt(1)}).toLowerCase()}var Xr,VC=function(){function n(r){(0,H.Z)(this,n),this._directiveExpr=r,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}return(0,B.Z)(n,[{key:"registerBoundInput",value:function(e){var i=null,o=e.name;switch(e.type){case 0:i=this.registerInputBasedOnName(o,e.value,e.sourceSpan);break;case 3:i=this.registerStyleInput(o,!1,e.value,e.sourceSpan,e.unit);break;case 2:i=this.registerClassInput(o,!1,e.value,e.sourceSpan)}return!!i}},{key:"registerInputBasedOnName",value:function(e,i,o){var a=null,s=e.substring(0,6),l="style"===e||"style."===s||"style!"===s;if(l||!l&&("class"===e||"class."===s||"class!"===s)){var d="."!==e.charAt(5),h=e.slice(d?5:6);a=l?this.registerStyleInput(h,d,i,o):this.registerClassInput(h,d,i,o)}return a}},{key:"registerStyleInput",value:function(e,i,o,a,s){if(sS(o))return null;(function d4(n){return n.startsWith("--")})(e)||(e=aS(e));var l=U3(e),u=l.property,d=l.hasOverrideFlag,h=l.suffix,g={name:u,suffix:s="string"==typeof s&&0!==s.length?s:h,value:o,sourceSpan:a,hasOverrideFlag:d};return i?this._styleMapInput=g:((this._singleStyleInputs=this._singleStyleInputs||[]).push(g),YC(this._stylesIndex,u)),this._lastStylingInput=g,this._firstStylingInput=this._firstStylingInput||g,this._checkForPipes(o),this.hasBindings=!0,g}},{key:"registerClassInput",value:function(e,i,o,a){if(sS(o))return null;var s=U3(e),l=s.property,d={name:l,value:o,sourceSpan:a,hasOverrideFlag:s.hasOverrideFlag,suffix:null};return i?this._classMapInput=d:((this._singleClassInputs=this._singleClassInputs||[]).push(d),YC(this._classesIndex,l)),this._lastStylingInput=d,this._firstStylingInput=this._firstStylingInput||d,this._checkForPipes(o),this.hasBindings=!0,d}},{key:"_checkForPipes",value:function(e){e instanceof Yl&&e.ast instanceof BC&&(this.hasBindingsWithPipes=!0)}},{key:"registerStyleAttr",value:function(e){this._initialStyleValues=function s4(n){for(var r=[],e=0,i=0,o=0,a=0,s=0,l=null,u=!1;e<n.length;)switch(n.charCodeAt(e++)){case 40:i++;break;case 41:i--;break;case 39:u=u||a>0,0===o?o=39:39===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 34:u=u||a>0,0===o?o=34:34===o&&92!==n.charCodeAt(e-1)&&(o=0);break;case 58:!l&&0===i&&0===o&&(l=aS(n.substring(s,e-1).trim()),a=e);break;case 59:if(l&&a>0&&0===i&&0===o){var h=n.substring(a,e-1).trim();r.push(l,u?oS(h):h),s=e,a=0,l=null,u=!1}}if(l&&a){var g=n.slice(a).trim();r.push(l,u?oS(g):g)}return r}(e),this._hasInitialValues=!0}},{key:"registerClassAttr",value:function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0}},{key:"populateInitialStylingAttrs",value:function(e){if(this._initialClassValues.length){e.push(rn(1));for(var i=0;i<this._initialClassValues.length;i++)e.push(rn(this._initialClassValues[i]))}if(this._initialStyleValues.length){e.push(rn(2));for(var o=0;o<this._initialStyleValues.length;o+=2)e.push(rn(this._initialStyleValues[o]),rn(this._initialStyleValues[o+1]))}}},{key:"assignHostAttrs",value:function(e,i){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),i.set("hostAttrs",di(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 gs?(a+=s.expressions.length,l=i?function l4(n){switch(Sd(n)){case 1:return Le.classMap;case 3:return Le.classMapInterpolate1;case 5:return Le.classMapInterpolate2;case 7:return Le.classMapInterpolate3;case 9:return Le.classMapInterpolate4;case 11:return Le.classMapInterpolate5;case 13:return Le.classMapInterpolate6;case 15:return Le.classMapInterpolate7;case 17:return Le.classMapInterpolate8;default:return Le.classMapInterpolateV}}(s):function u4(n){switch(Sd(n)){case 1:return Le.styleMap;case 3:return Le.styleMapInterpolate1;case 5:return Le.styleMapInterpolate2;case 7:return Le.styleMapInterpolate3;case 9:return Le.styleMapInterpolate4;case 11:return Le.styleMapInterpolate5;case 13:return Le.styleMapInterpolate6;case 15:return Le.styleMapInterpolate7;case 17:return Le.styleMapInterpolate8;default:return Le.styleMapInterpolateV}}(s)):l=i?Le.classMap:Le.styleMap,{reference:l,calls:[{supportsInterpolation:!0,sourceSpan:o.sourceSpan,allocateBindingSlots:a,params:function(d){var h=d(s);return Array.isArray(h)?h:[h]}}]}}},{key:"_buildSingleInputs",value:function(e,i,o,a,s){var l=[];return i.forEach(function(u){var d=l[l.length-1],h=u.value.visit(o),g=e,C=2;h instanceof gs&&(C+=h.expressions.length,a&&(g=a(h)));var Z={sourceSpan:u.sourceSpan,allocateBindingSlots:C,supportsInterpolation:!!a,params:function(q){var re=[];re.push(rn(u.name));var ae=q(h);return Array.isArray(ae)?re.push.apply(re,(0,pn.Z)(ae)):re.push(ae),!s&&null!==u.suffix&&re.push(rn(u.suffix)),re}};d&&d.reference===g?d.calls.push(Z):l.push({reference:g,calls:[Z]})}),l}},{key:"_buildClassInputs",value:function(e){return this._singleClassInputs?this._buildSingleInputs(Le.classProp,this._singleClassInputs,e,null,!0):[]}},{key:"_buildStyleInputs",value:function(e){return this._singleStyleInputs?this._buildSingleInputs(Le.styleProp,this._singleStyleInputs,e,c4,!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,pn.Z)(this._buildStyleInputs(e))),i.push.apply(i,(0,pn.Z)(this._buildClassInputs(e)))}return i}}]),n}();function YC(n,r){n.has(r)||n.set(r,n.size)}function U3(n){var r=!1,e=n.indexOf("!important");-1!==e&&(n=e>0?n.substring(0,e):"",r=!0);var i=null,o=n,a=n.lastIndexOf(".");return a>0&&(i=n.slice(a+1),o=n.substring(0,a)),{property:o,suffix:i,hasOverrideFlag:r}}function c4(n){switch(Sd(n)){case 1:return Le.styleProp;case 3:return Le.stylePropInterpolate1;case 5:return Le.stylePropInterpolate2;case 7:return Le.stylePropInterpolate3;case 9:return Le.stylePropInterpolate4;case 11:return Le.stylePropInterpolate5;case 13:return Le.stylePropInterpolate6;case 15:return Le.stylePropInterpolate7;case 17:return Le.stylePropInterpolate8;default:return Le.stylePropInterpolateV}}function sS(n){return n instanceof Yl&&(n=n.ast),n instanceof Wl}!function(n){n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error"}(Xr||(Xr={}));var f4=["var","let","as","null","undefined","true","false","if","else","this"],Id=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"tokenize",value:function(e){for(var i=new dS(e),o=[],a=i.scanToken();null!=a;)o.push(a),a=i.scanToken();return o}}]),n}(),Pd=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.index=r,this.end=e,this.type=i,this.numValue=o,this.strValue=a}return(0,B.Z)(n,[{key:"isCharacter",value:function(e){return this.type==Xr.Character&&this.numValue==e}},{key:"isNumber",value:function(){return this.type==Xr.Number}},{key:"isString",value:function(){return this.type==Xr.String}},{key:"isOperator",value:function(e){return this.type==Xr.Operator&&this.strValue==e}},{key:"isIdentifier",value:function(){return this.type==Xr.Identifier}},{key:"isPrivateIdentifier",value:function(){return this.type==Xr.PrivateIdentifier}},{key:"isKeyword",value:function(){return this.type==Xr.Keyword}},{key:"isKeywordLet",value:function(){return this.type==Xr.Keyword&&"let"==this.strValue}},{key:"isKeywordAs",value:function(){return this.type==Xr.Keyword&&"as"==this.strValue}},{key:"isKeywordNull",value:function(){return this.type==Xr.Keyword&&"null"==this.strValue}},{key:"isKeywordUndefined",value:function(){return this.type==Xr.Keyword&&"undefined"==this.strValue}},{key:"isKeywordTrue",value:function(){return this.type==Xr.Keyword&&"true"==this.strValue}},{key:"isKeywordFalse",value:function(){return this.type==Xr.Keyword&&"false"==this.strValue}},{key:"isKeywordThis",value:function(){return this.type==Xr.Keyword&&"this"==this.strValue}},{key:"isError",value:function(){return this.type==Xr.Error}},{key:"toNumber",value:function(){return this.type==Xr.Number?this.numValue:-1}},{key:"toString",value:function(){switch(this.type){case Xr.Character:case Xr.Identifier:case Xr.Keyword:case Xr.Operator:case Xr.PrivateIdentifier:case Xr.String:case Xr.Error:return this.strValue;case Xr.Number:return this.numValue.toString();default:return null}}}]),n}();function lS(n,r,e){return new Pd(n,r,Xr.Character,e,String.fromCharCode(e))}function uS(n,r,e){return new Pd(n,r,Xr.Operator,0,e)}var cS=new Pd(-1,-1,Xr.Character,0,""),dS=function(){function n(r){(0,H.Z)(this,n),this.input=r,this.peek=0,this.index=-1,this.length=r.length,this.advance()}return(0,B.Z)(n,[{key:"advance",value:function(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}},{key:"scanToken",value:function(){for(var e=this.input,i=this.length,o=this.peek,a=this.index;o<=32;){if(++a>=i){o=0;break}o=e.charCodeAt(a)}if(this.peek=o,this.index=a,a>=i)return null;if(fS(o))return this.scanIdentifier();if(jf(o))return this.scanNumber(a);var s=a;switch(o){case 46:return this.advance(),jf(this.peek)?this.scanNumber(s):lS(s,this.index,46);case 40:case 41:case Hf:case Lc:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(s,o);case 39:case 34:return this.scanString();case 35:return this.scanPrivateIdentifier();case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(o));case 63:return this.scanQuestion(s);case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(o),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;LM(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(),lS(e,this.index,i)}},{key:"scanOperator",value:function(e,i){return this.advance(),uS(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),uS(e,this.index,u)}},{key:"scanIdentifier",value:function(){var e=this.index;for(this.advance();KC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return f4.indexOf(i)>-1?function j3(n,r,e){return new Pd(n,r,Xr.Keyword,0,e)}(e,this.index,i):function H3(n,r,e){return new Pd(n,r,Xr.Identifier,0,e)}(e,this.index,i)}},{key:"scanPrivateIdentifier",value:function(){var e=this.index;if(this.advance(),!fS(this.peek))return this.error("Invalid character [#]",-1);for(;KC(this.peek);)this.advance();var i=this.input.substring(e,this.index);return function p4(n,r,e){return new Pd(n,r,Xr.PrivateIdentifier,0,e)}(e,this.index,i)}},{key:"scanNumber",value:function(e){var i=this.index===e,o=!1;for(this.advance();;){if(!jf(this.peek))if(95===this.peek){if(!jf(this.input.charCodeAt(this.index-1))||!jf(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);o=!0}else if(46===this.peek)i=!1;else{if(!pS(this.peek))break;if(this.advance(),ry(this.peek)&&this.advance(),!jf(this.peek))return this.error("Invalid exponent",-1);i=!1}this.advance()}var a=this.input.substring(e,this.index);o&&(a=a.replace(/_/g,""));var s=i?function z3(n){var r=parseInt(n);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+n);return r}(a):parseFloat(a);return function m4(n,r,e){return new Pd(n,r,Xr.Number,e,"")}(e,this.index,s)}},{key:"scanString",value:function(){var e=this.index,i=this.peek;this.advance();for(var o="",a=this.index,s=this.input;this.peek!=i;)if(92==this.peek){o+=s.substring(a,this.index),this.advance();var l=void 0;if(this.peek=this.peek,117==this.peek){var u=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(u))return this.error("Invalid unicode escape [\\u".concat(u,"]"),0);l=parseInt(u,16);for(var d=0;d<5;d++)this.advance()}else l=G3(this.peek),this.advance();o+=String.fromCharCode(l),a=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var h=s.substring(a,this.index);return this.advance(),function h4(n,r,e){return new Pd(n,r,Xr.String,0,e)}(e,this.index,o+h)}},{key:"scanQuestion",value:function(e){this.advance();var i="?";return(63===this.peek||46===this.peek)&&(i+=46===this.peek?".":"?",this.advance()),uS(e,this.index,i)}},{key:"error",value:function(e,i){var o=this.index+i;return function _4(n,r,e){return new Pd(n,r,Xr.Error,0,e)}(o,this.index,"Lexer Error: ".concat(e," at column ").concat(o," in expression [").concat(this.input,"]"))}}]),n}();function fS(n){return 97<=n&&n<=122||65<=n&&n<=90||95==n||36==n}function KC(n){return ZM(n)||jf(n)||95==n||36==n}function pS(n){return 101==n||69==n}function ry(n){return 45==n||43==n}function G3(n){switch(n){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return n}}var Sh,v4=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.strings=r,this.expressions=e,this.offsets=i}),E_=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.templateBindings=r,this.warnings=e,this.errors=i}),hS=function(){function n(r){(0,H.Z)(this,n),this._lexer=r,this.errors=[]}return(0,B.Z)(n,[{key:"parseAction",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu;this._checkNoInterpolation(e,o,s);var l=this._stripComments(e),u=this._lexer.tokenize(l),d=1;i&&(d|=2);var h=new zf(e,o,a,u,d,this.errors,0).parseChain();return new Yl(h,e,o,a,this.errors)}},{key:"parseBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,s=this._parseBindingAst(e,i,o,a);return new Yl(s,e,i,o,this.errors)}},{key:"checkSimpleExpression",value:function(e){var i=new ic;return e.visit(i),i.errors}},{key:"parseSimpleBinding",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wu,s=this._parseBindingAst(e,i,o,a),l=this.checkSimpleExpression(s);return l.length>0&&this._reportError("Host binding expression cannot contain ".concat(l.join(" ")),e,i),new Yl(s,e,i,o,this.errors)}},{key:"_reportError",value:function(e,i,o,a){this.errors.push(new bh(e,i,o,a))}},{key:"_parseBindingAst",value:function(e,i,o,a){this._checkNoInterpolation(e,i,a);var s=this._stripComments(e),l=this._lexer.tokenize(s);return new zf(e,i,o,l,0,this.errors,0).parseChain()}},{key:"parseTemplateBindings",value:function(e,i,o,a,s){var l=this._lexer.tokenize(i);return new zf(i,o,s,l,0,this.errors,0).parseTemplateBindings({source:e,span:new Su(a,a+e.length)})}},{key:"parseInterpolation",value:function(e,i,o,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wu,l=this.splitInterpolation(e,i,a,s),u=l.strings,d=l.expressions,h=l.offsets;if(0===d.length)return null;for(var g=[],C=0;C<d.length;++C){var Z=d[C].text,z=this._stripComments(Z),q=this._lexer.tokenize(z),re=new zf(e,i,o,q,0,this.errors,h[C]).parseChain();g.push(re)}return this.createInterpolationAst(u.map(function(ae){return ae.text}),g,e,i,o)}},{key:"parseInterpolationExpression",value:function(e,i,o){var a=this._stripComments(e),s=this._lexer.tokenize(a),l=new zf(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 Ch(0,o.length),u=new gs(l,l.toAbsolute(s),e,i);return new Yl(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]:wu,l=[],u=[],d=[],h=o?W3(o):null,g=0,C=!1,Z=!1,z=a.start,q=a.end;g<e.length;)if(C){var Se=g,Ce=Se+z.length,Ee=this._getInterpolationEndIndex(e,q,Ce);if(-1===Ee){C=!1,Z=!0;break}var Ve=Ee+q.length,ut=e.substring(Ce,Ee);0===ut.trim().length&&this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(g," in"),i),u.push({text:ut,start:Se,end:Ve});var Ae=null!==(s=null==h?void 0:h.get(Se))&&void 0!==s?s:Se,ot=Ae+z.length;d.push(ot),g=Ve,C=!1}else{var re=g;-1===(g=e.indexOf(z,g))&&(g=e.length);var ae=e.substring(re,g);l.push({text:ae,start:re,end:g}),C=!0}if(!C)if(Z){var ht=l[l.length-1];ht.text+=e.substring(g),ht.end=e.length}else l.push({text:e.substring(g),start:g,end:e.length});return new v4(l,u,d)}},{key:"wrapLiteralPrimitive",value:function(e,i,o){var a=new Ch(0,null==e?0:e.length);return new Yl(new Xs(a,a.toAbsolute(o),e),e,i,o,this.errors)}},{key:"_stripComments",value:function(e){var i=this._commentStart(e);return null!=i?e.substring(0,i):e}},{key:"_commentStart",value:function(e){for(var i=null,o=0;o<e.length-1;o++){var a=e.charCodeAt(o),s=e.charCodeAt(o+1);if(47===a&&47==s&&null==i)return o;i===a?i=null:null==i&&IC(a)&&(i=a)}return null}},{key:"_checkNoInterpolation",value:function(e,i,o){var h,a=o.start,s=o.end,l=-1,u=-1,d=(0,xn.Z)(this._forEachUnquotedChar(e,0));try{for(d.s();!(h=d.n()).done;){var g=h.value;if(-1===l)e.startsWith(a)&&(l=g);else if((u=this._getInterpolationEndIndex(e,s,g))>-1)break}}catch(C){d.e(C)}finally{d.f()}l>-1&&u>-1&&this._reportError("Got interpolation (".concat(a).concat(s,") where expression was expected"),e,"at column ".concat(l," in"),i)}},{key:"_getInterpolationEndIndex",value:function(e,i,o){var s,a=(0,xn.Z)(this._forEachUnquotedChar(e,o));try{for(a.s();!(s=a.n()).done;){var l=s.value;if(e.startsWith(i,l))return l;if(e.startsWith("//",l))return e.indexOf(i,l)}}catch(u){a.e(u)}finally{a.f()}return-1}},{key:"_forEachUnquotedChar",value:Rn().mark(function r(e,i){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:o=null,a=0,s=i;case 3:if(!(s<e.length)){d.next=16;break}if(l=e[s],!IC(e.charCodeAt(s))||null!==o&&o!==l||a%2!=0){d.next=9;break}o=null===o?l:null,d.next=12;break;case 9:if(null!==o){d.next=12;break}return d.next=12,s;case 12:a="\\"===l?a+1:0;case 13:s++,d.next=3;break;case 16:case"end":return d.stop()}},r)})}]),n}();!function(n){n[n.None=0]="None",n[n.Writable=1]="Writable"}(Sh||(Sh={}));var zf=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.input=r,this.location=e,this.absoluteOffset=i,this.tokens=o,this.parseFlags=a,this.errors=s,this.offset=l,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Sh.None,this.sourceSpanCache=new Map,this.index=0}return(0,B.Z)(n,[{key:"peek",value:function(e){var i=this.index+e;return i<this.tokens.length?this.tokens[i]:cS}},{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 Ch(e,o)}},{key:"sourceSpan",value:function(e,i){var o="".concat(e,"@").concat(this.inputIndex,":").concat(i);return this.sourceSpanCache.has(o)||this.sourceSpanCache.set(o,this.span(e,i).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(o)}},{key:"advance",value:function(){this.index++}},{key:"withContext",value:function(e,i){this.context|=e;var o=i();return this.context^=e,o}},{key:"consumeOptionalCharacter",value:function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}},{key:"peekKeywordLet",value:function(){return this.next.isKeywordLet()}},{key:"peekKeywordAs",value:function(){return this.next.isKeywordAs()}},{key:"expectCharacter",value:function(e){this.consumeOptionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}},{key:"consumeOptionalOperator",value:function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}},{key:"expectOperator",value:function(e){this.consumeOptionalOperator(e)||this.error("Missing expected operator ".concat(e))}},{key:"prettyPrintToken",value:function(e){return e===cS?"end of input":"token ".concat(e)}},{key:"expectIdentifierOrKeyword",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier or keyword")),null)}},{key:"expectIdentifierOrKeywordOrString",value:function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error("Unexpected ".concat(this.prettyPrintToken(e),", expected identifier, keyword, or string")),"")}},{key:"parseChain",value:function(){for(var e=[],i=this.inputIndex;this.index<this.tokens.length;){var o=this.parsePipe();if(e.push(o),this.consumeOptionalCharacter(59))for(1&this.parseFlags||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else if(this.index<this.tokens.length){var a=this.index;if(this.error("Unexpected token '".concat(this.next,"'")),this.index===a)break}}if(0===e.length){var s=this.offset,l=this.offset+this.input.length;return new Wl(this.span(s,l),this.sourceSpan(s,l))}return 1==e.length?e[0]:new NC(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 Ch(l,l).toAbsolute(this.absoluteOffset));for(var u=[];this.consumeOptionalCharacter(58);)u.push(this.parseExpression());i=new BC(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 Wl(this.span(e),this.sourceSpan(e))}return new Jv(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 Vl(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 Vl(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 Vl(this.span(e),this.sourceSpan(e),"??",i,o)}return i}},{key:"parseEquality",value:function(){for(var e=this.inputIndex,i=this.parseRelational();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"==":case"===":case"!=":case"!==":this.advance();var a=this.parseRelational();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseRelational",value:function(){for(var e=this.inputIndex,i=this.parseAdditive();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"<":case">":case"<=":case">=":this.advance();var a=this.parseAdditive();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseAdditive",value:function(){for(var e=this.inputIndex,i=this.parseMultiplicative();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"+":case"-":this.advance();var a=this.parseMultiplicative();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parseMultiplicative",value:function(){for(var e=this.inputIndex,i=this.parsePrefix();this.next.type==Xr.Operator;){var o=this.next.strValue;switch(o){case"*":case"%":case"/":this.advance();var a=this.parsePrefix();i=new Vl(this.span(e),this.sourceSpan(e),o,i,a);continue}break}return i}},{key:"parsePrefix",value:function(){if(this.next.type==Xr.Operator){var o,e=this.inputIndex;switch(this.next.strValue){case"+":return this.advance(),o=this.parsePrefix(),Mu.createPlus(this.span(e),this.sourceSpan(e),o);case"-":return this.advance(),o=this.parsePrefix(),Mu.createMinus(this.span(e),this.sourceSpan(e),o);case"!":return this.advance(),o=this.parsePrefix(),new FC(this.span(e),this.sourceSpan(e),o)}}return this.parseCallChain()}},{key:"parseCallChain",value:function(){for(var e=this.inputIndex,i=this.parsePrimary();;)if(this.consumeOptionalCharacter(46))i=this.parseAccessMember(i,e,!1);else if(this.consumeOptionalOperator("?."))i=this.consumeOptionalCharacter(40)?this.parseCall(i,e,!0):this.consumeOptionalCharacter(91)?this.parseKeyedReadOrWrite(i,e,!0):this.parseAccessMember(i,e,!0);else if(this.consumeOptionalCharacter(91))i=this.parseKeyedReadOrWrite(i,e,!1);else if(this.consumeOptionalCharacter(40))i=this.parseCall(i,e,!1);else{if(!this.consumeOptionalOperator("!"))return i;i=new ey(this.span(e),this.sourceSpan(e),i)}}},{key:"parsePrimary",value:function(){var e=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;var i=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),i}if(this.next.isKeywordNull())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new ZC(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;var o=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new kh(this.span(e),this.sourceSpan(e),o)}if(this.next.isCharacter(Hf))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new qv(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){var a=this.next.toNumber();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),a)}if(this.next.isString()){var s=this.next.toString();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),s)}return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Wl(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new Wl(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new Wl(this.span(e),this.sourceSpan(e)))}},{key:"parseExpressionList",value:function(e){var i=[];do{if(this.next.isCharacter(e))break;i.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return i}},{key:"parseLiteralMap",value:function(){var e=[],i=[],o=this.inputIndex;if(this.expectCharacter(Hf),!this.consumeOptionalCharacter(Lc)){this.rbracesExpected++;do{var a=this.inputIndex,s=this.next.isString(),l=this.expectIdentifierOrKeywordOrString();if(e.push({key:l,quoted:s}),s)this.expectCharacter(58),i.push(this.parsePipe());else if(this.consumeOptionalCharacter(58))i.push(this.parsePipe());else{var u=this.span(a),d=this.sourceSpan(a);i.push(new wh(u,d,d,new qv(u,d),l))}}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(Lc)}return new WM(this.span(o),this.sourceSpan(o),e,i)}},{key:"parseAccessMember",value:function(e,i,o){var d,a=this,s=this.inputIndex,l=this.withContext(Sh.Writable,function(){var g,C=null!==(g=a.expectIdentifierOrKeyword())&&void 0!==g?g:"";return 0===C.length&&a.error("Expected identifier for property access",e.span.end),C}),u=this.sourceSpan(s);if(o)this.consumeOptionalAssignment()?(this.error("The '?.' operator cannot be used in the assignment"),d=new Wl(this.span(i),this.sourceSpan(i))):d=new Qv(this.span(i),this.sourceSpan(i),u,e,l);else if(this.consumeOptionalAssignment()){if(!(1&this.parseFlags))return this.error("Bindings cannot contain assignments"),new Wl(this.span(i),this.sourceSpan(i));var h=this.parseConditional();d=new zM(this.span(i),this.sourceSpan(i),u,e,l,h)}else d=new wh(this.span(i),this.sourceSpan(i),u,e,l);return d}},{key:"parseCall",value:function(e,i,o){var a=this.inputIndex;this.rparensExpected++;var s=this.parseCallArguments(),l=this.span(a,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(41),this.rparensExpected--;var u=this.span(i),d=this.sourceSpan(i);return o?new UC(u,d,e,s,l):new b_(u,d,e,s,l)}},{key:"consumeOptionalAssignment",value:function(){return 2&this.parseFlags&&this.next.isOperator("!")&&this.peek(1).isOperator("=")?(this.advance(),this.advance(),!0):this.consumeOptionalOperator("=")}},{key:"parseCallArguments",value:function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}},{key:"expectTemplateBindingKey",value:function(){var e="",i=!1,o=this.currentAbsoluteOffset;do{e+=this.expectIdentifierOrKeywordOrString(),(i=this.consumeOptionalOperator("-"))&&(e+="-")}while(i);return{source:e,span:new Su(o,o+e.length)}}},{key:"parseTemplateBindings",value:function(e){var i=[];for(i.push.apply(i,(0,pn.Z)(this.parseDirectiveKeywordBindings(e)));this.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,pn.Z)(this.parseDirectiveKeywordBindings(a))))}this.consumeStatementTerminator()}return new E_(i,[],this.errors)}},{key:"parseKeyedReadOrWrite",value:function(e,i,o){var a=this;return this.withContext(Sh.Writable,function(){a.rbracketsExpected++;var s=a.parsePipe();if(s instanceof Wl&&a.error("Key access cannot be empty"),a.rbracketsExpected--,a.expectCharacter(93),!a.consumeOptionalOperator("="))return o?new $v(a.span(i),a.sourceSpan(i),e,s):new Xv(a.span(i),a.sourceSpan(i),e,s);if(!o){var l=a.parseConditional();return new Od(a.span(i),a.sourceSpan(i),e,s,l)}return a.error("The '?.' operator cannot be used in the assignment"),new Wl(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 Su(e.span.start,a);return i.push(new F5(l,e,o)),s&&i.push(s),i}},{key:"getDirectiveBoundTarget",value:function(){if(this.next===cS||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 Yl(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 Su(e.span.start,this.currentAbsoluteOffset);return new VM(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 Su(e,this.currentAbsoluteOffset);return new VM(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 bh(e,this.input,this.locationText(i),this.location)),this.skip()}},{key:"locationText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null==e&&(e=this.index),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(Lc)||!(this.rbracketsExpected<=0)&&e.isCharacter(93)||this.context&Sh.Writable&&e.isOperator("="));)this.next.isError()&&this.errors.push(new bh(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}]),n}(),ic=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments)).errors=[],i}return(0,B.Z)(e,[{key:"visitPipe",value:function(){this.errors.push("pipes")}}]),e}(U5);function W3(n){for(var r=new Map,e=0,i=0,o=0;o<n.length;){var a=n[o];if(9===a.type){var s=(0,Nn.Z)(a.parts,2),l=s[0];e+=s[1].length,i+=l.length}else{var d=a.parts.reduce(function(h,g){return h+g.length},0);i+=d,e+=d}r.set(i,e),o++}return r}var iy=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.sourceSpan=r,this.i18n=e}),x_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,o,s)).value=i,l.tokens=a,l}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitText(this,a)}}]),e}(iy),Eu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,s,u)).switchValue=i,d.type=o,d.cases=a,d.switchValueSourceSpan=l,d}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitExpansion(this,a)}}]),e}(iy),mS=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.value=r,this.expression=e,this.sourceSpan=i,this.valueSourceSpan=o,this.expSourceSpan=a}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitExpansionCase(this,i)}}]),n}(),V3=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,a,d)).name=i,h.value=o,h.keySpan=s,h.valueSpan=l,h.valueTokens=u,h}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitAttribute(this,a)}}]),e}(iy),oy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,h=arguments.length>6?arguments[6]:void 0;return(0,H.Z)(this,e),(u=r.call(this,s,h)).name=i,u.attrs=o,u.children=a,u.startSourceSpan=l,u.endSourceSpan=d,u}return(0,B.Z)(e,[{key:"visit",value:function(o,a){return o.visitElement(this,a)}}]),e}(iy),_S=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.sourceSpan=e}return(0,B.Z)(n,[{key:"visit",value:function(e,i){return e.visitComment(this,i)}}]),n}();function xu(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],o=n.visit?function(a){return n.visit(a,e)||a.visit(n,e)}:function(a){return a.visit(n,e)};return r.forEach(function(a){var s=o(a);s&&i.push(s)}),i}var Eh={AElig:"\xc6",AMP:"&",amp:"&",Aacute:"\xc1",Abreve:"\u0102",Acirc:"\xc2",Acy:"\u0410",Afr:"\ud835\udd04",Agrave:"\xc0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2a53",Aogon:"\u0104",Aopf:"\ud835\udd38",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xc5",angst:"\xc5",Ascr:"\ud835\udc9c",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xc3",Auml:"\xc4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2ae7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212c",Bscr:"\u212c",bernou:"\u212c",Beta:"\u0392",Bfr:"\ud835\udd05",Bopf:"\ud835\udd39",Breve:"\u02d8",breve:"\u02d8",Bumpeq:"\u224e",HumpDownHump:"\u224e",bump:"\u224e",CHcy:"\u0427",COPY:"\xa9",copy:"\xa9",Cacute:"\u0106",Cap:"\u22d2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212d",Cfr:"\u212d",Ccaron:"\u010c",Ccedil:"\xc7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010a",Cedilla:"\xb8",cedil:"\xb8",CenterDot:"\xb7",centerdot:"\xb7",middot:"\xb7",Chi:"\u03a7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201d",rdquo:"\u201d",rdquor:"\u201d",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2a74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222f",DoubleContourIntegral:"\u222f",ContourIntegral:"\u222e",conint:"\u222e",oint:"\u222e",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2a2f",Cscr:"\ud835\udc9e",Cup:"\u22d3",CupCap:"\u224d",asympeq:"\u224d",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040f",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21a1",Dashv:"\u2ae4",DoubleLeftTee:"\u2ae4",Dcaron:"\u010e",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\ud835\udd07",DiacriticalAcute:"\xb4",acute:"\xb4",DiacriticalDot:"\u02d9",dot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",dblac:"\u02dd",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02dc",tilde:"\u02dc",Diamond:"\u22c4",diam:"\u22c4",diamond:"\u22c4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\ud835\udd3b",Dot:"\xa8",DoubleDot:"\xa8",die:"\xa8",uml:"\xa8",DotDot:"\u20dc",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21d3",Downarrow:"\u21d3",dArr:"\u21d3",DoubleLeftArrow:"\u21d0",Leftarrow:"\u21d0",lArr:"\u21d0",DoubleLeftRightArrow:"\u21d4",Leftrightarrow:"\u21d4",hArr:"\u21d4",iff:"\u21d4",DoubleLongLeftArrow:"\u27f8",Longleftarrow:"\u27f8",xlArr:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",Longleftrightarrow:"\u27fa",xhArr:"\u27fa",DoubleLongRightArrow:"\u27f9",Longrightarrow:"\u27f9",xrArr:"\u27f9",DoubleRightArrow:"\u21d2",Implies:"\u21d2",Rightarrow:"\u21d2",rArr:"\u21d2",DoubleRightTee:"\u22a8",vDash:"\u22a8",DoubleUpArrow:"\u21d1",Uparrow:"\u21d1",uArr:"\u21d1",DoubleUpDownArrow:"\u21d5",Updownarrow:"\u21d5",vArr:"\u21d5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21f5",duarr:"\u21f5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVector:"\u21bd",leftharpoondown:"\u21bd",lhard:"\u21bd",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295f",DownRightVector:"\u21c1",rhard:"\u21c1",rightharpoondown:"\u21c1",DownRightVectorBar:"\u2957",DownTee:"\u22a4",top:"\u22a4",DownTeeArrow:"\u21a7",mapstodown:"\u21a7",Dscr:"\ud835\udc9f",Dstrok:"\u0110",ENG:"\u014a",ETH:"\xd0",Eacute:"\xc9",Ecaron:"\u011a",Ecirc:"\xca",Ecy:"\u042d",Edot:"\u0116",Efr:"\ud835\udd08",Egrave:"\xc8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25fb",EmptyVerySmallSquare:"\u25ab",Eogon:"\u0118",Eopf:"\ud835\udd3c",Epsilon:"\u0395",Equal:"\u2a75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21cc",rightleftharpoons:"\u21cc",rlhar:"\u21cc",Escr:"\u2130",expectation:"\u2130",Esim:"\u2a73",Eta:"\u0397",Euml:"\xcb",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\ud835\udd09",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",blacksquare:"\u25aa",squarf:"\u25aa",squf:"\u25aa",Fopf:"\ud835\udd3d",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03dc",Gbreve:"\u011e",Gcedil:"\u0122",Gcirc:"\u011c",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\ud835\udd0a",Gg:"\u22d9",ggg:"\u22d9",Gopf:"\ud835\udd3e",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22db",gel:"\u22db",gtreqless:"\u22db",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2a7e",geqslant:"\u2a7e",ges:"\u2a7e",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\ud835\udca2",Gt:"\u226b",NestedGreaterGreater:"\u226b",gg:"\u226b",HARDcy:"\u042a",Hacek:"\u02c7",caron:"\u02c7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210c",Poincareplane:"\u210c",HilbertSpace:"\u210b",Hscr:"\u210b",hamilt:"\u210b",Hopf:"\u210d",quaternions:"\u210d",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224f",bumpe:"\u224f",bumpeq:"\u224f",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xcd",Icirc:"\xce",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xcc",Imacr:"\u012a",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222c",Integral:"\u222b",int:"\u222b",Intersection:"\u22c2",bigcap:"\u22c2",xcap:"\u22c2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012e",Iopf:"\ud835\udd40",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xcf",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\ud835\udd0d",Jopf:"\ud835\udd41",Jscr:"\ud835\udca5",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040c",Kappa:"\u039a",Kcedil:"\u0136",Kcy:"\u041a",Kfr:"\ud835\udd0e",Kopf:"\ud835\udd42",Kscr:"\ud835\udca6",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039b",Lang:"\u27ea",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219e",twoheadleftarrow:"\u219e",Lcaron:"\u013d",Lcedil:"\u013b",Lcy:"\u041b",LeftAngleBracket:"\u27e8",lang:"\u27e8",langle:"\u27e8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21e4",larrb:"\u21e4",LeftArrowRightArrow:"\u21c6",leftrightarrows:"\u21c6",lrarr:"\u21c6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27e6",lobrk:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21c3",dharl:"\u21c3",downharpoonleft:"\u21c3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230a",lfloor:"\u230a",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294e",LeftTee:"\u22a3",dashv:"\u22a3",LeftTeeArrow:"\u21a4",mapstoleft:"\u21a4",LeftTeeVector:"\u295a",LeftTriangle:"\u22b2",vartriangleleft:"\u22b2",vltri:"\u22b2",LeftTriangleBar:"\u29cf",LeftTriangleEqual:"\u22b4",ltrie:"\u22b4",trianglelefteq:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21bf",uharl:"\u21bf",upharpoonleft:"\u21bf",LeftUpVectorBar:"\u2958",LeftVector:"\u21bc",leftharpoonup:"\u21bc",lharu:"\u21bc",LeftVectorBar:"\u2952",LessEqualGreater:"\u22da",leg:"\u22da",lesseqgtr:"\u22da",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2aa1",LessSlantEqual:"\u2a7d",leqslant:"\u2a7d",les:"\u2a7d",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\ud835\udd0f",Ll:"\u22d8",Lleftarrow:"\u21da",lAarr:"\u21da",Lmidot:"\u013f",LongLeftArrow:"\u27f5",longleftarrow:"\u27f5",xlarr:"\u27f5",LongLeftRightArrow:"\u27f7",longleftrightarrow:"\u27f7",xharr:"\u27f7",LongRightArrow:"\u27f6",longrightarrow:"\u27f6",xrarr:"\u27f6",Lopf:"\ud835\udd43",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21b0",lsh:"\u21b0",Lstrok:"\u0141",Lt:"\u226a",NestedLessLess:"\u226a",ll:"\u226a",Map:"\u2905",Mcy:"\u041c",MediumSpace:"\u205f",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\ud835\udd10",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\ud835\udd44",Mu:"\u039c",NJcy:"\u040a",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041d",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",ZeroWidthSpace:"\u200b",NewLine:"\n",Nfr:"\ud835\udd11",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nbsp:"\xa0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2aec",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226f",ngt:"\u226f",ngtr:"\u226f",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",nGtv:"\u226b\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224e\u0338",nbump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",nbumpe:"\u224f\u0338",NotLeftTriangle:"\u22ea",nltri:"\u22ea",ntriangleleft:"\u22ea",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangleEqual:"\u22ec",nltrie:"\u22ec",ntrianglelefteq:"\u22ec",NotLess:"\u226e",nless:"\u226e",nlt:"\u226e",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226a\u0338",nLtv:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",npre:"\u2aaf\u0338",npreceq:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",nprcue:"\u22e0",NotReverseElement:"\u220c",notni:"\u220c",notniva:"\u220c",NotRightTriangle:"\u22eb",nrtri:"\u22eb",ntriangleright:"\u22eb",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangleEqual:"\u22ed",nrtrie:"\u22ed",ntrianglerighteq:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",nsqsube:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",nsqsupe:"\u22e3",NotSubset:"\u2282\u20d2",nsubset:"\u2282\u20d2",vnsub:"\u2282\u20d2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",nsce:"\u2ab0\u0338",nsucceq:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",nsccue:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",nsupset:"\u2283\u20d2",vnsup:"\u2283\u20d2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\ud835\udca9",Ntilde:"\xd1",Nu:"\u039d",OElig:"\u0152",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"\u041e",Odblac:"\u0150",Ofr:"\ud835\udd12",Ograve:"\xd2",Omacr:"\u014c",Omega:"\u03a9",ohm:"\u03a9",Omicron:"\u039f",Oopf:"\ud835\udd46",OpenCurlyDoubleQuote:"\u201c",ldquo:"\u201c",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2a54",Oscr:"\ud835\udcaa",Oslash:"\xd8",Otilde:"\xd5",Otimes:"\u2a37",Ouml:"\xd6",OverBar:"\u203e",oline:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",tbrk:"\u23b4",OverParenthesis:"\u23dc",PartialD:"\u2202",part:"\u2202",Pcy:"\u041f",Pfr:"\ud835\udd13",Phi:"\u03a6",Pi:"\u03a0",PlusMinus:"\xb1",plusmn:"\xb1",pm:"\xb1",Popf:"\u2119",primes:"\u2119",Pr:"\u2abb",Precedes:"\u227a",pr:"\u227a",prec:"\u227a",PrecedesEqual:"\u2aaf",pre:"\u2aaf",preceq:"\u2aaf",PrecedesSlantEqual:"\u227c",prcue:"\u227c",preccurlyeq:"\u227c",PrecedesTilde:"\u227e",precsim:"\u227e",prsim:"\u227e",Prime:"\u2033",Product:"\u220f",prod:"\u220f",Proportional:"\u221d",prop:"\u221d",propto:"\u221d",varpropto:"\u221d",vprop:"\u221d",Pscr:"\ud835\udcab",Psi:"\u03a8",QUOT:'"',quot:'"',Qfr:"\ud835\udd14",Qopf:"\u211a",rationals:"\u211a",Qscr:"\ud835\udcac",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xae",circledR:"\xae",reg:"\xae",Racute:"\u0154",Rang:"\u27eb",Rarr:"\u21a0",twoheadrightarrow:"\u21a0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211c",Rfr:"\u211c",real:"\u211c",realpart:"\u211c",ReverseElement:"\u220b",SuchThat:"\u220b",ni:"\u220b",niv:"\u220b",ReverseEquilibrium:"\u21cb",leftrightharpoons:"\u21cb",lrhar:"\u21cb",ReverseUpEquilibrium:"\u296f",duhar:"\u296f",Rho:"\u03a1",RightAngleBracket:"\u27e9",rang:"\u27e9",rangle:"\u27e9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21e5",rarrb:"\u21e5",RightArrowLeftArrow:"\u21c4",rightleftarrows:"\u21c4",rlarr:"\u21c4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27e7",robrk:"\u27e7",RightDownTeeVector:"\u295d",RightDownVector:"\u21c2",dharr:"\u21c2",downharpoonright:"\u21c2",RightDownVectorBar:"\u2955",RightFloor:"\u230b",rfloor:"\u230b",RightTee:"\u22a2",vdash:"\u22a2",RightTeeArrow:"\u21a6",map:"\u21a6",mapsto:"\u21a6",RightTeeVector:"\u295b",RightTriangle:"\u22b3",vartriangleright:"\u22b3",vrtri:"\u22b3",RightTriangleBar:"\u29d0",RightTriangleEqual:"\u22b5",rtrie:"\u22b5",trianglerighteq:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVector:"\u21be",uharr:"\u21be",upharpoonright:"\u21be",RightUpVectorBar:"\u2954",RightVector:"\u21c0",rharu:"\u21c0",rightharpoonup:"\u21c0",RightVectorBar:"\u2953",Ropf:"\u211d",reals:"\u211d",RoundImplies:"\u2970",Rrightarrow:"\u21db",rAarr:"\u21db",Rscr:"\u211b",realine:"\u211b",Rsh:"\u21b1",rsh:"\u21b1",RuleDelayed:"\u29f4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042c",Sacute:"\u015a",Sc:"\u2abc",Scaron:"\u0160",Scedil:"\u015e",Scirc:"\u015c",Scy:"\u0421",Sfr:"\ud835\udd16",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03a3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\ud835\udd4a",Sqrt:"\u221a",radic:"\u221a",Square:"\u25a1",squ:"\u25a1",square:"\u25a1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228f",sqsub:"\u228f",sqsubset:"\u228f",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\ud835\udcae",Star:"\u22c6",sstarf:"\u22c6",Sub:"\u22d0",Subset:"\u22d0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227b",sc:"\u227b",succ:"\u227b",SucceedsEqual:"\u2ab0",sce:"\u2ab0",succeq:"\u2ab0",SucceedsSlantEqual:"\u227d",sccue:"\u227d",succcurlyeq:"\u227d",SucceedsTilde:"\u227f",scsim:"\u227f",succsim:"\u227f",Sum:"\u2211",sum:"\u2211",Sup:"\u22d1",Supset:"\u22d1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xde",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040b",TScy:"\u0426",Tab:"\t",Tau:"\u03a4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\ud835\udd17",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223c",sim:"\u223c",thicksim:"\u223c",thksim:"\u223c",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\ud835\udd4b",TripleDot:"\u20db",tdot:"\u20db",Tscr:"\ud835\udcaf",Tstrok:"\u0166",Uacute:"\xda",Uarr:"\u219f",Uarrocir:"\u2949",Ubrcy:"\u040e",Ubreve:"\u016c",Ucirc:"\xdb",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\ud835\udd18",Ugrave:"\xd9",Umacr:"\u016a",UnderBar:"_",lowbar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",bbrk:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",bigcup:"\u22c3",xcup:"\u22c3",UnionPlus:"\u228e",uplus:"\u228e",Uogon:"\u0172",Uopf:"\ud835\udd4c",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21c5",udarr:"\u21c5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296e",udhar:"\u296e",UpTee:"\u22a5",bot:"\u22a5",bottom:"\u22a5",perp:"\u22a5",UpTeeArrow:"\u21a5",mapstoup:"\u21a5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",Uring:"\u016e",Uscr:"\ud835\udcb0",Utilde:"\u0168",Uuml:"\xdc",VDash:"\u22ab",Vbar:"\u2aeb",Vcy:"\u0412",Vdash:"\u22a9",Vdashl:"\u2ae6",Vee:"\u22c1",bigvee:"\u22c1",xvee:"\u22c1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200a",hairsp:"\u200a",Vfr:"\ud835\udd19",Vopf:"\ud835\udd4d",Vscr:"\ud835\udcb1",Vvdash:"\u22aa",Wcirc:"\u0174",Wedge:"\u22c0",bigwedge:"\u22c0",xwedge:"\u22c0",Wfr:"\ud835\udd1a",Wopf:"\ud835\udd4e",Wscr:"\ud835\udcb2",Xfr:"\ud835\udd1b",Xi:"\u039e",Xopf:"\ud835\udd4f",Xscr:"\ud835\udcb3",YAcy:"\u042f",YIcy:"\u0407",YUcy:"\u042e",Yacute:"\xdd",Ycirc:"\u0176",Ycy:"\u042b",Yfr:"\ud835\udd1c",Yopf:"\ud835\udd50",Yscr:"\ud835\udcb4",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017d",Zcy:"\u0417",Zdot:"\u017b",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\ud835\udcb5",aacute:"\xe1",abreve:"\u0103",ac:"\u223e",mstpos:"\u223e",acE:"\u223e\u0333",acd:"\u223f",acirc:"\xe2",acy:"\u0430",aelig:"\xe6",afr:"\ud835\udd1e",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03b1",amacr:"\u0101",amalg:"\u2a3f",and:"\u2227",wedge:"\u2227",andand:"\u2a55",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",angle:"\u2220",ange:"\u29a4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angzarr:"\u237c",aogon:"\u0105",aopf:"\ud835\udd52",apE:"\u2a70",apacir:"\u2a6f",ape:"\u224a",approxeq:"\u224a",apid:"\u224b",apos:"'",aring:"\xe5",ascr:"\ud835\udcb6",ast:"*",midast:"*",atilde:"\xe3",auml:"\xe4",awint:"\u2a11",bNot:"\u2aed",backcong:"\u224c",bcong:"\u224c",backepsilon:"\u03f6",bepsi:"\u03f6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223d",bsim:"\u223d",backsimeq:"\u22cd",bsime:"\u22cd",barvee:"\u22bd",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23b6",bcy:"\u0431",bdquo:"\u201e",ldquor:"\u201e",bemptyv:"\u29b0",beta:"\u03b2",beth:"\u2136",between:"\u226c",twixt:"\u226c",bfr:"\ud835\udd1f",bigcirc:"\u25ef",xcirc:"\u25ef",bigodot:"\u2a00",xodot:"\u2a00",bigoplus:"\u2a01",xoplus:"\u2a01",bigotimes:"\u2a02",xotime:"\u2a02",bigsqcup:"\u2a06",xsqcup:"\u2a06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25bd",xdtri:"\u25bd",bigtriangleup:"\u25b3",xutri:"\u25b3",biguplus:"\u2a04",xuplus:"\u2a04",bkarow:"\u290d",rbarr:"\u290d",blacklozenge:"\u29eb",lozf:"\u29eb",blacktriangle:"\u25b4",utrif:"\u25b4",blacktriangledown:"\u25be",dtrif:"\u25be",blacktriangleleft:"\u25c2",ltrif:"\u25c2",blacktriangleright:"\u25b8",rtrif:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bnot:"\u2310",bopf:"\ud835\udd53",bowtie:"\u22c8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255d",boxUR:"\u255a",boxUl:"\u255c",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256c",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256b",boxVl:"\u2562",boxVr:"\u255f",boxbox:"\u29c9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250c",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252c",boxhu:"\u2534",boxminus:"\u229f",minusb:"\u229f",boxplus:"\u229e",plusb:"\u229e",boxtimes:"\u22a0",timesb:"\u22a0",boxuL:"\u255b",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256a",boxvL:"\u2561",boxvR:"\u255e",boxvh:"\u253c",boxvl:"\u2524",boxvr:"\u251c",brvbar:"\xa6",bscr:"\ud835\udcb7",bsemi:"\u204f",bsol:"\\",bsolb:"\u29c5",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2aae",cacute:"\u0107",cap:"\u2229",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",capcup:"\u2a47",capdot:"\u2a40",caps:"\u2229\ufe00",caret:"\u2041",ccaps:"\u2a4d",ccaron:"\u010d",ccedil:"\xe7",ccirc:"\u0109",ccups:"\u2a4c",ccupssm:"\u2a50",cdot:"\u010b",cemptyv:"\u29b2",cent:"\xa2",cfr:"\ud835\udd20",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03c7",cir:"\u25cb",cirE:"\u29c3",circ:"\u02c6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21ba",olarr:"\u21ba",circlearrowright:"\u21bb",orarr:"\u21bb",circledS:"\u24c8",oS:"\u24c8",circledast:"\u229b",oast:"\u229b",circledcirc:"\u229a",ocir:"\u229a",circleddash:"\u229d",odash:"\u229d",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2a6d",copf:"\ud835\udd54",copysr:"\u2117",crarr:"\u21b5",cross:"\u2717",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",curlyeqprec:"\u22de",cuesc:"\u22df",curlyeqsucc:"\u22df",cularr:"\u21b6",curvearrowleft:"\u21b6",cularrp:"\u293d",cup:"\u222a",cupbrcap:"\u2a48",cupcap:"\u2a46",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curvearrowright:"\u21b7",curarrm:"\u293c",curlyvee:"\u22ce",cuvee:"\u22ce",curlywedge:"\u22cf",cuwed:"\u22cf",curren:"\xa4",cwint:"\u2231",cylcty:"\u232d",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290f",rBarr:"\u290f",dcaron:"\u010f",dcy:"\u0434",ddarr:"\u21ca",downdownarrows:"\u21ca",ddotseq:"\u2a77",eDDot:"\u2a77",deg:"\xb0",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",dfr:"\ud835\udd21",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03dd",gammad:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",djcy:"\u0452",dlcorn:"\u231e",llcorner:"\u231e",dlcrop:"\u230d",dollar:"$",dopf:"\ud835\udd55",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22a1",sdotb:"\u22a1",drcorn:"\u231f",lrcorner:"\u231f",drcrop:"\u230c",dscr:"\ud835\udcb9",dscy:"\u0455",dsol:"\u29f6",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",triangledown:"\u25bf",dwangle:"\u29a6",dzcy:"\u045f",dzigrarr:"\u27ff",eacute:"\xe9",easter:"\u2a6e",ecaron:"\u011b",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xea",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044d",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\ud835\udd22",eg:"\u2a9a",egrave:"\xe8",egs:"\u2a96",eqslantgtr:"\u2a96",egsdot:"\u2a98",el:"\u2a99",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",eqslantless:"\u2a95",elsdot:"\u2a97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014b",ensp:"\u2002",eogon:"\u0119",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",epsilon:"\u03b5",epsiv:"\u03f5",straightepsilon:"\u03f5",varepsilon:"\u03f5",equals:"=",equest:"\u225f",questeq:"\u225f",equivDD:"\u2a78",eqvparsl:"\u29e5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212f",eta:"\u03b7",eth:"\xf0",euml:"\xeb",euro:"\u20ac",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",ffr:"\ud835\udd23",filig:"\ufb01",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",fopf:"\ud835\udd57",fork:"\u22d4",pitchfork:"\u22d4",forkv:"\u2ad9",fpartint:"\u2a0d",frac12:"\xbd",half:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\ud835\udcbb",gEl:"\u2a8c",gtreqqless:"\u2a8c",gacute:"\u01f5",gamma:"\u03b3",gap:"\u2a86",gtrapprox:"\u2a86",gbreve:"\u011f",gcirc:"\u011d",gcy:"\u0433",gdot:"\u0121",gescc:"\u2aa9",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",gfr:"\ud835\udd24",gimel:"\u2137",gjcy:"\u0453",glE:"\u2a92",gla:"\u2aa5",glj:"\u2aa4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gneq:"\u2a88",gnsim:"\u22e7",gopf:"\ud835\udd58",gscr:"\u210a",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gtdot:"\u22d7",gtrdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrarr:"\u2978",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",hardcy:"\u044a",harrcir:"\u2948",harrw:"\u21ad",leftrightsquigarrow:"\u21ad",hbar:"\u210f",hslash:"\u210f",planck:"\u210f",plankv:"\u210f",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",larrhk:"\u21a9",hookrightarrow:"\u21aa",rarrhk:"\u21aa",hopf:"\ud835\udd59",horbar:"\u2015",hscr:"\ud835\udcbd",hstrok:"\u0127",hybull:"\u2043",iacute:"\xed",icirc:"\xee",icy:"\u0438",iecy:"\u0435",iexcl:"\xa1",ifr:"\ud835\udd26",igrave:"\xec",iiiint:"\u2a0c",qint:"\u2a0c",iiint:"\u222d",tint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012b",imath:"\u0131",inodot:"\u0131",imof:"\u22b7",imped:"\u01b5",incare:"\u2105",infin:"\u221e",infintie:"\u29dd",intcal:"\u22ba",intercal:"\u22ba",intlarhk:"\u2a17",intprod:"\u2a3c",iprod:"\u2a3c",iocy:"\u0451",iogon:"\u012f",iopf:"\ud835\udd5a",iota:"\u03b9",iquest:"\xbf",iscr:"\ud835\udcbe",isinE:"\u22f9",isindot:"\u22f5",isins:"\u22f4",isinsv:"\u22f3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xef",jcirc:"\u0135",jcy:"\u0439",jfr:"\ud835\udd27",jmath:"\u0237",jopf:"\ud835\udd5b",jscr:"\ud835\udcbf",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03ba",kappav:"\u03f0",varkappa:"\u03f0",kcedil:"\u0137",kcy:"\u043a",kfr:"\ud835\udd28",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045c",kopf:"\ud835\udd5c",kscr:"\ud835\udcc0",lAtail:"\u291b",lBarr:"\u290e",lEg:"\u2a8b",lesseqqgtr:"\u2a8b",lHar:"\u2962",lacute:"\u013a",laemptyv:"\u29b4",lambda:"\u03bb",langd:"\u2991",lap:"\u2a85",lessapprox:"\u2a85",laquo:"\xab",larrbfs:"\u291f",larrfs:"\u291d",larrlp:"\u21ab",looparrowleft:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",leftarrowtail:"\u21a2",lat:"\u2aab",latail:"\u2919",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",lcaron:"\u013e",lcedil:"\u013c",lcy:"\u043b",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21c7",llarr:"\u21c7",leftthreetimes:"\u22cb",lthree:"\u22cb",lescc:"\u2aa8",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessdot:"\u22d6",ltdot:"\u22d6",lfisht:"\u297c",lfr:"\ud835\udd29",lgE:"\u2a91",lharul:"\u296a",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296b",lltri:"\u25fa",lmidot:"\u0140",lmoust:"\u23b0",lmoustache:"\u23b0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lneq:"\u2a87",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",longmapsto:"\u27fc",xmap:"\u27fc",looparrowright:"\u21ac",rarrlp:"\u21ac",lopar:"\u2985",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",loz:"\u25ca",lozenge:"\u25ca",lpar:"(",lparlt:"\u2993",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",lsime:"\u2a8d",lsimg:"\u2a8f",lsquor:"\u201a",sbquo:"\u201a",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltrPar:"\u2996",ltri:"\u25c3",triangleleft:"\u25c3",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",mDDot:"\u223a",macr:"\xaf",strns:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25ae",mcomma:"\u2a29",mcy:"\u043c",mdash:"\u2014",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midcir:"\u2af0",minus:"\u2212",minusdu:"\u2a2a",mlcp:"\u2adb",models:"\u22a7",mopf:"\ud835\udd5e",mscr:"\ud835\udcc2",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nGg:"\u22d9\u0338",nGt:"\u226b\u20d2",nLeftarrow:"\u21cd",nlArr:"\u21cd",nLeftrightarrow:"\u21ce",nhArr:"\u21ce",nLl:"\u22d8\u0338",nLt:"\u226a\u20d2",nRightarrow:"\u21cf",nrArr:"\u21cf",nVDash:"\u22af",nVdash:"\u22ae",nacute:"\u0144",nang:"\u2220\u20d2",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",natur:"\u266e",natural:"\u266e",ncap:"\u2a43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",ncy:"\u043d",ndash:"\u2013",neArr:"\u21d7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\ud835\udd2b",nharr:"\u21ae",nleftrightarrow:"\u21ae",nhpar:"\u2af2",nis:"\u22fc",nisd:"\u22fa",njcy:"\u045a",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219a",nleftarrow:"\u219a",nldr:"\u2025",nopf:"\ud835\udd5f",not:"\xac",notinE:"\u22f9\u0338",notindot:"\u22f5\u0338",notinvb:"\u22f7",notinvc:"\u22f6",notnivb:"\u22fe",notnivc:"\u22fd",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",nrarr:"\u219b",nrightarrow:"\u219b",nrarrc:"\u2933\u0338",nrarrw:"\u219d\u0338",nscr:"\ud835\udcc3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsubseteqq:"\u2ac5\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupseteqq:"\u2ac6\u0338",ntilde:"\xf1",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22ad",nvHarr:"\u2904",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwArr:"\u21d6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xf3",ocirc:"\xf4",ocy:"\u043e",odblac:"\u0151",odiv:"\u2a38",odsold:"\u29bc",oelig:"\u0153",ofcir:"\u29bf",ofr:"\ud835\udd2c",ogon:"\u02db",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",olcir:"\u29be",olcross:"\u29bb",olt:"\u29c0",omacr:"\u014d",omega:"\u03c9",omicron:"\u03bf",omid:"\u29b6",oopf:"\ud835\udd60",opar:"\u29b7",operp:"\u29b9",or:"\u2228",vee:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oslash:"\xf8",osol:"\u2298",otilde:"\xf5",otimesas:"\u2a36",ouml:"\xf6",ovbar:"\u233d",para:"\xb6",parsim:"\u2af3",parsl:"\u2afd",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\ud835\udd2d",phi:"\u03c6",phiv:"\u03d5",straightphi:"\u03d5",varphi:"\u03d5",phone:"\u260e",pi:"\u03c0",piv:"\u03d6",varpi:"\u03d6",planckh:"\u210e",plus:"+",plusacir:"\u2a23",pluscir:"\u2a22",plusdu:"\u2a25",pluse:"\u2a72",plussim:"\u2a26",plustwo:"\u2a27",pointint:"\u2a15",popf:"\ud835\udd61",pound:"\xa3",prE:"\u2ab3",prap:"\u2ab7",precapprox:"\u2ab7",precnapprox:"\u2ab9",prnap:"\u2ab9",precneqq:"\u2ab5",prnE:"\u2ab5",precnsim:"\u22e8",prnsim:"\u22e8",prime:"\u2032",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prurel:"\u22b0",pscr:"\ud835\udcc5",psi:"\u03c8",puncsp:"\u2008",qfr:"\ud835\udd2e",qopf:"\ud835\udd62",qprime:"\u2057",qscr:"\ud835\udcc6",quatint:"\u2a16",quest:"?",rAtail:"\u291c",rHar:"\u2964",race:"\u223d\u0331",racute:"\u0155",raemptyv:"\u29b3",rangd:"\u2992",range:"\u29a5",raquo:"\xbb",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291e",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21a3",rightarrowtail:"\u21a3",rarrw:"\u219d",rightsquigarrow:"\u219d",ratail:"\u291a",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21b3",rect:"\u25ad",rfisht:"\u297d",rfr:"\ud835\udd2f",rharul:"\u296c",rho:"\u03c1",rhov:"\u03f1",varrho:"\u03f1",rightrightarrows:"\u21c9",rrarr:"\u21c9",rightthreetimes:"\u22cc",rthree:"\u22cc",ring:"\u02da",rlm:"\u200f",rmoust:"\u23b1",rmoustache:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",ropar:"\u2986",ropf:"\ud835\udd63",roplus:"\u2a2e",rotimes:"\u2a35",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rsaquo:"\u203a",rscr:"\ud835\udcc7",rtimes:"\u22ca",rtri:"\u25b9",triangleright:"\u25b9",rtriltri:"\u29ce",ruluhar:"\u2968",rx:"\u211e",sacute:"\u015b",scE:"\u2ab4",scap:"\u2ab8",succapprox:"\u2ab8",scaron:"\u0161",scedil:"\u015f",scirc:"\u015d",scnE:"\u2ab6",succneqq:"\u2ab6",scnap:"\u2aba",succnapprox:"\u2aba",scnsim:"\u22e9",succnsim:"\u22e9",scpolint:"\u2a13",scy:"\u0441",sdot:"\u22c5",sdote:"\u2a66",seArr:"\u21d8",sect:"\xa7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\ud835\udd30",sharp:"\u266f",shchcy:"\u0449",shcy:"\u0448",shy:"\xad",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",varsigma:"\u03c2",simdot:"\u2a6a",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",smashp:"\u2a33",smeparsl:"\u29e4",smile:"\u2323",ssmile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",softcy:"\u044c",sol:"/",solb:"\u29c4",solbar:"\u233f",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\ufe00",sqcups:"\u2294\ufe00",sscr:"\ud835\udcc8",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2ac5",subseteqq:"\u2ac5",subdot:"\u2abd",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subsetneqq:"\u2acb",subne:"\u228a",subsetneq:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supE:"\u2ac6",supseteqq:"\u2ac6",supdot:"\u2abe",supdsub:"\u2ad8",supedot:"\u2ac4",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supsetneqq:"\u2acc",supne:"\u228b",supsetneq:"\u228b",supplus:"\u2ac0",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swArr:"\u21d9",swnwar:"\u292a",szlig:"\xdf",target:"\u2316",tau:"\u03c4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\ud835\udd31",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",vartheta:"\u03d1",thorn:"\xfe",times:"\xd7",timesbar:"\u2a31",timesd:"\u2a30",topbot:"\u2336",topcir:"\u2af1",topf:"\ud835\udd65",topfork:"\u2ada",tprime:"\u2034",triangle:"\u25b5",utri:"\u25b5",triangleq:"\u225c",trie:"\u225c",tridot:"\u25ec",triminus:"\u2a3a",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",tscr:"\ud835\udcc9",tscy:"\u0446",tshcy:"\u045b",tstrok:"\u0167",uHar:"\u2963",uacute:"\xfa",ubrcy:"\u045e",ubreve:"\u016d",ucirc:"\xfb",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297e",ufr:"\ud835\udd32",ugrave:"\xf9",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",umacr:"\u016b",uogon:"\u0173",uopf:"\ud835\udd66",upsi:"\u03c5",upsilon:"\u03c5",upuparrows:"\u21c8",uuarr:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",uring:"\u016f",urtri:"\u25f9",uscr:"\ud835\udcca",utdot:"\u22f0",utilde:"\u0169",uuml:"\xfc",uwangle:"\u29a7",vBar:"\u2ae8",vBarv:"\u2ae9",vangrt:"\u299c",varsubsetneq:"\u228a\ufe00",vsubne:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",vsubnE:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",vsupne:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vsupnE:"\u2acc\ufe00",vcy:"\u0432",veebar:"\u22bb",veeeq:"\u225a",vellip:"\u22ee",vfr:"\ud835\udd33",vopf:"\ud835\udd67",vscr:"\ud835\udccb",vzigzag:"\u299a",wcirc:"\u0175",wedbar:"\u2a5f",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\ud835\udd34",wopf:"\ud835\udd68",wscr:"\ud835\udccc",xfr:"\ud835\udd35",xi:"\u03be",xnis:"\u22fb",xopf:"\ud835\udd69",xscr:"\ud835\udccd",yacute:"\xfd",yacy:"\u044f",ycirc:"\u0177",ycy:"\u044b",yen:"\xa5",yfr:"\ud835\udd36",yicy:"\u0457",yopf:"\ud835\udd6a",yscr:"\ud835\udcce",yucy:"\u044e",yuml:"\xff",zacute:"\u017a",zcaron:"\u017e",zcy:"\u0437",zdot:"\u017c",zeta:"\u03b6",zfr:"\ud835\udd37",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"};Eh.ngsp="\ue500";var sy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,a,i)).tokenType=o,s}return(0,B.Z)(e)}(Yv),gS=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.tokens=r,this.errors=e,this.nonNormalizedIcuExpressions=i});var qC,_V=/\r\n?/g;function ly(n){var r=0===n?"EOF":String.fromCharCode(n);return'Unexpected character "'.concat(r,'"')}function Y3(n){return'Unknown entity "'.concat(n,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}!function(n){n.HEX="hexadecimal",n.DEC="decimal"}(qC||(qC={}));var JC=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.error=r}),gV=function(){function n(r,e,i){(0,H.Z)(this,n),this._getTagDefinition=e,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=i.tokenizeExpansionForms||!1,this._interpolationConfig=i.interpolationConfig||wu,this._leadingTriviaCodePoints=i.leadingTriviaChars&&i.leadingTriviaChars.map(function(a){return a.codePointAt(0)||0});var o=i.range||{endPos:r.content.length,startPos:0,startLine:0,startCol:0};this._cursor=i.escapedString?new bV(r,o):new k4(r,o),this._preserveLineEndings=i.preserveLineEndings||!1,this._escapedString=i.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=i.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(a){this.handleError(a)}}return(0,B.Z)(n,[{key:"_processCarriageReturns",value:function(e){return this._preserveLineEndings?e:e.replace(_V,"\n")}},{key:"tokenize",value:function(){for(var e=this;0!==this._cursor.peek();){var i=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(i):this._attemptCharCode(45)?this._consumeComment(i):this._consumeDocType(i):this._attemptCharCode(47)?this._consumeTagClose(i):this._consumeTagOpen(i):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,function(){return e._isTextEnd()},function(){return e._isTagStart()})}catch(o){this.handleError(o)}}this._beginToken(24),this._endToken([])}},{key:"_tokenizeExpansionForm",value:function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function yS(n){return n!==Lc}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===Lc){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}},{key:"_beginToken",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._cursor.clone();this._currentTokenStart=i,this._currentTokenType=e}},{key:"_endToken",value:function(e,i){if(null===this._currentTokenStart)throw new sy("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(i));if(null===this._currentTokenType)throw new sy("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var o={type:this._currentTokenType,parts:e,sourceSpan:(null!=i?i:this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(o),this._currentTokenStart=null,this._currentTokenType=null,o}},{key:"_createError",value:function(e,i){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var o=new sy(e,this._currentTokenType,i);return this._currentTokenStart=null,this._currentTokenType=null,new JC(o)}},{key:"handleError",value:function(e){if(e instanceof J3&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof JC))throw e;this.errors.push(e.error)}},{key:"_attemptCharCode",value:function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)}},{key:"_attemptCharCodeCaseInsensitive",value:function(e){return!!function vV(n,r){return w4(n)===w4(r)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)}},{key:"_requireCharCode",value:function(e){var i=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ly(this._cursor.peek()),this._cursor.getSpan(i))}},{key:"_attemptStr",value:function(e){var i=e.length;if(this._cursor.charsLeft()<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(ly(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(ly(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(q3),59!=this._cursor.peek()){this._cursor.advance();var s=o?qC.HEX:qC.DEC;throw this._createError(function y4(n,r){return'Unable to parse entity "'.concat(r,'" - ').concat(n,' character reference entities must end with ";"')}(s,this._cursor.getChars(i)),this._cursor.getSpan())}var l=this._cursor.getChars(a);this._cursor.advance();try{var u=parseInt(l,o?16:10);this._endToken([String.fromCharCode(u),this._cursor.getChars(i)])}catch(C){throw this._createError(Y3(this._cursor.getChars(i)),this._cursor.getSpan())}}else{var d=this._cursor.clone();if(this._attemptCharCodeUntilFn(C4),59!=this._cursor.peek())this._beginToken(e,i),this._cursor=d,this._endToken(["&"]);else{var h=this._cursor.getChars(d);this._cursor.advance();var g=Eh[h];if(!g)throw this._createError(Y3(h),this._cursor.getSpan(i));this._endToken([g,"&".concat(h,";")])}}}},{key:"_consumeRawText",value:function(e,i){this._beginToken(e?6:7);for(var o=[];;){var a=this._cursor.clone(),s=i();if(this._cursor=a,s)break;e&&38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(o.join(""))]),o.length=0,this._consumeEntity(6),this._beginToken(6)):o.push(this._readChar())}this._endToken([this._processCarriageReturns(o.join(""))])}},{key:"_consumeComment",value:function(e){var i=this;this._beginToken(10,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("--\x3e")}),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}},{key:"_consumeCdata",value:function(e){var i=this;this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,function(){return i._attemptStr("]]>")}),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}},{key:"_consumeDocType",value:function(e){this._beginToken(18,e);var i=this._cursor.clone();this._attemptUntilChar(62);var o=this._cursor.getChars(i);this._cursor.advance(),this._endToken([o])}},{key:"_consumePrefixAndName",value:function(){for(var e=this._cursor.clone(),i="";58!==this._cursor.peek()&&!K3(this._cursor.peek());)this._cursor.advance();var o;return 58===this._cursor.peek()?(i=this._cursor.getChars(e),this._cursor.advance(),o=this._cursor.clone()):o=e,this._requireCharCodeUntilFn(b4,""===i?0:1),[i,this._cursor.getChars(o)]}},{key:"_consumeTagOpen",value:function(e){var i,o,a;try{if(!ZM(this._cursor.peek()))throw this._createError(ly(this._cursor.peek()),this._cursor.getSpan(e));for(o=(a=this._consumeTagOpenStart(e)).parts[0],i=a.parts[1],this._attemptCharCodeUntilFn(ql);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ql),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(ql),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ql);this._consumeTagOpenEnd()}catch(l){if(l instanceof JC)return void(a?a.type=4:(this._beginToken(5,e),this._endToken(["<"])));throw l}var s=this._getTagDefinition(i).getContentType(o);s===mi.RAW_TEXT?this._consumeRawTextWithTagClose(o,i,!1):s===mi.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(o,i,!0)}},{key:"_consumeRawTextWithTagClose",value:function(e,i,o){var a=this;this._consumeRawText(o,function(){return!!(a._attemptCharCode(60)&&a._attemptCharCode(47)&&(a._attemptCharCodeUntilFn(ql),a._attemptStrCaseInsensitive(i)))&&(a._attemptCharCodeUntilFn(ql),a._attemptCharCode(62))}),this._beginToken(3),this._requireCharCodeUntilFn(function(s){return 62===s},3),this._cursor.advance(),this._endToken([e,i])}},{key:"_consumeTagOpenStart",value:function(e){this._beginToken(0,e);var i=this._consumePrefixAndName();return this._endToken(i)}},{key:"_consumeAttributeName",value:function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(ly(e),this._cursor.getSpan());this._beginToken(14);var i=this._consumePrefixAndName();this._endToken(i)}},{key:"_consumeAttributeValue",value:function(){var e=this;if(39===this._cursor.peek()||34===this._cursor.peek()){var o=this._cursor.peek();this._consumeQuote(o);var a=function(){return e._cursor.peek()===o};this._consumeWithInterpolation(16,17,a,a),this._consumeQuote(o)}else{var s=function(){return b4(e._cursor.peek())};this._consumeWithInterpolation(16,17,s,s)}}},{key:"_consumeQuote",value:function(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}},{key:"_consumeTagOpenEnd",value:function(){var e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([])}},{key:"_consumeTagClose",value:function(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(ql);var i=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ql),this._requireCharCode(62),this._endToken(i)}},{key:"_consumeExpansionFormStart",value:function(){this._beginToken(19),this._requireCharCode(Hf),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);var e=this._readUntil(44),i=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([i]);else{var o=this._endToken([e]);i!==e&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ql),this._beginToken(7);var a=this._readUntil(44);this._endToken([a]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ql)}},{key:"_consumeExpansionCaseStart",value:function(){this._beginToken(20);var e=this._readUntil(Hf).trim();this._endToken([e]),this._attemptCharCodeUntilFn(ql),this._beginToken(21),this._requireCharCode(Hf),this._endToken([]),this._attemptCharCodeUntilFn(ql),this._expansionCaseStack.push(21)}},{key:"_consumeExpansionCaseEnd",value:function(){this._beginToken(22),this._requireCharCode(Lc),this._endToken([]),this._attemptCharCodeUntilFn(ql),this._expansionCaseStack.pop()}},{key:"_consumeExpansionFormEnd",value:function(){this._beginToken(23),this._requireCharCode(Lc),this._endToken([]),this._expansionCaseStack.pop()}},{key:"_consumeWithInterpolation",value:function(e,i,o,a){this._beginToken(e);for(var s=[];!o();){var l=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(s.join(""))],l),s.length=0,this._consumeInterpolation(i,l,a),this._beginToken(e)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(s.join(""))]),s.length=0,this._consumeEntity(e),this._beginToken(e)):s.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(s.join(""))])}},{key:"_consumeInterpolation",value:function(e,i,o){var a=[];this._beginToken(e,i),a.push(this._interpolationConfig.start);for(var s=this._cursor.clone(),l=null,u=!1;0!==this._cursor.peek()&&(null===o||!o());){var d=this._cursor.clone();if(this._isTagStart())return this._cursor=d,a.push(this._getProcessedChars(s,d)),void this._endToken(a);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return a.push(this._getProcessedChars(s,d)),a.push(this._interpolationConfig.end),void this._endToken(a);this._attemptStr("//")&&(u=!0)}var h=this._cursor.peek();this._cursor.advance(),92===h?this._cursor.advance():h===l?l=null:!u&&null===l&&IC(h)&&(l=h)}a.push(this._getProcessedChars(s,this._cursor)),this._endToken(a)}},{key:"_getProcessedChars",value:function(e,i){return this._processCarriageReturns(i.getChars(e))}},{key:"_isTextEnd",value:function(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===Lc&&this._isInExpansionCase()))}},{key:"_isTagStart",value:function(){if(60===this._cursor.peek()){var e=this._cursor.clone();e.advance();var i=e.peek();if(97<=i&&i<=122||65<=i&&i<=90||47===i||33===i)return!0}return!1}},{key:"_readUntil",value:function(e){var i=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(i)}},{key:"_isInExpansionCase",value:function(){return this._expansionCaseStack.length>0&&21===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"_isInExpansionForm",value:function(){return this._expansionCaseStack.length>0&&19===this._expansionCaseStack[this._expansionCaseStack.length-1]}},{key:"isExpansionFormStart",value:function(){if(this._cursor.peek()!==Hf)return!1;if(this._interpolationConfig){var e=this._cursor.clone(),i=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!i}return!0}}]),n}();function ql(n){return!LM(n)||0===n}function b4(n){return LM(n)||62===n||60===n||47===n||39===n||34===n||61===n||0===n}function K3(n){return(n<97||122<n)&&(n<65||90<n)&&(n<48||n>57)}function q3(n){return 59===n||0===n||!function OC(n){return n>=97&&n<=102||n>=65&&n<=70||jf(n)}(n)}function C4(n){return 59===n||0===n||!ZM(n)}function w4(n){return n>=97&&n<=122?n-97+65:n}function yV(n){for(var r=[],e=void 0,i=0;i<n.length;i++){var o=n[i];e&&5===e.type&&5===o.type||e&&16===e.type&&16===o.type?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}var k4=function(){function n(r,e){if((0,H.Z)(this,n),r instanceof n){this.file=r.file,this.input=r.input,this.end=r.end;var i=r.state;this.state={peek:i.peek,offset:i.offset,line:i.line,column:i.column}}else{if(!e)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=r,this.input=r.content,this.end=e.endPos,this.state={peek:-1,offset:e.startPos,line:e.startLine,column:e.startCol}}}return(0,B.Z)(n,[{key:"clone",value:function(){return new n(this)}},{key:"peek",value:function(){return this.state.peek}},{key:"charsLeft",value:function(){return this.end-this.state.offset}},{key:"diff",value:function(e){return this.state.offset-e.state.offset}},{key:"advance",value:function(){this.advanceState(this.state)}},{key:"init",value:function(){this.updatePeek(this.state)}},{key:"getSpan",value:function(e,i){var o=e=e||this;if(i)for(;this.diff(e)>0&&-1!==i.indexOf(e.peek());)o===e&&(e=e.clone()),e.advance();var a=this.locationFromCursor(e),s=this.locationFromCursor(this),l=o!==e?this.locationFromCursor(o):a;return new Qa(a,s,l)}},{key:"getChars",value:function(e){return this.input.substring(e.state.offset,this.state.offset)}},{key:"charAt",value:function(e){return this.input.charCodeAt(e)}},{key:"advanceState",value:function(e){if(e.offset>=this.end)throw this.state=e,new J3('Unexpected character "EOF"',this);var i=this.charAt(e.offset);10===i?(e.line++,e.column=0):Zc(i)||e.column++,e.offset++,this.updatePeek(e)}},{key:"updatePeek",value:function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}},{key:"locationFromCursor",value:function(e){return new g_(e.file,e.state.offset,e.state.line,e.state.column)}}]),n}(),bV=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),i instanceof e?(a=r.call(this,i)).internalState=Object.assign({},i.internalState):(a=r.call(this,i,o)).internalState=a.state,(0,Ho.Z)(a)}return(0,B.Z)(e,[{key:"advance",value:function(){this.state=this.internalState,(0,dt.Z)((0,Ut.Z)(e.prototype),"advance",this).call(this),this.processEscapeSequence()}},{key:"init",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"init",this).call(this),this.processEscapeSequence()}},{key:"clone",value:function(){return new e(this)}},{key:"getChars",value:function(o){for(var a=o.clone(),s="";a.internalState.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()===Hf){this.advanceState(this.internalState);for(var s=this.clone(),l=0;a()!==Lc;)this.advanceState(this.internalState),l++;this.state.peek=this.decodeHexDigits(s,l)}else{var u=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(u,4)}else if(120===a()){this.advanceState(this.internalState);var d=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(d,2)}else if(__(a())){for(var h="",g=0,C=this.clone();__(a())&&g<3;)C=this.clone(),h+=String.fromCodePoint(a()),this.advanceState(this.internalState),g++;this.state.peek=parseInt(h,8),this.internalState=C.internalState}else Zc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}},{key:"decodeHexDigits",value:function(o,a){var s=this.input.slice(o.internalState.offset,o.internalState.offset+a),l=parseInt(s,16);if(isNaN(l))throw o.state=o.internalState,new J3("Invalid hexadecimal escape sequence",o);return l}}]),e}(k4),J3=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.msg=r,this.cursor=e}),Wf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,o,a)).elementName=i,s}return(0,B.Z)(e,null,[{key:"create",value:function(o,a,s){return new e(o,a,s)}}]),e}(Yv),Q3=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.rootNodes=r,this.errors=e}),CV=function(){function n(r){(0,H.Z)(this,n),this.getTagDefinition=r}return(0,B.Z)(n,[{key:"parse",value:function(e,i,o){var a=function vS(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new gV(new PC(n,r),e,i);return o.tokenize(),new gS(yV(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}(e,i,this.getTagDefinition,o),s=new wV(a.tokens,this.getTagDefinition);return s.build(),new Q3(s.rootNodes,a.errors.concat(s.errors))}}]),n}(),wV=function(){function n(r,e){(0,H.Z)(this,n),this.tokens=r,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}return(0,B.Z)(n,[{key:"build",value:function(){for(;24!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?this._consumeEndTag(this._advance()):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):19===this._peek.type?this._consumeExpansion(this._advance()):this._advance()}},{key:"_advance",value:function(){var e=this._peek;return this._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 _S(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 Qa(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Eu(i.parts[0],o.parts[0],a,l,i.sourceSpan)),this._advance()}else this.errors.push(Wf.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(Wf.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var i=this._advance(),o=this._collectExpansionExpTokens(i);if(!o)return null;var a=this._advance();o.push({type:24,parts:[],sourceSpan:a.sourceSpan});var s=new n(o,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;var l=new Qa(e.sourceSpan.start,a.sourceSpan.end,e.sourceSpan.fullStart),u=new Qa(i.sourceSpan.start,a.sourceSpan.end,i.sourceSpan.fullStart);return new mS(e.parts[0],s.rootNodes,l,e.sourceSpan,u)}},{key:"_collectExpansionExpTokens",value:function(e){for(var i=[],o=[21];;){if((19===this._peek.type||21===this._peek.type)&&o.push(this._peek.type),22===this._peek.type){if(!Rd(o,21))return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(o.pop(),0===o.length)return i}if(23===this._peek.type){if(!Rd(o,19))return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;o.pop()}if(24===this._peek.type)return this.errors.push(Wf.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;i.push(this._advance())}}},{key:"_consumeText",value:function(e){var i=[e],o=e.sourceSpan,a=e.parts[0];if(a.length>0&&"\n"===a[0]){var s=this._getParentElement();null!=s&&0===s.children.length&&this.getTagDefinition(s.name).ignoreFirstLf&&(a=a.substring(1),i[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[a]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)e=this._advance(),i.push(e),8===e.type?a+=e.parts.join("").replace(/&([^;]+);/g,QC):9===e.type?a+=e.parts[0]:a+=e.parts.join("");if(a.length>0){var l=e.sourceSpan;this._addToParent(new x_(a,new Qa(o.start,l.end,o.fullStart,o.details),i))}}},{key:"_closeVoidElement",value:function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},{key:"_consumeStartTag",value:function(e){for(var i=(0,Nn.Z)(e.parts,2),o=i[0],a=i[1],s=[];14===this._peek.type;)s.push(this._consumeAttr(this._advance()));var l=this._getElementFullName(o,a,this._getParentElement()),u=!1;if(2===this._peek.type){this._advance(),u=!0;var d=this.getTagDefinition(l);d.canSelfClose||null!==ei(l)||d.isVoid||this.errors.push(Wf.create(l,e.sourceSpan,'Only void and foreign elements can be self closed "'.concat(e.parts[1],'"')))}else 1===this._peek.type&&(this._advance(),u=!1);var h=this._peek.sourceSpan.fullStart,g=new Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),C=new Qa(e.sourceSpan.start,h,e.sourceSpan.fullStart),Z=new oy(l,s,[],g,C,void 0);this._pushElement(Z),u?this._popElement(l,g):4===e.type&&(this._popElement(l,null),this.errors.push(Wf.create(l,g,'Opening tag "'.concat(l,'" not terminated.'))))}},{key:"_pushElement",value:function(e){var i=this._getParentElement();i&&this.getTagDefinition(i.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)}},{key:"_consumeEndTag",value:function(e){var i=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());if(this.getTagDefinition(i).isVoid)this.errors.push(Wf.create(i,e.sourceSpan,'Void elements do not have end tags "'.concat(e.parts[1],'"')));else if(!this._popElement(i,e.sourceSpan)){var o='Unexpected closing tag "'.concat(i,'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags');this.errors.push(Wf.create(i,e.sourceSpan,o))}}},{key:"_popElement",value:function(e,i){for(var o=!1,a=this._elementStack.length-1;a>=0;a--){var s=this._elementStack[a];if(s.name===e)return s.endSourceSpan=i,s.sourceSpan.end=null!==i?i.end:s.sourceSpan.end,this._elementStack.splice(a,this._elementStack.length-a),!o;this.getTagDefinition(s.name).closedByParent||(o=!0)}return!1}},{key:"_consumeAttr",value:function(e){var i=_i(e.parts[0],e.parts[1]),o=e.sourceSpan.end;15===this._peek.type&&this._advance();var a="",s=[],l=void 0,u=void 0;if(16===this._peek.type)for(l=this._peek.sourceSpan,u=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){var h=this._advance();s.push(h),17===h.type?a+=h.parts.join("").replace(/&([^;]+);/g,QC):9===h.type?a+=h.parts[0]:a+=h.parts.join(""),u=o=h.sourceSpan.end}15===this._peek.type&&(o=this._advance().sourceSpan.end);var C=l&&u&&new Qa(l.start,u,l.fullStart);return new V3(i,a,new Qa(e.sourceSpan.start,o,e.sourceSpan.fullStart),e.sourceSpan,C,s.length>0?s:void 0,void 0)}},{key:"_getParentElement",value:function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}},{key:"_addToParent",value:function(e){var i=this._getParentElement();null!=i?i.children.push(e):this.rootNodes.push(e)}},{key:"_getElementFullName",value:function(e,i,o){if(""===e&&(""===(e=this.getTagDefinition(i).implicitNamespacePrefix||"")&&null!=o)){var a=Ji(o.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(e=ei(o.name))}return _i(e,i)}}]),n}();function Rd(n,r){return n.length>0&&n[n.length-1]===r}function QC(n,r){return void 0!==Eh[r]?Eh[r]||n:/^#x[a-f0-9]+$/i.test(r)?String.fromCodePoint(parseInt(r.slice(2),16)):/^#\d+$/.test(r)?String.fromCodePoint(parseInt(r.slice(1),10)):n}var T4=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this,wa)}return(0,B.Z)(e,[{key:"parse",value:function(o,a,s){return(0,dt.Z)((0,Ut.Z)(e.prototype),"parse",this).call(this,o,a,s)}}]),e}(CV),bS="ngPreserveWhitespaces",CS=new Set(["pre","template","textarea","script","style"]),wS=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",kS=new RegExp("[^".concat(wS,"]")),M4=new RegExp("[".concat(wS,"]{2,}"),"g");function TS(n){return n.replace(new RegExp("\ue500","g")," ")}var X3=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e,i){return CS.has(e.name)||function Vf(n){return n.some(function(r){return r.name===bS})}(e.attrs)?new oy(e.name,xu(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new oy(e.name,e.attrs,function E4(n,r){var e=[];return r.forEach(function(i,o){var a={prev:r[o-1],next:r[o+1]},s=i.visit(n,a);s&&e.push(s)}),e}(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}},{key:"visitAttribute",value:function(e,i){return e.name!==bS?e:null}},{key:"visitText",value:function(e,i){var o=e.value.match(kS),a=i&&(i.prev instanceof Eu||i.next instanceof Eu);if(o||a){var s=e.tokens.map(function(u){return 5===u.type?function S4(n){var r=n.type,e=n.parts,i=n.sourceSpan;return{type:r,parts:[MS(e[0])],sourceSpan:i}}(u):u}),l=MS(e.value);return new x_(l,e.sourceSpan,s,e.i18n)}return null}},{key:"visitComment",value:function(e,i){return e}},{key:"visitExpansion",value:function(e,i){return e}},{key:"visitExpansionCase",value:function(e,i){return e}}]),n}();function MS(n){return TS(n).replace(M4," ")}function Ld(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Qs(Object.keys(n).map(function(e){return{key:e,quoted:r,value:n[e]}}))}var ES=(0,B.Z)(function n(){(0,H.Z)(this,n)}),DS=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|autocomplete,!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,autocomplete,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],$C=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),t6=Array.from($C).reduce(function(n,r){var e=(0,Nn.Z)(r,2),i=e[0],o=e[1];return n.set(i,o),n},new Map),e1=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.call(this))._schema=new Map,i._eventSchema=new Map,DS.forEach(function(o){var a=new Map,s=new Set,l=o.split("|"),u=(0,Nn.Z)(l,2),d=u[0],g=u[1].split(","),C=d.split("^"),Z=(0,Nn.Z)(C,2),z=Z[0],q=Z[1];z.split(",").forEach(function(ht){i._schema.set(ht.toLowerCase(),a),i._eventSchema.set(ht.toLowerCase(),s)});var re=q&&i._schema.get(q.toLowerCase());if(re){var Se,ae=(0,xn.Z)(re);try{for(ae.s();!(Se=ae.n()).done;){var Ce=(0,Nn.Z)(Se.value,2),Ee=Ce[0],Ve=Ce[1];a.set(Ee,Ve)}}catch(ht){ae.e(ht)}finally{ae.f()}var Ae,ut=(0,xn.Z)(i._eventSchema.get(q.toLowerCase()));try{for(ut.s();!(Ae=ut.n()).done;){var ot=Ae.value;s.add(ot)}}catch(ht){ut.e(ht)}finally{ut.f()}}g.forEach(function(ht){if(ht.length>0)switch(ht[0]){case"*":s.add(ht.substring(1));break;case"!":a.set(ht.substring(1),"boolean");break;case"#":a.set(ht.substring(1),"number");break;case"%":a.set(ht.substring(1),"object");break;default:a.set(ht,"string")}})}),i}return(0,B.Z)(e,[{key:"hasProperty",value:function(o,a,s){if(s.some(function(u){return u.name===vu.name}))return!0;if(o.indexOf("-")>-1){if(jo(o)||Qi(o))return!1;if(s.some(function(u){return u.name===ka.name}))return!0}return(this._schema.get(o.toLowerCase())||this._schema.get("unknown")).has(a)}},{key:"hasElement",value:function(o,a){return!!(a.some(function(s){return s.name===vu.name})||o.indexOf("-")>-1&&(jo(o)||Qi(o)||a.some(function(s){return s.name===ka.name})))||this._schema.has(o.toLowerCase())}},{key:"securityContext",value:function(o,a,s){s&&(a=this.getMappedPropName(a)),o=o.toLowerCase(),a=a.toLowerCase();var l=XM()[o+"|"+a];return l||((l=XM()["*|"+a])||Hi.NONE)}},{key:"getMappedPropName",value:function(o){var a;return null!==(a=$C.get(o))&&void 0!==a?a:o}},{key:"getDefaultComponentElementName",value:function(){return"ng-component"}},{key:"validateProperty",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")+"\nIf '".concat(o,"' is a directive input, make sure the directive is imported by the")+" current module."}:{error:!1}}},{key:"validateAttribute",value:function(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '".concat(o,"' is disallowed for security reasons, ")+"please use (".concat(o.slice(2),")=...")}:{error:!1}}},{key:"allKnownElementNames",value:function(){return Array.from(this._schema.keys())}},{key:"allKnownAttributesOfElement",value:function(o){var a=this._schema.get(o.toLowerCase())||this._schema.get("unknown");return Array.from(a.keys()).map(function(s){var l;return null!==(l=t6.get(s))&&void 0!==l?l:s})}},{key:"allKnownEventsOfElement",value:function(o){var a;return Array.from(null!==(a=this._eventSchema.get(o.toLowerCase()))&&void 0!==a?a:[])}},{key:"normalizeAnimationStyleProperty",value:function(o){return function Es(n){return n.replace(so,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}(o)}},{key:"normalizeAnimationStyleValue",value:function(o,a,s){var l="",u=s.toString().trim(),d=null;if(function x4(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(o)&&0!==s&&"0"!==s)if("number"==typeof s)l="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&(d="Please provide a CSS unit value for ".concat(a,":").concat(s))}return{error:d,value:u+l}}}]),e}(ES);var D4=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function n6(n,r){return n=n.toLowerCase(),r=r.toLowerCase(),D4.has(n+"|"+r)||D4.has("*|"+r)}var $s="animate-",o6=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._exprParser=r,this._interpolationConfig=e,this._schemaRegistry=i,this.errors=o}return(0,B.Z)(n,[{key:"interpolationConfig",get:function(){return this._interpolationConfig}},{key:"createBoundHostProperties",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parsePropertyBinding(l,u,!0,i,i.start.offset,void 0,[],o,i):this._reportError('Value of the host property binding "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"createDirectiveHostEventAsts",value:function(e,i){for(var o=[],a=0,s=Object.keys(e);a<s.length;a++){var l=s[a],u=e[l];"string"==typeof u?this.parseEvent(l,u,!1,i,i,[],o,i):this._reportError('Value of the host listener "'.concat(l,'" needs to be a string representing an expression but got "').concat(u,'" (').concat(typeof u,")"),i)}return o}},{key:"parseInterpolation",value:function(e,i,o){var a=i.start.toString(),s=i.fullStart.offset;try{var l=this._exprParser.parseInterpolation(e,a,s,o,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,i),l}catch(u){return this._reportError("".concat(u),i),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"parseInterpolationExpression",value:function(e,i){var o=i.start.toString(),a=i.start.offset;try{var s=this._exprParser.parseInterpolationExpression(e,o,a);return s&&this._reportExpressionParserErrors(s.errors,i),s}catch(l){return this._reportError("".concat(l),i),this._exprParser.wrapLiteralPrimitive("ERROR",o,a)}}},{key:"parseInlineTemplateBinding",value:function(e,i,o,a,s,l,u,d){var Z,h=o.start.offset+"*".length,g=this._parseTemplateBindings(e,i,o,h,a),C=(0,xn.Z)(g);try{for(C.s();!(Z=C.n()).done;){var z=Z.value,q=Bc(o,z.sourceSpan),re=z.key.source,ae=Bc(o,z.key.span);if(z instanceof VM){var Se=z.value?z.value.source:"$implicit",Ce=z.value?Bc(o,z.value.span):void 0;u.push(new S3(re,Se,q,ae,Ce))}else if(z.value){var Ee=d?q:o,Ve=Bc(o,z.value.ast.sourceSpan);this._parsePropertyAst(re,z.value,Ee,ae,Ve,s,l)}else s.push([re,""]),this.parseLiteralAttr(re,null,ae,a,void 0,s,l,ae)}}catch(ut){C.e(ut)}finally{C.f()}}},{key:"_parseTemplateBindings",value:function(e,i,o,a,s){var l=this,u=o.start.toString();try{var d=this._exprParser.parseTemplateBindings(e,i,u,a,s);return this._reportExpressionParserErrors(d.errors,o),d.warnings.forEach(function(h){l._reportError(h,o,Dd.WARNING)}),d.templateBindings}catch(h){return this._reportError("".concat(h),o),[]}}},{key:"parseLiteralAttr",value:function(e,i,o,a,s,l,u,d){a6(e)?(e=e.substring(1),void 0!==d&&(d=Bc(d,new Su(d.start.offset+1,d.end.offset))),i&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',o,Dd.ERROR),this._parseAnimation(e,i,o,a,d,s,l,u)):u.push(new KM(e,this._exprParser.wrapLiteralPrimitive(i,"",a),Gf.LITERAL_ATTR,o,d,s))}},{key:"parsePropertyBinding",value:function(e,i,o,a,s,l,u,d,h){0===e.length&&this._reportError("Property name is missing in binding",a);var g=!1;e.startsWith($s)?(g=!0,e=e.substring($s.length),void 0!==h&&(h=Bc(h,new Su(h.start.offset+$s.length,h.end.offset)))):a6(e)&&(g=!0,e=e.substring(1),void 0!==h&&(h=Bc(h,new Su(h.start.offset+1,h.end.offset)))),g?this._parseAnimation(e,i,a,s,h,l,u,d):this._parsePropertyAst(e,this._parseBinding(i,o,l||a,s),a,h,l,u,d)}},{key:"parsePropertyInterpolation",value:function(e,i,o,a,s,l,u,d){var h=this.parseInterpolation(i,a||o,d);return!!h&&(this._parsePropertyAst(e,h,o,u,a,s,l),!0)}},{key:"_parsePropertyAst",value:function(e,i,o,a,s,l,u){l.push([e,i.source]),u.push(new KM(e,i,Gf.DEFAULT,o,a,s))}},{key:"_parseAnimation",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Animation trigger is missing",o);var h=this._parseBinding(i||"undefined",!1,l||o,a);u.push([e,h.source]),d.push(new KM(e,h,Gf.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 j5(i.name,4,Hi.NONE,i.expression,null,i.sourceSpan,i.keySpan,i.valueSpan);var s=null,l=void 0,u=null,d=i.name.split("."),h=void 0;if(d.length>1)if("attr"==d[0]){u=d.slice(1).join("."),o||this._validatePropertyOrAttributeName(u,i.sourceSpan,!0),h=OS(this._schemaRegistry,e,u,!0);var g=u.indexOf(":");if(g>-1){var C=u.substring(0,g),Z=u.substring(g+1);u=_i(C,Z)}l=1}else"class"==d[0]?(u=d[1],l=2,h=[Hi.NONE]):"style"==d[0]&&(s=d.length>2?d[2]:null,u=d[1],l=3,h=[Hi.STYLE]);if(null===u){var z=this._schemaRegistry.getMappedPropName(i.name);u=a?z:i.name,h=OS(this._schemaRegistry,e,z,!1),l=0,o||this._validatePropertyOrAttributeName(z,i.sourceSpan,!1)}return new j5(u,l,h[0],i.expression,s,i.sourceSpan,i.keySpan,i.valueSpan)}},{key:"parseEvent",value:function(e,i,o,a,s,l,u,d){0===e.length&&this._reportError("Event name is missing in binding",a),a6(e)?(e=e.slice(1),void 0!==d&&(d=Bc(d,new Su(d.start.offset+1,d.end.offset))),this._parseAnimationEvent(e,i,o,a,s,u,d)):this._parseRegularEvent(e,i,o,a,s,l,u,d)}},{key:"calcPossibleSecurityContexts",value:function(e,i,o){var a=this._schemaRegistry.getMappedPropName(i);return OS(this._schemaRegistry,e,a,o)}},{key:"_parseAnimationEvent",value:function(e,i,o,a,s,l,u){var d=function xc(n,r){return vo(n,".",r)}(e,[e,""]),h=d[0],g=d[1].toLowerCase(),C=this._parseAction(i,o,s);l.push(new M3(h,g,1,C,a,s,u)),0===h.length&&this._reportError("Animation event name is missing in binding",a),g?"start"!==g&&"done"!==g&&this._reportError('The provided animation output phase value "'.concat(g,'" for "@').concat(h,'" is not supported (use start or done)'),a):this._reportError("The animation trigger output event (@".concat(h,") is missing its phase value name (start or done are currently supported)"),a)}},{key:"_parseRegularEvent",value:function(e,i,o,a,s,l,u,d){var h=function Fl(n,r){return vo(n,":",r)}(e,[null,e]),g=(0,Nn.Z)(h,2),C=g[0],Z=g[1],z=this._parseAction(i,o,s);l.push([e,z.source]),u.push(new M3(Z,C,0,z,a,s,d))}},{key:"_parseAction",value:function(e,i,o){var a=(o&&o.start||"(unknown").toString(),s=o&&o.start?o.start.offset:0;try{var l=this._exprParser.parseAction(e,i,a,s,this._interpolationConfig);return l&&this._reportExpressionParserErrors(l.errors,o),!l||l.ast instanceof Wl?(this._reportError("Empty expressions are not allowed",o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)):l}catch(u){return this._reportError("".concat(u),o),this._exprParser.wrapLiteralPrimitive("ERROR",a,s)}}},{key:"_reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new Yv(i,e,o))}},{key:"_reportExpressionParserErrors",value:function(e,i){var a,o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=a.value;this._reportError(s.message,i)}}catch(l){o.e(l)}finally{o.f()}}},{key:"_validatePropertyOrAttributeName",value:function(e,i,o){var a=o?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);a.error&&this._reportError(a.msg,i,Dd.ERROR)}}]),n}();function a6(n){return"@"==n[0]}function OS(n,r,e,i){var o=[];return oo.parse(r).forEach(function(a){var s=a.element?[a.element]:n.allKnownElementNames(),l=new Set(a.notSelectors.filter(function(d){return d.isElementSelector()}).map(function(d){return d.element})),u=s.filter(function(d){return!l.has(d)});o.push.apply(o,(0,pn.Z)(u.map(function(d){return n.securityContext(d,e,i)})))}),0===o.length?[Hi.NONE]:Array.from(new Set(o)).sort()}function Bc(n,r){var e=r.start-n.start.offset,i=r.end-n.end.offset;return new Qa(n.start.moveBy(e),n.end.moveBy(i),n.fullStart.moveBy(e),n.details)}var $o,I4=/^([^:/?#]+):/;function f6(n){var r=null,e=null,i=null,o=!1,a="";n.attrs.forEach(function(u){var d=u.name.toLowerCase();"select"==d?r=u.value:"href"==d?e=u.value:"rel"==d?i=u.value:"ngNonBindable"==u.name?o=!0:"ngProjectAs"==u.name&&u.value.length>0&&(a=u.value)}),r=function B4(n){return null===n||0===n.length?"*":n}(r);var s=n.name.toLowerCase(),l=$o.OTHER;return Qi(s)?l=$o.NG_CONTENT:"style"==s?l=$o.STYLE:"script"==s?l=$o.SCRIPT:"link"==s&&"stylesheet"==i&&(l=$o.STYLESHEET),new IS(l,r,e,o,a)}!function(n){n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER"}($o||($o={}));var IS=(0,B.Z)(function n(r,e,i,o,a){(0,H.Z)(this,n),this.type=r,this.selectAttr=e,this.hrefAttr=i,this.nonBindable=o,this.projectAs=a});var F4=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Yf_BANANA_BOX={start:"[(",end:")]"},Yf_PROPERTY={start:"[",end:"]"},Yf_EVENT={start:"(",end:")"};function LS(n,r,e){var i=new t1(r,e),s={nodes:xu(i,n),errors:r.errors.concat(i.errors),styleUrls:i.styleUrls,styles:i.styles,ngContentSelectors:i.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=i.commentNodes),s}var Du,t1=function(){function n(r,e){(0,H.Z)(this,n),this.bindingParser=r,this.options=e,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=this,o=s_(e.i18n);o&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var a=f6(e);if(a.type===$o.SCRIPT)return null;if(a.type===$o.STYLE){var s=function v6(n){return 1===n.children.length&&n.children[0]instanceof x_?n.children[0].value:null}(e);return null!==s&&this.styles.push(s),null}if(a.type===$o.STYLESHEET&&function s6(n){if(null==n||0===n.length||"/"==n[0])return!1;var r=n.match(I4);return null===r||"package"==r[1]||"asset"==r[1]}(a.hrefAttr))return this.styleUrls.push(a.hrefAttr),null;var Se,l=function Vi(n){return"ng-template"===Ji(n)[1]}(e.name),u=[],d=[],h=[],g=[],C=[],Z={},z=[],q=[],re=!1,ae=(0,xn.Z)(e.attrs);try{for(ae.s();!(Se=ae.n()).done;){var Ce=Se.value,Ee=!1,Ve=H4(Ce.name),ut=!1;if(Ce.i18n&&(Z[Ce.name]=Ce.i18n),Ve.startsWith("*")){re&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",Ce.sourceSpan),ut=!0,re=!0;var Ae=Ce.value,ot=Ve.substring("*".length),ht=[],bt=Ce.valueSpan?Ce.valueSpan.start.offset:Ce.sourceSpan.start.offset+Ce.name.length;this.bindingParser.parseInlineTemplateBinding(ot,Ae,Ce.sourceSpan,bt,[],z,ht,!0),q.push.apply(q,(0,pn.Z)(ht.map(function(_r){return new gM(_r.name,_r.value,_r.sourceSpan,_r.keySpan,_r.valueSpan)})))}else Ee=this.parseAttribute(l,Ce,[],u,d,h,g);!Ee&&!ut&&C.push(this.visitAttribute(Ce))}}catch(_r){ae.e(_r)}finally{ae.f()}var Pe,Xe=xu(a.nonBindable?ZS:this,e.children);if(a.type===$o.NG_CONTENT){e.children&&!e.children.every(function(_r){return function _6(n){return n instanceof x_&&0==n.value.trim().length}(_r)||function g6(n){return n instanceof _S}(_r)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var ft=a.selectAttr,Nt=e.attrs.map(function(_r){return i.visitAttribute(_r)});Pe=new o_(ft,Nt,e.sourceSpan,e.i18n),this.ngContentSelectors.push(ft)}else if(l){var Gt=this.extractAttributes(e.name,u,Z);Pe=new hh(e.name,C,Gt.bound,d,[],Xe,g,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{var It=this.extractAttributes(e.name,u,Z);Pe=new Rf(e.name,C,It.bound,d,Xe,g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(re){var Tn=this.extractAttributes("ng-template",z,Z),jn=[];Tn.literal.forEach(function(_r){return jn.push(_r)}),Tn.bound.forEach(function(_r){return jn.push(_r)});var zn=Pe instanceof Rf?{attributes:Pe.attributes,inputs:Pe.inputs,outputs:Pe.outputs}:{attributes:[],inputs:[],outputs:[]},or=l&&o?void 0:e.i18n,Mr=Pe instanceof hh?null:Pe.name;Pe=new hh(Mr,zn.attributes,zn.inputs,zn.outputs,jn,[Pe],[],q,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,or)}return o&&(this.inI18nBlock=!1),Pe}},{key:"visitAttribute",value:function(e){return new _M(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}},{key:"visitExpansion",value:function(e){var i=this;if(!e.i18n)return null;if(!s_(e.i18n))throw new Error('Invalid type "'.concat(e.i18n.constructor,'" for "i18n" property of ').concat(e.sourceSpan.toString(),'. Expected a "Message"'));var o=e.i18n,a={},s={};return Object.keys(o.placeholders).forEach(function(l){var u=o.placeholders[l];if(l.startsWith("VAR_")){var d=l.trim(),h=i.bindingParser.parseInterpolationExpression(u.text,u.sourceSpan);a[d]=new mM(h,u.sourceSpan)}else s[l]=i._visitTextWithInterpolation(u.text,u.sourceSpan,null)}),new a_(a,s,e.sourceSpan,o)}},{key:"visitExpansionCase",value:function(e){return null}},{key:"visitComment",value:function(e){return this.options.collectCommentNodes&&this.commentNodes.push(new hM(e.value||"",e.sourceSpan)),null}},{key:"extractAttributes",value:function(e,i,o){var a=this,s=[],l=[];return i.forEach(function(u){var d=o[u.name];if(u.isLiteral)l.push(new _M(u.name,u.expression.source||"",u.sourceSpan,u.keySpan,u.valueSpan,d));else{var h=a.bindingParser.createBoundElementProperty(e,u,!0,!1);s.push(zP.fromBoundElementProperty(h,d))}}),{bound:s,literal:l}}},{key:"parseAttribute",value:function(e,i,o,a,s,l,u){var d,h=H4(i.name),g=i.value,C=i.sourceSpan,Z=i.valueSpan?i.valueSpan.start.offset:C.start.offset;function z(jn,zn,or){var Mr=i.name.length-h.length,_r=jn.start.moveBy(zn.length+Mr),zr=_r.moveBy(or.length);return new Qa(_r,zr,_r,or)}var q=h.match(F4);if(q){if(null!=q[1]){var re=q[7],ae=z(C,q[1],re);this.bindingParser.parsePropertyBinding(re,g,!1,C,Z,i.valueSpan,o,a,ae)}else if(q[2])if(e){var Se=q[7],Ce=z(C,q[2],Se);this.parseVariable(Se,g,C,Ce,i.valueSpan,l)}else this.reportError('"let-" is only supported on ng-template elements.',C);else if(q[3]){var Ee=q[7],Ve=z(C,q[3],Ee);this.parseReference(Ee,g,C,Ve,i.valueSpan,u)}else if(q[4]){var ut=[],Ae=q[7],ot=z(C,q[4],Ae);this.bindingParser.parseEvent(Ae,g,!1,C,i.valueSpan||C,o,ut,ot),n1(ut,s)}else if(q[5]){var ht=q[7],bt=z(C,q[5],ht);this.bindingParser.parsePropertyBinding(ht,g,!1,C,Z,i.valueSpan,o,a,bt),this.parseAssignmentEvent(ht,g,C,i.valueSpan,o,s,bt)}else if(q[6]){var Xe=z(C,"",h);this.bindingParser.parseLiteralAttr(h,g,C,Z,i.valueSpan,o,a,Xe)}return!0}var Pe=null;if(h.startsWith(Yf_BANANA_BOX.start)?Pe=Yf_BANANA_BOX:h.startsWith(Yf_PROPERTY.start)?Pe=Yf_PROPERTY:h.startsWith(Yf_EVENT.start)&&(Pe=Yf_EVENT),null!==Pe&&h.endsWith(Pe.end)&&h.length>Pe.start.length+Pe.end.length){var ft=h.substring(Pe.start.length,h.length-Pe.end.length),Nt=z(C,Pe.start,ft);if(Pe.start===Yf_BANANA_BOX.start)this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,Nt),this.parseAssignmentEvent(ft,g,C,i.valueSpan,o,s,Nt);else if(Pe.start===Yf_PROPERTY.start)this.bindingParser.parsePropertyBinding(ft,g,!1,C,Z,i.valueSpan,o,a,Nt);else{var Gt=[];this.bindingParser.parseEvent(ft,g,!1,C,i.valueSpan||C,o,Gt,Nt),n1(Gt,s)}return!0}var It=z(C,"",h);return this.bindingParser.parsePropertyInterpolation(h,g,C,i.valueSpan,o,a,It,null!==(d=i.valueTokens)&&void 0!==d?d:null)}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var s=TS(e),l=this.bindingParser.parseInterpolation(s,i,o);return l?new mM(l,i,a):new Pf(s,i)}},{key:"parseVariable",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',o):0===e.length&&this.reportError("Variable does not have a name",o),l.push(new gM(e,i,o,a,s))}},{key:"parseReference",value:function(e,i,o,a,s,l){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',o):0===e.length?this.reportError("Reference does not have a name",o):l.some(function(u){return u.name===e})&&this.reportError('Reference "#'.concat(e,'" is defined more than once'),o),l.push(new WP(e,i,o,a,s))}},{key:"parseAssignmentEvent",value:function(e,i,o,a,s,l,u){var d=[];this.bindingParser.parseEvent("".concat(e,"Change"),"".concat(i," =$event"),!0,o,a||o,s,d,u),n1(d,l)}},{key:"reportError",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dd.ERROR;this.errors.push(new Yv(i,e,o))}}]),n}(),MV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitElement",value:function(e){var i=f6(e);if(i.type===$o.SCRIPT||i.type===$o.STYLE||i.type===$o.STYLESHEET)return null;var o=xu(this,e.children,null);return new Rf(e.name,xu(this,e.attrs),[],[],o,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},{key:"visitComment",value:function(e){return null}},{key:"visitAttribute",value:function(e){return new _M(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}},{key:"visitText",value:function(e){return new Pf(e.value,e.sourceSpan)}},{key:"visitExpansion",value:function(e){return null}},{key:"visitExpansionCase",value:function(e){return null}}]),n}(),ZS=new MV;function H4(n){return/^data-/i.test(n)?n.substring(5):n}function n1(n,r){r.push.apply(r,(0,pn.Z)(n.map(function(e){return Rv.fromParsedEvent(e)})))}function Zd(){return{getUniqueId:Ps(),icus:new Map}}!function(n){n[n.ELEMENT=0]="ELEMENT",n[n.TEMPLATE=1]="TEMPLATE"}(Du||(Du={}));var r1=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;(0,H.Z)(this,n),this.index=r,this.ref=e,this.level=i,this.templateIndex=o,this.meta=a,this.registry=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||Zd(),this.id=this._registry.getUniqueId()}return(0,B.Z)(n,[{key:"appendTag",value:function(e,i,o,a){if(!i.isVoid||!a){var s=i.isVoid||!a?i.startName:i.closeName,l={type:e,index:o,ctx:this.id,isVoid:i.isVoid,closed:a};Bv(this.placeholders,s,l)}}},{key:"icus",get:function(){return this._registry.icus}},{key:"isRoot",get:function(){return 0===this.level}},{key:"isResolved",get:function(){return 0===this._unresolvedCtxCount}},{key:"getSerializedPlaceholders",value:function(){var e=new Map;return this.placeholders.forEach(function(i,o){return e.set(o,i.map(NS))}),e}},{key:"appendBinding",value:function(e){this.bindings.add(e)}},{key:"appendIcu",value:function(e,i){Bv(this._registry.icus,e,i)}},{key:"appendBoundText",value:function(e){var i=this;$P(e,this.bindings.size,this.id).forEach(function(a,s){return Bv.apply(void 0,[i.placeholders,s].concat((0,pn.Z)(a)))})}},{key:"appendTemplate",value:function(e,i){this.appendTag(Du.TEMPLATE,e,i,!1),this.appendTag(Du.TEMPLATE,e,i,!0),this._unresolvedCtxCount++}},{key:"appendElement",value:function(e,i,o){this.appendTag(Du.ELEMENT,e,i,o)}},{key:"appendProjection",value:function(e,i){this.appendTag(Du.ELEMENT,e,i,!1),this.appendTag(Du.ELEMENT,e,i,!0)}},{key:"forkChildContext",value:function(e,i,o){return new n(e,this.ref,this.level+1,i,o,this._registry)}},{key:"reconcileChildContext",value:function(e){var i=this;["start","close"].forEach(function(a){var s=e.meta["".concat(a,"Name")],u=(i.placeholders.get(s)||[]).find(y6(i.id,e.templateIndex));u&&(u.ctx=e.id)}),e.placeholders.forEach(function(a,s){var l=i.placeholders.get(s);if(l){var u=l.findIndex(y6(e.id,e.templateIndex));if(u>=0){var d=s.startsWith("CLOSE");if(s.endsWith("NG-TEMPLATE"))l.splice.apply(l,[u+(d?0:1),0].concat((0,pn.Z)(a)));else a[d?a.length-1:0].tmpl=l[u],l.splice.apply(l,[u,1].concat((0,pn.Z)(a)))}else l.push.apply(l,(0,pn.Z)(a));i.placeholders.set(s,l)}else i.placeholders.set(s,a)}),this._unresolvedCtxCount--}}]),n}();function D_(n,r,e,i){var o=i?"/":"";return Nv("".concat(o).concat(n).concat(r),e)}function xh(n,r,e){var i=r.index,o=r.ctx;return r.isVoid?D_(n,i,o)+D_(n,i,o,!0):D_(n,i,o,e)}function y6(n,r){return function(e){return"object"==typeof e&&e.type===Du.TEMPLATE&&e.index===r&&e.ctx===n}}function NS(n){var r=function(a,s){return xh("#",a,s)},e=function(a,s){return xh("*",a,s)};switch(n.type){case Du.ELEMENT:return n.closed?r(n,!0)+(n.tmpl?e(n.tmpl,!0):""):n.tmpl?e(n.tmpl)+r(n)+(n.isVoid?e(n.tmpl,!0):""):r(n);case Du.TEMPLATE:return e(n,n.closed);default:return n}}var b6=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){var i=this,o=Object.keys(e.cases).map(function(s){return"".concat(s," {").concat(e.cases[s].visit(i),"}")});return"{".concat(e.expressionPlaceholder,", ").concat(e.type,", ").concat(o.join(" "),"}")}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}},{key:"formatPh",value:function(e){return"{".concat(u_(e,!1),"}")}}]),n}(),j4=new b6;function C6(n){return n.visit(j4)}var A_={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},G4=function(){function n(){(0,H.Z)(this,n),this._placeHolderNameCounts={},this._signatureToName={}}return(0,B.Z)(n,[{key:"getStartTagPlaceholderName",value:function(e,i,o){var a=this._hashTag(e,i,o);if(this._signatureToName[a])return this._signatureToName[a];var s=e.toUpperCase(),l=A_[s]||"TAG_".concat(s),u=this._generateUniqueName(o?l:"START_".concat(l));return this._signatureToName[a]=u,u}},{key:"getCloseTagPlaceholderName",value:function(e){var i=this._hashClosingTag(e);if(this._signatureToName[i])return this._signatureToName[i];var o=e.toUpperCase(),a=A_[o]||"TAG_".concat(o),s=this._generateUniqueName("CLOSE_".concat(a));return this._signatureToName[i]=s,s}},{key:"getPlaceholderName",value:function(e,i){var o=e.toUpperCase(),a="PH: ".concat(o,"=").concat(i);if(this._signatureToName[a])return this._signatureToName[a];var s=this._generateUniqueName(o);return this._signatureToName[a]=s,s}},{key:"getUniquePlaceholder",value:function(e){return this._generateUniqueName(e.toUpperCase())}},{key:"_hashTag",value:function(e,i,o){return"<".concat(e)+Object.keys(i).sort().map(function(u){return" ".concat(u,"=").concat(i[u])}).join("")+(o?"/>":"></".concat(e,">"))}},{key:"_hashClosingTag",value:function(e){return this._hashTag("/".concat(e),{},!1)}},{key:"_generateUniqueName",value:function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var o=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=o+1,"".concat(e,"_").concat(o)}}]),n}(),SV=new hS(new Id);function z4(n){var r=new W4(SV,n);return function(e,i,o,a,s){return r.toI18nMessage(e,i,o,a,s)}}function EV(n,r){return r}var W4=function(){function n(r,e){(0,H.Z)(this,n),this._expressionParser=r,this._interpolationConfig=e}return(0,B.Z)(n,[{key:"toI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4?arguments[4]:void 0,l={isIcu:1==e.length&&e[0]instanceof Eu,icuDepth:0,placeholderRegistry:new G4,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||EV},u=xu(this,e,l);return new bu(u,l.placeholderToContent,l.placeholderToMessage,i,o,a)}},{key:"visitElement",value:function(e,i){var o,a=xu(this,e.children,i),s={};e.attrs.forEach(function(g){s[g.name]=g.value});var l=wa(e.name).isVoid,u=i.placeholderRegistry.getStartTagPlaceholderName(e.name,s,l);i.placeholderToContent[u]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};var d="";l||(d=i.placeholderRegistry.getCloseTagPlaceholderName(e.name),i.placeholderToContent[d]={text:"</".concat(e.name,">"),sourceSpan:null!==(o=e.endSourceSpan)&&void 0!==o?o:e.sourceSpan});var h=new f5(e.name,s,u,d,a,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return i.visitNodeFn(e,h)}},{key:"visitAttribute",value:function(e,i){var o=void 0===e.valueTokens||1===e.valueTokens.length?new hC(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitText",value:function(e,i){var o=1===e.tokens.length?new hC(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,i,e.i18n);return i.visitNodeFn(e,o)}},{key:"visitComment",value:function(e,i){return null}},{key:"visitExpansion",value:function(e,i){var o=this;i.icuDepth++;var a={},s=new yM(e.switchValue,e.type,a,e.sourceSpan);if(e.cases.forEach(function(h){a[h.value]=new mC(h.expression.map(function(g){return g.visit(o,i)}),h.expSourceSpan)}),i.icuDepth--,i.isIcu||i.icuDepth>0){var l=i.placeholderRegistry.getUniquePlaceholder("VAR_".concat(e.type));return s.expressionPlaceholder=l,i.placeholderToContent[l]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},i.visitNodeFn(e,s)}var u=i.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());i.placeholderToMessage[u]=this.toI18nMessage([e],"","","",void 0);var d=new _C(s,u,e.sourceSpan);return i.visitNodeFn(e,d)}},{key:"visitExpansionCase",value:function(e,i){throw new Error("Unreachable code")}},{key:"_visitTextWithInterpolation",value:function(e,i,o,a){var d,s=[],l=!1,u=(0,xn.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;switch(h.type){case 8:case 17:l=!0;var g=h.parts[1],C=K4(g)||"INTERPOLATION",Z=o.placeholderRegistry.getPlaceholderName(C,g);o.placeholderToContent[Z]={text:h.parts.join(""),sourceSpan:h.sourceSpan},s.push(new p5(g,Z,h.sourceSpan));break;default:if(h.parts[0].length>0){var z=s[s.length-1];z instanceof hC?(z.value+=h.parts[0],z.sourceSpan=new Qa(z.sourceSpan.start,h.sourceSpan.end,z.sourceSpan.fullStart,z.sourceSpan.details)):s.push(new hC(h.parts[0],h.sourceSpan))}}}}catch(q){u.e(q)}finally{u.f()}return l?(function V4(n,r){if(r instanceof bu&&(function Y4(n){var r=n.nodes;if(1!==r.length||!(r[0]instanceof mC))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(r),r=r.nodes[0]),r instanceof mC){!function w6(n,r){if(n.length!==r.length)throw new Error("The number of i18n message children changed between first and second pass.");if(n.some(function(e,i){return r[i].constructor!==e.constructor}))throw new Error("The types of the i18n message children changed between first and second pass.")}(r.children,n);for(var e=0;e<n.length;e++)n[e].sourceSpan=r.children[e].sourceSpan}}(s,a),new mC(s,i)):s[0]}}]),n}();var BS=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function K4(n){return n.split(BS)[2]}var FS=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){return(0,H.Z)(this,e),r.call(this,i,o)}return(0,B.Z)(e)}(Yv),q4=function(r,e){return r instanceof iy&&(e instanceof _C&&r.i18n instanceof bu&&(e.previousMessage=r.i18n),r.i18n=e),e},k6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,H.Z)(this,n),this.interpolationConfig=r,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=i,this.hasI18nMeta=!1,this._errors=[],this._createI18nMessage=z4(this.interpolationConfig)}return(0,B.Z)(n,[{key:"_generateI18nMessage",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=this._parseMetadata(i),s=a.meaning,l=a.description,u=a.customId,d=this._createI18nMessage(e,s,l,u,o);return this._setMessageId(d,i),this._setLegacyIds(d,i),d}},{key:"visitAllWithErrors",value:function(e){var i=this,o=e.map(function(a){return a.visit(i,null)});return new Q3(o,this._errors)}},{key:"visitElement",value:function(e){var i=void 0;if(function Cu(n){return n.attrs.some(function(r){return XP(r.name)})}(e)){this.hasI18nMeta=!0;var l,o=[],a={},s=(0,xn.Z)(e.attrs);try{for(s.s();!(l=s.n()).done;){var u=l.value;if("i18n"===u.name){var d=e.i18n||u.value;0===(i=this._generateI18nMessage(e.children,d,q4)).nodes.length&&(i=void 0),e.i18n=i}else if(u.name.startsWith(vC)){var h=u.name.slice(vC.length);n6(e.name,h)?this._reportError(u,"Translating attribute '".concat(h,"' is disallowed for security reasons.")):a[h]=u.value}else o.push(u)}}catch(q){s.e(q)}finally{s.f()}if(Object.keys(a).length){var C,g=(0,xn.Z)(o);try{for(g.s();!(C=g.n()).done;){var Z=C.value,z=a[Z.name];void 0!==z&&Z.value&&(Z.i18n=this._generateI18nMessage([Z],Z.i18n||z))}}catch(q){g.e(q)}finally{g.f()}}this.keepI18nAttrs||(e.attrs=o)}return xu(this,e.children,i),e}},{key:"visitExpansion",value:function(e,i){var o,a=e.i18n;if(this.hasI18nMeta=!0,a instanceof _C){var s=a.name;bC(o=this._generateI18nMessage([e],a)).name=s,null!==i&&(i.placeholderToMessage[s]=o)}else o=this._generateI18nMessage([e],i||a);return e.i18n=o,e}},{key:"visitText",value:function(e){return e}},{key:"visitAttribute",value:function(e){return e}},{key:"visitComment",value:function(e){return e}},{key:"visitExpansionCase",value:function(e){return e}},{key:"_parseMetadata",value:function(e){return"string"==typeof e?function X4(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(n=n.trim()){var s,o=n.indexOf("@@"),a=n.indexOf("|"),l=o>-1?[n.slice(0,o),n.slice(o+2)]:[n,""],u=(0,Nn.Z)(l,2);s=u[0],r=u[1];var d=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s],h=(0,Nn.Z)(d,2);e=h[0],i=h[1]}return{customId:r,meaning:e,description:i}}(e):e instanceof bu?e:{}}},{key:"_setMessageId",value:function(e,i){e.id||(e.id=i instanceof bu&&i.id||ih(e))}},{key:"_setLegacyIds",value:function(e,i){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[rh(e),Ef(e)];else if("string"!=typeof i){var o=i instanceof bu?i:i instanceof _C?i.previousMessage:void 0;e.legacyIds=o?o.legacyIds:[]}}},{key:"_reportError",value:function(e,i){this._errors.push(new FS(e.sourceSpan,i))}}]),n}();function Dh(n,r,e,i){var o=function e8(n){return n.nodes.map(function(r){return r.visit(fy,null)}).join("")}(r),a=[rn(o)];Object.keys(i).length&&(a.push(Ld(TM(i,!0),!0)),a.push(Ld({original_code:Qs(Object.keys(i).map(function(u){return{key:u_(u),quoted:!0,value:r.placeholders[u]?rn(r.placeholders[u].sourceSpan.toString()):rn(r.placeholderToMessage[u].nodes.map(function(d){return d.sourceSpan.toString()}).join(""))}}))})));var s=e.set(ii("goog.getMsg").callFn(a)).toConstDecl();return s.addLeadingComment(function $4(n){var r=[];return n.description?r.push({tagName:"desc",text:n.description}):r.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&r.push({tagName:"meaning",text:n.meaning}),sM(r)}(r)),[s,new Of(n.set(e))]}var xV=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"formatPh",value:function(e){return"{$".concat(u_(e),"}")}},{key:"visitText",value:function(e){return e.value}},{key:"visitContainer",value:function(e){var i=this;return e.children.map(function(o){return o.visit(i)}).join("")}},{key:"visitIcu",value:function(e){return C6(e)}},{key:"visitTagPlaceholder",value:function(e){var i=this;return e.isVoid?this.formatPh(e.startName):"".concat(this.formatPh(e.startName)).concat(e.children.map(function(o){return o.visit(i)}).join("")).concat(this.formatPh(e.closeName))}},{key:"visitPlaceholder",value:function(e){return this.formatPh(e.name)}},{key:"visitIcuPlaceholder",value:function(e,i){return this.formatPh(e.name)}}]),n}(),fy=new xV;function t8(n,r,e){var i=function n8(n){var r=[],e=new US(n.placeholderToMessage,r);return n.nodes.forEach(function(i){return i.visit(e)}),function py(n){var r=[],e=[];n[0]instanceof Pt&&r.push(Xa(n[0].sourceSpan.start));for(var i=0;i<n.length;i++){var o=n[i];o instanceof Qe?r.push(o):(e.push(o),n[i-1]instanceof Pt&&r.push(Xa(n[i-1].sourceSpan.end)))}return n[n.length-1]instanceof Pt&&r.push(Xa(n[n.length-1].sourceSpan.end)),{messageParts:r,placeHolders:e}}(r)}(r),o=i.messageParts,a=i.placeHolders,s=function Fc(n){var r=n.nodes[0],e=n.nodes[n.nodes.length-1];return new Qa(r.sourceSpan.fullStart,e.sourceSpan.end,r.sourceSpan.fullStart,r.sourceSpan.details)}(r),l=a.map(function(h){return e[h.text]}),u=dh(r,o,a,l,s),d=n.set(u);return[new Of(d)]}var US=function(){function n(r,e){(0,H.Z)(this,n),this.placeholderToMessage=r,this.pieces=e}return(0,B.Z)(n,[{key:"visitText",value:function(e){if(this.pieces[this.pieces.length-1]instanceof Qe)this.pieces[this.pieces.length-1].text+=e.value;else{var i=new Qa(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Qe(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 Qe(C6(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 Pt(u_(e,!1),i,o)}}]),n}();function Xa(n){return new Qe("",new Qa(n,n))}var o1="ngProjectAs",Jl=new Set(["$event"]),hy=new Map([["window",Le.resolveWindow],["document",Le.resolveDocument],["body",Le.resolveBody]]),O_=[" ","\n","\r","\t"];function Ql(n,r){return wd(ii(Fv).bitwiseAnd(rn(n),null,!1),r)}function Oh(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=n.type,o=n.name,a=n.target,s=n.phase,l=n.handler;if(a&&!hy.has(a))throw new Error("Unexpected global target '".concat(a,"' defined for '").concat(o,"' event.\n Supported list of global targets: ").concat(Array.from(hy.keys()),"."));var u="$event",d=new Set,h=null===e||0===e.bindingLevel?ii(tc):e.getOrCreateSharedContextVar(0),g=C_(e,h,l,"b",n.handlerSpan,d,Jl),C=[],Z=null==e?void 0:e.variableDeclarations(),z=null==e?void 0:e.restoreViewStatement();if(Z&&C.push.apply(C,(0,pn.Z)(Z)),C.push.apply(C,(0,pn.Z)(g)),z){C.unshift(z);var q=C[C.length-1];q instanceof _s?C[C.length-1]=new _s(mh(q.value.sourceSpan,Le.resetView,[q.value])):C.push(new Of(mh(null,Le.resetView,[])))}var re=1===i?a5(o,s):o,ae=r&&v_(r),Se=[];d.has(u)&&Se.push(new Go(u,qs));var Ce=aa(Se,C,ia,null,ae),Ee=[rn(re),Ce];return a&&Ee.push(rn(!1),Jn(hy.get(a))),Ee}function I_(){return{prepareStatements:[],constExpressions:[],i18nVarRefsCache:new Map}}var P_=function(){function n(r,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,h=arguments.length>8?arguments[8]:void 0,g=arguments.length>9?arguments[9]:void 0,C=arguments.length>10&&void 0!==arguments[10]?arguments[10]:I_();(0,H.Z)(this,n),this.constantPool=r,this.level=o,this.contextName=a,this.i18nContext=s,this.templateIndex=l,this.templateName=u,this._namespace=d,this.i18nUseExternalIds=g,this._constants=C,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=_h,this.visitVariable=_h,this.visitTextAttribute=_h,this.visitBoundAttribute=_h,this.visitBoundEvent=_h,this._bindingScope=e.nestedScope(o),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new Ih(r,function(){return i.allocateDataSlot()},function(Z){return i.allocatePureFunctionSlots(Z)},function(Z,z,q,re){i._bindingScope.set(i.level,z,re),i.creationInstruction(null,Le.pipe,[rn(q),rn(Z)])})}return(0,B.Z)(n,[{key:"buildTemplateFunction",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0;this._ngContentSelectorsOffset=a,this._namespace!==Le.namespaceHTML&&this.creationInstruction(null,this._namespace),i.forEach(function(ae){return o.registerContextVariables(ae)});var l=this.i18nContext||s_(s)&&!yC(s)&&!(a8(e)&&e[0].i18n===s),u=gy(e);if(l&&this.i18nStart(null,s,u),VP(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(ae){return ae()}),0===this.level&&this._ngContentReservedSlots.length){var d=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var h=this._ngContentReservedSlots.map(function(ae){return"*"!==ae?us(ae):ae});d.push(this.constantPool.getConstLiteral(vl(h),!0))}this.creationInstruction(null,Le.projectionDef,d,!0)}l&&this.i18nEnd(null,u);var g=wC(this._creationCodeFns),C=wC(this._updateCodeFns),Z=this._bindingScope.viewSnapshotStatements(),z=this._bindingScope.variableDeclarations().concat(this._tempVariables),q=g.length>0?[Ql(1,Z.concat(g))]:[],re=C.length>0?[Ql(2,z.concat(C))]:[];return aa([new Go(Fv,Ue),new Go(tc,null)],[].concat((0,pn.Z)(this._prefixCode),q,re),ia,null,this.templateName)}},{key:"getLocal",value:function(e){return this._bindingScope.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){this._bindingScope.notifyImplicitReceiverUse()}},{key:"maybeRestoreView",value:function(){this._bindingScope.maybeRestoreView()}},{key:"i18nTranslate",value:function(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=a||this.i18nGenerateMainBlockVar(),u=this.i18nGenerateClosureVar(e.id),d=c1(e,l,u,o,s);return(i=this._constants.prepareStatements).push.apply(i,(0,pn.Z)(d)),l}},{key:"registerContextVariables",value:function(e){var i=this._bindingScope.freshReferenceName(),o=this.level,a=ii(e.name+i);this._bindingScope.set(o,e.name,a,1,function(s,l){var u;s.bindingLevel===o?s.isListenerScope()&&s.hasRestoreViewVariable()?(u=ii(EM),s.notifyRestoredViewContextUse()):u=ii(tc):u=s.getSharedContextName(o)||my(l);return[a.set(u.prop(e.value||"$implicit")).toConstDecl()]})}},{key:"i18nAppendBindings",value:function(e){var i=this;e.length>0&&e.forEach(function(o){return i.i18n.appendBinding(o)})}},{key:"i18nBindProps",value:function(e){var i=this,o={};return Object.keys(e).forEach(function(a){var s=e[a];if(s instanceof Pf)o[a]=rn(s.value);else{var l=s.value.visit(i._valueConverter);if(i.allocateBindingSlots(l),l instanceof gs){var u=l.strings,d=l.expressions,h=i.i18n,g=h.id,Z=function kM(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n.length)return"";for(var i="",o=n.length-1,a=0;a<o;a++)i+="".concat(n[a]).concat(Nv(r+a,e));return i+n[o]}(u,h.bindings.size,g);i.i18nAppendBindings(d),o[a]=rn(Z)}}}),o}},{key:"i18nGenerateMainBlockVar",value:function(){return ii(this.constantPool.uniqueName("i18n_"))}},{key:"i18nGenerateClosureVar",value:function(e){var i,o=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var a=e3("EXTERNAL_"),s=this.constantPool.uniqueName(o);i="".concat(a).concat(v_(e),"$$").concat(s)}else{var l=e3(o);i=this.constantPool.uniqueName(l)}return ii(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&&!yC(o)){e.isEmitted=!0;var C,u=e.getSerializedPlaceholders(),d={},h=u.size?l_(u):{};i.size&&i.forEach(function(Z,z){if(1===Z.length)h[z]=Z[0];else{var q=Nv("".concat("I18N_EXP_").concat(z));h[z]=rn(q),d[z]=di(Z)}}),(Array.from(u.values()).some(function(Z){return Z.length>1})||Object.keys(d).length)&&(C=function(z){var q=[z];return Object.keys(d).length&&q.push(Ld(d,!0)),mh(null,Le.i18nPostprocess,q)}),this.i18nTranslate(o,h,e.ref,C)}}},{key:"i18nStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(a,this.templateIndex,i):new r1(a,this.i18nGenerateMainBlockVar(),0,this.templateIndex,i);var s=this.i18n,l=s.id,u=s.ref,d=[rn(a),this.addToConsts(u)];l>0&&d.push(rn(l)),this.creationInstruction(e,o?Le.i18n:Le.i18nStart,d)}},{key:"i18nEnd",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var a=this.i18n,s=a.index,l=a.bindings;if(l.size){var d,u=(0,xn.Z)(l);try{var h=function(){var C=d.value;e.updateInstructionWithAdvance(e.getConstCount()-1,i,Le.i18nExp,function(){return e.convertPropertyBinding(C)})};for(u.s();!(d=u.n()).done;)h()}catch(g){u.e(g)}finally{u.f()}this.updateInstruction(i,Le.i18nApply,[rn(s)])}o||this.creationInstruction(i,Le.i18nEnd),this.i18n=null}},{key:"i18nAttributesInstruction",value:function(e,i,o){var a=this,s=!1,l=[];if(i.forEach(function(h){var g=h.i18n,C=h.value.visit(a._valueConverter);if(a.allocateBindingSlots(C),C instanceof gs){var z=l_($P(g));l.push(rn(h.name),a.i18nTranslate(g,z)),C.expressions.forEach(function(q){s=!0,a.updateInstructionWithAdvance(e,o,Le.i18nExp,function(){return a.convertPropertyBinding(q)})})}}),l.length>0){var u=rn(this.allocateDataSlot()),d=this.addToConsts(di(l));this.creationInstruction(o,Le.i18nAttributes,[u,d]),s&&this.updateInstruction(o,Le.i18nApply,[u])}}},{key:"getNamespaceInstruction",value:function(e){switch(e){case"math":return Le.namespaceMathML;case"svg":return Le.namespaceSVG;default:return Le.namespaceHTML}}},{key:"addNamespaceInstruction",value:function(e,i){this._namespace=e,this.creationInstruction(i.startSourceSpan,e)}},{key:"interpolatedUpdateInstruction",value:function(e,i,o,a,s,l){var u=this;this.updateInstructionWithAdvance(i,a.sourceSpan,e,function(){return[rn(o)].concat((0,pn.Z)(u.getUpdateInstructionArguments(s)),(0,pn.Z)(l))})}},{key:"visitContent",value:function(e){var i=this.allocateDataSlot(),o=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,a=[rn(i)];this._ngContentReservedSlots.push(e.selector);var s=e.attributes.filter(function(u){return"select"!==u.name.toLowerCase()}),l=this.getAttributeExpressions(e.name,s,[],[]);l.length>0?a.push(rn(o),di(l)):0!==o&&a.push(rn(o)),this.creationInstruction(e.sourceSpan,Le.projection,a),this.i18n&&this.i18n.appendProjection(e.i18n,i)}},{key:"visitElement",value:function(e){var o,a,ae,i=this,s=this.allocateDataSlot(),l=new VC(null),u=!1,d=s_(e.i18n)&&!yC(e.i18n),h=[],g=Ji(e.name),C=(0,Nn.Z)(g,2),Z=C[0],z=C[1],q=jo(e.name),re=(0,xn.Z)(e.attributes);try{for(re.s();!(ae=re.n()).done;){var Se=ae.value,Ce=Se.name,Ee=Se.value;"ngNonBindable"===Ce?u=!0:"style"===Ce?l.registerStyleAttr(Ee):"class"===Ce?l.registerClassAttr(Ee):h.push(Se)}}catch(un){re.e(un)}finally{re.f()}var Ve=[rn(s)];q||Ve.push(rn(z));var ut=[],Ae=[];e.inputs.forEach(function(un){l.registerBoundInput(un)||(0===un.type&&un.i18n?Ae.push(un):ut.push(un))});var ot=this.getAttributeExpressions(e.name,h,ut,e.outputs,l,[],Ae);Ve.push(this.addAttrsToConsts(ot));var ht=this.prepareRefsArray(e.references);Ve.push(this.addToConsts(ht));var bt=this._namespace,Xe=this.getNamespaceInstruction(Z);Xe!==bt&&this.addNamespaceInstruction(Xe,e),this.i18n&&this.i18n.appendElement(e.i18n,s);var Pe=!d&&this.i18n?!gy(e.children):e.children.length>0,ft=!l.hasBindingsWithPipes&&0===e.outputs.length&&0===Ae.length&&!Pe,Nt=!ft&&gy(e.children);if(ft)this.creationInstruction(e.sourceSpan,q?Le.elementContainer:Le.element,Lf(Ve));else{if(this.creationInstruction(e.startSourceSpan,q?Le.elementContainerStart:Le.elementStart,Lf(Ve)),u&&this.creationInstruction(e.startSourceSpan,Le.disableBindings),Ae.length>0&&this.i18nAttributesInstruction(s,Ae,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),e.outputs.length>0){var It,Gt=(0,xn.Z)(e.outputs);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;this.creationInstruction(Tn.sourceSpan,Le.listener,this.prepareListenerParameter(e.name,Tn,s))}}catch(un){Gt.e(un)}finally{Gt.f()}}d&&this.i18nStart(e.startSourceSpan,e.i18n,Nt)}for(var jn=l.buildUpdateLevelInstructions(this._valueConverter),zn=jn.length-1,or=0;or<=zn;or++){var Mr=jn[or];this._bindingSlots+=this.processStylingUpdateInstruction(s,Mr)}var _r=rn(void 0),zr=[],Ur=[];ut.forEach(function(un){var bn=un.type;if(4===bn){var Bn=un.value.visit(i._valueConverter),nr=!(Bn instanceof Xs)||!!Bn.value;i.allocateBindingSlots(Bn),zr.push({span:un.sourceSpan,paramsOrFn:u1(function(){return nr?i.convertPropertyBinding(Bn):_r},dM(un.name))})}else{if(un.i18n)return;var vr=un.value.visit(i._valueConverter);if(void 0!==vr){var io=[],Yu=Ji(un.name),Mv=(0,Nn.Z)(Yu,2),Sv=Mv[0],Jm=Mv[1],aC=1===bn,Ia=a1(un.securityContext,aC);if(Ia||function l1(n){return"iframe"===n.toLowerCase()}(e.name)&&Nc(un.name)&&(Ia=Jn(Le.validateIframeAttribute)),Ia&&io.push(Ia),Sv){var AP=rn(Sv);Ia?io.push(AP):io.push(rn(null),AP)}if(i.allocateBindingSlots(vr),0===bn)vr instanceof gs?i.interpolatedUpdateInstruction(GS(vr),s,Jm,un,vr,io):zr.push({span:un.sourceSpan,paramsOrFn:u1(function(){return i.convertPropertyBinding(vr)},Jm,io)});else if(1===bn)if(vr instanceof gs&&Sd(vr)>1)i.interpolatedUpdateInstruction(function i8(n){switch(Sd(n)){case 3:return Le.attributeInterpolate1;case 5:return Le.attributeInterpolate2;case 7:return Le.attributeInterpolate3;case 9:return Le.attributeInterpolate4;case 11:return Le.attributeInterpolate5;case 13:return Le.attributeInterpolate6;case 15:return Le.attributeInterpolate7;case 17:return Le.attributeInterpolate8;default:return Le.attributeInterpolateV}}(vr),s,Jm,un,vr,io);else{var QW=vr instanceof gs?vr.expressions[0]:vr;Ur.push({span:un.sourceSpan,paramsOrFn:u1(function(){return i.convertPropertyBinding(QW)},Jm,io)})}else i.updateInstructionWithAdvance(s,un.sourceSpan,Le.classProp,function(){return[rn(s),rn(Jm),i.convertPropertyBinding(vr)].concat(io)})}}});for(var Kr=0,Fo=zr;Kr<Fo.length;Kr++){var er=Fo[Kr];this.updateInstructionWithAdvance(s,er.span,Le.property,er.paramsOrFn)}for(var wr=0,Sn=Ur;wr<Sn.length;wr++){var gn=Sn[wr];this.updateInstructionWithAdvance(s,gn.span,Le.attribute,gn.paramsOrFn)}if(VP(this,e.children),!d&&this.i18n&&this.i18n.appendElement(e.i18n,s,!0),!ft){var tr=null!==(a=e.endSourceSpan)&&void 0!==a?a:e.sourceSpan;d&&this.i18nEnd(tr,Nt),u&&this.creationInstruction(tr,Le.enableBindings),this.creationInstruction(tr,q?Le.elementContainerEnd:Le.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?Ji(e.tagName)[1]:e.tagName,u="".concat(this.contextName).concat(e.tagName?"_"+v_(e.tagName):"","_").concat(s),d="".concat(u,"_Template"),h=[rn(s),ii(d),rn(l)],g=this.getAttributeExpressions(a,e.attributes,e.inputs,e.outputs,void 0,e.templateAttrs);if(h.push(this.addAttrsToConsts(g)),e.references&&e.references.length){var C=this.prepareRefsArray(e.references);h.push(this.addToConsts(C)),h.push(Jn(Le.templateRefExtractor))}var Z=new n(this.constantPool,this._bindingScope,this.level+1,u,this.i18n,s,d,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(function(){var ut,Ve=Z.buildTemplateFunction(e.children,e.variables,i._ngContentReservedSlots.length+i._ngContentSelectorsOffset,e.i18n);(i.constantPool.statements.push(Ve.toDeclStmt(d)),Z._ngContentReservedSlots.length)&&(ut=i._ngContentReservedSlots).push.apply(ut,(0,pn.Z)(Z._ngContentReservedSlots))}),this.creationInstruction(e.sourceSpan,Le.templateCreate,function(){return h.splice(2,0,rn(Z.getConstCount()),rn(Z.getVarCount())),Lf(h)}),this.templatePropertyBindings(s,e.templateAttrs),l===a){var z=function nh(n,r){var a,e=[],i=[],o=(0,xn.Z)(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;(r(s)?e:i).push(s)}}catch(l){o.e(l)}finally{o.f()}return[e,i]}(e.inputs,w5),q=(0,Nn.Z)(z,2),re=q[0],ae=q[1];re.length>0&&this.i18nAttributesInstruction(s,re,null!==(o=e.startSourceSpan)&&void 0!==o?o:e.sourceSpan),ae.length>0&&this.templatePropertyBindings(s,ae);var Ce,Se=(0,xn.Z)(e.outputs);try{for(Se.s();!(Ce=Se.n()).done;){var Ee=Ce.value;this.creationInstruction(Ee.sourceSpan,Le.listener,this.prepareListenerParameter("ng_template",Ee,s))}}catch(Ve){Se.e(Ve)}finally{Se.f()}}}},{key:"visitBoundText",value:function(e){var i=this;if(this.i18n){var o=e.value.visit(this._valueConverter);return this.allocateBindingSlots(o),void(o instanceof gs&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(o.expressions)))}var a=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Le.text,[rn(a)]);var s=e.value.visit(this._valueConverter);this.allocateBindingSlots(s),s instanceof gs?this.updateInstructionWithAdvance(a,e.sourceSpan,function o8(n){switch(Sd(n)){case 1:return Le.textInterpolate;case 3:return Le.textInterpolate1;case 5:return Le.textInterpolate2;case 7:return Le.textInterpolate3;case 9:return Le.textInterpolate4;case 11:return Le.textInterpolate5;case 13:return Le.textInterpolate6;case 15:return Le.textInterpolate7;case 17:return Le.textInterpolate8;default:return Le.textInterpolateV}}(s),function(){return i.getUpdateInstructionArguments(s)}):Ba("Text nodes should be interpolated and never bound directly.")}},{key:"visitText",value:function(e){this.i18n||this.creationInstruction(e.sourceSpan,Le.text,[rn(this.allocateDataSlot()),rn(e.value)])}},{key:"visitIcu",value:function(e){var i=!1;this.i18n||(i=!0,this.i18nStart(null,e.i18n,!0));var o=this.i18n,a=this.i18nBindProps(e.vars),s=this.i18nBindProps(e.placeholders),l=e.i18n,u=function(g){var Z=TM(Object.assign(Object.assign({},a),s),!1);return mh(null,Le.i18nPostprocess,[g,Ld(Z,!0)])};if(yC(o.meta))this.i18nTranslate(l,{},o.ref,u);else{var d=this.i18nTranslate(l,{},void 0,u);o.appendIcu(bC(l).name,d)}return i&&this.i18nEnd(null,!0),null}},{key:"allocateDataSlot",value:function(){return this._dataIndex++}},{key:"getConstCount",value:function(){return this._dataIndex}},{key:"getVarCount",value:function(){return this._pureFunctionSlots}},{key:"getConsts",value:function(){return this._constants}},{key:"getNgContentSelectors",value:function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(vl(this._ngContentReservedSlots),!0):null}},{key:"bindingContext",value:function(){return"".concat(this._bindingContext++)}},{key:"templatePropertyBindings",value:function(e,i){var l,o=this,a=[],s=(0,xn.Z)(i);try{var u=function(){var z=l.value;if(!(z instanceof zP))return 0;var q=z.value.visit(o._valueConverter);if(void 0===q)return 0;if(o.allocateBindingSlots(q),q instanceof gs){o.interpolatedUpdateInstruction(GS(q),e,z.name,z,q,[])}else a.push({span:z.sourceSpan,paramsOrFn:u1(function(){return o.convertPropertyBinding(q)},z.name)})};for(s.s();!(l=s.n()).done;)u()}catch(Z){s.e(Z)}finally{s.f()}for(var h=0,g=a;h<g.length;h++){var C=g[h];this.updateInstructionWithAdvance(e,C.span,Le.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,xn.Z)(i.calls);try{var u=function(){var h=l.value;a+=h.allocateBindingSlots,o.updateInstructionWithAdvance(e,h.sourceSpan,i.reference,function(){return h.params(function(g){return h.supportsInterpolation&&g instanceof gs?o.getUpdateInstructionArguments(g):o.convertPropertyBinding(g)})})};for(s.s();!(l=s.n()).done;)u()}catch(d){s.e(d)}finally{s.f()}}return a}},{key:"creationInstruction",value:function(e,i,o,a){this.instructionFn(this._creationCodeFns,e,i,o||[],a)}},{key:"updateInstructionWithAdvance",value:function(e,i,o,a){this.addAdvanceInstructionIfNecessary(e,i),this.updateInstruction(i,o,a)}},{key:"updateInstruction",value:function(e,i,o){this.instructionFn(this._updateCodeFns,e,i,o||[])}},{key:"addAdvanceInstructionIfNecessary",value:function(e,i){if(e!==this._currentIndex){var o=e-this._currentIndex;if(o<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,i,Le.advance,[rn(o)]),this._currentIndex=e}}},{key:"allocatePureFunctionSlots",value:function(e){var i=this._pureFunctionSlots;return this._pureFunctionSlots+=e,i}},{key:"allocateBindingSlots",value:function(e){this._bindingSlots+=e instanceof gs?e.expressions.length:1}},{key:"getImplicitReceiverExpr",value:function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?ii(tc):this._bindingScope.getOrCreateSharedContextVar(0)}},{key:"convertPropertyBinding",value:function(e){var i,o=Th(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.currValExpr;return(i=this._tempVariables).push.apply(i,(0,pn.Z)(o.stmts)),a}},{key:"getUpdateInstructionArguments",value:function(e){var i,o=function z5(n,r,e,i){var o=new ty(n,r,i,!0),a=o.visitInterpolation(e,Oi.Expression);return o.usesImplicitReceiver&&n.notifyImplicitReceiverUse(),{stmts:W5(o,i),args:a.args}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),a=o.args,s=o.stmts;return(i=this._tempVariables).push.apply(i,(0,pn.Z)(s)),a}},{key:"getAttributeExpressions",value:function(e,i,o,a,s){var g,Z,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],d=new Set,h=[],C=(0,xn.Z)(i);try{for(C.s();!(Z=C.n()).done;){var z=Z.value;if(z.name===o1&&(g=z),z.i18n){var q=this._constants.i18nVarRefsCache,re=void 0;q.has(z.i18n)?re=q.get(z.i18n):(re=this.i18nTranslate(z.i18n),q.set(z.i18n,re)),h.push(rn(z.name),re)}else h.push.apply(h,(0,pn.Z)(jS(z.name)).concat([zS(e,z)]))}}catch(Ae){C.e(Ae)}finally{C.f()}function ae(Ae,ot){"string"==typeof Ae?d.has(Ae)||(h.push.apply(h,(0,pn.Z)(jS(Ae))),void 0!==ot&&h.push(ot),d.add(Ae)):h.push(rn(Ae))}if(g&&h.push.apply(h,(0,pn.Z)(S6(g))),s&&s.populateInitialStylingAttrs(h),o.length||a.length){for(var Se=h.length,Ce=0;Ce<o.length;Ce++){var Ee=o[Ce];4!==Ee.type&&1!==Ee.type&&ae(Ee.name)}for(var Ve=0;Ve<a.length;Ve++){var ut=a[Ve];1!==ut.type&&ae(ut.name)}h.length!==Se&&h.splice(Se,0,rn(3))}return l.length&&(h.push(rn(4)),l.forEach(function(Ae){return ae(Ae.name)})),u.length&&(h.push(rn(6)),u.forEach(function(Ae){return ae(Ae.name)})),h}},{key:"addToConsts",value:function(e){if(Oc(e))return sh;for(var i=this._constants.constExpressions,o=0;o<i.length;o++)if(i[o].isEquivalent(e))return rn(o);return rn(i.push(e)-1)}},{key:"addAttrsToConsts",value:function(e){return e.length>0?this.addToConsts(di(e)):sh}},{key:"prepareRefsArray",value:function(e){var i=this;return e&&0!==e.length?vl(VS(e.map(function(a){var s=i.allocateDataSlot(),l=i._bindingScope.freshReferenceName(),u=i.level,d=ii(l);return i._bindingScope.set(u,a.name,d,0,function(h,g){var C=g>0?[my(g).toStmt()]:[],Z=d.set(Jn(Le.reference).callFn([rn(s)]));return C.concat(Z.toConstDecl())},!0),[a.name,a.value]}))):sh}},{key:"prepareListenerParameter",value:function(e,i,o){var a=this;return function(){var s=i.name,l=1===i.type?FP(s,i.phase):v_(s),u="".concat(a.templateName,"_").concat(e,"_").concat(l,"_").concat(o,"_listener"),d=a._bindingScope.nestedScope(a._bindingScope.bindingLevel,Jl);return Oh(i,u,d)}}}]),n}(),Ih=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this)).constantPool=i,l.allocateSlot=o,l.allocatePureFunctionSlots=a,l.definePipe=s,l._pipeBindExprs=[],l}return(0,B.Z)(e,[{key:"visitPipe",value:function(o,a){var s=this.allocateSlot(),l="PIPE:".concat(s),u=this.allocatePureFunctionSlots(2+o.args.length),d=new wh(o.span,o.sourceSpan,o.nameSpan,new qv(o.span,o.sourceSpan),l),h=function L_(n){var r=R_[n.length];return{identifier:r||Le.pipeBindV,isVarLength:!r}}(o.args),g=h.identifier,C=h.isVarLength;this.definePipe(o.name,l,s,Jn(g));var Z=[o.exp].concat((0,pn.Z)(o.args)),z=C?this.visitAll([new kh(o.span,o.sourceSpan,Z)]):this.visitAll(Z),q=new b_(o.span,o.sourceSpan,d,[new Xs(o.span,o.sourceSpan,s),new Xs(o.span,o.sourceSpan,u)].concat((0,pn.Z)(z)),null);return this._pipeBindExprs.push(q),q}},{key:"updatePipeSlotOffsets",value:function(o){this._pipeBindExprs.forEach(function(a){a.args[1].value+=o})}},{key:"visitLiteralArray",value:function(o,a){var s=this;return new T_(o.span,o.sourceSpan,this.visitAll(o.expressions),function(l){var u=di(l);return HS(s.constantPool,u,s.allocatePureFunctionSlots)})}},{key:"visitLiteralMap",value:function(o,a){var s=this;return new T_(o.span,o.sourceSpan,this.visitAll(o.values),function(l){var u=Qs(l.map(function(d,h){return{key:o.keys[h].key,value:d,quoted:o.keys[h].quoted}}));return HS(s.constantPool,u,s.allocatePureFunctionSlots)})}}]),e}(YM),R_=[Le.pipeBind1,Le.pipeBind2,Le.pipeBind3,Le.pipeBind4];var Z_=[Le.pureFunction0,Le.pureFunction1,Le.pureFunction2,Le.pureFunction3,Le.pureFunction4,Le.pureFunction5,Le.pureFunction6,Le.pureFunction7,Le.pureFunction8];function my(n){return Jn(Le.nextContext).callFn(n>1?[rn(n)]:[])}function HS(n,r,e){var i=n.getLiteralFactory(r),o=i.literalFactory,a=i.literalFactoryArguments,s=e(1+a.length),l=function T6(n){var r=Z_[n.length];return{identifier:r||Le.pureFunctionV,isVarLength:!r}}(a),u=l.identifier,d=l.isVarLength,h=[rn(s),o];return d?h.push(di(a)):h.push.apply(h,(0,pn.Z)(a)),Jn(u).callFn(h)}function jS(n){var r=Ji(n),e=(0,Nn.Z)(r,2),i=e[0],a=rn(e[1]);return i?[rn(0),rn(i),a]:[a]}var Ph="$$shared_ctx$$",M6=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;if((0,H.Z)(this,n),this.bindingLevel=r,this.parent=e,this.globals=i,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,this.usesRestoredViewContext=!1,void 0!==i){var a,o=(0,xn.Z)(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.set(0,s,ii(s))}}catch(l){o.e(l)}finally{o.f()}}}return(0,B.Z)(n,[{key:"get",value:function(e){for(var i=this;i;){var o=i.map.get(e);if(null!=o)return i!==this&&(o={retrievalLevel:o.retrievalLevel,lhs:o.lhs,declareLocalCallback:o.declareLocalCallback,declare:!1,priority:o.priority},this.map.set(e,o),this.maybeGenerateSharedContextVar(o),this.maybeRestoreView()),o.declareLocalCallback&&!o.declare&&(o.declare=!0),o.lhs;i=i.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)}},{key:"set",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0;if(this.map.has(i)){if(l)return this;Ba("The name ".concat(i," is already defined in scope to be ").concat(this.map.get(i)))}return this.map.set(i,{retrievalLevel:e,lhs:o,declare:!1,declareLocalCallback:s,priority:a}),this}},{key:"getLocal",value:function(e){return this.get(e)}},{key:"notifyImplicitReceiverUse",value:function(){0!==this.bindingLevel&&(this.map.get(Ph+0).declare=!0)}},{key:"nestedScope",value:function(e,i){var o=new n(e,this,i);return e>0&&o.generateSharedContextVar(0),o}},{key:"getOrCreateSharedContextVar",value:function(e){var i=Ph+e;return this.map.has(i)||this.generateSharedContextVar(e),this.map.get(i).lhs}},{key:"getSharedContextName",value:function(e){var i=this.map.get(Ph+e);return i&&i.declare?i.lhs:null}},{key:"maybeGenerateSharedContextVar",value:function(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){var i=this.map.get(Ph+e.retrievalLevel);i?i.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}}},{key:"generateSharedContextVar",value:function(e){var i=ii(tc+this.freshReferenceName());this.map.set(Ph+e,{retrievalLevel:e,lhs:i,declareLocalCallback:function(a,s){return[i.set(my(s)).toConstDecl()]},declare:!1,priority:2})}},{key:"getComponentProperty",value:function(e){var i=this.map.get(Ph+0);return i.declare=!0,this.maybeRestoreView(),i.lhs.prop(e)}},{key:"maybeRestoreView",value:function(){this.isListenerScope()&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=ii(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}},{key:"restoreViewStatement",value:function(){if(this.restoreViewVariable){var e=mh(null,Le.restoreView,[this.restoreViewVariable]);return this.usesRestoredViewContext?ii(EM).set(e).toConstDecl():e.toStmt()}return null}},{key:"viewSnapshotStatements",value:function(){return this.restoreViewVariable?[this.restoreViewVariable.set(mh(null,Le.getCurrentView,[])).toConstDecl()]:[]}},{key:"isListenerScope",value:function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}},{key:"variableDeclarations",value:function(){var e=this,i=0;return Array.from(this.map.values()).filter(function(o){return o.declare}).sort(function(o,a){return a.retrievalLevel-o.retrievalLevel||a.priority-o.priority}).reduce(function(o,a){var s=e.bindingLevel-a.retrievalLevel,l=a.declareLocalCallback(e,s-i);return i=s,o.concat(l)},[])}},{key:"freshReferenceName",value:function(){for(var e=this;e.parent;)e=e.parent;return"".concat("_r").concat(e.referenceNameIndex++)}},{key:"hasRestoreViewVariable",value:function(){return!!this.restoreViewVariable}},{key:"notifyRestoredViewContextUse",value:function(){this.usesRestoredViewContext=!0}}],[{key:"createRootScope",value:function(){return new n}}]),n}();function S6(n){var r=us(n.value)[0];return[rn(5),vl(r)]}function GS(n){switch(Sd(n)){case 1:return Le.propertyInterpolate;case 3:return Le.propertyInterpolate1;case 5:return Le.propertyInterpolate2;case 7:return Le.propertyInterpolate3;case 9:return Le.propertyInterpolate4;case 11:return Le.propertyInterpolate5;case 13:return Le.propertyInterpolate6;case 15:return Le.propertyInterpolate7;case 17:return Le.propertyInterpolate8;default:return Le.propertyInterpolateV}}var x6=new e1;function _y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu;return new o6(new hS(new Id),n,x6,[])}function a1(n,r){switch(n){case Hi.HTML:return Jn(Le.sanitizeHtml);case Hi.SCRIPT:return Jn(Le.sanitizeScript);case Hi.STYLE:return r?Jn(Le.sanitizeStyle):null;case Hi.URL:return Jn(Le.sanitizeUrl);case Hi.RESOURCE_URL:return Jn(Le.sanitizeResourceUrl);default:return null}}function zS(n,r){var e=vl(r.value);if(!n6(n,r.name))return e;switch(x6.securityContext(n,r.name,!0)){case Hi.HTML:return ch(Jn(Le.trustConstantHtml),new he([new Fe(r.value)],[]),void 0,r.valueSpan);case Hi.RESOURCE_URL:return ch(Jn(Le.trustConstantResourceUrl),new he([new Fe(r.value)],[]),void 0,r.valueSpan);default:return e}}function a8(n){return 1===n.length&&n[0]instanceof Rf}function s1(n){return n instanceof Pf||n instanceof mM||n instanceof a_}function gy(n){return n.every(s1)}function u1(n,r,e){return function(){var i=n(),o=Array.isArray(i)?i:[i];return e&&o.push.apply(o,(0,pn.Z)(e)),r&&o.unshift(rn(r)),o}}var vy="ngI18nClosureMode";function c1(n,r,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,a=[t3(r),wd(WS(),Dh(r,n,e,i),t8(r,n,TM(i,!1)))];return o&&a.push(new Of(r.set(o(r)))),a}function WS(){return r_(ii(vy)).notIdentical(rn("undefined",_e)).and(ii(vy))}function VS(n){return n.reduce(function(r,e){var i=Array.isArray(e)?VS(e):e;return r.concat(i)},[])}var YS=/attr\.([^\]]+)/,D6="_nghost-".concat("%COMP%"),qS="_ngcontent-".concat("%COMP%");function d1(n,r,e){var i=new Sa,o=us(n.selector);return i.set("type",n.internalType),o.length>0&&i.set("selectors",vl(o)),n.queries.length>0&&i.set("contentQueries",function QS(n,r,e){var l,i=[],o=[],a=n3(o,"_t"),s=(0,xn.Z)(n);try{for(s.s();!(l=s.n()).done;){var u=l.value;i.push(Jn(Le.contentQuery).callFn([ii("dirIndex")].concat((0,pn.Z)(R6(u,r)))).toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).prop(u.propertyName).set(u.first?d.prop("first"):d);o.push(g.and(C).toStmt())}}catch(z){s.e(z)}finally{s.f()}var Z=e?"".concat(e,"_ContentQueries"):null;return aa([new Go(Fv,Ue),new Go(tc,null),new Go("dirIndex",null)],[Ql(1,i),Ql(2,o)],ia,null,Z)}(n.queries,r,n.name)),n.viewQueries.length&&i.set("viewQuery",function N6(n,r,e){var i=[],o=[],a=n3(o,CC);n.forEach(function(l){var u=Jn(Le.viewQuery).callFn(R6(l,r));i.push(u.toStmt());var d=a(),h=Jn(Le.loadQuery).callFn([]),g=Jn(Le.queryRefresh).callFn([d.set(h)]),C=ii(tc).prop(l.propertyName).set(l.first?d.prop("first"):d);o.push(g.and(C).toStmt())});var s=e?"".concat(e,"_Query"):null;return aa([new Go(Fv,Ue),new Go(tc,null)],[Ql(1,i),Ql(2,o)],ia,null,s)}(n.viewQueries,r,n.name)),i.set("hostBindings",function B6(n,r,e,i,o,a,s){var l=ii(tc),u=new VC(l),d=n.specialAttributes,h=d.styleAttr,g=d.classAttr;void 0!==h&&u.registerStyleAttr(h),void 0!==g&&u.registerClassAttr(g);var C=[],Z=[],z=[],q=r,re=e.createDirectiveHostEventAsts(n.listeners,q);re&&re.length&&C.push.apply(C,(0,pn.Z)(function s8(n,r){var s,e=[],i=[],o=[],a=(0,xn.Z)(n);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=l.name&&v_(l.name),d=1===l.type?FP(u,l.targetOrPhase):u,h=r&&u?"".concat(r,"_").concat(d,"_HostBindingHandler"):null,g=Oh(Rv.fromParsedEvent(l),h);1==l.type?i.push(g):e.push(g)}}catch(Se){a.e(Se)}finally{a.f()}for(var C=0,Z=i;C<Z.length;C++){var z=Z[C];o.push({reference:Le.syntheticHostListener,paramsOrFn:z,span:null})}for(var q=0,re=e;q<re.length;q++){var ae=re[q];o.push({reference:Le.listener,paramsOrFn:ae,span:null})}return o}(re,a)));var ae=e.createBoundHostProperties(n.properties,q),Se=[],Ce=0;ae&&ae.forEach(function(bn){u.registerInputBasedOnName(bn.name,bn.expression,q)?Ce+=2:(Se.push(bn),Ce++)});for(var Ee,Ve=function(){Ee||(Ee=new Ih(i,function(){return Ba("Unexpected node")},function(vr){var io=Ce;return Ce+=vr,io},function(){return Ba("Unexpected pipe")}));return Ee},ut=[],Ae=[],ot=[],ht=0,bt=Se;ht<bt.length;ht++){var Xe=bt[ht],Pe=Xe.expression.visit(Ve()),ft=eE(l,Pe),Nt=DV(Xe),Gt=Nt.bindingName,It=Nt.instruction,Tn=Nt.isAttribute,jn=e.calcPossibleSecurityContexts(o,Gt,Tn).filter(function(bn){return bn!==Hi.NONE}),zn=null;jn.length&&(zn=2===jn.length&&jn.indexOf(Hi.URL)>-1&&jn.indexOf(Hi.RESOURCE_URL)>-1?Jn(Le.sanitizeUrlOrResourceUrl):a1(jn[0],Tn));var or=[rn(Gt),ft.currValExpr];zn?or.push(zn):Nc(Gt)&&or.push(Jn(Le.validateIframeAttribute)),z.push.apply(z,(0,pn.Z)(ft.stmts)),It===Le.hostProperty?ut.push(or):It===Le.attribute?Ae.push(or):It===Le.syntheticHostProperty?ot.push(or):Z.push({reference:It,paramsOrFn:or,span:null})}for(var Mr=0,_r=ut;Mr<_r.length;Mr++){var zr=_r[Mr];Z.push({reference:Le.hostProperty,paramsOrFn:zr,span:null})}for(var Ur=0,Kr=Ae;Ur<Kr.length;Ur++){var Fo=Kr[Ur];Z.push({reference:Le.attribute,paramsOrFn:Fo,span:null})}for(var er=0,wr=ot;er<wr.length;er++){var Sn=wr[er];Z.push({reference:Le.syntheticHostProperty,paramsOrFn:Sn,span:null})}var gn=function Z6(n){var i,r=[],e=(0,xn.Z)(Object.getOwnPropertyNames(n));try{for(e.s();!(i=e.n()).done;){var o=i.value,a=n[o];r.push(rn(o),a)}}catch(s){e.e(s)}finally{e.f()}return r}(n.attributes);if(u.assignHostAttrs(gn,s),u.hasBindings&&u.buildUpdateLevelInstructions(Ve()).forEach(function(bn){var nr,Bn=(0,xn.Z)(bn.calls);try{for(Bn.s();!(nr=Bn.n()).done;){var vr=nr.value;Ce+=Math.max(vr.allocateBindingSlots-2,0),Z.push({reference:bn.reference,paramsOrFn:F6(vr,l,eE),span:null})}}catch(io){Bn.e(io)}finally{Bn.f()}}),Ce&&s.set("hostVars",rn(Ce)),C.length>0||Z.length>0){var tr=a?"".concat(a,"_HostBindings"):null,un=[];return C.length>0&&un.push(Ql(1,wC(C))),Z.length>0&&un.push(Ql(2,z.concat(wC(Z)))),aa([new Go(Fv,Ue),new Go(tc,null)],un,ia,null,tr)}return null}(n.host,n.typeSourceSpan,e,r,n.selector||"",n.name,i)),i.set("inputs",Hv(n.inputs,!0)),i.set("outputs",Hv(n.outputs)),null!==n.exportAs&&i.set("exportAs",di(n.exportAs.map(function(a){return rn(a)}))),n.isStandalone&&i.set("standalone",rn(!0)),i}function A6(n,r){var e=[],i=r.providers,o=r.viewProviders;if(i||o){var a=[i||new cC([])];o&&a.push(o),e.push(Jn(Le.ProvidersFeature).callFn(a))}r.usesInheritance&&e.push(Jn(Le.InheritDefinitionFeature)),r.fullInheritance&&e.push(Jn(Le.CopyDefinitionFeature)),r.lifecycle.usesOnChanges&&e.push(Jn(Le.NgOnChangesFeature)),r.hasOwnProperty("template")&&r.isStandalone&&e.push(Jn(Le.StandaloneFeature)),e.length&&n.set("features",di(e))}function I6(n,r,e){var i=d1(n,r,e);A6(i,n);var o=n.selector&&oo.parse(n.selector),a=o&&o[0];if(a){var s=a.getAttrs();s.length&&i.set("attrs",r.getConstLiteral(di(s.map(function(ut){return rn(null!=ut?ut:void 0)})),!0))}var l=n.name,u=l?"".concat(l,"_Template"):null,d=n.changeDetection,h=n.template,g=new P_(r,M6.createRootScope(),0,l,null,null,u,Le.namespaceHTML,n.relativeContextFilePath,n.i18nUseExternalIds),C=g.buildTemplateFunction(h.nodes,[]),Z=g.getNgContentSelectors();Z&&i.set("ngContentSelectors",Z),i.set("decls",rn(g.getConstCount())),i.set("vars",rn(g.getVarCount()));var z=g.getConsts(),q=z.constExpressions,re=z.prepareStatements;if(q.length>0){var ae=di(q);re.length>0&&(ae=aa([],[].concat((0,pn.Z)(re),[new _s(ae)]))),i.set("consts",ae)}if(i.set("template",C),n.declarations.length>0&&i.set("dependencies",function P6(n,r){switch(r){case 0:return n;case 1:return aa([],[new _s(n)]);case 2:var e=n.prop("map").callFn([Jn(Le.resolveForwardRef)]);return aa([],[new _s(e)])}}(di(n.declarations.map(function(ut){return ut.type})),n.declarationListEmitMode)),null===n.encapsulation&&(n.encapsulation=ao.Emulated),n.styles&&n.styles.length){var Se=n.encapsulation==ao.Emulated?function ja(n,r,e){var i=new q5;return n.map(function(o){return i.shimCssText(o,r,e)})}(n.styles,qS,D6):n.styles,Ce=Se.reduce(function(ut,Ae){return Ae.trim().length>0&&ut.push(r.getConstLiteral(rn(Ae))),ut},[]);Ce.length>0&&i.set("styles",di(Ce))}else n.encapsulation===ao.Emulated&&(n.encapsulation=ao.None);return n.encapsulation!==ao.Emulated&&i.set("encapsulation",rn(n.encapsulation)),null!==n.animations&&i.set("data",Qs([{key:"animation",value:n.animations,quoted:!1}])),null!=d&&d!==qa.Default&&i.set("changeDetection",rn(d)),{expression:Jn(Le.defineComponent).callFn([i.toLiteralMap()],void 0,!0),type:JS(n),statements:[]}}function JS(n){var r=XS(n);return r.push(h1(n.template.ngContentSelectors)),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.ComponentDeclaration,r))}function R6(n,r){var e=[xM(n,r),rn(L6(n))];return n.read&&e.push(n.read),e}function L6(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function f1(n){return Is(rn(n))}function p1(n){return Is(Qs(Object.keys(n).map(function(e){return{key:e,value:rn(Array.isArray(n[e])?n[e][0]:n[e]),quoted:!0}})))}function h1(n){return n.length>0?Is(di(n.map(function(r){return rn(r)}))):ke}function XS(n){var r=null!==n.selector?n.selector.replace(/\n/g,""):null;return[Md(n.type.type,n.typeArgumentCount),null!==r?f1(r):ke,null!==n.exportAs?h1(n.exportAs):ke,p1(n.inputs),p1(n.outputs),h1(n.queries.map(function(e){return e.propertyName}))]}function $S(n){var r=XS(n);return r.push(ke),r.push(Is(rn(n.isStandalone))),Is(Jn(Le.DirectiveDeclaration,r))}function eE(n,r){return Th(null,n,r,"b")}function F6(n,r,e){return n.params(function(i){return e(r,i).currValExpr})}function DV(n){var e,r=n.name,i=r.match(YS);return i?(r=i[1],e=Le.attribute):n.isAnimation?(r=dM(r),e=Le.syntheticHostProperty):e=Le.hostProperty,{bindingName:r,instruction:e,isAttribute:!!i}}var l8=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;var H6=(0,B.Z)(function n(){(0,H.Z)(this,n)}),c8=function(){function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new LC;(0,H.Z)(this,n),this.jitEvaluator=r,this.FactoryTarget=ec,this.ResourceLoader=H6,this.elementSchemaRegistry=new e1}return(0,B.Z)(n,[{key:"compilePipe",value:function(e,i,o){var s=T3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,deps:null,pipeName:o.pipeName,pure:o.pure,isStandalone:o.isStandalone});return this.jitExpression(s.expression,e,i,[])}},{key:"compilePipeDeclaration",value:function(e,i,o){var a=function oE(n){var r,e;return{name:n.type.name,type:Ja(n.type),internalType:new Ir(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:null===(r=n.pure)||void 0===r||r,isStandalone:null!==(e=n.isStandalone)&&void 0!==e&&e}}(o),s=T3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectable",value:function(e,i,o){var a,s=r3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:o.typeArgumentCount,providedIn:V6(o.providedIn),useClass:Kf(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Kf(o,"useValue"),useExisting:Kf(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(oc)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjectableDeclaration",value:function(e,i,o){var a,s=r3({name:o.type.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,providedIn:V6(o.providedIn),useClass:Kf(o,"useClass"),useFactory:Au(o,"useFactory"),useValue:Kf(o,"useValue"),useExisting:Kf(o,"useExisting"),deps:null===(a=o.deps)||void 0===a?void 0:a.map(Ou)},!0),l=s.expression,u=s.statements;return this.jitExpression(l,e,i,u)}},{key:"compileInjector",value:function(e,i,o){var s=b3({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),providers:o.providers&&o.providers.length>0?new Ir(o.providers):null,imports:o.imports.map(function(l){return new Ir(l)})});return this.jitExpression(s.expression,e,i,[])}},{key:"compileInjectorDeclaration",value:function(e,i,o){var a=function yy(n){return{name:n.type.name,type:Ja(n.type),internalType:new Ir(n.type),providers:void 0!==n.providers&&n.providers.length>0?new Ir(n.providers):null,imports:void 0!==n.imports?n.imports.map(function(r){return new Ir(r)}):[]}}(o),s=b3(a);return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModule",value:function(e,i,o){var s=jM({type:Ja(o.type),internalType:new Ir(o.type),adjacentType:new Ir(o.type),bootstrap:o.bootstrap.map(Ja),declarations:o.declarations.map(Ja),publicDeclarationTypes:null,imports:o.imports.map(Ja),includeImportTypes:!0,exports:o.exports.map(Ja),selectorScopeMode:y_.Inline,containsForwardDecls:!1,schemas:o.schemas?o.schemas.map(Ja):null,id:o.id?new Ir(o.id):null});return this.jitExpression(s.expression,e,i,[])}},{key:"compileNgModuleDeclaration",value:function(e,i,o){var a=function w3(n){var r=new Sa;return r.set("type",new Ir(n.type)),void 0!==n.bootstrap&&r.set("bootstrap",new Ir(n.bootstrap)),void 0!==n.declarations&&r.set("declarations",new Ir(n.declarations)),void 0!==n.imports&&r.set("imports",new Ir(n.imports)),void 0!==n.exports&&r.set("exports",new Ir(n.exports)),void 0!==n.schemas&&r.set("schemas",new Ir(n.schemas)),void 0!==n.id&&r.set("id",new Ir(n.id)),Jn(Le.defineNgModule).callFn([r.toLiteralMap()])}(o);return this.jitExpression(a,e,i,[])}},{key:"compileDirective",value:function(e,i,o){var a=nE(o);return this.compileDirectiveFromMeta(e,i,a)}},{key:"compileDirectiveDeclaration",value:function(e,i,o){var s=rE(o,this.createParseSourceSpan("Directive",o.type.name,i));return this.compileDirectiveFromMeta(e,i,s)}},{key:"compileDirectiveFromMeta",value:function(e,i,o){var a=new LP,l=function O6(n,r,e){var i=d1(n,r,e);return A6(i,n),{expression:Jn(Le.defineDirective).callFn([i.toLiteralMap()],void 0,!0),type:$S(n),statements:[]}}(o,a,_y());return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileComponent",value:function(e,i,o){var a=m1(o.template,o.name,i,o.preserveWhitespaces,o.interpolation),s=a.template,l=a.interpolation,u=Object.assign(Object.assign(Object.assign({},o),nE(o)),{selector:o.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,declarations:o.declarations.map(z6),declarationListEmitMode:0,styles:[].concat((0,pn.Z)(o.styles),(0,pn.Z)(s.styles)),encapsulation:o.encapsulation,interpolation:l,changeDetection:o.changeDetection,animations:null!=o.animations?new Ir(o.animations):null,viewProviders:null!=o.viewProviders?new Ir(o.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),d="ng:///".concat(o.name,".js");return this.compileComponentFromMeta(e,d,u)}},{key:"compileComponentDeclaration",value:function(e,i,o){var s=function f8(n,r,e){var i,o,a,s,l=m1(n.template,n.type.name,e,null!==(i=n.preserveWhitespaces)&&void 0!==i&&i,n.interpolation),u=l.template,d=l.interpolation,h=[];if(n.dependencies){var C,g=(0,xn.Z)(n.dependencies);try{for(g.s();!(C=g.n()).done;){var Z=C.value;switch(Z.kind){case"directive":case"component":h.push(iE(Z));break;case"pipe":h.push(AV(Z))}}}catch(z){g.e(z)}finally{g.f()}}else(n.components||n.directives||n.pipes)&&(n.components&&h.push.apply(h,(0,pn.Z)(n.components.map(function(z){return iE(z,!0)}))),n.directives&&h.push.apply(h,(0,pn.Z)(n.directives.map(function(z){return iE(z)}))),n.pipes&&h.push.apply(h,(0,pn.Z)(function W6(n){return n?Object.keys(n).map(function(r){return{kind:yh.Pipe,name:r,type:new Ir(n[r])}}):[]}(n.pipes))));return Object.assign(Object.assign({},rE(n,r)),{template:u,styles:null!==(o=n.styles)&&void 0!==o?o:[],declarations:h,viewProviders:void 0!==n.viewProviders?new Ir(n.viewProviders):null,animations:void 0!==n.animations?new Ir(n.animations):null,changeDetection:null!==(a=n.changeDetection)&&void 0!==a?a:qa.Default,encapsulation:null!==(s=n.encapsulation)&&void 0!==s?s:ao.Emulated,interpolation:d,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}(o,this.createParseSourceSpan("Component",o.type.name,i),i);return this.compileComponentFromMeta(e,i,s)}},{key:"compileComponentFromMeta",value:function(e,i,o){var a=new LP,l=I6(o,a,_y(o.interpolation));return this.jitExpression(l.expression,e,i,a.statements)}},{key:"compileFactory",value:function(e,i,o){var a=ph({name:o.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:o.typeArgumentCount,deps:Y6(o.deps),target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"compileFactoryDeclaration",value:function(e,i,o){var a=ph({name:o.type.name,type:Ja(o.type),internalType:new Ir(o.type),typeArgumentCount:0,deps:Array.isArray(o.deps)?o.deps.map(Ou):o.deps,target:o.target});return this.jitExpression(a.expression,e,i,a.statements)}},{key:"createParseSourceSpan",value:function(e,i,o){return function NM(n,r,e){var i="in ".concat(n," ").concat(r," in ").concat(e),o=new PC("",i);return new Qa(new g_(o,-1,-1,-1),new g_(o,-1,-1,-1))}(e,i,o)}},{key:"jitExpression",value:function(e,i,o,a){var s=[].concat((0,pn.Z)(a),[new Af("$def",e,void 0,Os.Exported)]);return this.jitEvaluator.evaluateStatements(o,s,new C3(i),!0).$def}}]),n}();function j6(n){return Object.assign(Object.assign({},n),{predicate:G6(n.predicate),read:n.read?new Ir(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function tE(n){var r,e,i,o;return{propertyName:n.propertyName,first:null!==(r=n.first)&&void 0!==r&&r,predicate:G6(n.predicate),descendants:null!==(e=n.descendants)&&void 0!==e&&e,read:n.read?new Ir(n.read):null,static:null!==(i=n.static)&&void 0!==i&&i,emitDistinctChangesOnly:null===(o=n.emitDistinctChangesOnly)||void 0===o||o}}function G6(n){return Array.isArray(n)?n:fM(new Ir(n),1)}function nE(n){var r=J6(n.inputs||[]),e=J6(n.outputs||[]),i=n.propMetadata,o={},a={},s=function(d){i.hasOwnProperty(d)&&i[d].forEach(function(h){!function h8(n){return"Input"===n.ngMetadataName}(h)?function m8(n){return"Output"===n.ngMetadataName}(h)&&(a[d]=h.bindingPropertyName||d):o[d]=h.bindingPropertyName?[h.bindingPropertyName,d]:d})};for(var l in i)s(l);return Object.assign(Object.assign({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Ja(n.type),internalType:new Ir(n.type),deps:null,host:K6(n.propMetadata,n.typeSourceSpan,n.host),inputs:Object.assign(Object.assign({},r),o),outputs:Object.assign(Object.assign({},e),a),queries:n.queries.map(j6),providers:null!=n.providers?new Ir(n.providers):null,viewQueries:n.viewQueries.map(j6),fullInheritance:!1})}function rE(n,r){var e,i,o,a,s,l,u,d,h;return{name:n.type.name,type:Ja(n.type),typeSourceSpan:r,internalType:new Ir(n.type),selector:null!==(e=n.selector)&&void 0!==e?e:null,inputs:null!==(i=n.inputs)&&void 0!==i?i:{},outputs:null!==(o=n.outputs)&&void 0!==o?o:{},host:N_(n.host),queries:(null!==(a=n.queries)&&void 0!==a?a:[]).map(tE),viewQueries:(null!==(s=n.viewQueries)&&void 0!==s?s:[]).map(tE),providers:void 0!==n.providers?new Ir(n.providers):null,exportAs:null!==(l=n.exportAs)&&void 0!==l?l:null,usesInheritance:null!==(u=n.usesInheritance)&&void 0!==u&&u,lifecycle:{usesOnChanges:null!==(d=n.usesOnChanges)&&void 0!==d&&d},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:null!==(h=n.isStandalone)&&void 0!==h&&h}}function N_(){var r,e,i,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{attributes:d8(null!==(r=n.attributes)&&void 0!==r?r:{}),listeners:null!==(e=n.listeners)&&void 0!==e?e:{},properties:null!==(i=n.properties)&&void 0!==i?i:{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function d8(n){for(var r={},e=0,i=Object.keys(n);e<i.length;e++){var o=i[e];r[o]=new Ir(n[o])}return r}function z6(n){return Object.assign(Object.assign({},n),{type:new Ir(n.type)})}function iE(n){var e,i,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{kind:yh.Directive,isComponent:r||"component"===n.kind,selector:n.selector,type:new Ir(n.type),inputs:null!==(e=n.inputs)&&void 0!==e?e:[],outputs:null!==(i=n.outputs)&&void 0!==i?i:[],exportAs:null!==(o=n.exportAs)&&void 0!==o?o:null}}function AV(n){return{kind:yh.Pipe,name:n.name,type:new Ir(n.type)}}function m1(n,r,e,i,o){var a=o?kC.fromArray(o):wu,s=function E6(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.interpolationConfig,o=e.preserveWhitespaces,a=e.enableI18nLegacyMessageIdFormat,s=_y(i),u=(new T4).parse(n,r,Object.assign(Object.assign({leadingTriviaChars:O_},e),{tokenizeExpansionForms:!0}));if(!e.alwaysAttemptHtmlToR3AstConversion&&u.errors&&u.errors.length>0){var d={interpolationConfig:i,preserveWhitespaces:o,errors:u.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(d.commentNodes=[]),d}var h=u.rootNodes,g=new k6(i,!o,a),C=g.visitAllWithErrors(h);if(!e.alwaysAttemptHtmlToR3AstConversion&&C.errors&&C.errors.length>0){var Z={interpolationConfig:i,preserveWhitespaces:o,errors:C.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(Z.commentNodes=[]),Z}h=C.rootNodes,o||(h=xu(new X3,h),g.hasI18nMeta&&(h=xu(new k6(i,!1),h)));var z=LS(h,s,{collectCommentNodes:!!e.collectCommentNodes}),q=z.nodes,re=z.errors,ae=z.styleUrls,Se=z.styles,Ce=z.ngContentSelectors,Ee=z.commentNodes;re.push.apply(re,(0,pn.Z)(u.errors).concat((0,pn.Z)(C.errors)));var Ve={interpolationConfig:i,preserveWhitespaces:o,errors:re.length>0?re:null,nodes:q,styleUrls:ae,styles:Se,ngContentSelectors:Ce};return e.collectCommentNodes&&(Ve.commentNodes=Ee),Ve}(n,e,{preserveWhitespaces:i,interpolationConfig:a});if(null!==s.errors){var l=s.errors.map(function(u){return u.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for ".concat(r,": ").concat(l))}return{template:s,interpolation:a}}function Kf(n,r){if(n.hasOwnProperty(r))return fM(new Ir(n[r]),0)}function Au(n,r){if(n.hasOwnProperty(r))return new Ir(n[r])}function V6(n){return fM("function"==typeof n?new Ir(n):new ue(null!=n?n:null),0)}function Y6(n){return null==n?null:n.map(oc)}function oc(n){var r=null!=n.attribute,e=null===n.token?null:new Ir(n.token);return Iu(r?new Ir(n.attribute):e,r,n.host,n.optional,n.self,n.skipSelf)}function Ou(n){var r,e,i,o,a,s=null!==(r=n.attribute)&&void 0!==r&&r;return Iu(null===n.token?null:new Ir(n.token),s,null!==(e=n.host)&&void 0!==e&&e,null!==(i=n.optional)&&void 0!==i&&i,null!==(o=n.self)&&void 0!==o&&o,null!==(a=n.skipSelf)&&void 0!==a&&a)}function Iu(n,r,e,i,o,a){return{token:n,attributeNameType:r?rn("unknown"):null,host:e,optional:i,self:o,skipSelf:a}}function K6(n,r,e){var i=function U6(n){for(var r={},e={},i={},o={},a=0,s=Object.keys(n);a<s.length;a++){var l=s[a],u=n[l],d=l.match(l8);if(null===d)switch(l){case"class":if("string"!=typeof u)throw new Error("Class binding must be string");o.classAttr=u;break;case"style":if("string"!=typeof u)throw new Error("Style binding must be string");o.styleAttr=u;break;default:r[l]="string"==typeof u?rn(u):u}else if(null!=d[1]){if("string"!=typeof u)throw new Error("Property binding must be string");i[d[1]]=u}else if(null!=d[2]){if("string"!=typeof u)throw new Error("Event binding must be string");e[d[2]]=u}}return{attributes:r,listeners:e,properties:i,specialAttributes:o}}(e||{}),o=function u8(n,r){var e=_y();return e.createDirectiveHostEventAsts(n.listeners,r),e.createBoundHostProperties(n.properties,r),e.errors}(i,r);if(o.length)throw new Error(o.map(function(l){return l.msg}).join("\n"));var a=function(u){n.hasOwnProperty(u)&&n[u].forEach(function(d){!function q6(n){return"HostBinding"===n.ngMetadataName}(d)?function p8(n){return"HostListener"===n.ngMetadataName}(d)&&(i.listeners[d.eventName||u]="".concat(u,"(").concat((d.args||[]).join(","),")")):i.properties[d.hostPropertyName||u]=function s5(n,r){var e=Ua(r,!1,!1);return e!==r?"".concat(n,"[").concat(e,"]"):"".concat(n,".").concat(r)}("this",u)})};for(var s in n)a(s);return i}function J6(n){return n.reduce(function(r,e){var i=e.split(":",2).map(function(l){return l.trim()}),o=(0,Nn.Z)(i,2),a=o[0],s=o[1];return r[a]=s||a,r},{})}new Ys("14.3.0");var _1;!function(n){n[n.Extract=0]="Extract",n[n.Merge=1]="Merge"}(_1||(_1={}));var rR=function(){function n(){(0,H.Z)(this,n),this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}return(0,B.Z)(n,[{key:"requireExtraParent",value:function(e){return!1}},{key:"isClosedByChild",value:function(e){return!1}},{key:"getContentType",value:function(){return mi.PARSABLE_DATA}}]),n}();new rR;var dE;!function(n){n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule"}(dE||(dE={}));!function _8(n){(n.ng||(n.ng={})).\u0275compilerFacade=new c8}(Ku);var Ii=m(925),Mn=m(3191),Yr=m(5664),In=m(8929),Ea=m(4096),eU=m(1715),tU=m(352),$i=m(7451),ji=m(6787),Nr=m(7625),eo=m(1059),$n=m(4850),Ei=m(2986),pa=m(2994),bo=m(7545),ha=m(9071),Ls=m(226);function hE(n,r,e){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?n.setProperty(i,o,null!=e&&e.has(i)?"important":""):n.removeProperty(i)}return n}function qf(n,r){var e=r?"":"none";hE(n.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function fR(n,r,e){hE(n.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Ty(n,r){return r&&"none"!=r?n+" "+r:n}function mE(n){var r=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*r}function _E(n,r){return n.getPropertyValue(r).split(",").map(function(i){return i.trim()})}function gE(n){var r=n.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function My(n,r,e){var i=n.top,o=n.bottom,a=n.left,s=n.right;return e>=i&&e<=o&&r>=a&&r<=s}function Sy(n,r,e){n.top+=r,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function vE(n,r,e,i){var o=n.top,a=n.right,s=n.bottom,l=n.left,h=n.width*r,g=n.height*r;return i>o-g&&i<s+g&&e>l-h&&e<a+h}var pR=function(){function n(r){(0,H.Z)(this,n),this._document=r,this.positions=new Map}return(0,B.Z)(n,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var i=this;this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(function(o){i.positions.set(o,{scrollPosition:{top:o.scrollTop,left:o.scrollLeft},clientRect:gE(o)})})}},{key:"handleScroll",value:function(e){var i=(0,Ii.sA)(e),o=this.positions.get(i);if(!o)return null;var s,l,a=o.scrollPosition;if(i===this._document){var u=this.getViewportScrollPosition();s=u.top,l=u.left}else s=i.scrollTop,l=i.scrollLeft;var d=a.top-s,h=a.left-l;return this.positions.forEach(function(g,C){g.clientRect&&i!==C&&i.contains(C)&&Sy(g.clientRect,d,h)}),a.top=s,a.left=l,{top:d,left:h}}},{key:"getViewportScrollPosition",value:function(){return{top:window.scrollY,left:window.scrollX}}}]),n}();function hR(n){var r=n.cloneNode(!0),e=r.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();r.removeAttribute("id");for(var o=0;o<e.length;o++)e[o].removeAttribute("id");return"canvas"===i?gR(n,r):("input"===i||"select"===i||"textarea"===i)&&_R(n,r),mR("canvas",n,r,gR),mR("input, textarea, select",n,r,_R),r}function mR(n,r,e,i){var o=r.querySelectorAll(n);if(o.length)for(var a=e.querySelectorAll(n),s=0;s<o.length;s++)i(o[s],a[s])}var rU=0;function _R(n,r){"file"!==r.type&&(r.value=n.value),"radio"===r.type&&r.name&&(r.name="mat-clone-".concat(r.name,"-").concat(rU++))}function gR(n,r){var e=r.getContext("2d");if(e)try{e.drawImage(n,0,0)}catch(i){}}var vR=(0,Ii.i$)({passive:!0}),b1=(0,Ii.i$)({passive:!1}),C1=new Set(["position"]),iU=function(){function n(r,e,i,o,a,s){var l=this;(0,H.Z)(this,n),this._config=e,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new In.xQ,this._pointerMoveSubscription=Ea.w.EMPTY,this._pointerUpSubscription=Ea.w.EMPTY,this._scrollSubscription=Ea.w.EMPTY,this._resizeSubscription=Ea.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 In.xQ,this.started=new In.xQ,this.released=new In.xQ,this.ended=new In.xQ,this.entered=new In.xQ,this.exited=new In.xQ,this.dropped=new In.xQ,this.moved=this._moveEvents,this._pointerDown=function(u){if(l.beforeStarted.next(),l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&l._initializeDragSequence(d,u)}else l.disabled||l._initializeDragSequence(l._rootElement,u)},this._pointerMove=function(u){var d=l._getPointerPositionOnPage(u);if(l._hasStartedDragging){u.preventDefault();var q=l._getConstrainedPointerPosition(d);if(l._hasMoved=!0,l._lastKnownPointerPosition=d,l._updatePointerDirectionDelta(q),l._dropContainer)l._updateActiveDropContainer(q,d);else{var re=l.constrainPosition?l._initialClientRect:l._pickupPositionOnPage,ae=l._activeTransform;ae.x=q.x-re.x+l._passiveTransform.x,ae.y=q.y-re.y+l._passiveTransform.y,l._applyRootElementTransform(ae.x,ae.y)}l._moveEvents.observers.length&&l._ngZone.run(function(){l._moveEvents.next({source:l,pointerPosition:q,event:u,distance:l._getDragDistance(q),delta:l._pointerDirectionDelta})})}else{if(Math.abs(d.x-l._pickupPositionOnPage.x)+Math.abs(d.y-l._pickupPositionOnPage.y)>=l._config.dragStartThreshold){var Z=Date.now()>=l._dragStartTime+l._getDragStartDelay(u),z=l._dropContainer;if(!Z)return void l._endDragSequence(u);(!z||!z.isDragging()&&!z.isReceiving())&&(u.preventDefault(),l._hasStartedDragging=!0,l._ngZone.run(function(){return l._startDragSequence(u)}))}}},this._pointerUp=function(u){l._endDragSequence(u)},this._nativeDragStart=function(u){if(l._handles.length){var d=l._getTargetHandle(u);d&&!l._disabledHandles.has(d)&&!l.disabled&&u.preventDefault()}else l.disabled||u.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new pR(i),s.registerDragItem(this)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var i=(0,Mn.Ig)(e);i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(function(o){return qf(o,i)}))}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var i=this;this._handles=e.map(function(a){return(0,Mn.fI)(a)}),this._handles.forEach(function(a){return qf(a,i.disabled)}),this._toggleNativeDragInteractions();var o=new Set;return this._disabledHandles.forEach(function(a){i._handles.indexOf(a)>-1&&o.add(a)}),this._disabledHandles=o,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var i=this,o=(0,Mn.fI)(e);return o!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){o.addEventListener("mousedown",i._pointerDown,b1),o.addEventListener("touchstart",i._pointerDown,vR),o.addEventListener("dragstart",i._nativeDragStart,b1)}),this._initialTransform=void 0,this._rootElement=o),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var i=this;return this._boundaryElement=e?(0,Mn.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return i._containInsideBoundaryOnResize()})),this}},{key:"withParent",value:function(e){return this._parentDragRef=e,this}},{key:"dispose",value:function(){var e,i;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(i=this._anchor)||void 0===i||i.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),qf(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),qf(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"withPreviewContainer",value:function(e){return this._previewContainer=e,this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){var e,i;null===(e=this._preview)||void 0===e||e.remove(),null===(i=this._previewRef)||void 0===i||i.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){var e,i;null===(e=this._placeholder)||void 0===e||e.remove(),null===(i=this._placeholderRef)||void 0===i||i.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var i=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){i._cleanupDragArtifacts(e),i._cleanupCachedDimensions(),i._dragDropRegistry.stopDragging(i)});else{this._passiveTransform.x=this._activeTransform.x;var o=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){i.ended.next({source:i,distance:i._getDragDistance(o),dropPoint:o,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}},{key:"_startDragSequence",value:function(e){Ey(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var i=this._dropContainer;if(i){var o=this._rootElement,a=o.parentNode,s=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),u=this._getShadowRoot();a.insertBefore(l,o),this._initialTransform=o.style.transform||"",this._preview=this._createPreviewElement(),fR(o,!1,C1),this._document.body.appendChild(a.replaceChild(s,o)),this._getPreviewInsertionPoint(a,u).appendChild(this._preview),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,i){var o=this;this._parentDragRef&&i.stopPropagation();var a=this.isDragging(),s=Ey(i),l=!s&&0!==i.button,u=this._rootElement,d=(0,Ii.sA)(i),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),g=s?(0,Yr.yG)(i):(0,Yr.X6)(i);if(d&&d.draggable&&"mousedown"===i.type&&i.preventDefault(),!(a||l||h||g)){if(this._handles.length){var C=u.style;this._rootElementTapHighlight=C.webkitTapHighlightColor||"",C.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(q){return o._updateOnScroll(q)}),this._boundaryElement&&(this._boundaryRect=gE(this._boundaryElement));var Z=this._previewTemplate;this._pickupPositionInElement=Z&&Z.template&&!Z.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,e,i);var z=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(i);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:z.x,y:z.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,i)}}},{key:"_cleanupDragArtifacts",value:function(e){var i=this;fR(this._rootElement,!0,C1),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(function(){var o=i._dropContainer,a=o.getItemIndex(i),s=i._getPointerPositionOnPage(e),l=i._getDragDistance(s),u=o._isOverContainer(s.x,s.y);i.ended.next({source:i,distance:l,dropPoint:s,event:e}),i.dropped.next({item:i,currentIndex:a,previousIndex:i._initialIndex,container:o,previousContainer:i._initialContainer,isPointerOverContainer:u,distance:l,dropPoint:s,event:e}),o.drop(i,a,i._initialIndex,i._initialContainer,u,l,s,e),i._dropContainer=i._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,i){var o=this,a=e.x,s=e.y,l=i.x,u=i.y,d=this._initialContainer._getSiblingContainerFromPosition(this,a,s);!d&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,s)&&(d=this._initialContainer),d&&d!==this._dropContainer&&this._ngZone.run(function(){o.exited.next({item:o,container:o._dropContainer}),o._dropContainer.exit(o),o._dropContainer=d,o._dropContainer.enter(o,a,s,d===o._initialContainer&&d.sortingDisabled?o._initialIndex:void 0),o.entered.next({item:o,container:d,currentIndex:d.getItemIndex(o)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(l,u),this._dropContainer._sortItem(this,a,s,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,s):this._applyPreviewTransform(a-this._pickupPositionInElement.x,s-this._pickupPositionInElement.y))}},{key:"_createPreviewElement",value:function(){var a,e=this._previewTemplate,i=this.previewClass,o=e?e.template:null;if(o&&e){var s=e.matchSize?this._initialClientRect:null,l=e.viewContainer.createEmbeddedView(o,e.context);l.detectChanges(),a=bR(l,this._document),this._previewRef=l,e.matchSize?CR(a,s):a.style.transform=w1(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else CR(a=hR(this._rootElement),this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return hE(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":"".concat(this._config.zIndex||1e3)},C1),qf(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(u){return a.classList.add(u)}):a.classList.add(i)),a}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var i=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);var o=function nU(n){var r=getComputedStyle(n),e=_E(r,"transition-property"),i=e.find(function(l){return"transform"===l||"all"===l});if(!i)return 0;var o=e.indexOf(i),a=_E(r,"transition-duration"),s=_E(r,"transition-delay");return mE(a[o])+mE(s[o])}(this._preview);return 0===o?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(a){var s=function u(d){var h;(!d||(0,Ii.sA)(d)===e._preview&&"transform"===d.propertyName)&&(null===(h=e._preview)||void 0===h||h.removeEventListener("transitionend",u),a(),clearTimeout(l))},l=setTimeout(s,1.5*o);e._preview.addEventListener("transitionend",s)})})}},{key:"_createPlaceholderElement",value:function(){var o,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),o=bR(this._placeholderRef,this._document)):o=hR(this._rootElement),o.style.pointerEvents="none",o.classList.add("cdk-drag-placeholder"),o}},{key:"_getPointerPositionInElement",value:function(e,i,o){var a=i===this._rootElement?null:i,s=a?a.getBoundingClientRect():e,l=Ey(o)?o.targetTouches[0]:o,u=this._getViewportScrollPosition(),d=l.pageX-s.left-u.left,h=l.pageY-s.top-u.top;return{x:s.left-e.left+d,y:s.top-e.top+h}}},{key:"_getPointerPositionOnPage",value:function(e){var i=this._getViewportScrollPosition(),o=Ey(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,a=o.pageX-i.left,s=o.pageY-i.top;if(this._ownerSVGElement){var l=this._ownerSVGElement.getScreenCTM();if(l){var u=this._ownerSVGElement.createSVGPoint();return u.x=a,u.y=s,u.matrixTransform(l.inverse())}}return{x:a,y:s}}},{key:"_getConstrainedPointerPosition",value:function(e){var i=this._dropContainer?this._dropContainer.lockAxis:null,o=this.constrainPosition?this.constrainPosition(e,this,this._initialClientRect,this._pickupPositionInElement):e,a=o.x,s=o.y;if("x"===this.lockAxis||"x"===i?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===i)&&(a=this._pickupPositionOnPage.x),this._boundaryRect){var l=this._pickupPositionInElement,u=l.x,d=l.y,h=this._boundaryRect,g=this._getPreviewRect(),C=g.width,Z=g.height,z=h.top+d,q=h.bottom-(Z-d);a=yE(a,h.left+u,h.right-(C-u)),s=yE(s,z,q)}return{x:a,y:s}}},{key:"_updatePointerDirectionDelta",value:function(e){var i=e.x,o=e.y,a=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,l=Math.abs(i-s.x),u=Math.abs(o-s.y);return l>this._config.pointerDirectionChangeThreshold&&(a.x=i>s.x?1:-1,s.x=i),u>this._config.pointerDirectionChangeThreshold&&(a.y=o>s.y?1:-1,s.y=o),a}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,qf(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,b1),e.removeEventListener("touchstart",this._pointerDown,vR),e.removeEventListener("dragstart",this._nativeDragStart,b1)}},{key:"_applyRootElementTransform",value:function(e,i){var o=w1(e,i),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=Ty(o,this._initialTransform)}},{key:"_applyPreviewTransform",value:function(e,i){var o,a=null!==(o=this._previewTemplate)&&void 0!==o&&o.template?void 0:this._initialTransform,s=w1(e,i);this._preview.style.transform=Ty(s,a)}},{key:"_getDragDistance",value:function(e){var i=this._pickupPositionOnPage;return i?{x:e.x-i.x,y:e.y-i.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,i=e.x,o=e.y;if(!(0===i&&0===o||this.isDragging())&&this._boundaryElement){var a=this._rootElement.getBoundingClientRect(),s=this._boundaryElement.getBoundingClientRect();if(!(0===s.width&&0===s.height||0===a.width&&0===a.height)){var l=s.left-a.left,u=a.right-s.right,d=s.top-a.top,h=a.bottom-s.bottom;s.width>a.width?(l>0&&(i+=l),u>0&&(i-=u)):i=0,s.height>a.height?(d>0&&(o+=d),h>0&&(o-=h)):o=0,(i!==this._passiveTransform.x||o!==this._passiveTransform.y)&&this.setFreeDragPosition({y:o,x:i})}}}},{key:"_getDragStartDelay",value:function(e){var i=this.dragStartDelay;return"number"==typeof i?i:Ey(e)?i.touch:i?i.mouse:0}},{key:"_updateOnScroll",value:function(e){var i=this._parentPositions.handleScroll(e);if(i){var o=(0,Ii.sA)(e);this._boundaryRect&&o!==this._boundaryElement&&o.contains(this._boundaryElement)&&Sy(this._boundaryRect,i.top,i.left),this._pickupPositionOnPage.x+=i.left,this._pickupPositionOnPage.y+=i.top,this._dropContainer||(this._activeTransform.x-=i.left,this._activeTransform.y-=i.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,Ii.kV)(this._rootElement)),this._cachedShadowRoot}},{key:"_getPreviewInsertionPoint",value:function(e,i){var o=this._previewContainer||"global";if("parent"===o)return e;if("global"===o){var a=this._document;return i||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return(0,Mn.fI)(o)}},{key:"_getPreviewRect",value:function(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}},{key:"_getTargetHandle",value:function(e){return this._handles.find(function(i){return e.target&&(e.target===i||i.contains(e.target))})}}]),n}();function w1(n,r){return"translate3d(".concat(Math.round(n),"px, ").concat(Math.round(r),"px, 0)")}function yE(n,r,e){return Math.max(r,Math.min(e,n))}function Ey(n){return"t"===n.type[0]}function bR(n,r){var e=n.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];var i=r.createElement("div");return e.forEach(function(o){return i.appendChild(o)}),i}function CR(n,r){n.style.width="".concat(r.width,"px"),n.style.height="".concat(r.height,"px"),n.style.transform=w1(r.left,r.top)}function Rh(n,r){return Math.max(0,Math.min(r,n))}var aU=function(){function n(r,e){(0,H.Z)(this,n),this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}return(0,B.Z)(n,[{key:"start",value:function(e){this.withItems(e)}},{key:"sort",value:function(e,i,o,a){var s=this._itemPositions,l=this._getItemIndexFromPointerPosition(e,i,o,a);if(-1===l&&s.length>0)return null;var u="horizontal"===this.orientation,d=s.findIndex(function(ae){return ae.drag===e}),h=s[l],g=s[d].clientRect,C=h.clientRect,Z=d>l?1:-1,z=this._getItemOffsetPx(g,C,Z),q=this._getSiblingOffsetPx(d,s,Z),re=s.slice();return function bE(n,r,e){var i=Rh(r,n.length-1),o=Rh(e,n.length-1);if(i!==o){for(var a=n[i],s=o<i?-1:1,l=i;l!==o;l+=s)n[l]=n[l+s];n[o]=a}}(s,d,l),s.forEach(function(ae,Se){if(re[Se]!==ae){var Ce=ae.drag===e,Ee=Ce?z:q,Ve=Ce?e.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=Ee,u?(Ve.style.transform=Ty("translate3d(".concat(Math.round(ae.offset),"px, 0, 0)"),ae.initialTransform),Sy(ae.clientRect,0,Ee)):(Ve.style.transform=Ty("translate3d(0, ".concat(Math.round(ae.offset),"px, 0)"),ae.initialTransform),Sy(ae.clientRect,Ee,0))}}),this._previousSwap.overlaps=My(C,i,o),this._previousSwap.drag=h.drag,this._previousSwap.delta=u?a.x:a.y,{previousIndex:d,currentIndex:l}}},{key:"enter",value:function(e,i,o,a){var s=null==a||a<0?this._getItemIndexFromPointerPosition(e,i,o):a,l=this._activeDraggables,u=l.indexOf(e),d=e.getPlaceholderElement(),h=l[s];if(h===e&&(h=l[s+1]),!h&&(null==s||-1===s||s<l.length-1)&&this._shouldEnterAsFirstChild(i,o)&&(h=l[0]),u>-1&&l.splice(u,1),h&&!this._dragDropRegistry.isDragging(h)){var g=h.getRootElement();g.parentElement.insertBefore(d,g),l.splice(s,0,e)}else(0,Mn.fI)(this._element).appendChild(d),l.push(e);d.style.transform="",this._cacheItemPositions()}},{key:"withItems",value:function(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}},{key:"withSortPredicate",value:function(e){this._sortPredicate=e}},{key:"reset",value:function(){var e=this;this._activeDraggables.forEach(function(i){var o,a=i.getRootElement();if(a){var s=null===(o=e._itemPositions.find(function(l){return l.drag===i}))||void 0===o?void 0:o.initialTransform;a.style.transform=s||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}},{key:"getActiveItemsSnapshot",value:function(){return this._activeDraggables}},{key:"getItemIndex",value:function(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(function(o){return o.drag===e})}},{key:"updateOnScroll",value:function(e,i){var o=this;this._itemPositions.forEach(function(a){Sy(a.clientRect,e,i)}),this._itemPositions.forEach(function(a){var s=a.drag;o._dragDropRegistry.isDragging(s)&&s._sortFromLastPointerPosition()})}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(function(i){var o=i.getVisibleElement();return{drag:i,offset:0,initialTransform:o.style.transform||"",clientRect:gE(o)}}).sort(function(i,o){return e?i.clientRect.left-o.clientRect.left:i.clientRect.top-o.clientRect.top})}},{key:"_getItemOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=a?i.left-e.left:i.top-e.top;return-1===o&&(s+=a?i.width-e.width:i.height-e.height),s}},{key:"_getSiblingOffsetPx",value:function(e,i,o){var a="horizontal"===this.orientation,s=i[e].clientRect,l=i[e+-1*o],u=s[a?"width":"height"]*o;if(l){var d=a?"left":"top",h=a?"right":"bottom";-1===o?u-=l.clientRect[d]-s[h]:u+=s[d]-l.clientRect[h]}return u}},{key:"_shouldEnterAsFirstChild",value:function(e,i){if(!this._activeDraggables.length)return!1;var o=this._itemPositions,a="horizontal"===this.orientation;if(o[0].drag!==this._activeDraggables[0]){var l=o[o.length-1].clientRect;return a?e>=l.right:i>=l.bottom}var u=o[0].clientRect;return a?e<=u.left:i<=u.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,i,o,a){var s=this,l="horizontal"===this.orientation,u=this._itemPositions.findIndex(function(d){var h=d.drag,g=d.clientRect;if(h===e)return!1;if(a){var C=l?a.x:a.y;if(h===s._previousSwap.drag&&s._previousSwap.overlaps&&C===s._previousSwap.delta)return!1}return l?i>=Math.floor(g.left)&&i<Math.floor(g.right):o>=Math.floor(g.top)&&o<Math.floor(g.bottom)});return-1!==u&&this._sortPredicate(u,e)?u:-1}}]),n}(),sU=function(){function n(r,e,i,o,a){var s=this;(0,H.Z)(this,n),this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new In.xQ,this.entered=new In.xQ,this.exited=new In.xQ,this.dropped=new In.xQ,this.sorted=new In.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Ea.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new In.xQ,this._cachedShadowRoot=null,this._startScrollInterval=function(){s._stopScrolling(),(0,eU.F)(0,tU.Z).pipe((0,Nr.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,Mn.fI)(r),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new pR(i),this._sortStrategy=new aU(this.element,e),this._sortStrategy.withSortPredicate(function(l,u){return s.sortPredicate(l,u,s)})}return(0,B.Z)(n,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){this._draggingStarted(),this._notifyReceivingSiblings()}},{key:"enter",value:function(e,i,o,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(e)),this._sortStrategy.enter(e,i,o,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,i,o,a,s,l,u){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this._reset(),this.dropped.next({item:e,currentIndex:i,previousIndex:o,container:this,previousContainer:a,isPointerOverContainer:s,distance:l,dropPoint:u,event:d})}},{key:"withItems",value:function(e){var i=this,o=this._draggables;(this._draggables=e,e.forEach(function(s){return s._withDropContainer(i)}),this.isDragging())&&(o.filter(function(s){return s.isDragging()}).every(function(s){return-1===e.indexOf(s)})?this._reset():this._sortStrategy.withItems(this._draggables));return this}},{key:"withDirection",value:function(e){return this._sortStrategy.direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._sortStrategy.orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=(0,Mn.fI)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat((0,pn.Z)(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,i,o,a){if(!this.sortingDisabled&&this._clientRect&&vE(this._clientRect,.05,i,o)){var s=this._sortStrategy.sort(e,i,o,a);s&&this.sorted.next({previousIndex:s.previousIndex,currentIndex:s.currentIndex,container:this,item:e})}}},{key:"_startScrollingIfNecessary",value:function(e,i){var o=this;if(!this.autoScrollDisabled){var a,s=0,l=0;if(this._parentPositions.positions.forEach(function(C,Z){if(Z!==o._document&&C.clientRect&&!a&&vE(C.clientRect,.05,e,i)){var z=function TR(n,r,e,i){var o=CE(r,i),a=Lh(r,e),s=0,l=0;if(o){var u=n.scrollTop;1===o?u>0&&(s=1):n.scrollHeight-u>n.clientHeight&&(s=2)}if(a){var d=n.scrollLeft;1===a?d>0&&(l=1):n.scrollWidth-d>n.clientWidth&&(l=2)}return[s,l]}(Z,C.clientRect,e,i),q=(0,Nn.Z)(z,2);s=q[0],l=q[1],(s||l)&&(a=Z)}}),!s&&!l){var u=this._viewportRuler.getViewportSize(),d=u.width,h=u.height,g={width:d,height:h,top:0,right:d,bottom:h,left:0};s=CE(g,i),l=Lh(g,e),a=window}a&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||a!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=a,(s||l)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_draggingStarted",value:function(){var e=(0,Mn.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"_cacheParentPositions",value:function(){var e=(0,Mn.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var i=(0,Mn.fI)(this.element).style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(function(o){return o._stopReceiving(e)}),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_isOverContainer",value:function(e,i){return null!=this._clientRect&&My(this._clientRect,e,i)}},{key:"_getSiblingContainerFromPosition",value:function(e,i,o){return this._siblings.find(function(a){return a._canReceive(e,i,o)})}},{key:"_canReceive",value:function(e,i,o){if(!this._clientRect||!My(this._clientRect,i,o)||!this.enterPredicate(e,this))return!1;var a=this._getShadowRoot().elementFromPoint(i,o);if(!a)return!1;var s=(0,Mn.fI)(this.element);return a===s||s.contains(a)}},{key:"_startReceiving",value:function(e,i){var o=this,a=this._activeSiblings;!a.has(e)&&i.every(function(s){return o.enterPredicate(s,o)||o._draggables.indexOf(s)>-1})&&(a.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(i){if(e.isDragging()){var o=e._parentPositions.handleScroll(i);o&&e._sortStrategy.updateOnScroll(o.top,o.left)}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=(0,Ii.kV)((0,Mn.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}},{key:"_notifyReceivingSiblings",value:function(){var e=this,i=this._sortStrategy.getActiveItemsSnapshot().filter(function(o){return o.isDragging()});this._siblings.forEach(function(o){return o._startReceiving(e,i)})}}]),n}();function CE(n,r){var e=n.top,i=n.bottom,a=.05*n.height;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}function Lh(n,r){var e=n.left,i=n.right,a=.05*n.width;return r>=e-a&&r<=e+a?1:r>=i-a&&r<=i+a?2:0}var T1=(0,Ii.i$)({passive:!1,capture:!0}),xy=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._ngZone=r,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=function(o){return o.isDragging()},this.pointerMove=new In.xQ,this.pointerUp=new In.xQ,this.scroll=new In.xQ,this._preventDefaultWhileDragging=function(o){i._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=function(o){i._activeDragInstances.length>0&&(i._activeDragInstances.some(i._draggingPredicate)&&o.preventDefault(),i.pointerMove.next(o))},this._document=e}return(0,B.Z)(n,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var i=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){i._document.addEventListener("touchmove",i._persistentTouchmoveListener,T1)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,T1)}},{key:"startDragging",value:function(e,i){var o=this;if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){var a=i.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:function(l){return o.pointerUp.next(l)},options:!0}).set("scroll",{handler:function(l){return o.scroll.next(l)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:T1}),a||this._globalListeners.set("mousemove",{handler:function(l){return o.pointerMove.next(l)},options:T1}),this._ngZone.runOutsideAngular(function(){o._globalListeners.forEach(function(s,l){o._document.addEventListener(l,s.handler,s.options)})})}}},{key:"stopDragging",value:function(e){var i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}},{key:"isDragging",value:function(e){return this._activeDragInstances.indexOf(e)>-1}},{key:"scrolled",value:function(e){var i=this,o=[this.scroll];return e&&e!==this._document&&o.push(new $i.y(function(a){return i._ngZone.runOutsideAngular(function(){var l=function(d){i._activeDragInstances.length&&a.next(d)};return e.addEventListener("scroll",l,true),function(){e.removeEventListener("scroll",l,true)}})})),ji.T.apply(void 0,o)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(i){return e.removeDragItem(i)}),this._dropInstances.forEach(function(i){return e.removeDropContainer(i)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(i,o){e._document.removeEventListener(o,i.handler,i.options)}),this._globalListeners.clear()}}]),n}();xy.\u0275fac=function(r){return new(r||xy)(t.LFG(t.R0b),t.LFG(ge.K0))},xy.\u0275prov=t.Yz7({token:xy,factory:xy.\u0275fac,providedIn:"root"});var MR={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Uc=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._document=r,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=o}return(0,B.Z)(n,[{key:"createDrag",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MR;return new iU(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new sU(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),n}();Uc.\u0275fac=function(r){return new(r||Uc)(t.LFG(ge.K0),t.LFG(t.R0b),t.LFG(ha.rL),t.LFG(xy))},Uc.\u0275prov=t.Yz7({token:Uc,factory:Uc.\u0275fac,providedIn:"root"});var wE=new t.OlP("CDK_DRAG_PARENT"),Dy=new t.OlP("CdkDropListGroup"),Jf=function(){function n(){(0,H.Z)(this,n),this._items=new Set,this._disabled=!1}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}]),n}();Jf.\u0275fac=function(r){return new(r||Jf)},Jf.\u0275dir=t.lG2({type:Jf,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[t._Bn([{provide:Dy,useExisting:Jf}])]});var kE=new t.OlP("CDK_DRAG_CONFIG");var lU=0,SR=new t.OlP("CdkDropList"),Zh=function(){function n(r,e,i,o,a,s,l){var u=this;(0,H.Z)(this,n),this.element=r,this._changeDetectorRef=i,this._scrollDispatcher=o,this._dir=a,this._group=s,this._destroyed=new In.xQ,this.connectedTo=[],this.id="cdk-drop-list-".concat(lU++),this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.sorted=new t.vpe,this._unsortedItems=new Set,this._dropListRef=e.createDropList(r),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(d,h){return u.enterPredicate(d.data,h.data)},this._dropListRef.sortPredicate=function(d,h,g){return u.sortPredicate(d,h.data,g.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=(0,Mn.Ig)(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,i){return e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(e){var i=this;this._dir&&this._dir.change.pipe((0,eo.O)(this._dir.value),(0,Nr.R)(this._destroyed)).subscribe(function(o){return e.withDirection(o)}),e.beforeStarted.subscribe(function(){var o=(0,Mn.Eq)(i.connectedTo).map(function(s){return"string"==typeof s?n._dropLists.find(function(u){return u.id===s}):s});if(i._group&&i._group._items.forEach(function(s){-1===o.indexOf(s)&&o.push(s)}),!i._scrollableParentsResolved){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(s){return s.getElementRef().nativeElement});i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=(0,Mn.Ig)(i.sortingDisabled),e.autoScrollDisabled=(0,Mn.Ig)(i.autoScrollDisabled),e.autoScrollStep=(0,Mn.su)(i.autoScrollStep,2),e.connectedTo(o.filter(function(s){return s&&s!==i}).map(function(s){return s._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(e){var i=this;e.beforeStarted.subscribe(function(){i._syncItemsWithRef(),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:i,item:o.item.data,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:i,item:o.item.data}),i._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(o){i.sorted.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:i,item:o.item.data})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,item:o.item.data,isPointerOverContainer:o.isPointerOverContainer,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.draggingDisabled,a=e.sortingDisabled,s=e.listAutoScrollDisabled,l=e.listOrientation;this.disabled=null!=o&&o,this.sortingDisabled=null!=a&&a,this.autoScrollDisabled=null!=s&&s,this.orientation=l||"vertical",i&&(this.lockAxis=i)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}}]),n}();Zh._dropLists=[],Zh.\u0275fac=function(r){return new(r||Zh)(t.Y36(t.SBq),t.Y36(Uc),t.Y36(t.sBO),t.Y36(ha.mF),t.Y36(Ls.Is,8),t.Y36(Dy,12),t.Y36(kE,8))},Zh.\u0275dir=t.lG2({type:Zh,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("id",e.id),t.ekj("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[t._Bn([{provide:Dy,useValue:void 0},{provide:SR,useExisting:Zh}])]});var TE=new t.OlP("CdkDragHandle"),M1=function(){function n(r,e){(0,H.Z)(this,n),this.element=r,this._stateChanges=new In.xQ,this._disabled=!1,this._parentDrag=e}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}();M1.\u0275fac=function(r){return new(r||M1)(t.Y36(t.SBq),t.Y36(wE,12))},M1.\u0275dir=t.lG2({type:M1,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[t._Bn([{provide:TE,useExisting:M1}])]});var ER=new t.OlP("CdkDragPlaceholder"),Ay=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.templateRef=r});Ay.\u0275fac=function(r){return new(r||Ay)(t.Y36(t.Rgc))},Ay.\u0275dir=t.lG2({type:Ay,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[t._Bn([{provide:ER,useExisting:Ay}])]});var uU=new t.OlP("CdkDragPreview"),H_=function(){function n(r){(0,H.Z)(this,n),this.templateRef=r,this._matchSize=!1}return(0,B.Z)(n,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=(0,Mn.Ig)(e)}}]),n}();H_.\u0275fac=function(r){return new(r||H_)(t.Y36(t.Rgc))},H_.\u0275dir=t.lG2({type:H_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{data:"data",matchSize:"matchSize"},features:[t._Bn([{provide:uU,useExisting:H_}])]});var j_=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,H.Z)(this,n),this.element=r,this.dropContainer=e,this._ngZone=o,this._viewContainerRef=a,this._dir=l,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=g,this._destroyed=new In.xQ,this.started=new t.vpe,this.released=new t.vpe,this.ended=new t.vpe,this.entered=new t.vpe,this.exited=new t.vpe,this.dropped=new t.vpe,this.moved=new $i.y(function(Z){var z=C._dragRef.moved.pipe((0,$n.U)(function(q){return{source:C,pointerPosition:q.pointerPosition,event:q.event,delta:q.delta,distance:q.distance}})).subscribe(Z);return function(){z.unsubscribe()}}),this._dragRef=u.createDrag(r,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return(0,B.Z)(n,[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"setFreeDragPosition",value:function(e){this._dragRef.setFreeDragPosition(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe((0,Ei.q)(1),(0,Nr.R)(e._destroyed)).subscribe(function(){e._updateRootElement(),e._setupHandlesListener(),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})})}},{key:"ngOnChanges",value:function(e){var i=e.rootElementSelector,o=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){var e=this;this.dropContainer&&this.dropContainer.removeItem(this);var i=n._dragInstances.indexOf(this);i>-1&&n._dragInstances.splice(i,1),this._ngZone.runOutsideAngular(function(){e._destroyed.next(),e._destroyed.complete(),e._dragRef.dispose()})}},{key:"_updateRootElement",value:function(){var e,i=this.element.nativeElement,o=i;this.rootElementSelector&&(o=void 0!==i.closest?i.closest(this.rootElementSelector):null===(e=i.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(o||i)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):(0,Mn.fI)(e):null}},{key:"_syncInputs",value:function(e){var i=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var o=i._dir,a=i.dragStartDelay,s=i._placeholderTemplate?{template:i._placeholderTemplate.templateRef,context:i._placeholderTemplate.data,viewContainer:i._viewContainerRef}:null,l=i._previewTemplate?{template:i._previewTemplate.templateRef,context:i._previewTemplate.data,matchSize:i._previewTemplate.matchSize,viewContainer:i._viewContainerRef}:null;e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.dragStartDelay="object"==typeof a&&a?a:(0,Mn.su)(a),e.constrainPosition=i.constrainPosition,e.previewClass=i.previewClass,e.withBoundaryElement(i._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(l).withPreviewContainer(i.previewContainer||"global"),o&&e.withDirection(o.value)}}),e.beforeStarted.pipe((0,Ei.q)(1)).subscribe(function(){var o;if(i._parentDrag)e.withParent(i._parentDrag._dragRef);else for(var a=i.element.nativeElement.parentElement;a;){if(a.classList.contains("cdk-drag")){e.withParent((null===(o=n._dragInstances.find(function(s){return s.element.nativeElement===a}))||void 0===o?void 0:o._dragRef)||null);break}a=a.parentElement}})}},{key:"_handleEvents",value:function(e){var i=this;e.started.subscribe(function(o){i.started.emit({source:i,event:o.event}),i._changeDetectorRef.markForCheck()}),e.released.subscribe(function(o){i.released.emit({source:i,event:o.event})}),e.ended.subscribe(function(o){i.ended.emit({source:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event}),i._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(o){i.entered.emit({container:o.container.data,item:i,currentIndex:o.currentIndex})}),e.exited.subscribe(function(o){i.exited.emit({container:o.container.data,item:i})}),e.dropped.subscribe(function(o){i.dropped.emit({previousIndex:o.previousIndex,currentIndex:o.currentIndex,previousContainer:o.previousContainer.data,container:o.container.data,isPointerOverContainer:o.isPointerOverContainer,item:i,distance:o.distance,dropPoint:o.dropPoint,event:o.event})})}},{key:"_assignDefaults",value:function(e){var i=e.lockAxis,o=e.dragStartDelay,a=e.constrainPosition,s=e.previewClass,l=e.boundaryElement,u=e.draggingDisabled,d=e.rootElementSelector,h=e.previewContainer;this.disabled=null!=u&&u,this.dragStartDelay=o||0,i&&(this.lockAxis=i),a&&(this.constrainPosition=a),s&&(this.previewClass=s),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),h&&(this.previewContainer=h)}},{key:"_setupHandlesListener",value:function(){var e=this;this._handles.changes.pipe((0,eo.O)(this._handles),(0,pa.b)(function(i){var o=i.filter(function(a){return a._parentDrag===e}).map(function(a){return a.element});e._selfHandle&&e.rootElementSelector&&o.push(e.element),e._dragRef.withHandles(o)}),(0,bo.w)(function(i){return ji.T.apply(void 0,(0,pn.Z)(i.map(function(o){return o._stateChanges.pipe((0,eo.O)(o))})))}),(0,Nr.R)(this._destroyed)).subscribe(function(i){var o=e._dragRef,a=i.element.nativeElement;i.disabled?o.disableHandle(a):o.enableHandle(a)})}}]),n}();j_._dragInstances=[],j_.\u0275fac=function(r){return new(r||j_)(t.Y36(t.SBq),t.Y36(SR,12),t.Y36(ge.K0),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(kE,8),t.Y36(Ls.Is,8),t.Y36(Uc),t.Y36(t.sBO),t.Y36(TE,10),t.Y36(wE,12))},j_.\u0275dir=t.lG2({type:j_,selectors:[["","cdkDrag",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,uU,5),t.Suo(i,ER,5),t.Suo(i,TE,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._previewTemplate=o.first),t.iGM(o=t.CRH())&&(e._placeholderTemplate=o.first),t.iGM(o=t.CRH())&&(e._handles=o))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[t._Bn([{provide:wE,useExisting:j_}]),t.TTD]});var G_=(0,B.Z)(function n(){(0,H.Z)(this,n)});G_.\u0275fac=function(r){return new(r||G_)},G_.\u0275mod=t.oAB({type:G_}),G_.\u0275inj=t.cJS({providers:[Uc],imports:[ha.ZD]});var xi=m(1314),Ci=m(449),Zs=m(3527),to=m(591),Oy=m(4715),qn=m(1086),xR=[[["caption"]],[["colgroup"],["col"]]];function cU(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function dU(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}function ME(n){return function(r){(0,tt.Z)(i,r);var e=(0,Ye.Z)(i);function i(){var o;(0,H.Z)(this,i);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return(o=e.call.apply(e,[this].concat(s)))._sticky=!1,o._hasStickyChanged=!1,o}return(0,B.Z)(i,[{key:"sticky",get:function(){return this._sticky},set:function(a){var s=this._sticky;this._sticky=(0,Mn.Ig)(a),this._hasStickyChanged=s!==this._sticky}},{key:"hasStickyChanged",value:function(){var a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}}]),i}(n)}var z_=new t.OlP("CDK_TABLE"),fU=new t.OlP("text-column-options"),Hc=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.template=r});Hc.\u0275fac=function(r){return new(r||Hc)(t.Y36(t.Rgc))},Hc.\u0275dir=t.lG2({type:Hc,selectors:[["","cdkCellDef",""]]});var jc=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.template=r});jc.\u0275fac=function(r){return new(r||jc)(t.Y36(t.Rgc))},jc.\u0275dir=t.lG2({type:jc,selectors:[["","cdkHeaderCellDef",""]]});var Pu=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.template=r});Pu.\u0275fac=function(r){return new(r||Pu)(t.Y36(t.Rgc))},Pu.\u0275dir=t.lG2({type:Pu,selectors:[["","cdkFooterCellDef",""]]});var AR=(0,B.Z)(function n(){(0,H.Z)(this,n)}),el=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._table=i,o._stickyEnd=!1,o}return(0,B.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,Mn.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}(ME(AR));el.\u0275fac=function(r){return new(r||el)(t.Y36(z_,8))},el.\u0275dir=t.lG2({type:el,selectors:[["","cdkColumnDef",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Hc,5),t.Suo(i,jc,5),t.Suo(i,Pu,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.cell=o.first),t.iGM(o=t.CRH())&&(e.headerCell=o.first),t.iGM(o=t.CRH())&&(e.footerCell=o.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:el}]),t.qOj]});var S1=(0,B.Z)(function n(r,e){var i;(0,H.Z)(this,n),(i=e.nativeElement.classList).add.apply(i,(0,pn.Z)(r._columnCssClassName))}),Qf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){return(0,H.Z)(this,e),r.call(this,i,o)}return(0,B.Z)(e)}(S1);Qf.\u0275fac=function(r){return new(r||Qf)(t.Y36(el),t.Y36(t.SBq))},Qf.\u0275dir=t.lG2({type:Qf,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]});var Nh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s;if((0,H.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,B.Z)(e)}(S1);Nh.\u0275fac=function(r){return new(r||Nh)(t.Y36(el),t.Y36(t.SBq))},Nh.\u0275dir=t.lG2({type:Nh,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]});var Bh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s;if((0,H.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,B.Z)(e)}(S1);Bh.\u0275fac=function(r){return new(r||Bh)(t.Y36(el),t.Y36(t.SBq))},Bh.\u0275dir=t.lG2({type:Bh,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]});var pU=(0,B.Z)(function n(){(0,H.Z)(this,n),this.tasks=[],this.endTasks=[]}),E1=new t.OlP("_COALESCED_STYLE_SCHEDULER"),Xf=function(){function n(r){(0,H.Z)(this,n),this._ngZone=r,this._currentSchedule=null,this._destroyed=new In.xQ}return(0,B.Z)(n,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new pU,this._getScheduleObservable().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var i=e._currentSchedule;e._currentSchedule=new pU;var a,o=(0,xn.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,xn.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,Zs.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ei.q)(1))}}]),n}();Xf.\u0275fac=function(r){return new(r||Xf)(t.LFG(t.R0b))},Xf.\u0275prov=t.Yz7({token:Xf,factory:Xf.\u0275fac});var Fh=function(){function n(r,e){(0,H.Z)(this,n),this.template=r,this._differs=e}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Nd?e.headerCell.template:this instanceof Bd?e.footerCell.template:e.cell.template}}]),n}();Fh.\u0275fac=function(r){return new(r||Fh)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Fh.\u0275dir=t.lG2({type:Fh,features:[t.TTD]});var mU=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fh),Nd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(ME(mU));Nd.\u0275fac=function(r){return new(r||Nd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Nd.\u0275dir=t.lG2({type:Nd,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var SE=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fh),Bd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(o){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnChanges",this).call(this,o)}}]),e}(ME(SE));Bd.\u0275fac=function(r){return new(r||Bd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Bd.\u0275dir=t.lG2({type:Bd,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]});var Fd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o))._table=a,s}return(0,B.Z)(e)}(Fh);Fd.\u0275fac=function(r){return new(r||Fd)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(z_,8))},Fd.\u0275dir=t.lG2({type:Fd,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]});var Ga=function(){function n(r){(0,H.Z)(this,n),this._viewContainer=r,n.mostRecentCellOutlet=this}return(0,B.Z)(n,[{key:"ngOnDestroy",value:function(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}]),n}();Ga.mostRecentCellOutlet=null,Ga.\u0275fac=function(r){return new(r||Ga)(t.Y36(t.s_b))},Ga.\u0275dir=t.lG2({type:Ga,selectors:[["","cdkCellOutlet",""]]});var Uh=(0,B.Z)(function n(){(0,H.Z)(this,n)});Uh.\u0275fac=function(r){return new(r||Uh)},Uh.\u0275cmp=t.Xpm({type:Uh,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var Hh=(0,B.Z)(function n(){(0,H.Z)(this,n)});Hh.\u0275fac=function(r){return new(r||Hh)},Hh.\u0275cmp=t.Xpm({type:Hh,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var jh=(0,B.Z)(function n(){(0,H.Z)(this,n)});jh.\u0275fac=function(r){return new(r||jh)},jh.\u0275cmp=t.Xpm({type:jh,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var ac=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.templateRef=r,this._contentClassName="cdk-no-data-row"});ac.\u0275fac=function(r){return new(r||ac)(t.Y36(t.Rgc))},ac.\u0275dir=t.lG2({type:ac,selectors:[["ng-template","cdkNoDataRow",""]]});var W_=["top","bottom","left","right"],_U=function(){function n(r,e,i,o){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;(0,H.Z)(this,n),this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=o,this._isBrowser=a,this._needsPositionStickyOnElement=s,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(e,"-border-elem-top"),bottom:"".concat(e,"-border-elem-bottom"),left:"".concat(e,"-border-elem-left"),right:"".concat(e,"-border-elem-right")}}return(0,B.Z)(n,[{key:"clearStickyPositioning",value:function(e,i){var l,o=this,a=[],s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.nodeType===u.ELEMENT_NODE){a.push(u);for(var d=0;d<u.children.length;d++)a.push(u.children[d])}}}catch(h){s.e(h)}finally{s.f()}this._coalescedStyleScheduler.schedule(function(){for(var h=0,g=a;h<g.length;h++){var C=g[h];o._removeStickyStyle(C,i)}})}},{key:"updateStickyColumns",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(i.some(function(z){return z})||o.some(function(z){return z}))){var l=e[0],u=l.children.length,d=this._getCellWidths(l,s),h=this._getStickyStartColumnPositions(d,i),g=this._getStickyEndColumnPositions(d,o),C=i.lastIndexOf(!0),Z=o.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var Se,z="rtl"===a.direction,q=z?"right":"left",re=z?"left":"right",ae=(0,xn.Z)(e);try{for(ae.s();!(Se=ae.n()).done;)for(var Ce=Se.value,Ee=0;Ee<u;Ee++){var Ve=Ce.children[Ee];i[Ee]&&a._addStickyStyle(Ve,q,h[Ee],Ee===C),o[Ee]&&a._addStickyStyle(Ve,re,g[Ee],Ee===Z)}}catch(ut){ae.e(ut)}finally{ae.f()}a._positionListener&&(a._positionListener.stickyColumnsUpdated({sizes:-1===C?[]:d.slice(0,C+1).map(function(ut,Ae){return i[Ae]?ut:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:-1===Z?[]:d.slice(Z).map(function(ut,Ae){return o[Ae+Z]?ut:null}).reverse()}))})}else this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}},{key:"stickRows",value:function(e,i,o){var a=this;if(this._isBrowser){for(var s="bottom"===o?e.slice().reverse():e,l="bottom"===o?i.slice().reverse():i,u=[],d=[],h=[],g=0,C=0;g<s.length;g++)if(l[g]){u[g]=C;var Z=s[g];h[g]=this._isNativeHtmlTable?Array.from(Z.children):[Z];var z=Z.getBoundingClientRect().height;C+=z,d[g]=z}var q=l.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(function(){for(var re,ae,Se=0;Se<s.length;Se++)if(l[Se]){var ut,Ce=u[Se],Ee=Se===q,Ve=(0,xn.Z)(h[Se]);try{for(Ve.s();!(ut=Ve.n()).done;){var Ae=ut.value;a._addStickyStyle(Ae,o,Ce,Ee)}}catch(ot){Ve.e(ot)}finally{Ve.f()}}"top"===o?null===(re=a._positionListener)||void 0===re||re.stickyHeaderRowsUpdated({sizes:d,offsets:u,elements:h}):null===(ae=a._positionListener)||void 0===ae||ae.stickyFooterRowsUpdated({sizes:d,offsets:u,elements:h})})}}},{key:"updateStickyFooterContainer",value:function(e,i){var o=this;if(this._isNativeHtmlTable){var a=e.querySelector("tfoot");this._coalescedStyleScheduler.schedule(function(){i.some(function(s){return!s})?o._removeStickyStyle(a,["bottom"]):o._addStickyStyle(a,"bottom",0,!1)})}}},{key:"_removeStickyStyle",value:function(e,i){var a,o=(0,xn.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()}W_.some(function(u){return-1===i.indexOf(u)&&e.style[u]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,i,o,a){e.classList.add(this._stickCellCss),a&&e.classList.add(this._borderCellCss[i]),e.style[i]="".concat(o,"px"),e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){for(var i={top:100,bottom:10,left:1,right:1},o=0,a=0,s=W_;a<s.length;a++){var l=s[a];e.style[l]&&(o+=i[l])}return o?"".concat(o):""}},{key:"_getCellWidths",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!i&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var o=[],a=e.children,s=0;s<a.length;s++){var l=a[s];o.push(l.getBoundingClientRect().width)}return this._cachedCellWidths=o,o}},{key:"_getStickyStartColumnPositions",value:function(e,i){for(var o=[],a=0,s=0;s<e.length;s++)i[s]&&(o[s]=a,a+=e[s]);return o}},{key:"_getStickyEndColumnPositions",value:function(e,i){for(var o=[],a=0,s=e.length;s>0;s--)i[s]&&(o[s]=a,a+=e[s]);return o}}]),n}();var EE=new t.OlP("CDK_SPL"),Py=(0,B.Z)(function n(){(0,H.Z)(this,n)});Py.\u0275fac=function(r){return new(r||Py)},Py.\u0275dir=t.lG2({type:Py,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var Ud=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});Ud.\u0275fac=function(r){return new(r||Ud)(t.Y36(t.s_b),t.Y36(t.SBq))},Ud.\u0275dir=t.lG2({type:Ud,selectors:[["","rowOutlet",""]]});var $f=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});$f.\u0275fac=function(r){return new(r||$f)(t.Y36(t.s_b),t.Y36(t.SBq))},$f.\u0275dir=t.lG2({type:$f,selectors:[["","headerRowOutlet",""]]});var ep=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});ep.\u0275fac=function(r){return new(r||ep)(t.Y36(t.s_b),t.Y36(t.SBq))},ep.\u0275dir=t.lG2({type:ep,selectors:[["","footerRowOutlet",""]]});var tp=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this.elementRef=e});tp.\u0275fac=function(r){return new(r||tp)(t.Y36(t.s_b),t.Y36(t.SBq))},tp.\u0275dir=t.lG2({type:tp,selectors:[["","noDataRowOutlet",""]]});t.a5r;var Hd=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){(0,H.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._elementRef=i,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=d,this._viewportRuler=h,this._stickyPositioningListener=g,this._ngZone=C,this._onDestroy=new In.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new t.vpe,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE}),o||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return(0,B.Z)(n,[{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=(0,Mn.Ig)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=(0,Mn.Ig)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(i,o){return e.trackBy?e.trackBy(o.dataIndex,o.data):o}),this._viewportRuler.change().pipe((0,Nr.R)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;var i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,Ci.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var i=this._dataDiffer.diff(this._renderRows);if(!i)return this._updateNoDataRow(),void this.contentChanged.next();var o=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(i,o,function(a,s,l){return e._getEmbeddedViewArgs(a.item,l)},function(a){return a.item.data},function(a){1===a.operation&&a.context&&e._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),i.forEachIdentityChange(function(a){o.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ei.q)(1),(0,Nr.R)(this._onDestroy)).subscribe(function(){e.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");var a=this._headerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,a,"top"),this._headerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");var a=this._footerRowDefs.map(function(s){return s.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,a,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,a),this._footerRowDefs.forEach(function(s){return s.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,i=this._getRenderedRows(this._headerRowOutlet),o=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat((0,pn.Z)(i),(0,pn.Z)(o),(0,pn.Z)(a)),["left","right"]),this._stickyColumnStylesNeedReset=!1),i.forEach(function(s,l){e._addStickyColumnStyles([s],e._headerRowDefs[l])}),this._rowDefs.forEach(function(s){for(var l=[],u=0;u<o.length;u++)e._renderRows[u].rowDef===s&&l.push(o[u]);e._addStickyColumnStyles(l,s)}),a.forEach(function(s,l){e._addStickyColumnStyles([s],e._footerRowDefs[l])}),Array.from(this._columnDefsByName.values()).forEach(function(s){return s.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var o=0;o<this._data.length;o++){var a=this._data[o],s=this._getRenderRowsForData(a,o,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(var l=0;l<s.length;l++){var u=s[l],d=this._cachedRenderRowsMap.get(u.data);d.has(u.rowDef)?d.get(u.rowDef).push(u):d.set(u.rowDef,[u]),e.push(u)}}return e}},{key:"_getRenderRowsForData",value:function(e,i,o){return this._getRowDefs(e,i).map(function(s){var l=o&&o.has(s)?o.get(s):[];if(l.length){var u=l.shift();return u.dataIndex=i,u}return{data:e,rowDef:s,dataIndex:i}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),Ry(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=Ry(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ry(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ry(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,Ci.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,Ci.Z9)(this.dataSource)?i=this.dataSource.connect(this):(0,Oy.b)(this.dataSource)?i=this.dataSource:Array.isArray(this.dataSource)&&(i=(0,qn.of)(this.dataSource)),this._renderChangeSubscription=i.pipe((0,Nr.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,xn.Z)(this._getCellTemplates(e));try{for(o.s();!(a=o.n()).done;){var s=a.value;Ga.mostRecentCellOutlet&&Ga.mostRecentCellOutlet._viewContainer.createEmbeddedView(s,i)}}catch(l){o.e(l)}finally{o.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,i=0,o=e.length;i<o;i++){var s=e.get(i).context;s.count=o,s.first=0===i,s.last=i===o-1,s.even=i%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[i].dataIndex,s.renderIndex=i):s.index=this._renderRows[i].dataIndex}}},{key:"_getCellTemplates",value:function(e){var i=this;return e&&e.columns?Array.from(e.columns,function(o){var a=i._columnDefsByName.get(o);return e.extractCellTemplate(a)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),o=0,a=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];o<a.length;o++){var s=a[o],l=this._document.createElement(s.tag);l.setAttribute("role","rowgroup");var d,u=(0,xn.Z)(s.outlets);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.appendChild(h.elementRef.nativeElement)}}catch(g){u.e(g)}finally{u.f()}e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(o,a){return o||a.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this,i=this._dir?this._dir.value:"ltr";this._stickyStyler=new _U(this._isNativeHtmlTable,this.stickyCssClass,i,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,Nr.R)(this._onDestroy)).subscribe(function(o){e._stickyStyler.direction=o,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var i=this;return e.filter(function(o){return!o._table||o._table===i})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var i=0===this._rowOutlet.viewContainer.length;if(i!==this._isShowingNoDataRow){var o=this._noDataRowOutlet.viewContainer;if(i){var a=o.createEmbeddedView(e.templateRef),s=a.rootNodes[0];1===a.rootNodes.length&&(null==s?void 0:s.nodeType)===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=i}}}}]),n}();function Ry(n,r){return n.concat(Array.from(r))}Hd.\u0275fac=function(r){return new(r||Hd)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(Ls.Is,8),t.Y36(ge.K0),t.Y36(Ii.t4),t.Y36(Ci.k),t.Y36(E1),t.Y36(ha.rL),t.Y36(EE,12),t.Y36(t.R0b,8))},Hd.\u0275cmp=t.Xpm({type:Hd,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ac,5),t.Suo(i,el,5),t.Suo(i,Fd,5),t.Suo(i,Nd,5),t.Suo(i,Bd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._noDataRow=o.first),t.iGM(o=t.CRH())&&(e._contentColumnDefs=o),t.iGM(o=t.CRH())&&(e._contentRowDefs=o),t.iGM(o=t.CRH())&&(e._contentHeaderRowDefs=o),t.iGM(o=t.CRH())&&(e._contentFooterRowDefs=o))},viewQuery:function(r,e){var i;(1&r&&(t.Gf(Ud,7),t.Gf($f,7),t.Gf(ep,7),t.Gf(tp,7)),2&r)&&(t.iGM(i=t.CRH())&&(e._rowOutlet=i.first),t.iGM(i=t.CRH())&&(e._headerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._footerRowOutlet=i.first),t.iGM(i=t.CRH())&&(e._noDataRowOutlet=i.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:z_,useExisting:Hd},{provide:Ci.k,useClass:Ci.yy},{provide:E1,useClass:Xf},{provide:EE,useValue:null}])],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(xR),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ud,$f,ep,tp],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var np=function(){function n(r,e){(0,H.Z)(this,n),this._table=r,this._options=e,this.justify="start",this._options=e||{}}return(0,B.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}},{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,i){return e[i]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}}]),n}();np.\u0275fac=function(r){return new(r||np)(t.Y36(Hd,8),t.Y36(fU,8))},np.\u0275cmp=t.Xpm({type:np,selectors:[["cdk-text-column"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(el,7),t.Gf(Hc,7),t.Gf(jc,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.columnDef=i.first),t.iGM(i=t.CRH())&&(e.cell=i.first),t.iGM(i=t.CRH())&&(e.headerCell=i.first))},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,cU,2,3,"th",1),t.YNc(2,dU,2,3,"td",2),t.BQk())},dependencies:[Hc,jc,el,Bh,Qf],encapsulation:2});var rp=(0,B.Z)(function n(){(0,H.Z)(this,n)});rp.\u0275fac=function(r){return new(r||rp)},rp.\u0275mod=t.oAB({type:rp}),rp.\u0275inj=t.cJS({imports:[ha.Cl]});var sc=m(520),J=m(3075),Vt=m(508),Sr=m(1159),jd=m(3753),ti=m(9664),x1=m(7604),Ly=m(5778),tl=m(13),Rt=m(1777),D1=["*"],CU=["content"];function fY(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function pY(n,r){1&n&&(t.TgZ(0,"mat-drawer-content"),t.Hsn(1,2),t.qZA())}var PR=[[["mat-drawer"]],[["mat-drawer-content"]],"*"];function Zy(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._onBackdropClicked())}),t.qZA()}if(2&n){var i=t.oxw();t.ekj("mat-drawer-shown",i._isShowingBackdrop())}}function wU(n,r){1&n&&(t.TgZ(0,"mat-sidenav-content"),t.Hsn(1,2),t.qZA())}var xE=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ZR={transformDrawer:(0,Rt.X$)("transform",[(0,Rt.SB)("open, open-instant",(0,Rt.oB)({transform:"none",visibility:"visible"})),(0,Rt.SB)("void",(0,Rt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Rt.eR)("void => open-instant",(0,Rt.jt)("0ms")),(0,Rt.eR)("void <=> open, open-instant => void",(0,Rt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var TU=new t.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function NR(){return!1}}),Ny=new t.OlP("MAT_DRAWER_CONTAINER");var zc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,a,s,l))._changeDetectorRef=i,u._container=o,u}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._container._contentMarginChanges.subscribe(function(){o._changeDetectorRef.markForCheck()})}}]),e}(ha.PQ);zc.\u0275fac=function(r){return new(r||zc)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zd})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},zc.\u0275cmp=t.Xpm({type:zc,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:ha.PQ,useExisting:zc}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var Gd=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,H.Z)(this,n),this._elementRef=r,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new In.xQ,this._animationEnd=new In.xQ,this._animationState="void",this.openedChange=new t.vpe(!0),this._openedStream=this.openedChange.pipe((0,ti.h)(function(h){return h}),(0,$n.U)(function(){})),this.openedStart=this._animationStarted.pipe((0,ti.h)(function(h){return h.fromState!==h.toState&&0===h.toState.indexOf("open")}),(0,x1.h)(void 0)),this._closedStream=this.openedChange.pipe((0,ti.h)(function(h){return!h}),(0,$n.U)(function(){})),this.closedStart=this._animationStarted.pipe((0,ti.h)(function(h){return h.fromState!==h.toState&&"void"===h.toState}),(0,x1.h)(void 0)),this._destroyed=new In.xQ,this.onPositionChanged=new t.vpe,this._modeChanged=new In.xQ,this.openedChange.subscribe(function(h){h?(d._doc&&(d._elementFocusedBeforeDrawerWasOpened=d._doc.activeElement),d._takeFocus()):d._isFocusWithinDrawer()&&d._restoreFocus(d._openedVia||"program")}),this._ngZone.runOutsideAngular(function(){(0,jd.R)(d._elementRef.nativeElement,"keydown").pipe((0,ti.h)(function(h){return h.keyCode===Sr.hY&&!d.disableClose&&!(0,Sr.Vb)(h)}),(0,Nr.R)(d._destroyed)).subscribe(function(h){return d._ngZone.run(function(){d.close(),h.stopPropagation(),h.preventDefault()})})}),this._animationEnd.pipe((0,Ly.x)(function(h,g){return h.fromState===g.fromState&&h.toState===g.toState})).subscribe(function(h){var g=h.fromState,C=h.toState;(0===C.indexOf("open")&&"void"===g||"void"===C&&0===g.indexOf("open"))&&d.openedChange.emit(d._opened)})}return(0,B.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=(0,Mn.Ig)(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e},set:function(e){("true"===e||"false"===e||null==e)&&(e=(0,Mn.Ig)(e)),this._autoFocus=e}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle((0,Mn.Ig)(e))}},{key:"_forceFocus",value:function(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var o=function a(){e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}},{key:"_focusByCssSelector",value:function(e,i){var o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}},{key:"_takeFocus",value:function(){var e=this;if(this._focusTrap){var i=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(o){!o&&"function"==typeof e._elementRef.nativeElement.focus&&i.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}}},{key:"_restoreFocus",value:function(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}},{key:"_isFocusWithinDrawer",value:function(){var e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterViewInit",value:function(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0,"mouse")}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,i=arguments.length>1?arguments[1]:void 0;e&&i&&(this._openedVia=i);var o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}},{key:"_setOpen",value:function(e,i,o){var a=this;return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(function(s){a.openedChange.pipe((0,Ei.q)(1)).subscribe(function(l){return s(l?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_updatePositionInParent",value:function(e){var i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}]),n}();Gd.\u0275fac=function(r){return new(r||Gd)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(Yr.tE),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(Yr.ic),t.Y36(ge.K0,8),t.Y36(Ny,8))},Gd.\u0275cmp=t.Xpm({type:Gd,selectors:[["mat-drawer"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(CU,5),2&r)&&(t.iGM(i=t.CRH())&&(e._content=i.first))},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(r,e){1&r&&t.WFA("@transform.start",function(o){return e._animationStarted.next(o)})("@transform.done",function(o){return e._animationEnd.next(o)}),2&r&&(t.uIk("align",null),t.d8E("@transform",e._animationState),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[ha.PQ],encapsulation:2,data:{animation:[ZR.transformDrawer]},changeDetection:0});var zd=function(){function n(r,e,i,o,a){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;(0,H.Z)(this,n),this._dir=r,this._element=e,this._ngZone=i,this._changeDetectorRef=o,this._animationMode=u,this._drawers=new t.n_E,this.backdropClick=new t.vpe,this._destroyed=new In.xQ,this._doCheckSubject=new In.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new In.xQ,r&&r.change.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=l}return(0,B.Z)(n,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=(0,Mn.Ig)(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:(0,Mn.Ig)(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe((0,eo.O)(this._allDrawers),(0,Nr.R)(this._destroyed)).subscribe(function(i){e._drawers.reset(i.filter(function(o){return!o._container||o._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,eo.O)(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(i){e._watchDrawerToggle(i),e._watchDrawerPosition(i),e._watchDrawerMode(i)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe((0,tl.b)(10),(0,Nr.R)(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,i=0,o=0;if(this._left&&this._left.opened)if("side"==this._left.mode)i+=this._left._getWidth();else if("push"==this._left.mode){var a=this._left._getWidth();i+=a,o-=a}if(this._right&&this._right.opened)if("side"==this._right.mode)o+=this._right._getWidth();else if("push"==this._right.mode){var s=this._right._getWidth();o+=s,i-=s}o=o||null,((i=i||null)!==this._contentMargins.left||o!==this._contentMargins.right)&&(this._contentMargins={left:i,right:o},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var i=this;e._animationStarted.pipe((0,ti.h)(function(o){return o.fromState!==o.toState}),(0,Nr.R)(this._drawers.changes)).subscribe(function(o){"open-instant"!==o.toState&&"NoopAnimations"!==i._animationMode&&i._element.nativeElement.classList.add("mat-drawer-transition"),i.updateContentMargins(),i._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe((0,Nr.R)(this._drawers.changes)).subscribe(function(){return i._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var i=this;!e||e.onPositionChanged.pipe((0,Nr.R)(this._drawers.changes)).subscribe(function(){i._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1)).subscribe(function(){i._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var i=this;e&&e._modeChanged.pipe((0,Nr.R)((0,ji.T)(this._drawers.changes,this._destroyed))).subscribe(function(){i.updateContentMargins(),i._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(i){"end"==i.position?(e._end,e._end=i):(e._start,e._start=i)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(i){return i&&!i.disableClose&&e._canHaveBackdrop(i)}).forEach(function(i){return i._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),n}();zd.\u0275fac=function(r){return new(r||zd)(t.Y36(Ls.Is,8),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(ha.rL),t.Y36(TU),t.Y36(t.QbO,8))},zd.\u0275cmp=t.Xpm({type:zd,selectors:[["mat-drawer-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,zc,5),t.Suo(i,Gd,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(zc,5),2&r)&&(t.iGM(i=t.CRH())&&(e._userContent=i.first))},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[t._Bn([{provide:Ny,useExisting:zd}])],ngContentSelectors:["mat-drawer","mat-drawer-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(PR),t.YNc(0,fY,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,pY,2,0,"mat-drawer-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,zc],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var V_=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){return(0,H.Z)(this,e),r.call(this,i,o,a,s,l)}return(0,B.Z)(e)}(zc);V_.\u0275fac=function(r){return new(r||V_)(t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return zh})),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.R0b))},V_.\u0275cmp=t.Xpm({type:V_,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(r,e){2&r&&t.Udp("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[t._Bn([{provide:ha.PQ,useExisting:V_}]),t.qOj],ngContentSelectors:D1,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0});var Gh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._fixedInViewport=!1,i._fixedTopGap=0,i._fixedBottomGap=0,i}return(0,B.Z)(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(o){this._fixedInViewport=(0,Mn.Ig)(o)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(o){this._fixedTopGap=(0,Mn.su)(o)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(o){this._fixedBottomGap=(0,Mn.su)(o)}}]),e}(Gd);Gh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Gh)))(e||Gh)}}(),Gh.\u0275cmp=t.Xpm({type:Gh,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(r,e){2&r&&(t.uIk("align",null),t.Udp("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),t.ekj("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[t.qOj],ngContentSelectors:D1,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA())},dependencies:[ha.PQ],encapsulation:2,data:{animation:[ZR.transformDrawer]},changeDetection:0});var zh=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(zd);zh.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(zh)))(e||zh)}}(),zh.\u0275cmp=t.Xpm({type:zh,selectors:[["mat-sidenav-container"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,V_,5),t.Suo(i,Gh,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._content=o.first),t.iGM(o=t.CRH())&&(e._allDrawers=o))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[t._Bn([{provide:Ny,useExisting:zh}]),t.qOj],ngContentSelectors:["mat-sidenav","mat-sidenav-content","*"],decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(r,e){1&r&&(t.F$t(xE),t.YNc(0,Zy,1,2,"div",0),t.Hsn(1),t.Hsn(2,1),t.YNc(3,wU,2,0,"mat-sidenav-content",1)),2&r&&(t.Q6J("ngIf",e.hasBackdrop),t.xp6(3),t.Q6J("ngIf",!e._content))},dependencies:[ge.O5,V_],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});var Wh=(0,B.Z)(function n(){(0,H.Z)(this,n)});Wh.\u0275fac=function(r){return new(r||Wh)},Wh.\u0275mod=t.oAB({type:Wh}),Wh.\u0275inj=t.cJS({imports:[ge.ez,Vt.BQ,ha.ZD,ha.ZD,Vt.BQ]});function BR(n){return new t.vHH(3e3,!1)}function RU(n){return new t.vHH(3502,!1)}function JR(){return new t.vHH(3300,!1)}function LU(n){return new t.vHH(3504,!1)}function A1(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Vd(n){switch(n.length){case 0:return new Rt.ZN;case 1:return n[0];default:return new Rt.ZE(n)}}function jU(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Map,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=[],l=[],u=-1,d=null;if(i.forEach(function(h){var g=h.get("offset"),C=g==u,Z=C&&d||new Map;h.forEach(function(z,q){var re=q,ae=z;if("offset"!==q)switch(re=r.normalizePropertyName(re,s),ae){case Rt.k1:ae=o.get(q);break;case Rt.l3:ae=a.get(q);break;default:ae=r.normalizeStyleValue(q,re,ae,s)}Z.set(re,ae)}),C||l.push(Z),d=Z,u=g}),s.length)throw RU();return l}function Fy(n,r,e,i){switch(r){case"start":n.onStart(function(){return i(e&&O1(e,"start",n))});break;case"done":n.onDone(function(){return i(e&&O1(e,"done",n))});break;case"destroy":n.onDestroy(function(){return i(e&&O1(e,"destroy",n))})}}function O1(n,r,e){var i=e.totalTime,o=!!e.disabled,a=OE(n.element,n.triggerName,n.fromState,n.toState,r||n.phaseName,null==i?n.totalTime:i,o),s=n._data;return null!=s&&(a._data=s),a}function OE(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6?arguments[6]:void 0;return{element:n,triggerName:r,fromState:e,toState:i,phaseName:o,totalTime:a,disabled:!!s}}function bl(n,r,e){var i=n.get(r);return i||n.set(r,i=e),i}function GU(n){var r=n.indexOf(":");return[n.substring(1,r),n.slice(r+1)]}var IE=function(r,e){return!1},Vh=function(r,e,i){return[]},XR=null;function Y_(n){var r=n.parentNode||n.host;return r===XR?null:r}(A1()||"undefined"!=typeof Element)&&(function Wd(){return"undefined"!=typeof window&&void 0!==window.document}()?(XR=function(){return document.documentElement}(),IE=function(r,e){for(;e;){if(e===r)return!0;e=Y_(e)}return!1}):IE=function(r,e){return r.contains(e)},Vh=function(r,e,i){if(i)return Array.from(r.querySelectorAll(e));var o=r.querySelector(e);return o?[o]:[]});var K_=null,PE=!1;function WU(n){K_||(K_=function VU(){return"undefined"!=typeof document?document.body:null}()||{},PE=!!K_.style&&"WebkitAppearance"in K_.style);var r=!0;K_.style&&!function yY(n){return"ebkit"==n.substring(1,6)}(n)&&(!(r=n in K_.style)&&PE)&&(r="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in K_.style);return r}var YU=IE,$R=Vh;var ip=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"validateStyleProperty",value:function(e){return WU(e)}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return YU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return $R(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return o||""}},{key:"animate",value:function(e,i,o,a,s){arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6];return new Rt.ZN(o,a)}}]),n}();ip.\u0275fac=function(r){return new(r||ip)},ip.\u0275prov=t.Yz7({token:ip,factory:ip.\u0275fac});var RE=(0,B.Z)(function n(){(0,H.Z)(this,n)});RE.NOOP=new ip;var tL="ng-enter",uc="ng-leave",I1="ng-trigger",q_=".ng-trigger",nL="ng-animating",ZE=".ng-animating";function cc(n){if("number"==typeof n)return n;var r=n.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:P1(parseFloat(r[1]),r[2])}function P1(n,r){return"s"===r?1e3*n:n}function Hy(n,r,e){return n.hasOwnProperty("duration")?n:function qU(n,r,e){var o,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,a=0,s="";if("string"==typeof n){var l=n.match(i);if(null===l)return r.push(BR()),{duration:0,delay:0,easing:""};o=P1(parseFloat(l[1]),l[2]);var u=l[3];null!=u&&(a=P1(parseFloat(u),l[4]));var d=l[5];d&&(s=d)}else o=n;if(!e){var h=!1,g=r.length;o<0&&(r.push(function FR(){return new t.vHH(3100,!1)}()),h=!0),a<0&&(r.push(function DE(){return new t.vHH(3101,!1)}()),h=!0),h&&r.splice(g,0,BR())}return{duration:o,delay:a,easing:s}}(n,r,e)}function J_(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(n).forEach(function(e){r[e]=n[e]}),r}function NE(n){var r=new Map;return Object.keys(n).forEach(function(e){var i=n[e];r.set(e,i)}),r}function Q_(n){return n.length?n[0]instanceof Map?n:n.map(function(r){return NE(r)}):[]}function op(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,e=arguments.length>2?arguments[2]:void 0;if(e){var o,i=(0,xn.Z)(e);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.Z)(o.value,2),s=a[0],l=a[1];r.set(s,l)}}catch(Z){i.e(Z)}finally{i.f()}}var d,u=(0,xn.Z)(n);try{for(u.s();!(d=u.n()).done;){var h=(0,Nn.Z)(d.value,2),g=h[0],C=h[1];r.set(g,C)}}catch(Z){u.e(Z)}finally{u.f()}return r}function $_(n,r,e){return e?r+":"+e+";":""}function dc(n){for(var r="",e=0;e<n.style.length;e++){var i=n.style.item(e);r+=$_(0,i,n.style.getPropertyValue(i))}for(var o in n.style)if(n.style.hasOwnProperty(o)&&!o.startsWith("_")){r+=$_(0,bY(o),n.style[o])}n.setAttribute("style",r)}function fc(n,r,e){n.style&&(r.forEach(function(i,o){var a=L1(o);e&&!e.has(o)&&e.set(o,n.style[a]),n.style[a]=i}),A1()&&dc(n))}function Yd(n,r){n.style&&(r.forEach(function(e,i){var o=L1(i);n.style[o]=""}),A1()&&dc(n))}function Xl(n){return Array.isArray(n)?1==n.length?n[0]:(0,Rt.vP)(n):n}function JU(n,r,e){var i=r.params||{},o=iL(n);o.length&&o.forEach(function(a){i.hasOwnProperty(a)||e.push(function MU(n){return new t.vHH(3001,!1)}())})}var rL=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function iL(n){var r=[];if("string"==typeof n){for(var e;e=rL.exec(n);)r.push(e[1]);rL.lastIndex=0}return r}function jy(n,r,e){var i=n.toString(),o=i.replace(rL,function(a,s){var l=r[s];return null==l&&(e.push(function SU(n){return new t.vHH(3003,!1)}()),l=""),l.toString()});return o==i?n:o}function R1(n){for(var r=[],e=n.next();!e.done;)r.push(e.value),e=n.next();return r}var QU=/-+([a-z0-9])/g;function L1(n){return n.replace(QU,function(){for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return e[1].toUpperCase()})}function bY(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function oL(n,r){return 0===n||0===r}function XU(n,r,e){if(e.size&&r.length){var i=r[0],o=[];if(e.forEach(function(l,u){i.has(u)||o.push(u),i.set(u,l)}),o.length)for(var a=function(){var u=r[s];o.forEach(function(d){return u.set(d,$U(n,d))})},s=1;s<r.length;s++)a()}return r}function Cl(n,r,e){switch(r.type){case 7:return n.visitTrigger(r,e);case 0:return n.visitState(r,e);case 1:return n.visitTransition(r,e);case 2:return n.visitSequence(r,e);case 3:return n.visitGroup(r,e);case 4:return n.visitAnimate(r,e);case 5:return n.visitKeyframes(r,e);case 6:return n.visitStyle(r,e);case 8:return n.visitReference(r,e);case 9:return n.visitAnimateChild(r,e);case 10:return n.visitAnimateRef(r,e);case 11:return n.visitQuery(r,e);case 12:return n.visitStagger(r,e);default:throw function mY(n){return new t.vHH(3004,!1)}(r.type)}}function $U(n,r){return window.getComputedStyle(n)[r]}function lL(n,r){var e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(function(i){return function n7(n,r,e){if(":"==n[0]){var i=function uL(n,r){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,i){return parseFloat(i)>parseFloat(e)};case":decrement":return function(e,i){return parseFloat(i)<parseFloat(e)};default:return r.push(function KR(n){return new t.vHH(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof i)return void r.push(i);n=i}var o=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return e.push(function YR(n){return new t.vHH(3015,!1)}()),r;var a=o[1],s=o[2],l=o[3];r.push(cL(a,l));var u="*"==a&&"*"==l;"<"==s[0]&&!u&&r.push(cL(l,a))}(i,e,r)}):e.push(n),e}var Gy=new Set(["true","1"]),BE=new Set(["false","0"]);function cL(n,r){var e=Gy.has(n)||BE.has(n),i=Gy.has(r)||BE.has(r);return function(o,a){var s="*"==n||n==o,l="*"==r||r==a;return!s&&e&&"boolean"==typeof o&&(s=o?Gy.has(n):BE.has(n)),!l&&i&&"boolean"==typeof a&&(l=a?Gy.has(r):BE.has(r)),s&&l}}var r7=":self",CY=new RegExp("s*".concat(":self","s*,?"),"g");function FE(n,r,e,i){return new i7(n).build(r,e,i)}var i7=function(){function n(r){(0,H.Z)(this,n),this._driver=r}return(0,B.Z)(n,[{key:"build",value:function(e,i,o){var a=new s7(i);return this._resetContextStyleTimingState(a),Cl(this,Xl(e),a)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles=new Map,e.collectedStyles.set("",new Map),e.currentTime=0}},{key:"visitTrigger",value:function(e,i){var o=this,a=i.queryCount=0,s=i.depCount=0,l=[],u=[];return"@"==e.name.charAt(0)&&i.errors.push(function xU(){return new t.vHH(3006,!1)}()),e.definitions.forEach(function(d){if(o._resetContextStyleTimingState(i),0==d.type){var h=d,g=h.name;g.toString().split(/\s*,\s*/).forEach(function(Z){h.name=Z,l.push(o.visitState(h,i))}),h.name=g}else if(1==d.type){var C=o.visitTransition(d,i);a+=C.queryCount,s+=C.depCount,u.push(C)}else i.errors.push(function UR(){return new t.vHH(3007,!1)}())}),{type:7,name:e.name,states:l,transitions:u,queryCount:a,depCount:s,options:null}}},{key:"visitState",value:function(e,i){var o=this.visitStyle(e.styles,i),a=e.options&&e.options.params||null;if(o.containsDynamicStyles){var s=new Set,l=a||{};if(o.styles.forEach(function(d){d instanceof Map&&d.forEach(function(h){iL(h).forEach(function(g){l.hasOwnProperty(g)||s.add(g)})})}),s.size){R1(s.values());i.errors.push(function HR(n,r){return new t.vHH(3008,!1)}(e.name))}}return{type:0,name:e.name,style:o,options:a?{params:a}:null}}},{key:"visitTransition",value:function(e,i){i.queryCount=0,i.depCount=0;var o=Cl(this,Xl(e.animation),i);return{type:1,matchers:lL(e.expr,i.errors),animation:o,queryCount:i.queryCount,depCount:i.depCount,options:tg(e.options)}}},{key:"visitSequence",value:function(e,i){var o=this;return{type:2,steps:e.steps.map(function(a){return Cl(o,a,i)}),options:tg(e.options)}}},{key:"visitGroup",value:function(e,i){var o=this,a=i.currentTime,s=0,l=e.steps.map(function(u){i.currentTime=a;var d=Cl(o,u,i);return s=Math.max(s,i.currentTime),d});return i.currentTime=s,{type:3,steps:l,options:tg(e.options)}}},{key:"visitAnimate",value:function(e,i){var o=function kY(n,r){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n){return UE(Hy(n,r).duration,0,"")}var i=n,o=i.split(/\s+/).some(function(l){return"{"==l.charAt(0)&&"{"==l.charAt(1)});if(o){var a=UE(0,0,"");return a.dynamic=!0,a.strValue=i,a}var s=Hy(i,r);return UE(s.duration,s.delay,s.easing)}(e.timings,i.errors);i.currentAnimateTimings=o;var a,s=e.styles?e.styles:(0,Rt.oB)({});if(5==s.type)a=this.visitKeyframes(s,i);else{var l=e.styles,u=!1;if(!l){u=!0;var d={};o.easing&&(d.easing=o.easing),l=(0,Rt.oB)(d)}i.currentTime+=o.duration+o.delay;var h=this.visitStyle(l,i);h.isEmptyStep=u,a=h}return i.currentAnimateTimings=null,{type:4,timings:o,style:a,options:null}}},{key:"visitStyle",value:function(e,i){var o=this._makeStyleAst(e,i);return this._validateStyleAst(o,i),o}},{key:"_makeStyleAst",value:function(e,i){var l,o=[],a=Array.isArray(e.styles)?e.styles:[e.styles],s=(0,xn.Z)(a);try{for(s.s();!(l=s.n()).done;){var u=l.value;"string"==typeof u?u===Rt.l3?o.push(u):i.errors.push(new t.vHH(3002,!1)):o.push(NE(u))}}catch(g){s.e(g)}finally{s.f()}var d=!1,h=null;return o.forEach(function(g){if(g instanceof Map&&(g.has("easing")&&(h=g.get("easing"),g.delete("easing")),!d)){var Z,C=(0,xn.Z)(g.values());try{for(C.s();!(Z=C.n()).done;){if(Z.value.toString().indexOf("{{")>=0){d=!0;break}}}catch(q){C.e(q)}finally{C.f()}}}),{type:6,styles:o,easing:h,offset:e.offset,containsDynamicStyles:d,options:null}}},{key:"_validateStyleAst",value:function(e,i){var a=i.currentAnimateTimings,s=i.currentTime,l=i.currentTime;a&&l>0&&(l-=a.duration+a.delay),e.styles.forEach(function(u){"string"!=typeof u&&u.forEach(function(d,h){var g=i.collectedStyles.get(i.currentQuerySelector),C=g.get(h),Z=!0;C&&(l!=s&&l>=C.startTime&&s<=C.endTime&&(i.errors.push(function GR(n,r,e,i,o){return new t.vHH(3010,!1)}(0,C.startTime,C.endTime)),Z=!1),l=C.startTime),Z&&g.set(h,{startTime:l,endTime:s}),i.options&&JU(d,i.options,i.errors)})})}},{key:"visitKeyframes",value:function(e,i){var o=this,a={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function zR(){return new t.vHH(3011,!1)}()),a;var l=0,u=[],d=!1,h=!1,g=0,C=e.steps.map(function(Ce){var Ee=o._makeStyleAst(Ce,i),Ve=null!=Ee.offset?Ee.offset:function wY(n){if("string"==typeof n)return null;var r=null;if(Array.isArray(n))n.forEach(function(i){if(i instanceof Map&&i.has("offset")){var o=i;r=parseFloat(o.get("offset")),o.delete("offset")}});else if(n instanceof Map&&n.has("offset")){var e=n;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(Ee.styles),ut=0;return null!=Ve&&(l++,ut=Ee.offset=Ve),h=h||ut<0||ut>1,d=d||ut<g,g=ut,u.push(ut),Ee});h&&i.errors.push(function DU(){return new t.vHH(3012,!1)}()),d&&i.errors.push(function AU(){return new t.vHH(3200,!1)}());var Z=e.steps.length,z=0;l>0&&l<Z?i.errors.push(function WR(){return new t.vHH(3202,!1)}()):0==l&&(z=1/(Z-1));var q=Z-1,re=i.currentTime,ae=i.currentAnimateTimings,Se=ae.duration;return C.forEach(function(Ce,Ee){var Ve=z>0?Ee==q?1:z*Ee:u[Ee],ut=Ve*Se;i.currentTime=re+ae.delay+ut,ae.duration=ut,o._validateStyleAst(Ce,i),Ce.offset=Ve,a.styles.push(Ce)}),a}},{key:"visitReference",value:function(e,i){return{type:8,animation:Cl(this,Xl(e.animation),i),options:tg(e.options)}}},{key:"visitAnimateChild",value:function(e,i){return i.depCount++,{type:9,options:tg(e.options)}}},{key:"visitAnimateRef",value:function(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:tg(e.options)}}},{key:"visitQuery",value:function(e,i){var o=i.currentQuerySelector,a=e.options||{};i.queryCount++,i.currentQuery=e;var s=function o7(n){var r=!!n.split(/\s*,\s*/).find(function(e){return e==r7});return r&&(n=n.replace(CY,"")),n=n.replace(/@\*/g,q_).replace(/@\w+/g,function(e){return q_+"-"+e.slice(1)}).replace(/:animating/g,ZE),[n,r]}(e.selector),l=(0,Nn.Z)(s,2),u=l[0],d=l[1];i.currentQuerySelector=o.length?o+" "+u:u,bl(i.collectedStyles,i.currentQuerySelector,new Map);var h=Cl(this,Xl(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=o,{type:11,selector:u,limit:a.limit||0,optional:!!a.optional,includeSelf:d,animation:h,originalSelector:e.selector,options:tg(e.options)}}},{key:"visitStagger",value:function(e,i){i.currentQuery||i.errors.push(function OU(){return new t.vHH(3013,!1)}());var o="full"===e.timings?{duration:0,delay:0,easing:"full"}:Hy(e.timings,i.errors,!0);return{type:12,animation:Cl(this,Xl(e.animation),i),timings:o,options:null}}}]),n}();var s7=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set});function tg(n){return n?(n=J_(n)).params&&(n.params=function a7(n){return n?J_(n):null}(n.params)):n={},n}function UE(n,r,e){return{duration:n,delay:r,easing:e}}function zy(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:n,keyframes:r,preStyleProps:e,postStyleProps:i,duration:o,delay:a,totalTime:o+a,easing:s,subTimeline:l}}var dL=function(){function n(){(0,H.Z)(this,n),this._map=new Map}return(0,B.Z)(n,[{key:"get",value:function(e){return this._map.get(e)||[]}},{key:"append",value:function(e,i){var o,a=this._map.get(e);a||this._map.set(e,a=[]),(o=a).push.apply(o,(0,pn.Z)(i))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),n}(),Kh=new RegExp(":enter","g"),HE=new RegExp(":leave","g");function N1(n,r,e,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new Map,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new Map,l=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new MY).buildKeyframes(n,r,e,i,o,a,s,l,u,d)}var MY=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"buildKeyframes",value:function(e,i,o,a,s,l,u,d,h){var g=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];h=h||new dL;var C=new jE(e,i,h,a,s,g,[]);C.options=d;var Z=d.delay?cc(d.delay):0;C.currentTimeline.delayNextStep(Z),C.currentTimeline.setStyles([l],null,C.errors,d),Cl(this,o,C);var z=C.timelines.filter(function(Se){return Se.containsAnimation()});if(z.length&&u.size){for(var q,re=z.length-1;re>=0;re--){var ae=z[re];if(ae.element===i){q=ae;break}}q&&!q.allowOnlyTimelineStyles()&&q.setStyles([u],null,C.errors,d)}return z.length?z.map(function(Se){return Se.buildKeyframes()}):[zy(i,[],[],[],0,Z,"",!1)]}},{key:"visitTrigger",value:function(e,i){}},{key:"visitState",value:function(e,i){}},{key:"visitTransition",value:function(e,i){}},{key:"visitAnimateChild",value:function(e,i){var o=i.subInstructions.get(i.element);if(o){var a=i.createSubContext(e.options),s=i.currentTimeline.currentTime,l=this._visitSubInstructions(o,a,a.options);s!=l&&i.transformIntoNewTimeline(l)}i.previousNode=e}},{key:"visitAnimateRef",value:function(e,i){var o=i.createSubContext(e.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,o),this.visitReference(e.animation,o),i.transformIntoNewTimeline(o.currentTimeline.currentTime),i.previousNode=e}},{key:"_applyAnimationRefDelays",value:function(e,i,o){var a,l,s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=null==u?void 0:u.delay;if(d){var h="number"==typeof d?d:cc(jy(d,null!==(a=null==u?void 0:u.params)&&void 0!==a?a:{},i.errors));o.delayNextStep(h)}}}catch(g){s.e(g)}finally{s.f()}}},{key:"_visitSubInstructions",value:function(e,i,o){var s=i.currentTimeline.currentTime,l=null!=o.duration?cc(o.duration):null,u=null!=o.delay?cc(o.delay):null;return 0!==l&&e.forEach(function(d){var h=i.appendInstructionToTimeline(d,l,u);s=Math.max(s,h.duration+h.delay)}),s}},{key:"visitReference",value:function(e,i){i.updateOptions(e.options,!0),Cl(this,e.animation,i),i.previousNode=e}},{key:"visitSequence",value:function(e,i){var o=this,a=i.subContextCount,s=i,l=e.options;if(l&&(l.params||l.delay)&&((s=i.createSubContext(l)).transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ng);var u=cc(l.delay);s.delayNextStep(u)}e.steps.length&&(e.steps.forEach(function(d){return Cl(o,d,s)}),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>a&&s.transformIntoNewTimeline()),i.previousNode=e}},{key:"visitGroup",value:function(e,i){var o=this,a=[],s=i.currentTimeline.currentTime,l=e.options&&e.options.delay?cc(e.options.delay):0;e.steps.forEach(function(u){var d=i.createSubContext(e.options);l&&d.delayNextStep(l),Cl(o,u,d),s=Math.max(s,d.currentTimeline.currentTime),a.push(d.currentTimeline)}),a.forEach(function(u){return i.currentTimeline.mergeTimelineCollectedStyles(u)}),i.transformIntoNewTimeline(s),i.previousNode=e}},{key:"_visitTiming",value:function(e,i){if(e.dynamic){var o=e.strValue;return Hy(i.params?jy(o,i.params,i.errors):o,i.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,i){var o=i.currentAnimateTimings=this._visitTiming(e.timings,i),a=i.currentTimeline;o.delay&&(i.incrementTime(o.delay),a.snapshotCurrentStyles());var s=e.style;5==s.type?this.visitKeyframes(s,i):(i.incrementTime(o.duration),this.visitStyle(s,i),a.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}},{key:"visitStyle",value:function(e,i){var o=i.currentTimeline,a=i.currentAnimateTimings;!a&&o.hasCurrentStyleProperties()&&o.forwardFrame();var s=a&&a.easing||e.easing;e.isEmptyStep?o.applyEmptyStep(s):o.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}},{key:"visitKeyframes",value:function(e,i){var o=i.currentAnimateTimings,a=i.currentTimeline.duration,s=o.duration,u=i.createSubContext().currentTimeline;u.easing=o.easing,e.styles.forEach(function(d){var h=d.offset||0;u.forwardTime(h*s),u.setStyles(d.styles,d.easing,i.errors,i.options),u.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(u),i.transformIntoNewTimeline(a+s),i.previousNode=e}},{key:"visitQuery",value:function(e,i){var o=this,a=i.currentTimeline.currentTime,s=e.options||{},l=s.delay?cc(s.delay):0;l&&(6===i.previousNode.type||0==a&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ng);var u=a,d=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=d.length;var h=null;d.forEach(function(g,C){i.currentQueryIndex=C;var Z=i.createSubContext(e.options,g);l&&Z.delayNextStep(l),g===i.element&&(h=Z.currentTimeline),Cl(o,e.animation,Z),Z.currentTimeline.applyStylesToKeyframe();var z=Z.currentTimeline.currentTime;u=Math.max(u,z)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(u),h&&(i.currentTimeline.mergeTimelineCollectedStyles(h),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}},{key:"visitStagger",value:function(e,i){var o=i.parentContext,a=i.currentTimeline,s=e.timings,l=Math.abs(s.duration),u=l*(i.currentQueryTotal-1),d=l*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":d=u-d;break;case"full":d=o.currentStaggerTime}var g=i.currentTimeline;d&&g.delayNextStep(d);var C=g.currentTime;Cl(this,e.animation,i),i.previousNode=e,o.currentStaggerTime=a.currentTime-C+(a.startTime-o.currentTimeline.startTime)}}]),n}(),ng={},jE=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this._driver=r,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=s,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ng,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new GE(this._driver,e,0),l.push(this.currentTimeline)}return(0,B.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,i){var o=this;if(e){var a=e,s=this.options;null!=a.duration&&(s.duration=cc(a.duration)),null!=a.delay&&(s.delay=cc(a.delay));var l=a.params;if(l){var u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(function(d){(!i||!u.hasOwnProperty(d))&&(u[d]=jy(l[d],u,o.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var i=this.options.params;if(i){var o=e.params={};Object.keys(i).forEach(function(a){o[a]=i[a]})}}return e}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=i||this.element,s=new n(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,o||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=ng,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,i,o){var a={duration:null!=i?i:e.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+e.delay,easing:""},s=new SY(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,a,e.stretchStartingKeyframe);return this.timelines.push(s),a}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,i,o,a,s,l){var u=[];if(a&&u.push(this.element),e.length>0){e=(e=e.replace(Kh,"."+this._enterClassName)).replace(HE,"."+this._leaveClassName);var d=1!=o,h=this._driver.query(this.element,e,d);0!==o&&(h=o<0?h.slice(h.length+o,h.length):h.slice(0,o)),u.push.apply(u,(0,pn.Z)(h))}return!s&&0==u.length&&l.push(function VR(n){return new t.vHH(3014,!1)}()),u}}]),n}(),GE=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._driver=r,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return(0,B.Z)(n,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}},{key:"hasCurrentStyleProperties",value:function(){return this._currentKeyframe.size>0}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){e&&this._previousKeyframe.set("easing",e);var o,i=(0,xn.Z)(this._globalTimelineStyles);try{for(i.s();!(o=i.n()).done;){var a=(0,Nn.Z)(o.value,2),s=a[0],l=a[1];this._backFill.set(s,l||Rt.l3),this._currentKeyframe.set(s,Rt.l3)}}catch(u){i.e(u)}finally{i.f()}this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,i,o,a){var s;i&&this._previousKeyframe.set("easing",i);var h,l=a&&a.params||{},u=function EY(n,r){var i,e=new Map;return n.forEach(function(o){if("*"===o){i=i||r.keys();var s,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;e.set(l,Rt.l3)}}catch(u){a.e(u)}finally{a.f()}}else op(o,e)}),e}(e,this._globalTimelineStyles),d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=(0,Nn.Z)(h.value,2),C=g[0],z=jy(g[1],l,o);this._pendingStyles.set(C,z),this._localTimelineStyles.has(C)||this._backFill.set(C,null!==(s=this._globalTimelineStyles.get(C))&&void 0!==s?s:Rt.l3),this._updateStyle(C,z)}}catch(q){d.e(q)}finally{d.f()}}},{key:"applyStylesToKeyframe",value:function(){var e=this;0!=this._pendingStyles.size&&(this._pendingStyles.forEach(function(i,o){e._currentKeyframe.set(o,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach(function(i,o){e._currentKeyframe.has(o)||e._currentKeyframe.set(o,i)}))}},{key:"snapshotCurrentStyles",value:function(){var i,e=(0,xn.Z)(this._localTimelineStyles);try{for(e.s();!(i=e.n()).done;){var o=(0,Nn.Z)(i.value,2),a=o[0],s=o[1];this._pendingStyles.set(a,s),this._updateStyle(a,s)}}catch(l){e.e(l)}finally{e.f()}}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var i in this._currentKeyframe)e.push(i);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var i=this;e._styleSummary.forEach(function(o,a){var s=i._styleSummary.get(a);(!s||o.time>s.time)&&i._updateStyle(a,o.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var i=new Set,o=new Set,a=1===this._keyframes.size&&0===this.duration,s=[];this._keyframes.forEach(function(g,C){var Z=op(g,new Map,e._backFill);Z.forEach(function(z,q){z===Rt.k1?i.add(q):z===Rt.l3&&o.add(q)}),a||Z.set("offset",C/e.duration),s.push(Z)});var l=i.size?R1(i.values()):[],u=o.size?R1(o.values()):[];if(a){var d=s[0],h=new Map(d);d.set("offset",0),h.set("offset",1),s=[d,h]}return zy(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}]),n}(),SY=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d,h=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,H.Z)(this,e),(d=r.call(this,i,o,u.delay)).keyframes=a,d.preStyleProps=s,d.postStyleProps=l,d._stretchStartingKeyframe=h,d.timings={duration:u.duration,delay:u.delay,easing:u.easing},d}return(0,B.Z)(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var o=this.keyframes,a=this.timings,s=a.delay,l=a.duration,u=a.easing;if(this._stretchStartingKeyframe&&s){var d=[],h=l+s,g=s/h,C=op(o[0]);C.set("offset",0),d.push(C);var Z=op(o[0]);Z.set("offset",u7(g)),d.push(Z);for(var z=o.length-1,q=1;q<=z;q++){var re=op(o[q]),Se=s+re.get("offset")*l;re.set("offset",u7(Se/h)),d.push(re)}l=h,s=0,u="",o=d}return zy(this.element,o,this.preStyleProps,this.postStyleProps,l,s,u,!0)}}]),e}(GE);function u7(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,e=Math.pow(10,r-1);return Math.round(n*e)/e}var B1=(0,B.Z)(function n(){(0,H.Z)(this,n)}),c7=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),d7=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"normalizePropertyName",value:function(o,a){return L1(o)}},{key:"normalizeStyleValue",value:function(o,a,s,l){var u="",d=s.toString().trim();if(c7.has(a)&&0!==s&&"0"!==s)if("number"==typeof s)u="px";else{var h=s.match(/^[+-]?[\d\.]+([a-z]*)$/);h&&0==h[1].length&&l.push(function EU(n,r){return new t.vHH(3005,!1)}())}return d+u}}]),e}(B1);function pL(n,r,e,i,o,a,s,l,u,d,h,g,C){return{type:0,element:n,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:a,toState:i,toStyles:s,timelines:l,queriedElements:u,preStyleProps:d,postStyleProps:h,totalTime:g,errors:C}}var F1={},zE=function(){function n(r,e,i){(0,H.Z)(this,n),this._triggerName=r,this.ast=e,this._stateStyles=i}return(0,B.Z)(n,[{key:"match",value:function(e,i,o,a){return function p7(n,r,e,i,o){return n.some(function(a){return a(r,e,i,o)})}(this.ast.matchers,e,i,o,a)}},{key:"buildStyles",value:function(e,i,o){var a=this._stateStyles.get("*");return void 0!==e&&(a=this._stateStyles.get(null==e?void 0:e.toString())||a),a?a.buildStyles(i,o):new Map}},{key:"build",value:function(e,i,o,a,s,l,u,d,h,g){var C,Z=[],z=this.ast.options&&this.ast.options.params||F1,q=u&&u.params||F1,re=this.buildStyles(o,q,Z),ae=d&&d.params||F1,Se=this.buildStyles(a,ae,Z),Ce=new Set,Ee=new Map,Ve=new Map,ut="void"===a,Ae={params:h7(ae,z),delay:null===(C=this.ast.options)||void 0===C?void 0:C.delay},ot=g?[]:N1(e,i,this.ast.animation,s,l,re,Se,Ae,h,Z),ht=0;if(ot.forEach(function(Xe){ht=Math.max(Xe.duration+Xe.delay,ht)}),Z.length)return pL(i,this._triggerName,o,a,ut,re,Se,[],[],Ee,Ve,ht,Z);ot.forEach(function(Xe){var Pe=Xe.element,ft=bl(Ee,Pe,new Set);Xe.preStyleProps.forEach(function(Gt){return ft.add(Gt)});var Nt=bl(Ve,Pe,new Set);Xe.postStyleProps.forEach(function(Gt){return Nt.add(Gt)}),Pe!==i&&Ce.add(Pe)});var bt=R1(Ce.values());return pL(i,this._triggerName,o,a,ut,re,Se,ot,bt,Ee,Ve,ht)}}]),n}();function h7(n,r){var e=J_(r);for(var i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}var hL=function(){function n(r,e,i){(0,H.Z)(this,n),this.styles=r,this.defaultParams=e,this.normalizer=i}return(0,B.Z)(n,[{key:"buildStyles",value:function(e,i){var o=this,a=new Map,s=J_(this.defaultParams);return Object.keys(e).forEach(function(l){var u=e[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(function(l){"string"!=typeof l&&l.forEach(function(u,d){u&&(u=jy(u,s,i));var h=o.normalizer.normalizePropertyName(d,i);u=o.normalizer.normalizeStyleValue(d,h,u,i),a.set(h,u)})}),a}}]),n}();var DY=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this.name=r,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(function(a){var s=a.options&&a.options.params||{};o.states.set(a.name,new hL(a.style,s,i))}),rg(this.states,"true","1"),rg(this.states,"false","0"),e.transitions.forEach(function(a){o.transitionFactories.push(new zE(r,a,o.states))}),this.fallbackTransition=function mL(n,r,e){return new zE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(s,l){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states,this._normalizer)}return(0,B.Z)(n,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,i,o,a){return this.transitionFactories.find(function(l){return l.match(e,i,o,a)})||null}},{key:"matchStyles",value:function(e,i,o){return this.fallbackTransition.buildStyles(e,i,o)}}]),n}();function rg(n,r,e){n.has(r)?n.has(e)||n.set(e,n.get(r)):n.has(e)&&n.set(r,n.get(e))}var m7=new dL,_7=function(){function n(r,e,i){(0,H.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}return(0,B.Z)(n,[{key:"register",value:function(e,i){var o=[],a=[],s=FE(this._driver,i,o,a);if(o.length)throw function qR(n){return new t.vHH(3503,!1)}();a.length,this._animations.set(e,s)}},{key:"_buildPlayer",value:function(e,i,o){var a=e.element,s=jU(this._driver,this._normalizer,a,e.keyframes,i,o);return this._driver.animate(a,s,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,i){var u,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=[],l=this._animations.get(e),d=new Map;if(l?(u=N1(this._driver,i,l,tL,uc,new Map,new Map,a,m7,s)).forEach(function(C){var Z=bl(d,C.element,new Map);C.postStyleProps.forEach(function(z){return Z.set(z,null)})}):(s.push(JR()),u=[]),s.length)throw LU();d.forEach(function(C,Z){C.forEach(function(z,q){C.set(q,o._driver.computeStyle(Z,q,Rt.l3))})});var h=u.map(function(C){var Z=d.get(C.element);return o._buildPlayer(C,new Map,Z)}),g=Vd(h);return this._playersById.set(e,g),g.onDestroy(function(){return o.destroy(e)}),this.players.push(g),g}},{key:"destroy",value:function(e){var i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);var o=this.players.indexOf(i);o>=0&&this.players.splice(o,1)}},{key:"_getPlayer",value:function(e){var i=this._playersById.get(e);if(!i)throw function ZU(n){return new t.vHH(3301,!1)}();return i}},{key:"listen",value:function(e,i,o,a){var s=OE(i,"","","");return Fy(this._getPlayer(e),o,s,a),function(){}}},{key:"command",value:function(e,i,o,a){if("register"!=o)if("create"!=o){var l=this._getPlayer(e);switch(o){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(e)}}else{var s=a[0]||{};this.create(e,i,s)}else this.register(e,a[0])}}]),n}(),g7="ng-animate-queued",WE="ng-animate-disabled",v7="ng-star-inserted",IY=[],y7={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},pc="__ng_removed",VE=function(){function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,H.Z)(this,n),this.namespaceId=e;var i=r&&r.hasOwnProperty("value"),o=i?r.value:r;if(this.value=c(o),i){var a=J_(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return(0,B.Z)(n,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var i=e.params;if(i){var o=this.options.params;Object.keys(i).forEach(function(a){null==o[a]&&(o[a]=i[a])})}}}]),n}(),U1="void",_L=new VE(U1),RY=function(){function n(r,e,i){(0,H.Z)(this,n),this.id=r,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,V(e,this._hostClassName)}return(0,B.Z)(n,[{key:"listen",value:function(e,i,o,a){var s=this;if(!this._triggers.has(i))throw function NU(n,r){return new t.vHH(3302,!1)}();if(null==o||0==o.length)throw function BU(n){return new t.vHH(3303,!1)}();if(!function p(n){return"start"==n||"done"==n}(o))throw function FU(n,r){return new t.vHH(3400,!1)}();var l=bl(this._elementListeners,e,[]),u={name:i,phase:o,callback:a};l.push(u);var d=bl(this._engine.statesByElement,e,new Map);return d.has(i)||(V(e,I1),V(e,I1+"-"+i),d.set(i,_L)),function(){s._engine.afterFlush(function(){var h=l.indexOf(u);h>=0&&l.splice(h,1),s._triggers.has(i)||d.delete(i)})}}},{key:"register",value:function(e,i){return!this._triggers.has(e)&&(this._triggers.set(e,i),!0)}},{key:"_getTrigger",value:function(e){var i=this._triggers.get(e);if(!i)throw function UU(n){return new t.vHH(3401,!1)}();return i}},{key:"trigger",value:function(e,i,o){var a=this,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=this._getTrigger(i),u=new gL(this.id,i,e),d=this._engine.statesByElement.get(e);d||(V(e,I1),V(e,I1+"-"+i),this._engine.statesByElement.set(e,d=new Map));var h=d.get(i),g=new VE(o,this.id),C=o&&o.hasOwnProperty("value");!C&&h&&g.absorbOptions(h.options),d.set(i,g),h||(h=_L);var Z=g.value===U1;if(Z||h.value!==g.value){var ae=bl(this._engine.playersByElement,e,[]);ae.forEach(function(Ee){Ee.namespaceId==a.id&&Ee.triggerName==i&&Ee.queued&&Ee.destroy()});var Se=l.matchTransition(h.value,g.value,e,g.params),Ce=!1;if(!Se){if(!s)return;Se=l.fallbackTransition,Ce=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:Se,fromState:h,toState:g,player:u,isFallbackTransition:Ce}),Ce||(V(e,g7),u.onStart(function(){ee(e,g7)})),u.onDone(function(){var Ee=a.players.indexOf(u);Ee>=0&&a.players.splice(Ee,1);var Ve=a._engine.playersByElement.get(e);if(Ve){var ut=Ve.indexOf(u);ut>=0&&Ve.splice(ut,1)}}),this.players.push(u),ae.push(u),u}if(!rt(h.params,g.params)){var z=[],q=l.matchStyles(h.value,h.params,z),re=l.matchStyles(g.value,g.params,z);z.length?this._engine.reportError(z):this._engine.afterFlush(function(){Yd(e,q),fc(e,re)})}}},{key:"deregister",value:function(e){var i=this;this._triggers.delete(e),this._engine.statesByElement.forEach(function(o){return o.delete(e)}),this._elementListeners.forEach(function(o,a){i._elementListeners.set(a,o.filter(function(s){return s.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var i=this._engine.playersByElement.get(e);i&&(i.forEach(function(o){return o.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,i){var o=this,a=this._engine.driver.query(e,q_,!0);a.forEach(function(s){if(!s[pc]){var l=o._engine.fetchNamespacesByElement(s);l.size?l.forEach(function(u){return u.triggerLeaveAnimation(s,i,!1,!0)}):o.clearElementCache(s)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(s){return o.clearElementCache(s)})})}},{key:"triggerLeaveAnimation",value:function(e,i,o,a){var s=this,l=this._engine.statesByElement.get(e),u=new Map;if(l){var d=[];if(l.forEach(function(h,g){if(u.set(g,h.value),s._triggers.has(g)){var C=s.trigger(e,g,U1,a);C&&d.push(C)}}),d.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,u),o&&Vd(d).onDone(function(){return s._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var i=this,o=this._elementListeners.get(e),a=this._engine.statesByElement.get(e);if(o&&a){var s=new Set;o.forEach(function(l){var u=l.name;if(!s.has(u)){s.add(u);var h=i._triggers.get(u).fallbackTransition,g=a.get(u)||_L,C=new VE(U1),Z=new gL(i.id,u,e);i._engine.totalQueuedPlayers++,i._queue.push({element:e,triggerName:u,transition:h,fromState:g,toState:C,player:Z,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,i){var o=this,a=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),!this.triggerLeaveAnimation(e,i,!0)){var s=!1;if(a.totalAnimations){var l=a.players.length?a.playersByQueriedElement.get(e):[];if(l&&l.length)s=!0;else for(var u=e;u=u.parentNode;){if(a.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)a.markElementAsRemoved(this.id,e,!1,i);else{var h=e[pc];(!h||h===y7)&&(a.afterFlush(function(){return o.clearElementCache(e)}),a.destroyInnerAnimations(e),a._onRemovalComplete(e,i))}}}},{key:"insertNode",value:function(e,i){V(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var i=this,o=[];return this._queue.forEach(function(a){var s=a.player;if(!s.destroyed){var l=a.element,u=i._elementListeners.get(l);u&&u.forEach(function(d){if(d.name==a.triggerName){var h=OE(l,a.triggerName,a.fromState.value,a.toState.value);h._data=e,Fy(a.player,d.phase,h,d.callback)}}),s.markedForDestroy?i._engine.afterFlush(function(){s.destroy()}):o.push(a)}}),this._queue=[],o.sort(function(a,s){var l=a.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:i._engine.driver.containsElement(a.element,s.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(i){return i.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var i=!1;return this._elementListeners.has(e)&&(i=!0),i=!!this._queue.find(function(o){return o.element===e})||i}}]),n}(),LY=function(){function n(r,e,i){(0,H.Z)(this,n),this.bodyNode=r,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(o,a){}}return(0,B.Z)(n,[{key:"_onRemovalComplete",value:function(e,i){this.onRemovalComplete(e,i)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(i){i.players.forEach(function(o){o.queued&&e.push(o)})}),e}},{key:"createNamespace",value:function(e,i){var o=new RY(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(o,i):(this.newHostElements.set(i,o),this.collectEnterElement(i)),this._namespaceLookup[e]=o}},{key:"_balanceNamespaceList",value:function(e,i){var o=this._namespaceList,a=this.namespacesByHostElement;if(o.length-1>=0){for(var l=!1,u=this.driver.getParentElement(i);u;){var d=a.get(u);if(d){var h=o.indexOf(d);o.splice(h+1,0,e),l=!0;break}u=this.driver.getParentElement(u)}l||o.unshift(e)}else o.push(e);return a.set(i,e),e}},{key:"register",value:function(e,i){var o=this._namespaceLookup[e];return o||(o=this.createNamespace(e,i)),o}},{key:"registerTrigger",value:function(e,i,o){var a=this._namespaceLookup[e];a&&a.register(i,o)&&this.totalAnimations++}},{key:"destroy",value:function(e,i){var o=this;if(e){var a=this._fetchNamespace(e);this.afterFlush(function(){o.namespacesByHostElement.delete(a.hostElement),delete o._namespaceLookup[e];var s=o._namespaceList.indexOf(a);s>=0&&o._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(i)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var i=new Set,o=this.statesByElement.get(e);if(o){var s,a=(0,xn.Z)(o.values());try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.namespaceId){var u=this._fetchNamespace(l.namespaceId);u&&i.add(u)}}}catch(d){a.e(d)}finally{a.f()}}return i}},{key:"trigger",value:function(e,i,o,a){if(f(i)){var s=this._fetchNamespace(e);if(s)return s.trigger(i,o,a),!0}return!1}},{key:"insertNode",value:function(e,i,o,a){if(f(i)){var s=i[pc];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;var l=this.collectedLeaveElements.indexOf(i);l>=0&&this.collectedLeaveElements.splice(l,1)}if(e){var u=this._fetchNamespace(e);u&&u.insertNode(i,o)}a&&this.collectEnterElement(i)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),V(e,WE)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ee(e,WE))}},{key:"removeNode",value:function(e,i,o,a){if(f(i)){var s=e?this._fetchNamespace(e):null;if(s?s.removeNode(i,a):this.markElementAsRemoved(e,i,!1,a),o){var l=this.namespacesByHostElement.get(i);l&&l.id!==e&&l.removeNode(i,a)}}else this._onRemovalComplete(i,a)}},{key:"markElementAsRemoved",value:function(e,i,o,a,s){this.collectedLeaveElements.push(i),i[pc]={namespaceId:e,setForRemoval:a,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:s}}},{key:"listen",value:function(e,i,o,a,s){return f(i)?this._fetchNamespace(e).listen(i,o,a,s):function(){}}},{key:"_buildInstruction",value:function(e,i,o,a,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,o,a,e.fromState.options,e.toState.options,i,s)}},{key:"destroyInnerAnimations",value:function(e){var i=this,o=this.driver.query(e,q_,!0);o.forEach(function(a){return i.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(o=this.driver.query(e,ZE,!0)).forEach(function(a){return i.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var i=this.playersByElement.get(e);i&&i.forEach(function(o){o.queued?o.markedForDestroy=!0:o.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var i=this.playersByQueriedElement.get(e);i&&i.forEach(function(o){return o.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(i){if(e.players.length)return Vd(e.players).onDone(function(){return i()});i()})}},{key:"processLeaveNode",value:function(e){var o,i=this,a=e[pc];if(a&&a.setForRemoval){if(e[pc]=y7,a.namespaceId){this.destroyInnerAnimations(e);var s=this._fetchNamespace(a.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}!(null===(o=e.classList)||void 0===o)&&o.contains(WE)&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(l){i.markElementAsDisabled(l,!1)})}},{key:"flush",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,o=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(C,Z){return e._balanceNamespaceList(C,Z)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a<this.collectedEnterElements.length;a++){var s=this.collectedEnterElements[a];V(s,v7)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var l=[];try{o=this._flushAnimations(l,i)}finally{for(var u=0;u<l.length;u++)l[u]()}}else for(var d=0;d<this.collectedLeaveElements.length;d++){var h=this.collectedLeaveElements[d];this.processLeaveNode(h)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(C){return C()}),this._flushFns=[],this._whenQuietFns.length){var g=this._whenQuietFns;this._whenQuietFns=[],o.length?Vd(o).onDone(function(){g.forEach(function(C){return C()})}):g.forEach(function(C){return C()})}}},{key:"reportError",value:function(e){throw function HU(n){return new t.vHH(3402,!1)}()}},{key:"_flushAnimations",value:function(e,i){var o=this,a=new dL,s=[],l=new Map,u=[],d=new Map,h=new Map,g=new Map,C=new Set;this.disabledNodes.forEach(function(bn){C.add(bn);for(var Bn=o.driver.query(bn,".ng-animate-queued",!0),nr=0;nr<Bn.length;nr++)C.add(Bn[nr])});var Z=this.bodyNode,z=Array.from(this.statesByElement.keys()),q=I(z,this.collectedEnterElements),re=new Map,ae=0;q.forEach(function(bn,Bn){var nr=tL+ae++;re.set(Bn,nr),bn.forEach(function(vr){return V(vr,nr)})});for(var Se=[],Ce=new Set,Ee=new Set,Ve=0;Ve<this.collectedLeaveElements.length;Ve++){var ut=this.collectedLeaveElements[Ve],Ae=ut[pc];Ae&&Ae.setForRemoval&&(Se.push(ut),Ce.add(ut),Ae.hasAnimation?this.driver.query(ut,".ng-star-inserted",!0).forEach(function(bn){return Ce.add(bn)}):Ee.add(ut))}var ot=new Map,ht=I(z,Array.from(Ce));ht.forEach(function(bn,Bn){var nr=uc+ae++;ot.set(Bn,nr),bn.forEach(function(vr){return V(vr,nr)})}),e.push(function(){q.forEach(function(bn,Bn){var nr=re.get(Bn);bn.forEach(function(vr){return ee(vr,nr)})}),ht.forEach(function(bn,Bn){var nr=ot.get(Bn);bn.forEach(function(vr){return ee(vr,nr)})}),Se.forEach(function(bn){o.processLeaveNode(bn)})});for(var bt=[],Xe=[],Pe=this._namespaceList.length-1;Pe>=0;Pe--){this._namespaceList[Pe].drainQueuedTransitions(i).forEach(function(bn){var Bn=bn.player,nr=bn.element;if(bt.push(Bn),o.collectedEnterElements.length){var vr=nr[pc];if(vr&&vr.setForMove){if(vr.previousTriggersValues&&vr.previousTriggersValues.has(bn.triggerName)){var io=vr.previousTriggersValues.get(bn.triggerName),Yu=o.statesByElement.get(bn.element);if(Yu&&Yu.has(bn.triggerName)){var Mv=Yu.get(bn.triggerName);Mv.value=io,Yu.set(bn.triggerName,Mv)}}return void Bn.destroy()}}var Sv=!Z||!o.driver.containsElement(Z,nr),Jm=ot.get(nr),aC=re.get(nr),Ia=o._buildInstruction(bn,a,aC,Jm,Sv);if(Ia.errors&&Ia.errors.length)Xe.push(Ia);else{if(Sv)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return fc(nr,Ia.toStyles)}),void s.push(Bn);if(bn.isFallbackTransition)return Bn.onStart(function(){return Yd(nr,Ia.fromStyles)}),Bn.onDestroy(function(){return fc(nr,Ia.toStyles)}),void s.push(Bn);var AP=[];Ia.timelines.forEach(function(th){th.stretchStartingKeyframe=!0,o.disabledNodes.has(th.element)||AP.push(th)}),Ia.timelines=AP,a.append(nr,Ia.timelines);var QW={instruction:Ia,player:Bn,element:nr};u.push(QW),Ia.queriedElements.forEach(function(th){return bl(d,th,[]).push(Bn)}),Ia.preStyleProps.forEach(function(th,OP){if(th.size){var sC=h.get(OP);sC||h.set(OP,sC=new Set),th.forEach(function(net,XW){return sC.add(XW)})}}),Ia.postStyleProps.forEach(function(th,OP){var sC=g.get(OP);sC||g.set(OP,sC=new Set),th.forEach(function(net,XW){return sC.add(XW)})})}})}if(Xe.length){var Nt=[];Xe.forEach(function(bn){Nt.push(function vY(n,r){return new t.vHH(3505,!1)}(bn.triggerName,bn.errors))}),bt.forEach(function(bn){return bn.destroy()}),this.reportError(Nt)}var Gt=new Map,It=new Map;u.forEach(function(bn){var Bn=bn.element;a.has(Bn)&&(It.set(Bn,Bn),o._beforeAnimationBuild(bn.player.namespaceId,bn.instruction,Gt))}),s.forEach(function(bn){var Bn=bn.element;o._getPreviousPlayers(Bn,!1,bn.namespaceId,bn.triggerName,null).forEach(function(vr){bl(Gt,Bn,[]).push(vr),vr.destroy()})});var Tn=Se.filter(function(bn){return pt(bn,h,g)}),jn=new Map;w(jn,this.driver,Ee,g,Rt.l3).forEach(function(bn){pt(bn,h,g)&&Tn.push(bn)});var or=new Map;q.forEach(function(bn,Bn){w(or,o.driver,new Set(bn),h,Rt.k1)}),Tn.forEach(function(bn){var Bn,nr,vr=jn.get(bn),io=or.get(bn);jn.set(bn,new Map([].concat((0,pn.Z)(Array.from(null!==(Bn=null==vr?void 0:vr.entries())&&void 0!==Bn?Bn:[])),(0,pn.Z)(Array.from(null!==(nr=null==io?void 0:io.entries())&&void 0!==nr?nr:[])))))});var Mr=[],_r=[],zr={};u.forEach(function(bn){var Bn=bn.element,nr=bn.player,vr=bn.instruction;if(a.has(Bn)){if(C.has(Bn))return nr.onDestroy(function(){return fc(Bn,vr.toStyles)}),nr.disabled=!0,nr.overrideTotalTime(vr.totalTime),void s.push(nr);var io=zr;if(It.size>1){for(var Yu=Bn,Mv=[];Yu=Yu.parentNode;){var Sv=It.get(Yu);if(Sv){io=Sv;break}Mv.push(Yu)}Mv.forEach(function(Ia){return It.set(Ia,io)})}var Jm=o._buildAnimation(nr.namespaceId,vr,Gt,l,or,jn);if(nr.setRealPlayer(Jm),io===zr)Mr.push(nr);else{var aC=o.playersByElement.get(io);aC&&aC.length&&(nr.parentPlayer=Vd(aC)),s.push(nr)}}else Yd(Bn,vr.fromStyles),nr.onDestroy(function(){return fc(Bn,vr.toStyles)}),_r.push(nr),C.has(Bn)&&s.push(nr)}),_r.forEach(function(bn){var Bn=l.get(bn.element);if(Bn&&Bn.length){var nr=Vd(Bn);bn.setRealPlayer(nr)}}),s.forEach(function(bn){bn.parentPlayer?bn.syncPlayerEvents(bn.parentPlayer):bn.destroy()});for(var Ur=0;Ur<Se.length;Ur++){var Kr=Se[Ur],Fo=Kr[pc];if(ee(Kr,uc),!Fo||!Fo.hasAnimation){var er=[];if(d.size){var wr=d.get(Kr);wr&&wr.length&&er.push.apply(er,(0,pn.Z)(wr));for(var Sn=this.driver.query(Kr,ZE,!0),gn=0;gn<Sn.length;gn++){var tr=d.get(Sn[gn]);tr&&tr.length&&er.push.apply(er,(0,pn.Z)(tr))}}var un=er.filter(function(bn){return!bn.destroyed});un.length?oe(this,Kr,un):this.processLeaveNode(Kr)}}return Se.length=0,Mr.forEach(function(bn){o.players.push(bn),bn.onDone(function(){bn.destroy();var Bn=o.players.indexOf(bn);o.players.splice(Bn,1)}),bn.play()}),Mr}},{key:"elementContainsData",value:function(e,i){var o=!1,a=i[pc];return a&&a.setForRemoval&&(o=!0),this.playersByElement.has(i)&&(o=!0),this.playersByQueriedElement.has(i)&&(o=!0),this.statesByElement.has(i)&&(o=!0),this._fetchNamespace(e).elementContainsData(i)||o}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,i,o,a,s){var l=[];if(i){var u=this.playersByQueriedElement.get(e);u&&(l=u)}else{var d=this.playersByElement.get(e);if(d){var h=!s||s==U1;d.forEach(function(g){g.queued||!h&&g.triggerName!=a||l.push(g)})}}return(o||a)&&(l=l.filter(function(g){return!(o&&o!=g.namespaceId||a&&a!=g.triggerName)})),l}},{key:"_beforeAnimationBuild",value:function(e,i,o){var g,a=this,s=i.triggerName,l=i.element,u=i.isRemovalTransition?void 0:e,d=i.isRemovalTransition?void 0:s,h=(0,xn.Z)(i.timelines);try{var C=function(){var q=g.value.element,re=q!==l,ae=bl(o,q,[]);a._getPreviousPlayers(q,re,u,d,i.toState).forEach(function(Ce){var Ee=Ce.getRealPlayer();Ee.beforeDestroy&&Ee.beforeDestroy(),Ce.destroy(),ae.push(Ce)})};for(h.s();!(g=h.n()).done;)C()}catch(Z){h.e(Z)}finally{h.f()}Yd(l,i.fromStyles)}},{key:"_buildAnimation",value:function(e,i,o,a,s,l){var u=this,d=i.triggerName,h=i.element,g=[],C=new Set,Z=new Set,z=i.timelines.map(function(re){var ae=re.element;C.add(ae);var Se=ae[pc];if(Se&&Se.removedBeforeQueried)return new Rt.ZN(re.duration,re.delay);var Ce=ae!==h,Ee=function ve(n){var r=[];return He(n,r),r}((o.get(ae)||IY).map(function(bt){return bt.getRealPlayer()})).filter(function(bt){var Xe=bt;return!!Xe.element&&Xe.element===ae}),Ve=s.get(ae),ut=l.get(ae),Ae=jU(u.driver,u._normalizer,ae,re.keyframes,Ve,ut),ot=u._buildPlayer(re,Ae,Ee);if(re.subTimeline&&a&&Z.add(ae),Ce){var ht=new gL(e,d,ae);ht.setRealPlayer(ot),g.push(ht)}return ot});g.forEach(function(re){bl(u.playersByQueriedElement,re.element,[]).push(re),re.onDone(function(){return function ZY(n,r,e){var i=n.get(r);if(i){if(i.length){var o=i.indexOf(e);i.splice(o,1)}0==i.length&&n.delete(r)}return i}(u.playersByQueriedElement,re.element,re)})}),C.forEach(function(re){return V(re,nL)});var q=Vd(z);return q.onDestroy(function(){C.forEach(function(re){return ee(re,nL)}),fc(h,i.toStyles)}),Z.forEach(function(re){bl(a,re,[]).push(q)}),q}},{key:"_buildPlayer",value:function(e,i,o){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,o):new Rt.ZN(e.duration,e.delay)}}]),n}(),gL=function(){function n(r,e,i){(0,H.Z)(this,n),this.namespaceId=r,this.triggerName=e,this.element=i,this._player=new Rt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return(0,B.Z)(n,[{key:"setRealPlayer",value:function(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach(function(i,o){i.forEach(function(a){return Fy(e,o,void 0,a)})}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var i=this,o=this._player;o.triggerCallback&&e.onStart(function(){return o.triggerCallback("start")}),e.onDone(function(){return i.finish()}),e.onDestroy(function(){return i.destroy()})}},{key:"_queueEvent",value:function(e,i){bl(this._queuedCallbacks,e,[]).push(i)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var i=this._player;i.triggerCallback&&i.triggerCallback(e)}}]),n}();function c(n){return null!=n?n:null}function f(n){return n&&1===n.nodeType}function _(n,r){var e=n.style.display;return n.style.display=null!=r?r:"none",e}function w(n,r,e,i,o){var a=[];e.forEach(function(u){return a.push(_(u))});var s=[];i.forEach(function(u,d){var h=new Map;u.forEach(function(g){var C=r.computeStyle(d,g,o);h.set(g,C),(!C||0==C.length)&&(d[pc]=PY,s.push(d))}),n.set(d,h)});var l=0;return e.forEach(function(u){return _(u,a[l++])}),s}function I(n,r){var e=new Map;if(n.forEach(function(l){return e.set(l,[])}),0==r.length)return e;var o=new Set(r),a=new Map;function s(l){if(!l)return 1;var u=a.get(l);if(u)return u;var d=l.parentNode;return u=e.has(d)?d:o.has(d)?1:s(d),a.set(l,u),u}return r.forEach(function(l){var u=s(l);1!==u&&e.get(u).push(l)}),e}function V(n,r){var e;null===(e=n.classList)||void 0===e||e.add(r)}function ee(n,r){var e;null===(e=n.classList)||void 0===e||e.remove(r)}function oe(n,r,e){Vd(e).onDone(function(){return n.processLeaveNode(r)})}function He(n,r){for(var e=0;e<n.length;e++){var i=n[e];i instanceof Rt.ZE?He(i.players,r):r.push(i)}}function rt(n,r){var e=Object.keys(n),i=Object.keys(r);if(e.length!=i.length)return!1;for(var o=0;o<e.length;o++){var a=e[o];if(!r.hasOwnProperty(a)||n[a]!==r[a])return!1}return!0}function pt(n,r,e){var i=e.get(n);if(!i)return!1;var o=r.get(n);return o?i.forEach(function(a){return o.add(a)}):r.set(n,i),e.delete(n),!0}var wt=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this.bodyNode=r,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(a,s){},this._transitionEngine=new LY(r,e,i),this._timelineEngine=new _7(r,e,i),this._transitionEngine.onRemovalComplete=function(a,s){return o.onRemovalComplete(a,s)}}return(0,B.Z)(n,[{key:"registerTrigger",value:function(e,i,o,a,s){var l=e+"-"+a,u=this._triggerCache[l];if(!u){var d=[],h=[],g=FE(this._driver,s,d,h);if(d.length)throw function PU(n,r){return new t.vHH(3404,!1)}();h.length,u=function Wy(n,r,e){return new DY(n,r,e)}(a,g,this._normalizer),this._triggerCache[l]=u}this._transitionEngine.registerTrigger(i,a,u)}},{key:"register",value:function(e,i){this._transitionEngine.register(e,i)}},{key:"destroy",value:function(e,i){this._transitionEngine.destroy(e,i)}},{key:"onInsert",value:function(e,i,o,a){this._transitionEngine.insertNode(e,i,o,a)}},{key:"onRemove",value:function(e,i,o,a){this._transitionEngine.removeNode(e,i,a||!1,o)}},{key:"disableAnimations",value:function(e,i){this._transitionEngine.markElementAsDisabled(e,i)}},{key:"process",value:function(e,i,o,a){if("@"==o.charAt(0)){var s=GU(o),l=(0,Nn.Z)(s,2),u=l[0],d=l[1],h=a;this._timelineEngine.command(u,i,d,h)}else this._transitionEngine.trigger(e,i,o,a)}},{key:"listen",value:function(e,i,o,a,s){if("@"==o.charAt(0)){var l=GU(o),u=(0,Nn.Z)(l,2),d=u[0],h=u[1];return this._timelineEngine.listen(d,i,h,s)}return this._transitionEngine.listen(e,i,o,a,s)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),n}();function en(n,r){var e=null,i=null;return Array.isArray(r)&&r.length?(e=Un(r[0]),r.length>1&&(i=Un(r[r.length-1]))):r instanceof Map&&(e=Un(r)),e||i?new _n(n,e,i):null}var _n=function(){function n(r,e,i){(0,H.Z)(this,n),this._element=r,this._startStyles=e,this._endStyles=i,this._state=0;var o=n.initialStylesByElement.get(r);o||n.initialStylesByElement.set(r,o=new Map),this._initialStyles=o}return(0,B.Z)(n,[{key:"start",value:function(){this._state<1&&(this._startStyles&&fc(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(fc(this._element,this._initialStyles),this._endStyles&&(fc(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Yd(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yd(this._element,this._endStyles),this._endStyles=null),fc(this._element,this._initialStyles),this._state=3)}}]),n}();function Un(n){var r=null;return n.forEach(function(e,i){(function Qn(n){return"display"===n||"position"===n})(i)&&(r=r||new Map).set(i,e)}),r}_n.initialStylesByElement=new WeakMap;var Xn=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.element=r,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return(0,B.Z)(n,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map,this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_convertKeyframesToObject",value:function(e){var i=[];return e.forEach(function(o){i.push(Object.fromEntries(o))}),i}},{key:"_triggerWebAnimation",value:function(e,i,o){return e.animate(this._convertKeyframesToObject(i),o)}},{key:"onStart",value:function(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,i=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(a,s){"offset"!==s&&i.set(s,e._finished?a:$U(e.element,s))});this.currentSnapshot=i}},{key:"triggerCallback",value:function(e){var i="start"===e?this._onStartFns:this._onDoneFns;i.forEach(function(o){return o()}),i.length=0}}]),n}(),wn=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"validateStyleProperty",value:function(e){return!0}},{key:"validateAnimatableStyleProperty",value:function(e){return!0}},{key:"matchesElement",value:function(e,i){return!1}},{key:"containsElement",value:function(e,i){return YU(e,i)}},{key:"getParentElement",value:function(e){return Y_(e)}},{key:"query",value:function(e,i,o){return $R(e,i,o)}},{key:"computeStyle",value:function(e,i,o){return window.getComputedStyle(e)[i]}},{key:"animate",value:function(e,i,o,a,s){var l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=0==a?"both":"forwards",d={duration:o,delay:a,fill:u};s&&(d.easing=s);var h=new Map,g=l.filter(function(z){return z instanceof Xn});oL(o,a)&&g.forEach(function(z){z.currentSnapshot.forEach(function(q,re){return h.set(re,q)})});var C=Q_(i).map(function(z){return op(z)}),Z=en(e,C=XU(e,C,h));return new Xn(e,C,d,Z)}}]),n}(),br=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;(0,H.Z)(this,e),(a=r.call(this))._nextAnimationId=0;var s={id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}};return a._renderer=i.createRenderer(o.body,s),a}return(0,B.Z)(e,[{key:"build",value:function(o){var a=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(o)?(0,Rt.vP)(o):o;return $a(this._renderer,null,a,"register",[s]),new gi(a,this._renderer)}}]),e}(Rt._j);br.\u0275fac=function(r){return new(r||br)(t.LFG(t.FYo),t.LFG(ge.K0))},br.\u0275prov=t.Yz7({token:br,factory:br.\u0275fac});var gi=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this))._id=i,a._renderer=o,a}return(0,B.Z)(e,[{key:"create",value:function(o,a){return new wi(this._id,o,a||{},this._renderer)}}]),e}(Rt.LC),wi=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return(0,B.Z)(n,[{key:"_listen",value:function(e,i){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),i)}},{key:"_command",value:function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return $a(this._renderer,this.element,this.id,e,o)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,i;return null!==(i=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==i?i:0}}]),n}();function $a(n,r,e,i,o){return n.setProperty(r,"@@".concat(e,":").concat(i),o)}var wl="@.disabled",$l=function(){function n(r,e,i){(0,H.Z)(this,n),this.delegate=r,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(o,a){var s=null==a?void 0:a.parentNode(o);s&&a.removeChild(s,o)}}return(0,B.Z)(n,[{key:"createRenderer",value:function(e,i){var o=this,s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){var l=this._rendererCache.get(s);if(!l){l=new og("",s,this.engine,function(){return o._rendererCache.delete(s)}),this._rendererCache.set(s,l)}return l}var d=i.id,h=i.id+"-"+this._currentId;this._currentId++,this.engine.register(h,e);return i.data.animation.forEach(function Z(z){Array.isArray(z)?z.forEach(Z):o.engine.registerTrigger(d,h,e,z.name,z)}),new Vy(this,h,s,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,i,o){var a=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return i(o)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){a._zone.run(function(){a._animationCallbacksBuffer.forEach(function(s){var l=(0,Nn.Z)(s,2);(0,l[0])(l[1])}),a._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),n}();$l.\u0275fac=function(r){return new(r||$l)(t.LFG(t.FYo),t.LFG(wt),t.LFG(t.R0b))},$l.\u0275prov=t.Yz7({token:$l,factory:$l.\u0275fac});var og=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.namespaceId=r,this.delegate=e,this.engine=i,this._onDestroy=o,this.destroyNode=this.delegate.destroyNode?function(a){return e.destroyNode(a)}:null}return(0,B.Z)(n,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){var e;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(e=this._onDestroy)||void 0===e||e.call(this)}},{key:"createElement",value:function(e,i){return this.delegate.createElement(e,i)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}},{key:"insertBefore",value:function(e,i,o){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,i,o),this.engine.onInsert(this.namespaceId,i,e,a)}},{key:"removeChild",value:function(e,i,o){this.engine.onRemove(this.namespaceId,i,this.delegate,o)}},{key:"selectRootElement",value:function(e,i){return this.delegate.selectRootElement(e,i)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,i,o,a){this.delegate.setAttribute(e,i,o,a)}},{key:"removeAttribute",value:function(e,i,o){this.delegate.removeAttribute(e,i,o)}},{key:"addClass",value:function(e,i){this.delegate.addClass(e,i)}},{key:"removeClass",value:function(e,i){this.delegate.removeClass(e,i)}},{key:"setStyle",value:function(e,i,o,a){this.delegate.setStyle(e,i,o,a)}},{key:"removeStyle",value:function(e,i,o){this.delegate.removeStyle(e,i,o)}},{key:"setProperty",value:function(e,i,o){"@"==i.charAt(0)&&i==wl?this.disableAnimations(e,!!o):this.delegate.setProperty(e,i,o)}},{key:"setValue",value:function(e,i){this.delegate.setValue(e,i)}},{key:"listen",value:function(e,i,o){return this.delegate.listen(e,i,o)}},{key:"disableAnimations",value:function(e,i){this.engine.disableAnimations(e,i)}}]),n}(),Vy=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,o,a,s,l)).factory=i,u.namespaceId=o,u}return(0,B.Z)(e,[{key:"setProperty",value:function(o,a,s){"@"==a.charAt(0)?"."==a.charAt(1)&&a==wl?(s=void 0===s||!!s,this.disableAnimations(o,s)):this.engine.process(this.namespaceId,o,a.slice(1),s):this.delegate.setProperty(o,a,s)}},{key:"listen",value:function(o,a,s){var l=this;if("@"==a.charAt(0)){var u=function Yy(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o),d=a.slice(1),h="";if("@"!=d.charAt(0)){var g=function ag(n){var r=n.indexOf("."),e=n.substring(0,r),i=n.slice(r+1);return[e,i]}(d),C=(0,Nn.Z)(g,2);d=C[0],h=C[1]}return this.engine.listen(this.namespaceId,u,d,h,function(Z){var z=Z._data||-1;l.factory.scheduleListenerCallback(z,s,Z)})}return this.delegate.listen(o,a,s)}}]),e}(og);var Vc=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){return(0,H.Z)(this,e),r.call(this,i.body,o,a)}return(0,B.Z)(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(wt);Vc.\u0275fac=function(r){return new(r||Vc)(t.LFG(ge.K0),t.LFG(RE),t.LFG(B1),t.LFG(t.z2F))},Vc.\u0275prov=t.Yz7({token:Vc,factory:Vc.\u0275fac});var NY=[{provide:Rt._j,useClass:br},{provide:B1,useFactory:function YE(){return new d7}},{provide:wt,useClass:Vc},{provide:t.FYo,useFactory:function xue(n,r,e){return new $l(n,r,e)},deps:[ze,wt,t.R0b]}],b7=[{provide:RE,useFactory:function(){return new wn}},{provide:t.QbO,useValue:"BrowserAnimations"}].concat(NY),C7=[{provide:RE,useClass:ip},{provide:t.QbO,useValue:"NoopAnimations"}].concat(NY),H1=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"withConfig",value:function(e){return{ngModule:n,providers:e.disableAnimations?C7:b7}}}]),n}();H1.\u0275fac=function(r){return new(r||H1)},H1.\u0275mod=t.oAB({type:H1}),H1.\u0275inj=t.cJS({providers:b7,imports:[ri]});var KE=(0,B.Z)(function n(){(0,H.Z)(this,n)});KE.\u0275fac=function(r){return new(r||KE)},KE.\u0275mod=t.oAB({type:KE}),KE.\u0275inj=t.cJS({providers:C7,imports:[ri]});var Due=m(839),j1=m(6053),ys=m(1709),G1=m(8117),w7=m(2821),Aue=m(3906),BY=m(519);function k7(n,r){return n=function Oue(n,r){return void 0===n?void 0===r?n:r:n}(n,r),"function"==typeof n?function(){for(var i=arguments,o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=i[s];return!!n.apply(this,a)}:n?function(){return!0}:function(){return!1}}var T7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},FY=function(r){return null!=r&&"object"===(void 0===r?"undefined":T7(r))&&1===r.nodeType&&"object"===T7(r.style)&&"object"===T7(r.ownerDocument)};function UY(n,r){if(r=S7(r,!0),!FY(r))return-1;for(var e=0;e<n.length;e++)if(n[e]===r)return e;return-1}function M7(n,r){return-1!==UY(n,r)}function Iue(n,r){for(var e=0;e<r.length;e++)M7(n,r[e])||n.push(r[e]);return r}function Pue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return Iue(n,e=e.map(S7))}function Rue(n){for(var r=arguments,e=[],i=arguments.length-1;i-- >0;)e[i]=r[i+1];return e.map(S7).reduce(function(o,a){var s=UY(n,a);return-1!==s?o.concat(n.splice(s,1)):o},[])}function S7(n,r){if("string"==typeof n)try{return document.querySelector(n)}catch(e){throw e}if(!FY(n)&&!r)throw new TypeError(n+" is not a DOM element.");return n}function HY(n){if(n===window)return function Zue(){var n={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},n);var r={};return Object.defineProperties(r,n),r}();try{var r=n.getBoundingClientRect();return void 0===r.x&&(r.x=r.left,r.y=r.top),r}catch(e){throw new TypeError("Can't call getBoundingClientRect on "+n)}}var r,E7=void 0;"function"!=typeof Object.create?(r=function(){},E7=function(e,i){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");r.prototype=e||{};var o=new r;return r.prototype=null,void 0!==i&&Object.defineProperties(o,i),null===e&&(o.__proto__=null),o}):E7=Object.create;var Bue=E7,Ky=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function x7(n,r){r=r||{};for(var e=Bue(n),i=0;i<Ky.length;i++)void 0!==r[Ky[i]]&&(e[Ky[i]]=r[Ky[i]]);return e}function D7(n,r){console.log("data ",r),n.data=r||{},n.dispatched="mousemove"}var qE=["webkit","moz","ms","o"],JE=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=qE.length;n<r&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[qE[n]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var e=0;window.requestAnimationFrame=function(i){var o=(new Date).getTime(),a=Math.max(0,16-o-e),s=window.setTimeout(function(){return i(o+a)},a);return e=o+a,s}}return window.requestAnimationFrame.bind(window)}(),z1=function(){if("undefined"==typeof window)return function(){};for(var n=0,r=qE.length;n<r&&!window.cancelAnimationFrame;++n)window.cancelAnimationFrame=window[qE[n]+"CancelAnimationFrame"]||window[qE[n]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){window.clearTimeout(e)}),window.cancelAnimationFrame.bind(window)}();function Uue(n,r){void 0===r&&(r={});var e=this,i=4,o=!1;if("object"!=typeof r.margin){var a=r.margin||-1;this.margin={left:a,right:a,top:a,bottom:a}}else this.margin=r.margin;this.scrollWhenOutside=r.scrollWhenOutside||!1;var s={},l=function Lue(n,r){var e=k7((r=r||{}).allowUpdate,!0);return function(o){if(o=o||window.event,n.target=o.target||o.srcElement||o.originalTarget,n.element=this,n.type=o.type,e(o)){if(o.targetTouches)n.x=o.targetTouches[0].clientX,n.y=o.targetTouches[0].clientY,n.pageX=o.targetTouches[0].pageX,n.pageY=o.targetTouches[0].pageY,n.screenX=o.targetTouches[0].screenX,n.screenY=o.targetTouches[0].screenY;else{if(null===o.pageX&&null!==o.clientX){var a=o.target&&o.target.ownerDocument||document,s=a.documentElement,l=a.body;n.pageX=o.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),n.pageY=o.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}else n.pageX=o.pageX,n.pageY=o.pageY;n.x=o.clientX,n.y=o.clientY,n.screenX=o.screenX,n.screenY=o.screenY}n.clientX=n.x,n.clientY=n.y}}}(s),u=function Fue(n){var r={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null};function e(a){for(var s=0;s<Ky.length;s++)r[Ky[s]]=a[Ky[s]]}return void 0!==n&&n.addEventListener("mousemove",e),{destroy:function o(){n&&n.removeEventListener("mousemove",e,!1),r=null},dispatch:MouseEvent?function(s,l,u){var d=new MouseEvent("mousemove",x7(r,l));return D7(d,u),s.dispatchEvent(d)}:"function"==typeof document.createEvent?function(s,l,u){var d=x7(r,l),h=document.createEvent("MouseEvents");return h.initMouseEvent("mousemove",!0,!0,window,0,d.screenX,d.screenY,d.clientX,d.clientY,d.ctrlKey,d.altKey,d.shiftKey,d.metaKey,d.button,d.relatedTarget),D7(h,u),s.dispatchEvent(h)}:"function"==typeof document.createEventObject?function(s,l,u){var d=document.createEventObject(),h=x7(r,l);for(var g in h)d[g]=h[g];return D7(d,u),s.dispatchEvent(d)}:void 0}}(),d=!1;window.addEventListener("mousemove",l,!1),window.addEventListener("touchmove",l,!1),isNaN(r.maxSpeed)||(i=r.maxSpeed),"object"!=typeof i&&(i={left:i,right:i,top:i,bottom:i}),this.autoScroll=k7(r.autoScroll),this.syncMove=k7(r.syncMove,!1),this.destroy=function(Xe){window.removeEventListener("mousemove",l,!1),window.removeEventListener("touchmove",l,!1),window.removeEventListener("mousedown",q,!1),window.removeEventListener("touchstart",q,!1),window.removeEventListener("mouseup",re,!1),window.removeEventListener("touchend",re,!1),window.removeEventListener("pointerup",re,!1),window.removeEventListener("mouseleave",Se,!1),window.removeEventListener("mousemove",Ve,!1),window.removeEventListener("touchmove",Ve,!1),window.removeEventListener("scroll",z,!0),n=[],Xe&&ae()},this.add=function(){for(var Xe=[],Pe=arguments.length;Pe--;)Xe[Pe]=arguments[Pe];return Pue.apply(void 0,[n].concat(Xe)),this},this.remove=function(){for(var Xe=[],Pe=arguments.length;Pe--;)Xe[Pe]=arguments[Pe];return Rue.apply(void 0,[n].concat(Xe))};var g,Xe,h=null;"[object Array]"!==Object.prototype.toString.call(n)&&(n=[n]),Xe=n,n=[],Xe.forEach(function(Pe){Pe===window?h=window:e.add(Pe)}),Object.defineProperties(this,{down:{get:function(){return d}},maxSpeed:{get:function(){return i}},point:{get:function(){return s}},scrolling:{get:function(){return o}}});var Z,C=null;function z(Xe){for(var Pe=0;Pe<n.length;Pe++)if(n[Pe]===Xe.target){o=!0;break}o&&JE(function(){return o=!1})}function q(){d=!0}function re(){d=!1,ae()}function ae(){z1(Z),z1(g)}function Se(){d=!1}function Ee(){for(var Xe=null,Pe=0;Pe<n.length;Pe++)jY(s,n[Pe])&&(Xe=n[Pe]);return Xe}function Ve(Xe){if(e.autoScroll()&&!Xe.dispatched){var Pe=Xe.target,ft=document.body;C&&!jY(s,C)&&(e.scrollWhenOutside||(C=null)),Pe&&Pe.parentNode===ft?Pe=Ee():(Pe=function Ce(Xe){if(!Xe)return null;if(C===Xe||M7(n,Xe))return Xe;for(;Xe=Xe.parentNode;)if(M7(n,Xe))return Xe;return null}(Pe),Pe||(Pe=Ee())),Pe&&Pe!==C&&(C=Pe),h&&(z1(g),g=JE(ut)),C&&(z1(Z),Z=JE(Ae))}}function ut(){ot(h),z1(g),g=JE(ut)}function Ae(){!C||(ot(C),z1(Z),Z=JE(Ae))}function ot(Xe){var ft,Nt,Pe=HY(Xe);ft=s.x<Pe.left+e.margin.left?Math.floor(Math.max(-1,(s.x-Pe.left)/e.margin.left-1)*e.maxSpeed.left):s.x>Pe.right-e.margin.right?Math.ceil(Math.min(1,(s.x-Pe.right)/e.margin.right+1)*e.maxSpeed.right):0,Nt=s.y<Pe.top+e.margin.top?Math.floor(Math.max(-1,(s.y-Pe.top)/e.margin.top-1)*e.maxSpeed.top):s.y>Pe.bottom-e.margin.bottom?Math.ceil(Math.min(1,(s.y-Pe.bottom)/e.margin.bottom+1)*e.maxSpeed.bottom):0,e.syncMove()&&u.dispatch(Xe,{pageX:s.pageX+ft,pageY:s.pageY+Nt,clientX:s.x+ft,clientY:s.y+Nt}),setTimeout(function(){Nt&&function ht(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset,Xe.pageYOffset+Pe):Xe.scrollTop+=Pe}(Xe,Nt),ft&&function bt(Xe,Pe){Xe===window?window.scrollTo(Xe.pageXOffset+Pe,Xe.pageYOffset):Xe.scrollLeft+=Pe}(Xe,ft)})}window.addEventListener("mousedown",q,!1),window.addEventListener("touchstart",q,!1),window.addEventListener("mouseup",re,!1),window.addEventListener("touchend",re,!1),window.addEventListener("pointerup",re,!1),window.addEventListener("mousemove",Ve,!1),window.addEventListener("touchmove",Ve,!1),window.addEventListener("mouseleave",Se,!1),window.addEventListener("scroll",z,!0)}function jY(n,r,e){return e?n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right:function Nue(n,r){var e=HY(r);return n.y>e.top&&n.y<e.bottom&&n.x>e.left&&n.x<e.right}(n,r)}var jue=function Hue(n,r){return new Uue(n,r)};function A7(n,r,e){e&&e.split(" ").forEach(function(i){return n.addClass(r.nativeElement,i)})}function vL(n,r,e){e&&e.split(" ").forEach(function(i){return n.removeClass(r.nativeElement,i)})}var qy=(0,B.Z)(function n(){(0,H.Z)(this,n),this.currentDrag=new In.xQ});qy.\u0275fac=function(r){return new(r||qy)},qy.\u0275prov=t.Yz7({token:qy,factory:qy.\u0275fac,providedIn:"root"});var W1=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.elementRef=r});W1.\u0275fac=function(r){return new(r||W1)(t.Y36(t.SBq))},W1.\u0275dir=t.lG2({type:W1,selectors:[["","mwlDraggableScrollContainer",""]]});var QE=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.element=r,this.renderer=e,this.draggableHelper=i,this.zone=o,this.vcr=a,this.scrollContainer=s,this.document=l,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new t.vpe,this.dragStart=new t.vpe,this.ghostElementCreated=new t.vpe,this.dragging=new t.vpe,this.dragEnd=new t.vpe,this.pointerDown$=new In.xQ,this.pointerMove$=new In.xQ,this.pointerUp$=new In.xQ,this.eventListenerSubscriptions={},this.destroy$=new In.xQ,this.timeLongPress={timerBegin:0,timerEnd:0}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkEventListeners();var i=this.pointerDown$.pipe((0,ti.h)(function(){return e.canDrag()}),(0,ys.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 $i.y(function(z){var q=e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window";return e.renderer.listen(q,"scroll",function(re){return z.next(re)})}).pipe((0,eo.O)(s),(0,$n.U)(function(){return e.getScrollPosition()})),u=new In.xQ,d=new Due.t;e.dragPointerDown.observers.length>0&&e.zone.run(function(){e.dragPointerDown.next({x:0,y:0})});var h=(0,ji.T)(e.pointerUp$,e.pointerDown$,d,e.destroy$).pipe((0,G1.B)()),g=(0,j1.aj)([e.pointerMove$,l]).pipe((0,$n.U)(function(z){var q=(0,Nn.Z)(z,2),re=q[0],ae=q[1];return{currentDrag$:u,transformX:re.clientX-o.clientX,transformY:re.clientY-o.clientY,clientX:re.clientX,clientY:re.clientY,scrollLeft:ae.left,scrollTop:ae.top,target:re.event.target}}),(0,$n.U)(function(z){return e.dragSnapGrid.x&&(z.transformX=Math.round(z.transformX/e.dragSnapGrid.x)*e.dragSnapGrid.x),e.dragSnapGrid.y&&(z.transformY=Math.round(z.transformY/e.dragSnapGrid.y)*e.dragSnapGrid.y),z}),(0,$n.U)(function(z){return e.dragAxis.x||(z.transformX=0),e.dragAxis.y||(z.transformY=0),z}),(0,$n.U)(function(z){var q=z.scrollLeft-s.left,re=z.scrollTop-s.top;return Object.assign(Object.assign({},z),{x:z.transformX+q,y:z.transformY+re})}),(0,ti.h)(function(z){var q=z.x,re=z.y,ae=z.transformX,Se=z.transformY;return!e.validateDrag||e.validateDrag({x:q,y:re,transform:{x:ae,y:Se}})}),(0,Nr.R)(h),(0,G1.B)()),C=g.pipe((0,Ei.q)(1),(0,G1.B)()),Z=g.pipe((0,w7.h)(1),(0,G1.B)());return C.subscribe(function(z){var q=z.clientX,re=z.clientY,ae=z.x,Se=z.y;if(e.dragStart.observers.length>0&&e.zone.run(function(){e.dragStart.next({cancelDrag$:d})}),e.scroller=jue([e.scrollContainer?e.scrollContainer.elementRef.nativeElement:e.document.defaultView],Object.assign(Object.assign({},e.autoScroll),{autoScroll:function(){return!0}})),A7(e.renderer,e.element,e.dragActiveClass),e.ghostDragEnabled){var Ce=e.element.nativeElement.getBoundingClientRect(),Ee=e.element.nativeElement.cloneNode(!0);if(e.showOriginalElementWhileDragging||e.renderer.setStyle(e.element.nativeElement,"visibility","hidden"),e.ghostElementAppendTo?e.ghostElementAppendTo.appendChild(Ee):e.element.nativeElement.parentNode.insertBefore(Ee,e.element.nativeElement.nextSibling),e.ghostElement=Ee,e.document.body.style.cursor=e.dragCursor,e.setElementStyles(Ee,{position:"fixed",top:"".concat(Ce.top,"px"),left:"".concat(Ce.left,"px"),width:"".concat(Ce.width,"px"),height:"".concat(Ce.height,"px"),cursor:e.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),e.ghostElementTemplate){var Ve=e.vcr.createEmbeddedView(e.ghostElementTemplate);Ee.innerHTML="",Ve.rootNodes.filter(function(ut){return ut instanceof Node}).forEach(function(ut){Ee.appendChild(ut)}),Z.subscribe(function(){e.vcr.remove(e.vcr.indexOf(Ve))})}e.ghostElementCreated.observers.length>0&&e.zone.run(function(){e.ghostElementCreated.emit({clientX:q-ae,clientY:re-Se,element:Ee})}),Z.subscribe(function(){Ee.parentElement.removeChild(Ee),e.ghostElement=null,e.renderer.setStyle(e.element.nativeElement,"visibility","")})}e.draggableHelper.currentDrag.next(u)}),Z.pipe((0,ys.zg)(function(z){var q=d.pipe((0,Aue.Q)(),(0,Ei.q)(1),(0,$n.U)(function(re){return Object.assign(Object.assign({},z),{dragCancelled:re>0})}));return d.complete(),q})).subscribe(function(z){var q=z.x,re=z.y,ae=z.dragCancelled;e.scroller.destroy(),e.dragEnd.observers.length>0&&e.zone.run(function(){e.dragEnd.next({x:q,y:re,dragCancelled:ae})}),vL(e.renderer,e.element,e.dragActiveClass),u.complete()}),(0,ji.T)(h,Z).pipe((0,Ei.q)(1)).subscribe(function(){requestAnimationFrame(function(){e.document.head.removeChild(a)})}),g}),(0,G1.B)());(0,ji.T)(i.pipe((0,Ei.q)(1),(0,$n.U)(function(o){return[,o]})),i.pipe((0,BY.G)())).pipe((0,ti.h)(function(o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return!s||(s.x!==l.x||s.y!==l.y)}),(0,$n.U)(function(o){var a=(0,Nn.Z)(o,2);a[0];return a[1]})).subscribe(function(o){var a=o.x,s=o.y,l=o.currentDrag$,u=o.clientX,d=o.clientY,h=o.transformX,g=o.transformY,C=o.target;e.dragging.observers.length>0&&e.zone.run(function(){e.dragging.next({x:a,y:s})}),requestAnimationFrame(function(){if(e.ghostElement){var Z="translate3d(".concat(h,"px, ").concat(g,"px, 0px)");e.setElementStyles(e.ghostElement,{transform:Z,"-webkit-transform":Z,"-ms-transform":Z,"-moz-transform":Z,"-o-transform":Z})}}),l.next({clientX:u,clientY:d,dropData:e.dropData,target:C})})}},{key:"ngOnChanges",value:function(e){e.dragAxis&&this.checkEventListeners()}},{key:"ngOnDestroy",value:function(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}},{key:"checkEventListeners",value:function(){var e=this,i=this.canDrag(),o=Object.keys(this.eventListenerSubscriptions).length>0;i&&!o?this.zone.runOutsideAngular(function(){e.eventListenerSubscriptions.mousedown=e.renderer.listen(e.element.nativeElement,"mousedown",function(a){e.onMouseDown(a)}),e.eventListenerSubscriptions.mouseup=e.renderer.listen("document","mouseup",function(a){e.onMouseUp(a)}),e.eventListenerSubscriptions.touchstart=e.renderer.listen(e.element.nativeElement,"touchstart",function(a){e.onTouchStart(a)}),e.eventListenerSubscriptions.touchend=e.renderer.listen("document","touchend",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.touchcancel=e.renderer.listen("document","touchcancel",function(a){e.onTouchEnd(a)}),e.eventListenerSubscriptions.mouseenter=e.renderer.listen(e.element.nativeElement,"mouseenter",function(){e.onMouseEnter()}),e.eventListenerSubscriptions.mouseleave=e.renderer.listen(e.element.nativeElement,"mouseleave",function(){e.onMouseLeave()})}):!i&&o&&this.unsubscribeEventListeners()}},{key:"onMouseDown",value:function(e){var i=this;0===e.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",function(o){i.pointerMove$.next({event:o,clientX:o.clientX,clientY:o.clientY})})),this.pointerDown$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onMouseUp",value:function(e){0===e.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:e,clientX:e.clientX,clientY:e.clientY}))}},{key:"onTouchStart",value:function(e){var o,a,s,i=this;if(this.touchStartLongPress&&(this.timeLongPress.timerBegin=Date.now(),a=!1,s=this.hasScrollbar(),o=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){var l=(0,jd.R)(this.document,"contextmenu").subscribe(function(d){d.preventDefault()}),u=(0,jd.R)(this.document,"touchmove",{passive:!1}).subscribe(function(d){i.touchStartLongPress&&!a&&s&&(a=i.shouldBeginDrag(e,d,o)),(!i.touchStartLongPress||!s||a)&&(d.preventDefault(),i.pointerMove$.next({event:d,clientX:d.targetTouches[0].clientX,clientY:d.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=function(){l.unsubscribe(),u.unsubscribe()}}this.pointerDown$.next({event:e,clientX:e.touches[0].clientX,clientY:e.touches[0].clientY})}},{key:"onTouchEnd",value:function(e){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,this.touchStartLongPress&&this.enableScroll()),this.pointerUp$.next({event:e,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY})}},{key:"onMouseEnter",value:function(){this.setCursor(this.dragCursor)}},{key:"onMouseLeave",value:function(){this.setCursor("")}},{key:"canDrag",value:function(){return this.dragAxis.x||this.dragAxis.y}},{key:"setCursor",value:function(e){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",e)}},{key:"unsubscribeEventListeners",value:function(){var e=this;Object.keys(this.eventListenerSubscriptions).forEach(function(i){e.eventListenerSubscriptions[i](),delete e.eventListenerSubscriptions[i]})}},{key:"setElementStyles",value:function(e,i){var o=this;Object.keys(i).forEach(function(a){o.renderer.setStyle(e,a,i[a])})}},{key:"getScrollElement",value:function(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}},{key:"getScrollPosition",value:function(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}},{key:"shouldBeginDrag",value:function(e,i,o){var a=this.getScrollPosition(),s_top=Math.abs(a.top-o.top),s_left=Math.abs(a.left-o.left),d=Math.abs(i.targetTouches[0].clientX-e.touches[0].clientX)-s_left+(Math.abs(i.targetTouches[0].clientY-e.touches[0].clientY)-s_top),h=this.touchStartLongPress;return(d>h.delta||s_top>0||s_left>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=h.delay&&(this.disableScroll(),!0)}},{key:"enableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}},{key:"disableScroll",value:function(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}},{key:"hasScrollbar",value:function(){var e=this.getScrollElement(),i=e.scrollWidth>e.clientWidth,o=e.scrollHeight>e.clientHeight;return i||o}}]),n}();function GY(n,r,e){return n>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom}QE.\u0275fac=function(r){return new(r||QE)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(qy),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(W1,8),t.Y36(ge.K0))},QE.\u0275dir=t.lG2({type:QE,selectors:[["","mwlDraggable",""]],inputs:{dropData:"dropData",dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",validateDrag:"validateDrag",dragCursor:"dragCursor",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress",autoScroll:"autoScroll"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[t.TTD]});var yL=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.element=r,this.draggableHelper=e,this.zone=i,this.renderer=o,this.scrollContainer=a,this.dragEnter=new t.vpe,this.dragLeave=new t.vpe,this.dragOver=new t.vpe,this.drop=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(function(i){A7(e.renderer,e.element,e.dragActiveClass);var s,d,o={updateCache:!0},a=e.renderer.listen(e.scrollContainer?e.scrollContainer.elementRef.nativeElement:"window","scroll",function(){o.updateCache=!0}),l=i.pipe((0,$n.U)(function(h){var g=h.clientX,C=h.clientY,Z=h.dropData,z=h.target;s={clientX:g,clientY:C,dropData:Z,target:z},o.updateCache&&(o.rect=e.element.nativeElement.getBoundingClientRect(),e.scrollContainer&&(o.scrollContainerRect=e.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),o.updateCache=!1);var q=GY(g,C,o.rect),re=!e.validateDrop||e.validateDrop({clientX:g,clientY:C,target:z,dropData:Z});return o.scrollContainerRect?q&&re&&GY(g,C,o.scrollContainerRect):q&&re})),u=l.pipe((0,Ly.x)());u.pipe((0,ti.h)(function(h){return h})).subscribe(function(){d=!0,A7(e.renderer,e.element,e.dragOverClass),e.dragEnter.observers.length>0&&e.zone.run(function(){e.dragEnter.next(s)})}),l.pipe((0,ti.h)(function(h){return h})).subscribe(function(){e.dragOver.observers.length>0&&e.zone.run(function(){e.dragOver.next(s)})}),u.pipe((0,BY.G)(),(0,ti.h)(function(h){var g=(0,Nn.Z)(h,2),C=g[0],Z=g[1];return C&&!Z})).subscribe(function(){d=!1,vL(e.renderer,e.element,e.dragOverClass),e.dragLeave.observers.length>0&&e.zone.run(function(){e.dragLeave.next(s)})}),i.subscribe({complete:function(){a(),vL(e.renderer,e.element,e.dragActiveClass),d&&(vL(e.renderer,e.element,e.dragOverClass),e.drop.observers.length>0&&e.zone.run(function(){e.drop.next(s)}))}})})}},{key:"ngOnDestroy",value:function(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}]),n}();yL.\u0275fac=function(r){return new(r||yL)(t.Y36(t.SBq),t.Y36(qy),t.Y36(t.R0b),t.Y36(t.Qsj),t.Y36(W1,8))},yL.\u0275dir=t.lG2({type:yL,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}});var V1=(0,B.Z)(function n(){(0,H.Z)(this,n)});V1.\u0275fac=function(r){return new(r||V1)},V1.\u0275mod=t.oAB({type:V1}),V1.\u0275inj=t.cJS({});var zY=m(2072);function Jy(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function O7(n){return 1===n.length&&(n=function Gue(n){return function(r,e){return Jy(n(r),e)}}(n)),{left:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;n(e[s],i)<0?o=s+1:a=s}return o},right:function(e,i,o,a){for(null==o&&(o=0),null==a&&(a=e.length);o<a;){var s=o+a>>>1;n(e[s],i)>0?a=s:o=s+1}return o}}}var WY=O7(Jy),VY=WY.right,zue=WY.left,Y1=VY;function Wue(n,r){null==r&&(r=YY);for(var e=0,i=n.length-1,o=n[0],a=new Array(i<0?0:i);e<i;)a[e]=r(o,o=n[++e]);return a}function YY(n,r){return[n,r]}function Vue(n,r,e){var s,l,u,d,i=n.length,o=r.length,a=new Array(i*o);for(null==e&&(e=YY),s=u=0;s<i;++s)for(d=n[s],l=0;l<o;++l,++u)a[u]=e(d,r[l]);return a}function Yue(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function sg(n){return null===n?NaN:+n}function KY(n,r){var s,l,e=n.length,i=0,o=-1,a=0,u=0;if(null==r)for(;++o<e;)isNaN(s=sg(n[o]))||(u+=(l=s-a)*(s-(a+=l/++i)));else for(;++o<e;)isNaN(s=sg(r(n[o],o,n)))||(u+=(l=s-a)*(s-(a+=l/++i)));if(i>1)return u/(i-1)}function qY(n,r){var e=KY(n,r);return e&&Math.sqrt(e)}function I7(n,r){var o,a,s,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=s=o;++i<e;)null!=(o=n[i])&&(a>o&&(a=o),s<o&&(s=o))}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=s=o;++i<e;)null!=(o=r(n[i],i,n))&&(a>o&&(a=o),s<o&&(s=o));return[a,s]}var JY=Array.prototype,Kue=JY.slice,que=JY.map;function bL(n){return function(){return n}}function Jue(n){return n}function hc(n,r,e){n=+n,r=+r,e=(o=arguments.length)<2?(r=n,n=0,1):o<3?1:+e;for(var i=-1,o=0|Math.max(0,Math.ceil((r-n)/e)),a=new Array(o);++i<o;)a[i]=n+i*e;return a}var P7=Math.sqrt(50),R7=Math.sqrt(10),L7=Math.sqrt(2);function Z7(n,r,e){var i,a,s,l,o=-1;if(e=+e,(n=+n)===(r=+r)&&e>0)return[n];if((i=r<n)&&(a=n,n=r,r=a),0===(l=XE(n,r,e))||!isFinite(l))return[];if(l>0)for(n=Math.ceil(n/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-n+1));++o<a;)s[o]=(n+o)*l;else for(n=Math.floor(n*l),r=Math.ceil(r*l),s=new Array(a=Math.ceil(n-r+1));++o<a;)s[o]=(n-o)/l;return i&&s.reverse(),s}function XE(n,r,e){var i=(r-n)/Math.max(0,e),o=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,o);return o>=0?(a>=P7?10:a>=R7?5:a>=L7?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=P7?10:a>=R7?5:a>=L7?2:1)}function Qy(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/o;return a>=P7?o*=10:a>=R7?o*=5:a>=L7&&(o*=2),r<n?-o:o}function N7(n){return Math.ceil(Math.log(n.length)/Math.LN2)+1}function Que(){var n=Jue,r=I7,e=N7;function i(o){var a,l,s=o.length,u=new Array(s);for(a=0;a<s;++a)u[a]=n(o[a],a,o);var d=r(u),h=d[0],g=d[1],C=e(u,h,g);Array.isArray(C)||(C=Qy(h,g,C),C=hc(Math.ceil(h/C)*C,g,C));for(var Z=C.length;C[0]<=h;)C.shift(),--Z;for(;C[Z-1]>g;)C.pop(),--Z;var q,z=new Array(Z+1);for(a=0;a<=Z;++a)(q=z[a]=[]).x0=a>0?C[a-1]:h,q.x1=a<Z?C[a]:g;for(a=0;a<s;++a)h<=(l=u[a])&&l<=g&&z[Y1(C,l,0,Z)].push(o[a]);return z}return i.value=function(o){return arguments.length?(n="function"==typeof o?o:bL(o),i):n},i.domain=function(o){return arguments.length?(r="function"==typeof o?o:bL([o[0],o[1]]),i):r},i.thresholds=function(o){return arguments.length?(e="function"==typeof o?o:Array.isArray(o)?bL(Kue.call(o)):bL(o),i):e},i}function $E(n,r,e){if(null==e&&(e=sg),i=n.length){if((r=+r)<=0||i<2)return+e(n[0],0,n);if(r>=1)return+e(n[i-1],i-1,n);var i,o=(i-1)*r,a=Math.floor(o),s=+e(n[a],a,n);return s+(+e(n[a+1],a+1,n)-s)*(o-a)}}function Xue(n,r,e){return n=que.call(n,sg).sort(Jy),Math.ceil((e-r)/(2*($E(n,.75)-$E(n,.25))*Math.pow(n.length,-1/3)))}function $ue(n,r,e){return Math.ceil((e-r)/(3.5*qY(n)*Math.pow(n.length,-1/3)))}function QY(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&o>a&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&o>a&&(a=o);return a}function ece(n,r){var a,e=n.length,i=e,o=-1,s=0;if(null==r)for(;++o<e;)isNaN(a=sg(n[o]))?--i:s+=a;else for(;++o<e;)isNaN(a=sg(r(n[o],o,n)))?--i:s+=a;if(i)return s/i}function tce(n,r){var o,e=n.length,i=-1,a=[];if(null==r)for(;++i<e;)isNaN(o=sg(n[i]))||a.push(o);else for(;++i<e;)isNaN(o=sg(r(n[i],i,n)))||a.push(o);return $E(a.sort(Jy),.5)}function B7(n){for(var e,a,s,r=n.length,i=-1,o=0;++i<r;)o+=n[i].length;for(a=new Array(o);--r>=0;)for(e=(s=n[r]).length;--e>=0;)a[--o]=s[e];return a}function XY(n,r){var o,a,e=n.length,i=-1;if(null==r){for(;++i<e;)if(null!=(o=n[i])&&o>=o)for(a=o;++i<e;)null!=(o=n[i])&&a>o&&(a=o)}else for(;++i<e;)if(null!=(o=r(n[i],i,n))&&o>=o)for(a=o;++i<e;)null!=(o=r(n[i],i,n))&&a>o&&(a=o);return a}function nce(n,r){for(var e=r.length,i=new Array(e);e--;)i[e]=n[r[e]];return i}function rce(n,r){if(e=n.length){var e,a,i=0,o=0,s=n[o];for(null==r&&(r=Jy);++i<e;)(r(a=n[i],s)<0||0!==r(s,s))&&(s=a,o=i);if(0===r(s,s))return o}}function ice(n,r,e){for(var o,a,i=(null==e?n.length:e)-(r=null==r?0:+r);i;)a=Math.random()*i--|0,o=n[i+r],n[i+r]=n[a+r],n[a+r]=o;return n}function oce(n,r){var o,e=n.length,i=-1,a=0;if(null==r)for(;++i<e;)(o=+n[i])&&(a+=o);else for(;++i<e;)(o=+r(n[i],i,n))&&(a+=o);return a}function $Y(n){if(!(a=n.length))return[];for(var r=-1,e=XY(n,ace),i=new Array(e);++r<e;)for(var a,o=-1,s=i[r]=new Array(a);++o<a;)s[o]=n[o][r];return i}function ace(n){return n.length}function sce(){return $Y(arguments)}var F7=Array.prototype.slice;function lce(n){return n}function uce(n){return"translate("+(n+.5)+",0)"}function cce(n){return"translate(0,"+(n+.5)+")"}function dce(n){return function(r){return+n(r)}}function fce(n){var r=Math.max(0,n.bandwidth()-1)/2;return n.round()&&(r=Math.round(r)),function(e){return+n(e)+r}}function pce(){return!this.__axis}function kL(n,r){var e=[],i=null,o=null,a=6,s=6,l=3,u=1===n||4===n?-1:1,d=4===n||2===n?"x":"y",h=1===n||3===n?uce:cce;function g(C){var Z=null==i?r.ticks?r.ticks.apply(r,e):r.domain():i,z=null==o?r.tickFormat?r.tickFormat.apply(r,e):lce:o,q=Math.max(a,0)+l,re=r.range(),ae=+re[0]+.5,Se=+re[re.length-1]+.5,Ce=(r.bandwidth?fce:dce)(r.copy()),Ee=C.selection?C.selection():C,Ve=Ee.selectAll(".domain").data([null]),ut=Ee.selectAll(".tick").data(Z,r).order(),Ae=ut.exit(),ot=ut.enter().append("g").attr("class","tick"),ht=ut.select("line"),bt=ut.select("text");Ve=Ve.merge(Ve.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ut=ut.merge(ot),ht=ht.merge(ot.append("line").attr("stroke","currentColor").attr(d+"2",u*a)),bt=bt.merge(ot.append("text").attr("fill","currentColor").attr(d,u*q).attr("dy",1===n?"0em":3===n?"0.71em":"0.32em")),C!==Ee&&(Ve=Ve.transition(C),ut=ut.transition(C),ht=ht.transition(C),bt=bt.transition(C),Ae=Ae.transition(C).attr("opacity",1e-6).attr("transform",function(Xe){return isFinite(Xe=Ce(Xe))?h(Xe):this.getAttribute("transform")}),ot.attr("opacity",1e-6).attr("transform",function(Xe){var Pe=this.parentNode.__axis;return h(Pe&&isFinite(Pe=Pe(Xe))?Pe:Ce(Xe))})),Ae.remove(),Ve.attr("d",4===n||2==n?s?"M"+u*s+","+ae+"H0.5V"+Se+"H"+u*s:"M0.5,"+ae+"V"+Se:s?"M"+ae+","+u*s+"V0.5H"+Se+"V"+u*s:"M"+ae+",0.5H"+Se),ut.attr("opacity",1).attr("transform",function(Xe){return h(Ce(Xe))}),ht.attr(d+"2",u*a),bt.attr(d,u*q).text(z),Ee.filter(pce).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===n?"start":4===n?"end":"middle"),Ee.each(function(){this.__axis=Ce})}return g.scale=function(C){return arguments.length?(r=C,g):r},g.ticks=function(){return e=F7.call(arguments),g},g.tickArguments=function(C){return arguments.length?(e=null==C?[]:F7.call(C),g):e.slice()},g.tickValues=function(C){return arguments.length?(i=null==C?null:F7.call(C),g):i&&i.slice()},g.tickFormat=function(C){return arguments.length?(o=C,g):o},g.tickSize=function(C){return arguments.length?(a=s=+C,g):a},g.tickSizeInner=function(C){return arguments.length?(a=+C,g):a},g.tickSizeOuter=function(C){return arguments.length?(s=+C,g):s},g.tickPadding=function(C){return arguments.length?(l=+C,g):l},g}function hce(n){return kL(1,n)}function mce(n){return kL(2,n)}function _ce(n){return kL(3,n)}function gce(n){return kL(4,n)}var vce={value:function(){}};function tK(){for(var i,n=0,r=arguments.length,e={};n<r;++n){if(!(i=arguments[n]+"")||i in e||/[\s.]/.test(i))throw new Error("illegal type: "+i);e[i]=[]}return new TL(e)}function TL(n){this._=n}function yce(n,r){return n.trim().split(/^|\s+/).map(function(e){var i="",o=e.indexOf(".");if(o>=0&&(i=e.slice(o+1),e=e.slice(0,o)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:i}})}function bce(n,r){for(var o,e=0,i=n.length;e<i;++e)if((o=n[e]).name===r)return o.value}function nK(n,r,e){for(var i=0,o=n.length;i<o;++i)if(n[i].name===r){n[i]=vce,n=n.slice(0,i).concat(n.slice(i+1));break}return null!=e&&n.push({name:r,value:e}),n}TL.prototype=tK.prototype={constructor:TL,on:function(r,e){var a,i=this._,o=yce(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]=nK(i[a],r.name,e);else if(null==e)for(a in i)i[a]=nK(i[a],r.name,null);return this}for(;++s<l;)if((a=(r=o[s]).type)&&(a=bce(i[a],r.name)))return a},copy:function(){var r={},e=this._;for(var i in e)r[i]=e[i].slice();return new TL(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 Xy=tK;function Cce(){}function H7(n){return null==n?Cce:function(){return this.querySelector(n)}}function kce(){return[]}function rK(n){return null==n?kce:function(){return this.querySelectorAll(n)}}function iK(n){return function(){return this.matches(n)}}function oK(n){return new Array(n.length)}function ML(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}ML.prototype={constructor:ML,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 xce(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new ML(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Dce(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new ML(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Zce(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var j7="http://www.w3.org/1999/xhtml",sK={svg:"http://www.w3.org/2000/svg",xhtml:j7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function SL(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),sK.hasOwnProperty(r)?{space:sK[r],local:n}:n}function Gce(n){return function(){this.removeAttribute(n)}}function zce(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wce(n,r){return function(){this.setAttribute(n,r)}}function Vce(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kce(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function lK(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jce(n){return function(){this.style.removeProperty(n)}}function Qce(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xce(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function K1(n,r){return n.style.getPropertyValue(r)||lK(n).getComputedStyle(n,null).getPropertyValue(r)}function ede(n){return function(){delete this[n]}}function tde(n,r){return function(){this[n]=r}}function nde(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function uK(n){return n.trim().split(/^|\s+/)}function G7(n){return n.classList||new cK(n)}function cK(n){this._node=n,this._names=uK(n.getAttribute("class")||"")}function dK(n,r){for(var e=G7(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function fK(n,r){for(var e=G7(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function ide(n){return function(){dK(this,n)}}function ode(n){return function(){fK(this,n)}}function ade(n,r){return function(){(r.apply(this,arguments)?dK:fK)(this,n)}}function lde(){this.textContent=""}function ude(n){return function(){this.textContent=n}}function cde(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function fde(){this.innerHTML=""}function pde(n){return function(){this.innerHTML=n}}function hde(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function _de(){this.nextSibling&&this.parentNode.appendChild(this)}function vde(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function bde(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===j7&&r.documentElement.namespaceURI===j7?r.createElement(n):r.createElementNS(e,n)}}function Cde(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function pK(n){var r=SL(n);return(r.local?Cde:bde)(r)}function kde(){return null}function Mde(){var n=this.parentNode;n&&n.removeChild(this)}function Ede(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function xde(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}cK.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 hK={},Zn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(hK={mouseenter:"mouseover",mouseleave:"mouseout"}));function Ide(n,r,e){return n=mK(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function mK(n,r,e){return function(i){var o=Zn;Zn=i;try{n.call(this,this.__data__,r,e)}finally{Zn=o}}}function Pde(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Rde(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function Lde(n,r,e){var i=hK.hasOwnProperty(n.type)?Ide:mK;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function EL(n,r,e,i){var o=Zn;n.sourceEvent=Zn,Zn=n;try{return r.apply(e,i)}finally{Zn=o}}function _K(n,r,e){var i=lK(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function Nde(n,r){return function(){return _K(this,n,r)}}function Bde(n,r){return function(){return _K(this,n,r.apply(this,arguments))}}var gK=[null];function mc(n,r){this._groups=n,this._parents=r}function vK(){return new mc([[document.documentElement]],gK)}mc.prototype=vK.prototype={constructor:mc,select:function wce(n){"function"!=typeof n&&(n=H7(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new mc(i,this._parents)},selectAll:function Tce(n){"function"!=typeof n&&(n=rK(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new mc(i,o)},filter:function Mce(n){"function"!=typeof n&&(n=iK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new mc(i,this._parents)},data:function Ace(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(ut){Z[++d]=ut}),Z;var e=r?Dce:xce,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Ece(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var Ee,Ve,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);Ee._next=Ve||null}}return(s=new mc(s,i))._enter=l,s._exit=u,s},enter:function Sce(){return new mc(this._enter||this._groups.map(oK),this._parents)},exit:function Oce(){return new mc(this._exit||this._groups.map(oK),this._parents)},join:function Ice(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function Pce(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new mc(s,this._parents)},order:function Rce(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Lce(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zce);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new mc(o,this._parents).order()},call:function Nce(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Bce(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Fce(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Uce(){var n=0;return this.each(function(){++n}),n},empty:function Hce(){return!this.node()},each:function jce(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function qce(n,r){var e=SL(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?zce:Gce:"function"==typeof r?e.local?Kce:Yce:e.local?Vce:Wce)(e,r))},style:function $ce(n,r,e){return arguments.length>1?this.each((null==r?Jce:"function"==typeof r?Xce:Qce)(n,r,null==e?"":e)):K1(this.node(),n)},property:function rde(n,r){return arguments.length>1?this.each((null==r?ede:"function"==typeof r?nde:tde)(n,r)):this.node()[n]},classed:function sde(n,r){var e=uK(n+"");if(arguments.length<2){for(var i=G7(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?ade:r?ide:ode)(e,r))},text:function dde(n){return arguments.length?this.each(null==n?lde:("function"==typeof n?cde:ude)(n)):this.node().textContent},html:function mde(n){return arguments.length?this.each(null==n?fde:("function"==typeof n?hde:pde)(n)):this.node().innerHTML},raise:function gde(){return this.each(_de)},lower:function yde(){return this.each(vde)},append:function wde(n){var r="function"==typeof n?n:pK(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function Tde(n,r){var e="function"==typeof n?n:pK(n),i=null==r?kde:"function"==typeof r?r:H7(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function Sde(){return this.each(Mde)},clone:function Dde(n){return this.select(n?xde:Ede)},datum:function Ade(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function Zde(n,r,e){var o,s,i=Pde(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?Lde:Rde,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function Fde(n,r){return this.each(("function"==typeof r?Bde:Nde)(n,r))}};var lg=vK;function vi(n){return"string"==typeof n?new mc([[document.querySelector(n)]],[document.documentElement]):new mc([[n]],gK)}function z7(){Zn.stopImmediatePropagation()}function q1(){Zn.preventDefault(),Zn.stopImmediatePropagation()}function xL(n){var r=n.document.documentElement,e=vi(n).on("dragstart.drag",q1,!0);"onselectstart"in r?e.on("selectstart.drag",q1,!0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function DL(n,r){var e=n.document.documentElement,i=vi(n).on("dragstart.drag",null);r&&(i.on("click.drag",q1,!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 AL(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function W7(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function J1(){}var Q1=1/.7,X1="\\s*([+-]?\\d+)\\s*",tx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ude=/^#([0-9a-f]{3,8})$/,Hde=new RegExp("^rgb\\("+[X1,X1,X1]+"\\)$"),jde=new RegExp("^rgb\\("+[sp,sp,sp]+"\\)$"),Gde=new RegExp("^rgba\\("+[X1,X1,X1,tx]+"\\)$"),zde=new RegExp("^rgba\\("+[sp,sp,sp,tx]+"\\)$"),Wde=new RegExp("^hsl\\("+[tx,sp,sp]+"\\)$"),Vde=new RegExp("^hsla\\("+[tx,sp,sp,tx]+"\\)$"),yK={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 bK(){return this.rgb().formatHex()}function CK(){return this.rgb().formatRgb()}function e0(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Ude.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?wK(r):3===e?new eu(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?OL(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?OL(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Hde.exec(n))?new eu(r[1],r[2],r[3],1):(r=jde.exec(n))?new eu(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Gde.exec(n))?OL(r[1],r[2],r[3],r[4]):(r=zde.exec(n))?OL(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Wde.exec(n))?SK(r[1],r[2]/100,r[3]/100,1):(r=Vde.exec(n))?SK(r[1],r[2]/100,r[3]/100,r[4]):yK.hasOwnProperty(n)?wK(yK[n]):"transparent"===n?new eu(NaN,NaN,NaN,0):null}function wK(n){return new eu(n>>16&255,n>>8&255,255&n,1)}function OL(n,r,e,i){return i<=0&&(n=r=e=NaN),new eu(n,r,e,i)}function kK(n){return n instanceof J1||(n=e0(n)),n?new eu((n=n.rgb()).r,n.g,n.b,n.opacity):new eu}function IL(n,r,e,i){return 1===arguments.length?kK(n):new eu(n,r,e,null==i?1:i)}function eu(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function TK(){return"#"+V7(this.r)+V7(this.g)+V7(this.b)}function MK(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function V7(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function SK(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new lp(n,r,e,i)}function EK(n){if(n instanceof lp)return new lp(n.h,n.s,n.l,n.opacity);if(n instanceof J1||(n=e0(n)),!n)return new lp;if(n instanceof lp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new lp(s,l,u,n.opacity)}function lp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Y7(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function xK(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function PL(n){return function(){return n}}function DK(n,r){return function(e){return n+e*r}}function $de(n){return 1==(n=+n)?$1:function(r,e){return e-r?function Qde(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):PL(isNaN(r)?e:r)}}function $1(n,r){var e=r-n;return e?DK(n,e):PL(isNaN(n)?r:n)}AL(J1,e0,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:bK,formatHex:bK,formatHsl:function Yde(){return EK(this).formatHsl()},formatRgb:CK,toString:CK}),AL(eu,IL,W7(J1,{brighter:function(r){return r=null==r?Q1:Math.pow(Q1,r),new eu(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new eu(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:TK,formatHex:TK,formatRgb:MK,toString:MK})),AL(lp,function Kde(n,r,e,i){return 1===arguments.length?EK(n):new lp(n,r,e,null==i?1:i)},W7(J1,{brighter:function(r){return r=null==r?Q1:Math.pow(Q1,r),new lp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new lp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new eu(Y7(r>=240?r-240:r+120,a,o),Y7(r,a,o),Y7(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var RL=function n(r){var e=$de(r);function i(o,a){var s=e((o=IL(o)).r,(a=IL(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=$1(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function AK(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=IL(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var efe=AK(function qde(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return xK((e-i/r)*r,s,o,a,l)}});AK(function Jde(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return xK((e-i/r)*r,o,a,s,l)}});function OK(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=LL(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function tfe(n,r){var e=new Date;return n=+n,r=+r,function(i){return e.setTime(n*(1-i)+r*i),e}}function Yc(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}function nfe(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=LL(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var K7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,q7=new RegExp(K7.source,"g");function IK(n,r){var i,o,a,e=K7.lastIndex=q7.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=K7.exec(n))&&(o=q7.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:Yc(i,o)})),e=q7.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ife(n){return function(r){return n(r)+""}}(u[0].x):function rfe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function ofe(n,r){r||(r=[]);var o,e=n?Math.min(r.length,n.length):0,i=r.slice();return function(a){for(o=0;o<e;++o)i[o]=n[o]*(1-a)+r[o]*a;return i}}function LL(n,r){var i,e=typeof r;return null==r||"boolean"===e?PL(r):("number"===e?Yc:"string"===e?(i=e0(r))?(r=i,RL):IK:r instanceof e0?RL:r instanceof Date?tfe:function afe(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}(r)?ofe:Array.isArray(r)?OK:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?nfe:Yc)(n,r)}function PK(){for(var r,n=Zn;r=n.sourceEvent;)n=r;return n}function RK(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function Kd(n){var r=PK();return r.changedTouches&&(r=r.changedTouches[0]),RK(n,r)}var ZL,ix,ew=0,nx=0,rx=0,NL=0,t0=0,BL=0,ox="object"==typeof performance&&performance.now?performance:Date,ZK="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function ug(){return t0||(ZK(sfe),t0=ox.now()+BL)}function sfe(){t0=0}function ax(){this._call=this._time=this._next=null}function sx(n,r,e){var i=new ax;return i.restart(n,r,e),i}function NK(){ug(),++ew;for(var r,n=ZL;n;)(r=t0-n._time)>=0&&n._call.call(null,r),n=n._next;--ew}function BK(){t0=(NL=ox.now())+BL,ew=nx=0;try{NK()}finally{ew=0,function ufe(){for(var n,e,r=ZL,i=1/0;r;)r._call?(i>r._time&&(i=r._time),n=r,r=r._next):(e=r._next,r._next=null,r=n?n._next=e:ZL=e);ix=n,J7(i)}(),t0=0}}function lfe(){var n=ox.now(),r=n-NL;r>1e3&&(BL-=r,NL=n)}function J7(n){ew||(nx&&(nx=clearTimeout(nx)),n-t0>24?(n<1/0&&(nx=setTimeout(BK,n-ox.now()-BL)),rx&&(rx=clearInterval(rx))):(rx||(NL=ox.now(),rx=setInterval(lfe,1e3)),ew=1,ZK(BK)))}function lx(n,r,e){var i=new ax;return r=null==r?0:+r,i.restart(function(o){i.stop(),n(o+r)},r,e),i}ax.prototype=sx.prototype={constructor:ax,restart:function(r,e,i){if("function"!=typeof r)throw new TypeError("callback is not a function");i=(null==i?ug():+i)+(null==e?0:+e),!this._next&&ix!==this&&(ix?ix._next=this:ZL=this,ix=this),this._call=r,this._time=i,J7()},stop:function(){this._call&&(this._call=null,this._time=1/0,J7())}};var cfe=Xy("start","end","cancel","interrupt"),dfe=[];function HL(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function ffe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return lx(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),Z.on.call("cancel",n,n.__data__,Z.index,Z.group),delete i[h])}if(lx(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,C=o.length;++g<C;)o[g].call(n,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=sx(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:cfe,tween:dfe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function $7(n,r){var e=qd(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function qh(n,r){var e=qd(n,r);if(e.state>3)throw new Error("too late; already running");return e}function qd(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function tw(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(o?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}var ux,t9,zK,jL,jK=180/Math.PI,e9={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function GK(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*jK,skewX:Math.atan(u)*jK,scaleX:s,scaleY:l}}function WK(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:Yc(d,g)},{i:q-2,x:Yc(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Yc(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Yc(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Yc(d,g)},{i:q-2,x:Yc(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var _fe=WK(function hfe(n){return"none"===n?e9:(ux||(ux=document.createElement("DIV"),t9=document.documentElement,zK=document.defaultView),ux.style.transform=n,n=zK.getComputedStyle(t9.appendChild(ux),null).getPropertyValue("transform"),t9.removeChild(ux),GK(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),gfe=WK(function mfe(n){return null!=n&&(jL||(jL=document.createElementNS("http://www.w3.org/2000/svg","g")),jL.setAttribute("transform",n),n=jL.transform.baseVal.consolidate())?GK((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):e9},", ",")",")");function vfe(n,r){var e,i;return function(){var o=qh(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function yfe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=qh(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function n9(n,r,e){var i=n._id;return n.each(function(){var o=qh(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return qd(o,i).value[r]}}function VK(n,r){var e;return("number"==typeof r?Yc:r instanceof e0?RL:(e=e0(r))?(r=e,RL):IK)(n,r)}function Cfe(n){return function(){this.removeAttribute(n)}}function wfe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function kfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttribute(n);return s===o?null:s===i?a:a=r(i=s,e)}}function Tfe(n,r,e){var i,a,o=e+"";return function(){var s=this.getAttributeNS(n.space,n.local);return s===o?null:s===i?a:a=r(i=s,e)}}function Mfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function Sfe(n,r,e){var i,o,a;return function(){var s,u,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===(u=l+"")?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}function xfe(n,r){return function(e){this.setAttribute(n,r.call(this,e))}}function Dfe(n,r){return function(e){this.setAttributeNS(n.space,n.local,r.call(this,e))}}function Afe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&Dfe(n,a)),e}return o._value=r,o}function Ofe(n,r){var e,i;function o(){var a=r.apply(this,arguments);return a!==i&&(e=(i=a)&&xfe(n,a)),e}return o._value=r,o}function Pfe(n,r){return function(){$7(this,n).delay=+r.apply(this,arguments)}}function Rfe(n,r){return r=+r,function(){$7(this,n).delay=r}}function Zfe(n,r){return function(){qh(this,n).duration=+r.apply(this,arguments)}}function Nfe(n,r){return r=+r,function(){qh(this,n).duration=r}}function Ffe(n,r){if("function"!=typeof r)throw new Error;return function(){qh(this,n).ease=r}}function zfe(n,r,e){var i,o,a=function Gfe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?$7:qh;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var Jfe=lg.prototype.constructor;function YK(n){return function(){this.style.removeProperty(n)}}function rpe(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function ipe(n,r,e){var i,o;function a(){var s=r.apply(this,arguments);return s!==o&&(i=(o=s)&&rpe(n,s,e)),i}return a._value=r,a}function upe(n){return function(r){this.textContent=n.call(this,r)}}function cpe(n){var r,e;function i(){var o=n.apply(this,arguments);return o!==e&&(r=(e=o)&&upe(o)),r}return i._value=n,i}var hpe=0;function Jh(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function r9(n){return lg().transition(n)}function KK(){return++hpe}var nw=lg.prototype;function mpe(n){return n*n*n}function _pe(n){return--n*n*n+1}function GL(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}Jh.prototype=r9.prototype={constructor:Jh,select:function Kfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=H7(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,HL(d[C],r,e,C,d,qd(h,e)));return new Jh(a,this._parents,r,e)},selectAll:function qfe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=rK(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var Z,C=n.call(h,h.__data__,g,u),z=qd(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&HL(Z,r,e,q,C,z);a.push(C),s.push(h)}return new Jh(a,s,r,e)},filter:function Hfe(n){"function"!=typeof n&&(n=iK(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new Jh(i,this._parents,this._name,this._id)},merge:function jfe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new Jh(s,this._parents,this._name,this._id)},selection:function Qfe(){return new Jfe(this._groups,this._parents)},transition:function fpe(){for(var n=this._name,r=this._id,e=KK(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=qd(u,r);HL(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Jh(i,this._parents,n,e)},call:nw.call,nodes:nw.nodes,node:nw.node,size:nw.size,empty:nw.empty,each:nw.each,on:function Wfe(n,r){var e=this._id;return arguments.length<2?qd(this.node(),e).on.on(n):this.each(zfe(e,n,r))},attr:function Efe(n,r){var e=SL(n),i="transform"===e?gfe:VK;return this.attrTween(n,"function"==typeof r?(e.local?Sfe:Mfe)(e,i,n9(this,"attr."+n,r)):null==r?(e.local?wfe:Cfe)(e):(e.local?Tfe:kfe)(e,i,r))},attrTween:function Ife(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=SL(n);return this.tween(e,(i.local?Afe:Ofe)(i,r))},style:function npe(n,r,e){var i="transform"==(n+="")?_fe:VK;return null==r?this.styleTween(n,function Xfe(n,r){var e,i,o;return function(){var a=K1(this,n),s=(this.style.removeProperty(n),K1(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,YK(n)):"function"==typeof r?this.styleTween(n,function epe(n,r,e){var i,o,a;return function(){var s=K1(this,n),l=e(this),u=l+"";return null==l&&(this.style.removeProperty(n),u=l=K1(this,n)),s===u?null:s===i&&u===o?a:(o=u,a=r(i=s,l))}}(n,i,n9(this,"style."+n,r))).each(function tpe(n,r){var e,i,o,l,a="style."+r,s="end."+a;return function(){var u=qh(this,n),d=u.on,h=null==u.value[a]?l||(l=YK(r)):void 0;(d!==e||o!==h)&&(i=(e=d).copy()).on(s,o=h),u.on=i}}(this._id,n)):this.styleTween(n,function $fe(n,r,e){var i,a,o=e+"";return function(){var s=K1(this,n);return s===o?null:s===i?a:a=r(i=s,e)}}(n,i,r),e).on("end.style."+n,null)},styleTween:function ope(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,ipe(n,r,null==e?"":e))},text:function lpe(n){return this.tween("text","function"==typeof n?function spe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(n9(this,"text",n)):function ape(n){return function(){this.textContent=n}}(null==n?"":n+""))},textTween:function dpe(n){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,cpe(n))},remove:function Yfe(){return this.on("end.remove",function Vfe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function bfe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=qd(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?vfe:yfe)(e,n,r))},delay:function Lfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Pfe:Rfe)(r,n)):qd(this.node(),r).delay},duration:function Bfe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?Zfe:Nfe)(r,n)):qd(this.node(),r).duration},ease:function Ufe(n){var r=this._id;return arguments.length?this.each(Ffe(r,n)):qd(this.node(),r).ease},end:function ppe(){var n,r,e=this,i=e._id,o=e.size();return new Promise(function(a,s){var l={value:s},u={value:function(){0==--o&&a()}};e.each(function(){var d=qh(this,i),h=d.on;h!==n&&((r=(n=h).copy())._.cancel.push(l),r._.interrupt.push(l),r._.end.push(u)),d.on=r})})}};var i9={time:null,delay:0,duration:250,ease:GL};function gpe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return i9.time=ug(),i9;return e}lg.prototype.interrupt=function pfe(n){return this.each(function(){tw(this,n)})},lg.prototype.transition=function vpe(n){var r,e;n instanceof Jh?(r=n._id,n=n._name):(r=KK(),(e=i9).time=ug(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&HL(u,n,r,d,s,e||gpe(u,r));return new Jh(i,this._parents,n,r)};function qK(n){return function(){return n}}function bpe(n,r,e){this.target=n,this.type=r,this.selection=e}function JK(){Zn.stopImmediatePropagation()}function zL(){Zn.preventDefault(),Zn.stopImmediatePropagation()}var QK={name:"drag"},o9={name:"space"},rw={name:"handle"},iw={name:"center"},WL={name:"x",handles:["e","w"].map(cx),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]]}},VL={name:"y",handles:["n","s"].map(cx),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]]}},Cpe={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(cx),input:function(r){return r},output:function(r){return r}},Qh={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"},XK={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},$K={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wpe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},kpe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cx(n){return{type:n}}function Tpe(){return!Zn.button}function Mpe(){var n=this.ownerSVGElement||this;return[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]}function a9(n){for(;!n.__brush;)if(!(n=n.parentNode))return;return n.__brush}function s9(n){return n[0][0]===n[1][0]||n[0][1]===n[1][1]}function Spe(n){var r=n.__brush;return r?r.dim.output(r.selection):null}function Epe(){return l9(WL)}function xpe(){return l9(VL)}function Dpe(){return l9(Cpe)}function l9(n){var a,r=Mpe,e=Tpe,i=Xy(s,"start","brush","end"),o=6;function s(C){var Z=C.property("__brush",g).selectAll(".overlay").data([cx("overlay")]);Z.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Qh.overlay).merge(Z).each(function(){var q=a9(this).extent;vi(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([cx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Qh.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var z=C.selectAll(".handle").data(n.handles,function(q){return q.type});z.exit().remove(),z.enter().append("rect").attr("class",function(q){return"handle handle--"+q.type}).attr("cursor",function(q){return Qh[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=vi(this),Z=a9(this).selection;Z?(C.selectAll(".selection").style("display",null).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1]),C.selectAll(".handle").style("display",null).attr("x",function(z){return"e"===z.type[z.type.length-1]?Z[1][0]-o/2:Z[0][0]-o/2}).attr("y",function(z){return"s"===z.type[0]?Z[1][1]-o/2:Z[0][1]-o/2}).attr("width",function(z){return"n"===z.type||"s"===z.type?Z[1][0]-Z[0][0]+o:o}).attr("height",function(z){return"e"===z.type||"w"===z.type?Z[1][1]-Z[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,Z){return C.__brush.emitter||new d(C,Z)}function d(C,Z){this.that=C,this.args=Z,this.state=C.__brush,this.active=0}function h(){if(Zn.touches){if(Zn.changedTouches.length<Zn.touches.length)return zL()}else if(a)return;if(e.apply(this,arguments)){var Ve,ut,ot,ht,Xe,Pe,Nt,Gt,It,Tn,jn,or,Mr,C=this,Z=Zn.target.__data__.type,z="selection"===(Zn.metaKey?Z="overlay":Z)?QK:Zn.altKey?iw:rw,q=n===VL?null:wpe[Z],re=n===WL?null:kpe[Z],ae=a9(C),Se=ae.extent,Ce=ae.selection,Ee=Se[0][0],Ae=Se[0][1],bt=Se[1][0],ft=Se[1][1],zn=q&&re&&Zn.shiftKey,_r=Kd(C),zr=_r,Ur=u(C,arguments).beforestart();"overlay"===Z?ae.selection=Ce=[[Ve=n===VL?Ee:_r[0],ot=n===WL?Ae:_r[1]],[Xe=n===VL?bt:Ve,Nt=n===WL?ft:ot]]:(Ve=Ce[0][0],ot=Ce[0][1],Xe=Ce[1][0],Nt=Ce[1][1]),ut=Ve,ht=ot,Pe=Xe,Gt=Nt;var Kr=vi(C).attr("pointer-events","none"),Fo=Kr.selectAll(".overlay").attr("cursor",Qh[Z]);if(Zn.touches)Kr.on("touchmove.brush",wr,!0).on("touchend.brush touchcancel.brush",gn,!0);else{var er=vi(Zn.view).on("keydown.brush",tr,!0).on("keyup.brush",un,!0).on("mousemove.brush",wr,!0).on("mouseup.brush",gn,!0);xL(Zn.view)}JK(),tw(C),l.call(C),Ur.start()}function wr(){var bn=Kd(C);zn&&!or&&!Mr&&(Math.abs(bn[0]-zr[0])>Math.abs(bn[1]-zr[1])?Mr=!0:or=!0),zr=bn,jn=!0,zL(),Sn()}function Sn(){var bn;switch(It=zr[0]-_r[0],Tn=zr[1]-_r[1],z){case o9:case QK:q&&(It=Math.max(Ee-Ve,Math.min(bt-Xe,It)),ut=Ve+It,Pe=Xe+It),re&&(Tn=Math.max(Ae-ot,Math.min(ft-Nt,Tn)),ht=ot+Tn,Gt=Nt+Tn);break;case rw:q<0?(It=Math.max(Ee-Ve,Math.min(bt-Ve,It)),ut=Ve+It,Pe=Xe):q>0&&(It=Math.max(Ee-Xe,Math.min(bt-Xe,It)),ut=Ve,Pe=Xe+It),re<0?(Tn=Math.max(Ae-ot,Math.min(ft-ot,Tn)),ht=ot+Tn,Gt=Nt):re>0&&(Tn=Math.max(Ae-Nt,Math.min(ft-Nt,Tn)),ht=ot,Gt=Nt+Tn);break;case iw:q&&(ut=Math.max(Ee,Math.min(bt,Ve-It*q)),Pe=Math.max(Ee,Math.min(bt,Xe+It*q))),re&&(ht=Math.max(Ae,Math.min(ft,ot-Tn*re)),Gt=Math.max(Ae,Math.min(ft,Nt+Tn*re)))}Pe<ut&&(q*=-1,bn=Ve,Ve=Xe,Xe=bn,bn=ut,ut=Pe,Pe=bn,Z in XK&&Fo.attr("cursor",Qh[Z=XK[Z]])),Gt<ht&&(re*=-1,bn=ot,ot=Nt,Nt=bn,bn=ht,ht=Gt,Gt=bn,Z in $K&&Fo.attr("cursor",Qh[Z=$K[Z]])),ae.selection&&(Ce=ae.selection),or&&(ut=Ce[0][0],Pe=Ce[1][0]),Mr&&(ht=Ce[0][1],Gt=Ce[1][1]),(Ce[0][0]!==ut||Ce[0][1]!==ht||Ce[1][0]!==Pe||Ce[1][1]!==Gt)&&(ae.selection=[[ut,ht],[Pe,Gt]],l.call(C),Ur.brush())}function gn(){if(JK(),Zn.touches){if(Zn.touches.length)return;a&&clearTimeout(a),a=setTimeout(function(){a=null},500),Kr.on("touchmove.brush touchend.brush touchcancel.brush",null)}else DL(Zn.view,jn),er.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Kr.attr("pointer-events","all"),Fo.attr("cursor",Qh.overlay),ae.selection&&(Ce=ae.selection),s9(Ce)&&(ae.selection=null,l.call(C)),Ur.end()}function tr(){switch(Zn.keyCode){case 16:zn=q&&re;break;case 18:z===rw&&(q&&(Xe=Pe-It*q,Ve=ut+It*q),re&&(Nt=Gt-Tn*re,ot=ht+Tn*re),z=iw,Sn());break;case 32:(z===rw||z===iw)&&(q<0?Xe=Pe-It:q>0&&(Ve=ut-It),re<0?Nt=Gt-Tn:re>0&&(ot=ht-Tn),z=o9,Fo.attr("cursor",Qh.selection),Sn());break;default:return}zL()}function un(){switch(Zn.keyCode){case 16:zn&&(or=Mr=zn=!1,Sn());break;case 18:z===iw&&(q<0?Xe=Pe:q>0&&(Ve=ut),re<0?Nt=Gt:re>0&&(ot=ht),z=rw,Sn());break;case 32:z===o9&&(Zn.altKey?(q&&(Xe=Pe-It*q,Ve=ut+It*q),re&&(Nt=Gt-Tn*re,ot=ht+Tn*re),z=iw):(q<0?Xe=Pe:q>0&&(Ve=ut),re<0?Nt=Gt:re>0&&(ot=ht),z=rw),Fo.attr("cursor",Qh[Z]),Sn());break;default:return}zL()}}function g(){var C=this.__brush||{selection:null};return C.extent=r.apply(this,arguments),C.dim=n,C}return s.move=function(C,Z){C.selection?C.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var z=this,q=z.__brush,re=u(z,arguments),ae=q.selection,Se=n.input("function"==typeof Z?Z.apply(this,arguments):Z,q.extent),Ce=LL(ae,Se);function Ee(Ve){q.selection=1===Ve&&s9(Se)?null:Ce(Ve),l.call(z),re.brush()}return ae&&Se?Ee:Ee(1)}):C.each(function(){var z=this,q=arguments,re=z.__brush,ae=n.input("function"==typeof Z?Z.apply(z,q):Z,re.extent),Se=u(z,q).beforestart();tw(z),re.selection=null==ae||s9(ae)?null:ae,l.call(z),Se.start().brush().end()})},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(Z){EL(new bpe(s,Z,n.output(this.state.selection)),i.apply,i,[Z,this.that,this.args])}},s.extent=function(C){return arguments.length?(r="function"==typeof C?C:qK([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),s):r},s.filter=function(C){return arguments.length?(e="function"==typeof C?C:qK(!!C),s):e},s.handleSize=function(C){return arguments.length?(o=+C,s):o},s.on=function(){var C=i.on.apply(i,arguments);return C===i?s:C},s}var eq=Math.cos,tq=Math.sin,nq=Math.PI,YL=nq/2,rq=2*nq,iq=Math.max;function Ape(n){return function(r,e){return n(r.source.value+r.target.value,e.source.value+e.target.value)}}function Ope(){var n=0,r=null,e=null,i=null;function o(a){var Z,z,q,re,ae,Se,s=a.length,l=[],u=hc(s),d=[],h=[],g=h.groups=new Array(s),C=new Array(s*s);for(Z=0,ae=-1;++ae<s;){for(z=0,Se=-1;++Se<s;)z+=a[ae][Se];l.push(z),d.push(hc(s)),Z+=z}for(r&&u.sort(function(bt,Xe){return r(l[bt],l[Xe])}),e&&d.forEach(function(bt,Xe){bt.sort(function(Pe,ft){return e(a[Xe][Pe],a[Xe][ft])})}),re=(Z=iq(0,rq-n*s)/Z)?n:rq/s,z=0,ae=-1;++ae<s;){for(q=z,Se=-1;++Se<s;){var Ce=u[ae],Ee=d[Ce][Se],Ve=a[Ce][Ee],ut=z,Ae=z+=Ve*Z;C[Ee*s+Ce]={index:Ce,subindex:Ee,startAngle:ut,endAngle:Ae,value:Ve}}g[Ce]={index:Ce,startAngle:q,endAngle:z,value:l[Ce]},z+=re}for(ae=-1;++ae<s;)for(Se=ae-1;++Se<s;){var ot=C[Se*s+ae],ht=C[ae*s+Se];(ot.value||ht.value)&&h.push(ot.value<ht.value?{source:ht,target:ot}:{source:ot,target:ht})}return i?h.sort(i):h}return o.padAngle=function(a){return arguments.length?(n=iq(0,a),o):n},o.sortGroups=function(a){return arguments.length?(r=a,o):r},o.sortSubgroups=function(a){return arguments.length?(e=a,o):e},o.sortChords=function(a){return arguments.length?(null==a?i=null:(i=Ape(a))._=a,o):i&&i._},o}var Ipe=Array.prototype.slice;function u9(n){return function(){return n}}var c9=Math.PI,d9=2*c9,n0=1e-6,Ppe=d9-n0;function f9(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function oq(){return new f9}f9.prototype=oq.prototype={constructor:f9,moveTo:function(r,e){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,e){this._+="L"+(this._x1=+r)+","+(this._y1=+e)},quadraticCurveTo:function(r,e,i,o){this._+="Q"+ +r+","+ +e+","+(this._x1=+i)+","+(this._y1=+o)},bezierCurveTo:function(r,e,i,o,a,s){this._+="C"+ +r+","+ +e+","+ +i+","+ +o+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(r,e,i,o,a){r=+r,e=+e,i=+i,o=+o,a=+a;var s=this._x1,l=this._y1,u=i-r,d=o-e,h=s-r,g=l-e,C=h*h+g*g;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=r)+","+(this._y1=e);else if(C>n0)if(Math.abs(g*u-d*h)>n0&&a){var Z=i-s,z=o-l,q=u*u+d*d,re=Z*Z+z*z,ae=Math.sqrt(q),Se=Math.sqrt(C),Ce=a*Math.tan((c9-Math.acos((q+C-re)/(2*ae*Se)))/2),Ee=Ce/Se,Ve=Ce/ae;Math.abs(Ee-1)>n0&&(this._+="L"+(r+Ee*h)+","+(e+Ee*g)),this._+="A"+a+","+a+",0,0,"+ +(g*Z>h*z)+","+(this._x1=r+Ve*u)+","+(this._y1=e+Ve*d)}else this._+="L"+(this._x1=r)+","+(this._y1=e)},arc:function(r,e,i,o,a,s){r=+r,e=+e,s=!!s;var l=(i=+i)*Math.cos(o),u=i*Math.sin(o),d=r+l,h=e+u,g=1^s,C=s?o-a:a-o;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>n0||Math.abs(this._y1-h)>n0)&&(this._+="L"+d+","+h),i&&(C<0&&(C=C%d9+d9),C>Ppe?this._+="A"+i+","+i+",0,1,"+g+","+(r-l)+","+(e-u)+"A"+i+","+i+",0,1,"+g+","+(this._x1=d)+","+(this._y1=h):C>n0&&(this._+="A"+i+","+i+",0,"+ +(C>=c9)+","+g+","+(this._x1=r+i*Math.cos(a))+","+(this._y1=e+i*Math.sin(a))))},rect:function(r,e,i,o){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+e)+"h"+ +i+"v"+ +o+"h"+-i+"Z"},toString:function(){return this._}};var Jd=oq;function Rpe(n){return n.source}function Lpe(n){return n.target}function Zpe(n){return n.radius}function Npe(n){return n.startAngle}function Bpe(n){return n.endAngle}function Fpe(){var n=Rpe,r=Lpe,e=Zpe,i=Npe,o=Bpe,a=null;function s(){var l,u=Ipe.call(arguments),d=n.apply(this,u),h=r.apply(this,u),g=+e.apply(this,(u[0]=d,u)),C=i.apply(this,u)-YL,Z=o.apply(this,u)-YL,z=g*eq(C),q=g*tq(C),re=+e.apply(this,(u[0]=h,u)),ae=i.apply(this,u)-YL,Se=o.apply(this,u)-YL;if(a||(a=l=Jd()),a.moveTo(z,q),a.arc(0,0,g,C,Z),(C!==ae||Z!==Se)&&(a.quadraticCurveTo(0,0,re*eq(ae),re*tq(ae)),a.arc(0,0,re,ae,Se)),a.quadraticCurveTo(0,0,z,q),a.closePath(),l)return a=null,l+""||null}return s.radius=function(l){return arguments.length?(e="function"==typeof l?l:u9(+l),s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:u9(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:u9(+l),s):o},s.source=function(l){return arguments.length?(n=l,s):n},s.target=function(l){return arguments.length?(r=l,s):r},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}var Kc="$";function KL(){}function aq(n,r){var e=new KL;if(n instanceof KL)n.each(function(l,u){e.set(u,l)});else if(Array.isArray(n)){var a,i=-1,o=n.length;if(null==r)for(;++i<o;)e.set(i,n[i]);else for(;++i<o;)e.set(r(a=n[i],i,n),a)}else if(n)for(var s in n)e.set(s,n[s]);return e}KL.prototype=aq.prototype={constructor:KL,has:function(r){return Kc+r in this},get:function(r){return this[Kc+r]},set:function(r,e){return this[Kc+r]=e,this},remove:function(r){var e=Kc+r;return e in this&&delete this[e]},clear:function(){for(var r in this)r[0]===Kc&&delete this[r]},keys:function(){var r=[];for(var e in this)e[0]===Kc&&r.push(e.slice(1));return r},values:function(){var r=[];for(var e in this)e[0]===Kc&&r.push(this[e]);return r},entries:function(){var r=[];for(var e in this)e[0]===Kc&&r.push({key:e.slice(1),value:this[e]});return r},size:function(){var r=0;for(var e in this)e[0]===Kc&&++r;return r},empty:function(){for(var r in this)if(r[0]===Kc)return!1;return!0},each:function(r){for(var e in this)e[0]===Kc&&r(this[e],e.slice(1),this)}};var cg=aq;function Upe(){var e,i,o,n=[],r=[];function a(l,u,d,h){if(u>=n.length)return null!=e&&l.sort(e),null!=i?i(l):l;for(var z,q,ae,g=-1,C=l.length,Z=n[u++],re=cg(),Se=d();++g<C;)(ae=re.get(z=Z(q=l[g])+""))?ae.push(q):re.set(z,[q]);return re.each(function(Ce,Ee){h(Se,Ee,a(Ce,u,d,h))}),Se}function s(l,u){if(++u>n.length)return l;var d,h=r[u-1];return null!=i&&u>=n.length?d=l.entries():(d=[],l.each(function(g,C){d.push({key:C,values:s(g,u)})})),null!=h?d.sort(function(g,C){return h(g.key,C.key)}):d}return o={object:function(u){return a(u,0,Hpe,jpe)},map:function(u){return a(u,0,sq,lq)},entries:function(u){return s(a(u,0,sq,lq),0)},key:function(u){return n.push(u),o},sortKeys:function(u){return r[n.length-1]=u,o},sortValues:function(u){return e=u,o},rollup:function(u){return i=u,o}}}function Hpe(){return{}}function jpe(n,r,e){n[r]=e}function sq(){return cg()}function lq(n,r,e){n.set(r,e)}function qL(){}var r0=cg.prototype;function uq(n,r){var e=new qL;if(n instanceof qL)n.each(function(a){e.add(a)});else if(n){var i=-1,o=n.length;if(null==r)for(;++i<o;)e.add(n[i]);else for(;++i<o;)e.add(r(n[i],i,n))}return e}qL.prototype=uq.prototype={constructor:qL,has:r0.has,add:function(r){return this[Kc+(r+="")]=r,this},remove:r0.remove,clear:r0.clear,values:r0.keys,size:r0.size,empty:r0.empty,each:r0.each};var Gpe=uq;function zpe(n){var r=[];for(var e in n)r.push(e);return r}function Wpe(n){var r=[];for(var e in n)r.push(n[e]);return r}function Vpe(n){var r=[];for(var e in n)r.push({key:e,value:n[e]});return r}function ow(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function dx(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function dg(){}var aw=1/.7,sw="\\s*([+-]?\\d+)\\s*",fx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",up="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ype=/^#([0-9a-f]{3})$/,Kpe=/^#([0-9a-f]{6})$/,qpe=new RegExp("^rgb\\("+[sw,sw,sw]+"\\)$"),Jpe=new RegExp("^rgb\\("+[up,up,up]+"\\)$"),Qpe=new RegExp("^rgba\\("+[sw,sw,sw,fx]+"\\)$"),Xpe=new RegExp("^rgba\\("+[up,up,up,fx]+"\\)$"),$pe=new RegExp("^hsl\\("+[fx,up,up]+"\\)$"),ehe=new RegExp("^hsla\\("+[fx,up,up,fx]+"\\)$"),cq={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 JL(n){var r;return n=(n+"").trim().toLowerCase(),(r=Ype.exec(n))?new nl((r=parseInt(r[1],16))>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):(r=Kpe.exec(n))?dq(parseInt(r[1],16)):(r=qpe.exec(n))?new nl(r[1],r[2],r[3],1):(r=Jpe.exec(n))?new nl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Qpe.exec(n))?fq(r[1],r[2],r[3],r[4]):(r=Xpe.exec(n))?fq(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=$pe.exec(n))?hq(r[1],r[2]/100,r[3]/100,1):(r=ehe.exec(n))?hq(r[1],r[2]/100,r[3]/100,r[4]):cq.hasOwnProperty(n)?dq(cq[n]):"transparent"===n?new nl(NaN,NaN,NaN,0):null}function dq(n){return new nl(n>>16&255,n>>8&255,255&n,1)}function fq(n,r,e,i){return i<=0&&(n=r=e=NaN),new nl(n,r,e,i)}function p9(n){return n instanceof dg||(n=JL(n)),n?new nl((n=n.rgb()).r,n.g,n.b,n.opacity):new nl}function pq(n,r,e,i){return 1===arguments.length?p9(n):new nl(n,r,e,null==i?1:i)}function nl(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function hq(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new cp(n,r,e,i)}function the(n){if(n instanceof cp)return new cp(n.h,n.s,n.l,n.opacity);if(n instanceof dg||(n=JL(n)),!n)return new cp;if(n instanceof cp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new cp(s,l,u,n.opacity)}function mq(n,r,e,i){return 1===arguments.length?the(n):new cp(n,r,e,null==i?1:i)}function cp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function h9(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}ow(dg,JL,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),ow(nl,pq,dx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new nl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new nl(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===r?")":", "+r+")")}})),ow(cp,mq,dx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new cp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new cp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new nl(h9(r>=240?r-240:r+120,a,o),h9(r,a,o),h9(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var _q=Math.PI/180,gq=180/Math.PI,Cq=4/29,lw=6/29,wq=3*lw*lw;function m9(n){if(n instanceof dp)return new dp(n.l,n.a,n.b,n.opacity);if(n instanceof Xh){if(isNaN(n.h))return new dp(n.l,0,0,n.opacity);var r=n.h*_q;return new dp(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}n instanceof nl||(n=p9(n));var s,l,e=y9(n.r),i=y9(n.g),o=y9(n.b),a=_9((.2225045*e+.7168786*i+.0606169*o)/1);return e===i&&i===o?s=l=a:(s=_9((.4360747*e+.3850649*i+.1430804*o)/.96422),l=_9((.0139322*e+.0971045*i+.7141733*o)/.82521)),new dp(116*a-16,500*(s-a),200*(a-l),n.opacity)}function kq(n,r,e,i){return 1===arguments.length?m9(n):new dp(n,r,e,null==i?1:i)}function dp(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function _9(n){return n>.008856451679035631?Math.pow(n,1/3):n/wq+Cq}function g9(n){return n>lw?n*n*n:wq*(n-Cq)}function v9(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function y9(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function rhe(n){if(n instanceof Xh)return new Xh(n.h,n.c,n.l,n.opacity);if(n instanceof dp||(n=m9(n)),0===n.a&&0===n.b)return new Xh(NaN,0,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*gq;return new Xh(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function Tq(n,r,e,i){return 1===arguments.length?rhe(n):new Xh(n,r,e,null==i?1:i)}function Xh(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}ow(dp,kq,dx(dg,{brighter:function(r){return new dp(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new dp(this.l-18*(null==r?1:r),this.a,this.b,this.opacity)},rgb:function(){var r=(this.l+16)/116,e=isNaN(this.a)?r:r+this.a/500,i=isNaN(this.b)?r:r-this.b/200;return new nl(v9(3.1338561*(e=.96422*g9(e))-1.6168667*(r=1*g9(r))-.4906146*(i=.82521*g9(i))),v9(-.9787684*e+1.9161415*r+.033454*i),v9(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),ow(Xh,Tq,dx(dg,{brighter:function(r){return new Xh(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new Xh(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return m9(this).rgb()}}));var b9=1.78277,C9=-.29227,XL=-.90649,px=1.97294,Sq=px*XL,Eq=px*b9,xq=b9*C9- -.14861*XL;function ihe(n){if(n instanceof o0)return new o0(n.h,n.s,n.l,n.opacity);n instanceof nl||(n=p9(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(xq*i+Sq*r-Eq*e)/(xq+Sq-Eq),a=i-o,s=(px*(e-o)-C9*a)/XL,l=Math.sqrt(s*s+a*a)/(px*o*(1-o)),u=l?Math.atan2(s,a)*gq-120:NaN;return new o0(u<0?u+360:u,l,o,n.opacity)}function Dq(n,r,e,i){return 1===arguments.length?ihe(n):new o0(n,r,e,null==i?1:i)}function o0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}ow(o0,Dq,dx(dg,{brighter:function(r){return r=null==r?aw:Math.pow(aw,r),new o0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new o0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*_q,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new nl(255*(e+i*(-.14861*o+b9*a)),255*(e+i*(C9*o+XL*a)),255*(e+i*(px*o)),this.opacity)}}));var Aq=Array.prototype.slice;function ahe(n,r){return n-r}function a0(n){return function(){return n}}function lhe(n,r){for(var o,e=-1,i=r.length;++e<i;)if(o=uhe(n,r[e]))return o;return 0}function uhe(n,r){for(var e=r[0],i=r[1],o=-1,a=0,s=n.length,l=s-1;a<s;l=a++){var u=n[a],d=u[0],h=u[1],g=n[l],C=g[0],Z=g[1];if(che(u,g,r))return 0;h>i!=Z>i&&e<(C-d)*(i-h)/(Z-h)+d&&(o=-o)}return o}function che(n,r,e){var i;return function dhe(n,r,e){return(r[0]-n[0])*(e[1]-n[1])==(e[0]-n[0])*(r[1]-n[1])}(n,r,e)&&function fhe(n,r,e){return n<=r&&r<=e||e<=r&&r<=n}(n[i=+(n[0]===r[0])],e[i],r[i])}function phe(){}var $h=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Oq(){var n=1,r=1,e=N7,i=u;function o(d){var h=e(d);if(Array.isArray(h))h=h.slice().sort(ahe);else{var g=I7(d),C=g[0],Z=g[1];h=Qy(C,Z,h),h=hc(Math.floor(C/h)*h,Math.floor(Z/h)*h,h)}return h.map(function(z){return a(d,z)})}function a(d,h){var g=[],C=[];return function s(d,h,g){var z,q,re,ae,Se,Ce,C=new Array,Z=new Array;for(z=q=-1,ae=d[0]>=h,$h[ae<<1].forEach(Ee);++z<n-1;)re=ae,ae=d[z+1]>=h,$h[re|ae<<1].forEach(Ee);for($h[ae<<0].forEach(Ee);++q<r-1;){for(z=-1,ae=d[q*n+n]>=h,Se=d[q*n]>=h,$h[ae<<1|Se<<2].forEach(Ee);++z<n-1;)re=ae,ae=d[q*n+n+z+1]>=h,Ce=Se,Se=d[q*n+z+1]>=h,$h[re|ae<<1|Se<<2|Ce<<3].forEach(Ee);$h[ae|Se<<3].forEach(Ee)}for(z=-1,Se=d[q*n]>=h,$h[Se<<2].forEach(Ee);++z<n-1;)Ce=Se,Se=d[q*n+z+1]>=h,$h[Se<<2|Ce<<3].forEach(Ee);function Ee(Ve){var bt,Xe,ut=[Ve[0][0]+z,Ve[0][1]+q],Ae=[Ve[1][0]+z,Ve[1][1]+q],ot=l(ut),ht=l(Ae);(bt=Z[ot])?(Xe=C[ht])?(delete Z[bt.end],delete C[Xe.start],bt===Xe?(bt.ring.push(Ae),g(bt.ring)):C[bt.start]=Z[Xe.end]={start:bt.start,end:Xe.end,ring:bt.ring.concat(Xe.ring)}):(delete Z[bt.end],bt.ring.push(Ae),Z[bt.end=ht]=bt):(bt=C[ht])?(Xe=Z[ot])?(delete C[bt.start],delete Z[Xe.end],bt===Xe?(bt.ring.push(Ae),g(bt.ring)):C[Xe.start]=Z[bt.end]={start:Xe.start,end:bt.end,ring:Xe.ring.concat(bt.ring)}):(delete C[bt.start],bt.ring.unshift(ut),C[bt.start=ot]=bt):C[ot]=Z[ht]={start:ot,end:ht,ring:[ut,Ae]}}$h[Se<<3].forEach(Ee)}(d,h,function(Z){i(Z,d,h),function she(n){for(var r=0,e=n.length,i=n[e-1][1]*n[0][0]-n[e-1][0]*n[0][1];++r<e;)i+=n[r-1][1]*n[r][0]-n[r-1][0]*n[r][1];return i}(Z)>0?g.push([Z]):C.push(Z)}),C.forEach(function(Z){for(var re,z=0,q=g.length;z<q;++z)if(-1!==lhe((re=g[z])[0],Z))return void re.push(Z)}),{type:"MultiPolygon",value:h,coordinates:g}}function l(d){return 2*d[0]+d[1]*(n+1)*4}function u(d,h,g){d.forEach(function(C){var ae,Z=C[0],z=C[1],q=0|Z,re=0|z,Se=h[re*n+q];Z>0&&Z<n&&q===Z&&(ae=h[re*n+q-1],C[0]=Z+(g-ae)/(Se-ae)-.5),z>0&&z<r&&re===z&&(ae=h[(re-1)*n+q],C[1]=z+(g-ae)/(Se-ae)-.5)})}return o.contour=a,o.size=function(d){if(!arguments.length)return[n,r];var h=Math.ceil(d[0]),g=Math.ceil(d[1]);if(!(h>0&&g>0))throw new Error("invalid size");return n=h,r=g,o},o.thresholds=function(d){return arguments.length?(e="function"==typeof d?d:Array.isArray(d)?a0(Aq.call(d)):a0(d),o):e},o.smooth=function(d){return arguments.length?(i=d?u:phe,o):i===u},o}function w9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<o;++s)for(var l=0,u=0;l<i+e;++l)l<i&&(u+=n.data[l+s*i]),l>=e&&(l>=a&&(u-=n.data[l-a+s*i]),r.data[l-e+s*i]=u/Math.min(l+1,i-1+a-l,a))}function k9(n,r,e){for(var i=n.width,o=n.height,a=1+(e<<1),s=0;s<i;++s)for(var l=0,u=0;l<o+e;++l)l<o&&(u+=n.data[s+l*i]),l>=e&&(l>=a&&(u-=n.data[s+(l-a)*i]),r.data[s+(l-e)*i]=u/Math.min(l+1,o-1+a-l,a))}function hhe(n){return n[0]}function mhe(n){return n[1]}function _he(){var n=hhe,r=mhe,e=960,i=500,o=20,a=2,s=3*o,l=e+2*s>>a,u=i+2*s>>a,d=a0(20);function h(re){var ae=new Float32Array(l*u),Se=new Float32Array(l*u);re.forEach(function(Ve,ut,Ae){var ot=n(Ve,ut,Ae)+s>>a,ht=r(Ve,ut,Ae)+s>>a;ot>=0&&ot<l&&ht>=0&&ht<u&&++ae[ot+ht*l]}),w9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),w9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a),w9({width:l,height:u,data:ae},{width:l,height:u,data:Se},o>>a),k9({width:l,height:u,data:Se},{width:l,height:u,data:ae},o>>a);var Ce=d(ae);if(!Array.isArray(Ce)){var Ee=QY(ae);Ce=Qy(0,Ee,Ce),(Ce=hc(0,Math.floor(Ee/Ce)*Ce,Ce)).shift()}return Oq().thresholds(Ce).size([l,u])(ae).map(g)}function g(re){return re.value*=Math.pow(2,-2*a),re.coordinates.forEach(C),re}function C(re){re.forEach(Z)}function Z(re){re.forEach(z)}function z(re){re[0]=re[0]*Math.pow(2,a)-s,re[1]=re[1]*Math.pow(2,a)-s}function q(){return l=e+2*(s=3*o)>>a,u=i+2*s>>a,h}return h.x=function(re){return arguments.length?(n="function"==typeof re?re:a0(+re),h):n},h.y=function(re){return arguments.length?(r="function"==typeof re?re:a0(+re),h):r},h.size=function(re){if(!arguments.length)return[e,i];var ae=Math.ceil(re[0]),Se=Math.ceil(re[1]);if(!(ae>=0||ae>=0))throw new Error("invalid size");return e=ae,i=Se,q()},h.cellSize=function(re){if(!arguments.length)return 1<<a;if(!((re=+re)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(re)/Math.LN2),q()},h.thresholds=function(re){return arguments.length?(d="function"==typeof re?re:Array.isArray(re)?a0(Aq.call(re)):a0(re),h):d},h.bandwidth=function(re){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((re=+re)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*re*re+1)-1)/2),q()},h}function T9(n,r,e){arguments.length<3&&(e=r,r=PK().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return RK(n,a);return null}function $L(n){return function(){return n}}function M9(n,r,e,i,o,a,s,l,u,d){this.target=n,this.type=r,this.subject=e,this.identifier=i,this.active=o,this.x=a,this.y=s,this.dx=l,this.dy=u,this._=d}function ghe(){return!Zn.ctrlKey&&!Zn.button}function vhe(){return this.parentNode}function yhe(n){return null==n?{x:Zn.x,y:Zn.y}:n}function bhe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fg(){var l,u,d,h,n=ghe,r=vhe,e=yhe,i=bhe,o={},a=Xy("start","drag","end"),s=0,g=0;function C(Ee){Ee.on("mousedown.drag",Z).filter(i).on("touchstart.drag",re).on("touchmove.drag",ae).on("touchend.drag touchcancel.drag",Se).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Z(){if(!h&&n.apply(this,arguments)){var Ee=Ce("mouse",r.apply(this,arguments),Kd,this,arguments);!Ee||(vi(Zn.view).on("mousemove.drag",z,!0).on("mouseup.drag",q,!0),xL(Zn.view),z7(),d=!1,l=Zn.clientX,u=Zn.clientY,Ee("start"))}}function z(){if(q1(),!d){var Ee=Zn.clientX-l,Ve=Zn.clientY-u;d=Ee*Ee+Ve*Ve>g}o.mouse("drag")}function q(){vi(Zn.view).on("mousemove.drag mouseup.drag",null),DL(Zn.view,d),q1(),o.mouse("end")}function re(){if(n.apply(this,arguments)){var Ae,ot,Ee=Zn.changedTouches,Ve=r.apply(this,arguments),ut=Ee.length;for(Ae=0;Ae<ut;++Ae)(ot=Ce(Ee[Ae].identifier,Ve,T9,this,arguments))&&(z7(),ot("start"))}}function ae(){var ut,Ae,Ee=Zn.changedTouches,Ve=Ee.length;for(ut=0;ut<Ve;++ut)(Ae=o[Ee[ut].identifier])&&(q1(),Ae("drag"))}function Se(){var ut,Ae,Ee=Zn.changedTouches,Ve=Ee.length;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),ut=0;ut<Ve;++ut)(Ae=o[Ee[ut].identifier])&&(z7(),Ae("end"))}function Ce(Ee,Ve,ut,Ae,ot){var bt,Xe,Pe,ht=ut(Ve,Ee),ft=a.copy();if(EL(new M9(C,"beforestart",bt,Ee,s,ht[0],ht[1],0,0,ft),function(){return null!=(Zn.subject=bt=e.apply(Ae,ot))&&(Xe=bt.x-ht[0]||0,Pe=bt.y-ht[1]||0,!0)}))return function Nt(Gt){var Tn,It=ht;switch(Gt){case"start":o[Ee]=Nt,Tn=s++;break;case"end":delete o[Ee],--s;case"drag":ht=ut(Ve,Ee),Tn=s}EL(new M9(C,Gt,bt,Ee,Tn,ht[0]+Xe,ht[1]+Pe,ht[0]-It[0],ht[1]-It[1],ft),ft.apply,ft,[Gt,Ae,ot])}}return C.filter=function(Ee){return arguments.length?(n="function"==typeof Ee?Ee:$L(!!Ee),C):n},C.container=function(Ee){return arguments.length?(r="function"==typeof Ee?Ee:$L(Ee),C):r},C.subject=function(Ee){return arguments.length?(e="function"==typeof Ee?Ee:$L(Ee),C):e},C.touchable=function(Ee){return arguments.length?(i="function"==typeof Ee?Ee:$L(!!Ee),C):i},C.on=function(){var Ee=a.on.apply(a,arguments);return Ee===a?C:Ee},C.clickDistance=function(Ee){return arguments.length?(g=(Ee=+Ee)*Ee,C):Math.sqrt(g)},C}M9.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};var Iq={},S9={};function Pq(n){return new Function("d","return {"+n.map(function(r,e){return JSON.stringify(r)+": d["+e+"]"}).join(",")+"}")}function D9(n){var r=new RegExp('["'+n+"\n\r]"),e=n.charCodeAt(0);function o(d,h){var q,g=[],C=d.length,Z=0,z=0,re=C<=0,ae=!1;function Se(){if(re)return S9;if(ae)return ae=!1,Iq;var Ee,ut,Ve=Z;if(34===d.charCodeAt(Ve)){for(;Z++<C&&34!==d.charCodeAt(Z)||34===d.charCodeAt(++Z););return(Ee=Z)>=C?re=!0:10===(ut=d.charCodeAt(Z++))?ae=!0:13===ut&&(ae=!0,10===d.charCodeAt(Z)&&++Z),d.slice(Ve+1,Ee-1).replace(/""/g,'"')}for(;Z<C;){if(10===(ut=d.charCodeAt(Ee=Z++)))ae=!0;else if(13===ut)ae=!0,10===d.charCodeAt(Z)&&++Z;else if(ut!==e)continue;return d.slice(Ve,Ee)}return re=!0,d.slice(Ve,C)}for(10===d.charCodeAt(C-1)&&--C,13===d.charCodeAt(C-1)&&--C;(q=Se())!==S9;){for(var Ce=[];q!==Iq&&q!==S9;)Ce.push(q),q=Se();h&&null==(Ce=h(Ce,z++))||g.push(Ce)}return g}function l(d){return d.map(u).join(n)}function u(d){return null==d?"":r.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:function i(d,h){var g,C,Z=o(d,function(z,q){if(g)return g(z,q-1);C=z,g=h?function Che(n,r){var e=Pq(n);return function(i,o){return r(e(i),o,n)}}(z,h):Pq(z)});return Z.columns=C||[],Z},parseRows:o,format:function a(d,h){return null==h&&(h=function whe(n){var r=Object.create(null),e=[];return n.forEach(function(i){for(var o in i)o in r||e.push(r[o]=o)}),e}(d)),[h.map(u).join(n)].concat(d.map(function(g){return h.map(function(C){return u(g[C])}).join(n)})).join("\n")},formatRows:function s(d){return d.map(l).join("\n")}}}var eZ=D9(","),khe=eZ.parse,The=eZ.parseRows,Mhe=eZ.format,She=eZ.formatRows,tZ=D9("\t"),Ehe=tZ.parse,xhe=tZ.parseRows,Dhe=tZ.format,Ahe=tZ.formatRows;function Ohe(n){return+n}function Ihe(n){return n*n}function Phe(n){return n*(2-n)}function Rq(n){return((n*=2)<=1?n*n:--n*(2-n)+1)/2}var Rhe=function n(r){function e(i){return Math.pow(i,r)}return r=+r,e.exponent=n,e}(3),Lhe=function n(r){function e(i){return 1-Math.pow(1-i,r)}return r=+r,e.exponent=n,e}(3),Lq=function n(r){function e(i){return((i*=2)<=1?Math.pow(i,r):2-Math.pow(2-i,r))/2}return r=+r,e.exponent=n,e}(3),Zq=Math.PI,Nq=Zq/2;function Zhe(n){return 1==+n?1:1-Math.cos(n*Nq)}function Nhe(n){return Math.sin(n*Nq)}function Bq(n){return(1-Math.cos(Zq*n))/2}function pg(n){return 1.0009775171065494*(Math.pow(2,-10*n)-.0009765625)}function Bhe(n){return pg(1-+n)}function Fhe(n){return 1-pg(n)}function Fq(n){return((n*=2)<=1?pg(1-n):2-pg(n-1))/2}function Uhe(n){return 1-Math.sqrt(1-n*n)}function Hhe(n){return Math.sqrt(1- --n*n)}function Uq(n){return((n*=2)<=1?1-Math.sqrt(1-n*n):Math.sqrt(1-(n-=2)*n)+1)/2}var O9=4/11,nZ=7.5625;function Jhe(n){return 1-mx(1-n)}function mx(n){return(n=+n)<O9?nZ*n*n:n<.7272727272727273?nZ*(n-=.5454545454545454)*n+.75:n<.9090909090909091?nZ*(n-=.8181818181818182)*n+.9375:nZ*(n-=.9545454545454546)*n+.984375}function Qhe(n){return((n*=2)<=1?1-mx(1-n):mx(n-1)+1)/2}var I9=1.70158,Xhe=function n(r){function e(i){return(i=+i)*i*(r*(i-1)+i)}return r=+r,e.overshoot=n,e}(I9),$he=function n(r){function e(i){return--i*i*((i+1)*r+i)+1}return r=+r,e.overshoot=n,e}(I9),Hq=function n(r){function e(i){return((i*=2)<1?i*i*((r+1)*i-r):(i-=2)*i*((r+1)*i+r)+2)/2}return r=+r,e.overshoot=n,e}(I9),uw=2*Math.PI,eme=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=uw);function o(a){return r*pg(- --a)*Math.sin((i-a)/e)}return o.amplitude=function(a){return n(a,e*uw)},o.period=function(a){return n(r,a)},o}(1,.3),jq=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=uw);function o(a){return 1-r*pg(a=+a)*Math.sin((a+i)/e)}return o.amplitude=function(a){return n(a,e*uw)},o.period=function(a){return n(r,a)},o}(1,.3),tme=function n(r,e){var i=Math.asin(1/(r=Math.max(1,r)))*(e/=uw);function o(a){return((a=2*a-1)<0?r*pg(-a)*Math.sin((i-a)/e):2-r*pg(a)*Math.sin((i+a)/e))/2}return o.amplitude=function(a){return n(a,e*uw)},o.period=function(a){return n(r,a)},o}(1,.3);function nme(n,r){var e;function i(){var o,s,a=e.length,l=0,u=0;for(o=0;o<a;++o)l+=(s=e[o]).x,u+=s.y;for(l=l/a-n,u=u/a-r,o=0;o<a;++o)(s=e[o]).x-=l,s.y-=u}return null==n&&(n=0),null==r&&(r=0),i.initialize=function(o){e=o},i.x=function(o){return arguments.length?(n=+o,i):n},i.y=function(o){return arguments.length?(r=+o,i):r},i}function bs(n){return function(){return n}}function hg(){return 1e-6*(Math.random()-.5)}function Gq(n,r,e,i){if(isNaN(r)||isNaN(e))return n;var o,g,C,Z,z,q,re,ae,Se,a=n._root,s={data:i},l=n._x0,u=n._y0,d=n._x1,h=n._y1;if(!a)return n._root=s,n;for(;a.length;)if((q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C,o=a,!(a=a[ae=re<<1|q]))return o[ae]=s,n;if(Z=+n._x.call(null,a.data),z=+n._y.call(null,a.data),r===Z&&e===z)return s.next=a,o?o[ae]=s:n._root=s,n;do{o=o?o[ae]=new Array(4):n._root=new Array(4),(q=r>=(g=(l+d)/2))?l=g:d=g,(re=e>=(C=(u+h)/2))?u=C:h=C}while((ae=re<<1|q)==(Se=(z>=C)<<1|Z>=g));return o[Se]=a,o[ae]=s,n}function tu(n,r,e,i,o){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=o}function mme(n){return n[0]}function gme(n){return n[1]}function rZ(n,r,e){var i=new L9(null==r?mme:r,null==e?gme:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function L9(n,r,e,i,o,a){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=o,this._y1=a,this._root=void 0}function zq(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var nu=rZ.prototype=L9.prototype;function yme(n){return n.x+n.vx}function bme(n){return n.y+n.vy}function Cme(n){var r,e,i=1,o=1;function a(){for(var u,h,g,C,Z,z,q,d=r.length,re=0;re<o;++re)for(h=rZ(r,yme,bme).visitAfter(s),u=0;u<d;++u)g=r[u],z=e[g.index],q=z*z,C=g.x+g.vx,Z=g.y+g.vy,h.visit(ae);function ae(Se,Ce,Ee,Ve,ut){var Ae=Se.data,ot=Se.r,ht=z+ot;if(!Ae)return Ce>C+ht||Ve<C-ht||Ee>Z+ht||ut<Z-ht;if(Ae.index>g.index){var bt=C-Ae.x-Ae.vx,Xe=Z-Ae.y-Ae.vy,Pe=bt*bt+Xe*Xe;Pe<ht*ht&&(0===bt&&(Pe+=(bt=hg())*bt),0===Xe&&(Pe+=(Xe=hg())*Xe),Pe=(ht-(Pe=Math.sqrt(Pe)))/Pe*i,g.vx+=(bt*=Pe)*(ht=(ot*=ot)/(q+ot)),g.vy+=(Xe*=Pe)*ht,Ae.vx-=bt*(ht=1-ht),Ae.vy-=Xe*ht)}}}function s(u){if(u.data)return u.r=e[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function l(){if(r){var u,h,d=r.length;for(e=new Array(d),u=0;u<d;++u)h=r[u],e[h.index]=+n(h,u,r)}}return"function"!=typeof n&&(n=bs(null==n?1:+n)),a.initialize=function(u){r=u,l()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(i=+u,a):i},a.radius=function(u){return arguments.length?(n="function"==typeof u?u:bs(+u),l(),a):n},a}function wme(n){return n.index}function Wq(n,r){var e=n.get(r);if(!e)throw new Error("missing: "+r);return e}function kme(n){var i,a,s,l,u,r=wme,e=function h(q){return 1/Math.min(l[q.source.index],l[q.target.index])},o=bs(30),d=1;function g(q){for(var re=0,ae=n.length;re<d;++re)for(var Ce,Ee,Ve,ut,Ae,ot,ht,Se=0;Se<ae;++Se)Ee=(Ce=n[Se]).source,ut=(Ve=Ce.target).x+Ve.vx-Ee.x-Ee.vx||hg(),Ae=Ve.y+Ve.vy-Ee.y-Ee.vy||hg(),ut*=ot=((ot=Math.sqrt(ut*ut+Ae*Ae))-a[Se])/ot*q*i[Se],Ae*=ot,Ve.vx-=ut*(ht=u[Se]),Ve.vy-=Ae*ht,Ee.vx+=ut*(ht=1-ht),Ee.vy+=Ae*ht}function C(){if(s){var q,Ce,re=s.length,ae=n.length,Se=cg(s,r);for(q=0,l=new Array(re);q<ae;++q)(Ce=n[q]).index=q,"object"!=typeof Ce.source&&(Ce.source=Wq(Se,Ce.source)),"object"!=typeof Ce.target&&(Ce.target=Wq(Se,Ce.target)),l[Ce.source.index]=(l[Ce.source.index]||0)+1,l[Ce.target.index]=(l[Ce.target.index]||0)+1;for(q=0,u=new Array(ae);q<ae;++q)Ce=n[q],u[q]=l[Ce.source.index]/(l[Ce.source.index]+l[Ce.target.index]);i=new Array(ae),Z(),a=new Array(ae),z()}}function Z(){if(s)for(var q=0,re=n.length;q<re;++q)i[q]=+e(n[q],q,n)}function z(){if(s)for(var q=0,re=n.length;q<re;++q)a[q]=+o(n[q],q,n)}return null==n&&(n=[]),g.initialize=function(q){s=q,C()},g.links=function(q){return arguments.length?(n=q,C(),g):n},g.id=function(q){return arguments.length?(r=q,g):r},g.iterations=function(q){return arguments.length?(d=+q,g):d},g.strength=function(q){return arguments.length?(e="function"==typeof q?q:bs(+q),Z(),g):e},g.distance=function(q){return arguments.length?(o="function"==typeof q?q:bs(+q),z(),g):o},g}function Tme(n){return n.x}function Mme(n){return n.y}nu.copy=function(){var e,i,n=new L9(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=zq(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(i=r.source[o])&&(i.length?e.push({source:i,target:r.target[o]=new Array(4)}):r.target[o]=zq(i));return n},nu.add=function rme(n){var r=+this._x.call(null,n),e=+this._y.call(null,n);return Gq(this.cover(r,e),r,e,n)},nu.addAll=function ime(n){var r,e,o,a,i=n.length,s=new Array(i),l=new Array(i),u=1/0,d=1/0,h=-1/0,g=-1/0;for(e=0;e<i;++e)isNaN(o=+this._x.call(null,r=n[e]))||isNaN(a=+this._y.call(null,r))||(s[e]=o,l[e]=a,o<u&&(u=o),o>h&&(h=o),a<d&&(d=a),a>g&&(g=a));if(u>h||d>g)return this;for(this.cover(u,d).cover(h,g),e=0;e<i;++e)Gq(this,s[e],l[e],n[e]);return this},nu.cover=function ome(n,r){if(isNaN(n=+n)||isNaN(r=+r))return this;var e=this._x0,i=this._y0,o=this._x1,a=this._y1;if(isNaN(e))o=(e=Math.floor(n))+1,a=(i=Math.floor(r))+1;else{for(var u,d,s=o-e,l=this._root;e>n||n>=o||i>r||r>=a;)switch(d=(r<i)<<1|n<e,u=new Array(4),u[d]=l,l=u,s*=2,d){case 0:o=e+s,a=i+s;break;case 1:e=o-s,a=i+s;break;case 2:o=e+s,i=a-s;break;case 3:e=o-s,i=a-s}this._root&&this._root.length&&(this._root=l)}return this._x0=e,this._y0=i,this._x1=o,this._y1=a,this},nu.data=function ame(){var n=[];return this.visit(function(r){if(!r.length)do{n.push(r.data)}while(r=r.next)}),n},nu.extent=function sme(n){return arguments.length?this.cover(+n[0][0],+n[0][1]).cover(+n[1][0],+n[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},nu.find=function lme(n,r,e){var i,s,l,u,d,z,q,o=this._x0,a=this._y0,h=this._x1,g=this._y1,C=[],Z=this._root;for(Z&&C.push(new tu(Z,o,a,h,g)),null==e?e=1/0:(o=n-e,a=r-e,h=n+e,g=r+e,e*=e);z=C.pop();)if(!(!(Z=z.node)||(s=z.x0)>h||(l=z.y0)>g||(u=z.x1)<o||(d=z.y1)<a))if(Z.length){var re=(s+u)/2,ae=(l+d)/2;C.push(new tu(Z[3],re,ae,u,d),new tu(Z[2],s,ae,re,d),new tu(Z[1],re,l,u,ae),new tu(Z[0],s,l,re,ae)),(q=(r>=ae)<<1|n>=re)&&(z=C[C.length-1],C[C.length-1]=C[C.length-1-q],C[C.length-1-q]=z)}else{var Se=n-+this._x.call(null,Z.data),Ce=r-+this._y.call(null,Z.data),Ee=Se*Se+Ce*Ce;if(Ee<e){var Ve=Math.sqrt(e=Ee);o=n-Ve,a=r-Ve,h=n+Ve,g=r+Ve,i=Z.data}}return i},nu.remove=function ume(n){if(isNaN(h=+this._x.call(null,n))||isNaN(g=+this._y.call(null,n)))return this;var r,i,o,a,h,g,C,Z,z,q,re,ae,e=this._root,s=this._x0,l=this._y0,u=this._x1,d=this._y1;if(!e)return this;if(e.length)for(;;){if((z=h>=(C=(s+u)/2))?s=C:u=C,(q=g>=(Z=(l+d)/2))?l=Z:d=Z,r=e,!(e=e[re=q<<1|z]))return this;if(!e.length)break;(r[re+1&3]||r[re+2&3]||r[re+3&3])&&(i=r,ae=re)}for(;e.data!==n;)if(o=e,!(e=e.next))return this;return(a=e.next)&&delete e.next,o?(a?o.next=a:delete o.next,this):r?(a?r[re]=a:delete r[re],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[ae]=e:this._root=e),this):(this._root=a,this)},nu.removeAll=function cme(n){for(var r=0,e=n.length;r<e;++r)this.remove(n[r]);return this},nu.root=function dme(){return this._root},nu.size=function fme(){var n=0;return this.visit(function(r){if(!r.length)do{++n}while(r=r.next)}),n},nu.visit=function pme(n){var e,o,a,s,l,u,r=[],i=this._root;for(i&&r.push(new tu(i,this._x0,this._y0,this._x1,this._y1));e=r.pop();)if(!n(i=e.node,a=e.x0,s=e.y0,l=e.x1,u=e.y1)&&i.length){var d=(a+l)/2,h=(s+u)/2;(o=i[3])&&r.push(new tu(o,d,h,l,u)),(o=i[2])&&r.push(new tu(o,a,h,d,u)),(o=i[1])&&r.push(new tu(o,d,s,l,h)),(o=i[0])&&r.push(new tu(o,a,s,d,h))}return this},nu.visitAfter=function hme(n){var i,r=[],e=[];for(this._root&&r.push(new tu(this._root,this._x0,this._y0,this._x1,this._y1));i=r.pop();){var o=i.node;if(o.length){var a,s=i.x0,l=i.y0,u=i.x1,d=i.y1,h=(s+u)/2,g=(l+d)/2;(a=o[0])&&r.push(new tu(a,s,l,h,g)),(a=o[1])&&r.push(new tu(a,h,l,u,g)),(a=o[2])&&r.push(new tu(a,s,g,h,d)),(a=o[3])&&r.push(new tu(a,h,g,u,d))}e.push(i)}for(;i=e.pop();)n(i.node,i.x0,i.y0,i.x1,i.y1);return this},nu.x=function _me(n){return arguments.length?(this._x=n,this):this._x},nu.y=function vme(n){return arguments.length?(this._y=n,this):this._y};var Vq,Eme=Math.PI*(3-Math.sqrt(5));function xme(n){var r,e=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,l=cg(),u=sx(h),d=Xy("tick","end");function h(){g(),d.call("tick",r),e<i&&(u.stop(),d.call("end",r))}function g(){var z,re,q=n.length;for(e+=(a-e)*o,l.each(function(ae){ae(e)}),z=0;z<q;++z)null==(re=n[z]).fx?re.x+=re.vx*=s:(re.x=re.fx,re.vx=0),null==re.fy?re.y+=re.vy*=s:(re.y=re.fy,re.vy=0)}function C(){for(var re,z=0,q=n.length;z<q;++z){if((re=n[z]).index=z,isNaN(re.x)||isNaN(re.y)){var ae=10*Math.sqrt(z),Se=z*Eme;re.x=ae*Math.cos(Se),re.y=ae*Math.sin(Se)}(isNaN(re.vx)||isNaN(re.vy))&&(re.vx=re.vy=0)}}function Z(z){return z.initialize&&z.initialize(n),z}return null==n&&(n=[]),C(),r={tick:g,restart:function(){return u.restart(h),r},stop:function(){return u.stop(),r},nodes:function(q){return arguments.length?(n=q,C(),l.each(Z),r):n},alpha:function(q){return arguments.length?(e=+q,r):e},alphaMin:function(q){return arguments.length?(i=+q,r):i},alphaDecay:function(q){return arguments.length?(o=+q,r):+o},alphaTarget:function(q){return arguments.length?(a=+q,r):a},velocityDecay:function(q){return arguments.length?(s=1-q,r):1-s},force:function(q,re){return arguments.length>1?(null==re?l.remove(q):l.set(q,Z(re)),r):l.get(q)},find:function(q,re,ae){var Ee,Ve,ut,Ae,ot,Se=0,Ce=n.length;for(null==ae?ae=1/0:ae*=ae,Se=0;Se<Ce;++Se)(ut=(Ee=q-(Ae=n[Se]).x)*Ee+(Ve=re-Ae.y)*Ve)<ae&&(ot=Ae,ae=ut);return ot},on:function(q,re){return arguments.length>1?(d.on(q,re),r):d.on(q)}}}function Dme(){var n,r,e,o,i=bs(-30),a=1,s=1/0,l=.81;function u(C){var Z,z=n.length,q=rZ(n,Tme,Mme).visitAfter(h);for(e=C,Z=0;Z<z;++Z)r=n[Z],q.visit(g)}function d(){if(n){var C,z,Z=n.length;for(o=new Array(Z),C=0;C<Z;++C)z=n[C],o[z.index]=+i(z,C,n)}}function h(C){var z,q,ae,Se,Ce,Z=0,re=0;if(C.length){for(ae=Se=Ce=0;Ce<4;++Ce)(z=C[Ce])&&(q=Math.abs(z.value))&&(Z+=z.value,re+=q,ae+=q*z.x,Se+=q*z.y);C.x=ae/re,C.y=Se/re}else{(z=C).x=z.data.x,z.y=z.data.y;do{Z+=o[z.data.index]}while(z=z.next)}C.value=Z}function g(C,Z,z,q){if(!C.value)return!0;var re=C.x-r.x,ae=C.y-r.y,Se=q-Z,Ce=re*re+ae*ae;if(Se*Se/l<Ce)return Ce<s&&(0===re&&(Ce+=(re=hg())*re),0===ae&&(Ce+=(ae=hg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)),r.vx+=re*C.value*e/Ce,r.vy+=ae*C.value*e/Ce),!0;if(!(C.length||Ce>=s)){(C.data!==r||C.next)&&(0===re&&(Ce+=(re=hg())*re),0===ae&&(Ce+=(ae=hg())*ae),Ce<a&&(Ce=Math.sqrt(a*Ce)));do{C.data!==r&&(Se=o[C.data.index]*e/Ce,r.vx+=re*Se,r.vy+=ae*Se)}while(C=C.next)}}return u.initialize=function(C){n=C,d()},u.strength=function(C){return arguments.length?(i="function"==typeof C?C:bs(+C),d(),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 Ame(n,r,e){var i,a,s,o=bs(.1);function l(d){for(var h=0,g=i.length;h<g;++h){var C=i[h],Z=C.x-r||1e-6,z=C.y-e||1e-6,q=Math.sqrt(Z*Z+z*z),re=(s[h]-q)*a[h]*d/q;C.vx+=Z*re,C.vy+=z*re}}function u(){if(i){var d,h=i.length;for(a=new Array(h),s=new Array(h),d=0;d<h;++d)s[d]=+n(i[d],d,i),a[d]=isNaN(s[d])?0:+o(i[d],d,i)}}return"function"!=typeof n&&(n=bs(+n)),null==r&&(r=0),null==e&&(e=0),l.initialize=function(d){i=d,u()},l.strength=function(d){return arguments.length?(o="function"==typeof d?d:bs(+d),u(),l):o},l.radius=function(d){return arguments.length?(n="function"==typeof d?d:bs(+d),u(),l):n},l.x=function(d){return arguments.length?(r=+d,l):r},l.y=function(d){return arguments.length?(e=+d,l):e},l}function Ome(n){var e,i,o,r=bs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vx+=(o[u]-h.x)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=bs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:bs(+l),s(),a):r},a.x=function(l){return arguments.length?(n="function"==typeof l?l:bs(+l),s(),a):n},a}function Ime(n){var e,i,o,r=bs(.1);function a(l){for(var h,u=0,d=e.length;u<d;++u)(h=e[u]).vy+=(o[u]-h.y)*i[u]*l}function s(){if(e){var l,u=e.length;for(i=new Array(u),o=new Array(u),l=0;l<u;++l)i[l]=isNaN(o[l]=+n(e[l],l,e))?0:+r(e[l],l,e)}}return"function"!=typeof n&&(n=bs(null==n?0:+n)),a.initialize=function(l){e=l,s()},a.strength=function(l){return arguments.length?(r="function"==typeof l?l:bs(+l),s(),a):r},a.y=function(l){return arguments.length?(n="function"==typeof l?l:bs(+l),s(),a):n},a}function iZ(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function cw(n){return(n=iZ(Math.abs(n)))?n[1]:NaN}function Yq(n,r){var e=iZ(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}var Kq={"":function Lme(n,r){e:for(var a,e=(n=n.toPrecision(r)).length,i=1,o=-1;i<e;++i)switch(n[i]){case".":o=a=i;break;case"0":0===o&&(o=i),a=i;break;case"e":break e;default:o>0&&(o=0)}return o>0?n.slice(0,o)+n.slice(a+1):n},"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function(r){return Math.round(r).toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return Yq(100*r,e)},r:Yq,s:function Zme(n,r){var e=iZ(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(Vq=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+iZ(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}},Nme=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function oZ(n){return new Z9(n)}function Z9(n){if(!(r=Nme.exec(n)))throw new Error("invalid format: "+n);var r,e=r[1]||" ",i=r[2]||">",o=r[3]||"-",a=r[4]||"",s=!!r[5],l=r[6]&&+r[6],u=!!r[7],d=r[8]&&+r[8].slice(1),h=r[9]||"";"n"===h?(u=!0,h="g"):Kq[h]||(h=""),(s||"0"===e&&"="===i)&&(s=!0,e="0",i="="),this.fill=e,this.align=i,this.sign=o,this.symbol=a,this.zero=s,this.width=l,this.comma=u,this.precision=d,this.type=h}function qq(n){return n}oZ.prototype=Z9.prototype,Z9.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var aZ,Xq,$q,Jq=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Qq(n){var r=n.grouping&&n.thousands?function Pme(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(n.grouping,n.thousands):qq,e=n.currency,i=n.decimal,o=n.numerals?function Rme(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(n.numerals):qq,a=n.percent||"%";function s(u){var d=(u=oZ(u)).fill,h=u.align,g=u.sign,C=u.symbol,Z=u.zero,z=u.width,q=u.comma,re=u.precision,ae=u.type,Se="$"===C?e[0]:"#"===C&&/[boxX]/.test(ae)?"0"+ae.toLowerCase():"",Ce="$"===C?e[1]:/[%p]/.test(ae)?a:"",Ee=Kq[ae],Ve=!ae||/[defgprs%]/.test(ae);function ut(Ae){var bt,Xe,Pe,ot=Se,ht=Ce;if("c"===ae)ht=Ee(Ae)+ht,Ae="";else{var ft=(Ae=+Ae)<0;if(Ae=Ee(Math.abs(Ae),re),ft&&0==+Ae&&(ft=!1),ot=(ft?"("===g?g:"-":"-"===g||"("===g?"":g)+ot,ht=("s"===ae?Jq[8+Vq/3]:"")+ht+(ft&&"("===g?")":""),Ve)for(bt=-1,Xe=Ae.length;++bt<Xe;)if(48>(Pe=Ae.charCodeAt(bt))||Pe>57){ht=(46===Pe?i+Ae.slice(bt+1):Ae.slice(bt))+ht,Ae=Ae.slice(0,bt);break}}q&&!Z&&(Ae=r(Ae,1/0));var Nt=ot.length+Ae.length+ht.length,Gt=Nt<z?new Array(z-Nt+1).join(d):"";switch(q&&Z&&(Ae=r(Gt+Ae,Gt.length?z-ht.length:1/0),Gt=""),h){case"<":Ae=ot+Ae+ht+Gt;break;case"=":Ae=ot+Gt+Ae+ht;break;case"^":Ae=Gt.slice(0,Nt=Gt.length>>1)+ot+Ae+ht+Gt.slice(Nt);break;default:Ae=Gt+ot+Ae+ht}return o(Ae)}return re=null==re?ae?6:12:/[gprs]/.test(ae)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re)),ut.toString=function(){return u+""},ut}return{format:s,formatPrefix:function l(u,d){var h=s(((u=oZ(u)).type="f",u)),g=3*Math.max(-8,Math.min(8,Math.floor(cw(d)/3))),C=Math.pow(10,-g),Z=Jq[8+g/3];return function(z){return h(C*z)+Z}}}}function eJ(n){return aZ=Qq(n),Xq=aZ.format,$q=aZ.formatPrefix,aZ}function Bme(n){return Math.max(0,-cw(Math.abs(n)))}function Fme(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cw(r)/3)))-cw(Math.abs(n)))}function Ume(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,cw(r)-cw(n))+1}function mg(){return new sZ}function sZ(){this.reset()}eJ({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sZ.prototype={constructor:sZ,reset:function(){this.s=this.t=0},add:function(r){tJ(lZ,r,this.t),tJ(this,lZ.s,this.s),this.s?this.t+=lZ.t:this.s=lZ.t},valueOf:function(){return this.s}};var lZ=new sZ;function tJ(n,r,e){var i=n.s=r+e,o=i-r,a=i-o;n.t=r-a+(e-o)}var Er=1e-6,Pi=Math.PI,xa=Pi/2,uZ=Pi/4,Ru=2*Pi,zo=180/Pi,Rr=Pi/180,no=Math.abs,dw=Math.atan,ru=Math.atan2,xr=Math.cos,cZ=Math.ceil,rJ=Math.exp,dZ=(Math.floor,Math.log),N9=Math.pow,mr=Math.sin,_x=Math.sign||function(n){return n>0?1:n<0?-1:0},Cs=Math.sqrt,B9=Math.tan;function iJ(n){return n>1?0:n<-1?Pi:Math.acos(n)}function _c(n){return n>1?xa:n<-1?-xa:Math.asin(n)}function oJ(n){return(n=mr(n/2))*n}function ma(){}function fZ(n,r){n&&sJ.hasOwnProperty(n.type)&&sJ[n.type](n,r)}var aJ={Feature:function(r,e){fZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)fZ(i[o].geometry,e)}},sJ={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){F9(r.coordinates,e,0)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)F9(i[o],e,0)},Polygon:function(r,e){lJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)lJ(i[o],e)},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)fZ(i[o],e)}};function F9(n,r,e){var a,i=-1,o=n.length-e;for(r.lineStart();++i<o;)a=n[i],r.point(a[0],a[1],a[2]);r.lineEnd()}function lJ(n,r){var e=-1,i=n.length;for(r.polygonStart();++e<i;)F9(n[e],r,1);r.polygonEnd()}function Qd(n,r){n&&aJ.hasOwnProperty(n.type)?aJ[n.type](n,r):fZ(n,r)}var uJ,cJ,U9,H9,j9,pZ=mg(),hZ=mg(),fp={point:ma,lineStart:ma,lineEnd:ma,polygonStart:function(){pZ.reset(),fp.lineStart=Hme,fp.lineEnd=jme},polygonEnd:function(){var r=+pZ;hZ.add(r<0?Ru+r:r),this.lineStart=this.lineEnd=this.point=ma},sphere:function(){hZ.add(Ru)}};function Hme(){fp.point=Gme}function jme(){dJ(uJ,cJ)}function Gme(n,r){fp.point=dJ,uJ=n,cJ=r,U9=n*=Rr,H9=xr(r=(r*=Rr)/2+uZ),j9=mr(r)}function dJ(n,r){var e=(n*=Rr)-U9,i=e>=0?1:-1,o=i*e,a=xr(r=(r*=Rr)/2+uZ),s=mr(r),l=j9*s,u=H9*a+l*xr(o),d=l*i*mr(o);pZ.add(ru(d,u)),U9=n,H9=a,j9=s}function zme(n){return hZ.reset(),Qd(n,fp),2*hZ}function mZ(n){return[ru(n[1],n[0]),_c(n[2])]}function s0(n){var r=n[0],e=n[1],i=xr(e);return[i*xr(r),i*mr(r),mr(e)]}function _Z(n,r){return n[0]*r[0]+n[1]*r[1]+n[2]*r[2]}function fw(n,r){return[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]}function G9(n,r){n[0]+=r[0],n[1]+=r[1],n[2]+=r[2]}function gZ(n,r){return[n[0]*r,n[1]*r,n[2]*r]}function vZ(n){var r=Cs(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=r,n[1]/=r,n[2]/=r}var Da,gc,za,qc,l0,fJ,pJ,pw,_g,em,gx=mg(),tm={point:z9,lineStart:mJ,lineEnd:_J,polygonStart:function(){tm.point=gJ,tm.lineStart=Wme,tm.lineEnd=Vme,gx.reset(),fp.polygonStart()},polygonEnd:function(){fp.polygonEnd(),tm.point=z9,tm.lineStart=mJ,tm.lineEnd=_J,pZ<0?(Da=-(za=180),gc=-(qc=90)):gx>Er?qc=90:gx<-Er&&(gc=-90),em[0]=Da,em[1]=za}};function z9(n,r){_g.push(em=[Da=n,za=n]),r<gc&&(gc=r),r>qc&&(qc=r)}function hJ(n,r){var e=s0([n*Rr,r*Rr]);if(pw){var i=fw(pw,e),a=fw([i[1],-i[0],0],i);vZ(a),a=mZ(a);var d,s=n-l0,l=s>0?1:-1,u=a[0]*zo*l,h=no(s)>180;h^(l*l0<u&&u<l*n)?(d=a[1]*zo)>qc&&(qc=d):h^(l*l0<(u=(u+360)%360-180)&&u<l*n)?(d=-a[1]*zo)<gc&&(gc=d):(r<gc&&(gc=r),r>qc&&(qc=r)),h?n<l0?vc(Da,n)>vc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n):za>=Da?(n<Da&&(Da=n),n>za&&(za=n)):n>l0?vc(Da,n)>vc(Da,za)&&(za=n):vc(n,za)>vc(Da,za)&&(Da=n)}else _g.push(em=[Da=n,za=n]);r<gc&&(gc=r),r>qc&&(qc=r),pw=e,l0=n}function mJ(){tm.point=hJ}function _J(){em[0]=Da,em[1]=za,tm.point=z9,pw=null}function gJ(n,r){if(pw){var e=n-l0;gx.add(no(e)>180?e+(e>0?360:-360):e)}else fJ=n,pJ=r;fp.point(n,r),hJ(n,r)}function Wme(){fp.lineStart()}function Vme(){gJ(fJ,pJ),fp.lineEnd(),no(gx)>Er&&(Da=-(za=180)),em[0]=Da,em[1]=za,pw=null}function vc(n,r){return(r-=n)<0?r+360:r}function Yme(n,r){return n[0]-r[0]}function vJ(n,r){return n[0]<=n[1]?n[0]<=r&&r<=n[1]:r<n[0]||n[1]<r}function Kme(n){var r,e,i,o,a,s,l;if(qc=za=-(Da=gc=1/0),_g=[],Qd(n,tm),e=_g.length){for(_g.sort(Yme),r=1,a=[i=_g[0]];r<e;++r)vJ(i,(o=_g[r])[0])||vJ(i,o[1])?(vc(i[0],o[1])>vc(i[0],i[1])&&(i[1]=o[1]),vc(o[0],i[1])>vc(i[0],i[1])&&(i[0]=o[0])):a.push(i=o);for(s=-1/0,r=0,i=a[e=a.length-1];r<=e;i=o,++r)o=a[r],(l=vc(i[1],o[0]))>s&&(s=l,Da=o[0],za=i[1])}return _g=em=null,Da===1/0||gc===1/0?[[NaN,NaN],[NaN,NaN]]:[[Da,gc],[za,qc]]}var vx,yZ,bZ,CZ,wZ,kZ,TZ,MZ,W9,V9,Y9,yJ,bJ,iu,ou,au,Xd={sphere:ma,point:K9,lineStart:CJ,lineEnd:wJ,polygonStart:function(){Xd.lineStart=Qme,Xd.lineEnd=Xme},polygonEnd:function(){Xd.lineStart=CJ,Xd.lineEnd=wJ}};function K9(n,r){n*=Rr;var e=xr(r*=Rr);yx(e*xr(n),e*mr(n),mr(r))}function yx(n,r,e){++vx,bZ+=(n-bZ)/vx,CZ+=(r-CZ)/vx,wZ+=(e-wZ)/vx}function CJ(){Xd.point=qme}function qme(n,r){n*=Rr;var e=xr(r*=Rr);iu=e*xr(n),ou=e*mr(n),au=mr(r),Xd.point=Jme,yx(iu,ou,au)}function Jme(n,r){n*=Rr;var e=xr(r*=Rr),i=e*xr(n),o=e*mr(n),a=mr(r),s=ru(Cs((s=ou*a-au*o)*s+(s=au*i-iu*a)*s+(s=iu*o-ou*i)*s),iu*i+ou*o+au*a);yZ+=s,kZ+=s*(iu+(iu=i)),TZ+=s*(ou+(ou=o)),MZ+=s*(au+(au=a)),yx(iu,ou,au)}function wJ(){Xd.point=K9}function Qme(){Xd.point=$me}function Xme(){kJ(yJ,bJ),Xd.point=K9}function $me(n,r){yJ=n,bJ=r,n*=Rr,r*=Rr,Xd.point=kJ;var e=xr(r);iu=e*xr(n),ou=e*mr(n),au=mr(r),yx(iu,ou,au)}function kJ(n,r){n*=Rr;var e=xr(r*=Rr),i=e*xr(n),o=e*mr(n),a=mr(r),s=ou*a-au*o,l=au*i-iu*a,u=iu*o-ou*i,d=Cs(s*s+l*l+u*u),h=_c(d),g=d&&-h/d;W9+=g*s,V9+=g*l,Y9+=g*u,yZ+=h,kZ+=h*(iu+(iu=i)),TZ+=h*(ou+(ou=o)),MZ+=h*(au+(au=a)),yx(iu,ou,au)}function e_e(n){vx=yZ=bZ=CZ=wZ=kZ=TZ=MZ=W9=V9=Y9=0,Qd(n,Xd);var r=W9,e=V9,i=Y9,o=r*r+e*e+i*i;return o<1e-12&&(r=kZ,e=TZ,i=MZ,yZ<Er&&(r=bZ,e=CZ,i=wZ),(o=r*r+e*e+i*i)<1e-12)?[NaN,NaN]:[ru(e,r)*zo,_c(i/Cs(o))*zo]}function hw(n){return function(){return n}}function q9(n,r){function e(i,o){return i=n(i,o),r(i[0],i[1])}return n.invert&&r.invert&&(e.invert=function(i,o){return(i=r.invert(i,o))&&n.invert(i[0],i[1])}),e}function J9(n,r){return[n>Pi?n-Ru:n<-Pi?n+Ru:n,r]}function Q9(n,r,e){return(n%=Ru)?r||e?q9(MJ(n),SJ(r,e)):MJ(n):r||e?SJ(r,e):J9}function TJ(n){return function(r,e){return[(r+=n)>Pi?r-Ru:r<-Pi?r+Ru:r,e]}}function MJ(n){var r=TJ(n);return r.invert=TJ(-n),r}function SJ(n,r){var e=xr(n),i=mr(n),o=xr(r),a=mr(r);function s(l,u){var d=xr(u),h=xr(l)*d,g=mr(l)*d,C=mr(u),Z=C*e+h*i;return[ru(g*o-Z*a,h*e-C*i),_c(Z*o+g*a)]}return s.invert=function(l,u){var d=xr(u),h=xr(l)*d,g=mr(l)*d,C=mr(u),Z=C*o-g*a;return[ru(g*o+C*a,h*e+Z*i),_c(Z*e-h*i)]},s}function EJ(n){function r(e){return(e=n(e[0]*Rr,e[1]*Rr))[0]*=zo,e[1]*=zo,e}return n=Q9(n[0]*Rr,n[1]*Rr,n.length>2?n[2]*Rr:0),r.invert=function(e){return(e=n.invert(e[0]*Rr,e[1]*Rr))[0]*=zo,e[1]*=zo,e},r}function xJ(n,r,e,i,o,a){if(e){var s=xr(r),l=mr(r),u=i*e;null==o?(o=r+i*Ru,a=r-u/2):(o=DJ(s,o),a=DJ(s,a),(i>0?o<a:o>a)&&(o+=i*Ru));for(var d,h=o;i>0?h>a:h<a;h-=u)d=mZ([s,-l*xr(h),-l*mr(h)]),n.point(d[0],d[1])}}function DJ(n,r){(r=s0(r))[0]-=n,vZ(r);var e=iJ(-r[1]);return((-r[2]<0?-e:e)+Ru-Er)%Ru}function t_e(){var i,o,n=hw([0,0]),r=hw(90),e=hw(6),a={point:function s(u,d){i.push(u=o(u,d)),u[0]*=zo,u[1]*=zo}};function l(){var u=n.apply(this,arguments),d=r.apply(this,arguments)*Rr,h=e.apply(this,arguments)*Rr;return i=[],o=Q9(-u[0]*Rr,-u[1]*Rr,0).invert,xJ(a,d,h,1),u={type:"Polygon",coordinates:[i]},i=o=null,u}return l.center=function(u){return arguments.length?(n="function"==typeof u?u:hw([+u[0],+u[1]]),l):n},l.radius=function(u){return arguments.length?(r="function"==typeof u?u:hw(+u),l):r},l.precision=function(u){return arguments.length?(e="function"==typeof u?u:hw(+u),l):e},l}function AJ(){var r,n=[];return{point:function(i,o){r.push([i,o])},lineStart:function(){n.push(r=[])},lineEnd:ma,rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))},result:function(){var i=n;return n=[],r=null,i}}}function SZ(n,r){return no(n[0]-r[0])<Er&&no(n[1]-r[1])<Er}function EZ(n,r,e,i){this.x=n,this.z=r,this.o=e,this.e=i,this.v=!1,this.n=this.p=null}function OJ(n,r,e,i,o){var l,u,a=[],s=[];if(n.forEach(function(z){if(!((q=z.length-1)<=0)){var q,Se,re=z[0],ae=z[q];if(SZ(re,ae)){for(o.lineStart(),l=0;l<q;++l)o.point((re=z[l])[0],re[1]);return void o.lineEnd()}a.push(Se=new EZ(re,z,null,!0)),s.push(Se.o=new EZ(re,null,Se,!1)),a.push(Se=new EZ(ae,z,null,!1)),s.push(Se.o=new EZ(ae,null,Se,!0))}}),a.length){for(s.sort(r),IJ(a),IJ(s),l=0,u=s.length;l<u;++l)s[l].e=e=!e;for(var h,g,d=a[0];;){for(var C=d,Z=!0;C.v;)if((C=C.n)===d)return;h=C.z,o.lineStart();do{if(C.v=C.o.v=!0,C.e){if(Z)for(l=0,u=h.length;l<u;++l)o.point((g=h[l])[0],g[1]);else i(C.x,C.n.x,1,o);C=C.n}else{if(Z)for(h=C.p.z,l=h.length-1;l>=0;--l)o.point((g=h[l])[0],g[1]);else i(C.x,C.p.x,-1,o);C=C.p}h=(C=C.o).z,Z=!Z}while(!C.v);o.lineEnd()}}}function IJ(n){if(r=n.length){for(var r,o,e=0,i=n[0];++e<r;)i.n=o=n[e],o.p=i,i=o;i.n=o=n[0],o.p=i}}J9.invert=J9;var X9=mg();function PJ(n,r){var e=r[0],i=r[1],o=mr(i),a=[mr(e),-xr(e),0],s=0,l=0;X9.reset(),1===o?i=xa+Er:-1===o&&(i=-xa-Er);for(var u=0,d=n.length;u<d;++u)if(g=(h=n[u]).length)for(var h,g,C=h[g-1],Z=C[0],z=C[1]/2+uZ,q=mr(z),re=xr(z),ae=0;ae<g;++ae,Z=Ce,q=Ve,re=ut,C=Se){var Se=h[ae],Ce=Se[0],Ee=Se[1]/2+uZ,Ve=mr(Ee),ut=xr(Ee),Ae=Ce-Z,ot=Ae>=0?1:-1,ht=ot*Ae,bt=ht>Pi,Xe=q*Ve;if(X9.add(ru(Xe*ot*mr(ht),re*ut+Xe*xr(ht))),s+=bt?Ae+ot*Ru:Ae,bt^Z>=e^Ce>=e){var Pe=fw(s0(C),s0(Se));vZ(Pe);var ft=fw(a,Pe);vZ(ft);var Nt=(bt^Ae>=0?-1:1)*_c(ft[2]);(i>Nt||i===Nt&&(Pe[0]||Pe[1]))&&(l+=bt^Ae>=0?1:-1)}}return(s<-Er||s<Er&&X9<-Er)^1&l}function RJ(n,r,e,i){return function(o){var d,h,g,a=r(o),s=AJ(),l=r(s),u=!1,C={point:Z,lineStart:q,lineEnd:re,polygonStart:function(){C.point=ae,C.lineStart=Se,C.lineEnd=Ce,h=[],d=[]},polygonEnd:function(){C.point=Z,C.lineStart=q,C.lineEnd=re,h=B7(h);var Ve=PJ(d,i);h.length?(u||(o.polygonStart(),u=!0),OJ(h,r_e,Ve,e,o)):Ve&&(u||(o.polygonStart(),u=!0),o.lineStart(),e(null,null,1,o),o.lineEnd()),u&&(o.polygonEnd(),u=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),e(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function Z(Ee,Ve){n(Ee,Ve)&&o.point(Ee,Ve)}function z(Ee,Ve){a.point(Ee,Ve)}function q(){C.point=z,a.lineStart()}function re(){C.point=Z,a.lineEnd()}function ae(Ee,Ve){g.push([Ee,Ve]),l.point(Ee,Ve)}function Se(){l.lineStart(),g=[]}function Ce(){ae(g[0][0],g[0][1]),l.lineEnd();var ut,ot,ht,bt,Ee=l.clean(),Ve=s.result(),Ae=Ve.length;if(g.pop(),d.push(g),g=null,Ae){if(1&Ee){if((ot=(ht=Ve[0]).length-1)>0){for(u||(o.polygonStart(),u=!0),o.lineStart(),ut=0;ut<ot;++ut)o.point((bt=ht[ut])[0],bt[1]);o.lineEnd()}return}Ae>1&&2&Ee&&Ve.push(Ve.pop().concat(Ve.shift())),h.push(Ve.filter(n_e))}}return C}}function n_e(n){return n.length>1}function r_e(n,r){return((n=n.x)[0]<0?n[1]-xa-Er:xa-n[1])-((r=r.x)[0]<0?r[1]-xa-Er:xa-r[1])}var $9=RJ(function(){return!0},function i_e(n){var o,r=NaN,e=NaN,i=NaN;return{lineStart:function(){n.lineStart(),o=1},point:function(s,l){var u=s>0?Pi:-Pi,d=no(s-r);no(d-Pi)<Er?(n.point(r,e=(e+l)/2>0?xa:-xa),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),n.point(s,e),o=0):i!==u&&d>=Pi&&(no(r-i)<Er&&(r-=i*Er),no(s-u)<Er&&(s-=u*Er),e=function o_e(n,r,e,i){var o,a,s=mr(n-e);return no(s)>Er?dw((mr(r)*(a=xr(i))*mr(e)-mr(i)*(o=xr(r))*mr(n))/(o*a*s)):(r+i)/2}(r,e,s,l),n.point(i,e),n.lineEnd(),n.lineStart(),n.point(u,e),o=0),n.point(r=s,e=l),i=u},lineEnd:function(){n.lineEnd(),r=e=NaN},clean:function(){return 2-o}}},function a_e(n,r,e,i){var o;if(null==n)o=e*xa,i.point(-Pi,o),i.point(0,o),i.point(Pi,o),i.point(Pi,0),i.point(Pi,-o),i.point(0,-o),i.point(-Pi,-o),i.point(-Pi,0),i.point(-Pi,o);else if(no(n[0]-r[0])>Er){var a=n[0]<r[0]?Pi:-Pi;o=e*a/2,i.point(-a,o),i.point(0,o),i.point(a,o)}else i.point(r[0],r[1])},[-Pi,-xa]);function LJ(n){var r=xr(n),e=6*Rr,i=r>0,o=no(r)>Er;function s(h,g){return xr(h)*xr(g)>r}function u(h,g,C){var q=[1,0,0],re=fw(s0(h),s0(g)),ae=_Z(re,re),Se=re[0],Ce=ae-Se*Se;if(!Ce)return!C&&h;var Ee=r*ae/Ce,Ve=-r*Se/Ce,ut=fw(q,re),Ae=gZ(q,Ee);G9(Ae,gZ(re,Ve));var ht=ut,bt=_Z(Ae,ht),Xe=_Z(ht,ht),Pe=bt*bt-Xe*(_Z(Ae,Ae)-1);if(!(Pe<0)){var ft=Cs(Pe),Nt=gZ(ht,(-bt-ft)/Xe);if(G9(Nt,Ae),Nt=mZ(Nt),!C)return Nt;var zn,Gt=h[0],It=g[0],Tn=h[1],jn=g[1];It<Gt&&(zn=Gt,Gt=It,It=zn);var or=It-Gt,Mr=no(or-Pi)<Er;if(!Mr&&jn<Tn&&(zn=Tn,Tn=jn,jn=zn),Mr||or<Er?Mr?Tn+jn>0^Nt[1]<(no(Nt[0]-Gt)<Er?Tn:jn):Tn<=Nt[1]&&Nt[1]<=jn:or>Pi^(Gt<=Nt[0]&&Nt[0]<=It)){var zr=gZ(ht,(-bt+ft)/Xe);return G9(zr,Ae),[Nt,mZ(zr)]}}}function d(h,g){var C=i?n:Pi-n,Z=0;return h<-C?Z|=1:h>C&&(Z|=2),g<-C?Z|=4:g>C&&(Z|=8),Z}return RJ(s,function l(h){var g,C,Z,z,q;return{lineStart:function(){z=Z=!1,q=1},point:function(ae,Se){var Ee,Ce=[ae,Se],Ve=s(ae,Se),ut=i?Ve?0:d(ae,Se):Ve?d(ae+(ae<0?Pi:-Pi),Se):0;if(!g&&(z=Z=Ve)&&h.lineStart(),Ve!==Z&&((!(Ee=u(g,Ce))||SZ(g,Ee)||SZ(Ce,Ee))&&(Ce[0]+=Er,Ce[1]+=Er,Ve=s(Ce[0],Ce[1]))),Ve!==Z)q=0,Ve?(h.lineStart(),Ee=u(Ce,g),h.point(Ee[0],Ee[1])):(Ee=u(g,Ce),h.point(Ee[0],Ee[1]),h.lineEnd()),g=Ee;else if(o&&g&&i^Ve){var Ae;!(ut&C)&&(Ae=u(Ce,g,!0))&&(q=0,i?(h.lineStart(),h.point(Ae[0][0],Ae[0][1]),h.point(Ae[1][0],Ae[1][1]),h.lineEnd()):(h.point(Ae[1][0],Ae[1][1]),h.lineEnd(),h.lineStart(),h.point(Ae[0][0],Ae[0][1])))}Ve&&(!g||!SZ(g,Ce))&&h.point(Ce[0],Ce[1]),g=Ce,Z=Ve,C=ut},lineEnd:function(){Z&&h.lineEnd(),g=null},clean:function(){return q|(z&&Z)<<1}}},function a(h,g,C,Z){xJ(Z,n,e,C,h,g)},i?[0,-n]:[-Pi,n-Pi])}var bx=1e9,xZ=-bx;function DZ(n,r,e,i){function o(d,h){return n<=d&&d<=e&&r<=h&&h<=i}function a(d,h,g,C){var Z=0,z=0;if(null==d||(Z=s(d,g))!==(z=s(h,g))||u(d,h)<0^g>0)do{C.point(0===Z||3===Z?n:e,Z>1?i:r)}while((Z=(Z+g+4)%4)!==z);else C.point(h[0],h[1])}function s(d,h){return no(d[0]-n)<Er?h>0?0:3:no(d[0]-e)<Er?h>0?2:1:no(d[1]-r)<Er?h>0?1:0:h>0?3:2}function l(d,h){return u(d.x,h.x)}function u(d,h){var g=s(d,1),C=s(h,1);return g!==C?g-C:0===g?h[1]-d[1]:1===g?d[0]-h[0]:2===g?d[1]-h[1]:h[0]-d[0]}return function(d){var C,Z,z,q,re,ae,Se,Ce,Ee,Ve,ut,h=d,g=AJ(),Ae={point:ot,lineStart:function Pe(){Ae.point=Nt,Z&&Z.push(z=[]),Ve=!0,Ee=!1,Se=Ce=NaN},lineEnd:function ft(){C&&(Nt(q,re),ae&&Ee&&g.rejoin(),C.push(g.result())),Ae.point=ot,Ee&&h.lineEnd()},polygonStart:function bt(){h=g,C=[],Z=[],ut=!0},polygonEnd:function Xe(){var Gt=function ht(){for(var Gt=0,It=0,Tn=Z.length;It<Tn;++It)for(var _r,zr,jn=Z[It],zn=1,or=jn.length,Mr=jn[0],Ur=Mr[0],Kr=Mr[1];zn<or;++zn)_r=Ur,zr=Kr,Mr=jn[zn],Ur=Mr[0],Kr=Mr[1],zr<=i?Kr>i&&(Ur-_r)*(i-zr)>(Kr-zr)*(n-_r)&&++Gt:Kr<=i&&(Ur-_r)*(i-zr)<(Kr-zr)*(n-_r)&&--Gt;return Gt}(),It=ut&&Gt,Tn=(C=B7(C)).length;(It||Tn)&&(d.polygonStart(),It&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tn&&OJ(C,l,Gt,a,d),d.polygonEnd()),h=d,C=Z=z=null}};function ot(Gt,It){o(Gt,It)&&h.point(Gt,It)}function Nt(Gt,It){var Tn=o(Gt,It);if(Z&&z.push([Gt,It]),Ve)q=Gt,re=It,ae=Tn,Ve=!1,Tn&&(h.lineStart(),h.point(Gt,It));else if(Tn&&Ee)h.point(Gt,It);else{var jn=[Se=Math.max(xZ,Math.min(bx,Se)),Ce=Math.max(xZ,Math.min(bx,Ce))],zn=[Gt=Math.max(xZ,Math.min(bx,Gt)),It=Math.max(xZ,Math.min(bx,It))];!function s_e(n,r,e,i,o,a){var z,s=n[0],l=n[1],h=0,g=1,C=r[0]-s,Z=r[1]-l;if(z=e-s,C||!(z>0)){if(z/=C,C<0){if(z<h)return;z<g&&(g=z)}else if(C>0){if(z>g)return;z>h&&(h=z)}if(z=o-s,C||!(z<0)){if(z/=C,C<0){if(z>g)return;z>h&&(h=z)}else if(C>0){if(z<h)return;z<g&&(g=z)}if(z=i-l,Z||!(z>0)){if(z/=Z,Z<0){if(z<h)return;z<g&&(g=z)}else if(Z>0){if(z>g)return;z>h&&(h=z)}if(z=a-l,Z||!(z<0)){if(z/=Z,Z<0){if(z>g)return;z>h&&(h=z)}else if(Z>0){if(z<h)return;z<g&&(g=z)}return h>0&&(n[0]=s+h*C,n[1]=l+h*Z),g<1&&(r[0]=s+g*C,r[1]=l+g*Z),!0}}}}}(jn,zn,n,r,e,i)?Tn&&(h.lineStart(),h.point(Gt,It),ut=!1):(Ee||(h.lineStart(),h.point(jn[0],jn[1])),h.point(zn[0],zn[1]),Tn||h.lineEnd(),ut=!1)}Se=Gt,Ce=It,Ee=Tn}return Ae}}function l_e(){var o,a,s,n=0,r=0,e=960,i=500;return s={stream:function(u){return o&&a===u?o:o=DZ(n,r,e,i)(a=u)},extent:function(u){return arguments.length?(n=+u[0][0],r=+u[0][1],e=+u[1][0],i=+u[1][1],o=a=null,s):[[n,r],[e,i]]}}}var tH,AZ,OZ,eH=mg(),mw={sphere:ma,point:ma,lineStart:function u_e(){mw.point=d_e,mw.lineEnd=c_e},lineEnd:ma,polygonStart:ma,polygonEnd:ma};function c_e(){mw.point=mw.lineEnd=ma}function d_e(n,r){tH=n*=Rr,AZ=mr(r*=Rr),OZ=xr(r),mw.point=f_e}function f_e(n,r){n*=Rr;var e=mr(r*=Rr),i=xr(r),o=no(n-tH),a=xr(o),l=i*mr(o),u=OZ*e-AZ*i*a,d=AZ*e+OZ*i*a;eH.add(ru(Cs(l*l+u*u),d)),tH=n,AZ=e,OZ=i}function ZJ(n){return eH.reset(),Qd(n,mw),+eH}var nH=[null,null],p_e={type:"LineString",coordinates:nH};function Cx(n,r){return nH[0]=n,nH[1]=r,ZJ(p_e)}var NJ={Feature:function(r,e){return IZ(r.geometry,e)},FeatureCollection:function(r,e){for(var i=r.features,o=-1,a=i.length;++o<a;)if(IZ(i[o].geometry,e))return!0;return!1}},BJ={Sphere:function(){return!0},Point:function(r,e){return FJ(r.coordinates,e)},MultiPoint:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(FJ(i[o],e))return!0;return!1},LineString:function(r,e){return UJ(r.coordinates,e)},MultiLineString:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(UJ(i[o],e))return!0;return!1},Polygon:function(r,e){return HJ(r.coordinates,e)},MultiPolygon:function(r,e){for(var i=r.coordinates,o=-1,a=i.length;++o<a;)if(HJ(i[o],e))return!0;return!1},GeometryCollection:function(r,e){for(var i=r.geometries,o=-1,a=i.length;++o<a;)if(IZ(i[o],e))return!0;return!1}};function IZ(n,r){return!(!n||!BJ.hasOwnProperty(n.type))&&BJ[n.type](n,r)}function FJ(n,r){return 0===Cx(n,r)}function UJ(n,r){var e=Cx(n[0],n[1]);return Cx(n[0],r)+Cx(r,n[1])<=e+Er}function HJ(n,r){return!!PJ(n.map(h_e),jJ(r))}function h_e(n){return(n=n.map(jJ)).pop(),n}function jJ(n){return[n[0]*Rr,n[1]*Rr]}function m_e(n,r){return(n&&NJ.hasOwnProperty(n.type)?NJ[n.type]:IZ)(n,r)}function GJ(n,r,e){var i=hc(n,r-Er,e).concat(r);return function(o){return i.map(function(a){return[o,a]})}}function zJ(n,r,e){var i=hc(n,r-Er,e).concat(r);return function(o){return i.map(function(a){return[a,o]})}}function WJ(){var n,r,e,i,o,a,s,l,C,Z,z,q,u=10,d=u,h=90,g=360,re=2.5;function ae(){return{type:"MultiLineString",coordinates:Se()}}function Se(){return hc(cZ(i/h)*h,e,h).map(z).concat(hc(cZ(l/g)*g,s,g).map(q)).concat(hc(cZ(r/u)*u,n,u).filter(function(Ce){return no(Ce%h)>Er}).map(C)).concat(hc(cZ(a/d)*d,o,d).filter(function(Ce){return no(Ce%g)>Er}).map(Z))}return ae.lines=function(){return Se().map(function(Ce){return{type:"LineString",coordinates:Ce}})},ae.outline=function(){return{type:"Polygon",coordinates:[z(i).concat(q(s).slice(1),z(e).reverse().slice(1),q(l).reverse().slice(1))]}},ae.extent=function(Ce){return arguments.length?ae.extentMajor(Ce).extentMinor(Ce):ae.extentMinor()},ae.extentMajor=function(Ce){return arguments.length?(i=+Ce[0][0],e=+Ce[1][0],l=+Ce[0][1],s=+Ce[1][1],i>e&&(Ce=i,i=e,e=Ce),l>s&&(Ce=l,l=s,s=Ce),ae.precision(re)):[[i,l],[e,s]]},ae.extentMinor=function(Ce){return arguments.length?(r=+Ce[0][0],n=+Ce[1][0],a=+Ce[0][1],o=+Ce[1][1],r>n&&(Ce=r,r=n,n=Ce),a>o&&(Ce=a,a=o,o=Ce),ae.precision(re)):[[r,a],[n,o]]},ae.step=function(Ce){return arguments.length?ae.stepMajor(Ce).stepMinor(Ce):ae.stepMinor()},ae.stepMajor=function(Ce){return arguments.length?(h=+Ce[0],g=+Ce[1],ae):[h,g]},ae.stepMinor=function(Ce){return arguments.length?(u=+Ce[0],d=+Ce[1],ae):[u,d]},ae.precision=function(Ce){return arguments.length?(re=+Ce,C=GJ(a,o,90),Z=zJ(r,n,re),z=GJ(l,s,90),q=zJ(i,e,re),ae):re},ae.extentMajor([[-180,-90+Er],[180,90-Er]]).extentMinor([[-180,-80-Er],[180,80+Er]])}function __e(){return WJ()()}function g_e(n,r){var e=n[0]*Rr,i=n[1]*Rr,o=r[0]*Rr,a=r[1]*Rr,s=xr(i),l=mr(i),u=xr(a),d=mr(a),h=s*xr(e),g=s*mr(e),C=u*xr(o),Z=u*mr(o),z=2*_c(Cs(oJ(a-i)+s*u*oJ(o-e))),q=mr(z),re=z?function(ae){var Se=mr(ae*=z)/q,Ce=mr(z-ae)/q,Ee=Ce*h+Se*C,Ve=Ce*g+Se*Z,ut=Ce*l+Se*d;return[ru(Ve,Ee)*zo,ru(ut,Cs(Ee*Ee+Ve*Ve))*zo]}:function(){return[e*zo,i*zo]};return re.distance=z,re}function u0(n){return n}var VJ,YJ,oH,aH,rH=mg(),iH=mg(),gg={point:ma,lineStart:ma,lineEnd:ma,polygonStart:function(){gg.lineStart=v_e,gg.lineEnd=b_e},polygonEnd:function(){gg.lineStart=gg.lineEnd=gg.point=ma,rH.add(no(iH)),iH.reset()},result:function(){var r=rH/2;return rH.reset(),r}};function v_e(){gg.point=y_e}function y_e(n,r){gg.point=KJ,VJ=oH=n,YJ=aH=r}function KJ(n,r){iH.add(aH*n-oH*r),oH=n,aH=r}function b_e(){KJ(VJ,YJ)}var qJ=gg,_w=1/0,PZ=_w,wx=-_w,RZ=wx,C_e={point:function w_e(n,r){n<_w&&(_w=n),n>wx&&(wx=n),r<PZ&&(PZ=r),r>RZ&&(RZ=r)},lineStart:ma,lineEnd:ma,polygonStart:ma,polygonEnd:ma,result:function(){var r=[[_w,PZ],[wx,RZ]];return wx=RZ=-(PZ=_w=1/0),r}};var JJ,QJ,pp,hp,LZ=C_e,sH=0,lH=0,kx=0,ZZ=0,NZ=0,gw=0,uH=0,cH=0,Tx=0,$d={point:c0,lineStart:XJ,lineEnd:$J,polygonStart:function(){$d.lineStart=M_e,$d.lineEnd=S_e},polygonEnd:function(){$d.point=c0,$d.lineStart=XJ,$d.lineEnd=$J},result:function(){var r=Tx?[uH/Tx,cH/Tx]:gw?[ZZ/gw,NZ/gw]:kx?[sH/kx,lH/kx]:[NaN,NaN];return sH=lH=kx=ZZ=NZ=gw=uH=cH=Tx=0,r}};function c0(n,r){sH+=n,lH+=r,++kx}function XJ(){$d.point=k_e}function k_e(n,r){$d.point=T_e,c0(pp=n,hp=r)}function T_e(n,r){var e=n-pp,i=r-hp,o=Cs(e*e+i*i);ZZ+=o*(pp+n)/2,NZ+=o*(hp+r)/2,gw+=o,c0(pp=n,hp=r)}function $J(){$d.point=c0}function M_e(){$d.point=E_e}function S_e(){eQ(JJ,QJ)}function E_e(n,r){$d.point=eQ,c0(JJ=pp=n,QJ=hp=r)}function eQ(n,r){var e=n-pp,i=r-hp,o=Cs(e*e+i*i);ZZ+=o*(pp+n)/2,NZ+=o*(hp+r)/2,gw+=o,uH+=(o=hp*n-pp*r)*(pp+n),cH+=o*(hp+r),Tx+=3*o,c0(pp=n,hp=r)}var tQ=$d;function nQ(n){this._context=n}nQ.prototype={_radius:4.5,pointRadius:function(r){return this._radius=r,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._context.moveTo(r,e),this._point=1;break;case 1:this._context.lineTo(r,e);break;default:this._context.moveTo(r+this._radius,e),this._context.arc(r,e,this._radius,0,Ru)}},result:ma};var fH,rQ,iQ,Mx,Sx,dH=mg(),BZ={point:ma,lineStart:function(){BZ.point=x_e},lineEnd:function(){fH&&oQ(rQ,iQ),BZ.point=ma},polygonStart:function(){fH=!0},polygonEnd:function(){fH=null},result:function(){var r=+dH;return dH.reset(),r}};function x_e(n,r){BZ.point=oQ,rQ=Mx=n,iQ=Sx=r}function oQ(n,r){Mx-=n,Sx-=r,dH.add(Cs(Mx*Mx+Sx*Sx)),Mx=n,Sx=r}var aQ=BZ;function sQ(){this._string=[]}function lQ(n){return"m0,"+n+"a"+n+","+n+" 0 1,1 0,"+-2*n+"a"+n+","+n+" 0 1,1 0,"+2*n+"z"}function D_e(n,r){var i,o,e=4.5;function a(s){return s&&("function"==typeof e&&o.pointRadius(+e.apply(this,arguments)),Qd(s,i(o))),o.result()}return a.area=function(s){return Qd(s,i(qJ)),qJ.result()},a.measure=function(s){return Qd(s,i(aQ)),aQ.result()},a.bounds=function(s){return Qd(s,i(LZ)),LZ.result()},a.centroid=function(s){return Qd(s,i(tQ)),tQ.result()},a.projection=function(s){return arguments.length?(i=null==s?(n=null,u0):(n=s).stream,a):n},a.context=function(s){return arguments.length?(o=null==s?(r=null,new sQ):new nQ(r=s),"function"!=typeof e&&o.pointRadius(e),a):r},a.pointRadius=function(s){return arguments.length?(e="function"==typeof s?s:(o.pointRadius(+s),+s),a):e},a.projection(n).context(r)}function A_e(n){return{stream:Ex(n)}}function Ex(n){return function(r){var e=new pH;for(var i in n)e[i]=n[i];return e.stream=r,e}}function pH(){}function hH(n,r,e){var i=n.clipExtent&&n.clipExtent();return n.scale(150).translate([0,0]),null!=i&&n.clipExtent(null),Qd(e,n.stream(LZ)),r(LZ.result()),null!=i&&n.clipExtent(i),n}function FZ(n,r,e){return hH(n,function(i){var o=r[1][0]-r[0][0],a=r[1][1]-r[0][1],s=Math.min(o/(i[1][0]-i[0][0]),a/(i[1][1]-i[0][1])),l=+r[0][0]+(o-s*(i[1][0]+i[0][0]))/2,u=+r[0][1]+(a-s*(i[1][1]+i[0][1]))/2;n.scale(150*s).translate([l,u])},e)}function mH(n,r,e){return FZ(n,[[0,0],r],e)}function _H(n,r,e){return hH(n,function(i){var o=+r,a=o/(i[1][0]-i[0][0]),s=(o-a*(i[1][0]+i[0][0]))/2,l=-a*i[0][1];n.scale(150*a).translate([s,l])},e)}function gH(n,r,e){return hH(n,function(i){var o=+r,a=o/(i[1][1]-i[0][1]),s=-a*i[0][0],l=(o-a*(i[1][1]+i[0][1]))/2;n.scale(150*a).translate([s,l])},e)}sQ.prototype={_radius:4.5,_circle:lQ(4.5),pointRadius:function(r){return(r=+r)!==this._radius&&(this._radius=r,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(r,e){switch(this._point){case 0:this._string.push("M",r,",",e),this._point=1;break;case 1:this._string.push("L",r,",",e);break;default:null==this._circle&&(this._circle=lQ(this._radius)),this._string.push("M",r,",",e,this._circle)}},result:function(){if(this._string.length){var r=this._string.join("");return this._string=[],r}return null}},pH.prototype={constructor:pH,point:function(r,e){this.stream.point(r,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var O_e=xr(30*Rr);function cQ(n,r){return+r?function P_e(n,r){function e(i,o,a,s,l,u,d,h,g,C,Z,z,q,re){var ae=d-i,Se=h-o,Ce=ae*ae+Se*Se;if(Ce>4*r&&q--){var Ee=s+C,Ve=l+Z,ut=u+z,Ae=Cs(Ee*Ee+Ve*Ve+ut*ut),ot=_c(ut/=Ae),ht=no(no(ut)-1)<Er||no(a-g)<Er?(a+g)/2:ru(Ve,Ee),bt=n(ht,ot),Xe=bt[0],Pe=bt[1],ft=Xe-i,Nt=Pe-o,Gt=Se*ft-ae*Nt;(Gt*Gt/Ce>r||no((ae*ft+Se*Nt)/Ce-.5)>.3||s*C+l*Z+u*z<O_e)&&(e(i,o,a,s,l,u,Xe,Pe,ht,Ee/=Ae,Ve/=Ae,ut,q,re),re.point(Xe,Pe),e(Xe,Pe,ht,Ee,Ve,ut,d,h,g,C,Z,z,q,re))}}return function(i){var o,a,s,l,u,d,h,g,C,Z,z,q,re={point:ae,lineStart:Se,lineEnd:Ee,polygonStart:function(){i.polygonStart(),re.lineStart=Ve},polygonEnd:function(){i.polygonEnd(),re.lineStart=Se}};function ae(ot,ht){ot=n(ot,ht),i.point(ot[0],ot[1])}function Se(){g=NaN,re.point=Ce,i.lineStart()}function Ce(ot,ht){var bt=s0([ot,ht]),Xe=n(ot,ht);e(g,C,h,Z,z,q,g=Xe[0],C=Xe[1],h=ot,Z=bt[0],z=bt[1],q=bt[2],16,i),i.point(g,C)}function Ee(){re.point=ae,i.lineEnd()}function Ve(){Se(),re.point=ut,re.lineEnd=Ae}function ut(ot,ht){Ce(o=ot,ht),a=g,s=C,l=Z,u=z,d=q,re.point=Ce}function Ae(){e(g,C,h,Z,z,q,a,s,o,l,u,d,16,i),re.lineEnd=Ee,Ee()}return re}}(n,r):function I_e(n){return Ex({point:function(e,i){e=n(e,i),this.stream.point(e[0],e[1])}})}(n)}var R_e=Ex({point:function(r,e){this.stream.point(r*Rr,e*Rr)}});function Z_e(n,r,e){function i(o,a){return[r+n*o,e-n*a]}return i.invert=function(o,a){return[(o-r)/n,(e-a)/n]},i}function dQ(n,r,e,i){var o=xr(i),a=mr(i),s=o*n,l=a*n,u=o/n,d=a/n,h=(a*e-o*r)/n,g=(a*r+o*e)/n;function C(Z,z){return[s*Z-l*z+r,e-l*Z-s*z]}return C.invert=function(Z,z){return[u*Z-d*z+h,g-d*Z-u*z]},C}function nm(n){return vH(function(){return n})()}function vH(n){var r,h,q,re,ae,Ee,Ve,ut,Ae,ot,e=150,i=480,o=250,a=0,s=0,l=0,u=0,d=0,g=0,C=null,Z=$9,z=null,Se=u0,Ce=.5;function ht(ft){return ut(ft[0]*Rr,ft[1]*Rr)}function bt(ft){return(ft=ut.invert(ft[0],ft[1]))&&[ft[0]*zo,ft[1]*zo]}function Xe(){var ft=dQ(e,0,0,g).apply(null,r(a,s)),Nt=(g?dQ:Z_e)(e,i-ft[0],o-ft[1],g);return h=Q9(l,u,d),Ve=q9(r,Nt),ut=q9(h,Ve),Ee=cQ(Ve,Ce),Pe()}function Pe(){return Ae=ot=null,ht}return ht.stream=function(ft){return Ae&&ot===ft?Ae:Ae=R_e(function L_e(n){return Ex({point:function(e,i){var o=n(e,i);return this.stream.point(o[0],o[1])}})}(h)(Z(Ee(Se(ot=ft)))))},ht.preclip=function(ft){return arguments.length?(Z=ft,C=void 0,Pe()):Z},ht.postclip=function(ft){return arguments.length?(Se=ft,z=q=re=ae=null,Pe()):Se},ht.clipAngle=function(ft){return arguments.length?(Z=+ft?LJ(C=ft*Rr):(C=null,$9),Pe()):C*zo},ht.clipExtent=function(ft){return arguments.length?(Se=null==ft?(z=q=re=ae=null,u0):DZ(z=+ft[0][0],q=+ft[0][1],re=+ft[1][0],ae=+ft[1][1]),Pe()):null==z?null:[[z,q],[re,ae]]},ht.scale=function(ft){return arguments.length?(e=+ft,Xe()):e},ht.translate=function(ft){return arguments.length?(i=+ft[0],o=+ft[1],Xe()):[i,o]},ht.center=function(ft){return arguments.length?(a=ft[0]%360*Rr,s=ft[1]%360*Rr,Xe()):[a*zo,s*zo]},ht.rotate=function(ft){return arguments.length?(l=ft[0]%360*Rr,u=ft[1]%360*Rr,d=ft.length>2?ft[2]%360*Rr:0,Xe()):[l*zo,u*zo,d*zo]},ht.angle=function(ft){return arguments.length?(g=ft%360*Rr,Xe()):g*zo},ht.precision=function(ft){return arguments.length?(Ee=cQ(Ve,Ce=ft*ft),Pe()):Cs(Ce)},ht.fitExtent=function(ft,Nt){return FZ(ht,ft,Nt)},ht.fitSize=function(ft,Nt){return mH(ht,ft,Nt)},ht.fitWidth=function(ft,Nt){return _H(ht,ft,Nt)},ht.fitHeight=function(ft,Nt){return gH(ht,ft,Nt)},function(){return r=n.apply(this,arguments),ht.invert=r.invert&&bt,Xe()}}function yH(n){var r=0,e=Pi/3,i=vH(n),o=i(r,e);return o.parallels=function(a){return arguments.length?i(r=a[0]*Rr,e=a[1]*Rr):[r*zo,e*zo]},o}function fQ(n,r){var e=mr(n),i=(e+mr(r))/2;if(no(i)<Er)return function N_e(n){var r=xr(n);function e(i,o){return[i*r,mr(o)/r]}return e.invert=function(i,o){return[i/r,_c(o*r)]},e}(n);var o=1+e*(2*i-e),a=Cs(o)/i;function s(l,u){var d=Cs(o-2*i*mr(u))/i;return[d*mr(l*=i),a-d*xr(l)]}return s.invert=function(l,u){var d=a-u;return[ru(l,no(d))/i*_x(d),_c((o-(l*l+d*d)*i*i)/(2*i))]},s}function UZ(){return yH(fQ).scale(155.424).center([0,33.6442])}function pQ(){return UZ().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function F_e(){var n,r,i,a,l,u,e=pQ(),o=UZ().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=UZ().rotate([157,0]).center([-3,19.9]).parallels([8,18]),d={point:function(Z,z){u=[Z,z]}};function h(C){var Z=C[0],z=C[1];return u=null,i.point(Z,z),u||(a.point(Z,z),u)||(l.point(Z,z),u)}function g(){return n=r=null,h}return h.invert=function(C){var Z=e.scale(),z=e.translate(),q=(C[0]-z[0])/Z,re=(C[1]-z[1])/Z;return(re>=.12&&re<.234&&q>=-.425&&q<-.214?o:re>=.166&&re<.234&&q>=-.214&&q<-.115?s:e).invert(C)},h.stream=function(C){return n&&r===C?n:n=function B_e(n){var r=n.length;return{point:function(i,o){for(var a=-1;++a<r;)n[a].point(i,o)},sphere:function(){for(var i=-1;++i<r;)n[i].sphere()},lineStart:function(){for(var i=-1;++i<r;)n[i].lineStart()},lineEnd:function(){for(var i=-1;++i<r;)n[i].lineEnd()},polygonStart:function(){for(var i=-1;++i<r;)n[i].polygonStart()},polygonEnd:function(){for(var i=-1;++i<r;)n[i].polygonEnd()}}}([e.stream(r=C),o.stream(C),s.stream(C)])},h.precision=function(C){return arguments.length?(e.precision(C),o.precision(C),s.precision(C),g()):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 Z=e.scale(),z=+C[0],q=+C[1];return i=e.translate(C).clipExtent([[z-.455*Z,q-.238*Z],[z+.455*Z,q+.238*Z]]).stream(d),a=o.translate([z-.307*Z,q+.201*Z]).clipExtent([[z-.425*Z+Er,q+.12*Z+Er],[z-.214*Z-Er,q+.234*Z-Er]]).stream(d),l=s.translate([z-.205*Z,q+.212*Z]).clipExtent([[z-.214*Z+Er,q+.166*Z+Er],[z-.115*Z-Er,q+.234*Z-Er]]).stream(d),g()},h.fitExtent=function(C,Z){return FZ(h,C,Z)},h.fitSize=function(C,Z){return mH(h,C,Z)},h.fitWidth=function(C,Z){return _H(h,C,Z)},h.fitHeight=function(C,Z){return gH(h,C,Z)},h.scale(1070)}function hQ(n){return function(r,e){var i=xr(r),o=xr(e),a=n(i*o);return[a*o*mr(r),a*mr(e)]}}function xx(n){return function(r,e){var i=Cs(r*r+e*e),o=n(i),a=mr(o),s=xr(o);return[ru(r*a,i*s),_c(i&&e*a/i)]}}var bH=hQ(function(n){return Cs(2/(1+n))});function U_e(){return nm(bH).scale(124.75).clipAngle(179.999)}bH.invert=xx(function(n){return 2*_c(n/2)});var CH=hQ(function(n){return(n=iJ(n))&&n/mr(n)});function H_e(){return nm(CH).scale(79.4188).clipAngle(179.999)}function Dx(n,r){return[n,dZ(B9((xa+r)/2))]}function j_e(){return mQ(Dx).scale(961/Ru)}function mQ(n){var l,u,d,r=nm(n),e=r.center,i=r.scale,o=r.translate,a=r.clipExtent,s=null;function h(){var g=Pi*i(),C=r(EJ(r.rotate()).invert([0,0]));return a(null==s?[[C[0]-g,C[1]-g],[C[0]+g,C[1]+g]]:n===Dx?[[Math.max(C[0]-g,s),l],[Math.min(C[0]+g,u),d]]:[[s,Math.max(C[1]-g,l)],[u,Math.min(C[1]+g,d)]])}return r.scale=function(g){return arguments.length?(i(g),h()):i()},r.translate=function(g){return arguments.length?(o(g),h()):o()},r.center=function(g){return arguments.length?(e(g),h()):e()},r.clipExtent=function(g){return arguments.length?(null==g?s=l=u=d=null:(s=+g[0][0],l=+g[0][1],u=+g[1][0],d=+g[1][1]),h()):null==s?null:[[s,l],[u,d]]},h()}function HZ(n){return B9((xa+n)/2)}function _Q(n,r){var e=xr(n),i=n===r?mr(n):dZ(e/xr(r))/dZ(HZ(r)/HZ(n)),o=e*N9(HZ(n),i)/i;if(!i)return Dx;function a(s,l){o>0?l<-xa+Er&&(l=-xa+Er):l>xa-Er&&(l=xa-Er);var u=o/N9(HZ(l),i);return[u*mr(i*s),o-u*xr(i*s)]}return a.invert=function(s,l){var u=o-l,d=_x(i)*Cs(s*s+u*u);return[ru(s,no(u))/i*_x(u),2*dw(N9(o/d,1/i))-xa]},a}function G_e(){return yH(_Q).scale(109.5).parallels([30,30])}function Ax(n,r){return[n,r]}function z_e(){return nm(Ax).scale(152.63)}function gQ(n,r){var e=xr(n),i=n===r?mr(n):(e-xr(r))/(r-n),o=e/i+n;if(no(i)<Er)return Ax;function a(s,l){var u=o-l,d=i*s;return[u*mr(d),o-u*xr(d)]}return a.invert=function(s,l){var u=o-l;return[ru(s,no(u))/i*_x(u),o-_x(i)*Cs(s*s+u*u)]},a}function W_e(){return yH(gQ).scale(131.154).center([0,13.9389])}function wH(n,r){var e=xr(r),i=xr(n)*e;return[e*mr(n)/i,mr(r)/i]}function V_e(){return nm(wH).scale(144.049).clipAngle(60)}function jZ(n,r,e,i){return 1===n&&1===r&&0===e&&0===i?u0:Ex({point:function(a,s){this.stream.point(a*n+e,s*r+i)}})}function Y_e(){var l,u,d,g,C,Z,n=1,r=0,e=0,i=1,o=1,a=u0,s=null,h=u0;function z(){return g=C=null,Z}return Z={stream:function(re){return g&&C===re?g:g=a(h(C=re))},postclip:function(re){return arguments.length?(h=re,s=l=u=d=null,z()):h},clipExtent:function(re){return arguments.length?(h=null==re?(s=l=u=d=null,u0):DZ(s=+re[0][0],l=+re[0][1],u=+re[1][0],d=+re[1][1]),z()):null==s?null:[[s,l],[u,d]]},scale:function(re){return arguments.length?(a=jZ((n=+re)*i,n*o,r,e),z()):n},translate:function(re){return arguments.length?(a=jZ(n*i,n*o,r=+re[0],e=+re[1]),z()):[r,e]},reflectX:function(re){return arguments.length?(a=jZ(n*(i=re?-1:1),n*o,r,e),z()):i<0},reflectY:function(re){return arguments.length?(a=jZ(n*i,n*(o=re?-1:1),r,e),z()):o<0},fitExtent:function(re,ae){return FZ(Z,re,ae)},fitSize:function(re,ae){return mH(Z,re,ae)},fitWidth:function(re,ae){return _H(Z,re,ae)},fitHeight:function(re,ae){return gH(Z,re,ae)}}}function kH(n,r){var e=r*r,i=e*e;return[n*(.8707-.131979*e+i*(i*(.003971*e-.001529*i)-.013791)),r*(1.007226+e*(.015085+i*(.028874*e-.044475-.005916*i)))]}function K_e(){return nm(kH).scale(175.295)}function TH(n,r){return[xr(r)*mr(n),mr(r)]}function q_e(){return nm(TH).scale(249.5).clipAngle(90+Er)}function MH(n,r){var e=xr(r),i=1+xr(n)*e;return[e*mr(n)/i,mr(r)/i]}function J_e(){return nm(MH).scale(250).clipAngle(142)}function SH(n,r){return[dZ(B9((xa+r)/2)),-n]}function Q_e(){var n=mQ(SH),r=n.center,e=n.rotate;return n.center=function(i){return arguments.length?r([-i[1],i[0]]):[(i=r())[1],-i[0]]},n.rotate=function(i){return arguments.length?e([i[0],i[1],i.length>2?i[2]+90:90]):[(i=e())[0],i[1],i[2]-90]},e([0,0,90]).scale(159.155)}function X_e(n,r){return n.parent===r.parent?1:2}function ege(n,r){return n+r.x}function nge(n,r){return Math.max(n,r.y)}function oge(){var n=X_e,r=1,e=1,i=!1;function o(a){var s,l=0;a.eachAfter(function(C){var Z=C.children;Z?(C.x=function $_e(n){return n.reduce(ege,0)/n.length}(Z),C.y=function tge(n){return 1+n.reduce(nge,0)}(Z)):(C.x=s?l+=n(C,s):0,C.y=0,s=C)});var u=function rge(n){for(var r;r=n.children;)n=r[0];return n}(a),d=function ige(n){for(var r;r=n.children;)n=r[r.length-1];return n}(a),h=u.x-n(u,d)/2,g=d.x+n(d,u)/2;return a.eachAfter(i?function(C){C.x=(C.x-a.x)*r,C.y=(a.y-C.y)*e}:function(C){C.x=(C.x-h)/(g-h)*r,C.y=(1-(a.y?C.y/a.y:1))*e})}return o.separation=function(a){return arguments.length?(n=a,o):n},o.size=function(a){return arguments.length?(i=!1,r=+a[0],e=+a[1],o):i?null:[r,e]},o.nodeSize=function(a){return arguments.length?(i=!0,r=+a[0],e=+a[1],o):i?[r,e]:null},o}function age(n){var r=0,e=n.children,i=e&&e.length;if(i)for(;--i>=0;)r+=e[i].value;else r=1;n.value=r}function EH(n,r){var o,s,l,u,d,e=new vw(n),i=+n.value&&(e.value=n.value),a=[e];for(null==r&&(r=bge);o=a.pop();)if(i&&(o.value=+o.data.value),(l=r(o.data))&&(d=l.length))for(o.children=new Array(d),u=d-1;u>=0;--u)a.push(s=o.children[u]=new vw(l[u])),s.parent=o,s.depth=o.depth+1;return e.eachBefore(vQ)}function bge(n){return n.children}function Cge(n){n.data=n.data.data}function vQ(n){var r=0;do{n.height=r}while((n=n.parent)&&n.height<++r)}function vw(n){this.data=n,this.depth=this.height=0,this.parent=null}CH.invert=xx(function(n){return n}),Dx.invert=function(n,r){return[n,2*dw(rJ(r))-xa]},Ax.invert=Ax,wH.invert=xx(dw),kH.invert=function(n,r){var o,e=r,i=25;do{var a=e*e,s=a*a;e-=o=(e*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-r)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(no(o)>Er&&--i>0);return[n/(.8707+(a=e*e)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),e]},TH.invert=xx(_c),MH.invert=xx(function(n){return 2*dw(n)}),SH.invert=function(n,r){return[-r,2*dw(rJ(n))-xa]},vw.prototype=EH.prototype={constructor:vw,count:function sge(){return this.eachAfter(age)},each:function lge(n){var e,o,a,s,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(n(r),o=r.children)for(a=0,s=o.length;a<s;++a)i.push(o[a])}while(i.length);return this},eachAfter:function cge(n){for(var o,a,s,r=this,e=[r],i=[];r=e.pop();)if(i.push(r),o=r.children)for(a=0,s=o.length;a<s;++a)e.push(o[a]);for(;r=i.pop();)n(r);return this},eachBefore:function uge(n){for(var i,o,r=this,e=[r];r=e.pop();)if(n(r),i=r.children)for(o=i.length-1;o>=0;--o)e.push(i[o]);return this},sum:function dge(n){return this.eachAfter(function(r){for(var e=+n(r.data)||0,i=r.children,o=i&&i.length;--o>=0;)e+=i[o].value;r.value=e})},sort:function fge(n){return this.eachBefore(function(r){r.children&&r.children.sort(n)})},path:function pge(n){for(var r=this,e=function hge(n,r){if(n===r)return n;var e=n.ancestors(),i=r.ancestors(),o=null;for(n=e.pop(),r=i.pop();n===r;)o=n,n=e.pop(),r=i.pop();return o}(r,n),i=[r];r!==e;)r=r.parent,i.push(r);for(var o=i.length;n!==e;)i.splice(o,0,n),n=n.parent;return i},ancestors:function mge(){for(var n=this,r=[n];n=n.parent;)r.push(n);return r},descendants:function _ge(){var n=[];return this.each(function(r){n.push(r)}),n},leaves:function gge(){var n=[];return this.eachBefore(function(r){r.children||n.push(r)}),n},links:function vge(){var n=this,r=[];return n.each(function(e){e!==n&&r.push({source:e.parent,target:e})}),r},copy:function yge(){return EH(this).eachBefore(Cge)}};var wge=Array.prototype.slice;function yQ(n){for(var o,a,r=0,e=(n=function kge(n){for(var e,i,r=n.length;r;)i=Math.random()*r--|0,e=n[r],n[r]=n[i],n[i]=e;return n}(wge.call(n))).length,i=[];r<e;)o=n[r],a&&bQ(a,o)?++r:(a=Mge(i=Tge(i,o)),r=0);return a}function Tge(n,r){var e,i;if(xH(r,n))return[r];for(e=0;e<n.length;++e)if(GZ(r,n[e])&&xH(Ox(n[e],r),n))return[n[e],r];for(e=0;e<n.length-1;++e)for(i=e+1;i<n.length;++i)if(GZ(Ox(n[e],n[i]),r)&&GZ(Ox(n[e],r),n[i])&&GZ(Ox(n[i],r),n[e])&&xH(CQ(n[e],n[i],r),n))return[n[e],n[i],r];throw new Error}function GZ(n,r){var e=n.r-r.r,i=r.x-n.x,o=r.y-n.y;return e<0||e*e<i*i+o*o}function bQ(n,r){var e=n.r-r.r+1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function xH(n,r){for(var e=0;e<r.length;++e)if(!bQ(n,r[e]))return!1;return!0}function Mge(n){switch(n.length){case 1:return function Sge(n){return{x:n.x,y:n.y,r:n.r}}(n[0]);case 2:return Ox(n[0],n[1]);case 3:return CQ(n[0],n[1],n[2])}}function Ox(n,r){var e=n.x,i=n.y,o=n.r,a=r.x,s=r.y,l=r.r,u=a-e,d=s-i,h=l-o,g=Math.sqrt(u*u+d*d);return{x:(e+a+u/g*h)/2,y:(i+s+d/g*h)/2,r:(g+o+l)/2}}function CQ(n,r,e){var i=n.x,o=n.y,a=n.r,s=r.x,l=r.y,u=r.r,d=e.x,h=e.y,g=e.r,C=i-s,Z=i-d,z=o-l,q=o-h,re=u-a,ae=g-a,Se=i*i+o*o-a*a,Ce=Se-s*s-l*l+u*u,Ee=Se-d*d-h*h+g*g,Ve=Z*z-C*q,ut=(z*Ee-q*Ce)/(2*Ve)-i,Ae=(q*re-z*ae)/Ve,ot=(Z*Ce-C*Ee)/(2*Ve)-o,ht=(C*ae-Z*re)/Ve,bt=Ae*Ae+ht*ht-1,Xe=2*(a+ut*Ae+ot*ht),Pe=ut*ut+ot*ot-a*a,ft=-(bt?(Xe+Math.sqrt(Xe*Xe-4*bt*Pe))/(2*bt):Pe/Xe);return{x:i+ut+Ae*ft,y:o+ot+ht*ft,r:ft}}function wQ(n,r,e){var o,a,l,u,i=n.x-r.x,s=n.y-r.y,d=i*i+s*s;d?(a=r.r+e.r,a*=a,u=n.r+e.r,a>(u*=u)?(o=(d+u-a)/(2*d),l=Math.sqrt(Math.max(0,u/d-o*o)),e.x=n.x-o*i-l*s,e.y=n.y-o*s+l*i):(o=(d+a-u)/(2*d),l=Math.sqrt(Math.max(0,a/d-o*o)),e.x=r.x+o*i-l*s,e.y=r.y+o*s+l*i)):(e.x=r.x+e.r,e.y=r.y)}function kQ(n,r){var e=n.r+r.r-1e-6,i=r.x-n.x,o=r.y-n.y;return e>0&&e*e>i*i+o*o}function TQ(n){var r=n._,e=n.next._,i=r.r+e.r,o=(r.x*e.r+e.x*r.r)/i,a=(r.y*e.r+e.y*r.r)/i;return o*o+a*a}function zZ(n){this._=n,this.next=null,this.previous=null}function MQ(n){if(!(o=n.length))return 0;var r,e,i,o,a,s,l,u,d,h,g;if((r=n[0]).x=0,r.y=0,!(o>1))return r.r;if(e=n[1],r.x=-e.r,e.x=r.r,e.y=0,!(o>2))return r.r+e.r;wQ(e,r,i=n[2]),r=new zZ(r),e=new zZ(e),i=new zZ(i),r.next=i.previous=e,e.next=r.previous=i,i.next=e.previous=r;e:for(l=3;l<o;++l){wQ(r._,e._,i=n[l]),i=new zZ(i),u=e.next,d=r.previous,h=e._.r,g=r._.r;do{if(h<=g){if(kQ(u._,i._)){e=u,r.next=e,e.previous=r,--l;continue e}h+=u._.r,u=u.next}else{if(kQ(d._,i._)){(r=d).next=e,e.previous=r,--l;continue e}g+=d._.r,d=d.previous}}while(u!==d.next);for(i.previous=r,i.next=e,r.next=e.previous=e=i,a=TQ(r);(i=i.next)!==e;)(s=TQ(i))<a&&(r=i,a=s);e=r.next}for(r=[e._],i=e;(i=i.next)!==e;)r.push(i._);for(i=yQ(r),l=0;l<o;++l)(r=n[l]).x-=i.x,r.y-=i.y;return i.r}function Ege(n){return MQ(n),n}function xge(n){return null==n?null:WZ(n)}function WZ(n){if("function"!=typeof n)throw new Error;return n}function d0(){return 0}function yw(n){return function(){return n}}function Dge(n){return Math.sqrt(n.value)}function Age(){var n=null,r=1,e=1,i=d0;function o(a){return a.x=r/2,a.y=e/2,n?a.eachBefore(SQ(n)).eachAfter(DH(i,.5)).eachBefore(EQ(1)):a.eachBefore(SQ(Dge)).eachAfter(DH(d0,1)).eachAfter(DH(i,a.r/Math.min(r,e))).eachBefore(EQ(Math.min(r,e)/(2*a.r))),a}return o.radius=function(a){return arguments.length?(n=xge(a),o):n},o.size=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.padding=function(a){return arguments.length?(i="function"==typeof a?a:yw(+a),o):i},o}function SQ(n){return function(r){r.children||(r.r=Math.max(0,+n(r)||0))}}function DH(n,r){return function(e){if(i=e.children){var i,o,l,a=i.length,s=n(e)*r||0;if(s)for(o=0;o<a;++o)i[o].r+=s;if(l=MQ(i),s)for(o=0;o<a;++o)i[o].r-=s;e.r=l+s}}}function EQ(n){return function(r){var e=r.parent;r.r*=n,e&&(r.x=e.x+n*r.x,r.y=e.y+n*r.y)}}function xQ(n){n.x0=Math.round(n.x0),n.y0=Math.round(n.y0),n.x1=Math.round(n.x1),n.y1=Math.round(n.y1)}function Ix(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(i-r)/n.value;++l<u;)(s=a[l]).y0=e,s.y1=o,s.x0=r,s.x1=r+=s.value*d}function Oge(){var n=1,r=1,e=0,i=!1;function o(s){var l=s.height+1;return s.x0=s.y0=e,s.x1=n,s.y1=r/l,s.eachBefore(function a(s,l){return function(u){u.children&&Ix(u,u.x0,s*(u.depth+1)/l,u.x1,s*(u.depth+2)/l);var d=u.x0,h=u.y0,g=u.x1-e,C=u.y1-e;g<d&&(d=g=(d+g)/2),C<h&&(h=C=(h+C)/2),u.x0=d,u.y0=h,u.x1=g,u.y1=C}}(r,l)),i&&s.eachBefore(xQ),s}return o.round=function(s){return arguments.length?(i=!!s,o):i},o.size=function(s){return arguments.length?(n=+s[0],r=+s[1],o):[n,r]},o.padding=function(s){return arguments.length?(e=+s,o):e},o}var Ige={depth:-1},AQ={};function Pge(n){return n.id}function Rge(n){return n.parentId}function Lge(){var n=Pge,r=Rge;function e(i){var o,a,l,u,d,g,C,s=i.length,h=new Array(s),Z={};for(a=0;a<s;++a)o=i[a],d=h[a]=new vw(o),null!=(g=n(o,a,i))&&(g+="")&&(Z[C="$"+(d.id=g)]=C in Z?AQ:d);for(a=0;a<s;++a)if(d=h[a],null!=(g=r(i[a],a,i))&&(g+="")){if(!(u=Z["$"+g]))throw new Error("missing: "+g);if(u===AQ)throw new Error("ambiguous: "+g);u.children?u.children.push(d):u.children=[d],d.parent=u}else{if(l)throw new Error("multiple roots");l=d}if(!l)throw new Error("no root");if(l.parent=Ige,l.eachBefore(function(z){z.depth=z.parent.depth+1,--s}).eachBefore(vQ),l.parent=null,s>0)throw new Error("cycle");return l}return e.id=function(i){return arguments.length?(n=WZ(i),e):n},e.parentId=function(i){return arguments.length?(r=WZ(i),e):r},e}function Zge(n,r){return n.parent===r.parent?1:2}function AH(n){var r=n.children;return r?r[0]:n.t}function OH(n){var r=n.children;return r?r[r.length-1]:n.t}function Nge(n,r,e){var i=e/(r.i-n.i);r.c-=i,r.s+=e,n.c+=i,r.z+=e,r.m+=e}function Fge(n,r,e){return n.a.parent===r.parent?n.a:e}function VZ(n,r){this._=n,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}function Hge(){var n=Zge,r=1,e=1,i=null;function o(d){var h=function Uge(n){for(var e,o,a,s,l,r=new VZ(n,0),i=[r];e=i.pop();)if(a=e._.children)for(e.children=new Array(l=a.length),s=l-1;s>=0;--s)i.push(o=e.children[s]=new VZ(a[s],s)),o.parent=e;return(r.parent=new VZ(null,0)).children=[r],r}(d);if(h.eachAfter(a),h.parent.m=-h.z,h.eachBefore(s),i)d.eachBefore(u);else{var g=d,C=d,Z=d;d.eachBefore(function(Se){Se.x<g.x&&(g=Se),Se.x>C.x&&(C=Se),Se.depth>Z.depth&&(Z=Se)});var z=g===C?1:n(g,C)/2,q=z-g.x,re=r/(C.x+z+q),ae=e/(Z.depth||1);d.eachBefore(function(Se){Se.x=(Se.x+q)*re,Se.y=Se.depth*ae})}return d}function a(d){var h=d.children,g=d.parent.children,C=d.i?g[d.i-1]:null;if(h){!function Bge(n){for(var a,r=0,e=0,i=n.children,o=i.length;--o>=0;)(a=i[o]).z+=r,a.m+=r,r+=a.s+(e+=a.c)}(d);var Z=(h[0].z+h[h.length-1].z)/2;C?(d.z=C.z+n(d._,C._),d.m=d.z-Z):d.z=Z}else C&&(d.z=C.z+n(d._,C._));d.parent.A=function l(d,h,g){if(h){for(var Ee,C=d,Z=d,z=h,q=C.parent.children[0],re=C.m,ae=Z.m,Se=z.m,Ce=q.m;z=OH(z),C=AH(C),z&&C;)q=AH(q),(Z=OH(Z)).a=d,(Ee=z.z+Se-C.z-re+n(z._,C._))>0&&(Nge(Fge(z,d,g),d,Ee),re+=Ee,ae+=Ee),Se+=z.m,re+=C.m,Ce+=q.m,ae+=Z.m;z&&!OH(Z)&&(Z.t=z,Z.m+=Se-ae),C&&!AH(q)&&(q.t=C,q.m+=re-Ce,g=d)}return g}(d,C,d.parent.A||g[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function u(d){d.x*=r,d.y=d.depth*e}return o.separation=function(d){return arguments.length?(n=d,o):n},o.size=function(d){return arguments.length?(i=!1,r=+d[0],e=+d[1],o):i?null:[r,e]},o.nodeSize=function(d){return arguments.length?(i=!0,r=+d[0],e=+d[1],o):i?[r,e]:null},o}function YZ(n,r,e,i,o){for(var s,a=n.children,l=-1,u=a.length,d=n.value&&(o-e)/n.value;++l<u;)(s=a[l]).x0=r,s.x1=i,s.y0=e,s.y1=e+=s.value*d}VZ.prototype=Object.create(vw.prototype);var OQ=(1+Math.sqrt(5))/2;function IQ(n,r,e,i,o,a){for(var u,d,Z,z,re,ae,Se,Ce,Ee,Ve,ut,s=[],l=r.children,h=0,g=0,C=l.length,q=r.value;h<C;){Z=o-e,z=a-i;do{re=l[g++].value}while(!re&&g<C);for(ae=Se=re,ut=re*re*(Ve=Math.max(z/Z,Z/z)/(q*n)),Ee=Math.max(Se/ut,ut/ae);g<C;++g){if(re+=d=l[g].value,d<ae&&(ae=d),d>Se&&(Se=d),ut=re*re*Ve,(Ce=Math.max(Se/ut,ut/ae))>Ee){re-=d;break}Ee=Ce}s.push(u={value:re,dice:Z<z,children:l.slice(h,g)}),u.dice?Ix(u,e,i,o,q?i+=z*re/q:a):YZ(u,e,i,q?e+=Z*re/q:o,a),q-=re,h=g}return s}var PQ=function n(r){function e(i,o,a,s,l){IQ(r,i,o,a,s,l)}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(OQ);function jge(){var n=PQ,r=!1,e=1,i=1,o=[0],a=d0,s=d0,l=d0,u=d0,d=d0;function h(C){return C.x0=C.y0=0,C.x1=e,C.y1=i,C.eachBefore(g),o=[0],r&&C.eachBefore(xQ),C}function g(C){var Z=o[C.depth],z=C.x0+Z,q=C.y0+Z,re=C.x1-Z,ae=C.y1-Z;re<z&&(z=re=(z+re)/2),ae<q&&(q=ae=(q+ae)/2),C.x0=z,C.y0=q,C.x1=re,C.y1=ae,C.children&&(Z=o[C.depth+1]=a(C)/2,z+=d(C)-Z,q+=s(C)-Z,(re-=l(C)-Z)<z&&(z=re=(z+re)/2),(ae-=u(C)-Z)<q&&(q=ae=(q+ae)/2),n(C,z,q,re,ae))}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?(n=WZ(C),h):n},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:yw(+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:yw(+C),h):s},h.paddingRight=function(C){return arguments.length?(l="function"==typeof C?C:yw(+C),h):l},h.paddingBottom=function(C){return arguments.length?(u="function"==typeof C?C:yw(+C),h):u},h.paddingLeft=function(C){return arguments.length?(d="function"==typeof C?C:yw(+C),h):d},h}function Gge(n,r,e,i,o){var s,u,a=n.children,l=a.length,d=new Array(l+1);for(d[0]=u=s=0;s<l;++s)d[s+1]=u+=a[s].value;!function h(g,C,Z,z,q,re,ae){if(g>=C-1){var Se=a[g];return Se.x0=z,Se.y0=q,Se.x1=re,void(Se.y1=ae)}for(var Ce=d[g],Ee=Z/2+Ce,Ve=g+1,ut=C-1;Ve<ut;){var Ae=Ve+ut>>>1;d[Ae]<Ee?Ve=Ae+1:ut=Ae}Ee-d[Ve-1]<d[Ve]-Ee&&g+1<Ve&&--Ve;var ot=d[Ve]-Ce,ht=Z-ot;if(re-z>ae-q){var bt=(z*ht+re*ot)/Z;h(g,Ve,ot,z,q,bt,ae),h(Ve,C,ht,bt,q,re,ae)}else{var Xe=(q*ht+ae*ot)/Z;h(g,Ve,ot,z,q,re,Xe),h(Ve,C,ht,z,Xe,re,ae)}}(0,l,n.value,r,e,i,o)}function zge(n,r,e,i,o){(1&n.depth?YZ:Ix)(n,r,e,i,o)}var Wge=function n(r){function e(i,o,a,s,l){if((u=i._squarify)&&u.ratio===r)for(var u,d,h,g,Z,C=-1,z=u.length,q=i.value;++C<z;){for(h=(d=u[C]).children,g=d.value=0,Z=h.length;g<Z;++g)d.value+=h[g].value;d.dice?Ix(d,o,a,s,a+=(l-a)*d.value/q):YZ(d,o,a,o+=(s-o)*d.value/q,l),q-=d.value}else i._squarify=u=IQ(r,i,o,a,s,l),u.ratio=r}return e.ratio=function(i){return n((i=+i)>1?i:1)},e}(OQ);function bw(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Px(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function vg(){}var Cw=1/.7,ww="\\s*([+-]?\\d+)\\s*",Rx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vge=/^#([0-9a-f]{3,8})$/,Yge=new RegExp("^rgb\\("+[ww,ww,ww]+"\\)$"),Kge=new RegExp("^rgb\\("+[mp,mp,mp]+"\\)$"),qge=new RegExp("^rgba\\("+[ww,ww,ww,Rx]+"\\)$"),Jge=new RegExp("^rgba\\("+[mp,mp,mp,Rx]+"\\)$"),Qge=new RegExp("^hsl\\("+[Rx,mp,mp]+"\\)$"),Xge=new RegExp("^hsla\\("+[Rx,mp,mp,Rx]+"\\)$"),RQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function LQ(){return this.rgb().formatHex()}function ZQ(){return this.rgb().formatRgb()}function Lx(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Vge.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?NQ(r):3===e?new rl(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?KZ(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?KZ(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Yge.exec(n))?new rl(r[1],r[2],r[3],1):(r=Kge.exec(n))?new rl(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=qge.exec(n))?KZ(r[1],r[2],r[3],r[4]):(r=Jge.exec(n))?KZ(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Qge.exec(n))?UQ(r[1],r[2]/100,r[3]/100,1):(r=Xge.exec(n))?UQ(r[1],r[2]/100,r[3]/100,r[4]):RQ.hasOwnProperty(n)?NQ(RQ[n]):"transparent"===n?new rl(NaN,NaN,NaN,0):null}function NQ(n){return new rl(n>>16&255,n>>8&255,255&n,1)}function KZ(n,r,e,i){return i<=0&&(n=r=e=NaN),new rl(n,r,e,i)}function IH(n){return n instanceof vg||(n=Lx(n)),n?new rl((n=n.rgb()).r,n.g,n.b,n.opacity):new rl}function qZ(n,r,e,i){return 1===arguments.length?IH(n):new rl(n,r,e,null==i?1:i)}function rl(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function BQ(){return"#"+PH(this.r)+PH(this.g)+PH(this.b)}function FQ(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function PH(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function UQ(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new _p(n,r,e,i)}function HQ(n){if(n instanceof _p)return new _p(n.h,n.s,n.l,n.opacity);if(n instanceof vg||(n=Lx(n)),!n)return new _p;if(n instanceof _p)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new _p(s,l,u,n.opacity)}function RH(n,r,e,i){return 1===arguments.length?HQ(n):new _p(n,r,e,null==i?1:i)}function _p(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function LH(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function jQ(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function GQ(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return jQ((e-i/r)*r,s,o,a,l)}}function zQ(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return jQ((e-i/r)*r,o,a,s,l)}}function JZ(n){return function(){return n}}function WQ(n,r){return function(e){return n+e*r}}function ZH(n,r){var e=r-n;return e?WQ(n,e>180||e<-180?e-360*Math.round(e/360):e):JZ(isNaN(n)?r:n)}function tve(n){return 1==(n=+n)?Ns:function(r,e){return e-r?function eve(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):JZ(isNaN(r)?e:r)}}function Ns(n,r){var e=r-n;return e?WQ(n,e):JZ(isNaN(n)?r:n)}bw(vg,Lx,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:LQ,formatHex:LQ,formatHsl:function $ge(){return HQ(this).formatHsl()},formatRgb:ZQ,toString:ZQ}),bw(rl,qZ,Px(vg,{brighter:function(r){return r=null==r?Cw:Math.pow(Cw,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new rl(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:BQ,formatHex:BQ,formatRgb:FQ,toString:FQ})),bw(_p,RH,Px(vg,{brighter:function(r){return r=null==r?Cw:Math.pow(Cw,r),new _p(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new _p(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new rl(LH(r>=240?r-240:r+120,a,o),LH(r,a,o),LH(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var NH=function n(r){var e=tve(r);function i(o,a){var s=e((o=qZ(o)).r,(a=qZ(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=Ns(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function VQ(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=qZ(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}var nve=VQ(GQ),rve=VQ(zQ);function YQ(n,r){var s,e=r?r.length:0,i=n?Math.min(e,n.length):0,o=new Array(i),a=new Array(e);for(s=0;s<i;++s)o[s]=UH(n[s],r[s]);for(;s<e;++s)a[s]=r[s];return function(l){for(s=0;s<i;++s)a[s]=o[s](l);return a}}function KQ(n,r){var e=new Date;return r-=n=+n,function(i){return e.setTime(n+r*i),e}}function gp(n,r){return r-=n=+n,function(e){return n+r*e}}function qQ(n,r){var o,e={},i={};for(o in(null===n||"object"!=typeof n)&&(n={}),(null===r||"object"!=typeof r)&&(r={}),r)o in n?e[o]=UH(n[o],r[o]):i[o]=r[o];return function(a){for(o in e)i[o]=e[o](a);return i}}var BH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,FH=new RegExp(BH.source,"g");function JQ(n,r){var i,o,a,e=BH.lastIndex=FH.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=BH.exec(n))&&(o=FH.exec(r));)(a=o.index)>e&&(a=r.slice(e,a),l[s]?l[s]+=a:l[++s]=a),(i=i[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,u.push({i:s,x:gp(i,o)})),e=FH.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function ove(n){return function(r){return n(r)+""}}(u[0].x):function ive(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function UH(n,r){var i,e=typeof r;return null==r||"boolean"===e?JZ(r):("number"===e?gp:"string"===e?(i=Lx(r))?(r=i,NH):JQ:r instanceof Lx?NH:r instanceof Date?KQ:Array.isArray(r)?YQ:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?qQ:gp)(n,r)}function ave(n,r){return r-=n=+n,function(e){return Math.round(n+r*e)}}var Zx,jH,$Q,QZ,QQ=180/Math.PI,HH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function XQ(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*QQ,skewX:Math.atan(u)*QQ,scaleX:s,scaleY:l}}function eX(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:gp(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:gp(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:gp(d,g)},{i:q-2,x:gp(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var uve=eX(function sve(n){return"none"===n?HH:(Zx||(Zx=document.createElement("DIV"),jH=document.documentElement,$Q=document.defaultView),Zx.style.transform=n,n=$Q.getComputedStyle(jH.appendChild(Zx),null).getPropertyValue("transform"),jH.removeChild(Zx),XQ(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),cve=eX(function lve(n){return null!=n&&(QZ||(QZ=document.createElementNS("http://www.w3.org/2000/svg","g")),QZ.setAttribute("transform",n),n=QZ.transform.baseVal.consolidate())?XQ((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):HH},", ",")",")"),Nx=Math.SQRT2;function nX(n){return((n=Math.exp(n))+1/n)/2}function hve(n,r){var g,C,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)C=Math.log(l/o)/Nx,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(Nx*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/Nx,g=function(Ce){var Ee=Ce*C,Ve=nX(re),ut=o/(2*Z)*(Ve*function pve(n){return((n=Math.exp(2*n))-1)/(n+1)}(Nx*Ee+re)-function fve(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+ut*u,i+ut*d,o*Ve/nX(Nx*Ee+re)]}}return g.duration=1e3*C,g}function rX(n){return function(r,e){var i=n((r=RH(r)).h,(e=RH(e)).h),o=Ns(r.s,e.s),a=Ns(r.l,e.l),s=Ns(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 mve=rX(ZH),_ve=rX(Ns),iX=Math.PI/180,oX=180/Math.PI,uX=4/29,kw=6/29,cX=3*kw*kw;function dX(n){if(n instanceof ef)return new ef(n.l,n.a,n.b,n.opacity);if(n instanceof vp)return pX(n);n instanceof rl||(n=IH(n));var a,s,r=KH(n.r),e=KH(n.g),i=KH(n.b),o=WH((.2225045*r+.7168786*e+.0606169*i)/1);return r===e&&e===i?a=s=o:(a=WH((.4360747*r+.3850649*e+.1430804*i)/.96422),s=WH((.0139322*r+.0971045*e+.7141733*i)/.82521)),new ef(116*o-16,500*(a-o),200*(o-s),n.opacity)}function zH(n,r,e,i){return 1===arguments.length?dX(n):new ef(n,r,e,null==i?1:i)}function ef(n,r,e,i){this.l=+n,this.a=+r,this.b=+e,this.opacity=+i}function WH(n){return n>.008856451679035631?Math.pow(n,1/3):n/cX+uX}function VH(n){return n>kw?n*n*n:cX*(n-uX)}function YH(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function KH(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function fX(n){if(n instanceof vp)return new vp(n.h,n.c,n.l,n.opacity);if(n instanceof ef||(n=dX(n)),0===n.a&&0===n.b)return new vp(NaN,0<n.l&&n.l<100?0:NaN,n.l,n.opacity);var r=Math.atan2(n.b,n.a)*oX;return new vp(r<0?r+360:r,Math.sqrt(n.a*n.a+n.b*n.b),n.l,n.opacity)}function qH(n,r,e,i){return 1===arguments.length?fX(n):new vp(n,r,e,null==i?1:i)}function vp(n,r,e,i){this.h=+n,this.c=+r,this.l=+e,this.opacity=+i}function pX(n){if(isNaN(n.h))return new ef(n.l,0,0,n.opacity);var r=n.h*iX;return new ef(n.l,Math.cos(r)*n.c,Math.sin(r)*n.c,n.opacity)}function vve(n,r){var e=Ns((n=zH(n)).l,(r=zH(r)).l),i=Ns(n.a,r.a),o=Ns(n.b,r.b),a=Ns(n.opacity,r.opacity);return function(s){return n.l=e(s),n.a=i(s),n.b=o(s),n.opacity=a(s),n+""}}function hX(n){return function(r,e){var i=n((r=qH(r)).h,(e=qH(e)).h),o=Ns(r.c,e.c),a=Ns(r.l,e.l),s=Ns(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+""}}}bw(ef,zH,Px(vg,{brighter:function(r){return new ef(this.l+18*(null==r?1:r),this.a,this.b,this.opacity)},darker:function(r){return new ef(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(YH(3.1338561*(e=.96422*VH(e))-1.6168667*(r=1*VH(r))-.4906146*(i=.82521*VH(i))),YH(-.9787684*e+1.9161415*r+.033454*i),YH(.0719453*e-.2289914*r+1.4052427*i),this.opacity)}})),bw(vp,qH,Px(vg,{brighter:function(r){return new vp(this.h,this.c,this.l+18*(null==r?1:r),this.opacity)},darker:function(r){return new vp(this.h,this.c,this.l-18*(null==r?1:r),this.opacity)},rgb:function(){return pX(this).rgb()}}));var yve=hX(ZH),bve=hX(Ns),JH=1.78277,QH=-.29227,$Z=-.90649,Bx=1.97294,_X=Bx*$Z,gX=Bx*JH,vX=JH*QH- -.14861*$Z;function Cve(n){if(n instanceof p0)return new p0(n.h,n.s,n.l,n.opacity);n instanceof rl||(n=IH(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(vX*i+_X*r-gX*e)/(vX+_X-gX),a=i-o,s=(Bx*(e-o)-QH*a)/$Z,l=Math.sqrt(s*s+a*a)/(Bx*o*(1-o)),u=l?Math.atan2(s,a)*oX-120:NaN;return new p0(u<0?u+360:u,l,o,n.opacity)}function XH(n,r,e,i){return 1===arguments.length?Cve(n):new p0(n,r,e,null==i?1:i)}function p0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function yX(n){return function r(e){function i(o,a){var s=n((o=XH(o)).h,(a=XH(a)).h),l=Ns(o.s,a.s),u=Ns(o.l,a.l),d=Ns(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}bw(p0,XH,Px(vg,{brighter:function(r){return r=null==r?Cw:Math.pow(Cw,r),new p0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new p0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*iX,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+JH*a)),255*(e+i*(QH*o+$Z*a)),255*(e+i*(Bx*o)),this.opacity)}}));var wve=yX(ZH),kve=yX(Ns);function Tve(n,r){for(var e=new Array(r),i=0;i<r;++i)e[i]=n(i/(r-1));return e}function Mve(n){for(var i,r=-1,e=n.length,o=n[e-1],a=0;++r<e;)i=o,o=n[r],a+=i[1]*o[0]-i[0]*o[1];return a/2}function Sve(n){for(var a,l,r=-1,e=n.length,i=0,o=0,s=n[e-1],u=0;++r<e;)a=s,s=n[r],u+=l=a[0]*s[1]-s[0]*a[1],i+=(a[0]+s[0])*l,o+=(a[1]+s[1])*l;return[i/(u*=3),o/u]}function Eve(n,r,e){return(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0])}function xve(n,r){return n[0]-r[0]||n[1]-r[1]}function bX(n){for(var r=n.length,e=[0,1],i=2,o=2;o<r;++o){for(;i>1&&Eve(n[e[i-2]],n[e[i-1]],n[o])<=0;)--i;e[i++]=o}return e.slice(0,i)}function Dve(n){if((e=n.length)<3)return null;var r,e,i=new Array(e),o=new Array(e);for(r=0;r<e;++r)i[r]=[+n[r][0],+n[r][1],r];for(i.sort(xve),r=0;r<e;++r)o[r]=[i[r][0],-i[r][1]];var a=bX(i),s=bX(o),l=s[0]===a[0],u=s[s.length-1]===a[a.length-1],d=[];for(r=a.length-1;r>=0;--r)d.push(n[i[a[r]][2]]);for(r=+l;r<s.length-u;++r)d.push(n[i[s[r]][2]]);return d}function Ave(n,r){for(var u,d,e=n.length,i=n[e-1],o=r[0],a=r[1],s=i[0],l=i[1],h=!1,g=0;g<e;++g)u=(i=n[g])[0],(d=i[1])>a!=l>a&&o<(s-u)*(a-d)/(l-d)+u&&(h=!h),s=u,l=d;return h}function Ove(n){for(var o,a,r=-1,e=n.length,i=n[e-1],s=i[0],l=i[1],u=0;++r<e;)o=s,a=l,o-=s=(i=n[r])[0],a-=l=i[1],u+=Math.sqrt(o*o+a*a);return u}function Tw(){return Math.random()}var Ive=function n(r){function e(i,o){return i=null==i?0:+i,o=null==o?1:+o,1===arguments.length?(o=i,i=0):o-=i,function(){return r()*o+i}}return e.source=n,e}(Tw),CX=function n(r){function e(i,o){var a,s;return i=null==i?0:+i,o=null==o?1:+o,function(){var l;if(null!=a)l=a,a=null;else do{a=2*r()-1,l=2*r()-1,s=a*a+l*l}while(!s||s>1);return i+o*l*Math.sqrt(-2*Math.log(s)/s)}}return e.source=n,e}(Tw),Pve=function n(r){function e(){var i=CX.source(r).apply(this,arguments);return function(){return Math.exp(i())}}return e.source=n,e}(Tw),wX=function n(r){function e(i){return function(){for(var o=0,a=0;a<i;++a)o+=r();return o}}return e.source=n,e}(Tw),Rve=function n(r){function e(i){var o=wX.source(r)(i);return function(){return o()/i}}return e.source=n,e}(Tw),Lve=function n(r){function e(i){return function(){return-Math.log(1-r())/i}}return e.source=n,e}(Tw),kX=Array.prototype,$H=kX.map,yg=kX.slice,ej={name:"implicit"};function tj(n){var r=cg(),e=[],i=ej;function o(a){var s=a+"",l=r.get(s);if(!l){if(i!==ej)return i;r.set(s,l=e.push(a))}return n[(l-1)%n.length]}return n=null==n?[]:yg.call(n),o.domain=function(a){if(!arguments.length)return e.slice();e=[],r=cg();for(var u,d,s=-1,l=a.length;++s<l;)r.has(d=(u=a[s])+"")||r.set(d,e.push(u));return o},o.range=function(a){return arguments.length?(n=yg.call(a),o):n.slice()},o.unknown=function(a){return arguments.length?(i=a,o):i},o.copy=function(){return tj().domain(e).range(n).unknown(i)},o}function nj(){var o,a,n=tj().unknown(void 0),r=n.domain,e=n.range,i=[0,1],s=!1,l=0,u=0,d=.5;function h(){var g=r().length,C=i[1]<i[0],Z=i[C-0],z=i[1-C];o=(z-Z)/Math.max(1,g-l+2*u),s&&(o=Math.floor(o)),Z+=(z-Z-o*(g-l))*d,a=o*(1-l),s&&(Z=Math.round(Z),a=Math.round(a));var q=hc(g).map(function(re){return Z+o*re});return e(C?q.reverse():q)}return delete n.unknown,n.domain=function(g){return arguments.length?(r(g),h()):r()},n.range=function(g){return arguments.length?(i=[+g[0],+g[1]],h()):i.slice()},n.rangeRound=function(g){return i=[+g[0],+g[1]],s=!0,h()},n.bandwidth=function(){return a},n.step=function(){return o},n.round=function(g){return arguments.length?(s=!!g,h()):s},n.padding=function(g){return arguments.length?(l=u=Math.max(0,Math.min(1,g)),h()):l},n.paddingInner=function(g){return arguments.length?(l=Math.max(0,Math.min(1,g)),h()):l},n.paddingOuter=function(g){return arguments.length?(u=Math.max(0,Math.min(1,g)),h()):u},n.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),h()):d},n.copy=function(){return nj().domain(r()).range(i).round(s).paddingInner(l).paddingOuter(u).align(d)},h()}function TX(n){var r=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,delete n.paddingOuter,n.copy=function(){return TX(r())},n}function Zve(){return TX(nj().paddingInner(1))}function Nve(n,r){return n=+n,r=+r,function(e){return Math.round(n*(1-e)+r*e)}}function rj(n){return function(){return n}}function MX(n){return+n}var SX=[0,1];function ij(n,r){return(r-=n=+n)?function(e){return(e-n)/r}:rj(r)}function Uve(n,r,e,i){var o=n[0],a=n[1],s=r[0],l=r[1];return a<o?(o=e(a,o),s=i(l,s)):(o=e(o,a),s=i(s,l)),function(u){return s(o(u))}}function Hve(n,r,e,i){var o=Math.min(n.length,r.length)-1,a=new Array(o),s=new Array(o),l=-1;for(n[o]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++l<o;)a[l]=e(n[l],n[l+1]),s[l]=i(r[l],r[l+1]);return function(u){var d=Y1(n,u,1,o)-1;return s[d](a[d](u))}}function eN(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp())}function tN(n,r){var s,l,u,e=SX,i=SX,o=LL,a=!1;function d(){return s=Math.min(e.length,i.length)>2?Hve:Uve,l=u=null,h}function h(g){return(l||(l=s(e,i,a?function Bve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=r?0:o>=e?1:i(o)}}}(n):n,o)))(+g)}return h.invert=function(g){return(u||(u=s(i,e,ij,a?function Fve(n){return function(r,e){var i=n(r=+r,e=+e);return function(o){return o<=0?r:o>=1?e:i(o)}}}(r):r)))(+g)},h.domain=function(g){return arguments.length?(e=$H.call(g,MX),d()):e.slice()},h.range=function(g){return arguments.length?(i=yg.call(g),d()):i.slice()},h.rangeRound=function(g){return i=yg.call(g),o=Nve,d()},h.clamp=function(g){return arguments.length?(a=!!g,d()):a},h.interpolate=function(g){return arguments.length?(o=g,d()):o},d()}var EX,jve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nN(n){if(!(r=jve.exec(n)))throw new Error("invalid format: "+n);var r;return new oj({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function oj(n){this.fill=void 0===n.fill?" ":n.fill+"",this.align=void 0===n.align?">":n.align+"",this.sign=void 0===n.sign?"-":n.sign+"",this.symbol=void 0===n.symbol?"":n.symbol+"",this.zero=!!n.zero,this.width=void 0===n.width?void 0:+n.width,this.comma=!!n.comma,this.precision=void 0===n.precision?void 0:+n.precision,this.trim=!!n.trim,this.type=void 0===n.type?"":n.type+""}function rN(n,r){if((e=(n=r?n.toExponential(r-1):n.toExponential()).indexOf("e"))<0)return null;var e,i=n.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+n.slice(e+1)]}function Mw(n){return(n=rN(Math.abs(n)))?n[1]:NaN}function xX(n,r){var e=rN(n,r);if(!e)return n+"";var i=e[0],o=e[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}nN.prototype=oj.prototype,oj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var DX={"%":function(r,e){return(100*r).toFixed(e)},b:function(r){return Math.round(r).toString(2)},c:function(r){return r+""},d:function Gve(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)},e:function(r,e){return r.toExponential(e)},f:function(r,e){return r.toFixed(e)},g:function(r,e){return r.toPrecision(e)},o:function(r){return Math.round(r).toString(8)},p:function(r,e){return xX(100*r,e)},r:xX,s:function Kve(n,r){var e=rN(n,r);if(!e)return n+"";var i=e[0],o=e[1],a=o-(EX=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+new Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+rN(n,Math.max(0,r+a-1))[0]},X:function(r){return Math.round(r).toString(16).toUpperCase()},x:function(r){return Math.round(r).toString(16)}};function AX(n){return n}var iN,aj,PX,OX=Array.prototype.map,IX=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function qve(n){var r=void 0===n.grouping||void 0===n.thousands?AX:function Wve(n,r){return function(e,i){for(var o=e.length,a=[],s=0,l=n[0],u=0;o>0&&l>0&&(u+l+1>i&&(l=Math.max(1,i-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>i));)l=n[s=(s+1)%n.length];return a.reverse().join(r)}}(OX.call(n.grouping,Number),n.thousands+""),e=void 0===n.currency?"":n.currency[0]+"",i=void 0===n.currency?"":n.currency[1]+"",o=void 0===n.decimal?".":n.decimal+"",a=void 0===n.numerals?AX:function Vve(n){return function(r){return r.replace(/[0-9]/g,function(e){return n[+e]})}}(OX.call(n.numerals,String)),s=void 0===n.percent?"%":n.percent+"",l=void 0===n.minus?"-":n.minus+"",u=void 0===n.nan?"NaN":n.nan+"";function d(g){var C=(g=nN(g)).fill,Z=g.align,z=g.sign,q=g.symbol,re=g.zero,ae=g.width,Se=g.comma,Ce=g.precision,Ee=g.trim,Ve=g.type;"n"===Ve?(Se=!0,Ve="g"):DX[Ve]||(void 0===Ce&&(Ce=12),Ee=!0,Ve="g"),(re||"0"===C&&"="===Z)&&(re=!0,C="0",Z="=");var ut="$"===q?e:"#"===q&&/[boxX]/.test(Ve)?"0"+Ve.toLowerCase():"",Ae="$"===q?i:/[%p]/.test(Ve)?s:"",ot=DX[Ve],ht=/[defgprs%]/.test(Ve);function bt(Xe){var Nt,Gt,It,Pe=ut,ft=Ae;if("c"===Ve)ft=ot(Xe)+ft,Xe="";else{var Tn=(Xe=+Xe)<0||1/Xe<0;if(Xe=isNaN(Xe)?u:ot(Math.abs(Xe),Ce),Ee&&(Xe=function Yve(n){e:for(var o,r=n.length,e=1,i=-1;e<r;++e)switch(n[e]){case".":i=o=e;break;case"0":0===i&&(i=e),o=e;break;default:if(!+n[e])break e;i>0&&(i=0)}return i>0?n.slice(0,i)+n.slice(o+1):n}(Xe)),Tn&&0==+Xe&&"+"!==z&&(Tn=!1),Pe=(Tn?"("===z?z:l:"-"===z||"("===z?"":z)+Pe,ft=("s"===Ve?IX[8+EX/3]:"")+ft+(Tn&&"("===z?")":""),ht)for(Nt=-1,Gt=Xe.length;++Nt<Gt;)if(48>(It=Xe.charCodeAt(Nt))||It>57){ft=(46===It?o+Xe.slice(Nt+1):Xe.slice(Nt))+ft,Xe=Xe.slice(0,Nt);break}}Se&&!re&&(Xe=r(Xe,1/0));var jn=Pe.length+Xe.length+ft.length,zn=jn<ae?new Array(ae-jn+1).join(C):"";switch(Se&&re&&(Xe=r(zn+Xe,zn.length?ae-ft.length:1/0),zn=""),Z){case"<":Xe=Pe+Xe+ft+zn;break;case"=":Xe=Pe+zn+Xe+ft;break;case"^":Xe=zn.slice(0,jn=zn.length>>1)+Pe+Xe+ft+zn.slice(jn);break;default:Xe=zn+Pe+Xe+ft}return a(Xe)}return Ce=void 0===Ce?6:/[gprs]/.test(Ve)?Math.max(1,Math.min(21,Ce)):Math.max(0,Math.min(20,Ce)),bt.toString=function(){return g+""},bt}return{format:d,formatPrefix:function h(g,C){var Z=d(((g=nN(g)).type="f",g)),z=3*Math.max(-8,Math.min(8,Math.floor(Mw(C)/3))),q=Math.pow(10,-z),re=IX[8+z/3];return function(ae){return Z(q*ae)+re}}}}function $ve(n,r,e){var s,i=n[0],o=n[n.length-1],a=Qy(i,o,null==r?10:r);switch((e=nN(null==e?",f":e)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(o));return null==e.precision&&!isNaN(s=function zve(n,r){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Mw(r)/3)))-Mw(Math.abs(n)))}(a,l))&&(e.precision=s),PX(e,l);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function Qve(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,Mw(r)-Mw(n))+1}(a,Math.max(Math.abs(i),Math.abs(o))))&&(e.precision=s-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(s=function Xve(n){return Math.max(0,-Mw(Math.abs(n)))}(a))&&(e.precision=s-2*("%"===e.type))}return aj(e)}function Fx(n){var r=n.domain;return n.ticks=function(e){var i=r();return Z7(i[0],i[i.length-1],null==e?10:e)},n.tickFormat=function(e,i){return $ve(r(),e,i)},n.nice=function(e){null==e&&(e=10);var u,i=r(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(u=s,s=l,l=u,u=o,o=a,a=u),(u=XE(s,l,e))>0?u=XE(s=Math.floor(s/u)*u,l=Math.ceil(l/u)*u,e):u<0&&(u=XE(s=Math.ceil(s*u)/u,l=Math.floor(l*u)/u,e)),u>0?(i[o]=Math.floor(s/u)*u,i[a]=Math.ceil(l/u)*u,r(i)):u<0&&(i[o]=Math.ceil(s*u)/u,i[a]=Math.floor(l*u)/u,r(i)),n},n}function RX(){var n=tN(ij,Yc);return n.copy=function(){return eN(n,RX())},Fx(n)}function LX(){var n=[0,1];function r(e){return+e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(n=$H.call(e,MX),r):n.slice()},r.copy=function(){return LX().domain(n)},Fx(r)}function ZX(n,r){var s,e=0,i=(n=n.slice()).length-1,o=n[e],a=n[i];return a<o&&(s=e,e=i,i=s,s=o,o=a,a=s),n[e]=r.floor(o),n[i]=r.ceil(a),n}function eye(n,r){return(r=Math.log(r/n))?function(e){return Math.log(e/n)/r}:rj(r)}function tye(n,r){return n<0?function(e){return-Math.pow(-r,e)*Math.pow(-n,1-e)}:function(e){return Math.pow(r,e)*Math.pow(n,1-e)}}function nye(n){return isFinite(n)?+("1e"+n):n<0?0:n}function NX(n){return 10===n?nye:n===Math.E?Math.exp:function(r){return Math.pow(n,r)}}function BX(n){return n===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),function(r){return Math.log(r)/n})}function FX(n){return function(r){return-n(-r)}}function UX(){var n=tN(eye,tye).domain([1,10]),r=n.domain,e=10,i=BX(10),o=NX(10);function a(){return i=BX(e),o=NX(e),r()[0]<0&&(i=FX(i),o=FX(o)),n}return n.base=function(s){return arguments.length?(e=+s,a()):e},n.domain=function(s){return arguments.length?(r(s),a()):r()},n.ticks=function(s){var h,l=r(),u=l[0],d=l[l.length-1];(h=d<u)&&(g=u,u=d,d=g);var Z,z,q,g=i(u),C=i(d),re=null==s?10:+s,ae=[];if(!(e%1)&&C-g<re){if(g=Math.round(g)-1,C=Math.round(C)+1,u>0){for(;g<C;++g)for(z=1,Z=o(g);z<e;++z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else for(;g<C;++g)for(z=e-1,Z=o(g);z>=1;--z)if(!((q=Z*z)<u)){if(q>d)break;ae.push(q)}}else ae=Z7(g,C,Math.min(C-g,re)).map(o);return h?ae.reverse():ae},n.tickFormat=function(s,l){if(null==l&&(l=10===e?".0e":","),"function"!=typeof l&&(l=aj(l)),s===1/0)return l;null==s&&(s=10);var u=Math.max(1,e*s/n.ticks().length);return function(d){var h=d/o(Math.round(i(d)));return h*e<e-.5&&(h*=e),h<=u?l(d):""}},n.nice=function(){return r(ZX(r(),{floor:function(l){return o(Math.floor(i(l)))},ceil:function(l){return o(Math.ceil(i(l)))}}))},n.copy=function(){return eN(n,UX().base(e))},n}function Sw(n,r){return n<0?-Math.pow(-n,r):Math.pow(n,r)}function sj(){var n=1,r=tN(function i(a,s){return(s=Sw(s,n)-(a=Sw(a,n)))?function(l){return(Sw(l,n)-a)/s}:rj(s)},function o(a,s){return s=Sw(s,n)-(a=Sw(a,n)),function(l){return Sw(a+s*l,1/n)}}),e=r.domain;return r.exponent=function(a){return arguments.length?(n=+a,e(e())):n},r.copy=function(){return eN(r,sj().exponent(n))},Fx(r)}function rye(){return sj().exponent(.5)}function HX(){var n=[],r=[],e=[];function i(){var a=0,s=Math.max(1,r.length);for(e=new Array(s-1);++a<s;)e[a-1]=$E(n,a/s);return o}function o(a){if(!isNaN(a=+a))return r[Y1(e,a)]}return o.invertExtent=function(a){var s=r.indexOf(a);return s<0?[NaN,NaN]:[s>0?e[s-1]:n[0],s<e.length?e[s]:n[n.length-1]]},o.domain=function(a){if(!arguments.length)return n.slice();n=[];for(var u,s=0,l=a.length;s<l;++s)null!=(u=a[s])&&!isNaN(u=+u)&&n.push(u);return n.sort(Jy),i()},o.range=function(a){return arguments.length?(r=yg.call(a),i()):r.slice()},o.quantiles=function(){return e.slice()},o.copy=function(){return HX().domain(n).range(r)},o}function jX(){var n=0,r=1,e=1,i=[.5],o=[0,1];function a(l){if(l<=l)return o[Y1(i,l,0,e)]}function s(){var l=-1;for(i=new Array(e);++l<e;)i[l]=((l+1)*r-(l-e)*n)/(e+1);return a}return a.domain=function(l){return arguments.length?(n=+l[0],r=+l[1],s()):[n,r]},a.range=function(l){return arguments.length?(e=(o=yg.call(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[n,i[0]]:u>=e?[i[e-1],r]:[i[u-1],i[u]]},a.copy=function(){return jX().domain([n,r]).range(o)},Fx(a)}function GX(){var n=[.5],r=[0,1],e=1;function i(o){if(o<=o)return r[Y1(n,o,0,e)]}return i.domain=function(o){return arguments.length?(n=yg.call(o),e=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(o){return arguments.length?(r=yg.call(o),e=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var a=r.indexOf(o);return[n[a-1],n[a]]},i.copy=function(){return GX().domain(n).range(r)},i}!function Jve(n){return iN=qve(n),aj=iN.format,PX=iN.formatPrefix,iN}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var lj=new Date,uj=new Date;function Bs(n,r,e,i){function o(a){return n(a=0===arguments.length?new Date:new Date(+a)),a}return o.floor=function(a){return n(a=new Date(+a)),a},o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return Bs(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return lj.setTime(+a),uj.setTime(+s),n(lj),n(uj),Math.floor(e(lj,uj))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var cj=Bs(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});cj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var tf=cj,zX=(cj.range,Bs(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()})),iye=zX,h0=(zX.range,6e4),aN=36e5,VX=6048e5;function m0(n){return Bs(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*h0)/VX})}var sN=m0(0),_0=m0(1),oye=m0(2),aye=m0(3),rm=m0(4),sye=m0(5),lye=m0(6),YX=(sN.range,_0.range,oye.range,aye.range,rm.range,sye.range,lye.range,Bs(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*h0)/864e5},function(n){return n.getDate()-1})),Ux=YX,KX=(YX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*h0)},function(n,r){n.setTime(+n+r*aN)},function(n,r){return(r-n)/aN},function(n){return n.getHours()})),uye=KX,qX=(KX.range,Bs(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*h0)},function(n,r){return(r-n)/h0},function(n){return n.getMinutes()})),cye=qX,JX=(qX.range,Bs(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()})),QX=JX,lN=(JX.range,Bs(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n}));lN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Bs(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):lN:null};var XX=lN;lN.range;function g0(n){return Bs(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/VX})}var uN=g0(0),v0=g0(1),dye=g0(2),fye=g0(3),im=g0(4),pye=g0(5),hye=g0(6),$X=(uN.range,v0.range,dye.range,fye.range,im.range,pye.range,hye.range,Bs(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1})),Hx=$X,dj=($X.range,Bs(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()}));dj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Bs(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var nf=dj;dj.range;function fj(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function pj(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function jx(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Ew,h$,m$,e$={"-":"",_:" ",0:"0"},Fs=/^\s*\d+/,_ye=/^%/,gye=/[\\^$*+?|[\]().{}]/g;function Ki(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function vye(n){return n.replace(gye,"\\$&")}function Gx(n){return new RegExp("^(?:"+n.map(vye).join("|")+")","i")}function zx(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function yye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function bye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function Cye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function wye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function kye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function t$(n,r,e){var i=Fs.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function n$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function Tye(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Mye(n,r,e){var i=Fs.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function Sye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function r$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Eye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function i$(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function xye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Dye(n,r,e){var i=Fs.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function Aye(n,r,e){var i=Fs.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Oye(n,r,e){var i=Fs.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Iye(n,r,e){var i=_ye.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Pye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Rye(n,r,e){var i=Fs.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function o$(n,r){return Ki(n.getDate(),r,2)}function Lye(n,r){return Ki(n.getHours(),r,2)}function Zye(n,r){return Ki(n.getHours()%12||12,r,2)}function Nye(n,r){return Ki(1+Ux.count(tf(n),n),r,3)}function a$(n,r){return Ki(n.getMilliseconds(),r,3)}function Bye(n,r){return a$(n,r)+"000"}function Fye(n,r){return Ki(n.getMonth()+1,r,2)}function Uye(n,r){return Ki(n.getMinutes(),r,2)}function Hye(n,r){return Ki(n.getSeconds(),r,2)}function jye(n){var r=n.getDay();return 0===r?7:r}function Gye(n,r){return Ki(sN.count(tf(n)-1,n),r,2)}function s$(n){var r=n.getDay();return r>=4||0===r?rm(n):rm.ceil(n)}function zye(n,r){return n=s$(n),Ki(rm.count(tf(n),n)+(4===tf(n).getDay()),r,2)}function Wye(n){return n.getDay()}function Vye(n,r){return Ki(_0.count(tf(n)-1,n),r,2)}function Yye(n,r){return Ki(n.getFullYear()%100,r,2)}function Kye(n,r){return Ki((n=s$(n)).getFullYear()%100,r,2)}function qye(n,r){return Ki(n.getFullYear()%1e4,r,4)}function Jye(n,r){var e=n.getDay();return Ki((n=e>=4||0===e?rm(n):rm.ceil(n)).getFullYear()%1e4,r,4)}function Qye(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ki(r/60|0,"0",2)+Ki(r%60,"0",2)}function l$(n,r){return Ki(n.getUTCDate(),r,2)}function Xye(n,r){return Ki(n.getUTCHours(),r,2)}function $ye(n,r){return Ki(n.getUTCHours()%12||12,r,2)}function e0e(n,r){return Ki(1+Hx.count(nf(n),n),r,3)}function u$(n,r){return Ki(n.getUTCMilliseconds(),r,3)}function t0e(n,r){return u$(n,r)+"000"}function n0e(n,r){return Ki(n.getUTCMonth()+1,r,2)}function r0e(n,r){return Ki(n.getUTCMinutes(),r,2)}function i0e(n,r){return Ki(n.getUTCSeconds(),r,2)}function o0e(n){var r=n.getUTCDay();return 0===r?7:r}function a0e(n,r){return Ki(uN.count(nf(n)-1,n),r,2)}function c$(n){var r=n.getUTCDay();return r>=4||0===r?im(n):im.ceil(n)}function s0e(n,r){return n=c$(n),Ki(im.count(nf(n),n)+(4===nf(n).getUTCDay()),r,2)}function l0e(n){return n.getUTCDay()}function u0e(n,r){return Ki(v0.count(nf(n)-1,n),r,2)}function c0e(n,r){return Ki(n.getUTCFullYear()%100,r,2)}function d0e(n,r){return Ki((n=c$(n)).getUTCFullYear()%100,r,2)}function f0e(n,r){return Ki(n.getUTCFullYear()%1e4,r,4)}function p0e(n,r){var e=n.getUTCDay();return Ki((n=e>=4||0===e?im(n):im.ceil(n)).getUTCFullYear()%1e4,r,4)}function h0e(){return"+0000"}function d$(){return"%"}function f$(n){return+n}function p$(n){return Math.floor(+n/1e3)}!function g0e(n){return Ew=function mye(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=Gx(o),h=zx(o),g=Gx(a),C=zx(a),Z=Gx(s),z=zx(s),q=Gx(l),re=zx(l),ae=Gx(u),Se=zx(u),Ce={a:function Tn(Sn){return s[Sn.getDay()]},A:function jn(Sn){return a[Sn.getDay()]},b:function zn(Sn){return u[Sn.getMonth()]},B:function or(Sn){return l[Sn.getMonth()]},c:null,d:o$,e:o$,f:Bye,g:Kye,G:Jye,H:Lye,I:Zye,j:Nye,L:a$,m:Fye,M:Uye,p:function Mr(Sn){return o[+(Sn.getHours()>=12)]},q:function _r(Sn){return 1+~~(Sn.getMonth()/3)},Q:f$,s:p$,S:Hye,u:jye,U:Gye,V:zye,w:Wye,W:Vye,x:null,X:null,y:Yye,Y:qye,Z:Qye,"%":d$},Ee={a:function zr(Sn){return s[Sn.getUTCDay()]},A:function Ur(Sn){return a[Sn.getUTCDay()]},b:function Kr(Sn){return u[Sn.getUTCMonth()]},B:function Fo(Sn){return l[Sn.getUTCMonth()]},c:null,d:l$,e:l$,f:t0e,g:d0e,G:p0e,H:Xye,I:$ye,j:e0e,L:u$,m:n0e,M:r0e,p:function er(Sn){return o[+(Sn.getUTCHours()>=12)]},q:function wr(Sn){return 1+~~(Sn.getUTCMonth()/3)},Q:f$,s:p$,S:i0e,u:o0e,U:a0e,V:s0e,w:l0e,W:u0e,x:null,X:null,y:c0e,Y:f0e,Z:h0e,"%":d$},Ve={a:function bt(Sn,gn,tr){var un=Z.exec(gn.slice(tr));return un?(Sn.w=z[un[0].toLowerCase()],tr+un[0].length):-1},A:function Xe(Sn,gn,tr){var un=g.exec(gn.slice(tr));return un?(Sn.w=C[un[0].toLowerCase()],tr+un[0].length):-1},b:function Pe(Sn,gn,tr){var un=ae.exec(gn.slice(tr));return un?(Sn.m=Se[un[0].toLowerCase()],tr+un[0].length):-1},B:function ft(Sn,gn,tr){var un=q.exec(gn.slice(tr));return un?(Sn.m=re[un[0].toLowerCase()],tr+un[0].length):-1},c:function Nt(Sn,gn,tr){return ot(Sn,r,gn,tr)},d:r$,e:r$,f:Oye,g:n$,G:t$,H:i$,I:i$,j:Eye,L:Aye,m:Sye,M:xye,p:function ht(Sn,gn,tr){var un=d.exec(gn.slice(tr));return un?(Sn.p=h[un[0].toLowerCase()],tr+un[0].length):-1},q:Mye,Q:Pye,s:Rye,S:Dye,u:bye,U:Cye,V:wye,w:yye,W:kye,x:function Gt(Sn,gn,tr){return ot(Sn,e,gn,tr)},X:function It(Sn,gn,tr){return ot(Sn,i,gn,tr)},y:n$,Y:t$,Z:Tye,"%":Iye};function ut(Sn,gn){return function(tr){var vr,io,Yu,un=[],bn=-1,Bn=0,nr=Sn.length;for(tr instanceof Date||(tr=new Date(+tr));++bn<nr;)37===Sn.charCodeAt(bn)&&(un.push(Sn.slice(Bn,bn)),null!=(io=e$[vr=Sn.charAt(++bn)])?vr=Sn.charAt(++bn):io="e"===vr?" ":"0",(Yu=gn[vr])&&(vr=Yu(tr,io)),un.push(vr),Bn=bn+1);return un.push(Sn.slice(Bn,bn)),un.join("")}}function Ae(Sn,gn){return function(tr){var Bn,nr,un=jx(1900,void 0,1);if(ot(un,Sn,tr+="",0)!=tr.length)return null;if("Q"in un)return new Date(un.Q);if("s"in un)return new Date(1e3*un.s+("L"in un?un.L:0));if(gn&&!("Z"in un)&&(un.Z=0),"p"in un&&(un.H=un.H%12+12*un.p),void 0===un.m&&(un.m="q"in un?un.q:0),"V"in un){if(un.V<1||un.V>53)return null;"w"in un||(un.w=1),"Z"in un?(nr=(Bn=pj(jx(un.y,0,1))).getUTCDay(),Bn=nr>4||0===nr?v0.ceil(Bn):v0(Bn),Bn=Hx.offset(Bn,7*(un.V-1)),un.y=Bn.getUTCFullYear(),un.m=Bn.getUTCMonth(),un.d=Bn.getUTCDate()+(un.w+6)%7):(nr=(Bn=fj(jx(un.y,0,1))).getDay(),Bn=nr>4||0===nr?_0.ceil(Bn):_0(Bn),Bn=Ux.offset(Bn,7*(un.V-1)),un.y=Bn.getFullYear(),un.m=Bn.getMonth(),un.d=Bn.getDate()+(un.w+6)%7)}else("W"in un||"U"in un)&&("w"in un||(un.w="u"in un?un.u%7:"W"in un?1:0),nr="Z"in un?pj(jx(un.y,0,1)).getUTCDay():fj(jx(un.y,0,1)).getDay(),un.m=0,un.d="W"in un?(un.w+6)%7+7*un.W-(nr+5)%7:un.w+7*un.U-(nr+6)%7);return"Z"in un?(un.H+=un.Z/100|0,un.M+=un.Z%100,pj(un)):fj(un)}}function ot(Sn,gn,tr,un){for(var vr,io,bn=0,Bn=gn.length,nr=tr.length;bn<Bn;){if(un>=nr)return-1;if(37===(vr=gn.charCodeAt(bn++))){if(vr=gn.charAt(bn++),!(io=Ve[vr in e$?gn.charAt(bn++):vr])||(un=io(Sn,tr,un))<0)return-1}else if(vr!=tr.charCodeAt(un++))return-1}return un}return Ce.x=ut(e,Ce),Ce.X=ut(i,Ce),Ce.c=ut(r,Ce),Ee.x=ut(e,Ee),Ee.X=ut(i,Ee),Ee.c=ut(r,Ee),{format:function(gn){var tr=ut(gn+="",Ce);return tr.toString=function(){return gn},tr},parse:function(gn){var tr=Ae(gn+="",!1);return tr.toString=function(){return gn},tr},utcFormat:function(gn){var tr=ut(gn+="",Ee);return tr.toString=function(){return gn},tr},utcParse:function(gn){var tr=Ae(gn+="",!0);return tr.toString=function(){return gn},tr}}}(n),h$=Ew.format,Ew.parse,m$=Ew.utcFormat,Ew.utcParse,Ew}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Wx=1e3,Vx=6e4,Yx=60*Vx,Kx=24*Yx,_$=30*Kx,hj=365*Kx;function y0e(n){return new Date(n)}function b0e(n){return n instanceof Date?+n:+new Date(+n)}function mj(n,r,e,i,o,a,s,l,u){var d=tN(ij,Yc),h=d.invert,g=d.domain,C=u(".%L"),Z=u(":%S"),z=u("%I:%M"),q=u("%I %p"),re=u("%a %d"),ae=u("%b %d"),Se=u("%B"),Ce=u("%Y"),Ee=[[s,1,Wx],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,Vx],[a,5,5*Vx],[a,15,15*Vx],[a,30,30*Vx],[o,1,Yx],[o,3,3*Yx],[o,6,6*Yx],[o,12,12*Yx],[i,1,Kx],[i,2,2*Kx],[e,1,6048e5],[r,1,_$],[r,3,3*_$],[n,1,hj]];function Ve(Ae){return(s(Ae)<Ae?C:a(Ae)<Ae?Z:o(Ae)<Ae?z:i(Ae)<Ae?q:r(Ae)<Ae?e(Ae)<Ae?re:ae:n(Ae)<Ae?Se:Ce)(Ae)}function ut(Ae,ot,ht,bt){if(null==Ae&&(Ae=10),"number"==typeof Ae){var Xe=Math.abs(ht-ot)/Ae,Pe=O7(function(ft){return ft[2]}).right(Ee,Xe);Pe===Ee.length?(bt=Qy(ot/hj,ht/hj,Ae),Ae=n):Pe?(bt=(Pe=Ee[Xe/Ee[Pe-1][2]<Ee[Pe][2]/Xe?Pe-1:Pe])[1],Ae=Pe[0]):(bt=Math.max(Qy(ot,ht,Ae),1),Ae=l)}return null==bt?Ae:Ae.every(bt)}return d.invert=function(Ae){return new Date(h(Ae))},d.domain=function(Ae){return arguments.length?g($H.call(Ae,b0e)):g().map(y0e)},d.ticks=function(Ae,ot){var ft,ht=g(),bt=ht[0],Xe=ht[ht.length-1],Pe=Xe<bt;return Pe&&(ft=bt,bt=Xe,Xe=ft),ft=(ft=ut(Ae,bt,Xe,ot))?ft.range(bt,Xe+1):[],Pe?ft.reverse():ft},d.tickFormat=function(Ae,ot){return null==ot?Ve:u(ot)},d.nice=function(Ae,ot){var ht=g();return(Ae=ut(Ae,ht[0],ht[ht.length-1],ot))?g(ZX(ht,Ae)):d},d.copy=function(){return eN(d,mj(n,r,e,i,o,a,s,l,u))},d}function C0e(){return mj(tf,iye,sN,Ux,uye,cye,QX,XX,h$).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var g$=Bs(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),w0e=g$,v$=(g$.range,Bs(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*aN)},function(n,r){return(r-n)/aN},function(n){return n.getUTCHours()})),k0e=v$,y$=(v$.range,Bs(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*h0)},function(n,r){return(r-n)/h0},function(n){return n.getUTCMinutes()})),T0e=y$;y$.range;function M0e(){return mj(nf,w0e,uN,Hx,k0e,T0e,QX,XX,m$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function b$(n){var r=0,e=1,i=!1;function o(a){var s=(a-r)/(e-r);return n(i?Math.max(0,Math.min(1,s)):s)}return o.domain=function(a){return arguments.length?(r=+a[0],e=+a[1],o):[r,e]},o.clamp=function(a){return arguments.length?(i=!!a,o):i},o.interpolator=function(a){return arguments.length?(n=a,o):n},o.copy=function(){return b$(n).domain([r,e]).clamp(i)},Fx(o)}function oi(n){for(var r=n.length/6|0,e=new Array(r),i=0;i<r;)e[i]="#"+n.slice(6*i,6*++i);return e}var S0e=oi("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),E0e=oi("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),x0e=oi("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),D0e=oi("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),A0e=oi("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),O0e=oi("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),I0e=oi("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),P0e=oi("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),R0e=oi("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Oo(n){return efe(n[n.length-1])}var C$=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(oi),L0e=Oo(C$),w$=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(oi),Z0e=Oo(w$),k$=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(oi),N0e=Oo(k$),T$=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(oi),B0e=Oo(T$),M$=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(oi),F0e=Oo(M$),S$=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(oi),U0e=Oo(S$),E$=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(oi),H0e=Oo(E$),x$=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(oi),j0e=Oo(x$),D$=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(oi),G0e=Oo(D$),A$=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(oi),z0e=Oo(A$),O$=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(oi),W0e=Oo(O$),I$=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(oi),V0e=Oo(I$),P$=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(oi),Y0e=Oo(P$),R$=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(oi),K0e=Oo(R$),L$=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(oi),q0e=Oo(L$),Z$=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(oi),J0e=Oo(Z$),N$=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(oi),Q0e=Oo(N$),B$=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(oi),X0e=Oo(B$),F$=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(oi),$0e=Oo(F$),U$=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(oi),ebe=Oo(U$),H$=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(oi),tbe=Oo(H$),j$=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(oi),nbe=Oo(j$),G$=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(oi),rbe=Oo(G$),z$=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(oi),ibe=Oo(z$),W$=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(oi),obe=Oo(W$),V$=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(oi),abe=Oo(V$),Y$=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(oi),sbe=Oo(Y$),lbe=Math.PI/180,ube=180/Math.PI,_j=1.78277,gj=-.29227,cN=-.90649,qx=1.97294,q$=qx*cN,J$=qx*_j,Q$=_j*gj- -.14861*cN;function cbe(n){if(n instanceof y0)return new y0(n.h,n.s,n.l,n.opacity);n instanceof eu||(n=kK(n));var r=n.r/255,e=n.g/255,i=n.b/255,o=(Q$*i+q$*r-J$*e)/(Q$+q$-J$),a=i-o,s=(qx*(e-o)-gj*a)/cN,l=Math.sqrt(s*s+a*a)/(qx*o*(1-o)),u=l?Math.atan2(s,a)*ube-120:NaN;return new y0(u<0?u+360:u,l,o,n.opacity)}function yp(n,r,e,i){return 1===arguments.length?cbe(n):new y0(n,r,e,null==i?1:i)}function y0(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function X$(n){return function r(e){function i(o,a){var s=n((o=yp(o)).h,(a=yp(a)).h),l=$1(o.s,a.s),u=$1(o.l,a.l),d=$1(o.opacity,a.opacity);return function(h){return o.h=s(h),o.s=l(h),o.l=u(Math.pow(h,e)),o.opacity=d(h),o+""}}return e=+e,i.gamma=r,i}(1)}AL(y0,yp,W7(J1,{brighter:function(r){return r=null==r?Q1:Math.pow(Q1,r),new y0(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new y0(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=isNaN(this.h)?0:(this.h+120)*lbe,e=+this.l,i=isNaN(this.s)?0:this.s*e*(1-e),o=Math.cos(r),a=Math.sin(r);return new eu(255*(e+i*(-.14861*o+_j*a)),255*(e+i*(gj*o+cN*a)),255*(e+i*(qx*o)),this.opacity)}}));X$(function Xde(n,r){var e=r-n;return e?DK(n,e>180||e<-180?e-360*Math.round(e/360):e):PL(isNaN(n)?r:n)});var vj=X$($1),dbe=vj(yp(300,.5,0),yp(-240,.5,1)),fbe=vj(yp(-100,.75,.35),yp(80,1.5,.8)),pbe=vj(yp(260,.75,.35),yp(80,1.5,.8)),dN=yp();function hbe(n){(n<0||n>1)&&(n-=Math.floor(n));var r=Math.abs(n-.5);return dN.h=360*n-100,dN.s=1.5-1.5*r,dN.l=.8-.9*r,dN+""}function fN(n){var r=n.length;return function(e){return n[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var mbe=fN(oi("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),_be=fN(oi("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),gbe=fN(oi("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),vbe=fN(oi("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),yj="http://www.w3.org/1999/xhtml",bj={svg:"http://www.w3.org/2000/svg",xhtml:yj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Cj(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),bj.hasOwnProperty(r)?{space:bj[r],local:n}:n}function ybe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===yj&&r.documentElement.namespaceURI===yj?r.createElement(n):r.createElementNS(e,n)}}function bbe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function pN(n){var r=Cj(n);return(r.local?bbe:ybe)(r)}function Cbe(){}function wj(n){return null==n?Cbe:function(){return this.querySelector(n)}}function kbe(){return[]}function $$(n){return null==n?kbe:function(){return this.querySelectorAll(n)}}var eee=function(r){return function(){return this.matches(r)}};if("undefined"!=typeof document){var Jx=document.documentElement;if(!Jx.matches){var Mbe=Jx.webkitMatchesSelector||Jx.msMatchesSelector||Jx.mozMatchesSelector||Jx.oMatchesSelector;eee=function(r){return function(){return Mbe.call(this,r)}}}}var tee=eee;function nee(n){return new Array(n.length)}function hN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}hN.prototype={constructor:hN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function Dbe(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new hN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Abe(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new hN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function Zbe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}function Gbe(n){return function(){this.removeAttribute(n)}}function zbe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function Wbe(n,r){return function(){this.setAttribute(n,r)}}function Vbe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Ybe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Kbe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function kj(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Jbe(n){return function(){this.style.removeProperty(n)}}function Qbe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Xbe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function iee(n,r){return n.style.getPropertyValue(r)||kj(n).getComputedStyle(n,null).getPropertyValue(r)}function eCe(n){return function(){delete this[n]}}function tCe(n,r){return function(){this[n]=r}}function nCe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function oee(n){return n.trim().split(/^|\s+/)}function Tj(n){return n.classList||new aee(n)}function aee(n){this._node=n,this._names=oee(n.getAttribute("class")||"")}function see(n,r){for(var e=Tj(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function lee(n,r){for(var e=Tj(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function iCe(n){return function(){see(this,n)}}function oCe(n){return function(){lee(this,n)}}function aCe(n,r){return function(){(r.apply(this,arguments)?see:lee)(this,n)}}function lCe(){this.textContent=""}function uCe(n){return function(){this.textContent=n}}function cCe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function fCe(){this.innerHTML=""}function pCe(n){return function(){this.innerHTML=n}}function hCe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function _Ce(){this.nextSibling&&this.parentNode.appendChild(this)}function vCe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function CCe(){return null}function kCe(){var n=this.parentNode;n&&n.removeChild(this)}function MCe(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function SCe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}aee.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 uee={},om=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(uee={mouseenter:"mouseover",mouseleave:"mouseout"}));function ACe(n,r,e){return n=cee(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function cee(n,r,e){return function(i){var o=om;om=i;try{n.call(this,this.__data__,r,e)}finally{om=o}}}function OCe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function ICe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function PCe(n,r,e){var i=uee.hasOwnProperty(n.type)?ACe:cee;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function LCe(n,r,e,i){var o=om;n.sourceEvent=om,om=n;try{return r.apply(e,i)}finally{om=o}}function dee(n,r,e){var i=kj(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function ZCe(n,r){return function(){return dee(this,n,r)}}function NCe(n,r){return function(){return dee(this,n,r.apply(this,arguments))}}var Mj=[null];function su(n,r){this._groups=n,this._parents=r}function fee(){return new su([[document.documentElement]],Mj)}su.prototype=fee.prototype={constructor:su,select:function wbe(n){"function"!=typeof n&&(n=wj(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new su(i,this._parents)},selectAll:function Tbe(n){"function"!=typeof n&&(n=$$(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new su(i,o)},filter:function Sbe(n){"function"!=typeof n&&(n=tee(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new su(i,this._parents)},data:function Obe(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(ut){Z[++d]=ut}),Z;var e=r?Abe:Dbe,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function xbe(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var Ee,Ve,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);Ee._next=Ve||null}}return(s=new su(s,i))._enter=l,s._exit=u,s},enter:function Ebe(){return new su(this._enter||this._groups.map(nee),this._parents)},exit:function Ibe(){return new su(this._exit||this._groups.map(nee),this._parents)},merge:function Pbe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new su(s,this._parents)},order:function Rbe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&a!==s.nextSibling&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function Lbe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=Zbe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new su(o,this._parents).order()},call:function Nbe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function Bbe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function Fbe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function Ube(){var n=0;return this.each(function(){++n}),n},empty:function Hbe(){return!this.node()},each:function jbe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function qbe(n,r){var e=Cj(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?zbe:Gbe:"function"==typeof r?e.local?Kbe:Ybe:e.local?Vbe:Wbe)(e,r))},style:function $be(n,r,e){return arguments.length>1?this.each((null==r?Jbe:"function"==typeof r?Xbe:Qbe)(n,r,null==e?"":e)):iee(this.node(),n)},property:function rCe(n,r){return arguments.length>1?this.each((null==r?eCe:"function"==typeof r?nCe:tCe)(n,r)):this.node()[n]},classed:function sCe(n,r){var e=oee(n+"");if(arguments.length<2){for(var i=Tj(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?aCe:r?iCe:oCe)(e,r))},text:function dCe(n){return arguments.length?this.each(null==n?lCe:("function"==typeof n?cCe:uCe)(n)):this.node().textContent},html:function mCe(n){return arguments.length?this.each(null==n?fCe:("function"==typeof n?hCe:pCe)(n)):this.node().innerHTML},raise:function gCe(){return this.each(_Ce)},lower:function yCe(){return this.each(vCe)},append:function bCe(n){var r="function"==typeof n?n:pN(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function wCe(n,r){var e="function"==typeof n?n:pN(n),i=null==r?CCe:"function"==typeof r?r:wj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function TCe(){return this.each(kCe)},clone:function ECe(n){return this.select(n?SCe:MCe)},datum:function xCe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function RCe(n,r,e){var o,s,i=OCe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?PCe:ICe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function BCe(n,r){return this.each(("function"==typeof r?NCe:ZCe)(n,r))}};var FCe=fee;function pee(n){return"string"==typeof n?new su([[document.querySelector(n)]],[document.documentElement]):new su([[n]],Mj)}function UCe(n){return pee(pN(n).call(document.documentElement))}var HCe=0;function hee(){return new Sj}function Sj(){this._="@"+(++HCe).toString(36)}function Ej(){for(var r,n=om;r=n.sourceEvent;)n=r;return n}function mN(n,r){var e=n.ownerSVGElement||n;if(e.createSVGPoint){var i=e.createSVGPoint();return i.x=r.clientX,i.y=r.clientY,[(i=i.matrixTransform(n.getScreenCTM().inverse())).x,i.y]}var o=n.getBoundingClientRect();return[r.clientX-o.left-n.clientLeft,r.clientY-o.top-n.clientTop]}function jCe(n){var r=Ej();return r.changedTouches&&(r=r.changedTouches[0]),mN(n,r)}function GCe(n){return"string"==typeof n?new su([document.querySelectorAll(n)],[document.documentElement]):new su([null==n?[]:n],Mj)}function zCe(n,r,e){arguments.length<3&&(e=r,r=Ej().changedTouches);for(var a,i=0,o=r?r.length:0;i<o;++i)if((a=r[i]).identifier===e)return mN(n,a);return null}function WCe(n,r){null==r&&(r=Ej().touches);for(var e=0,i=r?r.length:0,o=new Array(i);e<i;++e)o[e]=mN(n,r[e]);return o}function VCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this);for(var o in e)i.attr(o,e[o])})}function YCe(n,r){for(var e in r)n.attr(e,r[e]);return n}function qCe(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=vi(this);for(var a in i)o.style(a,i[a],e)})}function JCe(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function XCe(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this);for(var o in e)i.property(o,e[o])})}function $Ce(n,r){for(var e in r)n.property(e,r[e]);return n}function t1e(n,r){return n.each(function(){var e=r.apply(this,arguments),i=vi(this).transition(n);for(var o in e)i.attr(o,e[o])})}function n1e(n,r){for(var e in r)n.attr(e,r[e]);return n}function i1e(n,r,e){return n.each(function(){var i=r.apply(this,arguments),o=vi(this).transition(n);for(var a in i)o.style(a,i[a],e)})}function o1e(n,r,e){for(var i in r)n.style(i,r[i],e);return n}function fi(n){return function(){return n}}Sj.prototype=hee.prototype={constructor:Sj,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._}},lg.prototype.attrs=function KCe(n){return("function"==typeof n?VCe:YCe)(this,n)},lg.prototype.styles=function QCe(n,r){return("function"==typeof n?qCe:JCe)(this,n,null==r?"":r)},lg.prototype.properties=function e1e(n){return("function"==typeof n?XCe:$Ce)(this,n)},r9.prototype.attrs=function r1e(n){return("function"==typeof n?t1e:n1e)(this,n)},r9.prototype.styles=function a1e(n,r){return("function"==typeof n?i1e:o1e)(this,n,null==r?"":r)};var mee=Math.abs,kl=Math.atan2,b0=Math.cos,s1e=Math.max,xj=Math.min,bp=Math.sin,xw=Math.sqrt,il=1e-12,C0=Math.PI,_N=C0/2,am=2*C0;function l1e(n){return n>1?0:n<-1?C0:Math.acos(n)}function _ee(n){return n>=1?_N:n<=-1?-_N:Math.asin(n)}function u1e(n){return n.innerRadius}function c1e(n){return n.outerRadius}function d1e(n){return n.startAngle}function f1e(n){return n.endAngle}function p1e(n){return n&&n.padAngle}function h1e(n,r,e,i,o,a,s,l){var u=e-n,d=i-r,h=s-o,g=l-a,C=g*u-h*d;if(!(C*C<il))return[n+(C=(h*(r-a)-g*(n-o))/C)*u,r+C*d]}function gN(n,r,e,i,o,a,s){var l=n-e,u=r-i,d=(s?a:-a)/xw(l*l+u*u),h=d*u,g=-d*l,C=n+h,Z=r+g,z=e+h,q=i+g,re=(C+z)/2,ae=(Z+q)/2,Se=z-C,Ce=q-Z,Ee=Se*Se+Ce*Ce,Ve=o-a,ut=C*q-z*Z,Ae=(Ce<0?-1:1)*xw(s1e(0,Ve*Ve*Ee-ut*ut)),ot=(ut*Ce-Se*Ae)/Ee,ht=(-ut*Se-Ce*Ae)/Ee,bt=(ut*Ce+Se*Ae)/Ee,Xe=(-ut*Se+Ce*Ae)/Ee,Pe=ot-re,ft=ht-ae,Nt=bt-re,Gt=Xe-ae;return Pe*Pe+ft*ft>Nt*Nt+Gt*Gt&&(ot=bt,ht=Xe),{cx:ot,cy:ht,x01:-h,y01:-g,x11:ot*(o/Ve-1),y11:ht*(o/Ve-1)}}function m1e(){var n=u1e,r=c1e,e=fi(0),i=null,o=d1e,a=f1e,s=p1e,l=null;function u(){var d,h,g=+n.apply(this,arguments),C=+r.apply(this,arguments),Z=o.apply(this,arguments)-_N,z=a.apply(this,arguments)-_N,q=mee(z-Z),re=z>Z;if(l||(l=d=Jd()),C<g&&(h=C,C=g,g=h),C>il)if(q>am-il)l.moveTo(C*b0(Z),C*bp(Z)),l.arc(0,0,C,Z,z,!re),g>il&&(l.moveTo(g*b0(z),g*bp(z)),l.arc(0,0,g,z,Z,re));else{var Pe,ft,ae=Z,Se=z,Ce=Z,Ee=z,Ve=q,ut=q,Ae=s.apply(this,arguments)/2,ot=Ae>il&&(i?+i.apply(this,arguments):xw(g*g+C*C)),ht=xj(mee(C-g)/2,+e.apply(this,arguments)),bt=ht,Xe=ht;if(ot>il){var Nt=_ee(ot/g*bp(Ae)),Gt=_ee(ot/C*bp(Ae));(Ve-=2*Nt)>il?(Ce+=Nt*=re?1:-1,Ee-=Nt):(Ve=0,Ce=Ee=(Z+z)/2),(ut-=2*Gt)>il?(ae+=Gt*=re?1:-1,Se-=Gt):(ut=0,ae=Se=(Z+z)/2)}var It=C*b0(ae),Tn=C*bp(ae),jn=g*b0(Ee),zn=g*bp(Ee);if(ht>il){var Ur,or=C*b0(Se),Mr=C*bp(Se),_r=g*b0(Ce),zr=g*bp(Ce);if(q<=am-il&&(Ur=h1e(It,Tn,_r,zr,or,Mr,jn,zn))){var Kr=It-Ur[0],Fo=Tn-Ur[1],er=or-Ur[0],wr=Mr-Ur[1],Sn=1/bp(l1e((Kr*er+Fo*wr)/(xw(Kr*Kr+Fo*Fo)*xw(er*er+wr*wr)))/2),gn=xw(Ur[0]*Ur[0]+Ur[1]*Ur[1]);bt=xj(ht,(g-gn)/(Sn-1)),Xe=xj(ht,(C-gn)/(Sn+1))}}ut>il?Xe>il?(Pe=gN(_r,zr,It,Tn,C,Xe,re),ft=gN(or,Mr,jn,zn,C,Xe,re),l.moveTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),Xe<ht?l.arc(Pe.cx,Pe.cy,Xe,kl(Pe.y01,Pe.x01),kl(ft.y01,ft.x01),!re):(l.arc(Pe.cx,Pe.cy,Xe,kl(Pe.y01,Pe.x01),kl(Pe.y11,Pe.x11),!re),l.arc(0,0,C,kl(Pe.cy+Pe.y11,Pe.cx+Pe.x11),kl(ft.cy+ft.y11,ft.cx+ft.x11),!re),l.arc(ft.cx,ft.cy,Xe,kl(ft.y11,ft.x11),kl(ft.y01,ft.x01),!re))):(l.moveTo(It,Tn),l.arc(0,0,C,ae,Se,!re)):l.moveTo(It,Tn),g>il&&Ve>il?bt>il?(Pe=gN(jn,zn,or,Mr,g,-bt,re),ft=gN(It,Tn,_r,zr,g,-bt,re),l.lineTo(Pe.cx+Pe.x01,Pe.cy+Pe.y01),bt<ht?l.arc(Pe.cx,Pe.cy,bt,kl(Pe.y01,Pe.x01),kl(ft.y01,ft.x01),!re):(l.arc(Pe.cx,Pe.cy,bt,kl(Pe.y01,Pe.x01),kl(Pe.y11,Pe.x11),!re),l.arc(0,0,g,kl(Pe.cy+Pe.y11,Pe.cx+Pe.x11),kl(ft.cy+ft.y11,ft.cx+ft.x11),re),l.arc(ft.cx,ft.cy,bt,kl(ft.y11,ft.x11),kl(ft.y01,ft.x01),!re))):l.arc(0,0,g,Ee,Ce,re):l.lineTo(jn,zn)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return u.centroid=function(){var d=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,h=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-C0/2;return[b0(h)*d,bp(h)*d]},u.innerRadius=function(d){return arguments.length?(n="function"==typeof d?d:fi(+d),u):n},u.outerRadius=function(d){return arguments.length?(r="function"==typeof d?d:fi(+d),u):r},u.cornerRadius=function(d){return arguments.length?(e="function"==typeof d?d:fi(+d),u):e},u.padRadius=function(d){return arguments.length?(i=null==d?null:"function"==typeof d?d:fi(+d),u):i},u.startAngle=function(d){return arguments.length?(o="function"==typeof d?d:fi(+d),u):o},u.endAngle=function(d){return arguments.length?(a="function"==typeof d?d:fi(+d),u):a},u.padAngle=function(d){return arguments.length?(s="function"==typeof d?d:fi(+d),u):s},u.context=function(d){return arguments.length?(l=null==d?null:d,u):l},u}function gee(n){this._context=n}function vN(n){return new gee(n)}function Dj(n){return n[0]}function Aj(n){return n[1]}function yN(){var n=Dj,r=Aj,e=fi(!0),i=null,o=vN,a=null;function s(l){var u,h,C,d=l.length,g=!1;for(null==i&&(a=o(C=Jd())),u=0;u<=d;++u)!(u<d&&e(h=l[u],u,l))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+n(h,u,l),+r(h,u,l));if(C)return a=null,C+""||null}return s.x=function(l){return arguments.length?(n="function"==typeof l?l:fi(+l),s):n},s.y=function(l){return arguments.length?(r="function"==typeof l?l:fi(+l),s):r},s.defined=function(l){return arguments.length?(e="function"==typeof l?l:fi(!!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 vee(){var n=Dj,r=null,e=fi(0),i=Aj,o=fi(!0),a=null,s=vN,l=null;function u(h){var g,C,Z,q,ae,z=h.length,re=!1,Se=new Array(z),Ce=new Array(z);for(null==a&&(l=s(ae=Jd())),g=0;g<=z;++g){if(!(g<z&&o(q=h[g],g,h))===re)if(re=!re)C=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),Z=g-1;Z>=C;--Z)l.point(Se[Z],Ce[Z]);l.lineEnd(),l.areaEnd()}re&&(Se[g]=+n(q,g,h),Ce[g]=+e(q,g,h),l.point(r?+r(q,g,h):Se[g],i?+i(q,g,h):Ce[g]))}if(ae)return l=null,ae+""||null}function d(){return yN().defined(o).curve(s).context(a)}return u.x=function(h){return arguments.length?(n="function"==typeof h?h:fi(+h),r=null,u):n},u.x0=function(h){return arguments.length?(n="function"==typeof h?h:fi(+h),u):n},u.x1=function(h){return arguments.length?(r=null==h?null:"function"==typeof h?h:fi(+h),u):r},u.y=function(h){return arguments.length?(e="function"==typeof h?h:fi(+h),i=null,u):e},u.y0=function(h){return arguments.length?(e="function"==typeof h?h:fi(+h),u):e},u.y1=function(h){return arguments.length?(i=null==h?null:"function"==typeof h?h:fi(+h),u):i},u.lineX0=u.lineY0=function(){return d().x(n).y(e)},u.lineY1=function(){return d().x(n).y(i)},u.lineX1=function(){return d().x(r).y(e)},u.defined=function(h){return arguments.length?(o="function"==typeof h?h:fi(!!h),u):o},u.curve=function(h){return arguments.length?(s=h,null!=a&&(l=s(a)),u):s},u.context=function(h){return arguments.length?(null==h?a=l=null:l=s(a=h),u):a},u}function _1e(n,r){return r<n?-1:r>n?1:r>=n?0:NaN}function g1e(n){return n}function v1e(){var n=g1e,r=_1e,e=null,i=fi(0),o=fi(am),a=fi(0);function s(l){var u,h,g,ae,Ee,d=l.length,C=0,Z=new Array(d),z=new Array(d),q=+i.apply(this,arguments),re=Math.min(am,Math.max(-am,o.apply(this,arguments)-q)),Se=Math.min(Math.abs(re)/d,a.apply(this,arguments)),Ce=Se*(re<0?-1:1);for(u=0;u<d;++u)(Ee=z[Z[u]=u]=+n(l[u],u,l))>0&&(C+=Ee);for(null!=r?Z.sort(function(Ve,ut){return r(z[Ve],z[ut])}):null!=e&&Z.sort(function(Ve,ut){return e(l[Ve],l[ut])}),u=0,g=C?(re-d*Ce)/C:0;u<d;++u,q=ae)h=Z[u],ae=q+((Ee=z[h])>0?Ee*g:0)+Ce,z[h]={data:l[h],index:u,value:Ee,startAngle:q,endAngle:ae,padAngle:Se};return z}return s.value=function(l){return arguments.length?(n="function"==typeof l?l:fi(+l),s):n},s.sortValues=function(l){return arguments.length?(r=l,e=null,s):r},s.sort=function(l){return arguments.length?(e=l,r=null,s):e},s.startAngle=function(l){return arguments.length?(i="function"==typeof l?l:fi(+l),s):i},s.endAngle=function(l){return arguments.length?(o="function"==typeof l?l:fi(+l),s):o},s.padAngle=function(l){return arguments.length?(a="function"==typeof l?l:fi(+l),s):a},s}gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e)}}};var yee=Oj(vN);function bee(n){this._curve=n}function Oj(n){function r(e){return new bee(n(e))}return r._curve=n,r}function Qx(n){var r=n.curve;return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n.curve=function(e){return arguments.length?r(Oj(e)):r()._curve},n}function Cee(){return Qx(yN().curve(yee))}function wee(){var n=vee().curve(yee),r=n.curve,e=n.lineX0,i=n.lineX1,o=n.lineY0,a=n.lineY1;return n.angle=n.x,delete n.x,n.startAngle=n.x0,delete n.x0,n.endAngle=n.x1,delete n.x1,n.radius=n.y,delete n.y,n.innerRadius=n.y0,delete n.y0,n.outerRadius=n.y1,delete n.y1,n.lineStartAngle=function(){return Qx(e())},delete n.lineX0,n.lineEndAngle=function(){return Qx(i())},delete n.lineX1,n.lineInnerRadius=function(){return Qx(o())},delete n.lineY0,n.lineOuterRadius=function(){return Qx(a())},delete n.lineY1,n.curve=function(s){return arguments.length?r(Oj(s)):r()._curve},n}function Xx(n,r){return[(r=+r)*Math.cos(n-=Math.PI/2),r*Math.sin(n)]}bee.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(r,e){this._curve.point(e*Math.sin(r),e*-Math.cos(r))}};var Ij=Array.prototype.slice;function y1e(n){return n.source}function b1e(n){return n.target}function Pj(n){var r=y1e,e=b1e,i=Dj,o=Aj,a=null;function s(){var l,u=Ij.call(arguments),d=r.apply(this,u),h=e.apply(this,u);if(a||(a=l=Jd()),n(a,+i.apply(this,(u[0]=d,u)),+o.apply(this,u),+i.apply(this,(u[0]=h,u)),+o.apply(this,u)),l)return a=null,l+""||null}return s.source=function(l){return arguments.length?(r=l,s):r},s.target=function(l){return arguments.length?(e=l,s):e},s.x=function(l){return arguments.length?(i="function"==typeof l?l:fi(+l),s):i},s.y=function(l){return arguments.length?(o="function"==typeof l?l:fi(+l),s):o},s.context=function(l){return arguments.length?(a=null==l?null:l,s):a},s}function C1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r=(r+i)/2,e,r,o,i,o)}function w1e(n,r,e,i,o){n.moveTo(r,e),n.bezierCurveTo(r,e=(e+o)/2,i,e,i,o)}function k1e(n,r,e,i,o){var a=Xx(r,e),s=Xx(r,e=(e+o)/2),l=Xx(i,e),u=Xx(i,o);n.moveTo(a[0],a[1]),n.bezierCurveTo(s[0],s[1],l[0],l[1],u[0],u[1])}function T1e(){return Pj(C1e)}function M1e(){return Pj(w1e)}function S1e(){var n=Pj(k1e);return n.angle=n.x,delete n.x,n.radius=n.y,delete n.y,n}var Rj={draw:function(r,e){var i=Math.sqrt(e/C0);r.moveTo(i,0),r.arc(0,0,i,0,am)}},kee={draw:function(r,e){var i=Math.sqrt(e/5)/2;r.moveTo(-3*i,-i),r.lineTo(-i,-i),r.lineTo(-i,-3*i),r.lineTo(i,-3*i),r.lineTo(i,-i),r.lineTo(3*i,-i),r.lineTo(3*i,i),r.lineTo(i,i),r.lineTo(i,3*i),r.lineTo(-i,3*i),r.lineTo(-i,i),r.lineTo(-3*i,i),r.closePath()}},Tee=Math.sqrt(1/3),E1e=2*Tee,Mee={draw:function(r,e){var i=Math.sqrt(e/E1e),o=i*Tee;r.moveTo(0,-i),r.lineTo(o,0),r.lineTo(0,i),r.lineTo(-o,0),r.closePath()}},See=Math.sin(C0/10)/Math.sin(7*C0/10),D1e=Math.sin(am/10)*See,A1e=-Math.cos(am/10)*See,Eee={draw:function(r,e){var i=Math.sqrt(.8908130915292852*e),o=D1e*i,a=A1e*i;r.moveTo(0,-i),r.lineTo(o,a);for(var s=1;s<5;++s){var l=am*s/5,u=Math.cos(l),d=Math.sin(l);r.lineTo(d*i,-u*i),r.lineTo(u*o-d*a,d*o+u*a)}r.closePath()}},xee={draw:function(r,e){var i=Math.sqrt(e),o=-i/2;r.rect(o,o,i,i)}},Lj=Math.sqrt(3),Dee={draw:function(r,e){var i=-Math.sqrt(e/(3*Lj));r.moveTo(0,2*i),r.lineTo(-Lj*i,-i),r.lineTo(Lj*i,-i),r.closePath()}},Jc=-.5,Qc=Math.sqrt(3)/2,Zj=1/Math.sqrt(12),O1e=3*(Zj/2+1),Aee={draw:function(r,e){var i=Math.sqrt(e/O1e),o=i/2,a=i*Zj,s=o,l=i*Zj+i,u=-s,d=l;r.moveTo(o,a),r.lineTo(s,l),r.lineTo(u,d),r.lineTo(Jc*o-Qc*a,Qc*o+Jc*a),r.lineTo(Jc*s-Qc*l,Qc*s+Jc*l),r.lineTo(Jc*u-Qc*d,Qc*u+Jc*d),r.lineTo(Jc*o+Qc*a,Jc*a-Qc*o),r.lineTo(Jc*s+Qc*l,Jc*l-Qc*s),r.lineTo(Jc*u+Qc*d,Jc*d-Qc*u),r.closePath()}},I1e=[Rj,kee,Mee,xee,Eee,Dee,Aee];function P1e(){var n=fi(Rj),r=fi(64),e=null;function i(){var o;if(e||(e=o=Jd()),n.apply(this,arguments).draw(e,+r.apply(this,arguments)),o)return e=null,o+""||null}return i.type=function(o){return arguments.length?(n="function"==typeof o?o:fi(o),i):n},i.size=function(o){return arguments.length?(r="function"==typeof o?o:fi(+o),i):r},i.context=function(o){return arguments.length?(e=null==o?null:o,i):e},i}function bg(){}function bN(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function CN(n){this._context=n}function R1e(n){return new CN(n)}function Oee(n){this._context=n}function L1e(n){return new Oee(n)}function Iee(n){this._context=n}function Z1e(n){return new Iee(n)}function Pee(n,r){this._basis=new CN(n),this._beta=r}CN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bN(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Oee.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x2=r,this._y2=e;break;case 1:this._point=2,this._x3=r,this._y3=e;break;case 2:this._point=3,this._x4=r,this._y4=e,this._context.moveTo((this._x0+4*this._x1+r)/6,(this._y0+4*this._y1+e)/6);break;default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Iee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+r)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,o):this._context.moveTo(i,o);break;case 3:this._point=4;default:bN(this,r,e)}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e}},Pee.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var r=this._x,e=this._y,i=r.length-1;if(i>0)for(var d,o=r[0],a=e[0],s=r[i]-o,l=e[i]-a,u=-1;++u<=i;)d=u/i,this._basis.point(this._beta*r[u]+(1-this._beta)*(o+d*s),this._beta*e[u]+(1-this._beta)*(a+d*l));this._x=this._y=null,this._basis.lineEnd()},point:function(r,e){this._x.push(+r),this._y.push(+e)}};var N1e=function n(r){function e(i){return 1===r?new CN(i):new Pee(i,r)}return e.beta=function(i){return n(+i)},e}(.85);function wN(n,r,e){n._context.bezierCurveTo(n._x1+n._k*(n._x2-n._x0),n._y1+n._k*(n._y2-n._y0),n._x2+n._k*(n._x1-r),n._y2+n._k*(n._y1-e),n._x2,n._y2)}function Nj(n,r){this._context=n,this._k=(1-r)/6}Nj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:wN(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var B1e=function n(r){function e(i){return new Nj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Bj(n,r){this._context=n,this._k=(1-r)/6}Bj.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F1e=function n(r){function e(i){return new Bj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Fj(n,r){this._context=n,this._k=(1-r)/6}Fj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wN(this,r,e)}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var U1e=function n(r){function e(i){return new Fj(i,r)}return e.tension=function(i){return n(+i)},e}(0);function Uj(n,r,e){var i=n._x1,o=n._y1,a=n._x2,s=n._y2;if(n._l01_a>il){var l=2*n._l01_2a+3*n._l01_a*n._l12_a+n._l12_2a,u=3*n._l01_a*(n._l01_a+n._l12_a);i=(i*l-n._x0*n._l12_2a+n._x2*n._l01_2a)/u,o=(o*l-n._y0*n._l12_2a+n._y2*n._l01_2a)/u}if(n._l23_a>il){var d=2*n._l23_2a+3*n._l23_a*n._l12_a+n._l12_2a,h=3*n._l23_a*(n._l23_a+n._l12_a);a=(a*d+n._x1*n._l23_2a-r*n._l12_2a)/h,s=(s*d+n._y1*n._l23_2a-e*n._l12_2a)/h}n._context.bezierCurveTo(i,o,a,s,n._x2,n._y2)}function Ree(n,r){this._context=n,this._alpha=r}Ree.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var H1e=function n(r){function e(i){return r?new Ree(i,r):new Nj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Lee(n,r){this._context=n,this._alpha=r}Lee.prototype={areaStart:bg,areaEnd:bg,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=r,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=r,this._y4=e);break;case 2:this._point=3,this._x5=r,this._y5=e;break;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var j1e=function n(r){function e(i){return r?new Lee(i,r):new Bj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Zee(n,r){this._context=n,this._alpha=r}Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){if(r=+r,e=+e,this._point){var i=this._x2-r,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Uj(this,r,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var G1e=function n(r){function e(i){return r?new Zee(i,r):new Fj(i,0)}return e.alpha=function(i){return n(+i)},e}(.5);function Nee(n){this._context=n}function z1e(n){return new Nee(n)}function Bee(n){return n<0?-1:1}function Fee(n,r,e){var i=n._x1-n._x0,o=r-n._x1,a=(n._y1-n._y0)/(i||o<0&&-0),s=(e-n._y1)/(o||i<0&&-0),l=(a*o+s*i)/(i+o);return(Bee(a)+Bee(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function Uee(n,r){var e=n._x1-n._x0;return e?(3*(n._y1-n._y0)/e-r)/2:r}function Hj(n,r,e){var i=n._x0,o=n._y0,a=n._x1,s=n._y1,l=(a-i)/3;n._context.bezierCurveTo(i+l,o+l*r,a-l,s-l*e,a,s)}function kN(n){this._context=n}function Hee(n){this._context=new jee(n)}function jee(n){this._context=n}function W1e(n){return new kN(n)}function V1e(n){return new Hee(n)}function Gee(n){this._context=n}function zee(n){var r,i,e=n.length-1,o=new Array(e),a=new Array(e),s=new Array(e);for(o[0]=0,a[0]=2,s[0]=n[0]+2*n[1],r=1;r<e-1;++r)o[r]=1,a[r]=4,s[r]=4*n[r]+2*n[r+1];for(o[e-1]=2,a[e-1]=7,s[e-1]=8*n[e-1]+n[e],r=1;r<e;++r)i=o[r]/a[r-1],a[r]-=i,s[r]-=i*s[r-1];for(o[e-1]=s[e-1]/a[e-1],r=e-2;r>=0;--r)o[r]=(s[r]-o[r+1])/a[r];for(a[e-1]=(n[e]+o[e-1])/2,r=0;r<e-1;++r)a[r]=2*n[r+1]-o[r+1];return[o,a]}function Y1e(n){return new Gee(n)}function TN(n,r){this._context=n,this._t=r}function K1e(n){return new TN(n,.5)}function q1e(n){return new TN(n,0)}function J1e(n){return new TN(n,1)}function Dw(n,r){if((s=n.length)>1)for(var i,o,s,e=1,a=n[r[0]],l=a.length;e<s;++e)for(o=a,a=n[r[e]],i=0;i<l;++i)a[i][1]+=a[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function Aw(n){for(var r=n.length,e=new Array(r);--r>=0;)e[r]=r;return e}function Q1e(n,r){return n[r]}function X1e(){var n=fi([]),r=Aw,e=Dw,i=Q1e;function o(a){var l,g,s=n.apply(this,arguments),u=a.length,d=s.length,h=new Array(d);for(l=0;l<d;++l){for(var q,C=s[l],Z=h[l]=new Array(u),z=0;z<u;++z)Z[z]=q=[0,+i(a[z],C,z,a)],q.data=a[z];Z.key=C}for(l=0,g=r(h);l<d;++l)h[g[l]].index=l;return e(h,g),h}return o.keys=function(a){return arguments.length?(n="function"==typeof a?a:fi(Ij.call(a)),o):n},o.value=function(a){return arguments.length?(i="function"==typeof a?a:fi(+a),o):i},o.order=function(a){return arguments.length?(r=null==a?Aw:"function"==typeof a?a:fi(Ij.call(a)),o):r},o.offset=function(a){return arguments.length?(e=null==a?Dw:a,o):e},o}function $1e(n,r){if((i=n.length)>0){for(var e,i,s,o=0,a=n[0].length;o<a;++o){for(s=e=0;e<i;++e)s+=n[e][o][1]||0;if(s)for(e=0;e<i;++e)n[e][o][1]/=s}Dw(n,r)}}function ewe(n,r){if((u=n.length)>1)for(var e,o,a,s,l,u,i=0,d=n[r[0]].length;i<d;++i)for(s=l=0,e=0;e<u;++e)(a=(o=n[r[e]][i])[1]-o[0])>=0?(o[0]=s,o[1]=s+=a):a<0?(o[1]=l,o[0]=l+=a):o[0]=s}function twe(n,r){if((o=n.length)>0){for(var o,e=0,i=n[r[0]],a=i.length;e<a;++e){for(var s=0,l=0;s<o;++s)l+=n[s][e][1]||0;i[e][1]+=i[e][0]=-l/2}Dw(n,r)}}function nwe(n,r){if((s=n.length)>0&&(a=(o=n[r[0]]).length)>0){for(var o,a,s,e=0,i=1;i<a;++i){for(var l=0,u=0,d=0;l<s;++l){for(var h=n[r[l]],g=h[i][1]||0,Z=(g-(h[i-1][1]||0))/2,z=0;z<l;++z){var q=n[r[z]];Z+=(q[i][1]||0)-(q[i-1][1]||0)}u+=g,d+=Z*g}o[i-1][1]+=o[i-1][0]=e,u&&(e-=d/u)}o[i-1][1]+=o[i-1][0]=e,Dw(n,r)}}function Wee(n){var r=n.map(Vee);return Aw(n).sort(function(e,i){return r[e]-r[i]})}function Vee(n){for(var o,r=0,e=-1,i=n.length;++e<i;)(o=+n[e][1])&&(r+=o);return r}function rwe(n){return Wee(n).reverse()}function iwe(n){var e,i,r=n.length,o=n.map(Vee),a=Aw(n).sort(function(h,g){return o[g]-o[h]}),s=0,l=0,u=[],d=[];for(e=0;e<r;++e)i=a[e],s<l?(s+=o[i],u.push(i)):(l+=o[i],d.push(i));return d.reverse().concat(u)}function owe(n){return Aw(n).reverse()}Nee.prototype={areaStart:bg,areaEnd:bg,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))}},kN.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:Hj(this,this._t0,Uee(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,Hj(this,Uee(this,i=Fee(this,r,e)),i);break;default:Hj(this,this._t0,i=Fee(this,r,e))}this._x0=this._x1,this._x1=r,this._y0=this._y1,this._y1=e,this._t0=i}}},(Hee.prototype=Object.create(kN.prototype)).point=function(n,r){kN.prototype.point.call(this,r,n)},jee.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)}},Gee.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=zee(r),a=zee(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)}},TN.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 jj=new Date,Gj=new Date;function ws(n,r,e,i){function o(a){return n(a=new Date(+a)),a}return o.floor=o,o.ceil=function(a){return n(a=new Date(a-1)),r(a,1),n(a),a},o.round=function(a){var s=o(a),l=o.ceil(a);return a-s<l-a?s:l},o.offset=function(a,s){return r(a=new Date(+a),null==s?1:Math.floor(s)),a},o.range=function(a,s,l){var d,u=[];if(a=o.ceil(a),l=null==l?1:Math.floor(l),!(a<s&&l>0))return u;do{u.push(d=new Date(+a)),r(a,l),n(a)}while(d<a&&a<s);return u},o.filter=function(a){return ws(function(s){if(s>=s)for(;n(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},e&&(o.count=function(a,s){return jj.setTime(+a),Gj.setTime(+s),n(jj),n(Gj),Math.floor(e(jj,Gj))},o.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?o.filter(i?function(s){return i(s)%a==0}:function(s){return o.count(0,s)%a==0}):o:null}),o}var MN=ws(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});MN.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?ws(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):MN:null};var Yee=MN,Kee=MN.range,w0=6e4,EN=36e5,Qee=ws(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+1e3*r)},function(n,r){return(r-n)/1e3},function(n){return n.getUTCSeconds()}),Xee=Qee,$ee=Qee.range,ete=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds())},function(n,r){n.setTime(+n+r*w0)},function(n,r){return(r-n)/w0},function(n){return n.getMinutes()}),awe=ete,swe=ete.range,tte=ws(function(n){n.setTime(n-n.getMilliseconds()-1e3*n.getSeconds()-n.getMinutes()*w0)},function(n,r){n.setTime(+n+r*EN)},function(n,r){return(r-n)/EN},function(n){return n.getHours()}),lwe=tte,uwe=tte.range,nte=ws(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*w0)/864e5},function(n){return n.getDate()-1}),cwe=nte,dwe=nte.range;function k0(n){return ws(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*w0)/6048e5})}var zj=k0(0),rte=k0(1),ite=k0(2),ote=k0(3),ate=k0(4),ste=k0(5),lte=k0(6),ute=zj.range,fwe=rte.range,pwe=ite.range,hwe=ote.range,mwe=ate.range,_we=ste.range,gwe=lte.range,cte=ws(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}),vwe=cte,ywe=cte.range,Wj=ws(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Wj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};var bwe=Wj,Cwe=Wj.range,dte=ws(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*w0)},function(n,r){return(r-n)/w0},function(n){return n.getUTCMinutes()}),wwe=dte,kwe=dte.range,fte=ws(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*EN)},function(n,r){return(r-n)/EN},function(n){return n.getUTCHours()}),Twe=fte,Mwe=fte.range,pte=ws(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}),Swe=pte,Ewe=pte.range;function T0(n){return ws(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/6048e5})}var Vj=T0(0),hte=T0(1),mte=T0(2),_te=T0(3),gte=T0(4),vte=T0(5),yte=T0(6),bte=Vj.range,xwe=hte.range,Dwe=mte.range,Awe=_te.range,Owe=gte.range,Iwe=vte.range,Pwe=yte.range,Cte=ws(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}),Rwe=Cte,Lwe=Cte.range,Yj=ws(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Yj.every=function(n){return isFinite(n=Math.floor(n))&&n>0?ws(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};var Zwe=Yj,Nwe=Yj.range;function Bwe(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function xN(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function $x(n){return{y:n,m:0,d:1,H:0,M:0,S:0,L:0}}function wte(n){var r=n.dateTime,e=n.date,i=n.time,o=n.periods,a=n.days,s=n.shortDays,l=n.months,u=n.shortMonths,d=eD(o),h=tD(o),g=eD(a),C=tD(a),Z=eD(s),z=tD(s),q=eD(l),re=tD(l),ae=eD(u),Se=tD(u),Ce={a:function Tn(er){return s[er.getDay()]},A:function jn(er){return a[er.getDay()]},b:function zn(er){return u[er.getMonth()]},B:function or(er){return l[er.getMonth()]},c:null,d:Ste,e:Ste,f:lke,H:oke,I:ake,j:ske,L:Ete,m:uke,M:cke,p:function Mr(er){return o[+(er.getHours()>=12)]},Q:Ote,s:Ite,S:dke,u:fke,U:pke,V:hke,w:mke,W:_ke,x:null,X:null,y:gke,Y:vke,Z:yke,"%":Ate},Ee={a:function _r(er){return s[er.getUTCDay()]},A:function zr(er){return a[er.getUTCDay()]},b:function Ur(er){return u[er.getUTCMonth()]},B:function Kr(er){return l[er.getUTCMonth()]},c:null,d:xte,e:xte,f:kke,H:bke,I:Cke,j:wke,L:Dte,m:Tke,M:Mke,p:function Fo(er){return o[+(er.getUTCHours()>=12)]},Q:Ote,s:Ite,S:Ske,u:Eke,U:xke,V:Dke,w:Ake,W:Oke,x:null,X:null,y:Ike,Y:Pke,Z:Rke,"%":Ate},Ve={a:function bt(er,wr,Sn){var gn=Z.exec(wr.slice(Sn));return gn?(er.w=z[gn[0].toLowerCase()],Sn+gn[0].length):-1},A:function Xe(er,wr,Sn){var gn=g.exec(wr.slice(Sn));return gn?(er.w=C[gn[0].toLowerCase()],Sn+gn[0].length):-1},b:function Pe(er,wr,Sn){var gn=ae.exec(wr.slice(Sn));return gn?(er.m=Se[gn[0].toLowerCase()],Sn+gn[0].length):-1},B:function ft(er,wr,Sn){var gn=q.exec(wr.slice(Sn));return gn?(er.m=re[gn[0].toLowerCase()],Sn+gn[0].length):-1},c:function Nt(er,wr,Sn){return ot(er,r,wr,Sn)},d:Tte,e:Tte,f:tke,H:Mte,I:Mte,j:Qwe,L:eke,m:Jwe,M:Xwe,p:function ht(er,wr,Sn){var gn=d.exec(wr.slice(Sn));return gn?(er.p=h[gn[0].toLowerCase()],Sn+gn[0].length):-1},Q:rke,s:ike,S:$we,u:Gwe,U:zwe,V:Wwe,w:jwe,W:Vwe,x:function Gt(er,wr,Sn){return ot(er,e,wr,Sn)},X:function It(er,wr,Sn){return ot(er,i,wr,Sn)},y:Kwe,Y:Ywe,Z:qwe,"%":nke};function ut(er,wr){return function(Sn){var Bn,nr,vr,gn=[],tr=-1,un=0,bn=er.length;for(Sn instanceof Date||(Sn=new Date(+Sn));++tr<bn;)37===er.charCodeAt(tr)&&(gn.push(er.slice(un,tr)),null!=(nr=kte[Bn=er.charAt(++tr)])?Bn=er.charAt(++tr):nr="e"===Bn?" ":"0",(vr=wr[Bn])&&(Bn=vr(Sn,nr)),gn.push(Bn),un=tr+1);return gn.push(er.slice(un,tr)),gn.join("")}}function Ae(er,wr){return function(Sn){var un,bn,gn=$x(1900);if(ot(gn,er,Sn+="",0)!=Sn.length)return null;if("Q"in gn)return new Date(gn.Q);if("p"in gn&&(gn.H=gn.H%12+12*gn.p),"V"in gn){if(gn.V<1||gn.V>53)return null;"w"in gn||(gn.w=1),"Z"in gn?(bn=(un=xN($x(gn.y))).getUTCDay(),un=bn>4||0===bn?v0.ceil(un):v0(un),un=Hx.offset(un,7*(gn.V-1)),gn.y=un.getUTCFullYear(),gn.m=un.getUTCMonth(),gn.d=un.getUTCDate()+(gn.w+6)%7):(bn=(un=wr($x(gn.y))).getDay(),un=bn>4||0===bn?_0.ceil(un):_0(un),un=Ux.offset(un,7*(gn.V-1)),gn.y=un.getFullYear(),gn.m=un.getMonth(),gn.d=un.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),bn="Z"in gn?xN($x(gn.y)).getUTCDay():wr($x(gn.y)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+7*gn.W-(bn+5)%7:gn.w+7*gn.U-(bn+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,xN(gn)):wr(gn)}}function ot(er,wr,Sn,gn){for(var Bn,nr,tr=0,un=wr.length,bn=Sn.length;tr<un;){if(gn>=bn)return-1;if(37===(Bn=wr.charCodeAt(tr++))){if(Bn=wr.charAt(tr++),!(nr=Ve[Bn in kte?wr.charAt(tr++):Bn])||(gn=nr(er,Sn,gn))<0)return-1}else if(Bn!=Sn.charCodeAt(gn++))return-1}return gn}return Ce.x=ut(e,Ce),Ce.X=ut(i,Ce),Ce.c=ut(r,Ce),Ee.x=ut(e,Ee),Ee.X=ut(i,Ee),Ee.c=ut(r,Ee),{format:function(wr){var Sn=ut(wr+="",Ce);return Sn.toString=function(){return wr},Sn},parse:function(wr){var Sn=Ae(wr+="",Bwe);return Sn.toString=function(){return wr},Sn},utcFormat:function(wr){var Sn=ut(wr+="",Ee);return Sn.toString=function(){return wr},Sn},utcParse:function(wr){var Sn=Ae(wr,xN);return Sn.toString=function(){return wr},Sn}}}var Ow,Pte,Rte,Kj,qj,kte={"-":"",_:" ",0:"0"},ol=/^\s*\d+/,Fwe=/^%/,Uwe=/[\\^$*+?|[\]().{}]/g;function Co(n,r,e){var i=n<0?"-":"",o=(i?-n:n)+"",a=o.length;return i+(a<e?new Array(e-a+1).join(r)+o:o)}function Hwe(n){return n.replace(Uwe,"\\$&")}function eD(n){return new RegExp("^(?:"+n.map(Hwe).join("|")+")","i")}function tD(n){for(var r={},e=-1,i=n.length;++e<i;)r[n[e].toLowerCase()]=e;return r}function jwe(n,r,e){var i=ol.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function Gwe(n,r,e){var i=ol.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function zwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function Wwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function Vwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function Ywe(n,r,e){var i=ol.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Kwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function qwe(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function Jwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Tte(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function Qwe(n,r,e){var i=ol.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Mte(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Xwe(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function $we(n,r,e){var i=ol.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function eke(n,r,e){var i=ol.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function tke(n,r,e){var i=ol.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function nke(n,r,e){var i=Fwe.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function rke(n,r,e){var i=ol.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function ike(n,r,e){var i=ol.exec(r.slice(e));return i?(n.Q=1e3*+i[0],e+i[0].length):-1}function Ste(n,r){return Co(n.getDate(),r,2)}function oke(n,r){return Co(n.getHours(),r,2)}function ake(n,r){return Co(n.getHours()%12||12,r,2)}function ske(n,r){return Co(1+Ux.count(tf(n),n),r,3)}function Ete(n,r){return Co(n.getMilliseconds(),r,3)}function lke(n,r){return Ete(n,r)+"000"}function uke(n,r){return Co(n.getMonth()+1,r,2)}function cke(n,r){return Co(n.getMinutes(),r,2)}function dke(n,r){return Co(n.getSeconds(),r,2)}function fke(n){var r=n.getDay();return 0===r?7:r}function pke(n,r){return Co(sN.count(tf(n),n),r,2)}function hke(n,r){var e=n.getDay();return n=e>=4||0===e?rm(n):rm.ceil(n),Co(rm.count(tf(n),n)+(4===tf(n).getDay()),r,2)}function mke(n){return n.getDay()}function _ke(n,r){return Co(_0.count(tf(n),n),r,2)}function gke(n,r){return Co(n.getFullYear()%100,r,2)}function vke(n,r){return Co(n.getFullYear()%1e4,r,4)}function yke(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Co(r/60|0,"0",2)+Co(r%60,"0",2)}function xte(n,r){return Co(n.getUTCDate(),r,2)}function bke(n,r){return Co(n.getUTCHours(),r,2)}function Cke(n,r){return Co(n.getUTCHours()%12||12,r,2)}function wke(n,r){return Co(1+Hx.count(nf(n),n),r,3)}function Dte(n,r){return Co(n.getUTCMilliseconds(),r,3)}function kke(n,r){return Dte(n,r)+"000"}function Tke(n,r){return Co(n.getUTCMonth()+1,r,2)}function Mke(n,r){return Co(n.getUTCMinutes(),r,2)}function Ske(n,r){return Co(n.getUTCSeconds(),r,2)}function Eke(n){var r=n.getUTCDay();return 0===r?7:r}function xke(n,r){return Co(uN.count(nf(n),n),r,2)}function Dke(n,r){var e=n.getUTCDay();return n=e>=4||0===e?im(n):im.ceil(n),Co(im.count(nf(n),n)+(4===nf(n).getUTCDay()),r,2)}function Ake(n){return n.getUTCDay()}function Oke(n,r){return Co(v0.count(nf(n),n),r,2)}function Ike(n,r){return Co(n.getUTCFullYear()%100,r,2)}function Pke(n,r){return Co(n.getUTCFullYear()%1e4,r,4)}function Rke(){return"+0000"}function Ate(){return"%"}function Ote(n){return+n}function Ite(n){return Math.floor(+n/1e3)}function Lte(n){return Ow=wte(n),Pte=Ow.format,Rte=Ow.parse,Kj=Ow.utcFormat,qj=Ow.utcParse,Ow}Lte({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zte="%Y-%m-%dT%H:%M:%S.%LZ";var Zke=Date.prototype.toISOString?function Lke(n){return n.toISOString()}:Kj(Zte),Nke=Zke;var Fke=+new Date("2000-01-01T00:00:00.000Z")?function Bke(n){var r=new Date(n);return isNaN(r)?null:r}:qj(Zte),Uke=Fke;function Hke(n,r,e){var i=new ax,o=r;return null==r?(i.restart(n,r,e),i):(r=+r,e=null==e?ug():+e,i.restart(function a(s){s+=o,i.restart(a,o+=r,e),n(s)},r,e),i)}function jke(){}function Jj(n){return null==n?jke:function(){return this.querySelector(n)}}function zke(){return[]}function Nte(n){return null==n?zke:function(){return this.querySelectorAll(n)}}function Bte(n){return function(){return this.matches(n)}}function Fte(n){return new Array(n.length)}function DN(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}DN.prototype={constructor:DN,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,e){return this._parent.insertBefore(r,e)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function qke(n,r,e,i,o,a){for(var l,s=0,u=r.length,d=a.length;s<d;++s)(l=r[s])?(l.__data__=a[s],i[s]=l):e[s]=new DN(n,a[s]);for(;s<u;++s)(l=r[s])&&(o[s]=l)}function Jke(n,r,e,i,o,a,s){var l,u,Z,d={},h=r.length,g=a.length,C=new Array(h);for(l=0;l<h;++l)(u=r[l])&&(C[l]=Z="$"+s.call(u,u.__data__,l,r),Z in d?o[l]=u:d[Z]=u);for(l=0;l<g;++l)(u=d[Z="$"+s.call(n,a[l],l,a)])?(i[l]=u,u.__data__=a[l],d[Z]=null):e[l]=new DN(n,a[l]);for(l=0;l<h;++l)(u=r[l])&&d[C[l]]===u&&(o[l]=u)}function rTe(n,r){return n<r?-1:n>r?1:n>=r?0:NaN}var Qj="http://www.w3.org/1999/xhtml",Hte={svg:"http://www.w3.org/2000/svg",xhtml:Qj,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function AN(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Hte.hasOwnProperty(r)?{space:Hte[r],local:n}:n}function cTe(n){return function(){this.removeAttribute(n)}}function dTe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fTe(n,r){return function(){this.setAttribute(n,r)}}function pTe(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function hTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function mTe(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function jte(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function gTe(n){return function(){this.style.removeProperty(n)}}function vTe(n,r,e){return function(){this.style.setProperty(n,r,e)}}function yTe(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Iw(n,r){return n.style.getPropertyValue(r)||jte(n).getComputedStyle(n,null).getPropertyValue(r)}function CTe(n){return function(){delete this[n]}}function wTe(n,r){return function(){this[n]=r}}function kTe(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Gte(n){return n.trim().split(/^|\s+/)}function Xj(n){return n.classList||new zte(n)}function zte(n){this._node=n,this._names=Gte(n.getAttribute("class")||"")}function Wte(n,r){for(var e=Xj(n),i=-1,o=r.length;++i<o;)e.add(r[i])}function Vte(n,r){for(var e=Xj(n),i=-1,o=r.length;++i<o;)e.remove(r[i])}function MTe(n){return function(){Wte(this,n)}}function STe(n){return function(){Vte(this,n)}}function ETe(n,r){return function(){(r.apply(this,arguments)?Wte:Vte)(this,n)}}function DTe(){this.textContent=""}function ATe(n){return function(){this.textContent=n}}function OTe(n){return function(){var r=n.apply(this,arguments);this.textContent=null==r?"":r}}function PTe(){this.innerHTML=""}function RTe(n){return function(){this.innerHTML=n}}function LTe(n){return function(){var r=n.apply(this,arguments);this.innerHTML=null==r?"":r}}function NTe(){this.nextSibling&&this.parentNode.appendChild(this)}function FTe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function HTe(n){return function(){var r=this.ownerDocument,e=this.namespaceURI;return e===Qj&&r.documentElement.namespaceURI===Qj?r.createElement(n):r.createElementNS(e,n)}}function jTe(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function Yte(n){var r=AN(n);return(r.local?jTe:HTe)(r)}function zTe(){return null}function VTe(){var n=this.parentNode;n&&n.removeChild(this)}function KTe(){var n=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}function qTe(){var n=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(n,this.nextSibling):n}zte.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 Kte={},M0=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Kte={mouseenter:"mouseover",mouseleave:"mouseout"}));function $Te(n,r,e){return n=qte(n,r,e),function(i){var o=i.relatedTarget;(!o||o!==this&&!(8&o.compareDocumentPosition(this)))&&n.call(this,i)}}function qte(n,r,e){return function(i){var o=M0;M0=i;try{n.call(this,this.__data__,r,e)}finally{M0=o}}}function eMe(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function tMe(n){return function(){var r=this.__on;if(r){for(var a,e=0,i=-1,o=r.length;e<o;++e)a=r[e],n.type&&a.type!==n.type||a.name!==n.name?r[++i]=a:this.removeEventListener(a.type,a.listener,a.capture);++i?r.length=i:delete this.__on}}}function nMe(n,r,e){var i=Kte.hasOwnProperty(n.type)?$Te:qte;return function(o,a,s){var u,l=this.__on,d=i(r,a,s);if(l)for(var h=0,g=l.length;h<g;++h)if((u=l[h]).type===n.type&&u.name===n.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=d,u.capture=e),void(u.value=r);this.addEventListener(n.type,d,e),u={type:n.type,name:n.name,value:r,listener:d,capture:e},l?l.push(u):this.__on=[u]}}function Jte(n,r,e){var i=jte(n),o=i.CustomEvent;"function"==typeof o?o=new o(r,e):(o=i.document.createEvent("Event"),e?(o.initEvent(r,e.bubbles,e.cancelable),o.detail=e.detail):o.initEvent(r,!1,!1)),n.dispatchEvent(o)}function iMe(n,r){return function(){return Jte(this,n,r)}}function oMe(n,r){return function(){return Jte(this,n,r.apply(this,arguments))}}var sMe=[null];function rf(n,r){this._groups=n,this._parents=r}function Qte(){return new rf([[document.documentElement]],sMe)}rf.prototype=Qte.prototype={constructor:rf,select:function Gke(n){"function"!=typeof n&&(n=Jj(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,d,a=r[o],s=a.length,l=i[o]=new Array(s),h=0;h<s;++h)(u=a[h])&&(d=n.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d);return new rf(i,this._parents)},selectAll:function Wke(n){"function"!=typeof n&&(n=Nte(n));for(var r=this._groups,e=r.length,i=[],o=[],a=0;a<e;++a)for(var u,s=r[a],l=s.length,d=0;d<l;++d)(u=s[d])&&(i.push(n.call(u,u.__data__,d,s)),o.push(u));return new rf(i,o)},filter:function Vke(n){"function"!=typeof n&&(n=Bte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new rf(i,this._parents)},data:function Qke(n,r){if(!n)return Z=new Array(this.size()),d=-1,this.each(function(ut){Z[++d]=ut}),Z;var e=r?Jke:qke,i=this._parents,o=this._groups;"function"!=typeof n&&(n=function Kke(n){return function(){return n}}(n));for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),d=0;d<a;++d){var h=i[d],g=o[d],C=g.length,Z=n.call(h,h&&h.__data__,d,i),z=Z.length,q=l[d]=new Array(z),re=s[d]=new Array(z);e(h,g,q,re,u[d]=new Array(C),Z,r);for(var Ee,Ve,Se=0,Ce=0;Se<z;++Se)if(Ee=q[Se]){for(Se>=Ce&&(Ce=Se+1);!(Ve=re[Ce])&&++Ce<z;);Ee._next=Ve||null}}return(s=new rf(s,i))._enter=l,s._exit=u,s},enter:function Yke(){return new rf(this._enter||this._groups.map(Fte),this._parents)},exit:function Xke(){return new rf(this._exit||this._groups.map(Fte),this._parents)},join:function $ke(n,r,e){var i=this.enter(),o=this,a=this.exit();return i="function"==typeof n?n(i):i.append(n+""),null!=r&&(o=r(o)),null==e?a.remove():e(a),i&&o?i.merge(o).order():o},merge:function eTe(n){for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new rf(s,this._parents)},order:function tTe(){for(var n=this._groups,r=-1,e=n.length;++r<e;)for(var s,i=n[r],o=i.length-1,a=i[o];--o>=0;)(s=i[o])&&(a&&4^s.compareDocumentPosition(a)&&a.parentNode.insertBefore(s,a),a=s);return this},sort:function nTe(n){function r(g,C){return g&&C?n(g.__data__,C.__data__):!g-!C}n||(n=rTe);for(var e=this._groups,i=e.length,o=new Array(i),a=0;a<i;++a){for(var d,s=e[a],l=s.length,u=o[a]=new Array(l),h=0;h<l;++h)(d=s[h])&&(u[h]=d);u.sort(r)}return new rf(o,this._parents).order()},call:function iTe(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this},nodes:function oTe(){var n=new Array(this.size()),r=-1;return this.each(function(){n[++r]=this}),n},node:function aTe(){for(var n=this._groups,r=0,e=n.length;r<e;++r)for(var i=n[r],o=0,a=i.length;o<a;++o){var s=i[o];if(s)return s}return null},size:function sTe(){var n=0;return this.each(function(){++n}),n},empty:function lTe(){return!this.node()},each:function uTe(n){for(var r=this._groups,e=0,i=r.length;e<i;++e)for(var l,o=r[e],a=0,s=o.length;a<s;++a)(l=o[a])&&n.call(l,l.__data__,a,o);return this},attr:function _Te(n,r){var e=AN(n);if(arguments.length<2){var i=this.node();return e.local?i.getAttributeNS(e.space,e.local):i.getAttribute(e)}return this.each((null==r?e.local?dTe:cTe:"function"==typeof r?e.local?mTe:hTe:e.local?pTe:fTe)(e,r))},style:function bTe(n,r,e){return arguments.length>1?this.each((null==r?gTe:"function"==typeof r?yTe:vTe)(n,r,null==e?"":e)):Iw(this.node(),n)},property:function TTe(n,r){return arguments.length>1?this.each((null==r?CTe:"function"==typeof r?kTe:wTe)(n,r)):this.node()[n]},classed:function xTe(n,r){var e=Gte(n+"");if(arguments.length<2){for(var i=Xj(this.node()),o=-1,a=e.length;++o<a;)if(!i.contains(e[o]))return!1;return!0}return this.each(("function"==typeof r?ETe:r?MTe:STe)(e,r))},text:function ITe(n){return arguments.length?this.each(null==n?DTe:("function"==typeof n?OTe:ATe)(n)):this.node().textContent},html:function ZTe(n){return arguments.length?this.each(null==n?PTe:("function"==typeof n?LTe:RTe)(n)):this.node().innerHTML},raise:function BTe(){return this.each(NTe)},lower:function UTe(){return this.each(FTe)},append:function GTe(n){var r="function"==typeof n?n:Yte(n);return this.select(function(){return this.appendChild(r.apply(this,arguments))})},insert:function WTe(n,r){var e="function"==typeof n?n:Yte(n),i=null==r?zTe:"function"==typeof r?r:Jj(r);return this.select(function(){return this.insertBefore(e.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function YTe(){return this.each(VTe)},clone:function JTe(n){return this.select(n?qTe:KTe)},datum:function QTe(n){return arguments.length?this.property("__data__",n):this.node().__data__},on:function rMe(n,r,e){var o,s,i=eMe(n+""),a=i.length;if(!(arguments.length<2)){for(l=r?nMe:tMe,null==e&&(e=!1),o=0;o<a;++o)this.each(l(i[o],r,e));return this}var l=this.node().__on;if(l)for(var h,u=0,d=l.length;u<d;++u)for(o=0,h=l[u];o<a;++o)if((s=i[o]).type===h.type&&s.name===h.name)return h.value},dispatch:function aMe(n,r){return this.each(("function"==typeof r?oMe:iMe)(n,r))}};var nD=Qte,lMe=Xy("start","end","interrupt"),uMe=[];function PN(n,r,e,i,o,a){var s=n.__transition;if(s){if(e in s)return}else n.__transition={};!function cMe(n,r,e){var o,i=n.__transition;function a(d){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=d&&s(d-e.delay)}function s(d){var h,g,C,Z;if(1!==e.state)return u();for(h in i)if((Z=i[h]).name===e.name){if(3===Z.state)return lx(s);4===Z.state?(Z.state=6,Z.timer.stop(),Z.on.call("interrupt",n,n.__data__,Z.index,Z.group),delete i[h]):+h<r&&(Z.state=6,Z.timer.stop(),delete i[h])}if(lx(function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(d))}),e.state=2,e.on.call("start",n,n.__data__,e.index,e.group),2===e.state){for(e.state=3,o=new Array(C=e.tween.length),h=0,g=-1;h<C;++h)(Z=e.tween[h].value.call(n,n.__data__,e.index,e.group))&&(o[++g]=Z);o.length=g+1}}function l(d){for(var h=d<e.duration?e.ease.call(null,d/e.duration):(e.timer.restart(u),e.state=5,1),g=-1,C=o.length;++g<C;)o[g].call(null,h);5===e.state&&(e.on.call("end",n,n.__data__,e.index,e.group),u())}function u(){for(var d in e.state=6,e.timer.stop(),delete i[r],i)return;delete n.__transition}i[r]=e,e.timer=sx(a,0,e.time)}(n,e,{name:r,index:i,group:o,on:lMe,tween:uMe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function nG(n,r){var e=of(n,r);if(e.state>0)throw new Error("too late; already scheduled");return e}function S0(n,r){var e=of(n,r);if(e.state>2)throw new Error("too late; already started");return e}function of(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function ene(n,r){var i,o,s,e=n.__transition,a=!0;if(e){for(s in r=null==r?null:r+"",e)(i=e[s]).name===r?(o=i.state>2&&i.state<5,i.state=6,i.timer.stop(),o&&i.on.call("interrupt",n,n.__data__,i.index,i.group),delete e[s]):a=!1;a&&delete n.__transition}}function Cg(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var rD,iG,rne,RN,tne=180/Math.PI,rG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nne(n,r,e,i,o,a){var s,l,u;return(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s),(u=n*e+r*i)&&(e-=n*u,i-=r*u),(l=Math.sqrt(e*e+i*i))&&(e/=l,i/=l,u/=l),n*i<r*e&&(n=-n,r=-r,u=-u,s=-s),{translateX:o,translateY:a,rotate:Math.atan2(r,n)*tne,skewX:Math.atan(u)*tne,scaleX:s,scaleY:l}}function ine(n,r,e,i){function o(d){return d.length?d.pop()+" ":""}return function(d,h){var g=[],C=[];return d=n(d),h=n(h),function a(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push("translate(",null,r,null,e);z.push({i:q-4,x:Cg(d,g)},{i:q-2,x:Cg(h,C)})}else(g||C)&&Z.push("translate("+g+r+C+e)}(d.translateX,d.translateY,h.translateX,h.translateY,g,C),function s(d,h,g,C){d!==h?(d-h>180?h+=360:h-d>180&&(d+=360),C.push({i:g.push(o(g)+"rotate(",null,i)-2,x:Cg(d,h)})):h&&g.push(o(g)+"rotate("+h+i)}(d.rotate,h.rotate,g,C),function l(d,h,g,C){d!==h?C.push({i:g.push(o(g)+"skewX(",null,i)-2,x:Cg(d,h)}):h&&g.push(o(g)+"skewX("+h+i)}(d.skewX,h.skewX,g,C),function u(d,h,g,C,Z,z){if(d!==g||h!==C){var q=Z.push(o(Z)+"scale(",null,",",null,")");z.push({i:q-4,x:Cg(d,g)},{i:q-2,x:Cg(h,C)})}else(1!==g||1!==C)&&Z.push(o(Z)+"scale("+g+","+C+")")}(d.scaleX,d.scaleY,h.scaleX,h.scaleY,g,C),d=h=null,function(Z){for(var re,z=-1,q=C.length;++z<q;)g[(re=C[z]).i]=re.x(Z);return g.join("")}}}var hMe=ine(function fMe(n){return"none"===n?rG:(rD||(rD=document.createElement("DIV"),iG=document.documentElement,rne=document.defaultView),rD.style.transform=n,n=rne.getComputedStyle(iG.appendChild(rD),null).getPropertyValue("transform"),iG.removeChild(rD),nne(+(n=n.slice(7,-1).split(","))[0],+n[1],+n[2],+n[3],+n[4],+n[5]))},"px, ","px)","deg)"),mMe=ine(function pMe(n){return null!=n&&(RN||(RN=document.createElementNS("http://www.w3.org/2000/svg","g")),RN.setAttribute("transform",n),n=RN.transform.baseVal.consolidate())?nne((n=n.matrix).a,n.b,n.c,n.d,n.e,n.f):rG},", ",")",")");function _Me(n,r){var e,i;return function(){var o=S0(this,n),a=o.tween;if(a!==e)for(var s=0,l=(i=e=a).length;s<l;++s)if(i[s].name===r){(i=i.slice()).splice(s,1);break}o.tween=i}}function gMe(n,r,e){var i,o;if("function"!=typeof e)throw new Error;return function(){var a=S0(this,n),s=a.tween;if(s!==i){o=(i=s).slice();for(var l={name:r,value:e},u=0,d=o.length;u<d;++u)if(o[u].name===r){o[u]=l;break}u===d&&o.push(l)}a.tween=o}}function oG(n,r,e){var i=n._id;return n.each(function(){var o=S0(this,i);(o.value||(o.value={}))[r]=e.apply(this,arguments)}),function(o){return of(o,i).value[r]}}function aG(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function one(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function iD(){}var LN=1/.7,Pw="\\s*([+-]?\\d+)\\s*",aD="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yMe=/^#([0-9a-f]{3,8})$/,bMe=new RegExp("^rgb\\("+[Pw,Pw,Pw]+"\\)$"),CMe=new RegExp("^rgb\\("+[Cp,Cp,Cp]+"\\)$"),wMe=new RegExp("^rgba\\("+[Pw,Pw,Pw,aD]+"\\)$"),kMe=new RegExp("^rgba\\("+[Cp,Cp,Cp,aD]+"\\)$"),TMe=new RegExp("^hsl\\("+[aD,Cp,Cp]+"\\)$"),MMe=new RegExp("^hsla\\("+[aD,Cp,Cp,aD]+"\\)$"),ane={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 sne(){return this.rgb().formatHex()}function lne(){return this.rgb().formatRgb()}function sD(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=yMe.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?une(r):3===e?new yc(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?ZN(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?ZN(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=bMe.exec(n))?new yc(r[1],r[2],r[3],1):(r=CMe.exec(n))?new yc(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=wMe.exec(n))?ZN(r[1],r[2],r[3],r[4]):(r=kMe.exec(n))?ZN(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=TMe.exec(n))?fne(r[1],r[2]/100,r[3]/100,1):(r=MMe.exec(n))?fne(r[1],r[2]/100,r[3]/100,r[4]):ane.hasOwnProperty(n)?une(ane[n]):"transparent"===n?new yc(NaN,NaN,NaN,0):null}function une(n){return new yc(n>>16&255,n>>8&255,255&n,1)}function ZN(n,r,e,i){return i<=0&&(n=r=e=NaN),new yc(n,r,e,i)}function EMe(n){return n instanceof iD||(n=sD(n)),n?new yc((n=n.rgb()).r,n.g,n.b,n.opacity):new yc}function NN(n,r,e,i){return 1===arguments.length?EMe(n):new yc(n,r,e,null==i?1:i)}function yc(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function cne(){return"#"+sG(this.r)+sG(this.g)+sG(this.b)}function dne(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function sG(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function fne(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new wp(n,r,e,i)}function pne(n){if(n instanceof wp)return new wp(n.h,n.s,n.l,n.opacity);if(n instanceof iD||(n=sD(n)),!n)return new wp;if(n instanceof wp)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,o=Math.min(r,e,i),a=Math.max(r,e,i),s=NaN,l=a-o,u=(a+o)/2;return l?(s=r===a?(e-i)/l+6*(e<i):e===a?(i-r)/l+2:(r-e)/l+4,l/=u<.5?a+o:2-a-o,s*=60):l=u>0&&u<1?0:s,new wp(s,l,u,n.opacity)}function wp(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function lG(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function hne(n,r,e,i,o){var a=n*n,s=a*n;return((1-3*n+3*a-s)*r+(4-6*a+3*s)*e+(1+3*n+3*a-3*s)*i+s*o)/6}function mne(n){return function(){return n}}function _ne(n,r){return function(e){return n+e*r}}function IMe(n){return 1==(n=+n)?gne:function(r,e){return e-r?function OMe(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):mne(isNaN(r)?e:r)}}function gne(n,r){var e=r-n;return e?_ne(n,e):mne(isNaN(n)?r:n)}aG(iD,sD,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:sne,formatHex:sne,formatHsl:function SMe(){return pne(this).formatHsl()},formatRgb:lne,toString:lne}),aG(yc,NN,one(iD,{brighter:function(r){return r=null==r?LN:Math.pow(LN,r),new yc(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new yc(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cne,formatHex:cne,formatRgb:dne,toString:dne})),aG(wp,function xMe(n,r,e,i){return 1===arguments.length?pne(n):new wp(n,r,e,null==i?1:i)},one(iD,{brighter:function(r){return r=null==r?LN:Math.pow(LN,r),new wp(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=null==r?.7:Math.pow(.7,r),new wp(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+360*(this.h<0),e=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,o=i+(i<.5?i:1-i)*e,a=2*i-o;return new yc(lG(r>=240?r-240:r+120,a,o),lG(r,a,o),lG(r<120?r+240:r-120,a,o),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return(1===(r=isNaN(r)?1:Math.max(0,Math.min(1,r)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===r?")":", "+r+")")}}));var vne=function n(r){var e=IMe(r);function i(o,a){var s=e((o=NN(o)).r,(a=NN(a)).r),l=e(o.g,a.g),u=e(o.b,a.b),d=gne(o.opacity,a.opacity);return function(h){return o.r=s(h),o.g=l(h),o.b=u(h),o.opacity=d(h),o+""}}return i.gamma=n,i}(1);function yne(n){return function(r){var s,l,e=r.length,i=new Array(e),o=new Array(e),a=new Array(e);for(s=0;s<e;++s)l=NN(r[s]),i[s]=l.r||0,o[s]=l.g||0,a[s]=l.b||0;return i=n(i),o=n(o),a=n(a),l.opacity=1,function(u){return l.r=i(u),l.g=o(u),l.b=a(u),l+""}}}yne(function DMe(n){var r=n.length-1;return function(e){var i=e<=0?e=0:e>=1?(e=1,r-1):Math.floor(e*r),o=n[i],a=n[i+1],s=i>0?n[i-1]:2*o-a,l=i<r-1?n[i+2]:2*a-o;return hne((e-i/r)*r,s,o,a,l)}}),yne(function AMe(n){var r=n.length;return function(e){var i=Math.floor(((e%=1)<0?++e:e)*r),o=n[(i+r-1)%r],a=n[i%r],s=n[(i+1)%r],l=n[(i+2)%r];return hne((e-i/r)*r,o,a,s,l)}});var uG=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cG=new RegExp(uG.source,"g");function LMe(n,r){var i,o,a,e=uG.lastIndex=cG.lastIndex=0,s=-1,l=[],u=[];for(n+="",r+="";(i=uG.exec(n))&&(o=cG.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:Cg(i,o)})),e=cG.lastIndex;return e<r.length&&(a=r.slice(e),l[s]?l[s]+=a:l[++s]=a),l.length<2?u[0]?function RMe(n){return function(r){return n(r)+""}}(u[0].x):function PMe(n){return function(){return n}}(r):(r=u.length,function(d){for(var g,h=0;h<r;++h)l[(g=u[h]).i]=g.x(d);return l.join("")})}function bne(n,r){var e;return("number"==typeof r?Cg:r instanceof sD?vne:(e=sD(r))?(r=e,vne):LMe)(n,r)}function ZMe(n){return function(){this.removeAttribute(n)}}function NMe(n){return function(){this.removeAttributeNS(n.space,n.local)}}function BMe(n,r,e){var i,o;return function(){var a=this.getAttribute(n);return a===e?null:a===i?o:o=r(i=a,e)}}function FMe(n,r,e){var i,o;return function(){var a=this.getAttributeNS(n.space,n.local);return a===e?null:a===i?o:o=r(i=a,e)}}function UMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttribute(n):(s=this.getAttribute(n))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function HMe(n,r,e){var i,o,a;return function(){var s,l=e(this);return null==l?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local))===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}function GMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttributeNS(n.space,n.local,o(a))}}return e._value=r,e}function zMe(n,r){function e(){var i=this,o=r.apply(i,arguments);return o&&function(a){i.setAttribute(n,o(a))}}return e._value=r,e}function VMe(n,r){return function(){nG(this,n).delay=+r.apply(this,arguments)}}function YMe(n,r){return r=+r,function(){nG(this,n).delay=r}}function qMe(n,r){return function(){S0(this,n).duration=+r.apply(this,arguments)}}function JMe(n,r){return r=+r,function(){S0(this,n).duration=r}}function XMe(n,r){if("function"!=typeof r)throw new Error;return function(){S0(this,n).ease=r}}function rSe(n,r,e){var i,o,a=function nSe(n){return(n+"").trim().split(/^|\s+/).every(function(r){var e=r.indexOf(".");return e>=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?nG:S0;return function(){var s=a(this,n),l=s.on;l!==i&&(o=(i=l).copy()).on(r,e),s.on=o}}var uSe=nD.prototype.constructor;function _Se(n,r,e){function i(){var o=this,a=r.apply(o,arguments);return a&&function(s){o.style.setProperty(n,a(s),e)}}return i._value=r,i}var wSe=0;function kp(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Cne(n){return nD().transition(n)}function wne(){return++wSe}var Rw=nD.prototype;kp.prototype=Cne.prototype={constructor:kp,select:function sSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Jj(n));for(var i=this._groups,o=i.length,a=new Array(o),s=0;s<o;++s)for(var h,g,l=i[s],u=l.length,d=a[s]=new Array(u),C=0;C<u;++C)(h=l[C])&&(g=n.call(h,h.__data__,C,l))&&("__data__"in h&&(g.__data__=h.__data__),d[C]=g,PN(d[C],r,e,C,d,of(h,e)));return new kp(a,this._parents,r,e)},selectAll:function lSe(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Nte(n));for(var i=this._groups,o=i.length,a=[],s=[],l=0;l<o;++l)for(var h,u=i[l],d=u.length,g=0;g<d;++g)if(h=u[g]){for(var Z,C=n.call(h,h.__data__,g,u),z=of(h,e),q=0,re=C.length;q<re;++q)(Z=C[q])&&PN(Z,r,e,q,C,z);a.push(C),s.push(h)}return new kp(a,s,r,e)},filter:function eSe(n){"function"!=typeof n&&(n=Bte(n));for(var r=this._groups,e=r.length,i=new Array(e),o=0;o<e;++o)for(var u,a=r[o],s=a.length,l=i[o]=[],d=0;d<s;++d)(u=a[d])&&n.call(u,u.__data__,d,a)&&l.push(u);return new kp(i,this._parents,this._name,this._id)},merge:function tSe(n){if(n._id!==this._id)throw new Error;for(var r=this._groups,e=n._groups,i=r.length,o=e.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var C,u=r[l],d=e[l],h=u.length,g=s[l]=new Array(h),Z=0;Z<h;++Z)(C=u[Z]||d[Z])&&(g[Z]=C);for(;l<i;++l)s[l]=r[l];return new kp(s,this._parents,this._name,this._id)},selection:function cSe(){return new uSe(this._groups,this._parents)},transition:function CSe(){for(var n=this._name,r=this._id,e=wne(),i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)if(u=s[d]){var h=of(u,r);PN(u,n,e,d,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kp(i,this._parents,n,e)},call:Rw.call,nodes:Rw.nodes,node:Rw.node,size:Rw.size,empty:Rw.empty,each:Rw.each,on:function iSe(n,r){var e=this._id;return arguments.length<2?of(this.node(),e).on.on(n):this.each(rSe(e,n,r))},attr:function jMe(n,r){var e=AN(n),i="transform"===e?mMe:bne;return this.attrTween(n,"function"==typeof r?(e.local?HMe:UMe)(e,i,oG(this,"attr."+n,r)):null==r?(e.local?NMe:ZMe)(e):(e.local?FMe:BMe)(e,i,r+""))},attrTween:function WMe(n,r){var e="attr."+n;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==r)return this.tween(e,null);if("function"!=typeof r)throw new Error;var i=AN(n);return this.tween(e,(i.local?GMe:zMe)(i,r))},style:function mSe(n,r,e){var i="transform"==(n+="")?hMe:bne;return null==r?this.styleTween(n,function dSe(n,r){var e,i,o;return function(){var a=Iw(this,n),s=(this.style.removeProperty(n),Iw(this,n));return a===s?null:a===e&&s===i?o:o=r(e=a,i=s)}}(n,i)).on("end.style."+n,function fSe(n){return function(){this.style.removeProperty(n)}}(n)):this.styleTween(n,"function"==typeof r?function hSe(n,r,e){var i,o,a;return function(){var s=Iw(this,n),l=e(this);return null==l&&(this.style.removeProperty(n),l=Iw(this,n)),s===l?null:s===i&&l===o?a:a=r(i=s,o=l)}}(n,i,oG(this,"style."+n,r)):function pSe(n,r,e){var i,o;return function(){var a=Iw(this,n);return a===e?null:a===i?o:o=r(i=a,e)}}(n,i,r+""),e)},styleTween:function gSe(n,r,e){var i="style."+(n+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==r)return this.tween(i,null);if("function"!=typeof r)throw new Error;return this.tween(i,_Se(n,r,null==e?"":e))},text:function bSe(n){return this.tween("text","function"==typeof n?function ySe(n){return function(){var r=n(this);this.textContent=null==r?"":r}}(oG(this,"text",n)):function vSe(n){return function(){this.textContent=n}}(null==n?"":n+""))},remove:function aSe(){return this.on("end.remove",function oSe(n){return function(){var r=this.parentNode;for(var e in this.__transition)if(+e!==n)return;r&&r.removeChild(this)}}(this._id))},tween:function vMe(n,r){var e=this._id;if(n+="",arguments.length<2){for(var s,i=of(this.node(),e).tween,o=0,a=i.length;o<a;++o)if((s=i[o]).name===n)return s.value;return null}return this.each((null==r?_Me:gMe)(e,n,r))},delay:function KMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?VMe:YMe)(r,n)):of(this.node(),r).delay},duration:function QMe(n){var r=this._id;return arguments.length?this.each(("function"==typeof n?qMe:JMe)(r,n)):of(this.node(),r).duration},ease:function $Me(n){var r=this._id;return arguments.length?this.each(XMe(r,n)):of(this.node(),r).ease}};var dG={time:null,delay:0,duration:250,ease:GL};function kSe(n,r){for(var e;!(e=n.__transition)||!(e=e[r]);)if(!(n=n.parentNode))return dG.time=ug(),dG;return e}nD.prototype.interrupt=function dMe(n){return this.each(function(){ene(this,n)})},nD.prototype.transition=function TSe(n){var r,e;n instanceof kp?(r=n._id,n=n._name):(r=wne(),(e=dG).time=ug(),n=null==n?null:n+"");for(var i=this._groups,o=i.length,a=0;a<o;++a)for(var u,s=i[a],l=s.length,d=0;d<l;++d)(u=s[d])&&PN(u,n,r,d,s,e||kSe(u,r));return new kp(i,this._parents,n,r)};var MSe=[null];function SSe(n,r){var i,o,e=n.__transition;if(e)for(o in r=null==r?null:r+"",e)if((i=e[o]).state>1&&i.name===r)return new kp([[n]],MSe,r,+o);return null}function kne(n){return function(){return n}}function ESe(n){return n[0]}function xSe(n){return n[1]}function fG(){this._=null}function BN(n){n.U=n.C=n.L=n.R=n.P=n.N=null}function lD(n,r){var e=r,i=r.R,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.R=i.L,e.R&&(e.R.U=e),i.L=e}function uD(n,r){var e=r,i=r.L,o=e.U;o?o.L===e?o.L=i:o.R=i:n._=i,i.U=o,e.U=i,e.L=i.R,e.L&&(e.L.U=e),i.R=e}function Tne(n){for(;n.L;)n=n.L;return n}fG.prototype={constructor:fG,insert:function(r,e){var i,o,a;if(r){if(e.P=r,e.N=r.N,r.N&&(r.N.P=e),r.N=e,r.R){for(r=r.R;r.L;)r=r.L;r.L=e}else r.R=e;i=r}else this._?(r=Tne(this._),e.P=null,e.N=r,r.P=r.L=e,i=r):(e.P=e.N=null,this._=e,i=null);for(e.L=e.R=null,e.U=i,e.C=!0,r=e;i&&i.C;)i===(o=i.U).L?(a=o.R)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.R&&(lD(this,i),i=(r=i).U),i.C=!1,o.C=!0,uD(this,o)):(a=o.L)&&a.C?(i.C=a.C=!1,o.C=!0,r=o):(r===i.L&&(uD(this,i),i=(r=i).U),i.C=!1,o.C=!0,lD(this,o)),i=r.U;this._.C=!1},remove:function(r){r.N&&(r.N.P=r.P),r.P&&(r.P.N=r.N),r.N=r.P=null;var i,s,l,e=r.U,o=r.L,a=r.R;if(s=o?a?Tne(a):o:a,e?e.L===r?e.L=s:e.R=s:this._=s,o&&a?(l=s.C,s.C=r.C,s.L=o,o.U=s,s!==a?(e=s.U,s.U=r.U,r=s.R,e.L=r,s.R=a,a.U=s):(s.U=e,e=s,r=s.R)):(l=r.C,r=s),r&&(r.U=e),!l){if(r&&r.C)return void(r.C=!1);do{if(r===this._)break;if(r===e.L){if((i=e.R).C&&(i.C=!1,e.C=!0,lD(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,uD(this,i),i=e.R),i.C=e.C,e.C=i.R.C=!1,lD(this,e),r=this._;break}}else if((i=e.L).C&&(i.C=!1,e.C=!0,uD(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,lD(this,i),i=e.L),i.C=e.C,e.C=i.L.C=!1,uD(this,e),r=this._;break}i.C=!0,r=e,e=e.U}while(!r.C);r&&(r.C=!1)}}};var Mne=fG;function cD(n,r,e,i){var o=[null,null],a=Tl.push(o)-1;return o.left=n,o.right=r,e&&FN(o,n,r,e),i&&FN(o,r,n,i),bc[n.index].halfedges.push(a),bc[r.index].halfedges.push(a),o}function dD(n,r,e){var i=[r,e];return i.left=n,i}function FN(n,r,e,i){n[0]||n[1]?n.left===e?n[1]=i:n[0]=i:(n[0]=i,n.left=r,n.right=e)}function DSe(n,r,e,i,o){var q,a=n[0],s=n[1],l=a[0],u=a[1],g=0,C=1,Z=s[0]-l,z=s[1]-u;if(q=r-l,Z||!(q>0)){if(q/=Z,Z<0){if(q<g)return;q<C&&(C=q)}else if(Z>0){if(q>C)return;q>g&&(g=q)}if(q=i-l,Z||!(q<0)){if(q/=Z,Z<0){if(q>C)return;q>g&&(g=q)}else if(Z>0){if(q<g)return;q<C&&(C=q)}if(q=e-u,z||!(q>0)){if(q/=z,z<0){if(q<g)return;q<C&&(C=q)}else if(z>0){if(q>C)return;q>g&&(g=q)}if(q=o-u,z||!(q<0)){if(q/=z,z<0){if(q>C)return;q>g&&(g=q)}else if(z>0){if(q<g)return;q<C&&(C=q)}return!(g>0)&&!(C<1)||(g>0&&(n[0]=[l+g*Z,u+g*z]),C<1&&(n[1]=[l+C*Z,u+C*z])),!0}}}}}function ASe(n,r,e,i,o){var a=n[1];if(a)return!0;var q,re,s=n[0],l=n.left,u=n.right,d=l[0],h=l[1],g=u[0],C=u[1],Z=(d+g)/2,z=(h+C)/2;if(C===h){if(Z<r||Z>=i)return;if(d>g){if(s){if(s[1]>=o)return}else s=[Z,e];a=[Z,o]}else{if(s){if(s[1]<e)return}else s=[Z,o];a=[Z,e]}}else if(re=z-(q=(d-g)/(C-h))*Z,q<-1||q>1)if(d>g){if(s){if(s[1]>=o)return}else s=[(e-re)/q,e];a=[(o-re)/q,o]}else{if(s){if(s[1]<e)return}else s=[(o-re)/q,o];a=[(e-re)/q,e]}else if(h<C){if(s){if(s[0]>=i)return}else s=[r,q*r+re];a=[i,q*i+re]}else{if(s){if(s[0]<r)return}else s=[i,q*i+re];a=[r,q*r+re]}return n[0]=s,n[1]=a,!0}function PSe(n,r){var e=n.site,i=r.left,o=r.right;return e===o&&(o=i,i=e),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(e===i?(i=r[1],o=r[0]):(i=r[0],o=r[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function Sne(n,r){return r[+(r.left!==n.site)]}function RSe(n,r){return r[+(r.left===n.site)]}var pG,Ene=[];function NSe(){BN(this),this.x=this.y=this.arc=this.site=this.cy=null}function Lw(n){var r=n.P,e=n.N;if(r&&e){var i=r.site,o=n.site,a=e.site;if(i!==a){var s=o[0],l=o[1],u=i[0]-s,d=i[1]-l,h=a[0]-s,g=a[1]-l,C=2*(u*g-d*h);if(!(C>=-jSe)){var Z=u*u+d*d,z=h*h+g*g,q=(g*Z-d*z)/C,re=(u*z-h*Z)/C,ae=Ene.pop()||new NSe;ae.arc=n,ae.site=o,ae.x=q+s,ae.y=(ae.cy=re+l)+Math.sqrt(q*q+re*re),n.circle=ae;for(var Se=null,Ce=fD._;Ce;)if(ae.y<Ce.y||ae.y===Ce.y&&ae.x<=Ce.x){if(!Ce.L){Se=Ce.P;break}Ce=Ce.L}else{if(!Ce.R){Se=Ce;break}Ce=Ce.R}fD.insert(Se,ae),Se||(pG=ae)}}}}function Zw(n){var r=n.circle;r&&(r.P||(pG=r.N),fD.remove(r),Ene.push(r),BN(r),n.circle=null)}var xne=[];function BSe(){BN(this),this.edge=this.site=this.circle=null}function Dne(n){var r=xne.pop()||new BSe;return r.site=n,r}function hG(n){Zw(n),Nw.remove(n),xne.push(n),BN(n)}function FSe(n){var r=n.circle,e=r.x,i=r.cy,o=[e,i],a=n.P,s=n.N,l=[n];hG(n);for(var u=a;u.circle&&Math.abs(e-u.circle.x)<wo&&Math.abs(i-u.circle.cy)<wo;)a=u.P,l.unshift(u),hG(u),u=a;l.unshift(u),Zw(u);for(var d=s;d.circle&&Math.abs(e-d.circle.x)<wo&&Math.abs(i-d.circle.cy)<wo;)s=d.N,l.push(d),hG(d),d=s;l.push(d),Zw(d);var g,h=l.length;for(g=1;g<h;++g)d=l[g],u=l[g-1],FN(d.edge,u.site,d.site,o);u=l[0],(d=l[h-1]).edge=cD(u.site,d.site,null,o),Lw(u),Lw(d)}function USe(n){for(var i,o,a,s,r=n[0],e=n[1],l=Nw._;l;)if((a=Ane(l,e)-r)>wo)l=l.L;else{if(!((s=r-HSe(l,e))>wo)){a>-wo?(i=l.P,o=l):s>-wo?(i=l,o=l.N):i=o=l;break}if(!l.R){i=l;break}l=l.R}!function ISe(n){return bc[n.index]={site:n,halfedges:[]}}(n);var u=Dne(n);if(Nw.insert(i,u),i||o){if(i===o)return Zw(i),o=Dne(i.site),Nw.insert(u,o),u.edge=o.edge=cD(i.site,u.site),Lw(i),void Lw(o);if(!o)return void(u.edge=cD(i.site,u.site));Zw(i),Zw(o);var d=i.site,h=d[0],g=d[1],C=n[0]-h,Z=n[1]-g,z=o.site,q=z[0]-h,re=z[1]-g,ae=2*(C*re-Z*q),Se=C*C+Z*Z,Ce=q*q+re*re,Ee=[(re*Se-Z*Ce)/ae+h,(C*Ce-q*Se)/ae+g];FN(o.edge,d,z,Ee),u.edge=cD(d,n,null,Ee),o.edge=cD(n,z,null,Ee),Lw(i),Lw(o)}}function Ane(n,r){var e=n.site,i=e[0],o=e[1],a=o-r;if(!a)return i;var s=n.P;if(!s)return-1/0;var l=(e=s.site)[0],u=e[1],d=u-r;if(!d)return l;var h=l-i,g=1/a-1/d,C=h/d;return g?(-C+Math.sqrt(C*C-2*g*(h*h/(-2*d)-u+d/2+o-a/2)))/g+i:(i+l)/2}function HSe(n,r){var e=n.N;if(e)return Ane(e,r);var i=n.site;return i[1]===r?i[0]:1/0}var Nw,bc,fD,Tl,wo=1e-6,jSe=1e-12;function GSe(n,r,e){return(n[0]-e[0])*(r[1]-n[1])-(n[0]-r[0])*(e[1]-n[1])}function zSe(n,r){return r[1]-n[1]||r[0]-n[0]}function mG(n,r){var i,o,a,e=n.sort(zSe).pop();for(Tl=[],bc=new Array(n.length),Nw=new Mne,fD=new Mne;;)if(a=pG,e&&(!a||e[1]<a.y||e[1]===a.y&&e[0]<a.x))(e[0]!==i||e[1]!==o)&&(USe(e),i=e[0],o=e[1]),e=n.pop();else{if(!a)break;FSe(a.arc)}if(function LSe(){for(var e,i,o,a,n=0,r=bc.length;n<r;++n)if((e=bc[n])&&(a=(i=e.halfedges).length)){var s=new Array(a),l=new Array(a);for(o=0;o<a;++o)s[o]=o,l[o]=PSe(e,Tl[i[o]]);for(s.sort(function(u,d){return l[d]-l[u]}),o=0;o<a;++o)l[o]=i[s[o]];for(o=0;o<a;++o)i[o]=l[o]}}(),r){var s=+r[0][0],l=+r[0][1],u=+r[1][0],d=+r[1][1];(function OSe(n,r,e,i){for(var a,o=Tl.length;o--;)ASe(a=Tl[o],n,r,e,i)&&DSe(a,n,r,e,i)&&(Math.abs(a[0][0]-a[1][0])>wo||Math.abs(a[0][1]-a[1][1])>wo)||delete Tl[o]})(s,l,u,d),function ZSe(n,r,e,i){var a,s,l,u,d,h,g,C,Z,z,q,re,o=bc.length,ae=!0;for(a=0;a<o;++a)if(s=bc[a]){for(l=s.site,u=(d=s.halfedges).length;u--;)Tl[d[u]]||d.splice(u,1);for(u=0,h=d.length;u<h;)q=(z=RSe(s,Tl[d[u]]))[0],re=z[1],C=(g=Sne(s,Tl[d[++u%h]]))[0],Z=g[1],(Math.abs(q-C)>wo||Math.abs(re-Z)>wo)&&(d.splice(u,0,Tl.push(dD(l,z,Math.abs(q-n)<wo&&i-re>wo?[n,Math.abs(C-n)<wo?Z:i]:Math.abs(re-i)<wo&&e-q>wo?[Math.abs(Z-i)<wo?C:e,i]:Math.abs(q-e)<wo&&re-r>wo?[e,Math.abs(C-e)<wo?Z:r]:Math.abs(re-r)<wo&&q-n>wo?[Math.abs(Z-r)<wo?C:n,r]:null))-1),++h);h&&(ae=!1)}if(ae){var Se,Ce,Ee,Ve=1/0;for(a=0,ae=null;a<o;++a)(s=bc[a])&&(Ee=(Se=(l=s.site)[0]-n)*Se+(Ce=l[1]-r)*Ce)<Ve&&(Ve=Ee,ae=s);if(ae){var ut=[n,r],Ae=[n,i],ot=[e,i],ht=[e,r];ae.halfedges.push(Tl.push(dD(l=ae.site,ut,Ae))-1,Tl.push(dD(l,Ae,ot))-1,Tl.push(dD(l,ot,ht))-1,Tl.push(dD(l,ht,ut))-1)}}for(a=0;a<o;++a)(s=bc[a])&&(s.halfedges.length||delete bc[a])}(s,l,u,d)}this.edges=Tl,this.cells=bc,Nw=fD=Tl=bc=null}function WSe(){var n=ESe,r=xSe,e=null;function i(o){return new mG(o.map(function(a,s){var l=[Math.round(n(a,s,o)/wo)*wo,Math.round(r(a,s,o)/wo)*wo];return l.index=s,l.data=a,l}),e)}return i.polygons=function(o){return i(o).polygons()},i.links=function(o){return i(o).links()},i.triangles=function(o){return i(o).triangles()},i.x=function(o){return arguments.length?(n="function"==typeof o?o:kne(+o),i):n},i.y=function(o){return arguments.length?(r="function"==typeof o?o:kne(+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}mG.prototype={constructor:mG,polygons:function(){var r=this.edges;return this.cells.map(function(e){var i=e.halfedges.map(function(o){return Sne(e,r[o])});return i.data=e.site.data,i})},triangles:function(){var r=[],e=this.edges;return this.cells.forEach(function(i,o){if(u=(s=i.halfedges).length)for(var s,u,d,a=i.site,l=-1,h=e[s[u-1]],g=h.left===a?h.right:h.left;++l<u;)d=g,g=(h=e[s[l]]).left===a?h.right:h.left,d&&g&&o<d.index&&o<g.index&&GSe(a,d,g)<0&&r.push([a.data,d.data,g.data])}),r},links:function(){return this.edges.filter(function(r){return r.right}).map(function(r){return{source:r.left.data,target:r.right.data}})},find:function(r,e,i){for(var a,u,o=this,s=o._found||0,l=o.cells.length;!(u=o.cells[s]);)if(++s>=l)return null;var d=r-u.site[0],h=e-u.site[1],g=d*d+h*h;do{u=o.cells[a=s],s=null,u.halfedges.forEach(function(C){var Z=o.edges[C],z=Z.left;if(z!==u.site&&z||(z=Z.right)){var q=r-z[0],re=e-z[1],ae=q*q+re*re;ae<g&&(g=ae,s=z.index)}})}while(null!==s);return o._found=a,null==i||g<=i*i?u.site:null}};var pD=Math.SQRT2;function Ine(n){return((n=Math.exp(n))+1/n)/2}function qSe(n,r){var g,C,e=n[0],i=n[1],o=n[2],a=r[0],s=r[1],l=r[2],u=a-e,d=s-i,h=u*u+d*d;if(h<1e-12)C=Math.log(l/o)/pD,g=function(Ce){return[e+Ce*u,i+Ce*d,o*Math.exp(pD*Ce*C)]};else{var Z=Math.sqrt(h),z=(l*l-o*o+4*h)/(2*o*2*Z),q=(l*l-o*o-4*h)/(2*l*2*Z),re=Math.log(Math.sqrt(z*z+1)-z),ae=Math.log(Math.sqrt(q*q+1)-q);C=(ae-re)/pD,g=function(Ce){var Ee=Ce*C,Ve=Ine(re),ut=o/(2*Z)*(Ve*function KSe(n){return((n=Math.exp(2*n))-1)/(n+1)}(pD*Ee+re)-function YSe(n){return((n=Math.exp(n))-1/n)/2}(re));return[e+ut*u,i+ut*d,o*Ve/Ine(pD*Ee+re)]}}return g.duration=1e3*C,g}function UN(n){return function(){return n}}function JSe(n,r,e){this.target=n,this.type=r,this.transform=e}function sm(n,r,e){this.k=n,this.x=r,this.y=e}sm.prototype={constructor:sm,scale:function(r){return 1===r?this:new sm(this.k*r,this.x,this.y)},translate:function(r,e){return 0===r&0===e?this:new sm(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 HN=new sm(1,0,0);function Pne(n){return n.__zoom||HN}function gG(){Zn.stopImmediatePropagation()}function hD(){Zn.preventDefault(),Zn.stopImmediatePropagation()}function QSe(){return!Zn.ctrlKey&&!Zn.button}function XSe(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n).hasAttribute("viewBox")?[[(n=n.viewBox.baseVal).x,n.y],[n.x+n.width,n.y+n.height]]:[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]:[[0,0],[n.clientWidth,n.clientHeight]]}function Rne(){return this.__zoom||HN}function $Se(){return-Zn.deltaY*(1===Zn.deltaMode?.05:Zn.deltaMode?1:.002)}function eEe(){return navigator.maxTouchPoints||"ontouchstart"in this}function tEe(n,r,e){var i=n.invertX(r[0][0])-e[0][0],o=n.invertX(r[1][0])-e[1][0],a=n.invertY(r[0][1])-e[0][1],s=n.invertY(r[1][1])-e[1][1];return n.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function Lne(){var h,g,n=QSe,r=XSe,e=tEe,i=$Se,o=eEe,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,u=qSe,d=Xy("start","zoom","end"),C=500,z=0;function q(Pe){Pe.property("__zoom",Rne).on("wheel.zoom",ut).on("mousedown.zoom",Ae).on("dblclick.zoom",ot).filter(o).on("touchstart.zoom",ht).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",Xe).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function re(Pe,ft){return(ft=Math.max(a[0],Math.min(a[1],ft)))===Pe.k?Pe:new sm(ft,Pe.x,Pe.y)}function ae(Pe,ft,Nt){var Gt=ft[0]-Nt[0]*Pe.k,It=ft[1]-Nt[1]*Pe.k;return Gt===Pe.x&&It===Pe.y?Pe:new sm(Pe.k,Gt,It)}function Se(Pe){return[(+Pe[0][0]+ +Pe[1][0])/2,(+Pe[0][1]+ +Pe[1][1])/2]}function Ce(Pe,ft,Nt){Pe.on("start.zoom",function(){Ee(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){Ee(this,arguments).end()}).tween("zoom",function(){var Gt=this,It=arguments,Tn=Ee(Gt,It),jn=r.apply(Gt,It),zn=Nt||Se(jn),or=Math.max(jn[1][0]-jn[0][0],jn[1][1]-jn[0][1]),Mr=Gt.__zoom,_r="function"==typeof ft?ft.apply(Gt,It):ft,zr=u(Mr.invert(zn).concat(or/Mr.k),_r.invert(zn).concat(or/_r.k));return function(Ur){if(1===Ur)Ur=_r;else{var Kr=zr(Ur),Fo=or/Kr[2];Ur=new sm(Fo,zn[0]-Kr[0]*Fo,zn[1]-Kr[1]*Fo)}Tn.zoom(null,Ur)}})}function Ee(Pe,ft,Nt){return!Nt&&Pe.__zooming||new Ve(Pe,ft)}function Ve(Pe,ft){this.that=Pe,this.args=ft,this.active=0,this.extent=r.apply(Pe,ft),this.taps=0}function ut(){if(n.apply(this,arguments)){var Pe=Ee(this,arguments),ft=this.__zoom,Nt=Math.max(a[0],Math.min(a[1],ft.k*Math.pow(2,i.apply(this,arguments)))),Gt=Kd(this);ft.k!==Nt&&(Pe.wheel?((Pe.mouse[0][0]!==Gt[0]||Pe.mouse[0][1]!==Gt[1])&&(Pe.mouse[1]=ft.invert(Pe.mouse[0]=Gt)),clearTimeout(Pe.wheel)):(Pe.mouse=[Gt,ft.invert(Gt)],tw(this),Pe.start()),hD(),Pe.wheel=setTimeout(It,150),Pe.zoom("mouse",e(ae(re(ft,Nt),Pe.mouse[0],Pe.mouse[1]),Pe.extent,s)))}function It(){Pe.wheel=null,Pe.end()}}function Ae(){if(!g&&n.apply(this,arguments)){var Pe=Ee(this,arguments,!0),ft=vi(Zn.view).on("mousemove.zoom",Tn,!0).on("mouseup.zoom",jn,!0),Nt=Kd(this),Gt=Zn.clientX,It=Zn.clientY;xL(Zn.view),gG(),Pe.mouse=[Nt,this.__zoom.invert(Nt)],tw(this),Pe.start()}function Tn(){if(hD(),!Pe.moved){var zn=Zn.clientX-Gt,or=Zn.clientY-It;Pe.moved=zn*zn+or*or>z}Pe.zoom("mouse",e(ae(Pe.that.__zoom,Pe.mouse[0]=Kd(Pe.that),Pe.mouse[1]),Pe.extent,s))}function jn(){ft.on("mousemove.zoom mouseup.zoom",null),DL(Zn.view,Pe.moved),hD(),Pe.end()}}function ot(){if(n.apply(this,arguments)){var Pe=this.__zoom,ft=Kd(this),Nt=Pe.invert(ft),Gt=Pe.k*(Zn.shiftKey?.5:2),It=e(ae(re(Pe,Gt),ft,Nt),r.apply(this,arguments),s);hD(),l>0?vi(this).transition().duration(l).call(Ce,It,ft):vi(this).call(q.transform,It)}}function ht(){if(n.apply(this,arguments)){var Gt,It,Tn,jn,Pe=Zn.touches,ft=Pe.length,Nt=Ee(this,arguments,Zn.changedTouches.length===ft);for(gG(),It=0;It<ft;++It)jn=[jn=T9(this,Pe,(Tn=Pe[It]).identifier),this.__zoom.invert(jn),Tn.identifier],Nt.touch0?Nt.touch1||(Nt.touch1=jn,Nt.taps=0):(Nt.touch0=jn,Gt=!0,Nt.taps=1+!!h);h&&(h=clearTimeout(h)),Gt&&(Nt.taps<2&&(h=setTimeout(function(){h=null},C)),tw(this),Nt.start())}}function bt(){if(this.__zooming){var Gt,It,Tn,jn,Pe=Ee(this,arguments),ft=Zn.changedTouches,Nt=ft.length;for(hD(),h&&(h=clearTimeout(h)),Pe.taps=0,Gt=0;Gt<Nt;++Gt)Tn=T9(this,ft,(It=ft[Gt]).identifier),Pe.touch0&&Pe.touch0[2]===It.identifier?Pe.touch0[0]=Tn:Pe.touch1&&Pe.touch1[2]===It.identifier&&(Pe.touch1[0]=Tn);if(It=Pe.that.__zoom,Pe.touch1){var zn=Pe.touch0[0],or=Pe.touch0[1],Mr=Pe.touch1[0],_r=Pe.touch1[1],zr=(zr=Mr[0]-zn[0])*zr+(zr=Mr[1]-zn[1])*zr,Ur=(Ur=_r[0]-or[0])*Ur+(Ur=_r[1]-or[1])*Ur;It=re(It,Math.sqrt(zr/Ur)),Tn=[(zn[0]+Mr[0])/2,(zn[1]+Mr[1])/2],jn=[(or[0]+_r[0])/2,(or[1]+_r[1])/2]}else{if(!Pe.touch0)return;Tn=Pe.touch0[0],jn=Pe.touch0[1]}Pe.zoom("touch",e(ae(It,Tn,jn),Pe.extent,s))}}function Xe(){if(this.__zooming){var Gt,It,Pe=Ee(this,arguments),ft=Zn.changedTouches,Nt=ft.length;for(gG(),g&&clearTimeout(g),g=setTimeout(function(){g=null},C),Gt=0;Gt<Nt;++Gt)It=ft[Gt],Pe.touch0&&Pe.touch0[2]===It.identifier?delete Pe.touch0:Pe.touch1&&Pe.touch1[2]===It.identifier&&delete Pe.touch1;if(Pe.touch1&&!Pe.touch0&&(Pe.touch0=Pe.touch1,delete Pe.touch1),Pe.touch0)Pe.touch0[1]=this.__zoom.invert(Pe.touch0[0]);else if(Pe.end(),2===Pe.taps){var Tn=vi(this).on("dblclick.zoom");Tn&&Tn.apply(this,arguments)}}}return q.transform=function(Pe,ft){var Nt=Pe.selection?Pe.selection():Pe;Nt.property("__zoom",Rne),Pe!==Nt?Ce(Pe,ft):Nt.interrupt().each(function(){Ee(this,arguments).start().zoom(null,"function"==typeof ft?ft.apply(this,arguments):ft).end()})},q.scaleBy=function(Pe,ft){q.scaleTo(Pe,function(){var Nt=this.__zoom.k,Gt="function"==typeof ft?ft.apply(this,arguments):ft;return Nt*Gt})},q.scaleTo=function(Pe,ft){q.transform(Pe,function(){var Nt=r.apply(this,arguments),Gt=this.__zoom,It=Se(Nt),Tn=Gt.invert(It),jn="function"==typeof ft?ft.apply(this,arguments):ft;return e(ae(re(Gt,jn),It,Tn),Nt,s)})},q.translateBy=function(Pe,ft,Nt){q.transform(Pe,function(){return e(this.__zoom.translate("function"==typeof ft?ft.apply(this,arguments):ft,"function"==typeof Nt?Nt.apply(this,arguments):Nt),r.apply(this,arguments),s)})},q.translateTo=function(Pe,ft,Nt){q.transform(Pe,function(){var Gt=r.apply(this,arguments),It=this.__zoom,Tn=Se(Gt);return e(HN.translate(Tn[0],Tn[1]).scale(It.k).translate("function"==typeof ft?-ft.apply(this,arguments):-ft,"function"==typeof Nt?-Nt.apply(this,arguments):-Nt),Gt,s)})},Ve.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(ft,Nt){return this.mouse&&"mouse"!==ft&&(this.mouse[1]=Nt.invert(this.mouse[0])),this.touch0&&"touch"!==ft&&(this.touch0[1]=Nt.invert(this.touch0[0])),this.touch1&&"touch"!==ft&&(this.touch1[1]=Nt.invert(this.touch1[0])),this.that.__zoom=Nt,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(ft){EL(new JSe(q,ft,this.that.__zoom),d.apply,d,[ft,this.that,this.args])}},q.wheelDelta=function(Pe){return arguments.length?(i="function"==typeof Pe?Pe:UN(+Pe),q):i},q.filter=function(Pe){return arguments.length?(n="function"==typeof Pe?Pe:UN(!!Pe),q):n},q.touchable=function(Pe){return arguments.length?(o="function"==typeof Pe?Pe:UN(!!Pe),q):o},q.extent=function(Pe){return arguments.length?(r="function"==typeof Pe?Pe:UN([[+Pe[0][0],+Pe[0][1]],[+Pe[1][0],+Pe[1][1]]]),q):r},q.scaleExtent=function(Pe){return arguments.length?(a[0]=+Pe[0],a[1]=+Pe[1],q):[a[0],a[1]]},q.translateExtent=function(Pe){return arguments.length?(s[0][0]=+Pe[0][0],s[1][0]=+Pe[1][0],s[0][1]=+Pe[0][1],s[1][1]=+Pe[1][1],q):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},q.constrain=function(Pe){return arguments.length?(e=Pe,q):e},q.duration=function(Pe){return arguments.length?(l=+Pe,q):l},q.interpolate=function(Pe){return arguments.length?(u=Pe,q):u},q.on=function(){var Pe=d.on.apply(d,arguments);return Pe===d?q:Pe},q.clickDistance=function(Pe){return arguments.length?(z=(Pe=+Pe)*Pe,q):Math.sqrt(z)},q}Pne.prototype=sm.prototype;var vG=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getD3",value:function(){return G}}]),n}();vG=function(n,r,e,i){var s,o=arguments.length,a=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(n,r,e,i);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(a=(o<3?s(a):o>3?s(r,e,a):s(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a}([(0,t.GSi)(),function(n,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,r)}("design:paramtypes",[])],vG);var Tp=m(8723);function iEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"linearGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.outerLinearGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.outerLinearGradient.colorStop2)("stop-opacity",1)}}function oEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"radialGradient"),t._UZ(1,"stop",5)(2,"stop",6),t.qZA()),2&n){var e=t.oxw(2);t.uIk("id",e.svg.radialGradient.id),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop1)("stop-opacity",1),t.xp6(1),t.uIk("stop-color",e.svg.radialGradient.colorStop2)("stop-opacity",1)}}function aEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill",e.svg.backgroundCircle.fill)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function sEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(3);t.zWS("fill","url(",e.window.location.href,"#",e.svg.radialGradient.id,")"),t.uIk("cx",e.svg.backgroundCircle.cx)("cy",e.svg.backgroundCircle.cy)("r",e.svg.backgroundCircle.r)("fill-opacity",e.svg.backgroundCircle.fillOpacity)("stroke",e.svg.backgroundCircle.stroke)("stroke-width",e.svg.backgroundCircle.strokeWidth)}}function lEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,aEe,1,7,"circle",2),t.YNc(2,sEe,1,8,"circle",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",e.options.backgroundGradient)}}function uEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle")),2&n){var e=t.oxw(2);t.uIk("cx",e.svg.circle.cx)("cy",e.svg.circle.cy)("r",e.svg.circle.r)("fill",e.svg.circle.fill)("stroke",e.svg.circle.stroke)("stroke-width",e.svg.circle.strokeWidth)}}function cEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.uIk("d",e.svg.path.d)("stroke",e.svg.path.stroke)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function dEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path")),2&n){var e=t.oxw(3);t.zWS("stroke","url(",e.window.location.href,"#",e.svg.outerLinearGradient.id,")"),t.uIk("d",e.svg.path.d)("stroke-width",e.svg.path.strokeWidth)("stroke-linecap",e.svg.path.strokeLinecap)("fill",e.svg.path.fill)}}function fEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,cEe,1,5,"path",2),t.YNc(2,dEe,1,6,"path",2),t.BQk()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",e.options.outerStrokeGradient)}}function pEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.title.x)("y",i.svg.title.y)("dy",e.dy)("font-size",i.svg.title.fontSize)("font-weight",i.svg.title.fontWeight)("fill",i.svg.title.color),t.xp6(1),t.Oqu(e.span)}}function hEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,pEe,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.title.tspans)}}function mEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=t.oxw(3);t.uIk("font-size",e.svg.units.fontSize)("font-weight",e.svg.units.fontWeight)("fill",e.svg.units.color),t.xp6(1),t.Oqu(e.svg.units.text)}}function _Ee(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.uIk("x",i.svg.subtitle.x)("y",i.svg.subtitle.y)("dy",e.dy)("font-size",i.svg.subtitle.fontSize)("font-weight",i.svg.subtitle.fontWeight)("fill",i.svg.subtitle.color),t.xp6(1),t.Oqu(e.span)}}function gEe(n,r){if(1&n&&(t.O4$(),t.ynx(0),t.YNc(1,_Ee,2,7,"tspan",8),t.BQk()),2&n){var e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.svg.subtitle.tspans)}}function vEe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"text",7),t.YNc(1,hEe,2,1,"ng-container",2),t.YNc(2,mEe,2,4,"tspan",2),t.YNc(3,gEe,2,1,"ng-container",2),t.qZA()),2&n){var e=t.oxw(2);t.uIk("x",e.svg.circle.cx)("y",e.svg.circle.cy)("text-anchor",e.svg.title.textAnchor),t.xp6(1),t.Q6J("ngIf",e.options.showTitle),t.xp6(1),t.Q6J("ngIf",e.options.showUnits),t.xp6(1),t.Q6J("ngIf",e.options.showSubtitle)}}function yEe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"image",9)),2&n){var e=t.oxw(2);t.uIk("height",e.svg.image.height)("width",e.svg.image.width)("href",e.svg.image.src,null,"xlink")("x",e.svg.image.x)("y",e.svg.image.y)}}function bEe(n,r){if(1&n){var e=t.EpF();t.O4$(),t.TgZ(0,"svg",1),t.NdJ("click",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.emitClickEvent(a))}),t.TgZ(1,"defs"),t.YNc(2,iEe,3,5,"linearGradient",2),t.YNc(3,oEe,3,5,"radialGradient",2),t.qZA(),t.YNc(4,lEe,3,2,"ng-container",2),t.YNc(5,uEe,1,6,"circle",2),t.YNc(6,fEe,3,2,"ng-container",2),t.YNc(7,vEe,4,6,"text",3),t.YNc(8,yEe,1,5,"image",4),t.qZA()}if(2&n){var i=t.oxw();t.uIk("viewBox",i.svg.viewBox)("height",i.svg.height)("width",i.svg.width)("class",i.options.class),t.xp6(2),t.Q6J("ngIf",i.options.outerStrokeGradient),t.xp6(1),t.Q6J("ngIf",i.options.backgroundGradient),t.xp6(1),t.Q6J("ngIf",i.options.showBackground),t.xp6(1),t.Q6J("ngIf",i.options.showInnerStroke),t.xp6(1),t.Q6J("ngIf",0!=+i.options.percent||i.options.showZeroOuterStroke),t.xp6(1),t.Q6J("ngIf",!i.options.showImage&&(i.options.showTitle||i.options.showUnits||i.options.showSubtitle)),t.xp6(1),t.Q6J("ngIf",i.options.showImage)}}var jN=(0,B.Z)(function n(){(0,H.Z)(this,n),this.class="",this.backgroundGradient=!1,this.backgroundColor="transparent",this.backgroundGradientStopColor="transparent",this.backgroundOpacity=1,this.backgroundStroke="transparent",this.backgroundStrokeWidth=0,this.backgroundPadding=5,this.percent=0,this.radius=90,this.space=4,this.toFixed=0,this.maxPercent=1e3,this.renderOnClick=!0,this.units="%",this.unitsFontSize="10",this.unitsFontWeight="normal",this.unitsColor="#444444",this.outerStrokeGradient=!1,this.outerStrokeWidth=8,this.outerStrokeColor="#78C000",this.outerStrokeGradientStopColor="transparent",this.outerStrokeLinecap="round",this.innerStrokeColor="#C7E596",this.innerStrokeWidth=4,this.titleFormat=void 0,this.title="auto",this.titleColor="#444444",this.titleFontSize="20",this.titleFontWeight="normal",this.subtitleFormat=void 0,this.subtitle="progress",this.subtitleColor="#A9A9A9",this.subtitleFontSize="10",this.subtitleFontWeight="normal",this.imageSrc=void 0,this.imageHeight=0,this.imageWidth=0,this.animation=!0,this.animateTitle=!0,this.animateSubtitle=!1,this.animationDuration=500,this.showTitle=!0,this.showSubtitle=!0,this.showUnits=!0,this.showImage=!1,this.showBackground=!0,this.showInnerStroke=!0,this.clockwise=!0,this.responsive=!1,this.startFromZero=!0,this.showZeroOuterStroke=!0,this.lazy=!1}),mD=function(){function n(r,e,i,o){var a=this;(0,H.Z)(this,n),this.ngZone=e,this.elRef=i,this.onClick=new t.vpe,this.svgElement=null,this.isInViewport=!1,this.onViewportChanged=new t.vpe,this._viewportChangedSubscriber=null,this.options=new jN,this.defaultOptions=new jN,this._lastPercent=0,this._gradientUUID=null,this.render=function(){a.applyOptions(),a.options.lazy?(null===a.svgElement&&a.draw(a._lastPercent),a.isInViewport&&(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)):(a.options.animation&&a.options.animationDuration>0?a.animate(a._lastPercent,a.options.percent):a.draw(a.options.percent),a._lastPercent=a.options.percent)},this.polarToCartesian=function(s,l,u,d){var h=d*Math.PI/180;return{x:s+Math.sin(h)*u,y:l-Math.cos(h)*u}},this.draw=function(s){var l=(s=void 0===s?a.options.percent:Math.abs(s))>100?100:s,u=2*a.options.radius+2*a.options.outerStrokeWidth;a.options.showBackground&&(u+=2*a.options.backgroundStrokeWidth+a.max(0,2*a.options.backgroundPadding));var C,Z,d={x:u/2,y:u/2},h={x:d.x,y:d.y-a.options.radius},g=a.polarToCartesian(d.x,d.y,a.options.radius,360*(a.options.clockwise?l:100-l)/100);if(100===l&&(g.x=g.x+(a.options.clockwise?-.01:.01)),l>50){var z=a.options.clockwise?[1,1]:[1,0],q=(0,Nn.Z)(z,2);C=q[0],Z=q[1]}else{var re=a.options.clockwise?[0,1]:[0,0],ae=(0,Nn.Z)(re,2);C=ae[0],Z=ae[1]}var Se=a.options.animateTitle?s:a.options.percent,Ce=Se>a.options.maxPercent?"".concat(a.options.maxPercent.toFixed(a.options.toFixed),"+"):Se.toFixed(a.options.toFixed),Ee=a.options.animateSubtitle?s:a.options.percent,Ve={x:d.x,y:d.y,textAnchor:"middle",color:a.options.titleColor,fontSize:a.options.titleFontSize,fontWeight:a.options.titleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.titleFormat&&"Function"===a.options.titleFormat.constructor.name){var ut=a.options.titleFormat(Se);ut instanceof Array?Ve.texts=(0,pn.Z)(ut):Ve.texts.push(ut.toString())}else"auto"===a.options.title?Ve.texts.push(Ce):a.options.title instanceof Array?Ve.texts=(0,pn.Z)(a.options.title):Ve.texts.push(a.options.title.toString());var Ae={x:d.x,y:d.y,textAnchor:"middle",color:a.options.subtitleColor,fontSize:a.options.subtitleFontSize,fontWeight:a.options.subtitleFontWeight,texts:[],tspans:[]};if(void 0!==a.options.subtitleFormat&&"Function"===a.options.subtitleFormat.constructor.name){var ot=a.options.subtitleFormat(Ee);ot instanceof Array?Ae.texts=(0,pn.Z)(ot):Ae.texts.push(ot.toString())}else a.options.subtitle instanceof Array?Ae.texts=(0,pn.Z)(a.options.subtitle):Ae.texts.push(a.options.subtitle.toString());var ht={text:"".concat(a.options.units),fontSize:a.options.unitsFontSize,fontWeight:a.options.unitsFontWeight,color:a.options.unitsColor},bt=0,Xe=1;if(a.options.showTitle&&(bt+=Ve.texts.length),a.options.showSubtitle&&(bt+=Ae.texts.length),a.options.showTitle){var ft,Pe=(0,xn.Z)(Ve.texts);try{for(Pe.s();!(ft=Pe.n()).done;){var Nt=ft.value;Ve.tspans.push({span:Nt,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Pe.e(jn)}finally{Pe.f()}}if(a.options.showSubtitle){var It,Gt=(0,xn.Z)(Ae.texts);try{for(Gt.s();!(It=Gt.n()).done;){var Tn=It.value;Ae.tspans.push({span:Tn,dy:a.getRelativeY(Xe,bt)}),Xe++}}catch(jn){Gt.e(jn)}finally{Gt.f()}}null===a._gradientUUID&&(a._gradientUUID=a.uuid()),a.svg={viewBox:"0 0 ".concat(u," ").concat(u),width:a.options.responsive?"100%":u,height:a.options.responsive?"100%":u,backgroundCircle:{cx:d.x,cy:d.y,r:a.options.radius+a.options.outerStrokeWidth/2+a.options.backgroundPadding,fill:a.options.backgroundColor,fillOpacity:a.options.backgroundOpacity,stroke:a.options.backgroundStroke,strokeWidth:a.options.backgroundStrokeWidth},path:{d:"M ".concat(h.x," ").concat(h.y,"\n A ").concat(a.options.radius," ").concat(a.options.radius," 0 ").concat(C," ").concat(Z," ").concat(g.x," ").concat(g.y),stroke:a.options.outerStrokeColor,strokeWidth:a.options.outerStrokeWidth,strokeLinecap:a.options.outerStrokeLinecap,fill:"none"},circle:{cx:d.x,cy:d.y,r:a.options.radius-a.options.space-a.options.outerStrokeWidth/2-a.options.innerStrokeWidth/2,fill:"none",stroke:a.options.innerStrokeColor,strokeWidth:a.options.innerStrokeWidth},title:Ve,units:ht,subtitle:Ae,image:{x:d.x-a.options.imageWidth/2,y:d.y-a.options.imageHeight/2,src:a.options.imageSrc,width:a.options.imageWidth,height:a.options.imageHeight},outerLinearGradient:{id:"outer-linear-"+a._gradientUUID,colorStop1:a.options.outerStrokeColor,colorStop2:"transparent"===a.options.outerStrokeGradientStopColor?"#FFF":a.options.outerStrokeGradientStopColor},radialGradient:{id:"radial-"+a._gradientUUID,colorStop1:a.options.backgroundColor,colorStop2:"transparent"===a.options.backgroundGradientStopColor?"#FFF":a.options.backgroundGradientStopColor}}},this.getAnimationParameters=function(s,l){var d,h,g,C=a.options.startFromZero||s<0?0:s,Z=l<0?0:a.min(l,a.options.maxPercent),z=Math.abs(Math.round(Z-C));return z>=100?(d=100,h=a.options.animateTitle||a.options.animateSubtitle?Math.round(z/d):1):(d=z,h=1),(g=Math.round(a.options.animationDuration/d))<10&&(g=10,d=a.options.animationDuration/g,h=!a.options.animateTitle&&!a.options.animateSubtitle&&z>100?Math.round(100/d):Math.round(z/d)),h<1&&(h=1),{times:d,step:h,interval:g}},this.animate=function(s,l){a._timerSubscription&&!a._timerSubscription.closed&&a._timerSubscription.unsubscribe();var u=a.options.startFromZero?0:s,d=l,h=a.getAnimationParameters(u,d),g=h.step,C=h.interval,Z=u;a._timerSubscription=u<d?(0,Tp.H)(0,C).subscribe(function(){(Z+=g)<=d?!a.options.animateTitle&&!a.options.animateSubtitle&&Z>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())}):(0,Tp.H)(0,C).subscribe(function(){(Z-=g)>=d?!a.options.animateTitle&&!a.options.animateSubtitle&&d>=100?(a.draw(d),a._timerSubscription.unsubscribe()):a.draw(Z):(a.draw(d),a._timerSubscription.unsubscribe())})},this.applyOptions=function(){for(var s=0,l=Object.keys(a.options);s<l.length;s++){var u=l[s];a.hasOwnProperty(u)&&void 0!==a[u]?a.options[u]=a[u]:a.templateOptions&&void 0!==a.templateOptions[u]&&(a.options[u]=a.templateOptions[u])}a.options.radius=Math.abs(+a.options.radius),a.options.space=+a.options.space,a.options.percent=+a.options.percent>0?+a.options.percent:0,a.options.maxPercent=Math.abs(+a.options.maxPercent),a.options.animationDuration=Math.abs(a.options.animationDuration),a.options.outerStrokeWidth=Math.abs(+a.options.outerStrokeWidth),a.options.innerStrokeWidth=Math.abs(+a.options.innerStrokeWidth),a.options.backgroundPadding=+a.options.backgroundPadding},this.getRelativeY=function(s,l){return(1*(s-l/2)-.18).toFixed(2)+"em"},this.min=function(s,l){return s<l?s:l},this.max=function(s,l){return s>l?s:l},this.uuid=function(){var s=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){var d=(s+16*Math.random())%16|0;return s=Math.floor(s/16),("x"==u?d:3&d|8).toString(16)})},this.checkViewport=function(){a.findSvgElement();var s=a.isInViewport;a.isInViewport=a.isElementInViewport(a.svgElement),s!==a.isInViewport&&a.onViewportChanged.observers.length>0&&a.ngZone.run(function(){a.onViewportChanged.emit({oldValue:s,newValue:a.isInViewport})})},this.onScroll=function(s){a.checkViewport()},this.loadEventsForLazyMode=function(){if(a.options.lazy){a.ngZone.runOutsideAngular(function(){a.document.addEventListener("scroll",a.onScroll,!0),a.window.addEventListener("resize",a.onScroll,!0)}),null===a._viewportChangedSubscriber&&(a._viewportChangedSubscriber=a.onViewportChanged.subscribe(function(l){l.oldValue;l.newValue&&a.render()}));var s=(0,Tp.H)(0,50).subscribe(function(){null===a.svgElement?a.checkViewport():s.unsubscribe()})}},this.unloadEventsForLazyMode=function(){a.document.removeEventListener("scroll",a.onScroll,!0),a.window.removeEventListener("resize",a.onScroll,!0),null!==a._viewportChangedSubscriber&&(a._viewportChangedSubscriber.unsubscribe(),a._viewportChangedSubscriber=null)},this.document=o.get(ge.K0),this.window=this.document.defaultView,Object.assign(this.options,r),Object.assign(this.defaultOptions,r)}return(0,B.Z)(n,[{key:"emitClickEvent",value:function(e){this.options.renderOnClick&&this.animate(0,this.options.percent),this.onClick.observers.length>0&&this.onClick.emit(e)}},{key:"isDrawing",value:function(){return this._timerSubscription&&!this._timerSubscription.closed}},{key:"findSvgElement",value:function(){if(null===this.svgElement){var e=this.elRef.nativeElement.getElementsByTagName("svg");e.length>0&&(this.svgElement=e[0])}}},{key:"isElementInViewport",value:function(e){if(null==e)return!1;var a,i=e.getBoundingClientRect(),o=e.parentNode;do{if(a=o.getBoundingClientRect(),i.top>=a.bottom||i.bottom<=a.top||i.left>=a.right||i.right<=a.left)return!1;o=o.parentNode}while(o!=this.document.body);return!(i.top>=(this.window.innerHeight||this.document.documentElement.clientHeight)||i.bottom<=0||i.left>=(this.window.innerWidth||this.document.documentElement.clientWidth)||i.right<=0)}},{key:"ngOnInit",value:function(){this.loadEventsForLazyMode()}},{key:"ngOnDestroy",value:function(){this.unloadEventsForLazyMode()}},{key:"ngOnChanges",value:function(e){this.render(),"lazy"in e&&(e.lazy.currentValue?this.loadEventsForLazyMode():this.unloadEventsForLazyMode())}}]),n}();mD.\u0275fac=function(r){return new(r||mD)(t.Y36(jN),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.zs3))},mD.\u0275cmp=t.Xpm({type:mD,selectors:[["circle-progress"]],inputs:{name:"name",class:"class",backgroundGradient:"backgroundGradient",backgroundColor:"backgroundColor",backgroundGradientStopColor:"backgroundGradientStopColor",backgroundOpacity:"backgroundOpacity",backgroundStroke:"backgroundStroke",backgroundStrokeWidth:"backgroundStrokeWidth",backgroundPadding:"backgroundPadding",radius:"radius",space:"space",percent:"percent",toFixed:"toFixed",maxPercent:"maxPercent",renderOnClick:"renderOnClick",units:"units",unitsFontSize:"unitsFontSize",unitsFontWeight:"unitsFontWeight",unitsColor:"unitsColor",outerStrokeGradient:"outerStrokeGradient",outerStrokeWidth:"outerStrokeWidth",outerStrokeColor:"outerStrokeColor",outerStrokeGradientStopColor:"outerStrokeGradientStopColor",outerStrokeLinecap:"outerStrokeLinecap",innerStrokeColor:"innerStrokeColor",innerStrokeWidth:"innerStrokeWidth",titleFormat:"titleFormat",title:"title",titleColor:"titleColor",titleFontSize:"titleFontSize",titleFontWeight:"titleFontWeight",subtitleFormat:"subtitleFormat",subtitle:"subtitle",subtitleColor:"subtitleColor",subtitleFontSize:"subtitleFontSize",subtitleFontWeight:"subtitleFontWeight",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",animation:"animation",animateTitle:"animateTitle",animateSubtitle:"animateSubtitle",animationDuration:"animationDuration",showTitle:"showTitle",showSubtitle:"showSubtitle",showUnits:"showUnits",showImage:"showImage",showBackground:"showBackground",showInnerStroke:"showInnerStroke",clockwise:"clockwise",responsive:"responsive",startFromZero:"startFromZero",showZeroOuterStroke:"showZeroOuterStroke",lazy:"lazy",templateOptions:["options","templateOptions"]},outputs:{onClick:"onClick"},features:[t.TTD],decls:1,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMid meet",3,"click"],[4,"ngIf"],["alignment-baseline","baseline",4,"ngIf"],["preserveAspectRatio","none",4,"ngIf"],["offset","5%"],["offset","95%"],["alignment-baseline","baseline"],[4,"ngFor","ngForOf"],["preserveAspectRatio","none"]],template:function(r,e){1&r&&t.YNc(0,bEe,9,11,"svg",0),2&r&&t.Q6J("ngIf",e.svg)},dependencies:[ge.sg,ge.O5],encapsulation:2});var Bw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:n,providers:[{provide:jN,useValue:e}]}}}]),n}();Bw.\u0275fac=function(r){return new(r||Bw)},Bw.\u0275mod=t.oAB({type:Bw}),Bw.\u0275inj=t.cJS({imports:[ge.ez]});var GN=function(){function n(r){(0,H.Z)(this,n),this.fileOver=new t.vpe,this.onFileDrop=new t.vpe,this.element=r}return(0,B.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"onDrop",value:function(e){var i,o=this._getTransfer(e);if(o){var a=this.getOptions(),s=this.getFilters();this._preventAndStop(e),a&&(null===(i=this.uploader)||void 0===i||i.addToQueue(o.files,a,s)),this.fileOver.emit(!1),this.onFileDrop.emit(o.files)}}},{key:"onDragOver",value:function(e){var i=this._getTransfer(e);!this._haveFiles(i.types)||(i.dropEffect="copy",this._preventAndStop(e),this.fileOver.emit(!0))}},{key:"onDragLeave",value:function(e){this.element&&e.currentTarget===this.element[0]||(this._preventAndStop(e),this.fileOver.emit(!1))}},{key:"_getTransfer",value:function(e){return e.dataTransfer?e.dataTransfer:e.originalEvent.dataTransfer}},{key:"_preventAndStop",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"_haveFiles",value:function(e){return!!e&&(e.indexOf?-1!==e.indexOf("Files"):!!e.contains&&e.contains("Files"))}}]),n}();GN.\u0275fac=function(r){return new(r||GN)(t.Y36(t.SBq))},GN.\u0275dir=t.lG2({type:GN,selectors:[["","ng2FileDrop",""]],hostBindings:function(r,e){1&r&&t.NdJ("drop",function(o){return e.onDrop(o)})("dragover",function(o){return e.onDragOver(o)})("dragleave",function(o){return e.onDragLeave(o)})},inputs:{uploader:"uploader"},outputs:{fileOver:"fileOver",onFileDrop:"onFileDrop"}});var yG=function(){function n(r){(0,H.Z)(this,n),this.rawFile=r;var e=r instanceof HTMLInputElement?r.value:r,i="string"==typeof e?"FakePath":"Object";this["_createFrom".concat(i)](e)}return(0,B.Z)(n,[{key:"_createFromFakePath",value:function(e){this.lastModifiedDate=void 0,this.size=void 0,this.type="like/".concat(e.slice(e.lastIndexOf(".")+1).toLowerCase()),this.name=e.slice(e.lastIndexOf("/")+e.lastIndexOf("\\")+2)}},{key:"_createFromObject",value:function(e){this.size=e.size,this.type=e.type,this.name=e.name}}]),n}(),CEe=function(){function n(r,e,i){(0,H.Z)(this,n),this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=r,this.some=e,this.options=i,this.file=new yG(e),this._file=e,r.options&&(this.method=r.options.method||"POST",this.alias=r.options.itemAlias||"file"),this.url=r.options.url}return(0,B.Z)(n,[{key:"upload",value:function(){try{this.uploader.uploadItem(this)}catch(e){this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}},{key:"cancel",value:function(){this.uploader.cancelItem(this)}},{key:"remove",value:function(){this.uploader.removeFromQueue(this)}},{key:"onBeforeUpload",value:function(){}},{key:"onBuildForm",value:function(e){return{form:e}}},{key:"onProgress",value:function(e){return{progress:e}}},{key:"onSuccess",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onError",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onCancel",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"onComplete",value:function(e,i,o){return{response:e,status:i,headers:o}}},{key:"_onBeforeUpload",value:function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}},{key:"_onBuildForm",value:function(e){this.onBuildForm(e)}},{key:"_onProgress",value:function(e){this.progress=e,this.onProgress(e)}},{key:"_onSuccess",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(e,i,o)}},{key:"_onError",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(e,i,o)}},{key:"_onCancel",value:function(e,i,o){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(e,i,o)}},{key:"_onComplete",value:function(e,i,o){this.onComplete(e,i,o),this.uploader.options.removeAfterUpload&&this.remove()}},{key:"_prepareToUploading",value:function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}]),n}(),Fw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"getMimeClass",value:function(e){var i,o,a,s="application";return(null==e?void 0:e.type)&&-1!==this.mime_psd.indexOf(e.type)||null!==(i=null==e?void 0:e.type)&&void 0!==i&&i.match("image.*")?s="image":null!==(o=null==e?void 0:e.type)&&void 0!==o&&o.match("video.*")?s="video":null!==(a=null==e?void 0:e.type)&&void 0!==a&&a.match("audio.*")?s="audio":"application/pdf"===(null==e?void 0:e.type)?s="pdf":(null==e?void 0:e.type)&&-1!==this.mime_compress.indexOf(e.type)?s="compress":(null==e?void 0:e.type)&&-1!==this.mime_doc.indexOf(e.type)?s="doc":(null==e?void 0:e.type)&&-1!==this.mime_xsl.indexOf(e.type)?s="xls":(null==e?void 0:e.type)&&-1!==this.mime_ppt.indexOf(e.type)&&(s="ppt"),"application"===s&&(null==e?void 0:e.name)&&(s=this.fileTypeDetection(e.name)),s}},{key:"fileTypeDetection",value:function(e){var i={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},o=e.split(".");if(o.length<2)return"application";var a=o[o.length-1].toLowerCase();return void 0===i[a]?"application":i[a]}}]),n}();Fw.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],Fw.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],Fw.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],Fw.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"],Fw.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"];var wg=function(){function n(r){(0,H.Z)(this,n),this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:function(i){return i._file},formatDataFunctionIsAsync:!1,url:""},this.setOptions(r),this.response=new t.vpe}return(0,B.Z)(n,[{key:"setOptions",value:function(e){var i,o,a,s;this.options=Object.assign(this.options,e),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,null===(i=this.options.filters)||void 0===i||i.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&(null===(o=this.options.filters)||void 0===o||o.unshift({name:"fileSize",fn:this._fileSizeFilter})),this.options.allowedFileType&&(null===(a=this.options.filters)||void 0===a||a.unshift({name:"fileType",fn:this._fileTypeFilter})),this.options.allowedMimeType&&(null===(s=this.options.filters)||void 0===s||s.unshift({name:"mimeType",fn:this._mimeTypeFilter}));for(var l=0;l<this.queue.length;l++)this.queue[l].url=this.options.url}},{key:"addToQueue",value:function(e,i,o){var d,a=this,s=i,l=[],u=(0,xn.Z)(e);try{for(u.s();!(d=u.n()).done;){var h=d.value;l.push(h)}}catch(z){u.e(z)}finally{u.f()}var g=this._getFilters(o),C=this.queue.length,Z=[];l.map(function(z){s||(s=a.options);var q=new yG(z);if(a._isValidFile(q,g,s)){var re=new CEe(a,z,s);Z.push(re),a.queue.push(re),a._onAfterAddingFile(re)}else if(a._failFilterIndex){var ae=g[a._failFilterIndex];a._onWhenAddingFileFailed(q,ae,s)}}),this.queue.length!==C&&(this._onAfterAddingAll(Z),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 wEe(n){return File&&n instanceof File}(e)}},{key:"isFileLikeObject",value:function(e){return e instanceof yG}},{key:"getIndexOfItem",value:function(e){return"number"==typeof e?e:this.queue.indexOf(e)}},{key:"getNotUploadedItems",value:function(){return this.queue.filter(function(e){return!e.isUploaded})}},{key:"getReadyItems",value:function(){return this.queue.filter(function(e){return e.isReady&&!e.isUploading}).sort(function(e,i){return e.index-i.index})}},{key:"onAfterAddingAll",value:function(e){return{fileItems:e}}},{key:"onBuildItemForm",value:function(e,i){return{fileItem:e,form:i}}},{key:"onAfterAddingFile",value:function(e){return{fileItem:e}}},{key:"onWhenAddingFileFailed",value:function(e,i,o){return{item:e,filter:i,options:o}}},{key:"onBeforeUploadItem",value:function(e){return{fileItem:e}}},{key:"onProgressItem",value:function(e,i){return{fileItem:e,progress:i}}},{key:"onProgressAll",value:function(e){return{progress:e}}},{key:"onSuccessItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onErrorItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCancelItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteItem",value:function(e,i,o,a){return{item:e,response:i,status:o,headers:a}}},{key:"onCompleteAll",value:function(){}},{key:"_mimeTypeFilter",value:function(e){var i;return!((null==e?void 0:e.type)&&this.options.allowedMimeType&&-1===(null===(i=this.options.allowedMimeType)||void 0===i?void 0:i.indexOf(e.type)))}},{key:"_fileSizeFilter",value:function(e){return!(this.options.maxFileSize&&e.size>this.options.maxFileSize)}},{key:"_fileTypeFilter",value:function(e){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(Fw.getMimeClass(e)))}},{key:"_onErrorItem",value:function(e,i,o,a){e._onError(i,o,a),this.onErrorItem(e,i,o,a)}},{key:"_onCompleteItem",value:function(e,i,o,a){e._onComplete(i,o,a),this.onCompleteItem(e,i,o,a);var s=this.getReadyItems()[0];this.isUploading=!1,s?s.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}},{key:"_headersGetter",value:function(e){return function(i){return i?e[i.toLowerCase()]||void 0:e}}},{key:"_xhrTransport",value:function(e){var s,i=this,o=this,a=e._xhr=new XMLHttpRequest;if(this._onBeforeUploadItem(e),"number"!=typeof e._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(s=this.options.formatDataFunction(e));else{s=new FormData,this._onBuildItemForm(e,s);var l=function(){return s.append(e.alias,e._file,e.file.name)};this.options.parametersBeforeFiles||l(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(function(z){var q,re,ae=null===(q=i.options.additionalParameter)||void 0===q?void 0:q[z];"string"==typeof ae&&ae.indexOf("{{file_name}}")>=0&&(null===(re=e.file)||void 0===re?void 0:re.name)&&(ae=ae.replace("{{file_name}}",e.file.name)),s.append(z,ae)}),l&&this.options.parametersBeforeFiles&&l()}if(a.upload.onprogress=function(z){var q=Math.round(z.lengthComputable?100*z.loaded/z.total:0);i._onProgressItem(e,q)},a.onload=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z),re=i._isSuccessCode(a.status)?"Success":"Error",ae="_on".concat(re,"Item");i[ae](e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onerror=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onErrorItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},a.onabort=function(){var z=i._parseHeaders(a.getAllResponseHeaders()),q=i._transformResponse(a.response,z);i._onCancelItem(e,q,a.status,z),i._onCompleteItem(e,q,a.status,z)},e.method&&e.url&&a.open(e.method,e.url,!0),a.withCredentials=e.withCredentials,this.options.headers){var d,u=(0,xn.Z)(this.options.headers);try{for(u.s();!(d=u.n()).done;){var h=d.value;a.setRequestHeader(h.name,h.value)}}catch(z){u.e(z)}finally{u.f()}}if(e.headers.length){var C,g=(0,xn.Z)(e.headers);try{for(g.s();!(C=g.n()).done;){var Z=C.value;a.setRequestHeader(Z.name,Z.value)}}catch(z){g.e(z)}finally{g.f()}}this.authToken&&this.authTokenHeader&&a.setRequestHeader(this.authTokenHeader,this.authToken),a.onreadystatechange=function(){a.readyState==XMLHttpRequest.DONE&&o.response.emit(a.responseText)},this.options.formatDataFunctionIsAsync?s.then(function(z){return a.send(JSON.stringify(z))}):a.send(s),this._render()}},{key:"_getTotalProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.options.removeAfterUpload)return e;var i=this.getNotUploadedItems().length,o=i?this.queue.length-i:this.queue.length,a=100/this.queue.length,s=e*a/100;return Math.round(o*a+s)}},{key:"_getFilters",value:function(e){var i,o,a;if(!e)return(null===(i=this.options)||void 0===i?void 0:i.filters)||[];if(Array.isArray(e))return e;if("string"==typeof e){var s=e.match(/[^\s,]+/g);return(null===(o=this.options)||void 0===o?void 0:o.filters)||[].filter(function(l){return-1!==(null==s?void 0:s.indexOf(l.name))})}return(null===(a=this.options)||void 0===a?void 0:a.filters)||[]}},{key:"_render",value:function(){}},{key:"_queueLimitFilter",value:function(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}},{key:"_isValidFile",value:function(e,i,o){var a=this;return this._failFilterIndex=-1,!i.length||i.every(function(s){return a._failFilterIndex&&a._failFilterIndex++,s.fn.call(a,e,o)})}},{key:"_isSuccessCode",value:function(e){return e>=200&&e<300||304===e}},{key:"_transformResponse",value:function(e,i){return e}},{key:"_parseHeaders",value:function(e){var o,a,s,i={};return e&&e.split("\n").map(function(l){s=l.indexOf(":"),o=l.slice(0,s).trim().toLowerCase(),a=l.slice(s+1).trim(),o&&(i[o]=i[o]?i[o]+", "+a:a)}),i}},{key:"_onWhenAddingFileFailed",value:function(e,i,o){this.onWhenAddingFileFailed(e,i,o)}},{key:"_onAfterAddingFile",value:function(e){this.onAfterAddingFile(e)}},{key:"_onAfterAddingAll",value:function(e){this.onAfterAddingAll(e)}},{key:"_onBeforeUploadItem",value:function(e){e._onBeforeUpload(),this.onBeforeUploadItem(e)}},{key:"_onBuildItemForm",value:function(e,i){e._onBuildForm(i),this.onBuildItemForm(e,i)}},{key:"_onProgressItem",value:function(e,i){var o=this._getTotalProgress(i);this.progress=o,e._onProgress(i),this.onProgressItem(e,i),this.onProgressAll(o),this._render()}},{key:"_onSuccessItem",value:function(e,i,o,a){e._onSuccess(i,o,a),this.onSuccessItem(e,i,o,a)}},{key:"_onCancelItem",value:function(e,i,o,a){e._onCancel(i,o,a),this.onCancelItem(e,i,o,a)}}]),n}(),Mp=function(){function n(r){(0,H.Z)(this,n),this.onFileSelected=new t.vpe,this.element=r}return(0,B.Z)(n,[{key:"getOptions",value:function(){var e;return null===(e=this.uploader)||void 0===e?void 0:e.options}},{key:"getFilters",value:function(){return""}},{key:"isEmptyAfterSelection",value:function(){return!!this.element.nativeElement.attributes.multiple}},{key:"onChange",value:function(){var e,i=this.element.nativeElement.files,o=this.getOptions(),a=this.getFilters();null===(e=this.uploader)||void 0===e||e.addToQueue(i,o,a),this.onFileSelected.emit(i),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}}]),n}();Mp.\u0275fac=function(r){return new(r||Mp)(t.Y36(t.SBq))},Mp.\u0275dir=t.lG2({type:Mp,selectors:[["","ng2FileSelect",""]],hostBindings:function(r,e){1&r&&t.NdJ("change",function(){return e.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}});var Uw=(0,B.Z)(function n(){(0,H.Z)(this,n)});Uw.\u0275fac=function(r){return new(r||Uw)},Uw.\u0275mod=t.oAB({type:Uw}),Uw.\u0275inj=t.cJS({imports:[ge.ez]});var bG=function(){function n(){}return Object.defineProperty(n.prototype,"child_process",{get:function(){return this._child_process||(this._child_process=window.require?window.require("child_process"):null),this._child_process},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isElectronApp",{get:function(){return!!window.navigator.userAgent.match(/Electron/)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProcess",{get:function(){return this.child_process?this.child_process:null},enumerable:!0,configurable:!0}),n}(),kEe=function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i])};return function(r,e){function i(){this.constructor=r}n(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zne=function(n){function r(){return n.call(this)||this}return kEe(r,n),r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=t.Yz7({token:r,factory:function(i){return r.\u0275fac(i)}}),r}(bG);Zne.ctorParameters=function(){return[]};var Nne=function(){function n(){}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[{provide:bG,useClass:Zne}]}),n}();Nne.ctorParameters=function(){return[]};var al=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"electron",get:function(){return this._electron?this._electron:window&&window.require?(this._electron=window.require("electron"),this._electron):null}},{key:"isElectronApp",get:function(){return!!window.navigator.userAgent.match(/Electron/)}},{key:"isMacOS",get:function(){return this.isElectronApp&&"darwin"===process.platform}},{key:"isWindows",get:function(){return this.isElectronApp&&"win32"===process.platform}},{key:"isLinux",get:function(){return this.isElectronApp&&"linux"===process.platform}},{key:"isX86",get:function(){return this.isElectronApp&&"ia32"===process.arch}},{key:"isX64",get:function(){return this.isElectronApp&&"x64"===process.arch}},{key:"isArm",get:function(){return this.isElectronApp&&"arm"===process.arch}},{key:"desktopCapturer",get:function(){return this.electron?this.electron.desktopCapturer:null}},{key:"ipcRenderer",get:function(){return this.electron?this.electron.ipcRenderer:null}},{key:"remote",get:function(){return this.electron?this.electron.remote:null}},{key:"webFrame",get:function(){return this.electron?this.electron.webFrame:null}},{key:"clipboard",get:function(){return this.electron?this.electron.clipboard:null}},{key:"crashReporter",get:function(){return this.electron?this.electron.crashReporter:null}},{key:"process",get:function(){return this.remote?this.remote.process:null}},{key:"nativeImage",get:function(){return this.electron?this.electron.nativeImage:null}},{key:"screen",get:function(){return this.electron?this.remote.screen:null}},{key:"shell",get:function(){return this.electron?this.electron.shell:null}}]),n}(),E0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.call(this)}return(0,B.Z)(e)}(al);E0.\u0275fac=function(r){return new(r||E0)},E0.\u0275prov=t.Yz7({token:E0,factory:E0.\u0275fac}),E0.ctorParameters=function(){return[]};var Hw=(0,B.Z)(function n(){(0,H.Z)(this,n)});Hw.\u0275fac=function(r){return new(r||Hw)},Hw.\u0275mod=t.oAB({type:Hw}),Hw.\u0275inj=t.cJS({providers:[{provide:al,useClass:E0}]});var _D=m(7326),jw=m(4942),TEe=m(4450),MEe=m(1961),gD=m(8514),SEe=m(4843),x0=m(1737),D0=m(8896),Bne=m(1762),kg=m(7224),A0=m(1406),Xc=m(7221),Fne=m(2014),Une=m(8127),EEe=m(4290),Hne=m(7314),zN=m(537),jne=m(4327),WN=m(9146),li="primary",vD=Symbol("RouteTitle"),xEe=function(){function n(r){(0,H.Z)(this,n),this.params=r||{}}return(0,B.Z)(n,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i[0]:i}return null}},{key:"getAll",value:function(e){if(this.has(e)){var i=this.params[e];return Array.isArray(i)?i:[i]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),n}();function Gw(n){return new xEe(n)}function DEe(n,r,e){var i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<n.length))return null;for(var o={},a=0;a<i.length;a++){var s=i[a],l=n[a];if(s.startsWith(":"))o[s.substring(1)]=l;else if(s!==l.path)return null}return{consumed:n.slice(0,i.length),posParams:o}}function Sp(n,r){var e=n?Object.keys(n):void 0,i=r?Object.keys(r):void 0;if(!e||!i||e.length!=i.length)return!1;for(var o,a=0;a<e.length;a++)if(!Gne(n[o=e[a]],r[o]))return!1;return!0}function Gne(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;var e=(0,pn.Z)(n).sort(),i=(0,pn.Z)(r).sort();return e.every(function(o,a){return i[a]===o})}return n===r}function zne(n){return Array.prototype.concat.apply([],n)}function Wne(n){return n.length>0?n[n.length-1]:null}function sl(n,r){for(var e in n)n.hasOwnProperty(e)&&r(n[e],e)}function Tg(n){return(0,t.CqO)(n)?n:(0,t.QGY)(n)?(0,Zs.D)(Promise.resolve(n)):(0,qn.of)(n)}var IEe={exact:function Kne(n,r,e){if(!I0(n.segments,r.segments)||!VN(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(var i in r.children)if(!n.children[i]||!Kne(n.children[i],r.children[i],e))return!1;return!0},subset:qne},Vne={exact:function PEe(n,r){return Sp(n,r)},subset:function REe(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(function(e){return Gne(n[e],r[e])})},ignored:function(){return!0}};function Yne(n,r,e){return IEe[e.paths](n.root,r.root,e.matrixParams)&&Vne[e.queryParams](n.queryParams,r.queryParams)&&!("exact"===e.fragment&&n.fragment!==r.fragment)}function qne(n,r,e){return Jne(n,r,r.segments,e)}function Jne(n,r,e,i){if(n.segments.length>e.length){var o=n.segments.slice(0,e.length);return!(!I0(o,e)||r.hasChildren()||!VN(o,e,i))}if(n.segments.length===e.length){if(!I0(n.segments,e)||!VN(n.segments,e,i))return!1;for(var a in r.children)if(!n.children[a]||!qne(n.children[a],r.children[a],i))return!1;return!0}var s=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(I0(n.segments,s)&&VN(n.segments,s,i)&&n.children[li])&&Jne(n.children[li],r,l,i)}function VN(n,r,e){return r.every(function(i,o){return Vne[e](n[o].parameters,i.parameters)})}var O0=function(){function n(r,e,i){(0,H.Z)(this,n),this.root=r,this.queryParams=e,this.fragment=i}return(0,B.Z)(n,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return NEe.serialize(this)}}]),n}(),pi=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this.segments=r,this.children=e,this.parent=null,sl(e,function(o,a){return o.parent=i})}return(0,B.Z)(n,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return YN(this)}}]),n}(),yD=function(){function n(r,e){(0,H.Z)(this,n),this.path=r,this.parameters=e}return(0,B.Z)(n,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Gw(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return $ne(this)}}]),n}();function I0(n,r){return n.length===r.length&&n.every(function(e,i){return e.path===r[i].path})}var zw=(0,B.Z)(function n(){(0,H.Z)(this,n)});zw.\u0275fac=function(r){return new(r||zw)},zw.\u0275prov=t.Yz7({token:zw,factory:function(){return new wG},providedIn:"root"});var wG=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"parse",value:function(e){var i=new VEe(e);return new O0(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}},{key:"serialize",value:function(e){var i="/".concat(bD(e.root,!0)),o=function UEe(n){var r=Object.keys(n).map(function(e){var i=n[e];return Array.isArray(i)?i.map(function(o){return"".concat(KN(e),"=").concat(KN(o))}).join("&"):"".concat(KN(e),"=").concat(KN(i))}).filter(function(e){return!!e});return r.length?"?".concat(r.join("&")):""}(e.queryParams),a="string"==typeof e.fragment?"#".concat(function BEe(n){return encodeURI(n)}(e.fragment)):"";return"".concat(i).concat(o).concat(a)}}]),n}(),NEe=new wG;function YN(n){return n.segments.map(function(r){return $ne(r)}).join("/")}function bD(n,r){if(!n.hasChildren())return YN(n);if(r){var e=n.children[li]?bD(n.children[li],!1):"",i=[];return sl(n.children,function(a,s){s!==li&&i.push("".concat(s,":").concat(bD(a,!1)))}),i.length>0?"".concat(e,"(").concat(i.join("//"),")"):e}var o=function ZEe(n,r){var e=[];return sl(n.children,function(i,o){o===li&&(e=e.concat(r(i,o)))}),sl(n.children,function(i,o){o!==li&&(e=e.concat(r(i,o)))}),e}(n,function(a,s){return s===li?[bD(n.children[li],!1)]:["".concat(s,":").concat(bD(a,!1))]});return 1===Object.keys(n.children).length&&null!=n.children[li]?"".concat(YN(n),"/").concat(o[0]):"".concat(YN(n),"/(").concat(o.join("//"),")")}function Qne(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function KN(n){return Qne(n).replace(/%3B/gi,";")}function kG(n){return Qne(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qN(n){return decodeURIComponent(n)}function Xne(n){return qN(n.replace(/\+/g,"%20"))}function $ne(n){return"".concat(kG(n.path)).concat(function FEe(n){return Object.keys(n).map(function(r){return";".concat(kG(r),"=").concat(kG(n[r]))}).join("")}(n.parameters))}var HEe=/^[^\/()?;=#]+/;function JN(n){var r=n.match(HEe);return r?r[0]:""}var jEe=/^[^=?&#]+/;var zEe=/^[^&#]+/;var VEe=function(){function n(r){(0,H.Z)(this,n),this.url=r,this.remaining=r}return(0,B.Z)(n,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pi([],{}):new pi([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));var o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(o[li]=new pi(e,i)),o}},{key:"parseSegment",value:function(){var e=JN(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new t.vHH(4009,false);return this.capture(e),new yD(qN(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var i=JN(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=JN(this.remaining);a&&(o=a,this.capture(o))}e[qN(i)]=qN(o)}}},{key:"parseQueryParam",value:function(e){var i=function GEe(n){var r=n.match(jEe);return r?r[0]:""}(this.remaining);if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function WEe(n){var r=n.match(zEe);return r?r[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var s=Xne(i),l=Xne(o);if(e.hasOwnProperty(s)){var u=e[s];Array.isArray(u)||(u=[u],e[s]=u),u.push(l)}else e[s]=l}}},{key:"parseParens",value:function(e){var i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var o=JN(this.remaining),a=this.remaining[o.length];if("/"!==a&&")"!==a&&";"!==a)throw new t.vHH(4010,false);var s=void 0;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=li);var l=this.parseChildren();i[s]=1===Object.keys(l).length?l[li]:new pi([],l),this.consumeOptional("//")}return i}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new t.vHH(4011,false)}}]),n}();function TG(n){return n.segments.length>0?new pi([],(0,jw.Z)({},li,n)):n}function QN(n){for(var r={},e=0,i=Object.keys(n.children);e<i.length;e++){var o=i[e],s=QN(n.children[o]);(s.segments.length>0||s.hasChildren())&&(r[o]=s)}return function YEe(n){if(1===n.numberOfChildren&&n.children[li]){var r=n.children[li];return new pi(n.segments.concat(r.segments),r.children)}return n}(new pi(n.segments,r))}function P0(n){return n instanceof O0}function JEe(n,r,e,i,o){var a;if(0===e.length)return Ww(r.root,r.root,r.root,i,o);var l=nre(e);if(l.toRoot())return Ww(r.root,r.root,new pi([],{}),i,o);var d=function u(g){var C,Z=function XEe(n,r,e,i){if(n.isAbsolute)return new Vw(r.root,!0,0);if(-1===i){var o=e===r.root;return new Vw(e,o,0)}var a=CD(n.commands[0])?0:1;return rre(e,i+a,n.numberOfDoubleDots)}(l,r,null===(C=n.snapshot)||void 0===C?void 0:C._urlSegment,g),z=Z.processChildren?kD(Z.segmentGroup,Z.index,l.commands):SG(Z.segmentGroup,Z.index,l.commands);return Ww(r.root,Z.segmentGroup,z,i,o)}(null===(a=n.snapshot)||void 0===a?void 0:a._lastPathIndex);return d}function CD(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function wD(n){return"object"==typeof n&&null!=n&&n.outlets}function Ww(n,r,e,i,o){var a={};i&&sl(i,function(u,d){a[d]=Array.isArray(u)?u.map(function(h){return"".concat(h)}):"".concat(u)});var l=TG(QN(n===r?e:ere(n,r,e)));return new O0(l,a,o)}function ere(n,r,e){var i={};return sl(n.children,function(o,a){i[a]=o===r?e:ere(o,r,e)}),new pi(n.segments,i)}var tre=function(){function n(r,e,i){if((0,H.Z)(this,n),this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&CD(i[0]))throw new t.vHH(4003,false);var o=i.find(wD);if(o&&o!==Wne(i))throw new t.vHH(4004,false)}return(0,B.Z)(n,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),n}();function nre(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new tre(!0,0,n);var r=0,e=!1,i=n.reduce(function(o,a,s){if("object"==typeof a&&null!=a){if(a.outlets){var l={};return sl(a.outlets,function(u,d){l[d]="string"==typeof u?u.split("/"):u}),[].concat((0,pn.Z)(o),[{outlets:l}])}if(a.segmentPath)return[].concat((0,pn.Z)(o),[a.segmentPath])}return"string"!=typeof a?[].concat((0,pn.Z)(o),[a]):0===s?(a.split("/").forEach(function(u,d){0==d&&"."===u||(0==d&&""===u?e=!0:".."===u?r++:""!=u&&o.push(u))}),o):[].concat((0,pn.Z)(o),[a])},[]);return new tre(e,r,i)}var Vw=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.segmentGroup=r,this.processChildren=e,this.index=i});function rre(n,r,e){for(var i=n,o=r,a=e;a>o;){if(a-=o,!(i=i.parent))throw new t.vHH(4005,false);o=i.segments.length}return new Vw(i,!1,o-a)}function SG(n,r,e){if(n||(n=new pi([],{})),0===n.segments.length&&n.hasChildren())return kD(n,r,e);var i=function exe(n,r,e){for(var i=0,o=r,a={match:!1,pathIndex:0,commandIndex:0};o<n.segments.length;){if(i>=e.length)return a;var s=n.segments[o],l=e[i];if(wD(l))break;var u="".concat(l),d=i<e.length-1?e[i+1]:null;if(o>0&&void 0===u)break;if(u&&d&&"object"==typeof d&&void 0===d.outlets){if(!ore(u,d,s))return a;i+=2}else{if(!ore(u,{},s))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(n,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){var a=new pi(n.segments.slice(0,i.pathIndex),{});return a.children[li]=new pi(n.segments.slice(i.pathIndex),n.children),kD(a,0,o)}return i.match&&0===o.length?new pi(n.segments,{}):i.match&&!n.hasChildren()?EG(n,r,e):i.match?kD(n,0,o):EG(n,r,e)}function kD(n,r,e){if(0===e.length)return new pi(n.segments,{});var i=function $Ee(n){return wD(n[0])?n[0].outlets:(0,jw.Z)({},li,n)}(e),o={};return sl(i,function(a,s){"string"==typeof a&&(a=[a]),null!==a&&(o[s]=SG(n.children[s],r,a))}),sl(n.children,function(a,s){void 0===i[s]&&(o[s]=a)}),new pi(n.segments,o)}function EG(n,r,e){for(var i=n.segments.slice(0,r),o=0;o<e.length;){var a=e[o];if(wD(a)){var s=txe(a.outlets);return new pi(i,s)}if(0===o&&CD(e[0])){var l=n.segments[r];i.push(new yD(l.path,ire(e[0]))),o++}else{var u=wD(a)?a.outlets[li]:"".concat(a),d=o<e.length-1?e[o+1]:null;u&&d&&CD(d)?(i.push(new yD(u,ire(d))),o+=2):(i.push(new yD(u,{})),o++)}}return new pi(i,{})}function txe(n){var r={};return sl(n,function(e,i){"string"==typeof e&&(e=[e]),null!==e&&(r[i]=EG(new pi([],{}),0,e))}),r}function ire(n){var r={};return sl(n,function(e,i){return r[i]="".concat(e)}),r}function ore(n,r,e){return n==e.path&&Sp(r,e.parameters)}var lm=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.id=r,this.url=e}),XN=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,H.Z)(this,e),(a=r.call(this,i,o)).type=0,a.navigationTrigger=s,a.restoredState=l,a}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),af=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).urlAfterRedirects=a,s.type=1,s}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(lm),TD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).reason=a,l.code=s,l.type=2,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(lm),xG=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).error=a,l.target=s,l.type=3,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(lm),nxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=4,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),rxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=7,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),ixe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this,i,o)).urlAfterRedirects=a,u.state=s,u.shouldActivate=l,u.type=8,u}return(0,B.Z)(e,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),e}(lm),oxe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=5,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),axe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o)).urlAfterRedirects=a,l.state=s,l.type=6,l}return(0,B.Z)(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(lm),sxe=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.type=9}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),n}(),lxe=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.type=10}return(0,B.Z)(n,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),n}(),uxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=11}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationStart(path: '".concat(e,"')")}}]),n}(),cxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=12}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ChildActivationEnd(path: '".concat(e,"')")}}]),n}(),dxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=13}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationStart(path: '".concat(e,"')")}}]),n}(),fxe=function(){function n(r){(0,H.Z)(this,n),this.snapshot=r,this.type=14}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"";return"ActivationEnd(path: '".concat(e,"')")}}]),n}(),are=function(){function n(r,e,i){(0,H.Z)(this,n),this.routerEvent=r,this.position=e,this.anchor=i,this.type=15}return(0,B.Z)(n,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),n}();var sre=function(){function n(r){(0,H.Z)(this,n),this._root=r}return(0,B.Z)(n,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}},{key:"children",value:function(e){var i=DG(e,this._root);return i?i.children.map(function(o){return o.value}):[]}},{key:"firstChild",value:function(e){var i=DG(e,this._root);return i&&i.children.length>0?i.children[0].value:null}},{key:"siblings",value:function(e){var i=AG(e,this._root);return i.length<2?[]:i[i.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==e})}},{key:"pathFromRoot",value:function(e){return AG(e,this._root).map(function(i){return i.value})}}]),n}();function DG(n,r){if(n===r.value)return r;var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=DG(n,i.value);if(a)return a}}catch(s){e.e(s)}finally{e.f()}return null}function AG(n,r){if(n===r.value)return[r];var i,e=(0,xn.Z)(r.children);try{for(e.s();!(i=e.n()).done;){var a=AG(n,i.value);if(a.length)return a.unshift(r),a}}catch(s){e.e(s)}finally{e.f()}return[]}var um=function(){function n(r,e){(0,H.Z)(this,n),this.value=r,this.children=e}return(0,B.Z)(n,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),n}();function Yw(n){var r={};return n&&n.children.forEach(function(e){return r[e.value.outlet]=e}),r}var lre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,i)).snapshot=o,OG((0,_D.Z)(a),i),a}return(0,B.Z)(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(sre);function ure(n,r){var e=function hxe(n,r){var s=new $N([],{},{},"",{},li,r,null,n.root,-1,{});return new dre("",new um(s,[]))}(n,r),i=new to.X([new yD("",{})]),o=new to.X({}),a=new to.X({}),s=new to.X({}),l=new to.X(""),u=new pr(i,o,s,l,a,li,r,e.root);return u.snapshot=e.root,new lre(new um(u,[]),e)}var pr=function(){function n(r,e,i,o,a,s,l,u){var d,h;(0,H.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null!==(h=null===(d=this.data)||void 0===d?void 0:d.pipe((0,$n.U)(function(g){return g[vD]})))&&void 0!==h?h:(0,qn.of)(void 0),this._futureSnapshot=u}return(0,B.Z)(n,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe((0,$n.U)(function(e){return Gw(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,$n.U)(function(e){return Gw(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),n}();function cre(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",e=n.pathFromRoot,i=0;if("always"!==r)for(i=e.length-1;i>=1;){var o=e[i],a=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return mxe(e.slice(i))}function mxe(n){return n.reduce(function(r,e){var i;return{params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),r.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}var $N=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z;(0,H.Z)(this,n),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=s,this.component=l,this.title=null===(Z=this.data)||void 0===Z?void 0:Z[vD],this.routeConfig=u,this._urlSegment=d,this._lastPathIndex=h,this._correctedLastPathIndex=null!=C?C:h,this._resolve=g}return(0,B.Z)(n,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Gw(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Gw(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(o){return o.toString()}).join("/"),i=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(i,"')")}}]),n}(),dre=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this,o)).url=i,OG((0,_D.Z)(a),o),a}return(0,B.Z)(e,[{key:"toString",value:function(){return fre(this._root)}}]),e}(sre);function OG(n,r){r.value._routerState=n,r.children.forEach(function(e){return OG(n,e)})}function fre(n){var r=n.children.length>0?" { ".concat(n.children.map(fre).join(", ")," } "):"";return"".concat(n.value).concat(r)}function IG(n){if(n.snapshot){var r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Sp(r.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),r.fragment!==e.fragment&&n.fragment.next(e.fragment),Sp(r.params,e.params)||n.params.next(e.params),function AEe(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;++e)if(!Sp(n[e],r[e]))return!1;return!0}(r.url,e.url)||n.url.next(e.url),Sp(r.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function PG(n,r){var e=Sp(n.params,r.params)&&function LEe(n,r){return I0(n,r)&&n.every(function(e,i){return Sp(e.parameters,r[i].parameters)})}(n.url,r.url),i=!n.parent!=!r.parent;return e&&!i&&(!n.parent||PG(n.parent,r.parent))}function MD(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){var i=e.value;i._futureSnapshot=r.value;var o=function gxe(n,r,e){return r.children.map(function(i){var a,o=(0,xn.Z)(e.children);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(n.shouldReuseRoute(i.value,s.value.snapshot))return MD(n,i,s)}}catch(l){o.e(l)}finally{o.f()}return MD(n,i)})}(n,r,e);return new um(i,o)}if(n.shouldAttach(r.value)){var a=n.retrieve(r.value);if(null!==a){var s=a.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(function(d){return MD(n,d)}),s}}var l=function vxe(n){return new pr(new to.X(n.url),new to.X(n.params),new to.X(n.queryParams),new to.X(n.fragment),new to.X(n.data),n.outlet,n.component,n)}(r.value),u=r.children.map(function(d){return MD(n,d)});return new um(l,u)}var RG="ngNavigationCancelingError";function pre(n,r){var e=P0(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=e.redirectTo,o=e.navigationBehaviorOptions,a=hre(!1,0,r);return a.url=i,a.navigationBehaviorOptions=o,a}function hre(n,r,e){var i=new Error("NavigationCancelingError: "+(n||""));return i[RG]=!0,i.cancellationCode=r,e&&(i.url=e),i}function mre(n){return _re(n)&&P0(n.url)}function _re(n){return n&&n[RG]}var yxe=(0,B.Z)(function n(){(0,H.Z)(this,n),this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ep,this.attachRef=null}),Ep=function(){function n(){(0,H.Z)(this,n),this.contexts=new Map}return(0,B.Z)(n,[{key:"onChildOutletCreated",value:function(e,i){var o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}},{key:"onChildOutletDestroyed",value:function(e){var i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var i=this.getContext(e);return i||(i=new yxe,this.contexts.set(e,i)),i}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),n}();Ep.\u0275fac=function(r){return new(r||Ep)},Ep.\u0275prov=t.Yz7({token:Ep,factory:Ep.\u0275fac,providedIn:"root"});var eB=!1,cm=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.parentContexts=r,this.location=e,this.changeDetector=o,this.environmentInjector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=i||li,r.onChildOutletCreated(this.name,this)}return(0,B.Z)(n,[{key:"ngOnDestroy",value:function(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new t.vHH(4012,eB);return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new t.vHH(4012,eB);return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new t.vHH(4012,eB);this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}},{key:"attach",value:function(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,i){if(this.isActivated)throw new t.vHH(4013,eB);this._activatedRoute=e;var o=this.location,s=e._futureSnapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new bxe(e,l,o.injector);if(i&&function Cxe(n){return!!n.resolveComponentFactory}(i)){var d=i.resolveComponentFactory(s);this.activated=o.createComponent(d,o.length,u)}else{var h=null!=i?i:this.environmentInjector;this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:h})}this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),n}();cm.\u0275fac=function(r){return new(r||cm)(t.Y36(Ep),t.Y36(t.s_b),t.$8M("name"),t.Y36(t.sBO),t.Y36(t.lqb))},cm.\u0275dir=t.lG2({type:cm,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0});var bxe=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.childContexts=e,this.parent=i}return(0,B.Z)(n,[{key:"get",value:function(e,i){return e===pr?this.route:e===Ep?this.childContexts:this.parent.get(e,i)}}]),n}();var R0=(0,B.Z)(function n(){(0,H.Z)(this,n)});function gre(n,r){var e;return n.providers&&!n._injector&&(n._injector=(0,t.MMx)(n.providers,r,"Route: ".concat(n.path))),null!==(e=n._injector)&&void 0!==e?e:r}function ZG(n){var r=n.children&&n.children.map(ZG),e=r?Object.assign(Object.assign({},n),{children:r}):Object.assign({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==li&&(e.component=R0),e}function $c(n){return n.outlet||li}function vre(n,r){var e=n.filter(function(i){return $c(i)===r});return e.push.apply(e,(0,pn.Z)(n.filter(function(i){return $c(i)!==r}))),e}function SD(n){var r;if(!n)return null;if(null!==(r=n.routeConfig)&&void 0!==r&&r._injector)return n.routeConfig._injector;for(var e=n.parent;e;e=e.parent){var i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}R0.\u0275fac=function(r){return new(r||R0)},R0.\u0275cmp=t.Xpm({type:R0,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"router-outlet")},dependencies:[cm],encapsulation:2});var Sxe=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o}return(0,B.Z)(n,[{key:"activate",value:function(e){var i=this.futureState._root,o=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,o,e),IG(this.futureState.root),this.activateChildRoutes(i,o,e)}},{key:"deactivateChildRoutes",value:function(e,i,o){var a=this,s=Yw(i);e.children.forEach(function(l){var u=l.value.outlet;a.deactivateRoutes(l,s[u],o),delete s[u]}),sl(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=Yw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}if(o&&o.outlet){var h=o.outlet.detach(),g=o.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:g})}}},{key:"deactivateRouteAndOutlet",value:function(e,i){for(var o=i.getContext(e.value.outlet),a=o&&e.value.component?o.children:i,s=Yw(e),l=0,u=Object.keys(s);l<u.length;l++){var d=u[l];this.deactivateRouteAndItsChildren(s[d],a)}o&&o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated(),o.attachRef=null,o.resolver=null,o.route=null)}},{key:"activateChildRoutes",value:function(e,i,o){var a=this,s=Yw(i);e.children.forEach(function(l){a.activateRoutes(l,s[l.value.outlet],o),a.forwardEvent(new fxe(l.value.snapshot))}),e.children.length&&this.forwardEvent(new cxe(e.value.snapshot))}},{key:"activateRoutes",value:function(e,i,o){var a,s=e.value,l=i?i.value:null;if(IG(s),s===l)if(s.component){var u=o.getOrCreateContext(s.outlet);this.activateChildRoutes(e,i,u.children)}else this.activateChildRoutes(e,i,o);else if(s.component){var d=o.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){var h=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),d.children.onOutletReAttached(h.contexts),d.attachRef=h.componentRef,d.route=h.route.value,d.outlet&&d.outlet.attach(h.componentRef,h.route.value),IG(h.route.value),this.activateChildRoutes(e,null,d.children)}else{var g=SD(s.snapshot),C=null!==(a=null==g?void 0:g.get(t._Vd))&&void 0!==a?a:null;d.attachRef=null,d.route=s,d.resolver=C,d.injector=g,d.outlet&&d.outlet.activateWith(s,d.injector),this.activateChildRoutes(e,null,d.children)}}else this.activateChildRoutes(e,null,o)}}]),n}(),yre=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.path=r,this.route=this.path[this.path.length-1]}),tB=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.component=r,this.route=e});function Exe(n,r,e){var i=n._root;return ED(i,r?r._root:null,e,[i.value])}function Kw(n,r){var e=Symbol(),i=r.get(n,e);return i===e?"function"!=typeof n||(0,t.Z0I)(n)?r.get(n):n:i}function ED(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Yw(r);return n.children.forEach(function(s){Dxe(s,a[s.value.outlet],e,i.concat([s.value]),o),delete a[s.value.outlet]}),sl(a,function(s,l){return xD(s,e.getContext(l),o)}),o}function Dxe(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=n.value,s=r?r.value:null,l=e?e.getContext(n.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var u=Axe(s,a,a.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new yre(i)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?ED(n,r,l?l.children:null,i,o):ED(n,r,e,i,o),u&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new tB(l.outlet.component,s))}else s&&xD(r,l,o),o.canActivateChecks.push(new yre(i)),a.component?ED(n,null,l?l.children:null,i,o):ED(n,null,e,i,o);return o}function Axe(n,r,e){if("function"==typeof e)return e(n,r);switch(e){case"pathParamsChange":return!I0(n.url,r.url);case"pathParamsOrQueryParamsChange":return!I0(n.url,r.url)||!Sp(n.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!PG(n,r)||!Sp(n.queryParams,r.queryParams);default:return!PG(n,r)}}function xD(n,r,e){var i=Yw(n),o=n.value;sl(i,function(a,s){o.component?xD(a,r?r.children.getContext(s):null,e):xD(a,r,e)}),o.component&&r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new tB(r.outlet.component,o)):e.canDeactivateChecks.push(new tB(null,o))}function DD(n){return"function"==typeof n}function NG(n){return n instanceof TEe.K||"EmptyError"===(null==n?void 0:n.name)}var nB=Symbol("INITIAL_VALUE");function qw(){return(0,bo.w)(function(n){return(0,j1.aj)(n.map(function(r){return r.pipe((0,Ei.q)(1),(0,eo.O)(nB))})).pipe((0,$n.U)(function(r){var i,e=(0,xn.Z)(r);try{for(e.s();!(i=e.n()).done;){var o=i.value;if(!0!==o){if(o===nB)return nB;if(!1===o||o instanceof O0)return o}}}catch(a){e.e(a)}finally{e.f()}return!0}),(0,ti.h)(function(r){return r!==nB}),(0,Ei.q)(1))})}function Bxe(n,r){return(0,ys.zg)(function(e){var i=e.targetSnapshot,o=e.currentSnapshot,a=e.guards,s=a.canActivateChecks,l=a.canDeactivateChecks;return 0===l.length&&0===s.length?(0,qn.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Fxe(n,r,e,i){return(0,Zs.D)(n).pipe((0,ys.zg)(function(o){return function Wxe(n,r,e,i,o){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return(0,qn.of)(!0);var s=a.map(function(l){var u,d=null!==(u=SD(r))&&void 0!==u?u:o,h=Kw(l,d);return Tg(function Lxe(n){return n&&DD(n.canDeactivate)}(h)?h.canDeactivate(n,r,e,i):d.runInContext(function(){return h(n,r,e,i)})).pipe((0,kg.P)())});return(0,qn.of)(s).pipe(qw())}(o.component,o.route,e,r,i)}),(0,kg.P)(function(o){return!0!==o},!0))}(l,i,o,n).pipe((0,ys.zg)(function(u){return u&&function Oxe(n){return"boolean"==typeof n}(u)?function Uxe(n,r,e,i){return(0,Zs.D)(r).pipe((0,A0.b)(function(o){return(0,MEe.z)(function jxe(n,r){return null!==n&&r&&r(new uxe(n)),(0,qn.of)(!0)}(o.route.parent,i),function Hxe(n,r){return null!==n&&r&&r(new dxe(n)),(0,qn.of)(!0)}(o.route,i),function zxe(n,r,e){var i=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(function(s){return function xxe(n){var r=n.routeConfig?n.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:n,guards:r}:null}(s)}).filter(function(s){return null!==s}),a=o.map(function(s){return(0,gD.P)(function(){var l=s.guards.map(function(u){var d,h=null!==(d=SD(s.node))&&void 0!==d?d:e,g=Kw(u,h);return Tg(function Rxe(n){return n&&DD(n.canActivateChild)}(g)?g.canActivateChild(i,n):h.runInContext(function(){return g(i,n)})).pipe((0,kg.P)())});return(0,qn.of)(l).pipe(qw())})});return(0,qn.of)(a).pipe(qw())}(n,o.path,e),function Gxe(n,r,e){var i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return(0,qn.of)(!0);var o=i.map(function(a){return(0,gD.P)(function(){var s,l=null!==(s=SD(r))&&void 0!==s?s:e,u=Kw(a,l);return Tg(function Pxe(n){return n&&DD(n.canActivate)}(u)?u.canActivate(r,n):l.runInContext(function(){return u(r,n)})).pipe((0,kg.P)())})});return(0,qn.of)(o).pipe(qw())}(n,o.route,e))}),(0,kg.P)(function(o){return!0!==o},!0))}(i,s,n,r):(0,qn.of)(u)}),(0,$n.U)(function(u){return Object.assign(Object.assign({},e),{guardsResult:u})}))})}function Vxe(n,r,e,i){var o=r.canLoad;if(void 0===o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=Kw(s,n);return Tg(function Ixe(n){return n&&DD(n.canLoad)}(l)?l.canLoad(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(qw(),bre(i))}function bre(n){return(0,SEe.z)((0,pa.b)(function(r){if(P0(r))throw pre(0,r)}),(0,$n.U)(function(r){return!0===r}))}function Yxe(n,r,e,i){var o=r.canMatch;if(!o||0===o.length)return(0,qn.of)(!0);var a=o.map(function(s){var l=Kw(s,n);return Tg(function Zxe(n){return n&&DD(n.canMatch)}(l)?l.canMatch(r,e):n.runInContext(function(){return l(r,e)}))});return(0,qn.of)(a).pipe(qw(),bre())}var BG={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cre(n,r,e,i,o){var a=FG(n,r,e);return a.matched?Yxe(i=gre(r,i),r,e).pipe((0,$n.U)(function(s){return!0===s?a:Object.assign({},BG)})):(0,qn.of)(a)}function FG(n,r,e){var i;if(""===r.path)return"full"===r.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},BG):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};var a=(r.matcher||DEe)(e,n,r);if(!a)return Object.assign({},BG);var s={};sl(a.posParams,function(u,d){s[d]=u.path});var l=a.consumed.length>0?Object.assign(Object.assign({},s),a.consumed[a.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:l,positionalParamSegments:null!==(i=a.posParams)&&void 0!==i?i:{}}}function rB(n,r,e,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(e.length>0&&Jxe(n,e,i)){var a=new pi(r,qxe(n,r,i,new pi(e,n.children)));return a._sourceSegment=n,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===e.length&&Qxe(n,e,i)){var s=new pi(n.segments,Kxe(n,r,e,i,n.children,o));return s._sourceSegment=n,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:e}}var l=new pi(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Kxe(n,r,e,i,o,a){var u,s={},l=(0,xn.Z)(i);try{for(l.s();!(u=l.n()).done;){var d=u.value;if(iB(n,e,d)&&!o[$c(d)]){var h=new pi([],{});h._sourceSegment=n,h._segmentIndexShift="legacy"===a?n.segments.length:r.length,s[$c(d)]=h}}}catch(g){l.e(g)}finally{l.f()}return Object.assign(Object.assign({},o),s)}function qxe(n,r,e,i){var o={};o[li]=i,i._sourceSegment=n,i._segmentIndexShift=r.length;var s,a=(0,xn.Z)(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(""===l.path&&$c(l)!==li){var u=new pi([],{});u._sourceSegment=n,u._segmentIndexShift=r.length,o[$c(l)]=u}}}catch(d){a.e(d)}finally{a.f()}return o}function Jxe(n,r,e){return e.some(function(i){return iB(n,r,i)&&$c(i)!==li})}function Qxe(n,r,e){return e.some(function(i){return iB(n,r,i)})}function iB(n,r,e){return(!(n.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function wre(n,r,e,i){return!!($c(n)===i||i!==li&&iB(r,e,n))&&("**"===n.path||FG(r,n,e).matched)}function kre(n,r,e){return 0===r.length&&!n.children[e]}var oB=!1,aB=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.segmentGroup=r||null}),Tre=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.urlTree=r});function AD(n){return(0,x0._)(new aB(n))}function Mre(n){return(0,x0._)(new Tre(n))}var tDe=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.injector=r,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0}return(0,B.Z)(n,[{key:"apply",value:function(){var e=this,i=rB(this.urlTree.root,[],[],this.config).segmentGroup,o=new pi(i.segments,i.children);return this.expandSegmentGroup(this.injector,this.config,o,li).pipe((0,$n.U)(function(l){return e.createUrlTree(QN(l),e.urlTree.queryParams,e.urlTree.fragment)})).pipe((0,Xc.K)(function(l){if(l instanceof Tre)return e.allowRedirects=!1,e.match(l.urlTree);throw l instanceof aB?e.noMatchError(l):l}))}},{key:"match",value:function(e){var i=this;return this.expandSegmentGroup(this.injector,this.config,e.root,li).pipe((0,$n.U)(function(s){return i.createUrlTree(QN(s),e.queryParams,e.fragment)})).pipe((0,Xc.K)(function(s){throw s instanceof aB?i.noMatchError(s):s}))}},{key:"noMatchError",value:function(e){return new t.vHH(4002,oB)}},{key:"createUrlTree",value:function(e,i,o){var a=TG(e);return new O0(a,i,o)}},{key:"expandSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.expandChildren(e,i,o).pipe((0,$n.U)(function(s){return new pi([],s)})):this.expandSegment(e,o,i,o.segments,a,!0)}},{key:"expandChildren",value:function(e,i,o){for(var a=this,s=[],l=0,u=Object.keys(o.children);l<u.length;l++){var d=u[l];"primary"===d?s.unshift(d):s.push(d)}return(0,Zs.D)(s).pipe((0,A0.b)(function(h){var g=o.children[h],C=vre(i,h);return a.expandSegmentGroup(e,C,g,h).pipe((0,$n.U)(function(Z){return{segment:Z,outlet:h}}))}),(0,Fne.R)(function(h,g){return h[g.outlet]=g.segment,h},{}),(0,Une.Z)())}},{key:"expandSegment",value:function(e,i,o,a,s,l){var u=this;return(0,Zs.D)(o).pipe((0,A0.b)(function(d){return u.expandSegmentAgainstRoute(e,i,o,d,a,s,l).pipe((0,Xc.K)(function(g){if(g instanceof aB)return(0,qn.of)(null);throw g}))}),(0,kg.P)(function(d){return!!d}),(0,Xc.K)(function(d,h){if(NG(d))return kre(i,a,s)?(0,qn.of)(new pi([],{})):AD(i);throw d}))}},{key:"expandSegmentAgainstRoute",value:function(e,i,o,a,s,l,u){return wre(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):AD(i):AD(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("/")?Mre(l):this.lineralizeSegments(o,l).pipe((0,ys.zg)(function(u){var d=new pi(u,{});return s.expandSegment(e,d,i,u,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,i,o,a,s,l){var u=this,d=FG(i,a,s),h=d.matched,g=d.consumedSegments,C=d.remainingSegments,Z=d.positionalParamSegments;if(!h)return AD(i);var z=this.applyRedirectCommands(g,a.redirectTo,Z);return a.redirectTo.startsWith("/")?Mre(z):this.lineralizeSegments(a,z).pipe((0,ys.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;return"**"===o.path?(e=gre(o,e),o.loadChildren?(o._loadedRoutes?(0,qn.of)({routes:o._loadedRoutes,injector:o._loadedInjector}):this.configLoader.loadChildren(e,o)).pipe((0,$n.U)(function(d){return o._loadedRoutes=d.routes,o._loadedInjector=d.injector,new pi(a,{})})):(0,qn.of)(new pi(a,{}))):Cre(i,o,a,e,this.urlSerializer).pipe((0,bo.w)(function(d){var Z,h=d.matched,g=d.consumedSegments,C=d.remainingSegments;return h?(e=null!==(Z=o._injector)&&void 0!==Z?Z:e,l.getChildConfig(e,o,a).pipe((0,ys.zg)(function(q){var re,ae=null!==(re=q.injector)&&void 0!==re?re:e,Se=q.routes,Ce=rB(i,g,C,Se),Ee=Ce.segmentGroup,Ve=Ce.slicedSegments,ut=new pi(Ee.segments,Ee.children);if(0===Ve.length&&ut.hasChildren())return l.expandChildren(ae,Se,ut).pipe((0,$n.U)(function(bt){return new pi(g,bt)}));if(0===Se.length&&0===Ve.length)return(0,qn.of)(new pi(g,{}));var ot=$c(o)===s;return l.expandSegment(ae,ut,Se,Ve,ot?li:s,!0).pipe((0,$n.U)(function(bt){return new pi(g.concat(bt.segments),bt.children)}))}))):AD(i)}))}},{key:"getChildConfig",value:function(e,i,o){var a=this;return i.children?(0,qn.of)({routes:i.children,injector:e}):i.loadChildren?void 0!==i._loadedRoutes?(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):Vxe(e,i,o,this.urlSerializer).pipe((0,ys.zg)(function(s){return s?a.configLoader.loadChildren(e,i).pipe((0,pa.b)(function(l){i._loadedRoutes=l.routes,i._loadedInjector=l.injector})):function $xe(n){return(0,x0._)(hre(oB,3))}()})):(0,qn.of)({routes:[],injector:e})}},{key:"lineralizeSegments",value:function(e,i){for(var o=[],a=i.root;;){if(o=o.concat(a.segments),0===a.numberOfChildren)return(0,qn.of)(o);if(a.numberOfChildren>1||!a.children[li])return e.redirectTo,(0,x0._)(new t.vHH(4e3,oB));a=a.children[li]}}},{key:"applyRedirectCommands",value:function(e,i,o){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,o)}},{key:"applyRedirectCreateUrlTree",value:function(e,i,o,a){var s=this.createSegmentGroup(e,i.root,o,a);return new O0(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}},{key:"createQueryParams",value:function(e,i){var o={};return sl(e,function(a,s){if("string"==typeof a&&a.startsWith(":")){var u=a.substring(1);o[s]=i[u]}else o[s]=a}),o}},{key:"createSegmentGroup",value:function(e,i,o,a){var s=this,l=this.createSegments(e,i.segments,o,a),u={};return sl(i.children,function(d,h){u[h]=s.createSegmentGroup(e,d,o,a)}),new pi(l,u)}},{key:"createSegments",value:function(e,i,o,a){var s=this;return i.map(function(l){return l.path.startsWith(":")?s.findPosParam(e,l,a):s.findOrReturn(l,o)})}},{key:"findPosParam",value:function(e,i,o){var a=o[i.path.substring(1)];if(!a)throw new t.vHH(4001,oB);return a}},{key:"findOrReturn",value:function(e,i){var s,o=0,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.path===e.path)return i.splice(o),l;o++}}catch(u){a.e(u)}finally{a.f()}return e}}]),n}();function nDe(n,r,e,i){return(0,bo.w)(function(o){return function eDe(n,r,e,i,o){return new tDe(n,r,e,i,o).apply()}(n,r,e,o.extractedUrl,i).pipe((0,$n.U)(function(a){return Object.assign(Object.assign({},o),{urlAfterRedirects:a})}))})}var rDe=(0,B.Z)(function n(){(0,H.Z)(this,n)});function iDe(n){return new $i.y(function(r){return r.error(n)})}var aDe=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.injector=r,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=a,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=l,this.urlSerializer=u}return(0,B.Z)(n,[{key:"recognize",value:function(){var e=this,i=rB(this.urlTree.root,[],[],this.config.filter(function(o){return void 0===o.redirectTo}),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,li).pipe((0,$n.U)(function(o){if(null===o)return null;var a=new $N([],Object.freeze({}),Object.freeze(Object.assign({},e.urlTree.queryParams)),e.urlTree.fragment,{},li,e.rootComponentType,null,e.urlTree.root,-1,{}),s=new um(a,o),l=new dre(e.url,s);return e.inheritParamsAndData(l._root),l}))}},{key:"inheritParamsAndData",value:function(e){var i=this,o=e.value,a=cre(o,this.paramsInheritanceStrategy);o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),e.children.forEach(function(s){return i.inheritParamsAndData(s)})}},{key:"processSegmentGroup",value:function(e,i,o,a){return 0===o.segments.length&&o.hasChildren()?this.processChildren(e,i,o):this.processSegment(e,i,o,o.segments,a)}},{key:"processChildren",value:function(e,i,o){var a=this;return(0,Zs.D)(Object.keys(o.children)).pipe((0,A0.b)(function(s){var l=o.children[s],u=vre(i,s);return a.processSegmentGroup(e,u,l,s)}),(0,Fne.R)(function(s,l){return s&&l?(s.push.apply(s,(0,pn.Z)(l)),s):null}),(0,EEe.o)(function(s){return null!==s}),(0,Hne.d)(null),(0,Une.Z)(),(0,$n.U)(function(s){if(null===s)return null;var l=Sre(s);return function sDe(n){n.sort(function(r,e){return r.value.outlet===li?-1:e.value.outlet===li?1:r.value.outlet.localeCompare(e.value.outlet)})}(l),l}))}},{key:"processSegment",value:function(e,i,o,a,s){var l=this;return(0,Zs.D)(i).pipe((0,A0.b)(function(u){var d;return l.processSegmentAgainstRoute(null!==(d=u._injector)&&void 0!==d?d:e,u,o,a,s)}),(0,kg.P)(function(u){return!!u}),(0,Xc.K)(function(u){if(NG(u))return kre(o,a,s)?(0,qn.of)([]):(0,qn.of)(null);throw u}))}},{key:"processSegmentAgainstRoute",value:function(e,i,o,a,s){var u,d,h,l=this;if(i.redirectTo||!wre(i,o,a,s))return(0,qn.of)(null);if("**"===i.path){var g=a.length>0?Wne(a).parameters:{},C=xre(o)+a.length,Z=new $N(a,g,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Are(i),$c(i),null!==(d=null!==(u=i.component)&&void 0!==u?u:i._loadedComponent)&&void 0!==d?d:null,i,Ere(o),C,Ore(i),C);h=(0,qn.of)({snapshot:Z,consumedSegments:[],remainingSegments:[]})}else h=Cre(o,i,a,e,this.urlSerializer).pipe((0,$n.U)(function(z){var Ce,Ee,q=z.matched,re=z.consumedSegments,ae=z.remainingSegments,Se=z.parameters;if(!q)return null;var Ve=xre(o)+re.length;return{snapshot:new $N(re,Se,Object.freeze(Object.assign({},l.urlTree.queryParams)),l.urlTree.fragment,Are(i),$c(i),null!==(Ee=null!==(Ce=i.component)&&void 0!==Ce?Ce:i._loadedComponent)&&void 0!==Ee?Ee:null,i,Ere(o),Ve,Ore(i),Ve),consumedSegments:re,remainingSegments:ae}}));return h.pipe((0,bo.w)(function(z){var q,re;if(null===z)return(0,qn.of)(null);var ae=z.snapshot,Se=z.consumedSegments,Ce=z.remainingSegments;e=null!==(q=i._injector)&&void 0!==q?q:e;var Ee=null!==(re=i._loadedInjector)&&void 0!==re?re:e,Ve=function lDe(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(i),ut=rB(o,Se,Ce,Ve.filter(function(bt){return void 0===bt.redirectTo}),l.relativeLinkResolution),Ae=ut.segmentGroup,ot=ut.slicedSegments;if(0===ot.length&&Ae.hasChildren())return l.processChildren(Ee,Ve,Ae).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}));if(0===Ve.length&&0===ot.length)return(0,qn.of)([new um(ae,[])]);var ht=$c(i)===s;return l.processSegment(Ee,Ve,Ae,ot,ht?li:s).pipe((0,$n.U)(function(bt){return null===bt?null:[new um(ae,bt)]}))}))}}]),n}();function Sre(n){var o,r=[],e=new Set,i=(0,xn.Z)(n);try{var a=function(){var g=o.value;if(!function uDe(n){var r=n.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(g))return r.push(g),1;var Z,C=r.find(function(z){return g.value.routeConfig===z.value.routeConfig});void 0!==C?((Z=C.children).push.apply(Z,(0,pn.Z)(g.children)),e.add(C)):r.push(g)};for(i.s();!(o=i.n()).done;)a()}catch(h){i.e(h)}finally{i.f()}var l,s=(0,xn.Z)(e);try{for(s.s();!(l=s.n()).done;){var u=l.value,d=Sre(u.children);r.push(new um(u.value,d))}}catch(h){s.e(h)}finally{s.f()}return r.filter(function(h){return!e.has(h)})}function Ere(n){for(var r=n;r._sourceSegment;)r=r._sourceSegment;return r}function xre(n){for(var r,e,i=n,o=null!==(r=i._segmentIndexShift)&&void 0!==r?r:0;i._sourceSegment;)o+=null!==(e=(i=i._sourceSegment)._segmentIndexShift)&&void 0!==e?e:0;return o-1}function Are(n){return n.data||{}}function Ore(n){return n.resolve||{}}function dDe(n,r,e,i,o,a){return(0,ys.zg)(function(s){return function oDe(n,r,e,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"emptyOnly",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"legacy";return new aDe(n,r,e,i,o,s,l,a).recognize().pipe((0,bo.w)(function(u){return null===u?iDe(new rDe):(0,qn.of)(u)}))}(n,r,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,a).pipe((0,$n.U)(function(l){return Object.assign(Object.assign({},s),{targetSnapshot:l})}))})}function fDe(n,r){return(0,ys.zg)(function(e){var i=e.targetSnapshot,o=e.guards.canActivateChecks;if(!o.length)return(0,qn.of)(e);var a=0;return(0,Zs.D)(o).pipe((0,A0.b)(function(s){return function pDe(n,r,e,i){var o=n.routeConfig,a=n._resolve;return void 0!==(null==o?void 0:o.title)&&!Ire(o)&&(a[vD]=o.title),function hDe(n,r,e,i){var o=function mDe(n){return[].concat((0,pn.Z)(Object.keys(n)),(0,pn.Z)(Object.getOwnPropertySymbols(n)))}(n);if(0===o.length)return(0,qn.of)({});var a={};return(0,Zs.D)(o).pipe((0,ys.zg)(function(s){return function _De(n,r,e,i){var o,a=null!==(o=SD(r))&&void 0!==o?o:i,s=Kw(n,a);return Tg(s.resolve?s.resolve(r,e):a.runInContext(function(){return s(r,e)}))}(n[s],r,e,i).pipe((0,kg.P)(),(0,pa.b)(function(l){a[s]=l}))}),(0,w7.h)(1),(0,x1.h)(a),(0,Xc.K)(function(s){return NG(s)?D0.E:(0,x0._)(s)}))}(a,n,r,i).pipe((0,$n.U)(function(s){return n._resolvedData=s,n.data=cre(n,e).resolve,o&&Ire(o)&&(n.data[vD]=o.title),null}))}(s.route,i,n,r)}),(0,pa.b)(function(){return a++}),(0,w7.h)(1),(0,ys.zg)(function(s){return a===o.length?(0,qn.of)(e):D0.E}))})}function Ire(n){return"string"==typeof n.title||null===n.title}function UG(n){return(0,bo.w)(function(r){var e=n(r);return e?(0,Zs.D)(e).pipe((0,$n.U)(function(){return r})):(0,qn.of)(r)})}var Jw=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"buildTitle",value:function(e){for(var i,o,a=e.root;void 0!==a;)o=null!==(i=this.getResolvedTitleForRoute(a))&&void 0!==i?i:o,a=a.children.find(function(s){return s.outlet===li});return o}},{key:"getResolvedTitleForRoute",value:function(e){return e.data[vD]}}]),n}();Jw.\u0275fac=function(r){return new(r||Jw)},Jw.\u0275prov=t.Yz7({token:Jw,factory:function(){return(0,t.f3M)(L0)},providedIn:"root"});var L0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).title=i,o}return(0,B.Z)(e,[{key:"updateTitle",value:function(o){var a=this.buildTitle(o);void 0!==a&&this.title.setTitle(a)}}]),e}(Jw);L0.\u0275fac=function(r){return new(r||L0)(t.LFG(Hr))},L0.\u0275prov=t.Yz7({token:L0,factory:L0.\u0275fac,providedIn:"root"});var gDe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),vDe=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,i){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,i){return e.routeConfig===i.routeConfig}}]),n}(),yDe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(vDe),lB=new t.OlP("",{providedIn:"root",factory:function(){return{}}}),HG=new t.OlP("ROUTES"),Mg=function(){function n(r,e){(0,H.Z)(this,n),this.injector=r,this.compiler=e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}return(0,B.Z)(n,[{key:"loadComponent",value:function(e){var i=this;if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,qn.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);var o=Tg(e.loadComponent()).pipe((0,pa.b)(function(s){i.onLoadEndListener&&i.onLoadEndListener(e),e._loadedComponent=s}),(0,zN.x)(function(){i.componentLoaders.delete(e)})),a=new Bne.c(o,function(){return new In.xQ}).pipe((0,jne.x)());return this.componentLoaders.set(e,a),a}},{key:"loadChildren",value:function(e,i){var o=this;if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return(0,qn.of)({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);var s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe((0,$n.U)(function(u){o.onLoadEndListener&&o.onLoadEndListener(i);var d,h;Array.isArray(u)?h=u:h=zne((d=u.create(e).injector).get(HG,[],t.XFs.Self|t.XFs.Optional));var C=h.map(ZG);return{routes:C,injector:d}}),(0,zN.x)(function(){o.childrenLoaders.delete(i)})),l=new Bne.c(s,function(){return new In.xQ}).pipe((0,jne.x)());return this.childrenLoaders.set(i,l),l}},{key:"loadModuleFactoryOrRoutes",value:function(e){var i=this;return Tg(e()).pipe((0,ys.zg)(function(o){return o instanceof t.YKP||Array.isArray(o)?(0,qn.of)(o):(0,Zs.D)(i.compiler.compileModuleAsync(o))}))}}]),n}();Mg.\u0275fac=function(r){return new(r||Mg)(t.LFG(t.zs3),t.LFG(t.Sil))},Mg.\u0275prov=t.Yz7({token:Mg,factory:Mg.\u0275fac,providedIn:"root"});var CDe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),wDe=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,i){return e}}]),n}(),uB=!1;function kDe(n){throw n}function TDe(n,r,e){return r.parse("/")}var MDe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SDe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rre(){var n,r,e=(0,t.f3M)(zw),i=(0,t.f3M)(Ep),o=(0,t.f3M)(ge.Ye),a=(0,t.f3M)(t.zs3),s=(0,t.f3M)(t.Sil),l=null!==(n=(0,t.f3M)(HG,{optional:!0}))&&void 0!==n?n:[],u=null!==(r=(0,t.f3M)(lB,{optional:!0}))&&void 0!==r?r:{},d=(0,t.f3M)(L0),h=(0,t.f3M)(Jw,{optional:!0}),g=(0,t.f3M)(CDe,{optional:!0}),C=(0,t.f3M)(gDe,{optional:!0}),Z=new ur(null,e,i,o,a,s,zne(l));return g&&(Z.urlHandlingStrategy=g),C&&(Z.routeReuseStrategy=C),Z.titleStrategy=null!=h?h:d,function EDe(n,r){n.errorHandler&&(r.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(r.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(r.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(r.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(r.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(r.canceledNavigationResolution=n.canceledNavigationResolution)}(u,Z),Z}var ur=function(){function n(r,e,i,o,a,s,l){var u=this;(0,H.Z)(this,n),this.rootComponentType=r,this.urlSerializer=e,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new In.xQ,this.errorHandler=kDe,this.malformedUriErrorHandler=TDe,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=function(){return(0,qn.of)(void 0)},this.urlHandlingStrategy=new wDe,this.routeReuseStrategy=new yDe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace";this.configLoader=a.get(Mg),this.configLoader.onLoadEndListener=function(Z){return u.triggerEvent(new lxe(Z))},this.configLoader.onLoadStartListener=function(Z){return u.triggerEvent(new sxe(Z))},this.ngModule=a.get(t.h0i),this.console=a.get(t.c2e);var g=a.get(t.R0b);this.isNgZoneEnabled=g instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function OEe(){return new O0(new pi([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ure(this.currentUrlTree,this.rootComponentType),this.transitions=new to.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return(0,B.Z)(n,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var i=this,o=this.events;return e.pipe((0,ti.h)(function(a){return 0!==a.id}),(0,$n.U)(function(a){return Object.assign(Object.assign({},a),{extractedUrl:i.urlHandlingStrategy.extract(a.rawUrl)})}),(0,bo.w)(function(a){var s=!1,l=!1;return(0,qn.of)(a).pipe((0,pa.b)(function(u){i.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:i.lastSuccessfulNavigation?Object.assign(Object.assign({},i.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,bo.w)(function(u){var d=i.browserUrlTree.toString(),h=!i.navigated||u.extractedUrl.toString()!==d||d!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||h)&&i.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Lre(u.source)&&(i.browserUrlTree=u.extractedUrl),(0,qn.of)(u).pipe((0,bo.w)(function(Ee){var Ve=i.transitions.getValue();return o.next(new XN(Ee.id,i.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),Ve!==i.transitions.getValue()?D0.E:Promise.resolve(Ee)}),nDe(i.ngModule.injector,i.configLoader,i.urlSerializer,i.config),(0,pa.b)(function(Ee){i.currentNavigation=Object.assign(Object.assign({},i.currentNavigation),{finalUrl:Ee.urlAfterRedirects}),a.urlAfterRedirects=Ee.urlAfterRedirects}),dDe(i.ngModule.injector,i.rootComponentType,i.config,i.urlSerializer,i.paramsInheritanceStrategy,i.relativeLinkResolution),(0,pa.b)(function(Ee){if(a.targetSnapshot=Ee.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var Ve=i.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);i.setBrowserUrl(Ve,Ee)}i.browserUrlTree=Ee.urlAfterRedirects}var ut=new nxe(Ee.id,i.serializeUrl(Ee.extractedUrl),i.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);o.next(ut)}));if(h&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){var Z=u.id,z=u.extractedUrl,q=u.source,re=u.restoredState,ae=u.extras,Se=new XN(Z,i.serializeUrl(z),q,re);o.next(Se);var Ce=ure(z,i.rootComponentType).snapshot;return a=Object.assign(Object.assign({},u),{targetSnapshot:Ce,urlAfterRedirects:z,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}),(0,qn.of)(a)}return i.rawUrlTree=u.rawUrl,u.resolve(null),D0.E}),(0,pa.b)(function(u){var d=new rxe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);i.triggerEvent(d)}),(0,$n.U)(function(u){return a=Object.assign(Object.assign({},u),{guards:Exe(u.targetSnapshot,u.currentSnapshot,i.rootContexts)})}),Bxe(i.ngModule.injector,function(u){return i.triggerEvent(u)}),(0,pa.b)(function(u){if(a.guardsResult=u.guardsResult,P0(u.guardsResult))throw pre(i.urlSerializer,u.guardsResult);var d=new ixe(u.id,i.serializeUrl(u.extractedUrl),i.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);i.triggerEvent(d)}),(0,ti.h)(function(u){return!!u.guardsResult||(i.restoreHistory(u),i.cancelNavigationTransition(u,"",3),!1)}),UG(function(u){if(u.guards.canActivateChecks.length)return(0,qn.of)(u).pipe((0,pa.b)(function(d){var h=new oxe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}),(0,bo.w)(function(d){var h=!1;return(0,qn.of)(d).pipe(fDe(i.paramsInheritanceStrategy,i.ngModule.injector),(0,pa.b)({next:function(){return h=!0},complete:function(){h||(i.restoreHistory(d),i.cancelNavigationTransition(d,"",2))}}))}),(0,pa.b)(function(d){var h=new axe(d.id,i.serializeUrl(d.extractedUrl),i.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.triggerEvent(h)}))}),UG(function(u){return(0,j1.aj)(function h(g){var C,Z=[];(null===(C=g.routeConfig)||void 0===C?void 0:C.loadComponent)&&!g.routeConfig._loadedComponent&&Z.push(i.configLoader.loadComponent(g.routeConfig).pipe((0,pa.b)(function(ae){g.component=ae}),(0,$n.U)(function(){})));var q,z=(0,xn.Z)(g.children);try{for(z.s();!(q=z.n()).done;){var re=q.value;Z.push.apply(Z,(0,pn.Z)(h(re)))}}catch(ae){z.e(ae)}finally{z.f()}return Z}(u.targetSnapshot.root)).pipe((0,Hne.d)(),(0,Ei.q)(1))}),UG(function(){return i.afterPreactivation()}),(0,$n.U)(function(u){var d=function _xe(n,r,e){var i=MD(n,r._root,e?e._root:void 0);return new lre(i,r)}(i.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return a=Object.assign(Object.assign({},u),{targetRouterState:d})}),(0,pa.b)(function(u){i.currentUrlTree=u.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),i.routerState=u.targetRouterState,"deferred"===i.urlUpdateStrategy&&(u.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,u),i.browserUrlTree=u.urlAfterRedirects)}),function(r,e,i){return(0,$n.U)(function(o){return new Sxe(e,o.targetRouterState,o.currentRouterState,i).activate(r),o})}(i.rootContexts,i.routeReuseStrategy,function(u){return i.triggerEvent(u)}),(0,pa.b)({next:function(){s=!0},complete:function(){s=!0}}),(0,zN.x)(function(){var u;if(!s&&!l){i.cancelNavigationTransition(a,"",1)}(null===(u=i.currentNavigation)||void 0===u?void 0:u.id)===a.id&&(i.currentNavigation=null)}),(0,Xc.K)(function(u){var d;if(l=!0,_re(u)){mre(u)||(i.navigated=!0,i.restoreHistory(a,!0));var h=new TD(a.id,i.serializeUrl(a.extractedUrl),u.message,u.cancellationCode);if(o.next(h),mre(u)){var g=i.urlHandlingStrategy.merge(u.url,i.rawUrlTree),C={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||Lre(a.source)};i.scheduleNavigation(g,"imperative",null,C,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{i.restoreHistory(a,!0);var Z=new xG(a.id,i.serializeUrl(a.extractedUrl),u,null!==(d=a.targetSnapshot)&&void 0!==d?d:void 0);o.next(Z);try{a.resolve(i.errorHandler(u))}catch(z){a.reject(z)}}return D0.E}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(i){var o="popstate"===i.type?"popstate":"hashchange";"popstate"===o&&setTimeout(function(){var a,s={replaceUrl:!0},l=null!==(a=i.state)&&void 0!==a&&a.navigationId?i.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var d=e.parseUrl(i.url);e.scheduleNavigation(d,o,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){this.config=e.map(ZG),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.relativeTo,a=i.queryParams,s=i.fragment,l=i.queryParamsHandling,u=i.preserveFragment,d=o||this.routerState.root,h=u?this.currentUrlTree.fragment:s,g=null;switch(l){case"merge":g=Object.assign(Object.assign({},this.currentUrlTree.queryParams),a);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=a||null}return null!==g&&(g=this.removeEmptyProps(g)),JEe(d,this.currentUrlTree,e,g,null!=h?h:null)}},{key:"navigateByUrl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},o=P0(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,"imperative",null,i)}},{key:"navigate",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return xDe(e),this.navigateByUrl(this.createUrlTree(e,i),i)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}},{key:"isActive",value:function(e,i){var o;if(o=!0===i?Object.assign({},MDe):!1===i?Object.assign({},SDe):i,P0(e))return Yne(this.currentUrlTree,e,o);var a=this.parseUrl(e);return Yne(this.currentUrlTree,a,o)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(i,o){var a=e[o];return null!=a&&(i[o]=a),i},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(i){var o;e.navigated=!0,e.lastSuccessfulId=i.id,e.currentPageId=i.targetPageId,e.events.next(new af(i.id,e.serializeUrl(i.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,null===(o=e.titleStrategy)||void 0===o||o.updateTitle(e.routerState.snapshot),i.resolve(!0)},function(i){e.console.warn("Unhandled Navigation Error: ".concat(i))})}},{key:"scheduleNavigation",value:function(e,i,o,a,s){var l,u,d,h,g;if(this.disposed)return Promise.resolve(!1);s?(d=s.resolve,h=s.reject,g=s.promise):g=new Promise(function(q,re){d=q,h=re});var Z,C=++this.navigationId;"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),Z=o&&o.\u0275routerPageId?o.\u0275routerPageId:a.replaceUrl||a.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):Z=0;return this.setTransition({id:C,targetPageId:Z,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:a,resolve:d,reject:h,promise:g,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),g.catch(function(q){return Promise.reject(q)})}},{key:"setBrowserUrl",value:function(e,i){var o=this.urlSerializer.serialize(e),a=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",a):this.location.go(o,"",a)}},{key:"restoreHistory",value:function(e){var o,a,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,i,o){var a=new TD(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":i}:{navigationId:e}}}]),n}();function xDe(n){for(var r=0;r<n.length;r++){var e=n[r];if(null==e)throw new t.vHH(4008,uB)}}function Lre(n){return"imperative"!==n}ur.\u0275fac=function(r){t.$Z()},ur.\u0275prov=t.Yz7({token:ur,factory:function(){return Rre()},providedIn:"root"});var Wo=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.router=r,this.route=e,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new In.xQ,this.setTabIndexIfNotOnNativeEl("0")}return(0,B.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"setTabIndexIfNotOnNativeEl",value:function(e){if(null==this.tabIndexAttribute){var i=this.renderer,o=this.el.nativeElement;null!==e?i.setAttribute(o,"tabindex",e):i.removeAttribute(o,"tabindex")}}},{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}},{key:"onClick",value:function(){if(null===this.urlTree)return!0;var e={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Wo.\u0275fac=function(r){return new(r||Wo)(t.Y36(ur),t.Y36(pr),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},Wo.\u0275dir=t.lG2({type:Wo,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var Us=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this.router=r,this.route=e,this.locationStrategy=i,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new In.xQ,this.subscription=r.events.subscribe(function(a){a instanceof af&&o.updateTargetUrlAndHref()})}return(0,B.Z)(n,[{key:"preserveFragment",get:function(){return this._preserveFragment},set:function(e){this._preserveFragment=(0,t.D6c)(e)}},{key:"skipLocationChange",get:function(){return this._skipLocationChange},set:function(e){this._skipLocationChange=(0,t.D6c)(e)}},{key:"replaceUrl",get:function(){return this._replaceUrl},set:function(e){this._replaceUrl=(0,t.D6c)(e)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,i,o,a,s){if(0!==e||i||o||a||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;var l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,l),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}},{key:"urlTree",get:function(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}]),n}();Us.\u0275fac=function(r){return new(r||Us)(t.Y36(ur),t.Y36(pr),t.Y36(ge.S$))},Us.\u0275dir=t.lG2({type:Us,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&r&&t.uIk("target",e.target)("href",e.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[t.TTD]});var Qw=function(){function n(r,e,i,o,a,s){var l=this;(0,H.Z)(this,n),this.router=r,this.element=e,this.renderer=i,this.cdr=o,this.link=a,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=r.events.subscribe(function(u){u instanceof af&&l.update()})}return(0,B.Z)(n,[{key:"ngAfterContentInit",value:function(){var e=this;(0,qn.of)(this.links.changes,this.linksWithHrefs.changes,(0,qn.of)(null)).pipe((0,WN.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,pn.Z)(this.links.toArray()),(0,pn.Z)(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(a){return!!a}).map(function(a){return a.onChanges});this.linkInputChangesSubscription=(0,Zs.D)(o).pipe((0,WN.J)()).subscribe(function(a){e.isActive!==e.isLinkActive(e.router)(a)&&e.update()})}},{key:"routerLinkActive",set:function(e){var i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(function(o){return!!o})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(function(){var i=e.hasActiveLinks();e.isActive!==i&&(e.isActive=i,e.cdr.markForCheck(),e.classes.forEach(function(o){i?e.renderer.addClass(e.element.nativeElement,o):e.renderer.removeClass(e.element.nativeElement,o)}),i&&void 0!==e.ariaCurrentWhenActive?e.renderer.setAttribute(e.element.nativeElement,"aria-current",e.ariaCurrentWhenActive.toString()):e.renderer.removeAttribute(e.element.nativeElement,"aria-current"),e.isActiveChange.emit(i))})}},{key:"isLinkActive",value:function(e){var i=function DDe(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(o){return!!o.urlTree&&e.isActive(o.urlTree,i)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),n}();Qw.\u0275fac=function(r){return new(r||Qw)(t.Y36(ur),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Wo,8),t.Y36(Us,8))},Qw.\u0275dir=t.lG2({type:Qw,selectors:[["","routerLinkActive",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Wo,5),t.Suo(i,Us,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.links=o),t.iGM(o=t.CRH())&&(e.linksWithHrefs=o))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]});var Zre=(0,B.Z)(function n(){(0,H.Z)(this,n)}),OD=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"preload",value:function(e,i){return i().pipe((0,Xc.K)(function(){return(0,qn.of)(null)}))}}]),n}();OD.\u0275fac=function(r){return new(r||OD)},OD.\u0275prov=t.Yz7({token:OD,factory:OD.\u0275fac,providedIn:"root"});var ID=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"preload",value:function(e,i){return(0,qn.of)(null)}}]),n}();ID.\u0275fac=function(r){return new(r||ID)},ID.\u0275prov=t.Yz7({token:ID,factory:ID.\u0275fac,providedIn:"root"});var Xw=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.router=r,this.injector=i,this.preloadingStrategy=o,this.loader=a}return(0,B.Z)(n,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe((0,ti.h)(function(i){return i instanceof af}),(0,A0.b)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){return this.processRoutes(this.injector,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,i){var o,a,s,d,l=[],u=(0,xn.Z)(i);try{for(u.s();!(d=u.n()).done;){var h=d.value;h.providers&&!h._injector&&(h._injector=(0,t.MMx)(h.providers,e,"Route: ".concat(h.path)));var g=null!==(o=h._injector)&&void 0!==o?o:e,C=null!==(a=h._loadedInjector)&&void 0!==a?a:g;h.loadChildren&&!h._loadedRoutes&&void 0===h.canLoad||h.loadComponent&&!h._loadedComponent?l.push(this.preloadConfig(g,h)):(h.children||h._loadedRoutes)&&l.push(this.processRoutes(C,null!==(s=h.children)&&void 0!==s?s:h._loadedRoutes))}}catch(Z){u.e(Z)}finally{u.f()}return(0,Zs.D)(l).pipe((0,WN.J)())}},{key:"preloadConfig",value:function(e,i){var o=this;return this.preloadingStrategy.preload(i,function(){var s=(i.loadChildren&&void 0===i.canLoad?o.loader.loadChildren(e,i):(0,qn.of)(null)).pipe((0,ys.zg)(function(u){var d;return null===u?(0,qn.of)(void 0):(i._loadedRoutes=u.routes,i._loadedInjector=u.injector,o.processRoutes(null!==(d=u.injector)&&void 0!==d?d:e,u.routes))}));if(i.loadComponent&&!i._loadedComponent){var l=o.loader.loadComponent(i);return(0,Zs.D)([s,l]).pipe((0,WN.J)())}return s})}}]),n}();Xw.\u0275fac=function(r){return new(r||Xw)(t.LFG(ur),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Zre),t.LFG(Mg))},Xw.\u0275prov=t.Yz7({token:Xw,factory:Xw.\u0275fac,providedIn:"root"});var jG=new t.OlP(""),$w=function(){function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,H.Z)(this,n),this.router=r,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return(0,B.Z)(n,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof XN?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=i.navigationTrigger,e.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof af&&(e.lastId=i.id,e.scheduleScrollEvent(i,e.router.parseUrl(i.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(i){i instanceof are&&(i.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,i){this.router.triggerEvent(new are(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),n}();$w.\u0275fac=function(r){t.$Z()},$w.\u0275prov=t.Yz7({token:$w,factory:$w.\u0275fac});function Nre(n){return n.routerState.root}function ek(n,r){return{"\u0275kind":n,"\u0275providers":r}}function GG(n){return[{provide:HG,multi:!0,useValue:n}]}function Bre(){var n=(0,t.f3M)(t.zs3);return function(r){var e,i,o=n.get(t.z2F);if(r===o.components[0]){var a=n.get(ur),s=n.get(Fre);1===n.get(zG)&&a.initialNavigation(),null===(e=n.get(Ure,null,t.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(i=n.get(jG,null,t.XFs.Optional))||void 0===i||i.init(),a.resetRootComponentType(o.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}}var Fre=new t.OlP("",{factory:function(){return new In.xQ}}),zG=new t.OlP("",{providedIn:"root",factory:function(){return 1}});function ADe(){return ek(2,[{provide:zG,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:function(e){var i=e.get(ge.V_,Promise.resolve()),o=!1;return function(){return i.then(function(){return new Promise(function(s){var l=e.get(ur),u=e.get(Fre);(function a(s){e.get(ur).events.pipe((0,ti.h)(function(u){return u instanceof af||u instanceof TD||u instanceof xG}),(0,$n.U)(function(u){return u instanceof af||!(!(u instanceof TD)||0!==u.code&&1!==u.code)&&null}),(0,ti.h)(function(u){return null!==u}),(0,Ei.q)(1)).subscribe(function(){s()})})(function(){s(!0),o=!0}),l.afterPreactivation=function(){return s(!0),o||u.closed?(0,qn.of)(void 0):u},l.initialNavigation()})})}}}])}var Ure=new t.OlP("");function PDe(n){return ek(0,[{provide:Ure,useExisting:Xw},{provide:Zre,useExisting:n}])}var Hre=new t.OlP("ROUTER_FORROOT_GUARD"),RDe=[ge.Ye,{provide:zw,useClass:wG},{provide:ur,useFactory:Rre},Ep,{provide:pr,useFactory:Nre,deps:[ur]},Mg];function LDe(){return new t.PXZ("Router",ur)}var Z0=function(){function n(r){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"forRoot",value:function(e,i){return{ngModule:n,providers:[RDe,[],GG(e),{provide:Hre,useFactory:FDe,deps:[[ur,new t.FiY,new t.tp0]]},{provide:lB,useValue:i||{}},null!=i&&i.useHash?{provide:ge.S$,useClass:ge.Do}:{provide:ge.S$,useClass:ge.b0},{provide:jG,useFactory:function(){var r=(0,t.f3M)(ur),e=(0,t.f3M)(ge.EM),i=(0,t.f3M)(lB);return i.scrollOffset&&e.setOffset(i.scrollOffset),new $w(r,e,i)}},null!=i&&i.preloadingStrategy?PDe(i.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:LDe},null!=i&&i.initialNavigation?UDe(i):[],[{provide:jre,useFactory:Bre},{provide:t.tb,multi:!0,useExisting:jre}]]}}},{key:"forChild",value:function(e){return{ngModule:n,providers:[GG(e)]}}}]),n}();function FDe(n){return"guarded"}function UDe(n){return["disabled"===n.initialNavigation?ek(3,[{provide:t.ip1,multi:!0,useFactory:function(){var e=(0,t.f3M)(ur);return function(){e.setUpLocationChangeListener()}}},{provide:zG,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?ADe().\u0275providers:[]]}Z0.\u0275fac=function(r){return new(r||Z0)(t.LFG(Hre,8))},Z0.\u0275mod=t.oAB({type:Z0}),Z0.\u0275inj=t.cJS({imports:[R0]});var jre=new t.OlP("");new t.GfV("14.3.0");var fB=(0,B.Z)(function n(){(0,H.Z)(this,n)}),mo=m(2437),rr=function(){function n(r){(0,H.Z)(this,n),this.httpController=r,this.controllerIds=[],this.serviceInitialized=new In.xQ,this.controllerIds=this.getcontrollerIds(),this.isServiceInitialized=!0,this.serviceInitialized.next(this.isServiceInitialized)}return(0,B.Z)(n,[{key:"getcontrollerIds",value:function(){var e=localStorage.getItem("controllerIds");return(null==e?void 0:e.length)>0?e.split(","):[]}},{key:"updatecontrollerIds",value:function(){localStorage.removeItem("controllerIds"),localStorage.setItem("controllerIds",this.controllerIds.toString())}},{key:"get",value:function(e){var i=JSON.parse(localStorage.getItem("controller-".concat(e)));return new Promise(function(a){a(i)})}},{key:"create",value:function(e){return e.id=this.controllerIds.length+1,localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),this.controllerIds.push("controller-".concat(e.id)),this.updatecontrollerIds(),new Promise(function(o){o(e)})}},{key:"update",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),localStorage.setItem("controller-".concat(e.id),JSON.stringify(e)),new Promise(function(o){o(e)})}},{key:"findAll",value:function(){var e=this;return new Promise(function(o){var a=[];e.controllerIds.forEach(function(s){var l=JSON.parse(localStorage.getItem(s));a.push(l)}),o(a)})}},{key:"delete",value:function(e){return localStorage.removeItem("controller-".concat(e.id)),this.controllerIds=this.controllerIds.filter(function(o){return o!=="controller-".concat(e.id)}),this.updatecontrollerIds(),new Promise(function(o){o(e.id)})}},{key:"getControllerUrl",value:function(e){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/")}},{key:"checkControllerVersion",value:function(e){return this.httpController.get(e,"/version")}},{key:"getLocalController",value:function(e,i){var o=this;return new Promise(function(s,l){o.findAll().then(function(u){var d=u.find(function(g){return"bundled"===g.location});if(d)d.host=e,d.port=i,d.protocol=location.protocol,o.update(d).then(function(g){s(g)},l);else{var h=new fB;h.name="local",h.host=e,h.port=i,h.location="bundled",h.protocol=location.protocol,o.create(h).then(function(g){s(g)},l)}},l)})}}]),n}();rr.\u0275fac=function(r){return new(r||rr)(t.LFG(mo.zw))},rr.\u0275prov=t.Yz7({token:rr,factory:rr.\u0275fac});var PD=(0,B.Z)(function n(r,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,H.Z)(this,n),this.visible=r,this.error=e,this.clear=i}),Ml=function(){function n(){(0,H.Z)(this,n),this.state=new to.X(new PD(!1))}return(0,B.Z)(n,[{key:"setError",value:function(e){this.state.next(new PD(!1,e.error))}},{key:"clear",value:function(){this.state.next(new PD(!1,null,!0))}},{key:"activate",value:function(){this.state.next(new PD(!0))}},{key:"deactivate",value:function(){this.state.next(new PD(!1))}}]),n}();Ml.\u0275fac=function(r){return new(r||Ml)},Ml.\u0275prov=t.Yz7({token:Ml,factory:Ml.\u0275fac});var Gre=["mat-button",""],zre=["*"],zDe=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],WDe=(0,Vt.pj)((0,Vt.Id)((0,Vt.Kr)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}()))),cn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;(0,H.Z)(this,e),(s=r.call(this,i))._focusMonitor=o,s._animationMode=a,s.isRoundButton=s._hasHostAttributes("mat-fab","mat-mini-fab"),s.isIconButton=s._hasHostAttributes("mat-icon-button");var u,l=(0,xn.Z)(zDe);try{for(l.s();!(u=l.n()).done;){var d=u.value;s._hasHostAttributes(d)&&s._getHostElement().classList.add(d)}}catch(h){l.e(h)}finally{l.f()}return i.nativeElement.classList.add("mat-button-base"),s.isRoundButton&&(s.color="accent"),s}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._getHostElement(),o,a):this._getHostElement().focus(a)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var o=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return s.some(function(u){return o._getHostElement().hasAttribute(u)})}}]),e}(WDe);cn.\u0275fac=function(r){return new(r||cn)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.QbO,8))},cn.\u0275cmp=t.Xpm({type:cn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Vt.wG,5),2&r)&&(t.iGM(i=t.CRH())&&(e.ripple=i.first))},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(r,e){2&r&&(t.uIk("disabled",e.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:Gre,ngContentSelectors:zre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Vt.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});var N0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,o,i,a))._ngZone=s,l._haltDisabledEvents=function(u){l.disabled&&(u.preventDefault(),u.stopImmediatePropagation())},l}return(0,B.Z)(e,[{key:"ngAfterViewInit",value:function(){var o=this;(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){o._elementRef.nativeElement.addEventListener("click",o._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),e}(cn);N0.\u0275fac=function(r){return new(r||N0)(t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.QbO,8),t.Y36(t.R0b,8))},N0.\u0275cmp=t.Xpm({type:N0,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,e){2&r&&(t.uIk("tabindex",e.disabled?-1:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[t.qOj],attrs:Gre,ngContentSelectors:zre,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&r&&(t.xp6(2),t.ekj("mat-button-ripple-round",e.isRoundButton||e.isIconButton),t.Q6J("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},dependencies:[Vt.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0});var dm=(0,B.Z)(function n(){(0,H.Z)(this,n)});dm.\u0275fac=function(r){return new(r||dm)},dm.\u0275mod=t.oAB({type:dm}),dm.\u0275inj=t.cJS({imports:[Vt.si,Vt.BQ,Vt.BQ]});var pB,B0=m(567);function RD(n){var r;return(null===(r=function YDe(){if(void 0===pB&&(pB=null,"undefined"!=typeof window)){var n=window;void 0!==n.trustedTypes&&(pB=n.trustedTypes.createPolicy("angular#components",{createHTML:function(e){return e}}))}return pB}())||void 0===r?void 0:r.createHTML(n))||n}function Wre(n){return Error('Unable to find icon with the name "'.concat(n,'"'))}function Vre(n){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(n,'".'))}function Yre(n){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(n,'".'))}var F0=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.url=r,this.svgText=e,this.options=i}),xp=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._httpClient=r,this._sanitizer=e,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=i}return(0,B.Z)(n,[{key:"addSvgIcon",value:function(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}},{key:"addSvgIconLiteral",value:function(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}},{key:"addSvgIconInNamespace",value:function(e,i,o,a){return this._addSvgIconConfig(e,i,new F0(o,null,a))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,i,o,a){var s=this._sanitizer.sanitize(t.q3G.HTML,o);if(!s)throw Yre(o);var l=RD(s);return this._addSvgIconConfig(e,i,new F0("",l,a))}},{key:"addSvgIconSet",value:function(e,i){return this.addSvgIconSetInNamespace("",e,i)}},{key:"addSvgIconSetLiteral",value:function(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}},{key:"addSvgIconSetInNamespace",value:function(e,i,o){return this._addSvgIconSetConfig(e,new F0(i,null,o))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,i,o){var a=this._sanitizer.sanitize(t.q3G.HTML,i);if(!a)throw Yre(i);var s=RD(a);return this._addSvgIconSetConfig(e,new F0("",s,o))}},{key:"registerFontClassAlias",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,i),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return this._defaultFontSetClass=i,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var i=this,o=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,e);if(!o)throw Vre(e);var a=this._cachedIconsByUrl.get(o);return a?(0,qn.of)(hB(a)):this._loadSvgIconFromConfig(new F0(e,null)).pipe((0,pa.b)(function(s){return i._cachedIconsByUrl.set(o,s)}),(0,$n.U)(function(s){return hB(s)}))}},{key:"getNamedSvgIcon",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=Kre(i,e),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e))return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);var s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):(0,x0._)(Wre(o))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?(0,qn.of)(hB(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,$n.U)(function(i){return hB(i)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,i){var o=this,a=this._extractIconWithNameFromAnySet(e,i);if(a)return(0,qn.of)(a);var s=i.filter(function(l){return!l.svgText}).map(function(l){return o._loadSvgIconSetFromConfig(l).pipe((0,Xc.K)(function(u){var d=o._sanitizer.sanitize(t.q3G.RESOURCE_URL,l.url),h="Loading icon set URL: ".concat(d," failed: ").concat(u.message);return o._errorHandler.handleError(new Error(h)),(0,qn.of)(null)}))});return(0,B0.D)(s).pipe((0,$n.U)(function(){var l=o._extractIconWithNameFromAnySet(e,i);if(!l)throw Wre(e);return l}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,i){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){var s=this._svgElementFromConfig(a),l=this._extractSvgIconFromSet(s,e,a.options);if(l)return l}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var i=this;return this._fetchIcon(e).pipe((0,pa.b)(function(o){return e.svgText=o}),(0,$n.U)(function(){return i._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?(0,qn.of)(null):this._fetchIcon(e).pipe((0,pa.b)(function(i){return e.svgText=i}))}},{key:"_extractSvgIconFromSet",value:function(e,i,o){var a=e.querySelector('[id="'.concat(i,'"]'));if(!a)return null;var s=a.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);var l=this._svgElementFromString(RD("<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(RD("<svg></svg>")),o=e.attributes,a=0;a<o.length;a++){var s=o[a],l=s.name,u=s.value;"id"!==l&&i.setAttribute(l,u)}for(var d=0;d<e.childNodes.length;d++)e.childNodes[d].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[d].cloneNode(!0));return i}},{key:"_setSvgAttributes",value:function(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}},{key:"_fetchIcon",value:function(e){var o,i=this,a=e.url,s=e.options,l=null!==(o=null==s?void 0:s.withCredentials)&&void 0!==o&&o;if(!this._httpClient)throw function KDe(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==a)throw Error('Cannot fetch icon from URL "'.concat(a,'".'));var u=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,a);if(!u)throw Vre(a);var d=this._inProgressUrlFetches.get(u);if(d)return d;var h=this._httpClient.get(u,{responseType:"text",withCredentials:l}).pipe((0,$n.U)(function(g){return RD(g)}),(0,zN.x)(function(){return i._inProgressUrlFetches.delete(u)}),(0,G1.B)());return this._inProgressUrlFetches.set(u,h),h}},{key:"_addSvgIconConfig",value:function(e,i,o){return this._svgIconConfigs.set(Kre(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 JDe(a)?new F0(a.url,null,a.options):new F0(a,null)}}}]),n}();xp.\u0275fac=function(r){return new(r||xp)(t.LFG(sc.eN,8),t.LFG(Jt),t.LFG(ge.K0,8),t.LFG(t.qLn))},xp.\u0275prov=t.Yz7({token:xp,factory:xp.\u0275fac,providedIn:"root"});new t.FiY,new t.tp0,new t.FiY,sc.eN,t.qLn,new t.FiY,ge.K0;function hB(n){return n.cloneNode(!0)}function Kre(n,r){return n+":"+r}function JDe(n){return!(!n.url||!n.options)}var QDe=(0,Vt.pj)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}()),XDe=new t.OlP("MAT_ICON_DEFAULT_OPTIONS"),$De=new t.OlP("mat-icon-location",{providedIn:"root",factory:function e2e(){var n=(0,t.f3M)(ge.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var qre=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t2e=qre.map(function(n){return"[".concat(n,"]")}).join(", "),n2e=/^url\(['"]?#(.*?)['"]?\)$/,Dn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i))._iconRegistry=o,d._location=s,d._errorHandler=l,d._inline=!1,d._previousFontSetClass=[],d._currentIconFetch=Ea.w.EMPTY,u&&(u.color&&(d.color=d.defaultColor=u.color),u.fontSet&&(d.fontSet=u.fontSet)),a||i.nativeElement.setAttribute("aria-hidden","true"),d}return(0,B.Z)(e,[{key:"inline",get:function(){return this._inline},set:function(o){this._inline=(0,Mn.Ig)(o)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(o){o!==this._svgIcon&&(o?this._updateSvgIcon(o):this._svgIcon&&this._clearSvgElement(),this._svgIcon=o)}},{key:"fontSet",get:function(){return this._fontSet},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontSet&&(this._fontSet=a,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(o){var a=this._cleanupFontValue(o);a!==this._fontIcon&&(this._fontIcon=a,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(o){if(!o)return["",""];var a=o.split(":");switch(a.length){case 1:return["",a[0]];case 2:return a;default:throw Error('Invalid icon name: "'.concat(o,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var o=this._elementsWithExternalReferences;if(o&&o.size){var a=this._location.getPathname();a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(o){this._clearSvgElement();var a=this._location.getPathname();this._previousPath=a,this._cacheChildrenWithExternalReferences(o),this._prependPathToReferences(a),this._elementRef.nativeElement.appendChild(o)}},{key:"_clearSvgElement",value:function(){var o=this._elementRef.nativeElement,a=o.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();a--;){var s=o.childNodes[a];(1!==s.nodeType||"svg"===s.nodeName.toLowerCase())&&s.remove()}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var o=this._elementRef.nativeElement,a=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(function(s){return s.length>0});this._previousFontSetClass.forEach(function(s){return o.classList.remove(s)}),a.forEach(function(s){return o.classList.add(s)}),this._previousFontSetClass=a,this.fontIcon!==this._previousFontIconClass&&!a.includes("mat-ligature-font")&&(this._previousFontIconClass&&o.classList.remove(this._previousFontIconClass),this.fontIcon&&o.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(o){return"string"==typeof o?o.trim().split(" ")[0]:o}},{key:"_prependPathToReferences",value:function(o){var a=this._elementsWithExternalReferences;a&&a.forEach(function(s,l){s.forEach(function(u){l.setAttribute(u.name,"url('".concat(o,"#").concat(u.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(o){for(var a=o.querySelectorAll(t2e),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,l=function(h){qre.forEach(function(g){var C=a[h],Z=C.getAttribute(g),z=Z?Z.match(n2e):null;if(z){var q=s.get(C);q||(q=[],s.set(C,q)),q.push({name:g,value:z[1]})}})},u=0;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,Nn.Z)(s,2),u=l[0],d=l[1];u&&(this._svgNamespace=u),d&&(this._svgName=d),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(d,u).pipe((0,Ei.q)(1)).subscribe(function(h){return a._setSvgElement(h)},function(h){var g="Error retrieving icon ".concat(u,":").concat(d,"! ").concat(h.message);a._errorHandler.handleError(new Error(g))})}}}]),e}(QDe);Dn.\u0275fac=function(r){return new(r||Dn)(t.Y36(t.SBq),t.Y36(xp),t.$8M("aria-hidden"),t.Y36($De),t.Y36(t.qLn),t.Y36(XDe,8))},Dn.\u0275cmp=t.Xpm({type:Dn,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(r,e){2&r&&(t.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet)("fontIcon",e._usingFontIcon()?e.fontIcon:null),t.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});var Sg=(0,B.Z)(function n(){(0,H.Z)(this,n)});function r2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}function i2e(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",4)),2&n){var e=t.oxw(),i=t.MAs(1);t.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),t.uIk("r",e._getCircleRadius())}}Sg.\u0275fac=function(r){return new(r||Sg)},Sg.\u0275mod=t.oAB({type:Sg}),Sg.\u0275inj=t.cJS({imports:[Vt.BQ,Vt.BQ]});var a2e=(0,Vt.pj)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}(),"primary"),s2e=new t.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function l2e(){return{diameter:100}}});var lu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;(0,H.Z)(this,e),(g=r.call(this,i))._document=a,g._diameter=100,g._value=0,g._resizeSubscription=Ea.w.EMPTY,g.mode="determinate";var C=e._diameters;return g._spinnerAnimationLabel=g._getSpinnerAnimationLabel(),C.has(a.head)||C.set(a.head,new Set([100])),g._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(g.mode="indeterminate"),l&&(l.color&&(g.color=g.defaultColor=l.color),l.diameter&&(g.diameter=l.diameter),l.strokeWidth&&(g.strokeWidth=l.strokeWidth)),o.isBrowser&&o.SAFARI&&d&&u&&h&&(g._resizeSubscription=d.change(150).subscribe(function(){"indeterminate"===g.mode&&h.run(function(){return u.markForCheck()})})),g}return(0,B.Z)(e,[{key:"diameter",get:function(){return this._diameter},set:function(o){this._diameter=(0,Mn.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,Mn.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,Mn.su)(o)))}},{key:"ngOnInit",value:function(){var o=this._elementRef.nativeElement;this._styleRoot=(0,Ii.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}(a2e);lu._diameters=new WeakMap,lu.\u0275fac=function(r){return new(r||lu)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(ge.K0,8),t.Y36(t.QbO,8),t.Y36(s2e),t.Y36(t.sBO),t.Y36(ha.rL),t.Y36(t.R0b))},lu.\u0275cmp=t.Xpm({type:lu,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[t.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,r2e,1,11,"circle",2),t.YNc(3,i2e,1,9,"circle",3),t.qZA()),2&r&&(t.Udp("width",e.diameter,"px")("height",e.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===e.mode),t.uIk("viewBox",e._getViewBox()),t.xp6(2),t.Q6J("ngSwitchCase",!0),t.xp6(1),t.Q6J("ngSwitchCase",!1))},dependencies:[ge.RF,ge.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});var tk=(0,B.Z)(function n(){(0,H.Z)(this,n)});tk.\u0275fac=function(r){return new(r||tk)},tk.\u0275mod=t.oAB({type:tk}),tk.\u0275inj=t.cJS({imports:[Vt.BQ,ge.ez,Vt.BQ]});var ed=m(5113),uo=m(7429),c2e=["tooltip"],Jre="tooltip-panel",Qre=(0,Ii.i$)({passive:!0});var Xre=new t.OlP("mat-tooltip-scroll-strategy");var h2e={provide:Xre,deps:[xi.aV],useFactory:function p2e(n){return function(){return n.scrollStrategies.reposition({scrollThrottle:20})}}},m2e=new t.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function _2e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});var mB=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C){var Z=this;(0,H.Z)(this,n),this._overlay=r,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=g,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new In.xQ,this._scrollStrategy=d,this._document=C,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),h.change.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){Z._overlayRef&&Z._updatePosition(Z._overlayRef)})}return(0,B.Z)(n,[{key:"position",get:function(){return this._position},set:function(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(e){this._showDelay=(0,Mn.su)(e)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(e){this._hideDelay=(0,Mn.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,Nr.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,Nn.Z)(i,2),a=o[0],s=o[1];e.removeEventListener(a,s,Qre)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var o,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(this.disabled||!this.message||this._isTooltipVisible())null===(o=this._tooltipInstance)||void 0===o||o._cancelPendingAnimations();else{var a=this._createOverlay();this._detach(),this._portal=this._portal||new uo.C5(this._tooltipComponent,this._viewContainerRef);var s=this._tooltipInstance=a.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(i)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay,i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var i,e=this;if(this._overlayRef)return this._overlayRef;var o=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(o);return a.positionChanges.pipe((0,Nr.R)(this._destroyed)).subscribe(function(s){e._updateCurrentPositionClass(s.connectionPair),e._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:"".concat(this._cssClassPrefix,"-").concat(Jre),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe((0,Nr.R)(this._destroyed)).subscribe(function(){var s;return null===(s=e._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Nr.R)(this._destroyed)).subscribe(function(s){e._isTooltipVisible()&&s.keyCode===Sr.hY&&!(0,Sr.Vb)(s)&&(s.preventDefault(),s.stopPropagation(),e._ngZone.run(function(){return e.hide(0)}))}),!(null===(i=this._defaultOptions)||void 0===i)&&i.disableTooltipInteractivity&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var i=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),a.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),a.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});var a=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a.x,originY:a.y}}}},{key:"_getOverlayPosition",value:function(){var o,e=!this._dir||"ltr"==this._dir.value,i=this.position;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});var a=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a.x,overlayY:a.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1),(0,Nr.R)(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}},{key:"_updateCurrentPositionClass",value:function(e){var s,i=e.overlayY,o=e.originX,a=e.originY;if((s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===a?"above":"below")!==this._currentPosition){var l=this._overlayRef;if(l){var u="".concat(this._cssClassPrefix,"-").concat(Jre,"-");l.removePanelClass(u+this._currentPosition),l.addPanelClass(u+s)}this._currentPosition=s}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var i,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",function(s){var l,u=s.relatedTarget;(!u||null===(l=e._overlayRef)||void 0===l||!l.overlayElement.contains(u))&&e.hide()}],["wheel",function(s){return e._wheelListener(s)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var a=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};o.push(["touchend",a],["touchcancel",a])}this._addListeners(o),(i=this._passiveListeners).push.apply(i,o)}}},{key:"_addListeners",value:function(e){var i=this;e.forEach(function(o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];i._elementRef.nativeElement.addEventListener(s,l,Qre)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}]),n}();mB.\u0275fac=function(r){t.$Z()},mB.\u0275dir=t.lG2({type:mB,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}});var ui=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C,Z,z){var q;return(0,H.Z)(this,e),(q=r.call(this,i,o,a,s,l,u,d,h,g,C,Z,z))._tooltipComponent=ZD,q}return(0,B.Z)(e)}(mB);ui.\u0275fac=function(r){return new(r||ui)(t.Y36(xi.aV),t.Y36(t.SBq),t.Y36(ha.mF),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(Ii.t4),t.Y36(Yr.$s),t.Y36(Yr.tE),t.Y36(Xre),t.Y36(Ls.Is,8),t.Y36(m2e,8),t.Y36(ge.K0))},ui.\u0275dir=t.lG2({type:ui,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[t.qOj]});var LD=function(){function n(r,e){(0,H.Z)(this,n),this._changeDetectorRef=r,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new In.xQ,this._animationsDisabled="NoopAnimations"===e}return(0,B.Z)(n,[{key:"show",value:function(e){var i=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){i._toggleVisibility(!0),i._showTimeoutId=void 0},e)}},{key:"hide",value:function(e){var i=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){i._toggleVisibility(!1),i._hideTimeoutId=void 0},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(e){var i=e.relatedTarget;(!i||!this._triggerElement.contains(i))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(e){var i=e.animationName;(i===this._showAnimation||i===this._hideAnimation)&&this._finalizeAnimation(i===this._showAnimation)}},{key:"_cancelPendingAnimations",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}},{key:"_finalizeAnimation",value:function(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(e){var i=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(i.classList.remove(e?a:o),i.classList.add(e?o:a),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}]),n}();LD.\u0275fac=function(r){return new(r||LD)(t.Y36(t.sBO),t.Y36(t.QbO,8))},LD.\u0275dir=t.lG2({type:LD});var ZD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,a))._breakpointObserver=o,s._isHandset=s._breakpointObserver.observe(ed.u3.Handset),s._showAnimation="mat-tooltip-show",s._hideAnimation="mat-tooltip-hide",s}return(0,B.Z)(e)}(LD);ZD.\u0275fac=function(r){return new(r||ZD)(t.Y36(t.sBO),t.Y36(ed.Yg),t.Y36(t.QbO,8))},ZD.\u0275cmp=t.Xpm({type:ZD,selectors:[["mat-tooltip-component"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(c2e,7),2&r)&&(t.iGM(i=t.CRH())&&(e._tooltip=i.first))},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("mouseleave",function(o){return e._handleMouseLeave(o)}),2&r&&t.Udp("zoom",e.isVisible()?1:null)},features:[t.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,e){var i;(1&r&&(t.TgZ(0,"div",0,1),t.NdJ("animationend",function(a){return e._handleAnimationEnd(a)}),t.ALo(2,"async"),t._uU(3),t.qZA()),2&r)&&(t.ekj("mat-tooltip-handset",null==(i=t.lcZ(2,4,e._isHandset))?null:i.matches),t.Q6J("ngClass",e.tooltipClass),t.xp6(3),t.Oqu(e.message))},dependencies:[ge.mk,ge.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0});var U0=(0,B.Z)(function n(){(0,H.Z)(this,n)});U0.\u0275fac=function(r){return new(r||U0)},U0.\u0275mod=t.oAB({type:U0}),U0.\u0275inj=t.cJS({providers:[h2e],imports:[Yr.rt,ge.ez,xi.U8,Vt.BQ,Vt.BQ,ha.ZD]});(0,Rt.X$)("state",[(0,Rt.SB)("initial, void, hidden",(0,Rt.oB)({opacity:0,transform:"scale(0)"})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)"})),(0,Rt.eR)("* => visible",(0,Rt.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.F4)([(0,Rt.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Rt.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Rt.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Rt.eR)("* => hidden",(0,Rt.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({opacity:0})))]);function g2e(n,r){1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-spinner",5),t.qZA())}function v2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"div",7)(2,"mat-icon"),t._uU(3,"error_outline"),t.qZA()(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div")(7,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refresh())}),t.TgZ(8,"mat-icon"),t._uU(9,"refresh"),t.qZA()(),t.TgZ(10,"button",9)(11,"mat-icon"),t._uU(12,"home"),t.qZA()()()()}if(2&n){var i=t.oxw(2);t.xp6(5),t.hij("Error occurred: ",i.error.message,"")}}function y2e(n,r){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,g2e,2,0,"div",2),t.YNc(2,v2e,13,1,"div",3),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.visible&&!e.error),t.xp6(1),t.Q6J("ngIf",e.error)}}var H0=function(){function n(r,e){(0,H.Z)(this,n),this.progressService=r,this.router=e,this.visible=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.state.subscribe(function(i){e.visible=i.visible,i.error&&!e.error&&(e.error=i.error),i.clear&&(e.error=null)}),this.routerSubscription=this.router.events.subscribe(function(){e.progressService.clear()})}},{key:"refresh",value:function(){this.router.navigateByUrl(this.router.url)}},{key:"ngOnDestroy",value:function(){this.routerSubscription.unsubscribe()}}]),n}();H0.\u0275fac=function(r){return new(r||H0)(t.Y36(Ml),t.Y36(ur))},H0.\u0275cmp=t.Xpm({type:H0,selectors:[["app-progress"]],decls:1,vars:1,consts:[["class","overlay",4,"ngIf"],[1,"overlay"],["class","loading-spinner",4,"ngIf"],["class","error-state",4,"ngIf"],[1,"loading-spinner"],["color","primary"],[1,"error-state"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(r,e){1&r&&t.YNc(0,y2e,3,2,"div",0),2&r&&t.Q6J("ngIf",e.visible||e.error)},dependencies:[ge.O5,Wo,cn,Dn,lu,ui],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;inset:0;background-color:#00000080;z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"]});var ND=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.router=r,this.controllerService=e,this.progressService=i,this.document=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.progressService.activate(),setTimeout(function(){var i;i=parseInt(e.document.location.port,10)?parseInt(e.document.location.port,10):"https:"==e.document.location.protocol?443:80,e.controllerService.getLocalController(e.document.location.hostname,i).then(function(o){e.router.navigate(["/controller",o.id,"projects"]),e.progressService.deactivate()})},100)}}]),n}();ND.\u0275fac=function(r){return new(r||ND)(t.Y36(ur),t.Y36(rr),t.Y36(Ml),t.Y36(ge.K0))},ND.\u0275cmp=t.Xpm({type:ND,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(r,e){1&r&&t._UZ(0,"app-progress")},dependencies:[H0]});function yi(n,r,e,i){return new(e||(e=Promise))(function(a,s){function l(h){try{d(i.next(h))}catch(g){s(g)}}function u(h){try{d(i.throw(h))}catch(g){s(g)}}function d(h){h.done?a(h.value):function o(a){return a instanceof e?a:new e(function(s){s(a)})}(h.value).then(l,u)}d((i=i.apply(n,r||[])).next())})}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var Dp=function(){function n(){(0,H.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addController",value:function(e){var i=this.data.slice();i.push(e),this.dataChange.next(i)}},{key:"addControllers",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}},{key:"find",value:function(e){return this.data.find(function(i){return i.name===e})}},{key:"findIndex",value:function(e){return this.data.findIndex(function(i){return i.name===e})}},{key:"update",value:function(e){var i=this.findIndex(e.name);i>=0&&(this.data[i]=e,this.dataChange.next(this.data.slice()))}}]),n}();function G2e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"button",3),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.action())}),t._uU(2),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Oqu(i.data.action)}}function z2e(n,r){}Dp.\u0275fac=function(r){return new(r||Dp)},Dp.\u0275prov=t.Yz7({token:Dp,factory:Dp.\u0275fac});var JG=new t.OlP("MatSnackBarData"),_B=(0,B.Z)(function n(){(0,H.Z)(this,n),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),W2e=Math.pow(2,31)-1,gB=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this._overlayRef=e,this._afterDismissed=new In.xQ,this._afterOpened=new In.xQ,this._onAction=new In.xQ,this._dismissedByAction=!1,this.containerInstance=r,r._onExit.subscribe(function(){return i._finishDismiss()})}return(0,B.Z)(n,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var i=this;this._durationTimeoutId=setTimeout(function(){return i.dismiss()},Math.min(e,W2e))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),n}(),FD=function(){function n(r,e){(0,H.Z)(this,n),this.snackBarRef=r,this.data=e}return(0,B.Z)(n,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),n}();FD.\u0275fac=function(r){return new(r||FD)(t.Y36(gB),t.Y36(JG))},FD.\u0275cmp=t.Xpm({type:FD,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span",0),t._uU(1),t.qZA(),t.YNc(2,G2e,3,1,"div",1)),2&r&&(t.xp6(1),t.Oqu(e.data.message),t.xp6(1),t.Q6J("ngIf",e.hasAction))},dependencies:[ge.O5,cn],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0});var V2e={snackBarState:(0,Rt.X$)("state",[(0,Rt.SB)("void, hidden",(0,Rt.oB)({transform:"scale(0.8)",opacity:0})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"scale(1)",opacity:1})),(0,Rt.eR)("* => visible",(0,Rt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Rt.eR)("* => void, * => hidden",(0,Rt.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Rt.oB)({opacity:0})))])},UD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u;return(0,H.Z)(this,e),(u=r.call(this))._ngZone=i,u._elementRef=o,u._changeDetectorRef=a,u._platform=s,u.snackBarConfig=l,u._announceDelay=150,u._destroyed=!1,u._onAnnounce=new In.xQ,u._onExit=new In.xQ,u._onEnter=new In.xQ,u._animationState="void",u.attachDomPortal=function(d){u._assertNotAttached();var h=u._portalOutlet.attachDomPortal(d);return u._afterPortalAttached(),h},"assertive"!==l.politeness||l.announcementMessage?"off"===l.politeness?u._live="off":u._live="polite":u._live="assertive",u._platform.FIREFOX&&("polite"===u._live&&(u._role="status"),"assertive"===u._live&&(u._role="alert")),u}return(0,B.Z)(e,[{key:"attachComponentPortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._afterPortalAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._assertNotAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._afterPortalAttached(),a}},{key:"onAnimationEnd",value:function(o){var a=o.fromState,s=o.toState;if(("void"===s&&"void"!==a||"hidden"===s)&&this._completeExit(),"visible"===s){var l=this._onEnter;this._ngZone.run(function(){l.next(),l.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var o=this;return this._ngZone.run(function(){o._animationState="hidden",o._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(o._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var o=this;this._ngZone.onMicrotaskEmpty.pipe((0,Ei.q)(1)).subscribe(function(){o._ngZone.run(function(){o._onExit.next(),o._onExit.complete()})})}},{key:"_afterPortalAttached",value:function(){var o=this._elementRef.nativeElement,a=this.snackBarConfig.panelClass;a&&(Array.isArray(a)?a.forEach(function(s){return o.classList.add(s)}):o.classList.add(a))}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var o=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){o._announceTimeoutId=setTimeout(function(){var a=o._elementRef.nativeElement.querySelector("[aria-hidden]"),s=o._elementRef.nativeElement.querySelector("[aria-live]");if(a&&s){var l=null;o._platform.isBrowser&&document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)&&(l=document.activeElement),a.removeAttribute("aria-hidden"),s.appendChild(a),null==l||l.focus(),o._onAnnounce.next(),o._onAnnounce.complete()}},o._announceDelay)})}}]),e}(uo.en);UD.\u0275fac=function(r){return new(r||UD)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Ii.t4),t.Y36(_B))},UD.\u0275dir=t.lG2({type:UD,viewQuery:function(r,e){var i;(1&r&&t.Gf(uo.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},features:[t.qOj]});var nk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"_afterPortalAttached",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"_afterPortalAttached",this).call(this),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}]),e}(UD);nk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nk)))(e||nk)}}(),nk.\u0275cmp=t.Xpm({type:nk,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,e){1&r&&t.WFA("@state.done",function(o){return e.onAnimationEnd(o)}),2&r&&t.d8E("@state",e._animationState)},features:[t.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.YNc(1,z2e,0,0,"ng-template",1),t.qZA(),t._UZ(2,"div")),2&r&&(t.xp6(2),t.uIk("aria-live",e._live)("role",e._role))},dependencies:[uo.Pl],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[V2e.snackBarState]}});var j0=(0,B.Z)(function n(){(0,H.Z)(this,n)});j0.\u0275fac=function(r){return new(r||j0)},j0.\u0275mod=t.oAB({type:j0}),j0.\u0275inj=t.cJS({imports:[xi.U8,uo.eL,ge.ez,dm,Vt.BQ,Vt.BQ]});var eie=new t.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function Y2e(){return new _B}});var G0=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this._overlay=r,this._live=e,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null}return(0,B.Z)(n,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,i){return this._attach(e,i)}},{key:"openFromTemplate",value:function(e,i){return this._attach(e,i)}},{key:"open",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,a=Object.assign(Object.assign({},this._defaultConfig),o);return a.data={message:e,action:i},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,i){var o=i&&i.viewContainerRef&&i.viewContainerRef.injector,a=t.zs3.create({parent:o||this._injector,providers:[{provide:_B,useValue:i}]}),s=new uo.C5(this.snackBarContainerComponent,i.viewContainerRef,a),l=e.attach(s);return l.instance.snackBarConfig=i,l.instance}},{key:"_attach",value:function(e,i){var o=this,a=Object.assign(Object.assign(Object.assign({},new _B),this._defaultConfig),i),s=this._createOverlay(a),l=this._attachSnackBarContainer(s,a),u=new gB(l,s);if(e instanceof t.Rgc){var d=new uo.UE(e,null,{$implicit:a.data,snackBarRef:u});u.instance=l.attachTemplatePortal(d)}else{var h=this._createInjector(a,u),g=new uo.C5(e,void 0,h),C=l.attachComponentPortal(g);u.instance=C.instance}return this._breakpointObserver.observe(ed.u3.HandsetPortrait).pipe((0,Nr.R)(s.detachments())).subscribe(function(Z){s.overlayElement.classList.toggle(o.handsetCssClass,Z.matches)}),a.announcementMessage&&l._onAnnounce.subscribe(function(){o._live.announce(a.announcementMessage,a.politeness)}),this._animateSnackBar(u,a),this._openedSnackBarRef=u,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,i){var o=this;e.afterDismissed().subscribe(function(){o._openedSnackBarRef==e&&(o._openedSnackBarRef=null),i.announcementMessage&&o._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(i.duration)})}},{key:"_createOverlay",value:function(e){var i=new xi.X_;i.direction=e.direction;var o=this._overlay.position().global(),a="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!a||"end"===e.horizontalPosition&&a,l=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):l?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}},{key:"_createInjector",value:function(e,i){var o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return t.zs3.create({parent:o||this._injector,providers:[{provide:gB,useValue:i},{provide:JG,useValue:e.data}]})}}]),n}();G0.\u0275fac=function(r){return new(r||G0)(t.LFG(xi.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(G0,12),t.LFG(eie))},G0.\u0275prov=t.Yz7({token:G0,factory:G0.\u0275fac});var td=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;return(0,H.Z)(this,e),(d=r.call(this,i,o,a,s,l,u)).simpleSnackBarComponent=FD,d.snackBarContainerComponent=nk,d.handsetCssClass="mat-snack-bar-handset",d}return(0,B.Z)(e)}(G0);td.\u0275fac=function(r){return new(r||td)(t.LFG(xi.aV),t.LFG(Yr.Kd),t.LFG(t.zs3),t.LFG(ed.Yg),t.LFG(td,12),t.LFG(eie))},td.\u0275prov=t.Yz7({token:td,factory:td.\u0275fac,providedIn:j0});var Ln=function(){function n(r,e){(0,H.Z)(this,n),this.snackbar=r,this.zone=e,this.snackBarConfigForSuccess={duration:4e3,panelClass:["snackabar-success"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForWarning={duration:4e3,panelClass:["snackabar-warning"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"},this.snackBarConfigForError={duration:1e4,panelClass:["snackabar-error"],MatSnackBarHorizontalPosition:"center",MatSnackBarVerticalPosition:"bottom"}}return(0,B.Z)(n,[{key:"error",value:function(e){var i=this;console.error(e),this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForError)})}},{key:"warning",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForWarning)})}},{key:"success",value:function(e){var i=this;this.zone.run(function(){i.snackbar.open(e,"Close",i.snackBarConfigForSuccess)})}}]),n}();Ln.\u0275fac=function(r){return new(r||Ln)(t.LFG(td),t.LFG(t.R0b))},Ln.\u0275prov=t.Yz7({token:Ln,factory:Ln.\u0275fac});var kn=m(7322),K2e=["*",[["mat-card-footer"]]],J2e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],X2e=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],z0=(0,B.Z)(function n(){(0,H.Z)(this,n)});z0.\u0275fac=function(r){return new(r||z0)},z0.\u0275dir=t.lG2({type:z0,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]});var rk=(0,B.Z)(function n(){(0,H.Z)(this,n)});rk.\u0275fac=function(r){return new(r||rk)},rk.\u0275dir=t.lG2({type:rk,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]});var ik=(0,B.Z)(function n(){(0,H.Z)(this,n)});ik.\u0275fac=function(r){return new(r||ik)},ik.\u0275dir=t.lG2({type:ik,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]});var HD=(0,B.Z)(function n(){(0,H.Z)(this,n),this.align="start"});HD.\u0275fac=function(r){return new(r||HD)},HD.\u0275dir=t.lG2({type:HD,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]});var vB=(0,B.Z)(function n(){(0,H.Z)(this,n)});vB.\u0275fac=function(r){return new(r||vB)},vB.\u0275dir=t.lG2({type:vB,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]});var yB=(0,B.Z)(function n(){(0,H.Z)(this,n)});yB.\u0275fac=function(r){return new(r||yB)},yB.\u0275dir=t.lG2({type:yB,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]});var bB=(0,B.Z)(function n(){(0,H.Z)(this,n)});bB.\u0275fac=function(r){return new(r||bB)},bB.\u0275dir=t.lG2({type:bB,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]});var CB=(0,B.Z)(function n(){(0,H.Z)(this,n)});CB.\u0275fac=function(r){return new(r||CB)},CB.\u0275dir=t.lG2({type:CB,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]});var wB=(0,B.Z)(function n(){(0,H.Z)(this,n)});wB.\u0275fac=function(r){return new(r||wB)},wB.\u0275dir=t.lG2({type:wB,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]});var kB=(0,B.Z)(function n(){(0,H.Z)(this,n)});kB.\u0275fac=function(r){return new(r||kB)},kB.\u0275dir=t.lG2({type:kB,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]});var TB=(0,B.Z)(function n(){(0,H.Z)(this,n)});TB.\u0275fac=function(r){return new(r||TB)},TB.\u0275dir=t.lG2({type:TB,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]});var ai=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._animationMode=r});ai.\u0275fac=function(r){return new(r||ai)(t.Y36(t.QbO,8))},ai.\u0275cmp=t.Xpm({type:ai,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:["*","mat-card-footer"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(K2e),t.Hsn(0),t.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0});var MB=(0,B.Z)(function n(){(0,H.Z)(this,n)});MB.\u0275fac=function(r){return new(r||MB)},MB.\u0275cmp=t.Xpm({type:MB,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(r,e){1&r&&(t.F$t(J2e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var SB=(0,B.Z)(function n(){(0,H.Z)(this,n)});SB.\u0275fac=function(r){return new(r||SB)},SB.\u0275cmp=t.Xpm({type:SB,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],decls:4,vars:0,template:function(r,e){1&r&&(t.F$t(X2e),t.TgZ(0,"div"),t.Hsn(1),t.qZA(),t.Hsn(2,1),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var ok=(0,B.Z)(function n(){(0,H.Z)(this,n)});ok.\u0275fac=function(r){return new(r||ok)},ok.\u0275mod=t.oAB({type:ok}),ok.\u0275inj=t.cJS({imports:[Vt.BQ,Vt.BQ]});var eAe=m(7568),tie=(0,Ii.i$)({passive:!0}),W0=function(){function n(r,e){(0,H.Z)(this,n),this._platform=r,this._ngZone=e,this._monitoredElements=new Map}return(0,B.Z)(n,[{key:"monitor",value:function(e){var i=this;if(!this._platform.isBrowser)return D0.E;var o=(0,Mn.fI)(e),a=this._monitoredElements.get(o);if(a)return a.subject;var s=new In.xQ,l="cdk-text-field-autofilled",u=function(h){"cdk-text-field-autofill-start"!==h.animationName||o.classList.contains(l)?"cdk-text-field-autofill-end"===h.animationName&&o.classList.contains(l)&&(o.classList.remove(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!1})})):(o.classList.add(l),i._ngZone.run(function(){return s.next({target:h.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){o.addEventListener("animationstart",u,tie),o.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(o,{subject:s,unlisten:function(){o.removeEventListener("animationstart",u,tie)}}),s}},{key:"stopMonitoring",value:function(e){var i=(0,Mn.fI)(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(i,o){return e.stopMonitoring(o)})}}]),n}();W0.\u0275fac=function(r){return new(r||W0)(t.LFG(Ii.t4),t.LFG(t.R0b))},W0.\u0275prov=t.Yz7({token:W0,factory:W0.\u0275fac,providedIn:"root"});var EB=function(){function n(r,e){(0,H.Z)(this,n),this._elementRef=r,this._autofillMonitor=e,this.cdkAutofill=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._autofillMonitor.monitor(this._elementRef).subscribe(function(i){return e.cdkAutofill.emit(i)})}},{key:"ngOnDestroy",value:function(){this._autofillMonitor.stopMonitoring(this._elementRef)}}]),n}();EB.\u0275fac=function(r){return new(r||EB)(t.Y36(t.SBq),t.Y36(W0))},EB.\u0275dir=t.lG2({type:EB,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}});var xB=function(){function n(r,e,i,o){var a=this;(0,H.Z)(this,n),this._elementRef=r,this._platform=e,this._ngZone=i,this._destroyed=new In.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=function(s){a._hasFocus="focus"===s.type},this._document=o,this._textareaElement=this._elementRef.nativeElement}return(0,B.Z)(n,[{key:"minRows",get:function(){return this._minRows},set:function(e){this._minRows=(0,Mn.su)(e),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(e){this._maxRows=(0,Mn.su)(e),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(e){e=(0,Mn.Ig)(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}},{key:"placeholder",get:function(){return this._textareaElement.placeholder},set:function(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}},{key:"_setMinHeight",value:function(){var e=this.minRows&&this._cachedLineHeight?"".concat(this.minRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.minHeight=e)}},{key:"_setMaxHeight",value:function(){var e=this.maxRows&&this._cachedLineHeight?"".concat(this.maxRows*this._cachedLineHeight,"px"):null;e&&(this._textareaElement.style.maxHeight=e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(function(){var i=e._getWindow();(0,jd.R)(i,"resize").pipe((0,eAe.e)(16),(0,Nr.R)(e._destroyed)).subscribe(function(){return e.resizeToFitContent(!0)}),e._textareaElement.addEventListener("focus",e._handleFocusEvent),e._textareaElement.addEventListener("blur",e._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}},{key:"ngOnDestroy",value:function(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}},{key:"_cacheTextareaLineHeight",value:function(){if(!this._cachedLineHeight){var e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}}},{key:"_measureScrollHeight",value:function(){var e=this._textareaElement,i=e.style.marginBottom||"",o=this._platform.FIREFOX,a=o&&this._hasFocus,s=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom="".concat(e.clientHeight,"px")),e.classList.add(s);var l=e.scrollHeight-4;return e.classList.remove(s),a&&(e.style.marginBottom=i),l}},{key:"_cacheTextareaPlaceholderHeight",value:function(){if(this._isViewInited&&null==this._cachedPlaceholderHeight){if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);var e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}}},{key:"ngDoCheck",value:function(){this._platform.isBrowser&&this.resizeToFitContent()}},{key:"resizeToFitContent",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),this._cachedLineHeight)){var o=this._elementRef.nativeElement,a=o.value;if(i||this._minRows!==this._previousMinRows||a!==this._previousValue){var s=this._measureScrollHeight(),l=Math.max(s,this._cachedPlaceholderHeight||0);o.style.height="".concat(l,"px"),this._ngZone.runOutsideAngular(function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(function(){return e._scrollToCaretPosition(o)}):setTimeout(function(){return e._scrollToCaretPosition(o)})}),this._previousValue=a,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollToCaretPosition",value:function(e){var i=e.selectionStart,o=e.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(i,o)}}]),n}();xB.\u0275fac=function(r){return new(r||xB)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(t.R0b),t.Y36(ge.K0,8))},xB.\u0275dir=t.lG2({type:xB,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(r,e){1&r&&t.NdJ("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var V0=(0,B.Z)(function n(){(0,H.Z)(this,n)});V0.\u0275fac=function(r){return new(r||V0)},V0.\u0275mod=t.oAB({type:V0}),V0.\u0275inj=t.cJS({});var tAe=new t.OlP("MAT_INPUT_VALUE_ACCESSOR"),nAe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],rAe=0,iAe=(0,Vt.FD)(function(){return(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new In.xQ})}()),Kn=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;(0,H.Z)(this,e),(Z=r.call(this,u,s,l,a))._elementRef=i,Z._platform=o,Z._autofillMonitor=h,Z._formField=C,Z._uid="mat-input-".concat(rAe++),Z.focused=!1,Z.stateChanges=new In.xQ,Z.controlType="mat-input",Z.autofilled=!1,Z._disabled=!1,Z._type="text",Z._readonly=!1,Z._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(re){return(0,Ii.qK)().has(re)}),Z._iOSKeyupListener=function(re){var ae=re.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var z=Z._elementRef.nativeElement,q=z.nodeName.toLowerCase();return Z._inputValueAccessor=d||z,Z._previousNativeValue=Z.value,Z.id=Z.id,o.IOS&&g.runOutsideAngular(function(){i.nativeElement.addEventListener("keyup",Z._iOSKeyupListener)}),Z._isServer=!Z._platform.isBrowser,Z._isNativeSelect="select"===q,Z._isTextarea="textarea"===q,Z._isInFormField=!!C,Z._isNativeSelect&&(Z.controlType=z.multiple?"mat-native-select-multiple":"mat-native-select"),Z}return(0,B.Z)(e,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(o){this._id=o||this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"type",get:function(){return this._type},set:function(o){this._type=o||"text",this._validateType(),!this._isTextarea&&(0,Ii.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(o){o!==this.value&&(this._inputValueAccessor.value=o,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(o){this._readonly=(0,Mn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){var o=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(a){o.autofilled=a.isAutofilled,o.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(o){this._elementRef.nativeElement.focus(o)}},{key:"_focusChanged",value:function(o){o!==this.focused&&(this.focused=o,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var o,a=this._formField,s=!a||"legacy"!==a.appearance||null!==(o=a._hasLabel)&&void 0!==o&&o.call(a)?this.placeholder:null;if(s!==this._previousPlaceholder){var l=this._elementRef.nativeElement;this._previousPlaceholder=s,s?l.setAttribute("placeholder",s):l.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var o=this._elementRef.nativeElement.value;this._previousNativeValue!==o&&(this._previousNativeValue=o,this.stateChanges.next())}},{key:"_validateType",value:function(){nAe.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var o=this._elementRef.nativeElement.validity;return o&&o.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var o=this._elementRef.nativeElement,a=o.options[0];return this.focused||o.multiple||!this.empty||!!(o.selectedIndex>-1&&a&&a.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var o=this._elementRef.nativeElement;return this._isNativeSelect&&(o.multiple||o.size>1)}}]),e}(iAe);Kn.\u0275fac=function(r){return new(r||Kn)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(J.a5,10),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Vt.rD),t.Y36(tAe,10),t.Y36(W0),t.Y36(t.R0b),t.Y36(kn.G_,8))},Kn.\u0275dir=t.lG2({type:Kn,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&r&&(t.Ikx("disabled",e.disabled)("required",e.required),t.uIk("id",e.id)("data-placeholder",e.placeholder)("name",e.name||null)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),t.ekj("mat-input-server",e._isServer)("mat-native-select-inline",e._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[t._Bn([{provide:kn.Eo,useExisting:Kn}]),t.qOj,t.TTD]});var ak=(0,B.Z)(function n(){(0,H.Z)(this,n)});ak.\u0275fac=function(r){return new(r||ak)},ak.\u0275mod=t.oAB({type:ak}),ak.\u0275inj=t.cJS({providers:[Vt.rD],imports:[V0,kn.lN,Vt.BQ,V0,kn.lN]});var ni=m(4107);function oAe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function aAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}function sAe(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var jD=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.controllerService=r,this.controllerDatabase=e,this.route=i,this.router=o,this.toasterService=a,this.controllerOptionsVisibility=!1,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),protocol:new J.p4("http:")})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i=this;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(function(s){return yi(i,void 0,void 0,Rn().mark(function l(){return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s&&this.getControllers();case 1:case"end":return d.stop()}},l,this)}))});case 2:case"end":return a.stop()}},e,this)}))}},{key:"getControllers",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var o,a,i=this;return Rn().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.controllerIp=this.route.snapshot.paramMap.get("controller_ip"),this.controllerPort=+this.route.snapshot.paramMap.get("controller_port"),this.projectId=this.route.snapshot.paramMap.get("project_id"),l.next=5,this.controllerService.findAll();case 5:o=l.sent,(a=o.filter(function(u){return u.host===i.controllerIp&&u.port===i.controllerPort})[0])?this.router.navigate(["/controller",a.id,"project",this.projectId]):this.controllerOptionsVisibility=!0;case 8:case"end":return l.stop()}},e,this)}))}},{key:"createController",value:function(){var e=this;if(this.controllerForm.get("name").hasError||this.controllerForm.get("location").hasError||this.controllerForm.get("protocol").hasError){var i=new fB;i.host=this.controllerIp,i.port=this.controllerPort,i.name=this.controllerForm.get("name").value,i.location=this.controllerForm.get("location").value,i.protocol=this.controllerForm.get("protocol").value,this.controllerService.create(i).then(function(o){e.router.navigate(["/controller",o.id,"project",e.projectId])})}else this.toasterService.error("Please use correct values")}}]),n}();jD.\u0275fac=function(r){return new(r||jD)(t.Y36(rr),t.Y36(Dp),t.Y36(pr),t.Y36(ur),t.Y36(Ln))},jD.\u0275cmp=t.Xpm({type:jD,selectors:[["app-direct-link"]],decls:20,vars:5,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["placeholder","Location","formControlName","location"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Add new controller"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field"),t._UZ(9,"input",7),t.YNc(10,oAe,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",9),t.YNc(13,aAe,2,2,"mat-option",10),t.qZA()(),t.TgZ(14,"mat-form-field")(15,"mat-select",11),t.YNc(16,sAe,2,2,"mat-option",10),t.qZA()()()(),t.TgZ(17,"div",12)(18,"button",13),t.NdJ("click",function(){return e.createController()}),t._uU(19,"Add controller"),t.qZA()()()()),2&r&&(t.Q6J("hidden",!e.controllerOptionsVisibility),t.xp6(7),t.Q6J("formGroup",e.controllerForm),t.xp6(3),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(3),t.Q6J("ngForOf",e.locations),t.xp6(3),t.Q6J("ngForOf",e.protocols))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,ai,Kn,ni.gD,Vt.ey],styles:["mat-form-field{width:100%}\n"],encapsulation:2});var fm=m(4834),QG=["*"],nie='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',lAe=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],cAe=["text"];function dAe(n,r){if(1&n&&t._UZ(0,"mat-pseudo-checkbox",5),2&n){var e=t.oxw();t.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}var fAe=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],rie=(0,Vt.Id)((0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}())),hAe=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),iie=new t.OlP("MatList"),oie=new t.OlP("MatNavList"),Hs=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._stateChanges=new In.xQ,i}return(0,B.Z)(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(rie);Hs.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Hs)))(e||Hs)}}(),Hs.\u0275cmp=t.Xpm({type:Hs,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[t._Bn([{provide:oie,useExisting:Hs}]),t.qOj,t.TTD],ngContentSelectors:QG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0});var pm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._elementRef=i,o._stateChanges=new In.xQ,"action-list"===o._getListType()&&(i.nativeElement.classList.add("mat-action-list"),i.nativeElement.setAttribute("role","group")),o}return(0,B.Z)(e,[{key:"_getListType",value:function(){var o=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===o?"list":"mat-action-list"===o?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(rie);pm.\u0275fac=function(r){return new(r||pm)(t.Y36(t.SBq))},pm.\u0275cmp=t.Xpm({type:pm,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[t._Bn([{provide:iie,useExisting:pm}]),t.qOj,t.TTD],ngContentSelectors:QG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[nie],encapsulation:2,changeDetection:0});var sk=(0,B.Z)(function n(){(0,H.Z)(this,n)});sk.\u0275fac=function(r){return new(r||sk)},sk.\u0275dir=t.lG2({type:sk,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]});var lk=(0,B.Z)(function n(){(0,H.Z)(this,n)});lk.\u0275fac=function(r){return new(r||lk)},lk.\u0275dir=t.lG2({type:lk,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]});var DB=(0,B.Z)(function n(){(0,H.Z)(this,n)});DB.\u0275fac=function(r){return new(r||DB)},DB.\u0275dir=t.lG2({type:DB,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]});var Aa=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;(0,H.Z)(this,e),(l=r.call(this))._element=i,l._isInteractiveList=!1,l._destroyed=new In.xQ,l._disabled=!1,l._isInteractiveList=!!(a||s&&"action-list"===s._getListType()),l._list=a||s;var u=l._getHostElement();return"button"===u.nodeName.toLowerCase()&&!u.hasAttribute("type")&&u.setAttribute("type","button"),l._list&&l._list._stateChanges.pipe((0,Nr.R)(l._destroyed)).subscribe(function(){o.markForCheck()}),l}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){(0,Vt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}}]),e}(hAe);Aa.\u0275fac=function(r){return new(r||Aa)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oie,8),t.Y36(iie,8))},Aa.\u0275cmp=t.Xpm({type:Aa,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,sk,5),t.Suo(i,lk,5),t.Suo(i,Vt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[t.qOj],ngContentSelectors:["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(r,e){1&r&&(t.F$t(lAe),t.TgZ(0,"span",0),t._UZ(1,"span",1),t.Hsn(2),t.TgZ(3,"span",2),t.Hsn(4,1),t.qZA(),t.Hsn(5,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},dependencies:[Vt.wG],encapsulation:2,changeDetection:0});var mAe=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),_Ae=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),gAe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return uk}),multi:!0},vAe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.options=e}),GD=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s.selectionList=a,s._selected=!1,s._disabled=!1,s._hasFocus=!1,s.selectedChange=new t.vpe,s.checkboxPosition="after",s._inputsInitialized=!1,s}return(0,B.Z)(e,[{key:"color",get:function(){return this._color||this.selectionList.color},set:function(o){this._color=o}},{key:"value",get:function(){return this._value},set:function(o){this.selected&&!this.selectionList.compareWith(o,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=o}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(o){var a=(0,Mn.Ig)(o);a!==this._disabled&&(this._disabled=a,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(o){var a=(0,Mn.Ig)(o);a!==this._selected&&(this._setSelected(a),(a||this.selectionList.multiple)&&this.selectionList._reportValueChange())}},{key:"ngOnInit",value:function(){var o=this,a=this.selectionList;a._value&&a._value.some(function(l){return a.compareWith(o._value,l)})&&this._setSelected(!0);var s=this._selected;Promise.resolve().then(function(){(o._selected||s)&&(o.selected=!0,o._changeDetector.markForCheck())}),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){(0,Vt.E0)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var o=this;this.selected&&Promise.resolve().then(function(){o.selected=!1});var a=this._hasFocus,s=this.selectionList._removeOptionFromList(this);a&&s&&s.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(o){return o!==this._selected&&(this._selected=o,o?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(o),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}}]),e}(_Ae);GD.\u0275fac=function(r){return new(r||GD)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36((0,t.Gpc)(function(){return uk})))},GD.\u0275cmp=t.Xpm({type:GD,selectors:[["mat-list-option"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,sk,5),t.Suo(i,lk,5),t.Suo(i,Vt.X2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._avatar=o.first),t.iGM(o=t.CRH())&&(e._icon=o.first),t.iGM(o=t.CRH())&&(e._lines=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(cAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._text=i.first))},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&r&&(t.uIk("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),t.ekj("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[t.qOj],ngContentSelectors:["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(r,e){1&r&&(t.F$t(fAe),t.TgZ(0,"div",0),t._UZ(1,"div",1),t.YNc(2,dAe,1,2,"mat-pseudo-checkbox",2),t.TgZ(3,"div",3,4),t.Hsn(5),t.qZA(),t.Hsn(6,1),t.qZA()),2&r&&(t.ekj("mat-list-item-content-reverse","after"==e.checkboxPosition),t.xp6(1),t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),t.xp6(1),t.Q6J("ngIf",e.selectionList.multiple))},dependencies:[Vt.wG,Vt.nP,ge.O5],encapsulation:2,changeDetection:0});var uk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this))._element=i,s._changeDetector=o,s._focusMonitor=a,s._multiple=!0,s._contentInitialized=!1,s.selectionChange=new t.vpe,s.color="accent",s.compareWith=function(l,u){return l===u},s._disabled=!1,s.selectedOptions=new Ci.Ov(s._multiple),s._tabIndex=-1,s._onChange=function(l){},s._destroyed=new In.xQ,s._onTouched=function(){},s}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o),this._markOptionsForCheck()}},{key:"multiple",get:function(){return this._multiple},set:function(o){var a=(0,Mn.Ig)(o);a!==this._multiple&&(this._contentInitialized,this._multiple=a,this.selectedOptions=new Ci.Ov(this._multiple,this.selectedOptions.selected))}},{key:"ngAfterContentInit",value:function(){var o=this;this._contentInitialized=!0,this._keyManager=new Yr.Em(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(function(){return!1}).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.options.changes.pipe((0,eo.O)(null),(0,Nr.R)(this._destroyed)).subscribe(function(){o._updateTabIndex()}),this.selectedOptions.changed.pipe((0,Nr.R)(this._destroyed)).subscribe(function(a){if(a.added){var l,s=(0,xn.Z)(a.added);try{for(s.s();!(l=s.n()).done;){l.value.selected=!0}}catch(C){s.e(C)}finally{s.f()}}if(a.removed){var h,d=(0,xn.Z)(a.removed);try{for(d.s();!(h=d.n()).done;){h.value.selected=!1}}catch(C){d.e(C)}finally{d.f()}}}),this._focusMonitor.monitor(this._element).pipe((0,Nr.R)(this._destroyed)).subscribe(function(a){var s;if("keyboard"===a||"program"===a){for(var l=0,u=0;u<o.options.length;u++)if(null!==(s=o.options.get(u))&&void 0!==s&&s.selected){l=u;break}o._keyManager.setActiveItem(l)}})}},{key:"ngOnChanges",value:function(o){var a=o.disableRipple,s=o.color;(a&&!a.firstChange||s&&!s.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(o){this._element.nativeElement.focus(o)}},{key:"selectAll",value:function(){return this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){return this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"_removeOptionFromList",value:function(o){var a=this._getOptionIndex(o);return a>-1&&this._keyManager.activeItemIndex===a&&(a>0?this._keyManager.updateActiveItem(a-1):0===a&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(a+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(o){var a=o.keyCode,s=this._keyManager,l=s.activeItemIndex,u=(0,Sr.Vb)(o);switch(a){case Sr.L_:case Sr.K5:!u&&!s.isTyping()&&(this._toggleFocusedOption(),o.preventDefault());break;default:if(a===Sr.A&&this.multiple&&(0,Sr.Vb)(o,"ctrlKey")&&!s.isTyping()){var d=this.options.some(function(h){return!h.disabled&&!h.selected});this._setAllOptionsSelected(d,!0,!0),o.preventDefault()}else s.onKeydown(o)}this.multiple&&(a===Sr.LH||a===Sr.JH)&&o.shiftKey&&s.activeItemIndex!==l&&this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var o=this._getSelectedOptionValues();this._onChange(o),this._value=o}}},{key:"_emitChangeEvent",value:function(o){this.selectionChange.emit(new vAe(this,o))}},{key:"writeValue",value:function(o){this._value=o,this.options&&this._setOptionsFromValues(o||[])}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"_setOptionsFromValues",value:function(o){var a=this;this.options.forEach(function(s){return s._setSelected(!1)}),o.forEach(function(s){var l=a.options.find(function(u){return!u.selected&&a.compareWith(u.value,s)});l&&l._setSelected(!0)})}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter(function(o){return o.selected}).map(function(o){return o.value})}},{key:"_toggleFocusedOption",value:function(){var o=this._keyManager.activeItemIndex;if(null!=o&&this._isValidIndex(o)){var a=this.options.toArray()[o];a&&!a.disabled&&(this._multiple||!a.selected)&&(a.toggle(),this._emitChangeEvent([a]))}}},{key:"_setAllOptionsSelected",value:function(o,a,s){var l=[];return this.options.forEach(function(u){(!a||!u.disabled)&&u._setSelected(o)&&l.push(u)}),l.length&&(this._reportValueChange(),s&&this._emitChangeEvent(l)),l}},{key:"_isValidIndex",value:function(o){return o>=0&&o<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}(mAe);uk.\u0275fac=function(r){return new(r||uk)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE))},uk.\u0275cmp=t.Xpm({type:uk,selectors:[["mat-selection-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,GD,5),2&r)&&(t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)}),2&r&&t.uIk("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[t._Bn([gAe]),t.qOj,t.TTD],ngContentSelectors:QG,decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))},styles:[nie],encapsulation:2,changeDetection:0});var ck=(0,B.Z)(function n(){(0,H.Z)(this,n)});ck.\u0275fac=function(r){return new(r||ck)},ck.\u0275mod=t.oAB({type:ck}),ck.\u0275inj=t.cJS({imports:[Vt.uc,Vt.si,Vt.BQ,Vt.us,ge.ez,Vt.uc,Vt.BQ,Vt.us,fm.t]});var yAe=0,XG=new t.OlP("CdkAccordion"),dk=function(){function n(){(0,H.Z)(this,n),this._stateChanges=new In.xQ,this._openCloseAllActions=new In.xQ,this.id="cdk-accordion-".concat(yAe++),this._multi=!1}return(0,B.Z)(n,[{key:"multi",get:function(){return this._multi},set:function(e){this._multi=(0,Mn.Ig)(e)}},{key:"openAll",value:function(){this._multi&&this._openCloseAllActions.next(!0)}},{key:"closeAll",value:function(){this._openCloseAllActions.next(!1)}},{key:"ngOnChanges",value:function(e){this._stateChanges.next(e)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}]),n}();dk.\u0275fac=function(r){return new(r||dk)},dk.\u0275dir=t.lG2({type:dk,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:XG,useExisting:dk}]),t.TTD]});var bAe=0,zD=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this.accordion=r,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ea.w.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-".concat(bAe++),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,B.Z)(n,[{key:"expanded",get:function(){return this._expanded},set:function(e){if(e=(0,Mn.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,Mn.Ig)(e)}},{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var e=this;return this.accordion._openCloseAllActions.subscribe(function(i){e.disabled||(e.expanded=i)})}}]),n}();zD.\u0275fac=function(r){return new(r||zD)(t.Y36(XG,12),t.Y36(t.sBO),t.Y36(Ci.A8))},zD.\u0275dir=t.lG2({type:zD,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:XG,useValue:void 0}])]});var Y0=(0,B.Z)(function n(){(0,H.Z)(this,n)});Y0.\u0275fac=function(r){return new(r||Y0)},Y0.\u0275mod=t.oAB({type:Y0}),Y0.\u0275inj=t.cJS({});var CAe=["body"];function wAe(n,r){}var kAe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]];function MAe(n,r){if(1&n&&t._UZ(0,"span",2),2&n){var e=t.oxw();t.Q6J("@indicatorRotate",e._getExpandedState())}}var SAe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$G=new t.OlP("MAT_ACCORDION"),aie="225ms cubic-bezier(0.4,0.0,0.2,1)",sie={indicatorRotate:(0,Rt.X$)("indicatorRotate",[(0,Rt.SB)("collapsed, void",(0,Rt.oB)({transform:"rotate(0deg)"})),(0,Rt.SB)("expanded",(0,Rt.oB)({transform:"rotate(180deg)"})),(0,Rt.eR)("expanded <=> collapsed, void => collapsed",(0,Rt.jt)(aie))]),bodyExpansion:(0,Rt.X$)("bodyExpansion",[(0,Rt.SB)("collapsed, void",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed, void => collapsed",(0,Rt.jt)(aie))])},lie=new t.OlP("MAT_EXPANSION_PANEL"),WD=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this._template=r,this._expansionPanel=e});WD.\u0275fac=function(r){return new(r||WD)(t.Y36(t.Rgc),t.Y36(lie,8))},WD.\u0275dir=t.lG2({type:WD,selectors:[["ng-template","matExpansionPanelContent",""]]});var xAe=0,uie=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),Sl=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,i,o,a))._viewContainerRef=s,h._animationMode=u,h._hideToggle=!1,h.afterExpand=new t.vpe,h.afterCollapse=new t.vpe,h._inputChanges=new In.xQ,h._headerId="mat-expansion-panel-header-".concat(xAe++),h._bodyAnimationDone=new In.xQ,h.accordion=i,h._document=l,h._bodyAnimationDone.pipe((0,Ly.x)(function(g,C){return g.fromState===C.fromState&&g.toState===C.toState})).subscribe(function(g){"void"!==g.fromState&&("expanded"===g.toState?h.afterExpand.emit():"collapsed"===g.toState&&h.afterCollapse.emit())}),d&&(h.hideToggle=d.hideToggle),h}return(0,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(o){this._hideToggle=(0,Mn.Ig)(o)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(o){this._togglePosition=o}},{key:"_hasSpacing",value:function(){return!!this.accordion&&(this.expanded&&"default"===this.accordion.displayMode)}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var o=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,eo.O)(null),(0,ti.h)(function(){return o.expanded&&!o._portal}),(0,Ei.q)(1)).subscribe(function(){o._portal=new uo.UE(o._lazyContent._template,o._viewContainerRef)})}},{key:"ngOnChanges",value:function(o){this._inputChanges.next(o)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var o=this._document.activeElement,a=this._body.nativeElement;return o===a||a.contains(o)}return!1}}]),e}(zD);Sl.\u0275fac=function(r){return new(r||Sl)(t.Y36($G,12),t.Y36(t.sBO),t.Y36(Ci.A8),t.Y36(t.s_b),t.Y36(ge.K0),t.Y36(t.QbO,8),t.Y36(uie,8))},Sl.\u0275cmp=t.Xpm({type:Sl,selectors:[["mat-expansion-panel"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,WD,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(CAe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._body=i.first))},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(r,e){2&r&&t.ekj("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:$G,useValue:void 0},{provide:lie,useExisting:Sl}]),t.qOj,t.TTD],ngContentSelectors:["mat-expansion-panel-header","*","mat-action-row"],decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(kAe),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(o){return e._bodyAnimationDone.next(o)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,wAe,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&r&&(t.xp6(1),t.Q6J("@bodyExpansion",e._getExpandedState())("id",e.id),t.uIk("aria-labelledby",e._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",e._portal))},dependencies:[uo.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[sie.bodyExpansion]},changeDetection:0});var AB=(0,B.Z)(function n(){(0,H.Z)(this,n)});AB.\u0275fac=function(r){return new(r||AB)},AB.\u0275dir=t.lG2({type:AB,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var DAe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),uu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;(0,H.Z)(this,e),(h=r.call(this)).panel=i,h._element=o,h._focusMonitor=a,h._changeDetectorRef=s,h._animationMode=u,h._parentChangeSubscription=Ea.w.EMPTY;var g=i.accordion?i.accordion._stateChanges.pipe((0,ti.h)(function(C){return!(!C.hideToggle&&!C.togglePosition)})):D0.E;return h.tabIndex=parseInt(d||"")||0,h._parentChangeSubscription=(0,ji.T)(i.opened,i.closed,g,i._inputChanges.pipe((0,ti.h)(function(C){return!!(C.hideToggle||C.disabled||C.togglePosition)}))).subscribe(function(){return h._changeDetectorRef.markForCheck()}),i.closed.pipe((0,ti.h)(function(){return i._containsFocus()})).subscribe(function(){return a.focusVia(o,"program")}),l&&(h.expandedHeight=l.expandedHeight,h.collapsedHeight=l.collapsedHeight),h}return(0,B.Z)(e,[{key:"disabled",get:function(){return this.panel.disabled}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_getHeaderHeight",value:function(){var o=this._isExpanded();return o&&this.expandedHeight?this.expandedHeight:!o&&this.collapsedHeight?this.collapsedHeight:null}},{key:"_keydown",value:function(o){switch(o.keyCode){case Sr.L_:case Sr.K5:(0,Sr.Vb)(o)||(o.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(o))}}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._element,o,a):this._element.nativeElement.focus(a)}},{key:"ngAfterViewInit",value:function(){var o=this;this._focusMonitor.monitor(this._element).subscribe(function(a){a&&o.panel.accordion&&o.panel.accordion._handleHeaderFocus(o)})}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}]),e}((0,Vt.sb)(DAe));uu.\u0275fac=function(r){return new(r||uu)(t.Y36(Sl,1),t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.Y36(uie,8),t.Y36(t.QbO,8),t.$8M("tabindex"))},uu.\u0275cmp=t.Xpm({type:uu,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._toggle()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.uIk("id",e.panel._headerId)("tabindex",e.tabIndex)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),t.Udp("height",e._getHeaderHeight()),t.ekj("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:["mat-panel-title","mat-panel-description","*"],decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(r,e){1&r&&(t.F$t(SAe),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,MAe,1,1,"span",1)),2&r&&(t.ekj("mat-content-hide-toggle",!e._showToggle()),t.xp6(4),t.Q6J("ngIf",e._showToggle()))},dependencies:[ge.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[sie.indicatorRotate]},changeDetection:0});var VD=(0,B.Z)(function n(){(0,H.Z)(this,n)});VD.\u0275fac=function(r){return new(r||VD)},VD.\u0275dir=t.lG2({type:VD,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var Lu=(0,B.Z)(function n(){(0,H.Z)(this,n)});Lu.\u0275fac=function(r){return new(r||Lu)},Lu.\u0275dir=t.lG2({type:Lu,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var El=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._ownHeaders=new t.n_E,i._hideToggle=!1,i.displayMode="default",i.togglePosition="after",i}return(0,B.Z)(e,[{key:"hideToggle",get:function(){return this._hideToggle},set:function(o){this._hideToggle=(0,Mn.Ig)(o)}},{key:"ngAfterContentInit",value:function(){var o=this;this._headers.changes.pipe((0,eo.O)(this._headers)).subscribe(function(a){o._ownHeaders.reset(a.filter(function(s){return s.panel.accordion===o})),o._ownHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._ownHeaders).withWrap().withHomeAndEnd()}},{key:"_handleHeaderKeydown",value:function(o){this._keyManager.onKeydown(o)}},{key:"_handleHeaderFocus",value:function(o){this._keyManager.updateActiveItem(o)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._ownHeaders.destroy()}}]),e}(dk);El.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(El)))(e||El)}}(),El.\u0275dir=t.lG2({type:El,selectors:[["mat-accordion"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,uu,5),2&r)&&(t.iGM(o=t.CRH())&&(e._headers=o))},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-accordion-multi",e.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:$G,useExisting:El}]),t.qOj]});var fk=(0,B.Z)(function n(){(0,H.Z)(this,n)});fk.\u0275fac=function(r){return new(r||fk)},fk.\u0275mod=t.oAB({type:fk}),fk.\u0275inj=t.cJS({imports:[ge.ez,Vt.BQ,Y0,uo.eL]});var YD=function(){function n(r){(0,H.Z)(this,n),this.httpClient=r,this.thirdpartylicenses="",this.releasenotes=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe(function(i){e.thirdpartylicenses=i.replace(new RegExp("\n","g"),"<br />")},function(i){404===i.status&&(e.thirdpartylicenses="Download Solar-PuTTY")}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe(function(i){e.releasenotes=i.replace(new RegExp("\n","g"),"<br />")})}},{key:"goToDocumentation",value:function(){window.location.href="https://docs.gns3.com/docs/"}}]),n}();YD.\u0275fac=function(r){return new(r||YD)(t.Y36(sc.eN))},YD.\u0275cmp=t.Xpm({type:YD,selectors:[["app-help"]],decls:39,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],["href","https://downloads.solarwinds.com/solarwinds/GNS3/Solar-PuTTY/Solar-PuTTY-Optional.exe"],[3,"innerHTML"],["mat-button","","color","primary",1,"full-width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Help"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel")(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Useful shortcuts "),t.qZA()(),t.TgZ(11,"mat-list")(12,"mat-list-item"),t._uU(13," ctrl + + to zoom in "),t.qZA(),t.TgZ(14,"mat-list-item"),t._uU(15," ctrl + - to zoom out "),t.qZA(),t.TgZ(16,"mat-list-item"),t._uU(17," ctrl + 0 to reset zoom "),t.qZA(),t.TgZ(18,"mat-list-item"),t._uU(19," ctrl + h to hide toolbar "),t.qZA(),t.TgZ(20,"mat-list-item"),t._uU(21," ctrl + a to select all items on map "),t.qZA(),t.TgZ(22,"mat-list-item"),t._uU(23," ctrl + shift + a to deselect all items on map "),t.qZA(),t.TgZ(24,"mat-list-item"),t._uU(25," ctrl + shift + s to go to preferences "),t.qZA()()(),t.TgZ(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title"),t._uU(29," Third party components "),t.qZA()(),t.TgZ(30,"a",4),t._UZ(31,"div",5),t.qZA()(),t.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),t._uU(35," Release notes "),t.qZA()(),t._UZ(36,"div",5),t.qZA()()(),t.TgZ(37,"button",6),t.NdJ("click",function(){return e.goToDocumentation()}),t._uU(38,"Go to documentation"),t.qZA()()()),2&r&&(t.xp6(31),t.Q6J("innerHTML",e.thirdpartylicenses,t.oJD),t.xp6(5),t.Q6J("innerHTML",e.releasenotes,t.oJD))},dependencies:[cn,pm,Aa,El,Sl,uu,Lu],styles:[".full-width[_ngcontent-%COMP%]{width:100%;margin-top:20px}a[_ngcontent-%COMP%]{color:#f8f9fa;font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400;text-decoration:none}"]});var Wa=m(4766),K0=function(){function n(r){(0,H.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"isWindows",value:function(){return"win32"===this.electronService.process.platform}},{key:"isLinux",value:function(){return"linux"===this.electronService.process.platform}},{key:"isDarwin",value:function(){return"darwin"===this.electronService.process.platform}}]),n}();K0.\u0275fac=function(r){return new(r||K0)(t.LFG(al))},K0.\u0275prov=t.Yz7({token:K0,factory:K0.\u0275fac});var q0=function(){function n(r){(0,H.Z)(this,n),this.platformService=r}return(0,B.Z)(n,[{key:"get",value:function(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}},{key:"getForWindows",value:function(){var e=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}],i={name:"SolarPuTTY",locations:["SolarPuTTY.exe","external\\SolarPuTTY.exe"],type:"web",resource:"",binary:"SolarPuTTY.exe",sudo:!1,installation_arguments:["--only-ask"],installed:!1,installer:!1};return Wa.N.solarputty_download_url&&(i.resource=Wa.N.solarputty_download_url,e.push(i)),e}},{key:"getForLinux",value:function(){return[]}},{key:"getForDarwin",value:function(){return[]}}]),n}();q0.\u0275fac=function(r){return new(r||q0)(t.LFG(K0))},q0.\u0275prov=t.Yz7({token:q0,factory:q0.\u0275fac});var J0=function(){function n(r,e){(0,H.Z)(this,n),this.electronService=r,this.externalSoftwareDefinition=e}return(0,B.Z)(n,[{key:"list",value:function(){var e=this.externalSoftwareDefinition.get(),i=this.electronService.remote.require("./installed-software.js").getInstalledSoftware(e);return e.map(function(o){return o.installed=i[o.name].length>0,o})}}]),n}();J0.\u0275fac=function(r){return new(r||J0)(t.LFG(al),t.LFG(q0))},J0.\u0275prov=t.Yz7({token:J0,factory:J0.\u0275fac});var OAe=[[["caption"]],[["colgroup"],["col"]]];function PAe(n,r){if(1&n&&(t.TgZ(0,"th",3),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.Udp("text-align",e.justify),t.xp6(1),t.hij(" ",e.headerText," ")}}function RAe(n,r){if(1&n&&(t.TgZ(0,"td",4),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Udp("text-align",i.justify),t.xp6(1),t.hij(" ",i.dataAccessor(e,i.name)," ")}}var KD=(0,B.Z)(function n(){(0,H.Z)(this,n)});KD.\u0275fac=function(r){return new(r||KD)},KD.\u0275dir=t.lG2({type:KD,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[t._Bn([{provide:Ci.k,useClass:Ci.eX}])]});var ko=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments)).stickyCssClass="mat-table-sticky",i.needsPositionStickyOnElement=!1,i}return(0,B.Z)(e)}(Hd);ko.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ko)))(e||ko)}}(),ko.\u0275cmp=t.Xpm({type:ko,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(r,e){2&r&&t.ekj("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:Ci.k,useClass:Ci.yy},{provide:Hd,useExisting:ko},{provide:z_,useExisting:ko},{provide:E1,useClass:Xf},{provide:EE,useValue:null}]),t.qOj],ngContentSelectors:["caption","colgroup, col"],decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(r,e){1&r&&(t.F$t(OAe),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ud,$f,ep,tp],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2});var To=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hc);To.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(To)))(e||To)}}(),To.\u0275dir=t.lG2({type:To,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:Hc,useExisting:To}]),t.qOj]});var Mo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jc);Mo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Mo)))(e||Mo)}}(),Mo.\u0275dir=t.lG2({type:Mo,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:jc,useExisting:Mo}]),t.qOj]});var Q0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Pu);Q0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Q0)))(e||Q0)}}(),Q0.\u0275dir=t.lG2({type:Q0,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:Pu,useExisting:Q0}]),t.qOj]});var _o=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"name",get:function(){return this._name},set:function(o){this._setNameInput(o)}},{key:"_updateColumnCssClassName",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName))}}]),e}(el);_o.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_o)))(e||_o)}}(),_o.\u0275dir=t.lG2({type:_o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:el,useExisting:_o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:_o}]),t.qOj]});var Io=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Qf);Io.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Io)))(e||Io)}}(),Io.\u0275dir=t.lG2({type:Io,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]});var pk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nh);pk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(pk)))(e||pk)}}(),pk.\u0275dir=t.lG2({type:pk,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]});var Po=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bh);Po.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Po)))(e||Po)}}(),Po.\u0275dir=t.lG2({type:Po,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]});var Ro=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Nd);Ro.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ro)))(e||Ro)}}(),Ro.\u0275dir=t.lG2({type:Ro,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:Nd,useExisting:Ro}]),t.qOj]});var X0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Bd);X0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(X0)))(e||X0)}}(),X0.\u0275dir=t.lG2({type:X0,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:Bd,useExisting:X0}]),t.qOj]});var Lo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Fd);Lo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Lo)))(e||Lo)}}(),Lo.\u0275dir=t.lG2({type:Lo,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:Fd,useExisting:Lo}]),t.qOj]});var Zo=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Uh);Zo.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Zo)))(e||Zo)}}(),Zo.\u0275cmp=t.Xpm({type:Zo,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Uh,useExisting:Zo}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var $0=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Hh);$0.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z($0)))(e||$0)}}(),$0.\u0275cmp=t.Xpm({type:$0,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:Hh,useExisting:$0}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var No=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(jh);No.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(No)))(e||No)}}(),No.\u0275cmp=t.Xpm({type:No,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:jh,useExisting:No}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Ga],encapsulation:2});var eb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._contentClassName="mat-no-data-row",i}return(0,B.Z)(e)}(ac);eb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eb)))(e||eb)}}(),eb.\u0275dir=t.lG2({type:eb,selectors:[["ng-template","matNoDataRow",""]],features:[t._Bn([{provide:ac,useExisting:eb}]),t.qOj]});var hk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(np);hk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(hk)))(e||hk)}}(),hk.\u0275cmp=t.Xpm({type:hk,selectors:[["mat-text-column"]],features:[t.qOj],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,PAe,2,3,"th",1),t.YNc(2,RAe,2,3,"td",2),t.BQk())},dependencies:[Mo,_o,To,Io,Po],encapsulation:2});var mk=(0,B.Z)(function n(){(0,H.Z)(this,n)});mk.\u0275fac=function(r){return new(r||mk)},mk.\u0275mod=t.oAB({type:mk}),mk.\u0275inj=t.cJS({imports:[rp,Vt.BQ,Vt.BQ]});var LAe=9007199254740991,ZAe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,H.Z)(this,e),(i=r.call(this))._renderData=new to.X([]),i._filter=new to.X(""),i._internalPageChanges=new In.xQ,i._renderChangesSubscription=null,i.sortingDataAccessor=function(a,s){var l=a[s];if((0,Mn.t6)(l)){var u=Number(l);return u<LAe?u:l}return l},i.sortData=function(a,s){var l=s.active,u=s.direction;return l&&""!=u?a.sort(function(d,h){var g=i.sortingDataAccessor(d,l),C=i.sortingDataAccessor(h,l),Z=typeof g,z=typeof C;Z!==z&&("number"===Z&&(g+=""),"number"===z&&(C+=""));var q=0;return null!=g&&null!=C?g>C?q=1:g<C&&(q=-1):null!=g?q=1:null!=C&&(q=-1),q*("asc"==u?1:-1)}):a},i.filterPredicate=function(a,s){var l=Object.keys(a).reduce(function(d,h){return d+a[h]+"\u25ec"},"").toLowerCase(),u=s.trim().toLowerCase();return-1!=l.indexOf(u)},i._data=new to.X(o),i._updateChangeSubscription(),i}return(0,B.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,ji.T)(this._sort.sortChange,this._sort.initialized):(0,qn.of)(null),l=this._paginator?(0,ji.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,qn.of)(null),u=this._data,d=(0,j1.aj)([u,this._filter]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._filterData(z)})),h=(0,j1.aj)([d,s]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._orderData(z)})),g=(0,j1.aj)([h,l]).pipe((0,$n.U)(function(C){var z=(0,Nn.Z)(C,1)[0];return o._pageData(z)}));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=g.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}(Ci.o2),Ap=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(ZAe);function NAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.buttonText)}}var qD=function(){function n(r){(0,H.Z)(this,n),this.electronService=r,this.installedChanged=new t.vpe,this.disabled=!1,this.readyToInstall=!0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.on(this.responseChannel,function(i,o){e.updateButton(),e.installedChanged.emit(o)})}},{key:"ngOnDestroy",value:function(){this.electronService&&this.electronService.ipcRenderer&&this.electronService.ipcRenderer.removeAllListeners(this.responseChannel)}},{key:"ngOnChanges",value:function(){this.updateButton()}},{key:"install",value:function(){this.disabled=!0,this.buttonText="Installing",this.electronService.ipcRenderer.send("installed-software-install",this.software)}},{key:"responseChannel",get:function(){return"installed-software-installed-".concat(this.software.name)}},{key:"updateButton",value:function(){this.disabled=this.software.installed,this.software.installed?this.buttonText="Installed":this.buttonText="Install"}}]),n}();qD.\u0275fac=function(r){return new(r||qD)(t.Y36(al))},qD.\u0275cmp=t.Xpm({type:qD,selectors:[["app-install-software"]],inputs:{software:"software"},outputs:{installedChanged:"installedChanged"},features:[t.TTD],decls:2,vars:2,consts:[["mat-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.install()}),t.YNc(1,NAe,2,1,"ng-container",1),t.qZA()),2&r&&(t.Q6J("disabled",e.disabled),t.xp6(1),t.Q6J("ngIf",e.readyToInstall))},dependencies:[ge.O5,cn]});var Cc=m(4068),BAe=function(r,e){return{hidden:r,lightTheme:e}},FAe=/<a href="(.*)">(.*)<\/a><br\/>(.*)<br\/>\s*<button><a .*>(.*)<\/a>\s*<\/button>/i,_k=function(){function n(r,e,i){(0,H.Z)(this,n),this.httpClient=r,this.themeService=e,this.location=i,this.isVisible=!1,this.isLightThemeEnabled=!1,this.adUrl="https://try.solarwinds.com/gns3-free-toolset-giveaway?CMP=LEC-HAD-GNS3-SW_NA_X_NP_X_X_EN_STSGA_SW-ST-20200901_ST_OF1_TRY-NWSLTR",this.adBody="Network Config Generator makes it easy configure network devices, including VLANs without opening the CLI",this.buttonLabel="Check it out!"}return(0,B.Z)(n,[{key:"hide",value:function(){this.isVisible=!1}},{key:"ngOnInit",value:function(){var e=this;this.location.path().includes("nodes")||(this.httpClient.get("https://servedbyadbutler.com/adserve/;ID=165803;size=0x0;setID=371476;type=json;").subscribe(function(i){var o,a;if(null!==(a=null===(o=null==i?void 0:i.placements)||void 0===o?void 0:o.placement_1)&&void 0!==a&&a.body)try{var s=i.placements.placement_1.body.replace(/(\r\n|\n|\r)/gm,""),l=FAe.exec(s);e.adUrl=l[1].trim(),e.adBody=l[3].trim(),e.buttonLabel=l[4].trim()}catch(u){}e.isVisible=!0},function(i){}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.themeService.themeChanged.subscribe(function(){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1}))}}]),n}();function UAe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function HAe(n,r){if(1&n&&(t.ynx(0),t._uU(1),t.BQk()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function jAe(n,r){1&n&&(t.ynx(0),t._UZ(1,"app-adbutler",14),t.BQk())}function GAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,HAe,2,1,"ng-container",13),t.YNc(2,jAe,2,0,"ng-container",13),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type),t.xp6(1),t.Q6J("ngIf","adbutler"===e.type)}}function zAe(n,r){1&n&&t._UZ(0,"mat-header-cell")}function WAe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-install-software",17),t.NdJ("installedChanged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onInstalled(a))}),t.qZA()}if(2&n){var i=t.oxw().$implicit;t.Q6J("software",i)}}function VAe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",15),t.YNc(1,WAe,1,1,"app-install-software",16),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("ngIf","adbutler"!==e.type)}}function YAe(n,r){1&n&&t._UZ(0,"mat-header-row")}function KAe(n,r){1&n&&t._UZ(0,"mat-row")}_k.\u0275fac=function(r){return new(r||_k)(t.Y36(sc.eN),t.Y36(Cc.f),t.Y36(ge.Ye))},_k.\u0275cmp=t.Xpm({type:_k,selectors:[["app-adbutler"]],decls:10,vars:8,consts:[[1,"ad",3,"ngClass"],[1,"adInnerContainer"],[1,"adBody"],["target","_blank",3,"href"],[1,"close-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2)(3,"a",3),t._uU(4),t.qZA()(),t.TgZ(5,"button")(6,"a",3),t._uU(7),t.qZA()()(),t.TgZ(8,"mat-icon",4),t.NdJ("click",function(){return e.hide()}),t._uU(9,"close"),t.qZA()()),2&r&&(t.Q6J("ngClass",t.WLB(5,BAe,!e.isVisible,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.adBody),t.xp6(2),t.Q6J("href",e.adUrl,t.LSH),t.xp6(1),t.Oqu(e.buttonLabel))},dependencies:[ge.mk,Dn],styles:[".ad[_ngcontent-%COMP%]{position:fixed;left:0;right:0;bottom:0;background-color:#a8ecff;padding-top:10px;padding-bottom:10px;font-size:12px;font-weight:700;opacity:.8}.adInnerContainer[_ngcontent-%COMP%]{margin:auto;text-align:center}.adBody[_ngcontent-%COMP%]{padding-right:16px}.close-button[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;color:#000!important}.lightTheme[_ngcontent-%COMP%]{background-color:#ddf9ff}.hidden[_ngcontent-%COMP%]{visibility:hidden}button[_ngcontent-%COMP%]{background-color:#01d4ff;margin-top:2px;border:none;outline:none;color:#fff;font-weight:700;font-size:11px;padding:5px 15px;border-radius:6px}button[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}a[_ngcontent-%COMP%]{color:#122124}"]});var JD=function(){function n(r,e){(0,H.Z)(this,n),this.installedSoftwareService=r,this.changeDetectorRef=e,this.displayedColumns=["name","actions"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.dataSource=new qAe(this.installedSoftwareService)}},{key:"onInstalled",value:function(e){this.dataSource.refresh(),this.changeDetectorRef.detectChanges()}}]),n}();JD.\u0275fac=function(r){return new(r||JD)(t.Y36(J0),t.Y36(t.sBO))},JD.\u0275cmp=t.Xpm({type:JD,selectors:[["app-installed-software"]],decls:16,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[4,"ngIf"],["theme","dark"],[2,"text-align","right"],[3,"software","installedChanged",4,"ngIf"],[3,"software","installedChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Installed software"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-table",4,5),t.ynx(8,6),t.YNc(9,UAe,2,0,"mat-header-cell",7),t.YNc(10,GAe,3,2,"mat-cell",8),t.BQk(),t.ynx(11,9),t.YNc(12,zAe,1,0,"mat-header-cell",7),t.YNc(13,VAe,2,1,"mat-cell",10),t.BQk(),t.YNc(14,YAe,1,0,"mat-header-row",11),t.YNc(15,KAe,1,0,"mat-row",12),t.qZA()()()()),2&r&&(t.xp6(6),t.Q6J("dataSource",e.dataSource),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,qD,_k]});var qAe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).installedSoftwareService=i,o.installed=new to.X([]),o}return(0,B.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}(Ci.o2),hm=(m(5561),function(){function n(r){(0,H.Z)(this,n),this.httpController=r,this.controller_id=""}return(0,B.Z)(n,[{key:"login",value:function(e,i,o){var a=(new sc.LE).set("username",i).set("password",o),s={headers:(new sc.WM).set("Content-Type","application/x-www-form-urlencoded")};return this.httpController.post(e,"/access/users/login",a,s)}},{key:"getLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me").toPromise()}},{key:"getLoggedUserRefToken",value:function(e,i){return yi(this,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.httpController.post(e,"/access/users/authenticate",{username:i.username,password:i.password}).toPromise();case 2:return s.abrupt("return",s.sent);case 3:case"end":return s.stop()}},o,this)}))}}]),n}());hm.\u0275fac=function(r){return new(r||hm)(t.LFG(mo.zw))},hm.\u0275prov=t.Yz7({token:hm,factory:hm.\u0275fac});var mm=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/version")}}]),n}();mm.\u0275fac=function(r){return new(r||mm)(t.LFG(mo.zw))},mm.\u0275prov=t.Yz7({token:mm,factory:mm.\u0275fac});var OB=m(7144),JAe=["input"],QAe=["label"],XAe=function(r){return{enterDuration:r}},eOe=new t.OlP("mat-checkbox-default-options",{providedIn:"root",factory:cie});function cie(){return{color:"accent",clickAction:"check-indeterminate"}}var tOe=0,die={color:"accent",clickAction:"check-indeterminate"},nOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return $r}),multi:!0},rOe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),iOe=(0,Vt.sb)((0,Vt.pj)((0,Vt.Kr)((0,Vt.Id)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}())))),IB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,o))._changeDetectorRef=a,h._ngZone=s,h._animationMode=u,h._options=d,h.ariaLabel="",h.ariaLabelledby=null,h.labelPosition="after",h.name=null,h.change=new t.vpe,h.indeterminateChange=new t.vpe,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||die,h.color=h.defaultColor=h._options.color||die.color,h.tabIndex=parseInt(l)||0,h.id=h._uniqueId="".concat(i).concat(++tOe),h}return(0,B.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,Mn.Ig)(o)}},{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Mn.Ig)(o);a!=this.checked&&(this._checked=a,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(o){var a=(0,Mn.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,Mn.Ig)(o),a&&(this._indeterminate?this._transitionCheckState(3):this._transitionCheckState(this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._controlValueAccessorChangeFn=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(o){var a=this._currentCheckState,s=this._getAnimationTargetElement();if(a!==o&&s&&(this._currentAnimationClass&&s.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(a,o),this._currentCheckState=o,this._currentAnimationClass.length>0)){s.classList.add(this._currentAnimationClass);var l=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){s.classList.remove(l)},1e3)})}}},{key:"_emitChangeEvent",value:function(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}},{key:"toggle",value:function(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}},{key:"_handleInputClick",value:function(){var a,o=this,s=null===(a=this._options)||void 0===a?void 0:a.clickAction;this.disabled||"noop"===s?!this.disabled&&"noop"===s&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==s&&Promise.resolve().then(function(){o._indeterminate=!1,o.indeterminateChange.emit(o._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"_onInteractionEvent",value:function(o){o.stopPropagation()}},{key:"_onBlur",value:function(){var o=this;Promise.resolve().then(function(){o._onTouched(),o._changeDetectorRef.markForCheck()})}},{key:"_getAnimationClassForCheckStateTransition",value:function(o,a){if("NoopAnimations"===this._animationMode)return"";switch(o){case 0:if(1===a)return this._animationClasses.uncheckedToChecked;if(3==a)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===a?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===a?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===a?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}},{key:"_syncIndeterminate",value:function(o){var a=this._inputElement;a&&(a.nativeElement.indeterminate=o)}}]),e}(iOe);IB.\u0275fac=function(r){t.$Z()},IB.\u0275dir=t.lG2({type:IB,viewQuery:function(r,e){var i;(1&r&&(t.Gf(JAe,5),t.Gf(QAe,5),t.Gf(Vt.wG,5)),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first),t.iGM(i=t.CRH())&&(e._labelElement=i.first),t.iGM(i=t.CRH())&&(e.ripple=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[t.qOj]});var $r=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,"mat-checkbox-",i,o,s,l,u,d))._focusMonitor=a,h._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"},h}return(0,B.Z)(e,[{key:"_createChangeEvent",value:function(o){var a=new rOe;return a.source=this,a.checked=o,a}},{key:"_getAnimationTargetElement",value:function(){return this._elementRef.nativeElement}},{key:"ngAfterViewInit",value:function(){var o=this;(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterViewInit",this).call(this),this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){a||o._onBlur()})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onInputClick",value:function(o){o.stopPropagation(),(0,dt.Z)((0,Ut.Z)(e.prototype),"_handleInputClick",this).call(this)}},{key:"focus",value:function(o,a){o?this._focusMonitor.focusVia(this._inputElement,o,a):this._inputElement.nativeElement.focus(a)}}]),e}(IB);$r.\u0275fac=function(r){return new(r||$r)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(t.R0b),t.$8M("tabindex"),t.Y36(t.QbO,8),t.Y36(eOe,8))},$r.\u0275cmp=t.Xpm({type:$r,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),t.ekj("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[t._Bn([nOe]),t.qOj],ngContentSelectors:["*"],decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onInteractionEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.qZA(),t._UZ(7,"span",7),t.TgZ(8,"span",8),t.O4$(),t.TgZ(9,"svg",9),t._UZ(10,"path",10),t.qZA(),t.kcU(),t._UZ(11,"span",11),t.qZA()(),t.TgZ(12,"span",12,13),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(14,"span",14),t._uU(15,"\xa0"),t.qZA(),t.Hsn(16),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(13);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-checkbox-inner-container-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),t.uIk("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",t.VKq(19,XAe,"NoopAnimations"===e._animationMode?0:150))}},dependencies:[Vt.wG,OB.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});var oOe={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return gk}),multi:!0},gk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(J.Zs);gk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(gk)))(e||gk)}}(),gk.\u0275dir=t.lG2({type:gk,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[t._Bn([oOe]),t.qOj]});var tb=(0,B.Z)(function n(){(0,H.Z)(this,n)});tb.\u0275fac=function(r){return new(r||tb)},tb.\u0275mod=t.oAB({type:tb}),tb.\u0275inj=t.cJS({});var nb=(0,B.Z)(function n(){(0,H.Z)(this,n)});function aOe(n,r){1&n&&t._UZ(0,"mat-icon",15)}function sOe(n,r){1&n&&t._UZ(0,"mat-icon",16)}function lOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter username"),t.qZA())}function uOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter password"),t.qZA())}function cOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Authentication was unsuccessful"),t.qZA())}function dOe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"The default username and password is admin"),t.qZA())}nb.\u0275fac=function(r){return new(r||nb)},nb.\u0275mod=t.oAB({type:nb}),nb.\u0275inj=t.cJS({imports:[Vt.si,Vt.BQ,OB.Q8,tb,Vt.BQ,tb]});var QD=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.loginService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.router=a,this.toasterService=s,this.versionService=l,this.themeService=u,this.isLightThemeEnabled=!1,this.loginError=!1,this.returnUrl="",this.isRememberMe=!1,this.isRememberMeChecked=!1,this.loginForm=new J.nJ({username:new J.p4("",[J.kI.required]),password:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e;return yi(this,void 0,void 0,Rn().mark(function i(){var a,s,o=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:a=this.route.snapshot.paramMap.get("controller_id"),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/",this.controllerService.get(parseInt(a,10)).then(function(d){o.controller=d,d.authToken&&o.router.navigate(["/controller",o.controller.id,"projects"]),o.versionService.get(o.controller).subscribe(function(h){o.version=h.version})}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,(s=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null)&&s.isRememberMe&&(this.loginForm.get("username").setValue(s.username),this.loginForm.get("password").setValue(s.password),this.isRememberMeChecked=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 yi(e,void 0,void 0,Rn().mark(function s(){var l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return(l=this.controller).authToken=a.access_token,l.username=i,l.password=o,l.tokenExpired=!1,d.next=7,this.controllerService.update(l);case 7:this.returnUrl.length<=1?this.router.navigate(["/controller",this.controller.id,"projects"]):this.router.navigateByUrl(this.returnUrl);case 8:case"end":return d.stop()}},s,this)}))},function(a){e.loginError=!0})}}},{key:"rememberMe",value:function(e){if(e.checked){var i={username:this.loginForm.get("username").value,password:this.loginForm.get("password").value,isRememberMe:e.checked};this.isRememberMeChecked=e.checked,localStorage.setItem("isRememberMe",JSON.stringify(i))}else localStorage.removeItem("isRememberMe"),this.loginForm.reset(),this.isRememberMe=e.checked}},{key:"ngDoCheck",value:function(){this.loginForm.get("username").valid&&this.loginForm.get("password").valid&&(this.isRememberMe=!0)}}]),n}();QD.\u0275fac=function(r){return new(r||QD)(t.Y36(hm),t.Y36(rr),t.Y36(Dp),t.Y36(pr),t.Y36(ur),t.Y36(Ln),t.Y36(mm),t.Y36(Cc.f))},QD.\u0275cmp=t.Xpm({type:QD,selectors:[["app-login"]],decls:28,vars:10,consts:[[1,"wrapper"],[1,"loginCard"],[1,"matCard"],[1,"loginTitle"],[1,"loginIcon"],["class","mat-icon-login","svgIcon","gns3",4,"ngIf"],["class","mat-icon-login","svgIcon","gns3black",4,"ngIf"],[3,"formGroup"],["matInput","","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","password","formControlName","password","placeholder","Password"],["color","primary",1,"margin-left",3,"disabled","checked","change"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"loginButton",3,"click"],[1,"errorMessage"],["svgIcon","gns3",1,"mat-icon-login"],["svgIcon","gns3black",1,"mat-icon-login"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),t.YNc(5,aOe,1,0,"mat-icon",5),t.YNc(6,sOe,1,0,"mat-icon",6),t.TgZ(7,"div")(8,"h1"),t._uU(9,"GNS3"),t.qZA(),t.TgZ(10,"h6"),t._uU(11),t.qZA()()()(),t.TgZ(12,"form",7)(13,"mat-form-field"),t._UZ(14,"input",8),t.YNc(15,lOe,2,0,"mat-error",9),t.qZA(),t.TgZ(16,"mat-form-field"),t._UZ(17,"input",10),t.YNc(18,uOe,2,0,"mat-error",9),t.qZA()(),t.TgZ(19,"mat-checkbox",11),t.NdJ("change",function(o){return e.rememberMe(o)}),t._uU(20,"Remember me"),t.qZA(),t.TgZ(21,"div",12)(22,"button",13),t.NdJ("click",function(){return e.login()}),t._uU(23,"Login"),t.qZA()()(),t.TgZ(24,"div",14),t.YNc(25,cOe,2,0,"mat-error",9),t.qZA(),t.TgZ(26,"div",14),t.YNc(27,dOe,2,0,"mat-error",9),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(5),t.hij("v",e.version,""),t.xp6(1),t.Q6J("formGroup",e.loginForm),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("username").hasError("required")),t.xp6(3),t.Q6J("ngIf",e.loginForm.get("password").hasError("required")),t.xp6(1),t.Q6J("disabled",!e.isRememberMe)("checked",e.isRememberMeChecked),t.xp6(6),t.Q6J("ngIf",e.loginError),t.xp6(2),t.Q6J("ngIf",e.loginError))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,ai,Dn,Kn,$r],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 XD=(0,B.Z)(function n(){(0,H.Z)(this,n)});XD.\u0275fac=function(r){return new(r||XD)},XD.\u0275cmp=t.Xpm({type:XD,selectors:[["app-page-not-found"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],["mat-button","","routerLink","/controllers"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"br"),t.TgZ(3,"h1"),t._uU(4,"404 Page not found"),t.qZA(),t.TgZ(5,"button",2),t._uU(6,"Navigate to homepage"),t.qZA()()())},dependencies:[Wo,cn],styles:["div[_ngcontent-%COMP%]{text-align:center}"]});var $D=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();$D.\u0275fac=function(r){return new(r||$D)(t.Y36(pr))},$D.\u0275cmp=t.Xpm({type:$D,selectors:[["app-built-in-preferences"]],decls:19,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Built-in templates"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Ethernet hub templates "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Ethernet switch templates "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," Cloud node templates "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/preferences"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-hubs"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/ethernet-switches"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin/cloud-nodes"))},dependencies:[Wo,cn,Dn,Hs,Aa],styles:["table[_ngcontent-%COMP%]{width:100%}.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 PB,fOe=new Uint8Array(16);function pOe(){if(!PB&&!(PB="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 PB(fOe)}var hOe=/^(?:[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 _Oe=function mOe(n){return"string"==typeof n&&hOe.test(n)},ll=[],ez=0;ez<256;++ez)ll.push((ez+256).toString(16).substr(1));var vOe=function gOe(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(ll[n[r+0]]+ll[n[r+1]]+ll[n[r+2]]+ll[n[r+3]]+"-"+ll[n[r+4]]+ll[n[r+5]]+"-"+ll[n[r+6]]+ll[n[r+7]]+"-"+ll[n[r+8]]+ll[n[r+9]]+"-"+ll[n[r+10]]+ll[n[r+11]]+ll[n[r+12]]+ll[n[r+13]]+ll[n[r+14]]+ll[n[r+15]]).toLowerCase();if(!_Oe(e))throw TypeError("Stringified UUID is invalid");return e};var ts=function yOe(n,r,e){var i=(n=n||{}).random||(n.rng||pOe)();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 vOe(i)},cu=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();cu.\u0275fac=function(r){return new(r||cu)(t.LFG(mo.zw))},cu.\u0275prov=t.Yz7({token:cu,factory:cu.\u0275fac});var xl=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getQemuTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:4,bios_image:"",boot_priority:"c",builtin:!1,category:"guest",cdrom_image:"",compute_id:"local",console_auto_start:!1,console_type:"telnet",aux_type:"none",cpu_throttling:0,cpus:1,custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",hda_disk_image:"",hda_disk_interface:"ide",hdb_disk_image:"",hdb_disk_interface:"ide",hdc_disk_image:"",hdc_disk_interface:"ide",hdd_disk_image:"",hdd_disk_interface:"ide",initrd:"",kernel_command_line:"",kernel_image:"",linked_clone:!0,mac_address:"",name:"",on_close:"power_off",options:"-nographic",platform:"",port_name_format:"Ethernet{0}",port_segment_size:0,process_priority:"normal",qemu_path:"",ram:256,symbol:"qemu_guest",template_id:"",template_type:"qemu",usage:"",replicate_network_connection_state:!0,tpm:!1,uefi:!1})}},{key:"getVpcsTemplate",value:function(){return(0,qn.of)({base_script_file:"vpcs_base_config.txt",builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"telnet",default_name_format:"PC{0}",name:"",symbol:"vpcs_guest",template_id:"",template_type:"vpcs"})}},{key:"getVirtualBoxTemplate",value:function(){return(0,qn.of)({adapter_type:"Intel PRO/1000 MT Desktop (82540EM)",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,ram:0,symbol:"vbox_guest",template_id:"",template_type:"virtualbox",usage:"",use_any_adapter:!1,vmname:""})}},{key:"getCloudNodeTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"guest",compute_id:"local",default_name_format:"Cloud{0}",name:"",ports_mapping:[],remote_console_type:"none",symbol:"cloud",template_id:"",template_type:"cloud"})}},{key:"getEthernetHubTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",default_name_format:"Hub{0}",name:"",ports_mapping:[],symbol:"hub",template_id:"",template_type:"ethernet_hub"})}},{key:"getEthernetSwitchTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"local",console_type:"telnet",default_name_format:"Switch{0}",name:"",ports_mapping:[],symbol:"ethernet_switch",template_id:"",template_type:"ethernet_switch"})}},{key:"getIosTemplate",value:function(){return(0,qn.of)({auto_delete_disks:!0,builtin:!1,category:"router",compute_id:"local",console_auto_start:!1,console_type:"telnet",aux_type:"none",default_name_format:"R{0}",disk0:0,disk1:0,exec_area:64,idlemax:500,idlepc:"",idlesleep:30,image:"",mac_addr:"",mmap:!0,name:"",nvram:128,platform:"",private_config:"",ram:128,sparsemem:!0,startup_config:"",symbol:"router",system_id:"FTX0945W0MY",template_id:"",template_type:"dynamips",usage:""})}},{key:"getVmwareTemplate",value:function(){return(0,qn.of)({adapter_type:"e1000",adapters:1,builtin:!1,category:"guest",compute_id:"local",console_auto_start:!1,console_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",first_port_name:"",headless:!1,linked_clone:!1,name:"",on_close:"power_off",port_name_format:"Ethernet{0}",port_segment_size:0,symbol:"vmware_guest",template_id:"",template_type:"vmware",usage:"",use_any_adapter:!1,vmx_path:""})}},{key:"getDockerTemplate",value:function(){return(0,qn.of)({adapters:1,builtin:!1,category:"guest",compute_id:"vm",console_auto_start:!1,console_http_path:"/",console_http_port:80,console_resolution:"1024x768",console_type:"telnet",aux_type:"none",custom_adapters:[],default_name_format:"{name}-{0}",environment:"",extra_hosts:"",image:"",name:"",start_command:"",symbol:"docker_guest",template_id:"",template_type:"docker",usage:""})}},{key:"getIouTemplate",value:function(){return(0,qn.of)({builtin:!1,category:"switch",compute_id:"vm",console_auto_start:!1,console_type:"telnet",default_name_format:"IOU{0}",ethernet_adapters:1,l1_keepalives:!1,name:"",nvram:128,path:"",private_config:"",ram:256,serial_adapters:0,startup_config:"iou_l2_base_startup-config.txt",symbol:"multilayer_switch",template_id:"",template_type:"iou",usage:"",use_default_iou_values:!0})}},{key:"list",value:function(){return(0,qn.of)([])}}]),n}();xl.\u0275fac=function(r){return new(r||xl)},xl.\u0275prov=t.Yz7({token:xl,factory:xl.\u0275fac});var sf=m(5542),bOe=["input"],COe=function(r){return{enterDuration:r}},kOe=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function TOe(){return{color:"accent"}}});var fie=0,MOe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return ns}),multi:!0},pie=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.value=e}),hie=new t.OlP("MatRadioGroup"),e2=function(){function n(r){(0,H.Z)(this,n),this._changeDetector=r,this._value=null,this._name="mat-radio-group-".concat(fie++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new t.vpe}return(0,B.Z)(n,[{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=(0,Mn.Ig)(e),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(e){this._required=(0,Mn.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 pie(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach(function(e){return e._markForCheck()})}},{key:"writeValue",value:function(e){this.value=e,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetector.markForCheck()}}]),n}();e2.\u0275fac=function(r){return new(r||e2)(t.Y36(t.sBO))},e2.\u0275dir=t.lG2({type:e2,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}});var ns=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(e2);ns.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(ns)))(e||ns)}}(),ns.\u0275dir=t.lG2({type:ns,selectors:[["mat-radio-group"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,js,5),2&r)&&(t.iGM(o=t.CRH())&&(e._radios=o))},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([MOe,{provide:hie,useExisting:ns}]),t.qOj]});var SOe=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r}),RB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,H.Z)(this,e),(g=r.call(this,o))._changeDetector=a,g._focusMonitor=s,g._radioDispatcher=l,g._providerOverride=d,g._uniqueId="mat-radio-".concat(++fie),g.id=g._uniqueId,g.change=new t.vpe,g._checked=!1,g._value=null,g._removeUniqueSelectionListener=function(){},g.radioGroup=i,g._noopAnimations="NoopAnimations"===u,h&&(g.tabIndex=(0,Mn.su)(h,0)),g._removeUniqueSelectionListener=l.listen(function(C,Z){C!==g.id&&Z===g.name&&(g.checked=!1)}),g}return(0,B.Z)(e,[{key:"checked",get:function(){return this._checked},set:function(o){var a=(0,Mn.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,Mn.Ig)(o))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(o){this._required=(0,Mn.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 pie(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,Vt.Kr)((0,Vt.sb)(SOe)));RB.\u0275fac=function(r){t.$Z()},RB.\u0275dir=t.lG2({type:RB,viewQuery:function(r,e){var i;(1&r&&t.Gf(bOe,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]});var js=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,H.Z)(this,e),r.call(this,i,o,a,s,l,u,d,h)}return(0,B.Z)(e)}(RB);js.\u0275fac=function(r){return new(r||js)(t.Y36(hie,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Yr.tE),t.Y36(Ci.A8),t.Y36(t.QbO,8),t.Y36(kOe,8),t.$8M("tabindex"))},js.\u0275cmp=t.Xpm({type:js,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e._inputElement.nativeElement.focus()}),2&r&&(t.uIk("tabindex",null)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable",e._noopAnimations)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:["*"],decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(a){return e._onInputInteraction(a)})("click",function(a){return e._onInputClick(a)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("for",e.inputId),t.xp6(5),t.Q6J("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("required",e.required),t.uIk("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,COe,e._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==e.labelPosition)}},dependencies:[Vt.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0});var vk=(0,B.Z)(function n(){(0,H.Z)(this,n)});function xOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}vk.\u0275fac=function(r){return new(r||vk)},vk.\u0275mod=t.oAB({type:vk}),vk.\u0275inj=t.cJS({imports:[Vt.si,Vt.BQ,Vt.BQ]});var t2=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"addTemplate",value:function(){var i,e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.templateMocksService.getCloudNodeTemplate().subscribe(function(o){i=o}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local",this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(o){e.goBack()}))}}]),n}();t2.\u0275fac=function(r){return new(r||t2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(ur),t.Y36(Ln),t.Y36(xl),t.Y36(J.QS),t.Y36(sf.X))},t2.\u0275cmp=t.Xpm({type:t2,selectors:[["app-cloud-nodes-add-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["formControlName","templateName","matInput","","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,xOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New cloud node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the cloud node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.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 wc=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getCategoriesForCloudNodes",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForCloudNodes",value:function(){return["telnet","vnc","spice","http","https","none"]}},{key:"getCategoriesForEthernetHubs",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getCategoriesForEthernetSwitches",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleTypesForEthernetSwitches",value:function(){return["telnet","none"]}},{key:"getPortTypesForEthernetSwitches",value:function(){return["access","dot1q","qinq"]}},{key:"getEtherTypesForEthernetSwitches",value:function(){return["0x8100","0x88A8","0x9100","0x9200"]}}]),n}();wc.\u0275fac=function(r){return new(r||wc)},wc.\u0275prov=t.Yz7({token:wc,factory:wc.\u0275fac});var DOe=m(5154),Op=function(){function n(r){(0,H.Z)(this,n),this.httpController=r,this.symbols=new to.X([]),this.maximumSymbolSize=80}return(0,B.Z)(n,[{key:"getMaximumSymbolSize",value:function(){return this.maximumSymbolSize}},{key:"get",value:function(e){return this.symbols.getValue().find(function(i){return i.symbol_id===e})}},{key:"getDimensions",value:function(e,i){var o=encodeURI(i);return this.httpController.get(e,"/symbols/".concat(o,"/dimensions"))}},{key:"scaleDimensionsForNode",value:function(e){var i=e.width>e.height?this.maximumSymbolSize/e.width:this.maximumSymbolSize/e.height;return{width:e.width*i,height:e.height*i}}},{key:"getByFilename",value:function(e){return this.symbols.getValue().find(function(i){return i.filename===e})}},{key:"add",value:function(e,i,o){return this.cache=null,this.httpController.post(e,"/symbols/".concat(i,"/raw"),o)}},{key:"load",value:function(e){return this.httpController.get(e,"/symbols")}},{key:"list",value:function(e){return this.cache||(this.cache=this.load(e).pipe((0,DOe.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(Wa.N.current_version,"/symbols/").concat(i.symbol,"/raw")}}]),n}();Op.\u0275fac=function(r){return new(r||Op)(t.LFG(mo.zw))},Op.\u0275prov=t.Yz7({token:Op,factory:Op.\u0275fac});var n2=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();n2.\u0275fac=function(r){return new(r||n2)},n2.\u0275pipe=t.Yjl({name:"filenamefilter",type:n2,pure:!0});var OOe=function(r){return{buttonSelected:r}},IOe=function(r){return{imageSelected:r}};function POe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"button",13),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.setSelected(l.symbol_id))}),t._UZ(2,"img",14),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngClass",t.VKq(3,OOe,o.isSelected===i.symbol_id)),t.xp6(1),t.Q6J("ngClass",t.VKq(5,IOe,o.isSelected===i.symbol_id))("src",o.getImageSourceForTemplate(i.symbol_id),t.LSH)}}var ROe=function(){return{standalone:!0}},yk=function(){function n(r){(0,H.Z)(this,n),this.symbolService=r,this.symbolChanged=new t.vpe,this.symbols=[],this.filteredSymbols=[],this.isSelected="",this.searchText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.isSelected=this.symbol,this.loadSymbols()}},{key:"setFilter",value:function(e){this.filteredSymbols="all"===e?this.symbols:"builtin"===e?this.symbols.filter(function(i){return i.builtin}):this.symbols.filter(function(i){return!i.builtin})}},{key:"setSelected",value:function(e){this.isSelected=e,this.symbolChanged.emit(this.isSelected)}},{key:"loadSymbols",value:function(){var e=this;this.symbolService.list(this.controller).subscribe(function(i){e.symbols=i,e.filteredSymbols=i})}},{key:"uploadSymbolFile",value:function(e){this.readSymbolFile(e.target)}},{key:"readSymbolFile",value:function(e){var i=this,o=e.files[0],a=e.files[0].name,s=new FileReader,l=new Image;s.onloadend=function(){var u=s.result,d=i.createSvgFileForImage(u,l);i.symbolService.add(i.controller,a,d).subscribe(function(){i.loadSymbols()})},l.onload=function(){s.readAsDataURL(o)},l.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"getImageSourceForTemplate",value:function(e){return"".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Wa.N.current_version,"/symbols/").concat(e,"/raw")}}]),n}();yk.\u0275fac=function(r){return new(r||yk)(t.Y36(Op))},yk.\u0275cmp=t.Xpm({type:yk,selectors:[["app-symbols"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChanged:"symbolChanged"},decls:20,vars:7,consts:[[1,"menu"],["aria-label","Select an option",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["value","3",3,"click"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["mat-button","",3,"click"],[1,"example-full-width"],["matInput","","placeholder","Search by filename",3,"ngModel","ngModelOptions","ngModelChange"],[1,"wrapper"],["class","buttonWrapper",4,"ngFor","ngForOf"],[1,"buttonWrapper"],[1,"button",3,"ngClass","click"],["lazyimg","",1,"image",3,"ngClass","src"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"div",0)(1,"mat-radio-group",1)(2,"mat-radio-button",2),t.NdJ("click",function(){return e.setFilter("all")}),t._uU(3,"All symbols"),t.qZA(),t.TgZ(4,"mat-radio-button",3),t.NdJ("click",function(){return e.setFilter("builtin")}),t._uU(5,"Built-in symbols"),t.qZA(),t.TgZ(6,"mat-radio-button",4),t.NdJ("click",function(){return e.setFilter("custom")}),t._uU(7,"Custom symbols"),t.qZA()(),t.TgZ(8,"input",5,6),t.NdJ("change",function(a){return e.uploadSymbolFile(a)}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(9);return t.KtG(a.click())}),t.TgZ(11,"mat-icon"),t._uU(12,"add"),t.qZA(),t._uU(13," Add symbol "),t.qZA()(),t.TgZ(14,"form")(15,"mat-form-field",8)(16,"input",9),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()()(),t.TgZ(17,"div",10),t.YNc(18,POe,3,7,"div",11),t.ALo(19,"filenamefilter"),t.qZA()}2&r&&(t.xp6(16),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(6,ROe)),t.xp6(2),t.Q6J("ngForOf",t.xi3(19,3,e.filteredSymbols,e.searchText)))},dependencies:[ge.mk,ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,cn,Dn,Kn,ns,js,n2],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 Zu=function(){function n(){(0,H.Z)(this,n),this.symbolChangedEmitter=new t.vpe,this.chosenSymbol=""}return(0,B.Z)(n,[{key:"symbolChanged",value:function(e){this.chosenSymbol=e}},{key:"chooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.chosenSymbol)}},{key:"cancelChooseSymbol",value:function(){this.symbolChangedEmitter.emit(this.symbol)}}]),n}();function LOe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function ZOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function NOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function BOe(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"div",11),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function FOe(n,r){if(1&n&&(t.TgZ(0,"mat-option",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function UOe(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"div",11),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function HOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Name "),t.qZA())}function jOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function GOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Local port "),t.qZA())}function zOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rport," ")}}function WOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Type "),t.qZA())}function VOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.rhost," ")}}function YOe(n,r){1&n&&(t.TgZ(0,"th",46),t._uU(1," Remote port "),t.qZA())}function KOe(n,r){if(1&n&&(t.TgZ(0,"td",47),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.lport," ")}}function qOe(n,r){1&n&&t._UZ(0,"tr",48)}function JOe(n,r){1&n&&t._UZ(0,"tr",49)}function QOe(n,r){if(1&n&&(t.TgZ(0,"table",37),t.ynx(1,38),t.YNc(2,HOe,2,0,"th",39),t.YNc(3,jOe,2,1,"td",40),t.BQk(),t.ynx(4,41),t.YNc(5,GOe,2,0,"th",39),t.YNc(6,zOe,2,1,"td",40),t.BQk(),t.ynx(7,42),t.YNc(8,WOe,2,0,"th",39),t.YNc(9,VOe,2,1,"td",40),t.BQk(),t.ynx(10,43),t.YNc(11,YOe,2,0,"th",39),t.YNc(12,KOe,2,1,"td",40),t.BQk(),t.YNc(13,qOe,1,0,"tr",44),t.YNc(14,JOe,1,0,"tr",45),t.qZA()),2&n){var e=t.oxw(2);t.Q6J("dataSource",e.dataSourceUdp),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function XOe(n,r){1&n&&t._UZ(0,"br")}Zu.\u0275fac=function(r){return new(r||Zu)},Zu.\u0275cmp=t.Xpm({type:Zu,selectors:[["app-symbols-menu"]],inputs:{controller:"controller",symbol:"symbol"},outputs:{symbolChangedEmitter:"symbolChangedEmitter"},decls:11,vars:2,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"top-button",3,"click"],[1,"default-content"],[3,"controller","symbol","symbolChanged"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Symbol selection"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.cancelChooseSymbol()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.chooseSymbol()}),t._uU(8,"Choose symbol"),t.qZA()()(),t.TgZ(9,"div",6)(10,"app-symbols",7),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()()),2&r&&(t.xp6(10),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[cn,yk],styles:["table[_ngcontent-%COMP%]{width:100%}.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 $Oe=function(){return{standalone:!0}};function eIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General "),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.name=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.symbol=a)}),t.qZA()(),t.TgZ(12,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(13,"Choose symbol"),t.qZA(),t._UZ(14,"br")(15,"br"),t.TgZ(16,"mat-form-field",11)(17,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.category=a)}),t.YNc(18,ZOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(19,"mat-form-field",18)(20,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.console_type=a)}),t.YNc(21,NOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(22,"mat-form-field",11)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_host=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",11)(25,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_port=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",11)(27,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(28,"mat-expansion-panel")(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Ethernet interfaces "),t.qZA()(),t.YNc(32,BOe,5,1,"div",23),t.TgZ(33,"mat-form-field",18)(34,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(35,FOe,2,2,"mat-option",17),t.qZA()(),t.TgZ(36,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(37,"Add"),t.qZA()(),t.TgZ(38,"mat-expansion-panel")(39,"mat-expansion-panel-header")(40,"mat-panel-title"),t._uU(41," TAP interfaces "),t.qZA()(),t.YNc(42,UOe,5,1,"div",23),t.TgZ(43,"mat-form-field",11)(44,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(45,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(46,"Add"),t.qZA()(),t.TgZ(47,"mat-expansion-panel")(48,"mat-expansion-panel-header")(49,"mat-panel-title"),t._uU(50," UDP tunnels "),t.qZA()(),t.YNc(51,QOe,15,3,"table",27),t.YNc(52,XOe,1,0,"br",28),t.TgZ(53,"mat-form-field",11)(54,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.name=a)}),t.qZA()(),t.TgZ(55,"mat-form-field",11)(56,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.lport=a)}),t.qZA()(),t.TgZ(57,"mat-form-field",11)(58,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rhost=a)}),t.qZA()(),t.TgZ(59,"mat-form-field",11)(60,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.newPort.rport=a)}),t.qZA()(),t.TgZ(61,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddUdpInterface())}),t._uU(62,"Add"),t.qZA()(),t.TgZ(63,"mat-expansion-panel")(64,"mat-expansion-panel-header")(65,"mat-panel-title"),t._uU(66," Usage "),t.qZA()(),t.TgZ(67,"mat-form-field",11)(68,"textarea",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.cloudNodeTemplate.usage=a)}),t.qZA()()()(),t.TgZ(69,"div",34)(70,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(71,"Cancel"),t.qZA(),t.TgZ(72,"button",35),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(73,"Save"),t.qZA(),t._UZ(74,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(7),t.Q6J("ngModel",i.cloudNodeTemplate.name),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.cloudNodeTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.cloudNodeTemplate.remote_console_http_path),t.xp6(5),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,$Oe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(7),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(7),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",i.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",i.newPort.name),t.xp6(2),t.Q6J("ngModel",i.newPort.lport),t.xp6(2),t.Q6J("ngModel",i.newPort.rhost),t.xp6(2),t.Q6J("ngModel",i.newPort.rport),t.xp6(8),t.Q6J("ngModel",i.cloudNodeTemplate.usage)}}function tIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",50),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.cloudNodeTemplate.symbol)}}var nIe=function(r){return{shadowed:r}},r2=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.builtInTemplatesConfigurationService=a,this.router=s,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["name","lport","rhost","rport"],this.dataSourceUdp=[],this.newPort={name:"",port_number:0}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.cloudNodeTemplate=s,e.portsMappingEthernet=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"ethernet"===l.type}),e.portsMappingTap=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"tap"===l.type}),e.portsMappingUdp=e.cloudNodeTemplate.ports_mapping.filter(function(l){return"udp"===l.type}),e.dataSourceUdp=e.portsMappingUdp})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","cloud-nodes"])}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForCloudNodes(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onAddUdpInterface",value:function(){this.portsMappingUdp.push(this.newPort),this.dataSourceUdp=(0,pn.Z)(this.portsMappingUdp),this.newPort={name:"",port_number:0}}},{key:"onSave",value:function(){var e=this;this.cloudNodeTemplate.ports_mapping=[].concat((0,pn.Z)(this.portsMappingEthernet),(0,pn.Z)(this.portsMappingTap)),this.builtInTemplatesService.saveTemplate(this.controller,this.cloudNodeTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.cloudNodeTemplate.symbol=e}}]),n}();function rIe(n,r){}r2.\u0275fac=function(r){return new(r||r2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(Ln),t.Y36(wc),t.Y36(ur))},r2.\u0275cmp=t.Xpm({type:r2,selectors:[["app-cloud-nodes-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"],[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"],["mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","Remote port",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,LOe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud node template configuration"),t.qZA()()()(),t.YNc(8,eIe,75,24,"div",7),t.qZA(),t.YNc(9,tIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,nIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.cloudNodeTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.cloudNodeTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.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=(0,B.Z)(function n(){(0,H.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0});var rb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,H.Z)(this,e),(g=r.call(this))._elementRef=i,g._focusTrapFactory=o,g._config=s,g._interactivityChecker=l,g._ngZone=u,g._overlayRef=d,g._focusMonitor=h,g._elementFocusedBeforeDialogWasOpened=null,g._closeInteractionType=null,g.attachDomPortal=function(C){g._portalOutlet.hasAttached();var Z=g._portalOutlet.attachDomPortal(C);return g._contentAttached(),Z},g._ariaLabelledBy=g._config.ariaLabelledBy||null,g._document=a,g}return(0,B.Z)(e,[{key:"_contentAttached",value:function(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}},{key:"_captureInitialFocus",value:function(){this._trapFocus()}},{key:"ngOnDestroy",value:function(){this._restoreFocus()}},{key:"attachComponentPortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),a}},{key:"attachTemplatePortal",value:function(o){this._portalOutlet.hasAttached();var a=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),a}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(o,a){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var s=function l(){o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",s),o.addEventListener("mousedown",s)})),o.focus(a)}},{key:"_focusByCssSelector",value:function(o,a){var s=this._elementRef.nativeElement.querySelector(o);s&&this._forceFocus(s,a)}},{key:"_trapFocus",value:function(){var o=this,a=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||a.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(s){s||o._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var o=this._config.restoreFocus,a=null;if("string"==typeof o?a=this._document.querySelector(o):"boolean"==typeof o?a=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(a=o),this._config.restoreFocus&&a&&"function"==typeof a.focus){var s=(0,Ii.ht)(),l=this._elementRef.nativeElement;(!s||s===this._document.body||s===l||l.contains(s))&&(this._focusMonitor?(this._focusMonitor.focusVia(a,this._closeInteractionType),this._closeInteractionType=null):a.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var o=this._elementRef.nativeElement,a=(0,Ii.ht)();return o===a||o.contains(a)}},{key:"_initializeFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,Ii.ht)())}},{key:"_handleBackdropClicks",value:function(){var o=this;this._overlayRef.backdropClick().subscribe(function(){o._config.disableClose&&o._recaptureFocus()})}}]),e}(uo.en);rb.\u0275fac=function(r){return new(r||rb)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(i2),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(xi.Iu),t.Y36(Yr.tE))},rb.\u0275cmp=t.Xpm({type:rb,selectors:[["cdk-dialog-container"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(uo.Pl,7),2&r)&&(t.iGM(i=t.CRH())&&(e._portalOutlet=i.first))},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,e){2&r&&t.uIk("id",e._config.id||null)("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null)},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,rIe,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});var tz=function(){function n(r,e){var i=this;(0,H.Z)(this,n),this.overlayRef=r,this.config=e,this.closed=new In.xQ,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(function(o){o.keyCode===Sr.hY&&!i.disableClose&&!(0,Sr.Vb)(o)&&(o.preventDefault(),i.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(function(){i.disableClose||i.close(void 0,{focusOrigin:"mouse"})})}return(0,B.Z)(n,[{key:"close",value:function(e,i){if(this.containerInstance){var o=this.closed;this.containerInstance._closeInteractionType=(null==i?void 0:i.focusOrigin)||"program",this.overlayRef.dispose(),o.next(e),o.complete(),this.componentInstance=this.containerInstance=null}}},{key:"updatePosition",value:function(){return this.overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.overlayRef.updateSize({width:e,height:i}),this}},{key:"addPanelClass",value:function(e){return this.overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this.overlayRef.removePanelClass(e),this}}]),n}(),mie=new t.OlP("DialogScrollStrategy"),_ie=new t.OlP("DialogData"),iIe=new t.OlP("DefaultDialogConfig");var aIe={provide:mie,deps:[xi.aV],useFactory:function oIe(n){return function(){return n.scrollStrategies.block()}}},sIe=0,_m=function(){function n(r,e,i,o,a,s){var l=this;(0,H.Z)(this,n),this._overlay=r,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new In.xQ,this._afterOpenedAtThisLevel=new In.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,gD.P)(function(){return l.openDialogs.length?l._getAfterAllClosed():l._getAfterAllClosed().pipe((0,eo.O)(void 0))}),this._scrollStrategy=s}return(0,B.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"open",value:function(e,i){var o=this,a=this._defaultOptions||new i2;(i=Object.assign(Object.assign({},a),i)).id=i.id||"cdk-dialog-".concat(sIe++),i.id&&this.getDialogById(i.id);var s=this._getOverlayConfig(i),l=this._overlay.create(s),u=new tz(l,i),d=this._attachContainer(l,u,i);return u.containerInstance=d,this._attachDialogContent(e,u,d,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(function(){return o._removeOpenDialog(u,!0)}),this.afterOpened.next(u),u}},{key:"closeAll",value:function(){nz(this.openDialogs,function(e){return e.close()})}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){var e=this;nz(this._openDialogsAtThisLevel,function(i){!1===i.config.closeOnDestroy&&e._removeOpenDialog(i,!1)}),nz(this._openDialogsAtThisLevel,function(i){return i.close()}),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}},{key:"_getOverlayConfig",value:function(e){var i=new xi.X_({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}},{key:"_attachContainer",value:function(e,i,o){var a,u,s=o.injector||(null===(a=o.viewContainerRef)||void 0===a?void 0:a.injector),l=[{provide:i2,useValue:o},{provide:tz,useValue:i},{provide:xi.Iu,useValue:e}];o.container?"function"==typeof o.container?u=o.container:(u=o.container.type,l.push.apply(l,(0,pn.Z)(o.container.providers(o)))):u=rb;var d=new uo.C5(u,o.viewContainerRef,t.zs3.create({parent:s||this._injector,providers:l}),o.componentFactoryResolver);return e.attach(d).instance}},{key:"_attachDialogContent",value:function(e,i,o,a){if(e instanceof t.Rgc){var s=this._createInjector(a,i,o,void 0),l={$implicit:a.data,dialogRef:i};a.templateContext&&(l=Object.assign(Object.assign({},l),"function"==typeof a.templateContext?a.templateContext():a.templateContext)),o.attachTemplatePortal(new uo.UE(e,null,l,s))}else{var u=this._createInjector(a,i,o,this._injector),d=o.attachComponentPortal(new uo.C5(e,a.viewContainerRef,u,a.componentFactoryResolver));i.componentInstance=d.instance}}},{key:"_createInjector",value:function(e,i,o,a){var s,l=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),u=[{provide:_ie,useValue:e.data},{provide:tz,useValue:i}];return e.providers&&("function"==typeof e.providers?u.push.apply(u,(0,pn.Z)(e.providers(i,e,o))):u.push.apply(u,(0,pn.Z)(e.providers))),e.direction&&(!l||!l.get(Ls.Is,null,t.XFs.Optional))&&u.push({provide:Ls.Is,useValue:{value:e.direction,change:(0,qn.of)()}}),t.zs3.create({parent:l||a,providers:u})}},{key:"_removeOpenDialog",value:function(e,i){var o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(a,s){a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var i=e.parentElement.children,o=i.length-1;o>-1;o--){var a=i[o];a!==e&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}]),n}();function nz(n,r){for(var e=n.length;e--;)r(n[e])}_m.\u0275fac=function(r){return new(r||_m)(t.LFG(xi.aV),t.LFG(t.zs3),t.LFG(iIe,8),t.LFG(_m,12),t.LFG(xi.Xj),t.LFG(mie))},_m.\u0275prov=t.Yz7({token:_m,factory:_m.\u0275fac});var ib=(0,B.Z)(function n(){(0,H.Z)(this,n)});function lIe(n,r){}ib.\u0275fac=function(r){return new(r||ib)},ib.\u0275mod=t.oAB({type:ib}),ib.\u0275inj=t.cJS({providers:[_m,aIe],imports:[xi.U8,uo.eL,Yr.rt,uo.eL]});var bk={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},uIe={dialogContainer:(0,Rt.X$)("dialogContainer",[(0,Rt.SB)("void, exit",(0,Rt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Rt.SB)("enter",(0,Rt.oB)({transform:"none"})),(0,Rt.eR)("* => enter",(0,Rt.ru)([(0,Rt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({transform:"none",opacity:1})),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]),bk),(0,Rt.eR)("* => void, * => exit",(0,Rt.ru)([(0,Rt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Rt.oB)({opacity:0})),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]),bk)])},LB=(0,B.Z)(function n(){(0,H.Z)(this,n),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=bk.params.enterAnimationDuration,this.exitAnimationDuration=bk.params.exitAnimationDuration}),o2=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,H.Z)(this,e),(g=r.call(this,i,o,a,s,l,u,d,h))._animationStateChanged=new t.vpe,g}return(0,B.Z)(e,[{key:"_captureInitialFocus",value:function(){this._config.delayFocusTrap||this._trapFocus()}},{key:"_openAnimationDone",value:function(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}]),e}(rb);o2.\u0275fac=function(r){return new(r||o2)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(LB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(xi.Iu),t.Y36(Yr.tE))},o2.\u0275cmp=t.Xpm({type:o2,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(r,e){},encapsulation:2});var a2=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g){var C;return(0,H.Z)(this,e),(C=r.call(this,i,o,a,s,l,u,d,g))._changeDetectorRef=h,C._state="enter",C}return(0,B.Z)(e,[{key:"_onAnimationDone",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._openAnimationDone(s):"exit"===a&&this._animationStateChanged.next({state:"closed",totalTime:s})}},{key:"_onAnimationStart",value:function(o){var a=o.toState,s=o.totalTime;"enter"===a?this._animationStateChanged.next({state:"opening",totalTime:s}):("exit"===a||"void"===a)&&this._animationStateChanged.next({state:"closing",totalTime:s})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_getAnimationState",value:function(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||bk.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||bk.params.exitAnimationDuration}}}}]),e}(o2);a2.\u0275fac=function(r){return new(r||a2)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(LB),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(xi.Iu),t.Y36(t.sBO),t.Y36(Yr.tE))},a2.\u0275cmp=t.Xpm({type:a2,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(r,e){1&r&&t.WFA("@dialogContainer.start",function(o){return e._onAnimationStart(o)})("@dialogContainer.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.Ikx("id",e._config.id),t.uIk("aria-modal",e._config.ariaModal)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),t.d8E("@dialogContainer",e._getAnimationState()))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,lIe,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[uIe.dialogContainer]}});var cr=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this._ref=r,this._containerInstance=i,this._afterOpened=new In.xQ,this._beforeClosed=new In.xQ,this._state=0,this.disableClose=e.disableClose,this.id=r.id,i._animationStateChanged.pipe((0,ti.h)(function(a){return"opened"===a.state}),(0,Ei.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,ti.h)(function(a){return"closed"===a.state}),(0,Ei.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._finishDialogClose()}),r.overlayRef.detachments().subscribe(function(){o._beforeClosed.next(o._result),o._beforeClosed.complete(),o._finishDialogClose()}),(0,ji.T)(this.backdropClick(),this.keydownEvents().pipe((0,ti.h)(function(a){return a.keyCode===Sr.hY&&!o.disableClose&&!(0,Sr.Vb)(a)}))).subscribe(function(a){o.disableClose||(a.preventDefault(),gie(o,"keydown"===a.type?"keyboard":"mouse"))})}return(0,B.Z)(n,[{key:"close",value:function(e){var i=this;this._result=e,this._containerInstance._animationStateChanged.pipe((0,ti.h)(function(o){return"closing"===o.state}),(0,Ei.q)(1)).subscribe(function(o){i._beforeClosed.next(e),i._beforeClosed.complete(),i._ref.overlayRef.detachBackdrop(),i._closeFallbackTimeout=setTimeout(function(){return i._finishDialogClose()},o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._ref.closed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}},{key:"updatePosition",value:function(e){var i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._ref.updateSize(e,i),this}},{key:"addPanelClass",value:function(e){return this._ref.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._ref.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}]),n}();function gie(n,r,e){return n._closeInteractionType=r,n.close(e)}var So=new t.OlP("MatDialogData"),cIe=new t.OlP("mat-dialog-default-options"),vie=new t.OlP("mat-dialog-scroll-strategy");var fIe={provide:vie,deps:[xi.aV],useFactory:function dIe(n){return function(){return n.scrollStrategies.block()}}},pIe=0,s2=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,H.Z)(this,n),this._overlay=r,this._defaultOptions=i,this._parentDialog=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new In.xQ,this._afterOpenedAtThisLevel=new In.xQ,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,gD.P)(function(){return g.openDialogs.length?g._getAfterAllClosed():g._getAfterAllClosed().pipe((0,eo.O)(void 0))}),this._scrollStrategy=s,this._dialog=e.get(_m)}return(0,B.Z)(n,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,i){var a,o=this;(i=Object.assign(Object.assign({},this._defaultOptions||new LB),i)).id=i.id||"".concat(this._idPrefix).concat(pIe++),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();var s=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:function(){return[{provide:LB,useValue:i},{provide:i2,useValue:i}]}},templateContext:function(){return{dialogRef:a}},providers:function(u,d,h){return(a=new o._dialogRefConstructor(u,i,h)).updatePosition(null==i?void 0:i.position),[{provide:o._dialogContainerType,useValue:h},{provide:o._dialogDataToken,useValue:d.data},{provide:o._dialogRefConstructor,useValue:a}]}}));return a.componentInstance=s.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(function(){var l=o.openDialogs.indexOf(a);l>-1&&(o.openDialogs.splice(l,1),o.openDialogs.length||o._getAfterAllClosed().next())}),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(i){return i.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_closeDialogs",value:function(e){for(var i=e.length;i--;)e[i].close()}}]),n}();s2.\u0275fac=function(r){t.$Z()},s2.\u0275prov=t.Yz7({token:s2,factory:s2.\u0275fac});var jr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){return(0,H.Z)(this,e),r.call(this,i,o,s,u,d,l,cr,a2,So,h)}return(0,B.Z)(e)}(s2);jr.\u0275fac=function(r){return new(r||jr)(t.LFG(xi.aV),t.LFG(t.zs3),t.LFG(ge.Ye,8),t.LFG(cIe,8),t.LFG(vie),t.LFG(jr,12),t.LFG(xi.Xj),t.LFG(t.QbO,8))},jr.\u0275prov=t.Yz7({token:jr,factory:jr.\u0275fac});var hIe=0,Eg=function(){function n(r,e,i){(0,H.Z)(this,n),this.dialogRef=r,this._elementRef=e,this._dialog=i,this.type="button"}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=yie(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){gie(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}]),n}();Eg.\u0275fac=function(r){return new(r||Eg)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(jr))},Eg.\u0275dir=t.lG2({type:Eg,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._onButtonClick(o)}),2&r&&t.uIk("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[t.TTD]});var Cr=function(){function n(r,e,i){(0,H.Z)(this,n),this._dialogRef=r,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-".concat(hIe++)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=yie(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var i=e._dialogRef._containerInstance;i&&!i._ariaLabelledBy&&(i._ariaLabelledBy=e.id)})}}]),n}();Cr.\u0275fac=function(r){return new(r||Cr)(t.Y36(cr,8),t.Y36(t.SBq),t.Y36(jr))},Cr.\u0275dir=t.lG2({type:Cr,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]});var du=(0,B.Z)(function n(){(0,H.Z)(this,n)});du.\u0275fac=function(r){return new(r||du)},du.\u0275dir=t.lG2({type:du,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]});var dr=(0,B.Z)(function n(){(0,H.Z)(this,n),this.align="start"});function yie(n,r){for(var e=n.nativeElement.parentElement;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(function(i){return i.id===e.id}):null}dr.\u0275fac=function(r){return new(r||dr)},dr.\u0275dir=t.lG2({type:dr,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-dialog-actions-align-center","center"===e.align)("mat-dialog-actions-align-end","end"===e.align)},inputs:{align:"align"}});var Ck=(0,B.Z)(function n(){(0,H.Z)(this,n)});Ck.\u0275fac=function(r){return new(r||Ck)},Ck.\u0275mod=t.oAB({type:Ck}),Ck.\u0275inj=t.cJS({providers:[jr,fIe],imports:[ib,xi.U8,uo.eL,Vt.BQ,Vt.BQ]});var l2=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.templateName="",this.templateName=e.templateName}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();l2.\u0275fac=function(r){return new(r||l2)(t.Y36(cr),t.Y36(So))},l2.\u0275cmp=t.Xpm({type:l2,selectors:[["app-delete-confirmation-dialog"]],decls:11,vars:1,consts:[[1,"dialogcontainer"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"spacer"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Delete template"),t.qZA(),t.TgZ(3,"div",2),t._uU(4),t.qZA(),t._UZ(5,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"No"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onYesClick()}),t._uU(10," Yes "),t.qZA()()()),2&r&&(t.xp6(4),t.hij("Are you sure you want to delete template ",e.templateName,"?"))},dependencies:[cn,Cr,du,dr],styles:[".dialogcontainer[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.spacer[_ngcontent-%COMP%]{flex-grow:1}"]});var lf=function(){function n(r){(0,H.Z)(this,n),this.httpController=r,this.newTemplateCreated=new In.xQ}return(0,B.Z)(n,[{key:"list",value:function(e){return this.httpController.get(e,"/templates")}},{key:"deleteTemplate",value:function(e,i){return this.httpController.delete(e,"/templates/".concat(i),{observe:"body"})}}]),n}();lf.\u0275fac=function(r){return new(r||lf)(t.LFG(mo.zw))},lf.\u0275prov=t.Yz7({token:lf,factory:lf.\u0275fac});var sa=function(){function n(r,e,i){(0,H.Z)(this,n),this.templateService=r,this.dialog=e,this.toasterService=i,this.deleteEvent=new t.vpe}return(0,B.Z)(n,[{key:"deleteItem",value:function(e,i){var o=this;this.dialog.open(l2,{width:"300px",height:"250px",data:{templateName:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(s){s&&o.templateService.deleteTemplate(o.controller,i).subscribe(function(l){o.deleteEvent.emit(i),o.toasterService.success("Template ".concat(e," deleted."))})})}}]),n}();sa.\u0275fac=function(r){return new(r||sa)(t.Y36(lf),t.Y36(jr),t.Y36(Ln))},sa.\u0275cmp=t.Xpm({type:sa,selectors:[["app-delete-template"]],inputs:{controller:"controller"},outputs:{deleteEvent:"deleteEvent"},decls:0,vars:0,template:function(r,e){}});var bie=m(9931),rz=m(943);function _Ie(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",2),t._UZ(1,"polygon",3),t.qZA())}var Cie=["*"];function gIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",0),t.NdJ("keydown",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._handleKeydown(a))})("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationStart(a))})("@transformMenu.done",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s._onAnimationDone(a))}),t.TgZ(1,"div",1),t.Hsn(2),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var ZB={transformMenu:(0,Rt.X$)("transformMenu",[(0,Rt.SB)("void",(0,Rt.oB)({opacity:0,transform:"scale(0.8)"})),(0,Rt.eR)("void => enter",(0,Rt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Rt.oB)({opacity:1,transform:"scale(1)"}))),(0,Rt.eR)("* => void",(0,Rt.jt)("100ms 25ms linear",(0,Rt.oB)({opacity:0})))]),fadeInItems:(0,Rt.X$)("fadeInItems",[(0,Rt.SB)("showing",(0,Rt.oB)({opacity:1})),(0,Rt.eR)("void => *",[(0,Rt.oB)({opacity:0}),(0,Rt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},wie=(ZB.fadeInItems,ZB.transformMenu,new t.OlP("MatMenuContent")),u2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this._template=r,this._componentFactoryResolver=e,this._appRef=i,this._injector=o,this._viewContainerRef=a,this._document=s,this._changeDetectorRef=l,this._attached=new In.xQ}return(0,B.Z)(n,[{key:"attach",value:function(){var i,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new uo.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new uo.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var o=this._template.elementRef.nativeElement;o.parentNode.insertBefore(this._outlet.outletElement,o),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),n}();u2.\u0275fac=function(r){return new(r||u2)(t.Y36(t.Rgc),t.Y36(t._Vd),t.Y36(t.z2F),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(ge.K0),t.Y36(t.sBO))},u2.\u0275dir=t.lG2({type:u2});var wk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(u2);wk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(wk)))(e||wk)}}(),wk.\u0275dir=t.lG2({type:wk,selectors:[["ng-template","matMenuContent",""]],features:[t._Bn([{provide:wie,useExisting:wk}]),t.qOj]});var iz=new t.OlP("MAT_MENU_PANEL"),vIe=(0,Vt.Kr)((0,Vt.Id)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}())),Dr=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l){var u,d;return(0,H.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 In.xQ,u._focused=new In.xQ,u._highlighted=!1,u._triggersSubmenu=!1,null===(d=null==s?void 0:s.addItem)||void 0===d||d.call(s,(0,_D.Z)(u)),u}return(0,B.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}(vIe);Dr.\u0275fac=function(r){return new(r||Dr)(t.Y36(t.SBq),t.Y36(ge.K0),t.Y36(Yr.tE),t.Y36(iz,8),t.Y36(t.sBO))},Dr.\u0275cmp=t.Xpm({type:Dr,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._checkDisabled(o)})("mouseenter",function(){return e._handleMouseEnter()}),2&r&&(t.uIk("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),t.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[t.qOj],attrs:["mat-menu-item",""],ngContentSelectors:Cie,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,e){1&r&&(t.F$t(),t.Hsn(0),t._UZ(1,"div",0),t.YNc(2,_Ie,2,0,"svg",1)),2&r&&(t.xp6(1),t.Q6J("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()),t.xp6(1),t.Q6J("ngIf",e._triggersSubmenu))},dependencies:[ge.O5,Vt.wG],encapsulation:2,changeDetection:0});var kie=new t.OlP("mat-menu-default-options",{providedIn:"root",factory:function yIe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});var bIe=0,gm=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._elementRef=r,this._ngZone=e,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new t.n_E,this._tabSubscription=Ea.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new In.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new t.vpe,this.close=this.closed,this.panelId="mat-menu-panel-".concat(bIe++)}return(0,B.Z)(n,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=(0,Mn.Ig)(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=(0,Mn.Ig)(e)}},{key:"panelClass",set:function(e){var i=this,o=this._previousPanelClass;o&&o.length&&o.split(" ").forEach(function(a){i._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(a){i._classList[a]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new Yr.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe((0,eo.O)(this._directDescendantItems),(0,bo.w)(function(i){return ji.T.apply(void 0,(0,pn.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,eo.O)(this._directDescendantItems),(0,bo.w)(function(i){return ji.T.apply(void 0,(0,pn.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 Sr.hY:(0,Sr.Vb)(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case Sr.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Sr.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===Sr.LH||i===Sr.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,Ei.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,eo.O)(this._allItems)).subscribe(function(i){e._directDescendantItems.reset(i.filter(function(o){return o._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),n}();gm.\u0275fac=function(r){return new(r||gm)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(kie),t.Y36(t.sBO))},gm.\u0275dir=t.lG2({type:gm,contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,wie,5),t.Suo(i,Dr,5),t.Suo(i,Dr,4)),2&r)&&(t.iGM(o=t.CRH())&&(e.lazyContent=o.first),t.iGM(o=t.CRH())&&(e._allItems=o),t.iGM(o=t.CRH())&&(e.items=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,5),2&r)&&(t.iGM(i=t.CRH())&&(e.templateRef=i.first))},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}});var Va=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o,a,s))._elevationPrefix="mat-elevation-z",l._baseElevation=4,l}return(0,B.Z)(e)}(gm);Va.\u0275fac=function(r){return new(r||Va)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(kie),t.Y36(t.sBO))},Va.\u0275cmp=t.Xpm({type:Va,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,e){2&r&&t.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[t._Bn([{provide:iz,useExisting:Va}]),t.qOj],ngContentSelectors:Cie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,gIe,3,6,"ng-template"))},dependencies:[ge.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ZB.transformMenu,ZB.fadeInItems]},changeDetection:0});var Tie=new t.OlP("mat-menu-scroll-strategy");var wIe={provide:Tie,deps:[xi.aV],useFactory:function CIe(n){return function(){return n.scrollStrategies.reposition()}}},Mie=(0,Ii.i$)({passive:!0}),c2=function(){function n(r,e,i,o,a,s,l,u,d){var h=this;(0,H.Z)(this,n),this._overlay=r,this._element=e,this._viewContainerRef=i,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ea.w.EMPTY,this._hoverSubscription=Ea.w.EMPTY,this._menuCloseSubscription=Ea.w.EMPTY,this._handleTouchStart=function(g){(0,Yr.yG)(g)||(h._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new t.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new t.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof gm?a:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Mie),s&&(s._triggersSubmenu=this.triggersSubmenu())}return(0,B.Z)(n,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var i=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(function(o){i._destroyMenu(o),("click"===o||"tab"===o)&&i._parentMaterialMenu&&i._parentMaterialMenu.closed.emit(o)})))}},{key:"ngAfterContentInit",value:function(){this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Mie),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this,i=this.menu;if(!this._menuOpen&&i){var o=this._createOverlay(i),a=o.getConfig(),s=a.positionStrategy;this._setPosition(i,s),a.hasBackdrop=null==i.hasBackdrop?!this.triggersSubmenu():i.hasBackdrop,o.attach(this._getPortal(i)),i.lazyContent&&i.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(i),i instanceof gm&&(i._startAnimation(),i._directDescendantItems.changes.pipe((0,Nr.R)(i.close)).subscribe(function(){s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}},{key:"focus",value:function(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var o,i=this;if(this._overlayRef&&this.menuOpen){var a=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,a instanceof gm?(a._resetAnimation(),a.lazyContent?a._animationDone.pipe((0,ti.h)(function(s){return"void"===s.toState}),(0,Ei.q)(1),(0,Nr.R)(a.lazyContent._attached)).subscribe({next:function(){return a.lazyContent.detach()},complete:function(){return i._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(o=null==a?void 0:a.lazyContent)||void 0===o||o.detach())}}},{key:"_initMenu",value:function(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(e){if(e.setElevation){for(var i=0,o=e.parentMenu;o;)i++,o=o.parentMenu;e.setElevation(i)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}},{key:"_createOverlay",value:function(e){if(!this._overlayRef){var i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(e){return new xi.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e,i){var o=this;e.setPositionClasses&&i.positionChanges.subscribe(function(a){var s="start"===a.connectionPair.overlayX?"after":"before",l="top"===a.connectionPair.overlayY?"below":"above";o._ngZone?o._ngZone.run(function(){return e.setPositionClasses(s,l)}):e.setPositionClasses(s,l)})}},{key:"_setPosition",value:function(e,i){var o="before"===e.xPosition?["end","start"]:["start","end"],a=(0,Nn.Z)(o,2),s=a[0],l=a[1],u="above"===e.yPosition?["bottom","top"]:["top","bottom"],d=(0,Nn.Z)(u,2),h=d[0],g=d[1],C=h,Z=g,z=s,q=l,re=0;if(this.triggersSubmenu()){if(q=s="before"===e.xPosition?"start":"end",l=z="end"===s?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){var ae=this._parentMaterialMenu.items.first;this._parentInnerPadding=ae?ae._getHostElement().offsetTop:0}re="bottom"===h?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(C="top"===h?"bottom":"top",Z="top"===g?"bottom":"top");i.withPositions([{originX:s,originY:C,overlayX:z,overlayY:h,offsetY:re},{originX:l,originY:C,overlayX:q,overlayY:h,offsetY:re},{originX:s,originY:Z,overlayX:z,overlayY:g,offsetY:-re},{originX:l,originY:Z,overlayX:q,overlayY:g,offsetY:-re}])}},{key:"_menuClosingActions",value:function(){var e=this,i=this._overlayRef.backdropClick(),o=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,qn.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ti.h)(function(l){return l!==e._menuItemInstance}),(0,ti.h)(function(){return e._menuOpen})):(0,qn.of)();return(0,ji.T)(i,a,s,o)}},{key:"_handleMousedown",value:function(e){(0,Yr.X6)(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var i=e.keyCode;(i===Sr.K5||i===Sr.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===Sr.SV&&"ltr"===this.dir||i===Sr.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,ti.h)(function(i){return i===e._menuItemInstance&&!i.disabled}),(0,rz.g)(0,bie.E)).subscribe(function(){e._openedBy="mouse",e.menu instanceof gm&&e.menu._isAnimating?e.menu._animationDone.pipe((0,Ei.q)(1),(0,rz.g)(0,bie.E),(0,Nr.R)(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new uo.UE(e.templateRef,this._viewContainerRef)),this._portal}}]),n}();c2.\u0275fac=function(r){return new(r||c2)(t.Y36(xi.aV),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(Tie),t.Y36(iz,8),t.Y36(Dr,10),t.Y36(Ls.Is,8),t.Y36(Yr.tE),t.Y36(t.R0b))},c2.\u0275dir=t.lG2({type:c2,hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("mousedown",function(o){return e._handleMousedown(o)})("keydown",function(o){return e._handleKeydown(o)}),2&r&&t.uIk("aria-haspopup",e.menu?"menu":null)("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}});var _a=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(c2);_a.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(_a)))(e||_a)}}(),_a.\u0275dir=t.lG2({type:_a,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[t.qOj]});var xg=(0,B.Z)(function n(){(0,H.Z)(this,n)});xg.\u0275fac=function(r){return new(r||xg)},xg.\u0275mod=t.oAB({type:xg}),xg.\u0275inj=t.cJS({providers:[wIe],imports:[ge.ez,Vt.BQ,Vt.si,xi.U8,ha.ZD,Vt.BQ]});var Nu=(0,B.Z)(function n(){(0,H.Z)(this,n),this.emptyTemplatesListMessage="Empty templates list",this.textMessage&&(this.emptyTemplatesListMessage=this.textMessage)});function kIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function TIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/cloud-nodes/addtemplate")}}function MIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function SIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function EIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,SIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.cloudNodesTemplates)}}function xIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,EIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}Nu.\u0275fac=function(r){return new(r||Nu)},Nu.\u0275cmp=t.Xpm({type:Nu,selectors:[["app-empty-templates-list"]],inputs:{textMessage:"textMessage"},decls:4,vars:1,consts:[[1,"default-content"],[1,"matCard"],[1,"header"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"mat-card",1)(2,"h6",2),t._uU(3),t.qZA()()()),2&r&&(t.xp6(3),t.hij(" ",e.emptyTemplatesListMessage," "))},dependencies:[ai],styles:[".header[_ngcontent-%COMP%]{text-align:center;color:#a9a9a9}"]});var d2=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.cloudNodesTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.cloudNodesTemplates=i.filter(function(o){return"cloud"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function DIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}d2.\u0275fac=function(r){return new(r||d2)(t.Y36(pr),t.Y36(rr),t.Y36(cu))},d2.\u0275cmp=t.Xpm({type:d2,selectors:[["app-cloud-nodes-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip"," Add cloud node template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,kIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Cloud nodes templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,TIe,3,1,"button",7),t.qZA()()(),t.YNc(10,MIe,1,0,"app-empty-templates-list",8),t.YNc(11,xIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.cloudNodesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var f2=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetHubTemplate().subscribe(function(a){i=a}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({name:"Ethernet".concat(o),port_number:o});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(){e.goBack()})}}}]),n}();function AIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function OIe(n,r){if(1&n&&(t.TgZ(0,"mat-option",22),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}f2.\u0275fac=function(r){return new(r||f2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(ur),t.Y36(Ln),t.Y36(xl),t.Y36(J.QS),t.Y36(sf.X))},f2.\u0275cmp=t.Xpm({type:f2,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","min","0","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,DIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet hub template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet Hub locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Sie=function(){return{standalone:!0}};function IIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card")(2,"form",11)(3,"mat-form-field",12)(4,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",12)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.symbol=a)}),t.qZA()(),t.TgZ(9,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(10,"Choose symbol"),t.qZA(),t._UZ(11,"br")(12,"br"),t.TgZ(13,"mat-form-field",12)(14,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetHubTemplate.category=a)}),t.YNc(15,OIe,2,2,"mat-option",18),t.qZA()(),t.TgZ(16,"mat-form-field",12)(17,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.numberOfPorts=a)}),t.qZA()()()(),t.TgZ(18,"div",20)(19,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(22,"Save"),t.qZA(),t._UZ(23,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetHubTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(9,Sie))("ngModel",i.ethernetHubTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.numberOfPorts)("ngModelOptions",t.DdM(10,Sie))}}function PIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",23),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetHubTemplate.symbol)}}var RIe=function(r){return{shadowed:r}},p2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.categories=e.builtInTemplatesConfigurationService.getCategoriesForEthernetHubs(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetHubTemplate=s,e.numberOfPorts=e.ethernetHubTemplate.ports_mapping.length})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-hubs"])}},{key:"onSave",value:function(){var e=this;if(this.inputForm.invalid||!this.numberOfPorts)this.toasterService.error("Fill all required fields");else{this.ethernetHubTemplate.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.ethernetHubTemplate.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetHubTemplate).subscribe(function(o){e.toasterService.success("Changes saved")})}}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetHubTemplate.symbol=e}}]),n}();function LIe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function ZIe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-hubs/addtemplate")}}function NIe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function BIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function FIe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,BIe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetHubsTemplates)}}function UIe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,FIe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}p2.\u0275fac=function(r){return new(r||p2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(Ln),t.Y36(J.QS),t.Y36(wc),t.Y36(ur))},p2.\u0275cmp=t.Xpm({type:p2,selectors:[["app-ethernet-hubs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,AIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hub template configuration"),t.qZA()()()(),t.YNc(8,IIe,24,11,"div",7),t.qZA(),t.YNc(9,PIe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,RIe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetHubTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetHubTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetHubsTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetHubsTemplates=i.filter(function(o){return"ethernet_hub"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();function HIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}h2.\u0275fac=function(r){return new(r||h2)(t.Y36(pr),t.Y36(rr),t.Y36(cu))},h2.\u0275cmp=t.Xpm({type:h2,selectors:[["app-ethernet-hubs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet hub template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,LIe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet hubs templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,ZIe,3,1,"button",7),t.qZA()()(),t.YNc(10,NIe,1,0,"app-empty-templates-list",8),t.YNc(11,UIe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetHubsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var m2=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required),numberOfPorts:new J.p4(8,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"addTemplate",value:function(){var e=this;if(this.formGroup.invalid)this.toasterService.error("Fill all required fields");else{var i;this.templateMocksService.getEthernetSwitchTemplate().subscribe(function(a){i=a}),i.template_id=ts(),i.name=this.formGroup.get("templateName").value,i.compute_id="local";for(var o=0;o<this.formGroup.get("numberOfPorts").value;o++)i.ports_mapping.push({ethertype:"0x8100",name:"Ethernet".concat(o),port_number:o,type:"access",vlan:1});this.builtInTemplatesService.addTemplate(this.controller,i).subscribe(function(a){e.goBack()})}}}]),n}();function jIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Port number"),t.qZA())}function GIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.port_number)}}function zIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"VLAN"),t.qZA())}function WIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.vlan)}}function VIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function YIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.type)}}function KIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"EtherType"),t.qZA())}function qIe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.ethertype)}}function JIe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function QIe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function XIe(n,r){1&n&&t._UZ(0,"tr",22)}function $Ie(n,r){1&n&&t._UZ(0,"tr",23)}function ePe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function tPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}m2.\u0275fac=function(r){return new(r||m2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(ur),t.Y36(Ln),t.Y36(xl),t.Y36(J.QS),t.Y36(sf.X))},m2.\u0275cmp=t.Xpm({type:m2,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","min","0","placeholder","Number of ports"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-button","",1,"cancel-button","col",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,HIe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New Ethernet switch template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the Ethernet switch locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA(),t.TgZ(16,"mat-form-field",12),t._UZ(17,"input",14),t.qZA()()(),t.TgZ(18,"div",15)(19,"button",16),t.NdJ("click",function(){return e.goBack()}),t._uU(20,"Cancel"),t.qZA(),t.TgZ(21,"button",17),t.NdJ("click",function(){return e.addTemplate()}),t._uU(22,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.formGroup))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Eie=function(){return{standalone:!0}},Dg=function(){function n(r){(0,H.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.ethernetPorts=[],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[],this.displayedColumns=["port_number","vlan","type","ethertype","action"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAdd",value:function(){this.ethernetPorts.push(this.newPort),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.ethernetPorts=this.ethernetPorts.filter(function(i){return i!==e})}}]),n}();function nPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function rPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function iPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Dg.\u0275fac=function(r){return new(r||Dg)(t.Y36(wc))},Dg.\u0275cmp=t.Xpm({type:Dg,selectors:[["app-ports"]],inputs:{ethernetPorts:"ethernetPorts"},decls:31,vars:13,consts:[["mat-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","min","0","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","max","65535","placeholder","VLAN",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","EtherType",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,jIe,2,0,"th",2),t.YNc(3,GIe,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,zIe,2,0,"th",2),t.YNc(6,WIe,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,VIe,2,0,"th",2),t.YNc(9,YIe,2,1,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,KIe,2,0,"th",2),t.YNc(12,qIe,2,1,"td",3),t.BQk(),t.ynx(13,7),t.YNc(14,JIe,2,0,"th",2),t.YNc(15,QIe,4,0,"td",3),t.BQk(),t.YNc(16,XIe,1,0,"tr",8),t.YNc(17,$Ie,1,0,"tr",9),t.qZA(),t._UZ(18,"br"),t.TgZ(19,"mat-form-field",10)(20,"input",11),t.NdJ("ngModelChange",function(o){return e.newPort.port_number=o}),t.qZA()(),t.TgZ(21,"mat-form-field",10)(22,"input",12),t.NdJ("ngModelChange",function(o){return e.newPort.vlan=o}),t.qZA()(),t.TgZ(23,"mat-form-field",13)(24,"mat-select",14),t.NdJ("ngModelChange",function(o){return e.newPort.type=o}),t.YNc(25,ePe,2,2,"mat-option",15),t.qZA()(),t.TgZ(26,"mat-form-field",13)(27,"mat-select",16),t.NdJ("ngModelChange",function(o){return e.newPort.ethertype=o}),t.YNc(28,tPe,2,2,"mat-option",15),t.qZA()(),t.TgZ(29,"button",17),t.NdJ("click",function(){return e.onAdd()}),t._uU(30,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.ethernetPorts),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(3),t.Q6J("ngModel",e.newPort.port_number),t.xp6(2),t.Q6J("ngModel",e.newPort.vlan),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(11,Eie))("ngModel",e.newPort.type),t.xp6(1),t.Q6J("ngForOf",e.portTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,Eie))("ngModel",e.newPort.ethertype),t.xp6(1),t.Q6J("ngForOf",e.etherTypes))},dependencies:[ge.sg,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,ni.gD,Vt.ey,ui],styles:["table[_ngcontent-%COMP%]{width:100%}.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 xie=function(){return{standalone:!0}};function oPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",12)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.category=a)}),t.YNc(19,rPe,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"mat-form-field",19)(21,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetSwitchTemplate.console_type=a)}),t.YNc(22,iPe,2,2,"mat-option",18),t.qZA()()()(),t.TgZ(23,"mat-expansion-panel")(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._uU(26," Port settings "),t.qZA()(),t._UZ(27,"app-ports",21,22),t.qZA()(),t.TgZ(29,"div",23)(30,"button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(31,"Cancel"),t.qZA(),t.TgZ(32,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(33,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.name),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.ethernetSwitchTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(11,xie))("ngModel",i.ethernetSwitchTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(12,xie))("ngModel",i.ethernetSwitchTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(5),t.Q6J("ethernetPorts",i.ethernetSwitchTemplate.ports_mapping)}}function aPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.ethernetSwitchTemplate.symbol)}}var sPe=function(r){return{shadowed:r}},_2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.toasterService=o,this.formBuilder=a,this.builtInTemplatesConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.categories=[],this.consoleTypes=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.builtInTemplatesService.getTemplate(e.controller,o).subscribe(function(s){e.ethernetSwitchTemplate=s})})}},{key:"getConfiguration",value:function(){this.categories=this.builtInTemplatesConfigurationService.getCategoriesForEthernetSwitches(),this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","builtin","ethernet-switches"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):(this.ethernetSwitchTemplate.ports_mapping=this.portsComponent.ethernetPorts,this.builtInTemplatesService.saveTemplate(this.controller,this.ethernetSwitchTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.ethernetSwitchTemplate.symbol=e}}]),n}();function lPe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin")}}function uPe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/builtin/ethernet-switches/addtemplate")}}function cPe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function dPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",22)(14,"mat-icon"),t._uU(15,"edit"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(10),t.s9C("routerLink",i.template_id)}}function fPe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,dPe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.ethernetSwitchesTemplates)}}function pPe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,fPe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}_2.\u0275fac=function(r){return new(r||_2)(t.Y36(pr),t.Y36(rr),t.Y36(cu),t.Y36(Ln),t.Y36(J.QS),t.Y36(wc),t.Y36(ur))},_2.\u0275cmp=t.Xpm({type:_2,selectors:[["app-ethernet-switches-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Dg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button col","mat-button","",3,"click",4,"ngIf"],[1,"col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button","col",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ethernetPorts"],["ports",""],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,nPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switch template configuration"),t.qZA()()()(),t.YNc(8,oPe,34,13,"div",7),t.qZA(),t.YNc(9,aPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,sPe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.ethernetSwitchTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.ethernetSwitchTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu,Dg],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var g2=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.builtInTemplatesService=i,this.ethernetSwitchesTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.builtInTemplatesService.getTemplates(this.controller).subscribe(function(i){e.ethernetSwitchesTemplates=i.filter(function(o){return"ethernet_switch"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();g2.\u0275fac=function(r){return new(r||g2)(t.Y36(pr),t.Y36(rr),t.Y36(cu))},g2.\u0275cmp=t.Xpm({type:g2,selectors:[["app-ethernet-switches-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Ethernet switch template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,lPe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Ethernet switches templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,uPe,3,1,"button",7),t.qZA()()(),t.YNc(10,cPe,1,0,"app-empty-templates-list",8),t.YNc(11,pPe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("ngIf",e.ethernetSwitchesTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 oz=(0,B.Z)(function n(){(0,H.Z)(this,n)}),nd=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/docker/images"))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();nd.\u0275fac=function(r){return new(r||nd)(t.LFG(mo.zw))},nd.\u0275prov=t.Yz7({token:nd,factory:nd.\u0275fac});var Ip=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","vnc","http","https","none"]}},{key:"getAuxConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getConsoleResolutions",value:function(){return["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"]}}]),n}();function hPe(n,r){1&n&&t.Hsn(0)}Ip.\u0275fac=function(r){return new(r||Ip)},Ip.\u0275prov=t.Yz7({token:Ip,factory:Ip.\u0275fac});var kk=function(){function n(r){(0,H.Z)(this,n),this._elementRef=r}return(0,B.Z)(n,[{key:"focus",value:function(){this._elementRef.nativeElement.focus()}}]),n}();kk.\u0275fac=function(r){return new(r||kk)(t.Y36(t.SBq))},kk.\u0275dir=t.lG2({type:kk,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var Tk=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.template=r});Tk.\u0275fac=function(r){return new(r||Tk)(t.Y36(t.Rgc))},Tk.\u0275dir=t.lG2({type:Tk,selectors:[["","cdkStepLabel",""]]});var _Pe=0,vm_NUMBER="number",vm_EDIT="edit",vm_DONE="done",vm_ERROR="error",Die=new t.OlP("STEPPER_GLOBAL_OPTIONS"),ob=function(){function n(r,e){(0,H.Z)(this,n),this._stepper=r,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}return(0,B.Z)(n,[{key:"editable",get:function(){return this._editable},set:function(e){this._editable=(0,Mn.Ig)(e)}},{key:"optional",get:function(){return this._optional},set:function(e){this._optional=(0,Mn.Ig)(e)}},{key:"completed",get:function(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride},set:function(e){this._completedOverride=(0,Mn.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,Mn.Ig)(e)}},{key:"_getDefaultError",value:function(){return this.stepControl&&this.stepControl.invalid&&this.interacted}},{key:"select",value:function(){this._stepper.selected=this}},{key:"reset",value:function(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}},{key:"ngOnChanges",value:function(){this._stepper._stateChanged()}},{key:"_markAsInteracted",value:function(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}},{key:"_showError",value:function(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}]),n}();ob.\u0275fac=function(r){return new(r||ob)(t.Y36((0,t.Gpc)(function(){return ym})),t.Y36(Die,8))},ob.\u0275cmp=t.Xpm({type:ob,selectors:[["cdk-step"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Tk,5),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first))},viewQuery:function(r,e){var i;(1&r&&t.Gf(t.Rgc,7),2&r)&&(t.iGM(i=t.CRH())&&(e.content=i.first))},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[t.TTD],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.YNc(0,hPe,1,0,"ng-template"))},encapsulation:2,changeDetection:0});var ym=function(){function n(r,e,i){(0,H.Z)(this,n),this._dir=r,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new In.xQ,this.steps=new t.n_E,this._sortedHeaders=new t.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new t.vpe,this._orientation="horizontal",this._groupId=_Pe++}return(0,B.Z)(n,[{key:"linear",get:function(){return this._linear},set:function(e){this._linear=(0,Mn.Ig)(e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(e){var i,o=(0,Mn.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,eo.O)(this._steps),(0,Nr.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,eo.O)(this._stepHeader),(0,Nr.R)(this._destroyed)).subscribe(function(i){e._sortedHeaders.reset(i.toArray().sort(function(o,a){return o._elementRef.nativeElement.compareDocumentPosition(a._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})),e._sortedHeaders.notifyOnChanges()}),this._keyManager=new Yr.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,qn.of)()).pipe((0,eo.O)(this._layoutDirection()),(0,Nr.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]:vm_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?vm_ERROR:!e.completed||i?vm_NUMBER:e.editable?vm_EDIT:vm_DONE}},{key:"_getGuidelineLogic",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vm_NUMBER;return e._showError()&&e.hasError&&!i?vm_ERROR:e.completed&&!i?vm_DONE:e.completed&&i?o:e.editable&&i?vm_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,Sr.Vb)(e),o=e.keyCode,a=this._keyManager;null==a.activeItemIndex||i||o!==Sr.L_&&o!==Sr.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,Ii.ht)();return e===i||e.contains(i)}},{key:"_isValidIndex",value:function(e){return e>-1&&(!this.steps||e<this.steps.length)}}]),n}();ym.\u0275fac=function(r){return new(r||ym)(t.Y36(Ls.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},ym.\u0275dir=t.lG2({type:ym,selectors:[["","cdkStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,ob,5),t.Suo(i,kk,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._stepHeader=o))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]});var v2=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._stepper=r,this.type="submit"});v2.\u0275fac=function(r){return new(r||v2)(t.Y36(ym))},v2.\u0275dir=t.lG2({type:v2,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.next()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var y2=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._stepper=r,this.type="button"});y2.\u0275fac=function(r){return new(r||y2)(t.Y36(ym))},y2.\u0275dir=t.lG2({type:y2,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._stepper.previous()}),2&r&&t.Ikx("type",e.type)},inputs:{type:"type"}});var Mk=(0,B.Z)(function n(){(0,H.Z)(this,n)});function gPe(n,r){if(1&n&&t.GkF(0,8),2&n){var e=t.oxw();t.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function vPe(n,r){if(1&n&&(t.TgZ(0,"span",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function yPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.completedLabel)}}function bPe(n,r){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._intl.editableLabel)}}function CPe(n,r){if(1&n&&(t.TgZ(0,"mat-icon",13),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e._getDefaultTextForState(e.state))}}function wPe(n,r){if(1&n&&(t.ynx(0,9),t.YNc(1,vPe,2,1,"span",10),t.YNc(2,yPe,2,1,"span",11),t.YNc(3,bPe,2,1,"span",11),t.YNc(4,CPe,2,1,"mat-icon",12),t.BQk()),2&n){var e=t.oxw();t.Q6J("ngSwitch",e.state),t.xp6(1),t.Q6J("ngSwitchCase","number"),t.xp6(1),t.Q6J("ngIf","done"===e.state),t.xp6(1),t.Q6J("ngIf","edit"===e.state)}}function kPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t.GkF(1,16),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function TPe(n,r){if(1&n&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.label)}}function MPe(n,r){if(1&n&&(t.TgZ(0,"div",17),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e._intl.optionalLabel)}}function SPe(n,r){if(1&n&&(t.TgZ(0,"div",18),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function EPe(n,r){}function xPe(n,r){if(1&n&&(t.Hsn(0),t.YNc(1,EPe,0,0,"ng-template",0)),2&n){var e=t.oxw();t.xp6(1),t.Q6J("cdkPortalOutlet",e._portal)}}Mk.\u0275fac=function(r){return new(r||Mk)},Mk.\u0275mod=t.oAB({type:Mk}),Mk.\u0275inj=t.cJS({imports:[Ls.vT]});function APe(n,r){1&n&&t._UZ(0,"div",11)}var Aie=function(r,e){return{step:r,i:e}};function OPe(n,r){if(1&n&&(t.ynx(0),t.GkF(1,9),t.YNc(2,APe,1,0,"div",10),t.BQk()),2&n){var e=r.$implicit,i=r.index,o=r.last;t.oxw(2);var a=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",t.WLB(3,Aie,e,i)),t.xp6(1),t.Q6J("ngIf",!o)}}var Oie=function(r){return{animationDuration:r}},Iie=function(r,e){return{value:r,params:e}};function IPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12),t.NdJ("@horizontalStepTransition.done",function(l){t.CHM(e);var u=t.oxw(2);return t.KtG(u._animationDone.next(l))}),t.GkF(1,13),t.qZA()}if(2&n){var i=r.$implicit,o=r.index,a=t.oxw(2);t.ekj("mat-horizontal-stepper-content-inactive",a.selectedIndex!==o),t.Q6J("@horizontalStepTransition",t.WLB(8,Iie,a._getAnimationDirection(o),t.VKq(6,Oie,a._getAnimationDuration())))("id",a._getStepContentId(o)),t.uIk("aria-labelledby",a._getStepLabelId(o)),t.xp6(1),t.Q6J("ngTemplateOutlet",i.content)}}function PPe(n,r){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5),t.YNc(2,OPe,3,6,"ng-container",6),t.qZA(),t.TgZ(3,"div",7),t.YNc(4,IPe,2,11,"div",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.steps),t.xp6(2),t.Q6J("ngForOf",e.steps)}}function RPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",15),t.GkF(1,9),t.TgZ(2,"div",16)(3,"div",17),t.NdJ("@verticalStepTransition.done",function(d){t.CHM(e);var h=t.oxw(2);return t.KtG(h._animationDone.next(d))}),t.TgZ(4,"div",18),t.GkF(5,13),t.qZA()()()()}if(2&n){var i=r.$implicit,o=r.index,a=r.last,s=t.oxw(2),l=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",t.WLB(10,Aie,i,o)),t.xp6(1),t.ekj("mat-stepper-vertical-line",!a),t.xp6(1),t.ekj("mat-vertical-stepper-content-inactive",s.selectedIndex!==o),t.Q6J("@verticalStepTransition",t.WLB(15,Iie,s._getAnimationDirection(o),t.VKq(13,Oie,s._getAnimationDuration())))("id",s._getStepContentId(o)),t.uIk("aria-labelledby",s._getStepLabelId(o)),t.xp6(2),t.Q6J("ngTemplateOutlet",i.content)}}function LPe(n,r){if(1&n&&(t.ynx(0),t.YNc(1,RPe,6,18,"div",14),t.BQk()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.steps)}}function ZPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step-header",19),t.NdJ("click",function(){var u=t.CHM(e).step;return t.KtG(u.select())})("keydown",function(l){t.CHM(e);var u=t.oxw();return t.KtG(u._onKeydown(l))}),t.qZA()}if(2&n){var i=r.step,o=r.i,a=t.oxw();t.ekj("mat-horizontal-stepper-header","horizontal"===a.orientation)("mat-vertical-stepper-header","vertical"===a.orientation),t.Q6J("tabIndex",a._getFocusIndex()===o?0:-1)("id",a._getStepLabelId(o))("index",o)("state",a._getIndicatorType(o,i.state))("label",i.stepLabel||i.label)("selected",a.selectedIndex===o)("active",a._stepIsNavigable(o,i))("optional",i.optional)("errorMessage",i.errorMessage)("iconOverrides",a._iconOverrides)("disableRipple",a.disableRipple||!a._stepIsNavigable(o,i))("color",i.color||a.color),t.uIk("aria-posinset",o+1)("aria-setsize",a.steps.length)("aria-controls",a._getStepContentId(o))("aria-selected",a.selectedIndex==o)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null)("aria-disabled",!a._stepIsNavigable(o,i)||null)}}var bm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Tk);bm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(bm)))(e||bm)}}(),bm.\u0275dir=t.lG2({type:bm,selectors:[["","matStepLabel",""]],features:[t.qOj]});var Cm=(0,B.Z)(function n(){(0,H.Z)(this,n),this.changes=new In.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"});Cm.\u0275fac=function(r){return new(r||Cm)},Cm.\u0275prov=t.Yz7({token:Cm,factory:Cm.\u0275fac,providedIn:"root"});var BPe={provide:Cm,deps:[[new t.FiY,new t.tp0,Cm]],useFactory:function NPe(n){return n||new Cm}},FPe=(0,Vt.pj)(function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){return(0,H.Z)(this,e),r.call(this,i)}return(0,B.Z)(e)}(kk),"primary"),Sk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,a))._intl=i,l._focusMonitor=o,l._intlSubscription=i.changes.subscribe(function(){return s.markForCheck()}),l}return(0,B.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 bm?null:this.label}},{key:"_templateLabel",value:function(){return this.label instanceof bm?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}(FPe);Sk.\u0275fac=function(r){return new(r||Sk)(t.Y36(Cm),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(t.sBO))},Sk.\u0275cmp=t.Xpm({type:Sk,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[t.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(r,e){1&r&&(t._UZ(0,"div",0),t.TgZ(1,"div")(2,"div",1),t.YNc(3,gPe,1,2,"ng-container",2),t.YNc(4,wPe,5,4,"ng-container",3),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,kPe,2,1,"div",5),t.YNc(7,TPe,2,1,"div",5),t.YNc(8,MPe,2,1,"div",6),t.YNc(9,SPe,2,1,"div",7),t.qZA()),2&r&&(t.Q6J("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),t.xp6(1),t.Gre("mat-step-icon-state-",e.state," mat-step-icon"),t.ekj("mat-step-icon-selected",e.selected),t.xp6(1),t.Q6J("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),t.xp6(1),t.Q6J("ngSwitchCase",!0),t.xp6(2),t.ekj("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),t.xp6(1),t.Q6J("ngIf",e._templateLabel()),t.xp6(1),t.Q6J("ngIf",e._stringLabel()),t.xp6(1),t.Q6J("ngIf",e.optional&&"error"!=e.state),t.xp6(1),t.Q6J("ngIf","error"==e.state))},dependencies:[ge.O5,ge.tP,ge.RF,ge.n9,ge.ED,Dn,Vt.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0});var Lie={horizontalStepTransition:(0,Rt.X$)("horizontalStepTransition",[(0,Rt.SB)("previous",(0,Rt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,Rt.SB)("current",(0,Rt.oB)({transform:"none",visibility:"inherit"})),(0,Rt.SB)("next",(0,Rt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,Rt.eR)("* => *",(0,Rt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,Rt.X$)("verticalStepTransition",[(0,Rt.SB)("previous",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("next",(0,Rt.oB)({height:"0px",visibility:"hidden"})),(0,Rt.SB)("current",(0,Rt.oB)({height:"*",visibility:"inherit"})),(0,Rt.eR)("* <=> current",(0,Rt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])},b2=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.templateRef=r});b2.\u0275fac=function(r){return new(r||b2)(t.Y36(t.Rgc))},b2.\u0275dir=t.lG2({type:b2,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}});var C2=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._template=r});C2.\u0275fac=function(r){return new(r||C2)(t.Y36(t.Rgc))},C2.\u0275dir=t.lG2({type:C2,selectors:[["ng-template","matStepContent",""]]});var rd=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,s))._errorStateMatcher=o,l._viewContainerRef=a,l._isSelected=Ea.w.EMPTY,l}return(0,B.Z)(e,[{key:"ngAfterContentInit",value:function(){var o=this;this._isSelected=this._stepper.steps.changes.pipe((0,bo.w)(function(){return o._stepper.selectionChange.pipe((0,$n.U)(function(a){return a.selectedStep===o}),(0,eo.O)(o._stepper.selected===o))})).subscribe(function(a){a&&o._lazyContent&&!o._portal&&(o._portal=new uo.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}(ob);rd.\u0275fac=function(r){return new(r||rd)(t.Y36((0,t.Gpc)(function(){return uf})),t.Y36(Vt.rD,4),t.Y36(t.s_b),t.Y36(Die,8))},rd.\u0275cmp=t.Xpm({type:rd,selectors:[["mat-step"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,bm,5),t.Suo(i,C2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.stepLabel=o.first),t.iGM(o=t.CRH())&&(e._lazyContent=o.first))},inputs:{color:"color"},exportAs:["matStep"],features:[t._Bn([{provide:Vt.rD,useExisting:rd},{provide:ob,useExisting:rd}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,xPe,2,1,"ng-template"))},dependencies:[uo.Pl],encapsulation:2,changeDetection:0});var uf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;(0,H.Z)(this,e),(s=r.call(this,i,o,a)).steps=new t.n_E,s.animationDone=new t.vpe,s.labelPosition="end",s.headerPosition="top",s._iconOverrides={},s._animationDone=new In.xQ,s._animationDuration="";var l=a.nativeElement.nodeName.toLowerCase();return s.orientation="mat-vertical-stepper"===l?"vertical":"horizontal",s}return(0,B.Z)(e,[{key:"animationDuration",get:function(){return this._animationDuration},set:function(o){this._animationDuration=/^\d+$/.test(o)?o+"ms":o}},{key:"ngAfterContentInit",value:function(){var o=this;(0,dt.Z)((0,Ut.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,Nr.R)(this._destroyed)).subscribe(function(){o._stateChanged()}),this._animationDone.pipe((0,Ly.x)(function(a,s){return a.fromState===s.fromState&&a.toState===s.toState}),(0,Nr.R)(this._destroyed)).subscribe(function(a){"current"===a.toState&&o.animationDone.emit()})}},{key:"_stepIsNavigable",value:function(o,a){return a.completed||this.selectedIndex===o||!this.linear}},{key:"_getAnimationDuration",value:function(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}]),e}(ym);uf.\u0275fac=function(r){return new(r||uf)(t.Y36(Ls.Is,8),t.Y36(t.sBO),t.Y36(t.SBq))},uf.\u0275cmp=t.Xpm({type:uf,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,rd,5),t.Suo(i,b2,5)),2&r)&&(t.iGM(o=t.CRH())&&(e._steps=o),t.iGM(o=t.CRH())&&(e._icons=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Sk,5),2&r)&&(t.iGM(i=t.CRH())&&(e._stepHeader=i))},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(r,e){2&r&&(t.uIk("aria-orientation",e.orientation),t.ekj("mat-stepper-horizontal","horizontal"===e.orientation)("mat-stepper-vertical","vertical"===e.orientation)("mat-stepper-label-position-end","horizontal"===e.orientation&&"end"==e.labelPosition)("mat-stepper-label-position-bottom","horizontal"===e.orientation&&"bottom"==e.labelPosition)("mat-stepper-header-position-bottom","bottom"===e.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[t._Bn([{provide:ym,useExisting:uf}]),t.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(r,e){1&r&&(t.ynx(0,0),t.YNc(1,PPe,5,2,"div",1),t.YNc(2,LPe,2,1,"ng-container",2),t.BQk(),t.YNc(3,ZPe,1,23,"ng-template",null,3,t.W1O)),2&r&&(t.Q6J("ngSwitch",e.orientation),t.xp6(1),t.Q6J("ngSwitchCase","horizontal"),t.xp6(1),t.Q6J("ngSwitchCase","vertical"))},dependencies:[ge.sg,ge.O5,ge.tP,ge.RF,ge.n9,Sk],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Lie.horizontalStepTransition,Lie.verticalStepTransition]},changeDetection:0});var Ek=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(v2);Ek.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Ek)))(e||Ek)}}(),Ek.\u0275dir=t.lG2({type:Ek,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var xk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(y2);xk.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(xk)))(e||xk)}}(),xk.\u0275dir=t.lG2({type:xk,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(r,e){2&r&&t.Ikx("type",e.type)},inputs:{type:"type"},features:[t.qOj]});var Dk=(0,B.Z)(function n(){(0,H.Z)(this,n)});function UPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.image," ")}}Dk.\u0275fac=function(r){return new(r||Dk)},Dk.\u0275mod=t.oAB({type:Dk}),Dk.\u0275inj=t.cJS({providers:[BPe,Vt.rD],imports:[Vt.BQ,ge.ez,uo.eL,dm,Mk,Sg,Vt.si,Vt.BQ]});var az=function(){return{standalone:!0}};function HPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,UPe,2,2,"mat-option",24),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,az))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.dockerImages)}}function jPe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-form-field",16),t._UZ(2,"input",34),t.qZA()())}function GPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function zPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var w2=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.consoleTypes=[],this.auxConsoleTypes=[],this.isRemoteComputerChosen=!1,this.dockerImages=[],this.newImageSelected=!1,this.isLocalComputerChosen=!0,this.dockerTemplate=new oz,this.virtualMachineForm=this.formBuilder.group({filename:new J.p4(null,J.kI.required)}),this.containerNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.networkAdaptersForm=this.formBuilder.group({adapters:new J.p4("1",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.consoleTypes=e.configurationService.getConsoleTypes(),e.auxConsoleTypes=e.configurationService.getAuxConsoleTypes(),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=ts(),this.newImageSelected?this.dockerTemplate.image=this.virtualMachineForm.get("filename").value:this.dockerTemplate.image=this.selectedImage.image,this.dockerTemplate.name=this.containerNameForm.get("templateName").value,this.dockerTemplate.adapters=+this.networkAdaptersForm.get("adapters").value,this.dockerTemplate.compute_id="local",this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function WPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}w2.\u0275fac=function(r){return new(r||w2)(t.Y36(pr),t.Y36(rr),t.Y36(nd),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS),t.Y36(xl),t.Y36(Ip),t.Y36(sf.X))},w2.\u0275cmp=t.Xpm({type:w2,selectors:[["app-add-docker-template"]],decls:46,vars:23,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","Auxiliary console type",3,"completed"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],["label","Environment"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["placeholder","Image list",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","type","text","formControlName","filename","placeholder","Image name",1,"filename"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"New Docker container template"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5)(7,"mat-vertical-stepper",6)(8,"mat-step",7)(9,"mat-radio-group",8)(10,"mat-radio-button",9),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(11,"Run this Docker container locally"),t.qZA()()(),t.TgZ(12,"mat-step",10)(13,"form",11)(14,"mat-radio-group",8)(15,"mat-radio-button",9),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(16,"Existing image"),t.qZA(),t.TgZ(17,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(18,"New image"),t.qZA()(),t.YNc(19,HPe,2,4,"mat-select",13),t.YNc(20,jPe,3,0,"div",14),t.qZA()(),t.TgZ(21,"mat-step",15)(22,"form",11)(23,"mat-form-field",16),t._UZ(24,"input",17),t.qZA()()(),t.TgZ(25,"mat-step",18)(26,"form",11)(27,"mat-form-field",16),t._UZ(28,"input",19),t.qZA()()(),t.TgZ(29,"mat-step",20)(30,"mat-form-field",16)(31,"input",21),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.start_command=o}),t.qZA()()(),t.TgZ(32,"mat-step",22)(33,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.console_type=o}),t.YNc(34,GPe,2,2,"mat-option",24),t.qZA()(),t.TgZ(35,"mat-step",25)(36,"mat-select",26),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.aux_type=o}),t.YNc(37,zPe,2,2,"mat-option",24),t.qZA()(),t.TgZ(38,"mat-step",27)(39,"mat-form-field",16)(40,"textarea",28),t.NdJ("ngModelChange",function(o){return e.dockerTemplate.environment=o}),t.qZA()()()()(),t.TgZ(41,"div",29)(42,"button",30),t.NdJ("click",function(){return e.goBack()}),t._uU(43,"Cancel"),t.qZA(),t.TgZ(44,"button",31),t.NdJ("click",function(){return e.addTemplate()}),t._uU(45,"Add template"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.selectedImage||e.virtualMachineForm.get("filename").value),t.xp6(1),t.Q6J("formGroup",e.virtualMachineForm),t.xp6(6),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected),t.xp6(1),t.Q6J("completed",e.containerNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.containerNameForm),t.xp6(3),t.Q6J("completed",e.networkAdaptersForm.get("adapters").value),t.xp6(1),t.Q6J("formGroup",e.networkAdaptersForm),t.xp6(3),t.Q6J("completed",e.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",e.dockerTemplate.start_command),t.xp6(1),t.Q6J("completed",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(21,az))("ngModel",e.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("completed",e.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(22,az))("ngModel",e.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",e.auxConsoleTypes),t.xp6(3),t.Q6J("ngModel",e.dockerTemplate.environment))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,ni.gD,Vt.ey,rd,uf,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var k2=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s,e.templateName="Copy of ".concat(e.dockerTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.dockerTemplate.template_id=ts(),this.dockerTemplate.name=this.templateName,this.dockerService.addTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function VPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function YPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function KPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function JPe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}k2.\u0275fac=function(r){return new(r||k2)(t.Y36(pr),t.Y36(rr),t.Y36(nd),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS))},k2.\u0275cmp=t.Xpm({type:k2,selectors:[["app-copy-docker-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,WPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy Docker container template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Ag=function(){return{standalone:!0}};function QPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",12)(12,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.category=a)}),t.YNc(13,YPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(14,"mat-form-field",12)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.symbol=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(17,"Choose symbol"),t.qZA(),t._UZ(18,"br")(19,"br"),t.TgZ(20,"mat-form-field",12)(21,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.start_command=a)}),t.qZA()(),t.TgZ(22,"mat-form-field",12)(23,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.adapters=a)}),t.qZA()(),t.TgZ(24,"mat-form-field",21)(25,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_type=a)}),t.YNc(26,KPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(27,"mat-form-field",21)(28,"mat-select",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.aux_type=a)}),t.YNc(29,qPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(30,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_auto_start=a)}),t._uU(31," Auto start console "),t.qZA(),t.TgZ(32,"mat-form-field",21)(33,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_resolution=a)}),t.YNc(34,JPe,2,2,"mat-option",16),t.qZA()(),t.TgZ(35,"mat-form-field",12)(36,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_port=a)}),t.qZA()(),t.TgZ(37,"mat-form-field",12)(38,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.console_http_path=a)}),t.qZA()()(),t.TgZ(39,"h6"),t._uU(40,"Environment"),t.qZA(),t.TgZ(41,"mat-form-field",12)(42,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.environment=a)}),t.qZA()()(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," Advanced "),t.qZA()(),t.TgZ(47,"h6"),t._uU(48,"Extra hosts"),t.qZA(),t.TgZ(49,"mat-form-field",12)(50,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.extra_hosts=a)}),t.qZA()()(),t.TgZ(51,"mat-expansion-panel")(52,"mat-expansion-panel-header")(53,"mat-panel-title"),t._uU(54," Usage "),t.qZA()(),t.TgZ(55,"mat-form-field",12)(56,"textarea",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.dockerTemplate.usage=a)}),t.qZA()()()(),t.TgZ(57,"div",29)(58,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(59,"Cancel"),t.qZA(),t.TgZ(60,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(61,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.name),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.default_name_format),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(28,Ag))("ngModel",i.dockerTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(29,Ag))("ngModel",i.dockerTemplate.start_command),t.xp6(2),t.Q6J("ngModel",i.dockerTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,Ag))("ngModel",i.dockerTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(31,Ag))("ngModel",i.dockerTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(32,Ag))("ngModel",i.dockerTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(33,Ag))("ngModel",i.dockerTemplate.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,Ag))("ngModel",i.dockerTemplate.console_http_port),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(35,Ag))("ngModel",i.dockerTemplate.console_http_path),t.xp6(4),t.Q6J("ngModel",i.dockerTemplate.environment),t.xp6(8),t.Q6J("ngModel",i.dockerTemplate.extra_hosts),t.xp6(6),t.Q6J("ngModel",i.dockerTemplate.usage)}}function XPe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",32),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.dockerTemplate.symbol)}}var $Pe=function(r){return{shadowed:r}},T2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.auxConsoleTypes=[],this.consoleResolutions=[],this.categories=[],this.adapters=[],this.displayedColumns=["adapter_number","port_name"],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.dockerService.getTemplate(e.controller,o).subscribe(function(s){e.dockerTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.auxConsoleTypes=this.configurationService.getAuxConsoleTypes(),this.categories=this.configurationService.getCategories(),this.consoleResolutions=this.configurationService.getConsoleResolutions()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):this.dockerService.saveTemplate(this.controller,this.dockerTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.dockerTemplate.symbol=e}}]),n}();function e3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function t3e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/docker/addtemplate")}}function n3e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function r3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function i3e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,r3e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.dockerTemplates)}}function o3e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,i3e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}T2.\u0275fac=function(r){return new(r||T2)(t.Y36(pr),t.Y36(rr),t.Y36(nd),t.Y36(Ln),t.Y36(Ip),t.Y36(J.QS),t.Y36(ur))},T2.\u0275cmp=t.Xpm({type:T2,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"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","placeholder","HTTP port in the container",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text","placeholder","HTTP path",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,VPe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container template configuration"),t.qZA()()()(),t.YNc(8,QPe,62,36,"div",7),t.qZA(),t.YNc(9,XPe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,$Pe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.dockerTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.dockerTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var M2=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.dockerService=i,this.router=o,this.dockerTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.dockerService.getTemplates(this.controller).subscribe(function(i){e.dockerTemplates=i.filter(function(o){return"docker"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","docker","templates",e.template_id,"copy"])}}]),n}();M2.\u0275fac=function(r){return new(r||M2)(t.Y36(pr),t.Y36(rr),t.Y36(nd),t.Y36(ur))},M2.\u0275cmp=t.Xpm({type:M2,selectors:[["app-docker-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Docker container template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,e3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Docker container templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,t3e,3,1,"button",7),t.qZA()()(),t.YNc(10,n3e,1,0,"app-empty-templates-list",8),t.YNc(11,o3e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.dockerTemplates.length),t.xp6(1),t.Q6J("ngIf",e.dockerTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 id=function(){function n(){(0,H.Z)(this,n),this.countSource=new In.xQ,this.currentCount=this.countSource.asObservable(),this.cancelItem=new In.xQ,this.currentCancelItemDetails=this.cancelItem.asObservable()}return(0,B.Z)(n,[{key:"processBarCount",value:function(e){this.countSource.next(e)}},{key:"cancelFileUploading",value:function(e){this.cancelItem.next(e)}}]),n}();id.\u0275fac=function(r){return new(r||id)},id.\u0275prov=t.Yz7({token:id,factory:id.\u0275fac,providedIn:"root"});var a3e=["primaryValueBar"],s3e=(0,Vt.pj)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}(),"primary"),l3e=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function u3e(){var n=(0,t.f3M)(ge.K0),r=n?n.location:null;return{getPathname:function(){return r?r.pathname+r.search:""}}}});var c3e=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),d3e=0,ab=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){var d;(0,H.Z)(this,e),(d=r.call(this,i))._ngZone=o,d._animationMode=a,d._changeDetectorRef=u,d._isNoopAnimation=!1,d._value=0,d._bufferValue=0,d.animationEnd=new t.vpe,d._animationEndSubscription=Ea.w.EMPTY,d.mode="determinate",d.progressbarId="mat-progress-bar-".concat(d3e++);var h=s?s.getPathname().split("#")[0]:"";return d._rectangleFillValue="url('".concat(h,"#").concat(d.progressbarId,"')"),d._isNoopAnimation="NoopAnimations"===a,l&&(l.color&&(d.color=d.defaultColor=l.color),d.mode=l.mode||d.mode),d}return(0,B.Z)(e,[{key:"value",get:function(){return this._value},set:function(o){var a;this._value=Zie((0,Mn.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=Zie(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,jd.R)(a,"transitionend").pipe((0,ti.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}(s3e);function Zie(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(r,Math.min(e,n))}ab.\u0275fac=function(r){return new(r||ab)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.QbO,8),t.Y36(l3e,8),t.Y36(c3e,8),t.Y36(t.sBO))},ab.\u0275cmp=t.Xpm({type:ab,selectors:[["mat-progress-bar"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(a3e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._primaryValueBar=i.first))},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(r,e){2&r&&(t.uIk("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),t.ekj("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.qOj],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&r&&(t.xp6(3),t.Q6J("id",e.progressbarId),t.xp6(2),t.uIk("fill",e._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",e._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",e._primaryTransform()))},dependencies:[ge.PC],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0});var Ak=(0,B.Z)(function n(){(0,H.Z)(this,n)});Ak.\u0275fac=function(r){return new(r||Ak)},Ak.\u0275mod=t.oAB({type:Ak}),Ak.\u0275inj=t.cJS({imports:[ge.ez,Vt.BQ,Vt.BQ]});var wm=function(){function n(r,e,i){(0,H.Z)(this,n),this.data=r,this._snackRef=e,this._US=i,this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.upload_file_type=this.data.upload_file_type,this.subscription=this._US.currentCount.subscribe(function(i){e.uploadProgress=i,(100===e.uploadProgress||null==e.uploadProgress)&&e.dismiss()})}},{key:"dismiss",value:function(){this._snackRef.dismiss()}},{key:"cancelItem",value:function(){this._US.cancelFileUploading(!0)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();wm.\u0275fac=function(r){return new(r||wm)(t.Y36(JG),t.Y36(gB),t.Y36(id))},wm.\u0275cmp=t.Xpm({type:wm,selectors:[["app-uploading-processbar"]],decls:8,vars:3,consts:[[1,"row","proccessBar-row"],[1,"col-md-9","proccessBar-col"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-3","proccessBar-col"],["mat-button","","color","primary",1,"file-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"p"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"div",1),t._UZ(4,"mat-progress-bar",2),t.qZA(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){return e.cancelItem()}),t._uU(7,"Cancel"),t.qZA()()()),2&r&&(t.xp6(1),t.AsE("",e.upload_file_type," Uploading please wait .... ",e.uploadProgress,"%"),t.xp6(3),t.Q6J("value",e.uploadProgress))},dependencies:[cn,ab],styles:[".mat-snack-bar-container{min-width:450px!important}.proccessBar-row{display:flex}.proccessBar-col{margin:auto}\n"],encapsulation:2});var sz=(0,B.Z)(function n(){(0,H.Z)(this,n)}),od=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=ios")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}},{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();od.\u0275fac=function(r){return new(r||od)(t.LFG(mo.zw))},od.\u0275prov=t.Yz7({token:od,factory:od.\u0275fac});var km=function(){function n(){(0,H.Z)(this,n),this.c1700_wics=["WIC-1T","WIC-2T","WIC-1ENET"],this.c2600_wics=["WIC-1T","WIC-2T"],this.c3700_wics=["WIC-1T","WIC-2T"],this.c2600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW"],this.c3600_nms=["NM-1FE-TX","NM-1E","NM-4E","NM-16ESW","NM-4T"],this.c3700_nms=["NM-1FE-TX","NM-4T","NM-16ESW"],this.c7200_pas=["PA-A1","PA-FE-TX","PA-2FE-TX","PA-GE","PA-4T+","PA-8T","PA-4E","PA-8E","PA-POS-OC3"],this.c7200_io=["C7200-IO-FE","C7200-IO-2FE","C7200-IO-GE-E"]}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getDefaultRamSettings",value:function(){return{c1700:160,c2600:160,c2691:192,c3600:192,c3725:128,c3745:256,c7200:512}}},{key:"getDefaultNvRamSettings",value:function(){return{c1700:128,c2600:128,c2691:256,c3600:192,c3620:192,c3640:192,c3660:192,c3725:256,c3745:256,c7200:512}}},{key:"getAvailablePlatforms",value:function(){return["c1700","c2600","c2691","c3725","c3745","c3600","c7200"]}},{key:"getPlatformsWithEtherSwitchRouterOption",value:function(){return{c1700:!1,c2600:!0,c2691:!0,c3725:!0,c3745:!0,c3600:!0,c7200:!1}}},{key:"getPlatformsWithChassis",value:function(){return{c1700:!0,c2600:!0,c2691:!1,c3725:!1,c3745:!1,c3600:!0,c7200:!1}}},{key:"getChassis",value:function(){return{c1700:["1720","1721","1750","1751","1760"],c2600:["2610","2611","2620","2621","2610XM","2611XM","2620XM","2621XM","2650XM","2651XM"],c3600:["3620","3640","3660"]}}},{key:"getNetworkModules",value:function(){return{c1700:{0:this.c1700_wics,1:this.c1700_wics},c2600:{0:this.c2600_wics,1:this.c2600_wics,2:this.c2600_wics},c2691:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3725:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics},c3745:{0:this.c3700_wics,1:this.c3700_wics,2:this.c3700_wics}}}},{key:"getNetworkAdapters",value:function(){return{1720:{0:["C1700-MB-1FE"]},1721:{0:["C1700-MB-1FE"]},1750:{0:["C1700-MB-1FE"]},1751:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},1760:{0:["C1700-MB-1FE"],1:["C1700-MB-WIC1"]},2610:{0:["C2600-MB-1E"],1:this.c2600_nms},2611:{0:["C2600-MB-2E"],1:this.c2600_nms},2620:{0:["C2600-MB-1FE"],1:this.c2600_nms},2621:{0:["C2600-MB-2FE"],1:this.c2600_nms},"2610XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2611XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2620XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2621XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},"2650XM":{0:["C2600-MB-1FE"],1:this.c2600_nms},"2651XM":{0:["C2600-MB-2FE"],1:this.c2600_nms},3620:{0:this.c3600_nms,1:this.c3600_nms},3640:{0:this.c3600_nms,1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms},3660:{0:["Leopard-2FE"],1:this.c3600_nms,2:this.c3600_nms,3:this.c3600_nms,4:this.c3600_nms,5:this.c3600_nms,6:this.c3600_nms}}}},{key:"getNetworkAdaptersForPlatform",value:function(){var e={};return e.c2691={0:["GT96100-FE"],1:this.c3700_nms},e.c3725={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},e.c3745={0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},e.c7200={0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas},{c2691:{0:["GT96100-FE"],1:this.c3700_nms},c3725:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms},c3745:{0:["GT96100-FE"],1:this.c3700_nms,2:this.c3700_nms,3:this.c3700_nms,4:this.c3700_nms},c7200:{0:this.c7200_io,1:this.c7200_pas,2:this.c7200_pas,3:this.c7200_pas,4:this.c7200_pas,5:this.c7200_pas,6:this.c7200_pas}}}}]),n}();function f3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function p3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function h3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function m3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",20)(1,"mat-select",39),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onChassisChosen(a))}),t.YNc(2,m3e,2,2,"mat-option",22),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",i.chassis[i.iosNameForm.get("platform").value])}}function g3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-checkbox",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.isEtherSwitchRouter=a)}),t._uU(1," This is an EtherSwitch router "),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("ngModel",i.isEtherSwitchRouter)}}function v3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}km.\u0275fac=function(r){return new(r||km)},km.\u0275prov=t.Yz7({token:km,factory:km.\u0275fac});var Nie=function(){return{standalone:!0}};function y3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,v3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Nie)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosNameForm.get("platform").value][i])}}function b3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,y3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value]&&i.networkAdaptersForPlatform[i.iosNameForm.get("platform").value][e])}}var C3e=function(){return[0,1,2,3,4,5,6,7]};function w3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,b3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,C3e)))}function k3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function T3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",43),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkModulesForTemplate[l]=s)}),t.YNc(1,k3e,2,2,"mat-option",22),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","WIC ",i,""),t.Q6J("ngModel",o.networkModulesForTemplate[i])("ngModelOptions",t.DdM(4,Nie)),t.xp6(1),t.Q6J("ngForOf",o.networkModules[o.iosNameForm.get("platform").value][i])}}function M3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,T3e,2,5,"mat-select",42),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkModules[i.iosNameForm.get("platform").value]&&i.networkModules[i.iosNameForm.get("platform").value][e])}}var S3e=function(){return[0,1,2,3]};function E3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,M3e,2,1,"div",41),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,S3e)))}function x3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"mat-vertical-stepper",11)(3,"mat-step",12)(4,"mat-radio-group",13)(5,"mat-radio-button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setControllerType("local"))}),t._uU(6,"Run this IOS router locally"),t.qZA()()(),t.TgZ(7,"mat-step",15)(8,"input",16,17),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.addImage(a))}),t.qZA(),t.TgZ(10,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(9);return t.KtG(a.click())}),t._uU(11,"Click to add image"),t.qZA(),t._uU(12," or create from existing one "),t.TgZ(13,"form",19)(14,"mat-form-field",20)(15,"mat-select",21),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onImageChosen(a))}),t.YNc(16,p3e,2,2,"mat-option",22),t.qZA()()()(),t.TgZ(17,"mat-step",23)(18,"form",19)(19,"mat-form-field",20),t._UZ(20,"input",24),t.qZA(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",25),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.onPlatformChosen(a))}),t.YNc(23,h3e,2,2,"mat-option",22),t.qZA()(),t.YNc(24,_3e,3,1,"mat-form-field",26),t.qZA(),t.YNc(25,g3e,2,1,"mat-checkbox",27),t.qZA(),t.TgZ(26,"mat-step",28)(27,"form",19)(28,"mat-form-field",20),t._UZ(29,"input",29),t.TgZ(30,"span",30),t._uU(31,"MB"),t.qZA()(),t.TgZ(32,"mat-label")(33,"a",31),t._uU(34,"Check for minimum and maximum RAM requirement"),t.qZA()()()(),t.TgZ(35,"mat-step",32),t.YNc(36,w3e,2,2,"div",33),t.qZA(),t.TgZ(37,"mat-step",34),t.YNc(38,E3e,2,2,"div",33),t.qZA(),t.TgZ(39,"mat-step",35)(40,"mat-form-field",20)(41,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()()()()(),t.TgZ(42,"div",37)(43,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(44,"Cancel"),t.qZA(),t.TgZ(45,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(46,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",i.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",i.iosImageForm.get("imageName").value),t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("formGroup",i.iosImageForm),t.xp6(3),t.Q6J("ngForOf",i.iosImages),t.xp6(1),t.Q6J("completed",i.iosNameForm.get("templateName").value&&i.iosNameForm.get("platform").value&&i.iosNameForm.get("chassis").value),t.xp6(1),t.Q6J("formGroup",i.iosNameForm),t.xp6(5),t.Q6J("ngForOf",i.platforms),t.xp6(1),t.Q6J("ngIf",i.chassis[i.iosNameForm.get("platform").value]),t.xp6(1),t.Q6J("ngIf",i.platformsWithEtherSwitchRouterOption[i.iosTemplate.platform]),t.xp6(1),t.Q6J("completed",i.iosMemoryForm.get("memory").value),t.xp6(1),t.Q6J("formGroup",i.iosMemoryForm),t.xp6(6),t.s9C("href",i.ciscoUrl,t.LSH),t.xp6(3),t.Q6J("ngIf",i.selectedPlatform),t.xp6(2),t.Q6J("ngIf",i.iosNameForm.get("platform").value),t.xp6(3),t.Q6J("ngModel",i.iosTemplate.idlepc)}}var S2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.router=s,this.templateMocksService=l,this.iosConfigurationService=u,this.computeService=d,this.uploadServiceService=h,this.snackBar=g,this.isEtherSwitchRouter=!1,this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[],this.iosImages=[],this.platforms=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.ciscoUrl="https://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/SearchBySoftware.jsp",this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iosTemplate=new sz,this.iosImageForm=this.formBuilder.group({imageName:new J.p4(null,[J.kI.required])}),this.iosNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required]),platform:new J.p4(null,[J.kI.required]),chassis:new J.p4(null,[J.kI.required])}),this.iosMemoryForm=this.formBuilder.group({memory:new J.p4(null,[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()});var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIosTemplate().subscribe(function(a){e.iosTemplate=a,e.networkModules=e.iosConfigurationService.getNetworkModules(),e.networkAdaptersForPlatform=e.iosConfigurationService.getNetworkAdaptersForPlatform(),e.networkAdapters=e.iosConfigurationService.getNetworkAdapters(),e.platforms=e.iosConfigurationService.getAvailablePlatforms(),e.platformsWithEtherSwitchRouterOption=e.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),e.platformsWithChassis=e.iosConfigurationService.getPlatformsWithChassis(),e.chassis=e.iosConfigurationService.getChassis(),e.defaultRam=e.iosConfigurationService.getDefaultRamSettings()})})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"getImages",value:function(){var e=this;this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i})}},{key:"addImage",value:function(e){var i=e.target.files[0].name.split("-")[0];this.iosNameForm.controls.templateName.setValue(i);var o=e.target.files[0].name,a=this.iosService.getImagePath(this.controller,o);this.uploader.queue.forEach(function(l){return l.url=a});var s=this.uploader.queue[0];s.options&&(s.options.disableMultipart=!0),s.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(s),this.snackBar.openFromComponent(wm,{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=ts(),this.iosTemplate.image=this.iosImageForm.get("imageName").value,this.iosTemplate.name=this.iosNameForm.get("templateName").value,this.iosTemplate.platform=this.iosNameForm.get("platform").value,this.chassis[this.iosNameForm.get("platform").value]&&(this.iosTemplate.chassis=this.iosNameForm.get("chassis").value),this.iosTemplate.ram=this.iosMemoryForm.get("memory").value,this.isEtherSwitchRouter&&(this.iosTemplate.symbol="multilayer_switch",this.iosTemplate.category="switch"),this.networkAdaptersForTemplate.length>0&&this.completeAdaptersData(),this.networkModulesForTemplate.length>0&&this.completeModulesData(),this.iosTemplate.compute_id="local",this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"completeAdaptersData",value:function(){if(this.chassis[this.iosTemplate.platform]){if(Object.keys(this.networkAdapters[this.iosTemplate.chassis]))for(var e=0;e<Object.keys(this.networkAdapters[this.iosTemplate.chassis]).length;e++)this.networkAdaptersForTemplate[e]||(this.networkAdaptersForTemplate[e]="")}else if(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value])for(var i=0;i<Object.keys(this.networkAdaptersForPlatform[this.iosNameForm.get("platform").value]).length;i++)this.networkAdaptersForTemplate[i]||(this.networkAdaptersForTemplate[i]="");this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"completeModulesData",value:function(){if(Object.keys(this.networkModules[this.iosTemplate.platform]))for(var e=0;e<Object.keys(this.networkModules[this.iosTemplate.platform]).length;e++)this.networkModulesForTemplate[e]||(this.networkModulesForTemplate[e]="");this.networkModulesForTemplate[0]&&(this.iosTemplate.wic0=this.networkModulesForTemplate[0]),this.networkModulesForTemplate[1]&&(this.iosTemplate.wic1=this.networkModulesForTemplate[1]),this.networkModulesForTemplate[2]&&(this.iosTemplate.wic2=this.networkModulesForTemplate[2])}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"onImageChosen",value:function(){var e=this.iosImageForm.get("imageName").value.split("-")[0];this.iosNameForm.controls.templateName.setValue(e),"c3620"===e||"c3640"===e||"c3660"===e?(this.iosNameForm.controls.platform.setValue("c3600"),this.selectedPlatform="c3600"):(this.iosNameForm.controls.platform.setValue(e),this.selectedPlatform=e),"c1700"===e?this.iosNameForm.controls.chassis.setValue("1720"):"c2600"===e?this.iosNameForm.controls.chassis.setValue("2610"):this.iosNameForm.controls.chassis.setValue(""),this.iosMemoryForm.controls.memory.setValue(this.defaultRam[e])}},{key:"onPlatformChosen",value:function(){this.iosTemplate.chassis="",this.networkAdaptersForTemplate=[],this.networkModulesForTemplate=[]}},{key:"onChassisChosen",value:function(){this.networkAdaptersForTemplate=[]}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function D3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}S2.\u0275fac=function(r){return new(r||S2)(t.Y36(pr),t.Y36(rr),t.Y36(od),t.Y36(Ln),t.Y36(J.QS),t.Y36(ur),t.Y36(xl),t.Y36(km),t.Y36(sf.X),t.Y36(id),t.Y36(td))},S2.\u0275cmp=t.Xpm({type:S2,selectors:[["app-add-ios-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","IOS image",3,"completed"],["type","file","accept",".bin, .image","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"form-field"],["placeholder","Image","formControlName","imageName",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Name and platform",3,"completed"],["matInput","","type","text","formControlName","templateName","placeholder","Name"],["placeholder","Platform","formControlName","platform",3,"selectionChange"],["class","form-field",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],["label","Memory",3,"completed"],["matInput","","type","number","formControlName","memory","value","defaultRam[iosNameForm.get('platform').value]","placeholder","Default RAM"],["matSuffix",""],[3,"href"],["label","Network adapters"],[4,"ngIf"],["label","WIC modules"],["label","Idle-PC"],["matInput","","type","text","placeholder","Idle-PC",3,"ngModel","ngModelChange"],[1,"buttons-bar"],[3,"value"],["placeholder","Chassis","formControlName","chassis",3,"selectionChange"],[3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,f3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOS router template"),t.qZA()()()(),t.YNc(8,x3e,47,17,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,kn.hX,kn.R9,cn,Dn,Kn,$r,ni.gD,Vt.ey,rd,uf,ns,js],styles:[".non-visible[_ngcontent-%COMP%]{display:none}","table[_ngcontent-%COMP%]{width:100%}.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 E2=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.formGroup=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.templateName="Copy of ".concat(e.iosTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"addTemplate",value:function(){var e=this;this.formGroup.invalid?this.toasterService.error("Fill all required fields"):(this.iosTemplate.template_id=ts(),this.iosTemplate.name=this.templateName,this.iosService.addTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function A3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function O3e(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("Chassis - ",e.iosTemplate.chassis,"")}}function I3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function P3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function R3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function L3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}E2.\u0275fac=function(r){return new(r||E2)(t.Y36(pr),t.Y36(rr),t.Y36(od),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS))},E2.\u0275cmp=t.Xpm({type:E2,selectors:[["app-copy-ios-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,D3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOS router template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.formGroup),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.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(){return{standalone:!0}};function Z3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",45),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,L3e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Tm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdapters[o.iosTemplate.chassis][i])}}function N3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Z3e,2,5,"mat-select",44),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdapters[i.iosTemplate.chassis][e])}}var Bie=function(){return[0,1,2,3,4,5,6,7]};function B3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,N3e,2,1,"div",43),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,Bie)))}function F3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function U3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",45),t.NdJ("ngModelChange",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.networkAdaptersForTemplate[l]=s)}),t.YNc(1,F3e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.MGl("placeholder","Slot ",i,""),t.Q6J("ngModel",o.networkAdaptersForTemplate[i])("ngModelOptions",t.DdM(4,Tm)),t.xp6(1),t.Q6J("ngForOf",o.networkAdaptersForPlatform[o.iosTemplate.platform][i])}}function H3e(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,U3e,2,5,"mat-select",44),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",i.networkAdaptersForPlatform[i.iosTemplate.platform][e])}}function j3e(n,r){1&n&&(t.TgZ(0,"div"),t.YNc(1,H3e,2,1,"div",43),t.qZA()),2&n&&(t.xp6(1),t.Q6J("ngForOf",t.DdM(1,Bie)))}function G3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function z3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic0=a)}),t.YNc(2,G3e,2,2,"mat-option",19),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic0)("ngModelOptions",t.DdM(3,Tm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][0])}}function W3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function V3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic1=a)}),t.YNc(2,W3e,2,2,"mat-option",19),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic1)("ngModelOptions",t.DdM(3,Tm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][1])}}function Y3e(n,r){if(1&n&&(t.TgZ(0,"mat-option",42),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function K3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-select",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iosTemplate.wic2=a)}),t.YNc(2,Y3e,2,2,"mat-option",19),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iosTemplate.wic2)("ngModelOptions",t.DdM(3,Tm)),t.xp6(1),t.Q6J("ngForOf",i.networkModules[i.iosTemplate.platform][2])}}function q3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",11)(7,"mat-form-field",12)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",12)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-label"),t._uU(12),t.qZA(),t._UZ(13,"br")(14,"br"),t.YNc(15,O3e,5,1,"div",15),t.TgZ(16,"mat-form-field",12)(17,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.symbol=a)}),t.qZA()(),t.TgZ(18,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(19,"Choose symbol"),t.qZA(),t._UZ(20,"br")(21,"br"),t.TgZ(22,"mat-form-field",12)(23,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.category=a)}),t.YNc(24,I3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(25,"mat-form-field",12)(26,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.image=a)}),t.qZA()(),t.TgZ(27,"mat-form-field",12)(28,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.startup_config=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",12)(30,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.private_config=a)}),t.qZA()()(),t.TgZ(31,"mat-form-field",23)(32,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_type=a)}),t.YNc(33,P3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(34,"mat-form-field",23)(35,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.aux_type=a)}),t.YNc(36,R3e,2,2,"mat-option",19),t.qZA()(),t.TgZ(37,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.console_auto_start=a)}),t._uU(38," Auto start console "),t.qZA()(),t.TgZ(39,"mat-expansion-panel")(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Memories and disks "),t.qZA()(),t.TgZ(43,"form",11)(44,"mat-form-field",12)(45,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.ram=a)}),t.qZA(),t.TgZ(46,"span",28),t._uU(47,"MB"),t.qZA()(),t.TgZ(48,"mat-form-field",12)(49,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.nvram=a)}),t.qZA(),t.TgZ(50,"span",28),t._uU(51,"MB"),t.qZA()(),t.TgZ(52,"mat-form-field",12)(53,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.iomem=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",12)(55,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk0=a)}),t.qZA()(),t.TgZ(56,"mat-form-field",12)(57,"input",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.disk1=a)}),t.qZA()()(),t.TgZ(58,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.auto_delete_disks=a)}),t._uU(59," Automatically delete NVRAM and disk files "),t.qZA()(),t.TgZ(60,"mat-expansion-panel")(61,"mat-expansion-panel-header")(62,"mat-panel-title"),t._uU(63," Slots "),t.qZA()(),t.TgZ(64,"h6"),t._uU(65,"Adapters"),t.qZA(),t.YNc(66,B3e,2,2,"div",15),t.YNc(67,j3e,2,2,"div",15),t._UZ(68,"br")(69,"br"),t.TgZ(70,"h6"),t._uU(71,"WICs"),t.qZA(),t.YNc(72,z3e,3,4,"div",15),t.YNc(73,V3e,3,4,"div",15),t.YNc(74,K3e,3,4,"div",15),t.qZA(),t.TgZ(75,"mat-expansion-panel")(76,"mat-expansion-panel-header")(77,"mat-panel-title"),t._uU(78," Advanced "),t.qZA()(),t.TgZ(79,"form",11)(80,"mat-form-field",12)(81,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.system_id=a)}),t.qZA()(),t.TgZ(82,"mat-form-field",12)(83,"input",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mac_addr=a)}),t.qZA()(),t.TgZ(84,"mat-form-field",12)(85,"input",35),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlepc=a)}),t.qZA()(),t.TgZ(86,"mat-form-field",12)(87,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlemax=a)}),t.qZA()(),t.TgZ(88,"mat-form-field",12)(89,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.idlesleep=a)}),t.qZA()(),t.TgZ(90,"mat-form-field",12)(91,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.exec_area=a)}),t.qZA()()(),t.TgZ(92,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.mmap=a)}),t._uU(93," Enable mmap support "),t.qZA(),t._UZ(94,"br")(95,"br"),t.TgZ(96,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.sparsemem=a)}),t._uU(97," Enable sparse memory supoport "),t.qZA()(),t.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),t._uU(101," Usage "),t.qZA()(),t.TgZ(102,"mat-form-field",12)(103,"textarea",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iosTemplate.usage=a)}),t.qZA()()()(),t.TgZ(104,"div",40)(105,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(106,"Cancel"),t.qZA(),t.TgZ(107,"button",41),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(108,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.default_name_format),t.xp6(2),t.hij("Platform - ",i.iosTemplate.platform,""),t.xp6(3),t.Q6J("ngIf",i.iosTemplate.chassis),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(42,Tm))("ngModel",i.iosTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.image),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(43,Tm))("ngModel",i.iosTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.console_auto_start),t.xp6(6),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.nvram),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.iomem),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk0),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.disk1),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.auto_delete_disks),t.xp6(8),t.Q6J("ngIf",i.iosTemplate.chassis&&i.chassis[i.iosTemplate.platform]),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.platform&&!i.chassis[i.iosTemplate.platform]),t.xp6(5),t.Q6J("ngIf",i.iosTemplate.wic0||""===i.iosTemplate.wic0),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic1||""===i.iosTemplate.wic1),t.xp6(1),t.Q6J("ngIf",i.iosTemplate.wic2||""===i.iosTemplate.wic2),t.xp6(5),t.Q6J("formGroup",i.advancedForm),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.system_id),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(44,Tm))("ngModel",i.iosTemplate.mac_addr),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(45,Tm))("ngModel",i.iosTemplate.idlepc),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlemax),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.idlesleep),t.xp6(2),t.Q6J("ngModel",i.iosTemplate.exec_area),t.xp6(1),t.Q6J("ngModel",i.iosTemplate.mmap),t.xp6(4),t.Q6J("ngModel",i.iosTemplate.sparsemem),t.xp6(7),t.Q6J("ngModel",i.iosTemplate.usage)}}function J3e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",49),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iosTemplate.symbol)}}var Q3e=function(r){return{shadowed:r}},x2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.toasterService=o,this.formBuilder=a,this.iosConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.networkAdaptersForTemplate=[],this.platforms=[],this.consoleTypes=[],this.categories=[],this.platformsWithEtherSwitchRouterOption={},this.platformsWithChassis={},this.chassis={},this.defaultRam={},this.defaultNvram={},this.networkAdapters={},this.networkAdaptersForPlatform={},this.networkModules={},this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required),iomemory:new J.p4("",J.kI.required),disk0:new J.p4("",J.kI.required),disk1:new J.p4("",J.kI.required)}),this.advancedForm=this.formBuilder.group({systemId:new J.p4("",J.kI.required),idlemax:new J.p4("",J.kI.required),idlesleep:new J.p4("",J.kI.required),execarea:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iosService.getTemplate(e.controller,o).subscribe(function(s){e.iosTemplate=s,e.fillAdaptersData()})})}},{key:"getConfiguration",value:function(){this.networkModules=this.iosConfigurationService.getNetworkModules(),this.networkAdaptersForPlatform=this.iosConfigurationService.getNetworkAdaptersForPlatform(),this.networkAdapters=this.iosConfigurationService.getNetworkAdapters(),this.platforms=this.iosConfigurationService.getAvailablePlatforms(),this.platformsWithEtherSwitchRouterOption=this.iosConfigurationService.getPlatformsWithEtherSwitchRouterOption(),this.platformsWithChassis=this.iosConfigurationService.getPlatformsWithChassis(),this.chassis=this.iosConfigurationService.getChassis(),this.defaultRam=this.iosConfigurationService.getDefaultRamSettings(),this.consoleTypes=this.iosConfigurationService.getConsoleTypes(),this.categories=this.iosConfigurationService.getCategories()}},{key:"fillAdaptersData",value:function(){this.iosTemplate.slot0&&(this.networkAdaptersForTemplate[0]=this.iosTemplate.slot0),this.iosTemplate.slot1&&(this.networkAdaptersForTemplate[1]=this.iosTemplate.slot1),this.iosTemplate.slot2&&(this.networkAdaptersForTemplate[2]=this.iosTemplate.slot2),this.iosTemplate.slot3&&(this.networkAdaptersForTemplate[3]=this.iosTemplate.slot3),this.iosTemplate.slot4&&(this.networkAdaptersForTemplate[4]=this.iosTemplate.slot4),this.iosTemplate.slot5&&(this.networkAdaptersForTemplate[5]=this.iosTemplate.slot5),this.iosTemplate.slot6&&(this.networkAdaptersForTemplate[6]=this.iosTemplate.slot6),this.iosTemplate.slot7&&(this.networkAdaptersForTemplate[7]=this.iosTemplate.slot7)}},{key:"completeAdaptersData",value:function(){this.networkAdaptersForTemplate[0]&&(this.iosTemplate.slot0=this.networkAdaptersForTemplate[0]),this.networkAdaptersForTemplate[1]&&(this.iosTemplate.slot1=this.networkAdaptersForTemplate[1]),this.networkAdaptersForTemplate[2]&&(this.iosTemplate.slot2=this.networkAdaptersForTemplate[2]),this.networkAdaptersForTemplate[3]&&(this.iosTemplate.slot3=this.networkAdaptersForTemplate[3]),this.networkAdaptersForTemplate[4]&&(this.iosTemplate.slot4=this.networkAdaptersForTemplate[4]),this.networkAdaptersForTemplate[5]&&(this.iosTemplate.slot5=this.networkAdaptersForTemplate[5]),this.networkAdaptersForTemplate[6]&&(this.iosTemplate.slot6=this.networkAdaptersForTemplate[6]),this.networkAdaptersForTemplate[7]&&(this.iosTemplate.slot7=this.networkAdaptersForTemplate[7])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.memoryForm.invalid||this.advancedForm.invalid?this.toasterService.error("Fill all required fields"):(this.completeAdaptersData(),this.iosService.saveTemplate(this.controller,this.iosTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates"])}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iosTemplate.symbol=e}}]),n}();function X3e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function $3e(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/dynamips/templates/addtemplate")}}function e6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function t6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function n6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,t6e,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iosTemplates)}}function r6e(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,n6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}x2.\u0275fac=function(r){return new(r||x2)(t.Y36(pr),t.Y36(rr),t.Y36(od),t.Y36(Ln),t.Y36(J.QS),t.Y36(km),t.Y36(ur))},x2.\u0275cmp=t.Xpm({type:x2,selectors:[["app-ios-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"],[4,"ngIf"],["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"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","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"],["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-raised-button","","color","primary",3,"click"],[3,"value"],[4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 0",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 1",3,"ngModel","ngModelOptions","ngModelChange"],["placeholder","WIC 2",3,"ngModel","ngModelOptions","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,A3e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router template configuration"),t.qZA()()()(),t.YNc(8,q3e,109,46,"div",7),t.qZA(),t.YNc(9,J3e,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,Q3e,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iosTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iosTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.hX,kn.R9,cn,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 D2=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iosService=i,this.router=o,this.iosTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iosService.getTemplates(this.controller).subscribe(function(i){e.iosTemplates=i.filter(function(o){return"dynamips"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","dynamips","templates",e.template_id,"copy"])}}]),n}();D2.\u0275fac=function(r){return new(r||D2)(t.Y36(pr),t.Y36(rr),t.Y36(od),t.Y36(ur))},D2.\u0275cmp=t.Xpm({type:D2,selectors:[["app-ios-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add IOS router template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,X3e,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"IOS router templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,$3e,3,1,"button",7),t.qZA()()(),t.YNc(10,e6e,1,0,"app-empty-templates-list",8),t.YNc(11,r6e,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iosTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iosTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 lz=(0,B.Z)(function n(){(0,H.Z)(this,n)}),ad=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=iou")}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function i6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function o6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function a6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.path),t.xp6(1),t.hij(" ",e.path," ")}}ad.\u0275fac=function(r){return new(r||ad)(t.LFG(mo.zw))},ad.\u0275prov=t.Yz7({token:ad,factory:ad.\u0275fac});var Fie=function(){return{standalone:!0}};function s6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",15)(1,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.YNc(2,a6e,2,2,"mat-option",20),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.iouTemplate.path)("ngModelOptions",t.DdM(3,Fie)),t.xp6(1),t.Q6J("ngForOf",i.iouImages)}}function l6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",28,29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",31),t._UZ(6,"input",32),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader)}}var A2=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.computeService=u,this.uploadServiceService=d,this.snackBar=h,this.isRemoteComputerChosen=!1,this.newImageSelected=!1,this.types=["L2 image","L3 image"],this.iouImages=[],this.isLocalComputerChosen=!0,this.uploadProgress=0,this.iouTemplate=new lz,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.imageForm=this.formBuilder.group({imageName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploader.onSuccessItem=function(o,a,s,l){e.getImages(),e.toasterService.success("Image uploaded")};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getImages(),e.templateMocksService.getIouTemplate().subscribe(function(a){e.iouTemplate=a})}),this.subscription=this.uploadServiceService.currentCancelItemDetails.subscribe(function(o){o&&e.cancelUploading()})}},{key:"getImages",value:function(){var e=this;this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"setDiskImage",value:function(e){this.newImageSelected="newImage"===e}},{key:"uploadImageFile",value:function(e){var i=e.target.files[0].name;this.imageForm.controls.imageName.setValue(i);var o=this.iouService.getImagePath(this.controller,i);this.uploader.queue.forEach(function(s){return s.url=o});var a=this.uploader.queue[0];a.options&&(a.options.disableMultipart=!0),a.options.headers=[{name:"Authorization",value:"Bearer "+this.controller.authToken}],this.uploader.uploadItem(a),this.snackBar.openFromComponent(wm,{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=ts(),this.iouTemplate.name=this.templateNameForm.get("templateName").value,this.newImageSelected&&(this.iouTemplate.path=this.imageForm.get("imageName").value),this.iouTemplate.compute_id="local","L2 image"===this.selectedType?(this.iouTemplate.ethernet_adapters=4,this.iouTemplate.serial_adapters=0):"L3 image"===this.selectedType&&(this.iouTemplate.ethernet_adapters=2,this.iouTemplate.serial_adapters=2),this.iouService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()})):this.toasterService.error("Fill all required fields")}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();function u6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}A2.\u0275fac=function(r){return new(r||A2)(t.Y36(pr),t.Y36(rr),t.Y36(ad),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS),t.Y36(xl),t.Y36(sf.X),t.Y36(id),t.Y36(td))},A2.\u0275cmp=t.Xpm({type:A2,selectors:[["app-add-iou-template"]],decls:36,vars:12,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"linear"],["label","Controller type",3,"completed"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["label","Name",3,"completed"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Name","type","text","formControlName","templateName"],["label","Image"],["value","2",1,"radio-button",3,"click"],["placeholder","Type",3,"ngModel","ngModelOptions","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["class","form-field",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","IOU image",3,"ngModel","ngModelOptions","ngModelChange"],["type","file","accept",".bin","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","imageName","placeholder","IOU image"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,i6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this IOU device locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA()()(),t.TgZ(19,"mat-step",17)(20,"form",14)(21,"mat-radio-group",11)(22,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(23,"Existing image"),t.qZA(),t.TgZ(24,"mat-radio-button",18),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(25,"New image"),t.qZA()(),t.TgZ(26,"mat-form-field",15)(27,"mat-select",19),t.NdJ("ngModelChange",function(o){return e.selectedType=o}),t.YNc(28,o6e,2,2,"mat-option",20),t.qZA()(),t.YNc(29,s6e,3,4,"mat-form-field",21),t.YNc(30,l6e,7,1,"div",22),t.qZA()()()(),t.TgZ(31,"div",23)(32,"button",24),t.NdJ("click",function(){return e.goBack()}),t._uU(33,"Cancel"),t.qZA(),t.TgZ(34,"button",25),t.NdJ("click",function(){return e.addTemplate()}),t._uU(35,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.templateNameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.templateNameForm),t.xp6(4),t.Q6J("formGroup",e.imageForm),t.xp6(7),t.Q6J("ngModel",e.selectedType)("ngModelOptions",t.DdM(11,Fie)),t.xp6(1),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,Mp,kn.KE,cn,Dn,Kn,ni.gD,Vt.ey,rd,uf,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.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 O2=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.templateNameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s,e.templateName="Copy of ".concat(e.iouTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.iouTemplate.template_id=ts(),this.iouTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.iouTemplate).subscribe(function(i){e.goBack()}))}}]),n}();O2.\u0275fac=function(r){return new(r||O2)(t.Y36(pr),t.Y36(rr),t.Y36(ad),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS))},O2.\u0275cmp=t.Xpm({type:O2,selectors:[["app-copy-iou-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,u6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy IOU device template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Og=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function c6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function d6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function f6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function p6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",36),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.ram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.ram)}}function h6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",2)(1,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.iouTemplate.nvram=a)}),t.qZA(),t.TgZ(2,"span",37),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.iouTemplate.nvram)}}Og.\u0275fac=function(r){return new(r||Og)},Og.\u0275prov=t.Yz7({token:Og,factory:Og.\u0275fac});var Uie=function(){return{standalone:!0}};function m6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",12)(7,"mat-form-field",2)(8,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",2)(10,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",2)(12,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",16),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",2)(18,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.category=a)}),t.YNc(19,d6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(20,"input",19,20),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(22,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(21);return t.KtG(a.click())}),t._uU(23,"Browse"),t.qZA(),t.TgZ(24,"mat-form-field",22)(25,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.path=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",2)(27,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.startup_config=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",2)(29,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.private_config=a)}),t.qZA()()(),t.TgZ(30,"mat-form-field",26)(31,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_type=a)}),t.YNc(32,f6e,2,2,"mat-option",18),t.qZA()(),t.TgZ(33,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.console_auto_start=a)}),t._uU(34," Auto start console "),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.l1_keepalives=a)}),t._uU(37," Enable layer 1 keepalive messages (non-functional) "),t.qZA(),t._UZ(38,"br"),t.TgZ(39,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.use_default_iou_values=a)}),t._uU(40," Use default IOU values for memories "),t.qZA(),t.YNc(41,p6e,4,1,"mat-form-field",29),t.YNc(42,h6e,4,1,"mat-form-field",29),t.qZA(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," Network "),t.qZA()(),t.TgZ(47,"form",12)(48,"mat-form-field",2)(49,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.ethernet_adapters=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",2)(51,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.serial_adapters=a)}),t.qZA()()()(),t.TgZ(52,"mat-expansion-panel")(53,"mat-expansion-panel-header")(54,"mat-panel-title"),t._uU(55," Usage "),t.qZA()(),t.TgZ(56,"mat-form-field",2)(57,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.iouTemplate.usage=a)}),t.qZA()()()(),t.TgZ(58,"div",33)(59,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(60,"Cancel"),t.qZA(),t.TgZ(61,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(62,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.name),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(22,Uie))("ngModel",i.iouTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.path),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.startup_config),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(23,Uie))("ngModel",i.iouTemplate.private_config),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.iouTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.l1_keepalives),t.xp6(3),t.Q6J("ngModel",i.iouTemplate.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.iouTemplate.use_default_iou_values),t.xp6(5),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.iouTemplate.serial_adapters),t.xp6(6),t.Q6J("ngModel",i.iouTemplate.usage)}}function _6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",39),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.iouTemplate.symbol)}}var g6e=function(r){return{shadowed:r}},I2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.toasterService=o,this.configurationService=a,this.router=s,this.formBuilder=l,this.isSymbolSelectionOpened=!1,this.defaultSettings=!0,this.consoleTypes=[],this.consoleResolutions=[],this.categories=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),initialConfig:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.iouService.getTemplate(e.controller,o).subscribe(function(s){e.iouTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.categories=this.configurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):this.iouService.saveTemplate(this.controller,this.iouTemplate).subscribe(function(){e.toasterService.success("Changes saved")})}},{key:"uploadImageFile",value:function(e){this.iouTemplate.path=e.target.files[0].name}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.iouTemplate.symbol=e}}]),n}();function v6e(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences/iou/addtemplate")}}function y6e(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function b6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",16)(1,"mat-list-item",17),t._uU(2),t.qZA(),t.TgZ(3,"button",18)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,19)(8,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()(),t.TgZ(13,"button",20),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",21)(19,"mat-icon"),t._uU(20,"edit"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Edit"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(15),t.s9C("routerLink",i.template_id)}}function C6e(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,b6e,23,4,"div",15),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.iouTemplates)}}function w6e(n,r){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14),t.YNc(2,C6e,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}I2.\u0275fac=function(r){return new(r||I2)(t.Y36(pr),t.Y36(rr),t.Y36(ad),t.Y36(Ln),t.Y36(Og),t.Y36(ur),t.Y36(J.QS))},I2.\u0275cmp=t.Xpm({type:I2,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","min","1","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","NVRAM size",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),t.YNc(5,c6e,3,0,"button",5),t.qZA(),t.TgZ(6,"div",6)(7,"h1",7),t._uU(8,"IOU device template configuration"),t.qZA()()()()(),t.YNc(9,m6e,63,24,"div",8),t.qZA(),t.YNc(10,_6e,1,2,"app-symbols-menu",9)),2&r&&(t.Q6J("ngClass",t.VKq(4,g6e,e.isSymbolSelectionOpened)),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.iouTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.iouTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 P2=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.iouService=i,this.router=o,this.iouTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.iouService.getTemplates(this.controller).subscribe(function(i){e.iouTemplates=i.filter(function(o){return"iou"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","iou","templates",e.template_id,"copy"])}}]),n}();P2.\u0275fac=function(r){return new(r||P2)(t.Y36(pr),t.Y36(rr),t.Y36(ad),t.Y36(ur))},P2.\u0275cmp=t.Xpm({type:P2,selectors:[["app-iou-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:16,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["matTooltip","Add IOU device template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"IOU device templates"),t.qZA()(),t.TgZ(10,"div",3),t.YNc(11,v6e,3,1,"button",7),t.qZA()()(),t.YNc(12,y6e,1,0,"app-empty-templates-list",8),t.YNc(13,w6e,3,1,"div",9),t.qZA(),t.TgZ(14,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.iouTemplates.length),t.xp6(1),t.Q6J("ngIf",e.iouTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 n(r){(0,H.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();R2.\u0275fac=function(r){return new(r||R2)(t.Y36(pr))},R2.\u0275cmp=t.Xpm({type:R2,selectors:[["app-preferences"]],decls:29,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-1"],["mat-button","",1,"cancel-button",3,"routerLink"],[1,"col-md-11"],[1,"col"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],[3,"routerLink"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4)(5,"mat-icon"),t._uU(6,"arrow_back"),t.qZA()()(),t.TgZ(7,"div",5)(8,"h1",6),t._uU(9,"Template preferences"),t.qZA()()()(),t.TgZ(10,"div",7)(11,"div",8)(12,"mat-nav-list")(13,"mat-list-item",9),t._uU(14," Built-in "),t.qZA(),t.TgZ(15,"mat-list-item",9),t._uU(16," Dynamips "),t.qZA(),t.TgZ(17,"mat-list-item",9),t._uU(18," IOS on Unix "),t.qZA(),t.TgZ(19,"mat-list-item",9),t._uU(20," VPCS "),t.qZA(),t.TgZ(21,"mat-list-item",9),t._uU(22," QEMU "),t.qZA(),t.TgZ(23,"mat-list-item",9),t._uU(24," VirtualBox "),t.qZA(),t.TgZ(25,"mat-list-item",9),t._uU(26," VMware "),t.qZA(),t.TgZ(27,"mat-list-item",9),t._uU(28," Docker "),t.qZA()()()()()),2&r&&(t.xp6(4),t.MGl("routerLink","/controller/",e.controllerId,"/projects"),t.xp6(9),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/builtin"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/dynamips/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/iou/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vpcs/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/qemu/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/virtualbox/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/vmware/templates"),t.xp6(2),t.MGl("routerLink","/controller/",e.controllerId,"/preferences/docker/templates"))},dependencies:[Wo,cn,Dn,Hs,Aa],styles:["table[_ngcontent-%COMP%]{width:100%}.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 uz=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Bu=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"getImagePath",value:function(e,i){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/images/upload/").concat(i)}},{key:"getImages",value:function(e){return this.httpController.get(e,"/images?image_type=qemu")}},{key:"addImage",value:function(e,i){return this.httpController.post(e,"/images/upload",i)}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();Bu.\u0275fac=function(r){return new(r||Bu)(t.LFG(mo.zw))},Bu.\u0275prov=t.Yz7({token:Bu,factory:Bu.\u0275fac});var Mm=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getPlatform",value:function(){return["x86_64","aarch64","alpha","arm","cris","i386","lm32","m68k","microblaze","microblazeel","mips","mips64","mips64el","mipsel","moxie","or32","ppc","ppc64","ppcemb","s390x","sh4","sh4eb","sparc","sparc64","tricore","unicore32","xtensa","xtensaeb"]}},{key:"getConsoleTypes",value:function(){return["telnet","vnc","spice","spice+agent","none"]}},{key:"getAuxConsoleTypes",value:function(){return["telnet","none"]}},{key:"getDiskInterfaces",value:function(){return["ide","sata","scsi","sd","mtd","floppy","pflash","virtio","nvme","none"]}},{key:"getNetworkTypes",value:function(){return[{value:"e1000",name:"Intel Gigabit Ethernet"},{value:"e1000-82544gc",name:"Intel 82544GC Gigabit Ethernet"},{value:"e1000-82545em",name:"Intel 82545EM Gigabit Ethernet"},{value:"e1000e",name:"Intel PCIe Gigabit Ethernet"},{value:"i82550",name:"Intel i82550 Ethernet"},{value:"i82551",name:"Intel i82551 Ethernet"},{value:"i82557a",name:"Intel i82557A Ethernet"},{value:"i82557b",name:"Intel i82557B Ethernet"},{value:"i82557c",name:"Intel i82557C Ethernet"},{value:"i82558a",name:"Intel i82558A Ethernet"},{value:"i82558b",name:"Intel i82558B Ethernet"},{value:"i82559a",name:"Intel i82559A Ethernet"},{value:"i82559b",name:"Intel i82559B Ethernet"},{value:"i82559c",name:"Intel i82559C Ethernet"},{value:"i82559er",name:"Intel i82559ER Ethernet"},{value:"i82562",name:"Intel i82562 Ethernet"},{value:"i82801",name:"Intel i82801 Ethernet"},{value:"igb",name:"Intel 82576 Gigabit Ethernet"},{value:"ne2k_pci",name:"NE2000 Ethernet"},{value:"pcnet",name:"AMD PCNet Ethernet"},{value:"rocker",name:"Rocker L2 switch device"},{value:"rtl8139",name:"Realtek 8139 Ethernet"},{value:"virtio-net-pci",name:"Paravirtualized Network I/O"},{value:"vmxnet3",name:"VMWare Paravirtualized Ethernet v3"}]}},{key:"getBootPriorities",value:function(){return[["HDD","c"],["CD/DVD-ROM","d"],["Network","n"],["HDD or Network","cn"],["HDD or CD/DVD-ROM","cd"]]}},{key:"getOnCloseOptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getPriorities",value:function(){return["realtime","very high","high","normal","low","very low"]}}]),n}();function k6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",31),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function T6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function M6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function S6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function E6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.filename," ")}}Mm.\u0275fac=function(r){return new(r||Mm)},Mm.\u0275prov=t.Yz7({token:Mm,factory:Mm.\u0275fac});var NB=function(){return{standalone:!0}};function x6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedImage=a)}),t.YNc(1,E6e,2,2,"mat-option",19),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("ngModelOptions",t.DdM(3,NB))("ngModel",i.selectedImage),t.xp6(1),t.Q6J("ngForOf",i.qemuImages)}}function D6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"input",35,36),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",37),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA(),t.TgZ(5,"mat-form-field",38)(6,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.chosenImage=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("uploader",i.uploader),t.xp6(5),t.Q6J("ngModel",i.chosenImage)}}var L2=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateMocksService=l,this.configurationService=u,this.computeService=d,this.snackBar=h,this.uploadServiceService=g,this.selectPlatform=[],this.consoleTypes=[],this.auxConsoleTypes=[],this.newImageSelected=!1,this.qemuImages=[],this.chosenImage="",this.uploadedFile=!1,this.uploadProgress=0,this.isLocalComputerChosen=!0,this.qemuTemplate=new uz,this.nameForm=this.formBuilder.group({templateName:new J.p4(null,J.kI.required)}),this.memoryForm=this.formBuilder.group({ramMemory:new J.p4("256",J.kI.required)}),this.diskForm=this.formBuilder.group({fileName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(o){o.withCredentials=!1},this.uploader.onErrorItem=function(o,a,s,l){e.toasterService.error("An error occured: "+a)},this.uploader.onSuccessItem=function(o,a,s,l){e.qemuService.getImages(e.controller).subscribe(function(u){e.qemuImages=u}),e.toasterService.success("Image uploaded")},this.uploader.onProgressItem=function(o){e.uploadProgress=o.progress,e.uploadServiceService.processBarCount(e.uploadProgress)};var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.templateMocksService.getQemuTemplate().subscribe(function(a){e.qemuTemplate=a}),e.qemuService.getImages(e.controller).subscribe(function(a){e.qemuImages=a}),e.selectPlatform=e.configurationService.getPlatform(),e.selectedPlatform=e.selectPlatform[0],e.consoleTypes=e.configurationService.getConsoleTypes(),e.auxConsoleTypes=e.configurationService.getAuxConsoleTypes()}),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(wm,{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=ts(),this.qemuTemplate.name=this.nameForm.get("templateName").value,this.qemuTemplate.compute_id="local",this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function A6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}L2.\u0275fac=function(r){return new(r||L2)(t.Y36(pr),t.Y36(rr),t.Y36(Bu),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS),t.Y36(xl),t.Y36(Mm),t.Y36(sf.X),t.Y36(td),t.Y36(id))},L2.\u0275cmp=t.Xpm({type:L2,selectors:[["app-add-qemu-virtual-machine-template"]],decls:54,vars:24,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","min","1","placeholder","RAM","formControlName","ramMemory","ngDefaultControl",""],["matSuffix",""],["label","Console type",3,"completed"],["placeholder","Console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Auxiliary console type",3,"completed"],["placeholder","Auxiliary console type",3,"ngModel","ngModelOptions","ngModelChange"],["label","Disk image"],["value","2",1,"radio-button",3,"click"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange",4,"ngIf"],[4,"ngIf"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Disk image (hda)",3,"ngModelOptions","ngModel","ngModelChange"],["type","file","accept",".qcow2","ng2FileSelect","",1,"nonvisible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","fileName","placeholder","Please enter name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,k6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"div",8)(10,"mat-vertical-stepper",9)(11,"mat-step",10)(12,"mat-radio-group",11)(13,"mat-radio-button",12),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(14,"Run this QEMU VM locally"),t.qZA()()(),t.TgZ(15,"mat-step",13)(16,"form",14)(17,"mat-form-field",15),t._UZ(18,"input",16),t.qZA(),t._UZ(19,"br"),t.qZA()(),t.TgZ(20,"mat-step",17)(21,"form",14)(22,"mat-form-field",15)(23,"mat-select",18),t.NdJ("ngModelChange",function(o){return e.selectedPlatform=o}),t.YNc(24,T6e,2,2,"mat-option",19),t.qZA()(),t._UZ(25,"br"),t.TgZ(26,"mat-form-field",15),t._UZ(27,"input",20),t.TgZ(28,"span",21),t._uU(29,"MB"),t.qZA()()()(),t.TgZ(30,"mat-step",22)(31,"mat-form-field",15)(32,"mat-select",23),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.console_type=o}),t.YNc(33,M6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(34,"mat-step",24)(35,"mat-form-field",15)(36,"mat-select",25),t.NdJ("ngModelChange",function(o){return e.qemuTemplate.aux_type=o}),t.YNc(37,S6e,2,2,"mat-option",19),t.qZA()()(),t.TgZ(38,"mat-step",26)(39,"form",14)(40,"mat-radio-group",11)(41,"mat-radio-button",12),t.NdJ("click",function(){return e.setDiskImage("existingImage")}),t._uU(42,"Existing image"),t.qZA(),t.TgZ(43,"mat-radio-button",27),t.NdJ("click",function(){return e.setDiskImage("newImage")}),t._uU(44,"New image"),t.qZA()(),t._UZ(45,"br")(46,"br"),t.YNc(47,x6e,2,4,"mat-select",28),t.YNc(48,D6e,7,2,"div",29),t.qZA()()()(),t.TgZ(49,"div",30)(50,"button",31),t.NdJ("click",function(){return e.goBack()}),t._uU(51,"Cancel"),t.qZA(),t.TgZ(52,"button",32),t.NdJ("click",function(){return e.addTemplate()}),t._uU(53,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("linear",!0),t.xp6(1),t.Q6J("completed",e.isLocalComputerChosen),t.xp6(4),t.Q6J("completed",e.nameForm.get("templateName").value),t.xp6(1),t.Q6J("formGroup",e.nameForm),t.xp6(4),t.Q6J("completed",e.memoryForm.get("ramMemory").value&&e.selectedPlatform),t.xp6(1),t.Q6J("formGroup",e.memoryForm),t.xp6(2),t.Q6J("ngModel",e.selectedPlatform)("ngModelOptions",t.DdM(21,NB)),t.xp6(1),t.Q6J("ngForOf",e.selectPlatform),t.xp6(6),t.Q6J("completed",e.qemuTemplate.console_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.console_type)("ngModelOptions",t.DdM(22,NB)),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("completed",e.qemuTemplate.aux_type),t.xp6(2),t.Q6J("ngModel",e.qemuTemplate.aux_type)("ngModelOptions",t.DdM(23,NB)),t.xp6(1),t.Q6J("ngForOf",e.auxConsoleTypes),t.xp6(2),t.Q6J("formGroup",e.diskForm),t.xp6(8),t.Q6J("ngIf",!e.newImageSelected),t.xp6(1),t.Q6J("ngIf",e.newImageSelected))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,Mp,kn.KE,kn.R9,cn,Dn,Kn,ni.gD,Vt.ey,rd,uf,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Z2=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.router=a,this.formBuilder=s,this.templateName="",this.nameForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.templateName="Copy of ".concat(e.qemuTemplate.name)})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"addTemplate",value:function(){var e=this;this.nameForm.invalid?this.toasterService.error("Fill all required fields"):(this.qemuTemplate.template_id=ts(),this.qemuTemplate.name=this.templateName,this.qemuService.addTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.goBack()}))}}]),n}();function O6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter number"),t.qZA())}function I6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Adapter ",e.adapter_number,"")}}function P6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Port name"),t.qZA())}function R6e(n,r){if(1&n&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("Ethernet ",e.adapter_number,"")}}function L6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Adapter type"),t.qZA())}function Z6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function N6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"mat-select",12),t.NdJ("ngModelChange",function(s){var u=t.CHM(e).$implicit;return t.KtG(u.adapter_type=s)}),t.YNc(2,Z6e,2,2,"mat-option",13),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngModel",i.adapter_type),t.xp6(1),t.Q6J("ngForOf",o.networkTypes)}}function B6e(n,r){1&n&&(t.TgZ(0,"th",10),t._uU(1,"Actions"),t.qZA())}function F6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",11)(1,"button",15),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",16),t._uU(3,"delete"),t.qZA()()()}}function U6e(n,r){1&n&&t._UZ(0,"tr",17)}function H6e(n,r){1&n&&t._UZ(0,"tr",18)}Z2.\u0275fac=function(r){return new(r||Z2)(t.Y36(pr),t.Y36(rr),t.Y36(Bu),t.Y36(Ln),t.Y36(ur),t.Y36(J.QS))},Z2.\u0275cmp=t.Xpm({type:Z2,selectors:[["app-copy-qemu-virtual-machine-template"]],decls:18,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","placeholder","Name","formControlName","templateName",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,A6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"Copy QEMU VM template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"form",9)(11,"mat-form-field",10)(12,"input",11),t.NdJ("ngModelChange",function(o){return e.templateName=o}),t.qZA()()()(),t.TgZ(13,"div",12)(14,"button",13),t.NdJ("click",function(){return e.goBack()}),t._uU(15,"Cancel"),t.qZA(),t.TgZ(16,"button",14),t.NdJ("click",function(){return e.addTemplate()}),t._uU(17,"Copy template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(6),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.templateName))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Dn,Kn],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Ig=function(){function n(){(0,H.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.adapters=[]}return(0,B.Z)(n,[{key:"onAdd",value:function(){var e={adapter_number:this.adapters.length,adapter_type:this.networkTypes[0]};this.adapters=this.adapters.concat([e])}},{key:"delete",value:function(e){this.adapters=this.adapters.filter(function(i){return i!==e})}}]),n}();Ig.\u0275fac=function(r){return new(r||Ig)},Ig.\u0275cmp=t.Xpm({type:Ig,selectors:[["app-custom-adapters-table"]],inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns",adapters:"adapters"},decls:17,vars:3,consts:[["mat-table","",3,"dataSource"],["matColumnDef","adapter_number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","port_name"],["matColumnDef","adapter_type"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-button","",1,"form-field",3,"click"],["mat-header-cell",""],["mat-cell",""],["placeholder","Type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-icon-button","","matTooltip","Delete adapter","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"table",0),t.ynx(1,1),t.YNc(2,O6e,2,0,"th",2),t.YNc(3,I6e,2,1,"td",3),t.BQk(),t.ynx(4,4),t.YNc(5,P6e,2,0,"th",2),t.YNc(6,R6e,2,1,"td",3),t.BQk(),t.ynx(7,5),t.YNc(8,L6e,2,0,"th",2),t.YNc(9,N6e,3,2,"td",3),t.BQk(),t.ynx(10,6),t.YNc(11,B6e,2,0,"th",2),t.YNc(12,F6e,4,0,"td",3),t.BQk(),t.YNc(13,U6e,1,0,"tr",7),t.YNc(14,H6e,1,0,"tr",8),t.qZA(),t.TgZ(15,"button",9),t.NdJ("click",function(){return e.onAdd()}),t._uU(16,"Add"),t.qZA()),2&r&&(t.Q6J("dataSource",e.adapters),t.xp6(13),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.sg,J.JJ,J.On,cn,Dn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,ni.gD,Vt.ey,ui],styles:["table[_ngcontent-%COMP%]{width:100%}.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 j6e=["customAdapters"],sb=function(){function n(){(0,H.Z)(this,n),this.networkTypes=[],this.displayedColumns=[],this.closeConfiguratorEmitter=new t.vpe,this.saveConfigurationEmitter=new t.vpe}return(0,B.Z)(n,[{key:"cancelConfigureCustomAdapters",value:function(){this.closeConfiguratorEmitter.emit(!1)}},{key:"configureCustomAdapters",value:function(){var e=this;this.adapters=[],this.customAdapters.adapters.forEach(function(i){e.adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.saveConfigurationEmitter.emit(this.adapters)}}]),n}();sb.\u0275fac=function(r){return new(r||sb)},sb.\u0275cmp=t.Xpm({type:sb,selectors:[["app-custom-adapters"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(j6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},inputs:{networkTypes:"networkTypes",displayedColumns:"displayedColumns"},outputs:{closeConfiguratorEmitter:"closeConfiguratorEmitter",saveConfigurationEmitter:"saveConfigurationEmitter"},decls:15,vars:3,consts:[[1,"configurator"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],[1,"buttons-bar"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Custom adapters configuration"),t.qZA()()(),t.TgZ(5,"div",4)(6,"div",5),t._UZ(7,"app-custom-adapters-table",6,7),t.qZA(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.cancelConfigureCustomAdapters()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.configureCustomAdapters()}),t._uU(13,"Apply"),t.qZA(),t._UZ(14,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns)("adapters",e.adapters))},dependencies:[cn,Ig],styles:["table[_ngcontent-%COMP%]{width:100%}.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 G6e=["customAdaptersConfigurator"];function z6e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function W6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function V6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Y6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function K6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function q6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function J6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Q6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function X6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function $6e(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function eRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function tRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.AsE("",e.name," (",e.value,") ")}}function nRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",14)(1,"input",60),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.qemuTemplate.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.cpu_throttling)}}function rRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function iRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.symbol=a)}),t.qZA()()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.category=a)}),t.YNc(19,W6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",14)(21,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.platform=a)}),t.YNc(22,V6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-form-field",14)(24,"input",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.ram=a)}),t.qZA(),t.TgZ(25,"span",23),t._uU(26,"MB"),t.qZA()(),t.TgZ(27,"mat-form-field",14)(28,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cpus=a)}),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.boot_priority=a)}),t.YNc(31,Y6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(32,"mat-form-field",14)(33,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.on_close=a)}),t.YNc(34,K6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(35,"mat-form-field",27)(36,"mat-select",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_type=a)}),t.YNc(37,q6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(38,"mat-form-field",27)(39,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.aux_type=a)}),t.YNc(40,J6e,2,2,"mat-option",20),t.qZA()(),t.TgZ(41,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.console_auto_start=a)}),t._uU(42," Auto start console "),t.qZA()(),t.TgZ(43,"mat-expansion-panel")(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._uU(46," HDD "),t.qZA()(),t.TgZ(47,"mat-card"),t._UZ(48,"mat-card-title"),t.TgZ(49,"mat-card-subtitle"),t._uU(50," HDA (Primary Master) "),t.qZA(),t.TgZ(51,"mat-card-content")(52,"mat-form-field",14)(53,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_image=a)}),t.qZA()(),t.TgZ(54,"mat-form-field",14)(55,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hda_disk_interface=a)}),t.YNc(56,Q6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(57,"mat-card"),t._UZ(58,"mat-card-title"),t.TgZ(59,"mat-card-subtitle"),t._uU(60," HDB (Primary Slave) "),t.qZA(),t.TgZ(61,"mat-card-content")(62,"mat-form-field",14)(63,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_image=a)}),t.qZA()(),t.TgZ(64,"mat-form-field",14)(65,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdb_disk_interface=a)}),t.YNc(66,X6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(67,"mat-card"),t._UZ(68,"mat-card-title"),t.TgZ(69,"mat-card-subtitle"),t._uU(70," HDC (Secondary Master) "),t.qZA(),t.TgZ(71,"mat-card-content")(72,"mat-form-field",14)(73,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_image=a)}),t.qZA()(),t.TgZ(74,"mat-form-field",14)(75,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdc_disk_interface=a)}),t.YNc(76,$6e,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(77,"mat-card"),t._UZ(78,"mat-card-title"),t.TgZ(79,"mat-card-subtitle"),t._uU(80," HDD (Secondary Slave) "),t.qZA(),t.TgZ(81,"mat-card-content")(82,"mat-form-field",14)(83,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_image=a)}),t.qZA()(),t.TgZ(84,"mat-form-field",14)(85,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.hdd_disk_interface=a)}),t.YNc(86,eRe,2,2,"mat-option",20),t.qZA()()()()(),t.TgZ(87,"mat-expansion-panel")(88,"mat-expansion-panel-header")(89,"mat-panel-title"),t._uU(90," CD/DVD "),t.qZA()(),t.TgZ(91,"div")(92,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(95);return t.KtG(a.click())}),t._uU(93,"Browse"),t.qZA(),t.TgZ(94,"input",34,35),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(96,"mat-form-field",36)(97,"input",37),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.cdrom_image=a)}),t.qZA()()()(),t.TgZ(98,"mat-expansion-panel")(99,"mat-expansion-panel-header")(100,"mat-panel-title"),t._uU(101," Network "),t.qZA()(),t.TgZ(102,"mat-form-field",14)(103,"input",38),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapters=a)}),t.qZA()(),t.TgZ(104,"mat-form-field",14)(105,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(106,"mat-form-field",14)(107,"input",40),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(108,"mat-form-field",14)(109,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(110,"mat-form-field",14)(111,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.mac_address=a)}),t.qZA()(),t.TgZ(112,"mat-form-field",14)(113,"mat-select",43),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.adapter_type=a)}),t.YNc(114,tRe,2,3,"mat-option",20),t.qZA()(),t.TgZ(115,"button",44),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(116," Configure custom adapters"),t.qZA(),t._UZ(117,"br"),t.TgZ(118,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.replicate_network_connection_state=a)}),t._uU(119," Replicate network connection state "),t.qZA()(),t.TgZ(120,"mat-expansion-panel")(121,"mat-expansion-panel-header")(122,"mat-panel-title"),t._uU(123," Advanced "),t.qZA()(),t.TgZ(124,"mat-card"),t._UZ(125,"mat-card-title"),t.TgZ(126,"mat-card-subtitle"),t._uU(127," Linux boot specific settings "),t.qZA(),t.TgZ(128,"mat-card-content")(129,"div")(130,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(133);return t.KtG(a.click())}),t._uU(131,"Browse"),t.qZA(),t.TgZ(132,"input",34,45),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(134,"mat-form-field",36)(135,"input",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.initrd=a)}),t.qZA()()(),t.TgZ(136,"div")(137,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(138," Browse "),t.qZA(),t.TgZ(139,"input",34,47),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(141,"mat-form-field",36)(142,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_image=a)}),t.qZA()()(),t.TgZ(143,"mat-form-field",14)(144,"input",49),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(145,"mat-card"),t._UZ(146,"mat-card-title"),t.TgZ(147,"mat-card-subtitle"),t._uU(148," Bios "),t.qZA(),t.TgZ(149,"mat-card-content")(150,"div")(151,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(154);return t.KtG(a.click())}),t._uU(152,"Browse"),t.qZA(),t.TgZ(153,"input",34,50),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(155,"mat-form-field",36)(156,"input",51),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.bios_image=a)}),t.qZA()()()()(),t.TgZ(157,"mat-card"),t._UZ(158,"mat-card-title"),t.TgZ(159,"mat-card-subtitle"),t._uU(160," Optimization "),t.qZA(),t.TgZ(161,"mat-card-content")(162,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(163," Activate CPU throttling "),t.qZA(),t.YNc(164,nRe,2,1,"mat-form-field",52),t.TgZ(165,"mat-form-field",14)(166,"mat-select",53),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.process_priority=a)}),t.YNc(167,rRe,2,2,"mat-option",20),t.qZA()()()(),t.TgZ(168,"mat-card"),t._UZ(169,"mat-card-title"),t.TgZ(170,"mat-card-subtitle"),t._uU(171," Additional settings "),t.qZA(),t.TgZ(172,"mat-card-content")(173,"mat-form-field",14)(174,"input",54),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.qemu_path=a)}),t.qZA()(),t.TgZ(175,"mat-form-field",14)(176,"input",55),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.options=a)}),t.qZA()(),t.TgZ(177,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.linked_clone=a)}),t._uU(178," Use as a linked base VM "),t.qZA(),t._UZ(179,"br"),t.TgZ(180,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.tpm=a)}),t._uU(181," Enable the Trusted Platform Module (TPM)"),t.qZA(),t._UZ(182,"br"),t.TgZ(183,"mat-checkbox",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.uefi=a)}),t._uU(184," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(185,"mat-expansion-panel")(186,"mat-expansion-panel-header")(187,"mat-panel-title"),t._uU(188," Usage "),t.qZA()(),t.TgZ(189,"mat-form-field",14)(190,"textarea",56),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuTemplate.usage=a)}),t.qZA()()()(),t.TgZ(191,"div",57)(192,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(193,"Cancel"),t.qZA(),t.TgZ(194,"button",58),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(195,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.symbol),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.platform),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.ram),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.cpus),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.console_auto_start),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.hda_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(11),t.Q6J("ngModel",i.qemuTemplate.cdrom_image),t.xp6(6),t.Q6J("ngModel",i.qemuTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.mac_address),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.qemuTemplate.replicate_network_connection_state),t.xp6(17),t.Q6J("ngModel",i.qemuTemplate.initrd),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.kernel_image),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.qemuTemplate.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.qemu_path),t.xp6(2),t.Q6J("ngModel",i.qemuTemplate.options),t.xp6(1),t.Q6J("ngModel",i.qemuTemplate.linked_clone),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.tpm),t.xp6(3),t.Q6J("ngModel",i.qemuTemplate.uefi),t.xp6(7),t.Q6J("ngModel",i.qemuTemplate.usage)}}function oRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",61),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.qemuTemplate.symbol)}}var aRe=function(r){return{shadowed:r}},N2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.toasterService=o,this.configurationService=a,this.formBuilder=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.auxConsoleTypes=[],this.diskInterfaces=[],this.networkTypes=[],this.bootPriorities=[],this.onCloseOptions=[],this.categories=[],this.priorities=[],this.activateCpuThrottling=!0,this.isConfiguratorOpened=!1,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.selectPlatform=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.qemuService.getTemplate(e.controller,o).subscribe(function(s){e.qemuTemplate=s,e.fillCustomAdapters()})}),this.selectPlatform=this.configurationService.getPlatform()}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes(),this.auxConsoleTypes=this.configurationService.getAuxConsoleTypes(),this.diskInterfaces=this.configurationService.getDiskInterfaces(),this.networkTypes=this.configurationService.getNetworkTypes(),this.bootPriorities=this.configurationService.getBootPriorities(),this.onCloseOptions=this.configurationService.getOnCloseOptions(),this.categories=this.configurationService.getCategories(),this.priorities=this.configurationService.getPriorities()}},{key:"uploadCdromImageFile",value:function(e){this.qemuTemplate.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.qemuTemplate.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.qemuTemplate.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.qemuTemplate.bios_image=e.target.files[0].name}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.qemuTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.qemuTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.qemuTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.qemuTemplate.custom_adapters?this.qemuTemplate.custom_adapters:[];this.qemuTemplate.custom_adapters=[];for(var i=0;i<this.qemuTemplate.adapters;i++)e[i]?this.qemuTemplate.custom_adapters.push(e[i]):this.qemuTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.activateCpuThrottling||(this.qemuTemplate.cpu_throttling=0),this.fillCustomAdapters(),this.qemuService.saveTemplate(this.controller,this.qemuTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.qemuTemplate.symbol=e}}]),n}();function sRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function lRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/qemu/addtemplate")}}function uRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function cRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.copyTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"content_copy"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Copy"),t.qZA()(),t.TgZ(18,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(19,"mat-icon"),t._uU(20,"delete"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function dRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,cRe,23,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.qemuTemplates)}}function fRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,dRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}N2.\u0275fac=function(r){return new(r||N2)(t.Y36(pr),t.Y36(rr),t.Y36(Bu),t.Y36(Ln),t.Y36(Mm),t.Y36(J.QS),t.Y36(ur))},N2.\u0275cmp=t.Xpm({type:N2,selectors:[["app-qemu-virtual-machine-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(G6e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Platform",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","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"],["placeholder","Auxiliary 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","min","0","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","min","0","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","Custom Qemu binary path",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,z6e,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM template configuration"),t.qZA()()()(),t.YNc(8,iRe,196,54,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,oRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,aRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.qemuTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.qemuTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.qemuTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,z0,rk,ik,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu,sb],styles:["table[_ngcontent-%COMP%]{width:100%}.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 n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.qemuService=i,this.router=o,this.qemuTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.qemuService.getTemplates(this.controller).subscribe(function(i){e.qemuTemplates=i.filter(function(o){return"qemu"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}},{key:"copyTemplate",value:function(e){this.router.navigate(["/controller",this.controller.id,"preferences","qemu","templates",e.template_id,"copy"])}}]),n}();B2.\u0275fac=function(r){return new(r||B2)(t.Y36(pr),t.Y36(rr),t.Y36(Bu),t.Y36(ur))},B2.\u0275cmp=t.Xpm({type:B2,selectors:[["app-qemu-virtual-machines-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add QEMU VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,sRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"QEMU VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,lRe,3,1,"button",7),t.qZA()()(),t.YNc(10,uRe,1,0,"app-empty-templates-list",8),t.YNc(11,fRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.qemuTemplates.length),t.xp6(1),t.Q6J("ngIf",e.qemuTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Sm=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/virtualbox/vms"))}}]),n}();function pRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function hRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}function mRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,hRe,2,2,"mat-option",14),t.qZA()()(),t.TgZ(6,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(7," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(8,"div",16)(9,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(12,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.vmForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone)}}Sm.\u0275fac=function(r){return new(r||Sm)(t.LFG(mo.zw))},Sm.\u0275prov=t.Yz7({token:Sm,factory:Sm.\u0275fac});var F2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.vmForm=this.formBuilder.group({vm:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VirtualBox VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.virtualBoxService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVirtualBoxTemplate().subscribe(function(s){e.virtualBoxTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"addTemplate",value:function(){var e=this;this.vmForm.invalid?this.toasterService.error("Fill all required fields"):(this.virtualBoxTemplate.name=this.selectedVM.vmname,this.virtualBoxTemplate.vmname=this.selectedVM.vmname,this.virtualBoxTemplate.ram=this.selectedVM.ram,this.virtualBoxTemplate.template_id=ts(),this.virtualBoxService.addTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(){e.goBack()}))}}]),n}();F2.\u0275fac=function(r){return new(r||F2)(t.Y36(pr),t.Y36(rr),t.Y36(Sm),t.Y36(Ln),t.Y36(xl),t.Y36(ur),t.Y36(J.QS))},F2.\u0275cmp=t.Xpm({type:F2,selectors:[["app-add-virtual-box-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","vm",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,pRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VirtualBox VM template"),t.qZA()()()(),t.YNc(8,mRe,13,4,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Dn,$r,ni.gD,Vt.ey],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Pg=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["PCnet-PCI II (Am79C970A)","PCNet-FAST III (Am79C973)","Intel PRO/1000 MT Desktop (82540EM)","Intel PRO/1000 T Server (82543GC)","Intel PRO/1000 MT Server (82545EM)","Paravirtualized Network (virtio-net)"]}}]),n}();Pg.\u0275fac=function(r){return new(r||Pg)},Pg.\u0275prov=t.Yz7({token:Pg,factory:Pg.\u0275fac});var _Re=["customAdaptersConfigurator"];function gRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function vRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function yRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function bRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function CRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Ok=function(){return{standalone:!0}};function wRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.category=a)}),t.YNc(19,vRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_type=a)}),t.YNc(22,yRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.ram=a)}),t.qZA(),t.TgZ(27,"span",25),t._uU(28,"MB"),t.qZA()(),t.TgZ(29,"mat-form-field",14)(30,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.on_close=a)}),t.YNc(31,bRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(32,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.headless=a)}),t._uU(33," Start VM in headless mode "),t.qZA(),t._UZ(34,"br"),t.TgZ(35,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.linked_clone=a)}),t._uU(36," Use as a linked base VM (experimental) "),t.qZA()(),t.TgZ(37,"mat-expansion-panel")(38,"mat-expansion-panel-header")(39,"mat-panel-title"),t._uU(40," Network "),t.qZA()(),t.TgZ(41,"form",13)(42,"mat-form-field",14)(43,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapters=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"input",30),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(48,"mat-form-field",14)(49,"input",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(50,"mat-form-field",14)(51,"mat-select",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.adapter_type=a)}),t.YNc(52,CRe,2,2,"mat-option",20),t.qZA()()(),t.TgZ(53,"button",33),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(54," Configure custom adapters"),t.qZA(),t._UZ(55,"br"),t.TgZ(56,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.use_any_adapter=a)}),t._uU(57," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA()(),t.TgZ(58,"mat-expansion-panel")(59,"mat-expansion-panel-header")(60,"mat-panel-title"),t._uU(61," Usage "),t.qZA()(),t.TgZ(62,"mat-form-field",14)(63,"textarea",34),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.virtualBoxTemplate.usage=a)}),t.qZA()()()(),t.TgZ(64,"div",35)(65,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(66,"Cancel"),t.qZA(),t.TgZ(67,"button",36),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(68,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(29,Ok))("ngModel",i.virtualBoxTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(30,Ok))("ngModel",i.virtualBoxTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Ok))("ngModel",i.virtualBoxTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Ok))("ngModel",i.virtualBoxTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.virtualBoxTemplate.headless),t.xp6(3),t.Q6J("ngModel",i.virtualBoxTemplate.linked_clone),t.xp6(6),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.adapters),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(33,Ok))("ngModel",i.virtualBoxTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.virtualBoxTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(34,Ok))("ngModel",i.virtualBoxTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.virtualBoxTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.virtualBoxTemplate.usage)}}function kRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",38),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.virtualBoxTemplate.symbol)}}var TRe=function(r){return{shadowed:r}},U2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.toasterService=o,this.formBuilder=a,this.virtualBoxConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.onCloseOptions=[],this.categories=[],this.networkTypes=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({adapters:new J.p4("",J.kI.required),nameFormat:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.virtualBoxService.getTemplate(e.controller,o).subscribe(function(s){e.virtualBoxTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.categories=this.virtualBoxConfigurationService.getCategories(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.virtualBoxTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.virtualBoxTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.virtualBoxTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.virtualBoxTemplate.custom_adapters?this.virtualBoxTemplate.custom_adapters:[];this.virtualBoxTemplate.custom_adapters=[];for(var i=0;i<this.virtualBoxTemplate.adapters;i++)e[i]?this.virtualBoxTemplate.custom_adapters.push(e[i]):this.virtualBoxTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","virtualbox","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid||this.networkForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.virtualBoxService.saveTemplate(this.controller,this.virtualBoxTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.virtualBoxTemplate.symbol=e}}]),n}();function MRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function SRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/virtualbox/addtemplate")}}function ERe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function xRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function DRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,xRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.virtualBoxTemplates)}}function ARe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,DRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}U2.\u0275fac=function(r){return new(r||U2)(t.Y36(pr),t.Y36(rr),t.Y36(Sm),t.Y36(Ln),t.Y36(J.QS),t.Y36(Pg),t.Y36(ur))},U2.\u0275cmp=t.Xpm({type:U2,selectors:[["app-virtual-box-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_Re,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","formControlName","defaultName","type","text","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","formControlName","symbol","type","text","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["formControlName","adapters","matInput","","type","number","placeholder","Adapters",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","First port name",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","nameFormat","matInput","","type","text","placeholder","Name format",3,"ngModel","ngModelChange"],["formControlName","size","matInput","","type","number","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModelOptions","ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,gRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM template configuration"),t.qZA()()()(),t.YNc(8,wRe,69,35,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,kRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,TRe,e.isConfiguratorOpened||e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.virtualBoxTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.virtualBoxTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.virtualBoxTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,cn,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu,sb],styles:["table[_ngcontent-%COMP%]{width:100%}.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 n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.virtualBoxService=i,this.virtualBoxTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.virtualBoxService.getTemplates(this.controller).subscribe(function(i){e.virtualBoxTemplates=i.filter(function(o){return"virtualbox"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();H2.\u0275fac=function(r){return new(r||H2)(t.Y36(pr),t.Y36(rr),t.Y36(Sm))},H2.\u0275cmp=t.Xpm({type:H2,selectors:[["app-virtual-box-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add Virtual Box VM template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,MRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VirtualBox VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,SRe,3,1,"button",7),t.qZA()()(),t.YNc(10,ERe,1,0,"app-empty-templates-list",8),t.YNc(11,ARe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("ngIf",e.virtualBoxTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}},{key:"getVirtualMachines",value:function(e){return this.httpController.get(e,"/computes/".concat(Wa.N.compute_id,"/vmware/vms"))}}]),n}();function ORe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function IRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.vmname," ")}}Em.\u0275fac=function(r){return new(r||Em)(t.LFG(mo.zw))},Em.\u0275prov=t.Yz7({token:Em,factory:Em.\u0275fac});var PRe=function(){return{standalone:!0}};function RRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"mat-card",10)(2,"form",11)(3,"mat-form-field",12)(4,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedVM=a)}),t.YNc(5,IRe,2,2,"mat-option",14),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-checkbox",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(8," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(9,"div",16)(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",17),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addTemplate())}),t._uU(13,"Add template"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.templateNameForm),t.xp6(2),t.Q6J("ngModel",i.selectedVM),t.xp6(1),t.Q6J("ngForOf",i.virtualMachines),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(5,PRe))("ngModel",i.vmwareTemplate.linked_clone)}}var j2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.templateMocksService=a,this.router=s,this.formBuilder=l,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.toasterService.error("VMware VM support is deprecated and will be removed in a future version, please use Qemu VMs instead");var i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.vmwareService.getVirtualMachines(e.controller).subscribe(function(a){e.virtualMachines=a,e.templateMocksService.getVmwareTemplate().subscribe(function(s){e.vmwareTemplate=s})})})}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"addTemplate",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.vmwareTemplate.name=this.selectedVM.vmname,this.vmwareTemplate.vmx_path=this.selectedVM.vmx_path,this.vmwareTemplate.template_id=ts(),this.vmwareService.addTemplate(this.controller,this.vmwareTemplate).subscribe(function(){e.goBack()}))}}]),n}();j2.\u0275fac=function(r){return new(r||j2)(t.Y36(pr),t.Y36(rr),t.Y36(Em),t.Y36(Ln),t.Y36(xl),t.Y36(ur),t.Y36(J.QS))},j2.\u0275cmp=t.Xpm({type:j2,selectors:[["app-add-vmware-template"]],decls:9,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["placeholder","VM list","formControlName","templateName",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,ORe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VMware VM template"),t.qZA()()()(),t.YNc(8,RRe,14,6,"div",7),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Dn,$r,ni.gD,Vt.ey],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Rg=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getOnCloseoptions",value:function(){return[["Power off the VM","power_off"],["Send the shutdown signal (ACPI)","shutdown_signal"],["Save the VM state","save_vm_state"]]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}},{key:"getNetworkTypes",value:function(){return["default","e1000","e1000e","flexible","vlance","vmxnet","vmxnet2","vmxnet3"]}}]),n}();Rg.\u0275fac=function(r){return new(r||Rg)},Rg.\u0275prov=t.Yz7({token:Rg,factory:Rg.\u0275fac});var LRe=["customAdaptersConfigurator"];function ZRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function NRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function BRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function FRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function URe(n,r){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var Ik=function(){return{standalone:!0}};function HRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",12)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),t._uU(5," General settings "),t.qZA()(),t.TgZ(6,"form",13)(7,"mat-form-field",14)(8,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.name=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",14)(10,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(11,"mat-form-field",14)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.symbol=a)}),t.qZA()(),t.TgZ(13,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(14,"Choose symbol"),t.qZA(),t._UZ(15,"br")(16,"br"),t.TgZ(17,"mat-form-field",14)(18,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.category=a)}),t.YNc(19,NRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(20,"mat-form-field",21)(21,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_type=a)}),t.YNc(22,BRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(23,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.console_auto_start=a)}),t._uU(24," Auto start console "),t.qZA(),t.TgZ(25,"mat-form-field",14)(26,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.on_close=a)}),t.YNc(27,FRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(28,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.headless=a)}),t._uU(29," Start VM in headless mode "),t.qZA(),t._UZ(30,"br")(31,"br"),t.TgZ(32,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.linked_clone=a)}),t._uU(33," Use as a linked base VM (experimental) "),t.qZA()()(),t.TgZ(34,"mat-expansion-panel")(35,"mat-expansion-panel-header")(36,"mat-panel-title"),t._uU(37," Network "),t.qZA()(),t.TgZ(38,"mat-form-field",14)(39,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapters=a)}),t.qZA()(),t.TgZ(40,"mat-form-field",14)(41,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.first_port_name=a)}),t.qZA()(),t.TgZ(42,"mat-form-field",14)(43,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_name_format=a)}),t.qZA()(),t.TgZ(44,"mat-form-field",14)(45,"input",28),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.port_segment_size=a)}),t.qZA()(),t.TgZ(46,"mat-form-field",14)(47,"mat-select",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.adapter_type=a)}),t.YNc(48,URe,2,2,"mat-option",20),t.qZA()(),t.TgZ(49,"button",30),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setCustomAdaptersConfiguratorState(!0))}),t._uU(50," Configure custom adapters"),t.qZA(),t._UZ(51,"br"),t.TgZ(52,"mat-checkbox",31),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.use_any_adapter=a)}),t._uU(53," Allow GNS3 to override non custom VMware adapter "),t.qZA()(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._uU(57," Usage "),t.qZA()(),t.TgZ(58,"mat-form-field",14)(59,"textarea",32),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vmwareTemplate.usage=a)}),t.qZA()()()(),t.TgZ(60,"div",33)(61,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(62,"Cancel"),t.qZA(),t.TgZ(63,"button",34),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(64,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(27,Ik))("ngModel",i.vmwareTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(28,Ik))("ngModel",i.vmwareTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(29,Ik))("ngModel",i.vmwareTemplate.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(30,Ik))("ngModel",i.vmwareTemplate.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(31,Ik))("ngModel",i.vmwareTemplate.headless),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(32,Ik))("ngModel",i.vmwareTemplate.linked_clone),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.adapters),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.first_port_name),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_name_format),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.port_segment_size),t.xp6(2),t.Q6J("ngModel",i.vmwareTemplate.adapter_type),t.xp6(1),t.Q6J("ngForOf",i.networkTypes),t.xp6(4),t.Q6J("ngModel",i.vmwareTemplate.use_any_adapter),t.xp6(7),t.Q6J("ngModel",i.vmwareTemplate.usage)}}function jRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",36),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vmwareTemplate.symbol)}}var GRe=function(r){return{shadowed:r}},G2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.toasterService=o,this.formBuilder=a,this.vmwareConfigurationService=s,this.router=l,this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.isConfiguratorOpened=!1,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.onCloseOptions=[],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vmwareService.getTemplate(e.controller,o).subscribe(function(s){e.vmwareTemplate=s,e.fillCustomAdapters()})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.categories=this.vmwareConfigurationService.getCategories(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vmware","templates"])}},{key:"onSave",value:function(){var e=this;this.generalSettingsForm.invalid?this.toasterService.error("Fill all required fields"):(this.fillCustomAdapters(),this.vmwareService.saveTemplate(this.controller,this.vmwareTemplate).subscribe(function(i){e.toasterService.success("Changes saved")}))}},{key:"setCustomAdaptersConfiguratorState",value:function(e){var i=this;this.isConfiguratorOpened=e,e&&(this.fillCustomAdapters(),this.customAdaptersConfigurator.numberOfAdapters=this.vmwareTemplate.adapters,this.customAdaptersConfigurator.adapters=[],this.vmwareTemplate.custom_adapters.forEach(function(o){i.customAdaptersConfigurator.adapters.push({adapter_number:o.adapter_number,adapter_type:o.adapter_type})}))}},{key:"saveCustomAdapters",value:function(e){this.setCustomAdaptersConfiguratorState(!1),this.vmwareTemplate.custom_adapters=e}},{key:"fillCustomAdapters",value:function(){var e=this.vmwareTemplate.custom_adapters?this.vmwareTemplate.custom_adapters:[];this.vmwareTemplate.custom_adapters=[];for(var i=0;i<this.vmwareTemplate.adapters;i++)e[i]?this.vmwareTemplate.custom_adapters.push(e[i]):this.vmwareTemplate.custom_adapters.push({adapter_number:i,adapter_type:"e1000"})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.vmwareTemplate.symbol=e}}]),n}();function zRe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function WRe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vmware/addtemplate")}}function VRe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function YRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(9,"mat-icon"),t._uU(10,"delete"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o)}}function KRe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,YRe,13,3,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vmwareTemplates)}}function qRe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,KRe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}G2.\u0275fac=function(r){return new(r||G2)(t.Y36(pr),t.Y36(rr),t.Y36(Em),t.Y36(Ln),t.Y36(J.QS),t.Y36(Rg),t.Y36(ur))},G2.\u0275cmp=t.Xpm({type:G2,selectors:[["app-vmware-template-details"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(LRe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdaptersConfigurator=i.first))},decls:12,vars:9,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"hidden","networkTypes","displayedColumns","closeConfiguratorEmitter","saveConfigurationEmitter"],["customAdaptersConfigurator",""],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","type","number","min","0","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","min","0","placeholder","Segment size",3,"ngModel","ngModelChange"],["placeholder","Type",3,"ngModel","ngModelChange"],["mat-button","",1,"configButton",3,"click"],[3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,ZRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM template configuration"),t.qZA()()()(),t.YNc(8,HRe,65,33,"div",7),t.qZA(),t.TgZ(9,"app-custom-adapters",8,9),t.NdJ("closeConfiguratorEmitter",function(o){return e.setCustomAdaptersConfiguratorState(o)})("saveConfigurationEmitter",function(o){return e.saveCustomAdapters(o)}),t.qZA(),t.YNc(11,jRe,1,2,"app-symbols-menu",10)),2&r&&(t.Q6J("ngClass",t.VKq(7,GRe,e.isSymbolSelectionOpened||e.isConfiguratorOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vmwareTemplate),t.xp6(1),t.Q6J("hidden",!(e.isConfiguratorOpened&&e.vmwareTemplate))("networkTypes",e.networkTypes)("displayedColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vmwareTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,$r,El,Sl,uu,Lu,ni.gD,Vt.ey,Zu,sb],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var z2=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vmwareService=i,this.vmwareTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vmwareService.getTemplates(this.controller).subscribe(function(i){e.vmwareTemplates=i.filter(function(o){return"vmware"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();z2.\u0275fac=function(r){return new(r||z2)(t.Y36(pr),t.Y36(rr),t.Y36(Em))},z2.\u0275cmp=t.Xpm({type:z2,selectors:[["app-vmware-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VMware template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,zRe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VMware VM templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,WRe,3,1,"button",7),t.qZA()()(),t.YNc(10,VRe,1,0,"app-empty-templates-list",8),t.YNc(11,qRe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vmwareTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vmwareTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var xm=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getTemplates",value:function(e){return this.httpController.get(e,"/templates")}},{key:"getTemplate",value:function(e,i){return this.httpController.get(e,"/templates/".concat(i))}},{key:"addTemplate",value:function(e,i){return this.httpController.post(e,"/templates",i)}},{key:"saveTemplate",value:function(e,i){return this.httpController.put(e,"/templates/".concat(i.template_id),i)}}]),n}();function JRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}xm.\u0275fac=function(r){return new(r||xm)(t.LFG(mo.zw))},xm.\u0275prov=t.Yz7({token:xm,factory:xm.\u0275fac});var W2=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.router=o,this.toasterService=a,this.templateMocksService=s,this.formBuilder=l,this.computeService=u,this.templateName="",this.isLocalComputerChosen=!0,this.templateNameForm=this.formBuilder.group({templateName:new J.p4(null,[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o})}},{key:"setControllerType",value:function(e){"local"===e&&(this.isLocalComputerChosen=!0)}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"addTemplate",value:function(){var i,e=this;this.templateNameForm.invalid?this.toasterService.error("Fill all required fields"):(this.templateName=this.templateNameForm.get("templateName").value,this.templateMocksService.getVpcsTemplate().subscribe(function(o){i=o}),i.template_id=ts(),i.name=this.templateName,i.compute_id="local",this.vpcsService.addTemplate(this.controller,i).subscribe(function(){e.goBack()}))}}]),n}();W2.\u0275fac=function(r){return new(r||W2)(t.Y36(pr),t.Y36(rr),t.Y36(xm),t.Y36(ur),t.Y36(Ln),t.Y36(xl),t.Y36(J.QS),t.Y36(sf.X))},W2.\u0275cmp=t.Xpm({type:W2,selectors:[["app-add-vpcs-template"]],decls:21,vars:2,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","templateName","type","text","placeholder","Template name"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,JRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"New VPCS node template"),t.qZA()()()(),t.TgZ(8,"div",7)(9,"mat-card",8)(10,"mat-radio-group",9)(11,"mat-radio-button",10),t.NdJ("click",function(){return e.setControllerType("local")}),t._uU(12,"Run the VPCS node locally"),t.qZA()(),t.TgZ(13,"form",11)(14,"mat-form-field",12),t._UZ(15,"input",13),t.qZA()()(),t.TgZ(16,"div",14)(17,"button",15),t.NdJ("click",function(){return e.goBack()}),t._uU(18,"Cancel"),t.qZA(),t.TgZ(19,"button",16),t.NdJ("click",function(){return e.addTemplate()}),t._uU(20,"Add template"),t.qZA()()()()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(9),t.Q6J("formGroup",e.templateNameForm))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ns,js],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Dm=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getConsoleTypes",value:function(){return["telnet","none"]}},{key:"getCategories",value:function(){return[["Default","guest"],["Routers","router"],["Switches","switch"],["End devices","guest"],["Security devices","firewall"]]}}]),n}();function QRe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.goBack())}),t.TgZ(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()}}function XRe(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function $Re(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}Dm.\u0275fac=function(r){return new(r||Dm)},Dm.\u0275prov=t.Yz7({token:Dm,factory:Dm.\u0275fac});var cz=function(){return{standalone:!0}};function eLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10)(1,"mat-card",11)(2,"form",12)(3,"mat-form-field",13)(4,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",13)(6,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.default_name_format=a)}),t.qZA()(),t.TgZ(7,"mat-form-field",13)(8,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.base_script_file=a)}),t.qZA()(),t.TgZ(9,"mat-form-field",13)(10,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.symbol=a)}),t.qZA()(),t.TgZ(11,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.chooseSymbol())}),t._uU(12,"Choose symbol"),t.qZA(),t._UZ(13,"br")(14,"br"),t.TgZ(15,"mat-form-field",13)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.category=a)}),t.YNc(17,XRe,2,2,"mat-option",20),t.qZA()(),t.TgZ(18,"mat-form-field",21)(19,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_type=a)}),t.YNc(20,$Re,2,2,"mat-option",20),t.qZA()(),t.TgZ(21,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.vpcsTemplate.console_auto_start=a)}),t._uU(22," Auto start console "),t.qZA()()(),t.TgZ(23,"div",24)(24,"button",9),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goBack())}),t._uU(25,"Cancel"),t.qZA(),t.TgZ(26,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onSave())}),t._uU(27,"Save"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.name),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.default_name_format),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.base_script_file),t.xp6(2),t.Q6J("ngModel",i.vpcsTemplate.symbol),t.xp6(6),t.Q6J("ngModelOptions",t.DdM(13,cz))("ngModel",i.vpcsTemplate.category),t.xp6(1),t.Q6J("ngForOf",i.categories),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(14,cz))("ngModel",i.vpcsTemplate.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(15,cz))("ngModel",i.vpcsTemplate.console_auto_start)}}function tLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-symbols-menu",27),t.NdJ("symbolChangedEmitter",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.symbolChanged(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("controller",i.controller)("symbol",i.vpcsTemplate.symbol)}}var nLe=function(r){return{shadowed:r}},V2=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.toasterService=o,this.formBuilder=a,this.vpcsConfigurationService=s,this.router=l,this.isSymbolSelectionOpened=!1,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({templateName:new J.p4("",J.kI.required),defaultName:new J.p4("",J.kI.required),scriptFile:new J.p4("",J.kI.required),symbol:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id"),o=this.route.snapshot.paramMap.get("template_id");this.controllerService.get(parseInt(i,10)).then(function(a){e.controller=a,e.getConfiguration(),e.vpcsService.getTemplate(e.controller,o).subscribe(function(s){e.vpcsTemplate=s})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"goBack",value:function(){this.router.navigate(["/controller",this.controller.id,"preferences","vpcs","templates"])}},{key:"onSave",value:function(){var e=this;this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.vpcsService.saveTemplate(this.controller,this.vpcsTemplate).subscribe(function(i){e.toasterService.success("Changes saved")})}},{key:"chooseSymbol",value:function(){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened}},{key:"symbolChanged",value:function(e){this.isSymbolSelectionOpened=!this.isSymbolSelectionOpened,this.vpcsTemplate.symbol=e}}]),n}();function rLe(n,r){if(1&n&&(t.TgZ(0,"button",12)(1,"mat-icon"),t._uU(2,"arrow_back"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences")}}function iLe(n,r){if(1&n&&(t.TgZ(0,"button",13)(1,"mat-icon"),t._uU(2,"add_circle_outline"),t.qZA()()),2&n){var e=t.oxw();t.MGl("routerLink","/controller/",e.controller.id,"/preferences/vpcs/addtemplate")}}function oLe(n,r){1&n&&t._UZ(0,"app-empty-templates-list")}function aLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",17)(1,"mat-list-item",18),t._uU(2),t.qZA(),t.TgZ(3,"button",19)(4,"mat-icon"),t._uU(5,"more_vert"),t.qZA()(),t.TgZ(6,"mat-menu",null,20)(8,"button",21)(9,"mat-icon"),t._uU(10,"edit"),t.qZA(),t.TgZ(11,"span"),t._uU(12,"Edit"),t.qZA()(),t.TgZ(13,"button",22),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.deleteTemplate(l))}),t.TgZ(14,"mat-icon"),t._uU(15,"delete"),t.qZA(),t.TgZ(16,"span"),t._uU(17,"Delete"),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.MAs(7);t.xp6(1),t.s9C("routerLink",i.template_id),t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.s9C("routerLink",i.template_id)}}function sLe(n,r){if(1&n&&(t.TgZ(0,"mat-nav-list"),t.YNc(1,aLe,18,4,"div",16),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.vpcsTemplates)}}function lLe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t.YNc(2,sLe,2,1,"mat-nav-list",8),t.qZA()()),2&n){var e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.controller)}}V2.\u0275fac=function(r){return new(r||V2)(t.Y36(pr),t.Y36(rr),t.Y36(xm),t.Y36(Ln),t.Y36(J.QS),t.Y36(Dm),t.Y36(ur))},V2.\u0275cmp=t.Xpm({type:V2,selectors:[["app-vpcs-template-details"]],decls:10,vars:6,consts:[[1,"content",3,"ngClass"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"click",4,"ngIf"],[1,"col","col-md-11"],[1,"col"],["class","default-content",4,"ngIf"],[3,"controller","symbol","symbolChangedEmitter",4,"ngIf"],["mat-button","",1,"cancel-button",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","defaultName","placeholder","Default name format",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","scriptFile","placeholder","Base script file",3,"ngModel","ngModelChange"],["matInput","","type","text","formControlName","symbol","placeholder","Symbol",3,"ngModel","ngModelChange"],["mat-button","",1,"symbolSelectionButton",3,"click"],["placeholder","Category",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"controller","symbol","symbolChangedEmitter"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,QRe,3,0,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node template configuration"),t.qZA()()()(),t.YNc(8,eLe,28,16,"div",7),t.qZA(),t.YNc(9,tLe,1,2,"app-symbols-menu",8)),2&r&&(t.Q6J("ngClass",t.VKq(4,nLe,e.isSymbolSelectionOpened)),t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(4),t.Q6J("ngIf",e.vpcsTemplate),t.xp6(1),t.Q6J("ngIf",e.isSymbolSelectionOpened&&e.vpcsTemplate))},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,$r,ni.gD,Vt.ey,Zu],styles:["table[_ngcontent-%COMP%]{width:100%}.listcontainer[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}.top-button[_ngcontent-%COMP%], .choose-symbol-button[_ngcontent-%COMP%]{height:36px;margin-top:22px}.cancel-button[_ngcontent-%COMP%]{height:36px;margin-top:22px;margin-right:10px}.form-field[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.shadowed[_ngcontent-%COMP%]{display:none;transition:.25s}.nonvisible[_ngcontent-%COMP%]{display:none}.configButton[_ngcontent-%COMP%]{width:100%}.configHideButton[_ngcontent-%COMP%]{margin-left:80%;width:20%;margin-bottom:10px}.symbolSelectionButton[_ngcontent-%COMP%]{width:100%}.list-item[_ngcontent-%COMP%]{display:flex}.template-name[_ngcontent-%COMP%]{width:95%}.delete-button[_ngcontent-%COMP%]{width:10%;outline:none}.menu-button[_ngcontent-%COMP%]{width:5%;outline:none!important}th[_ngcontent-%COMP%]{border:0px!important}th.mat-header-cell[_ngcontent-%COMP%]{padding-bottom:15px}td.mat-cell[_ngcontent-%COMP%]{padding-top:15px}.radio-button[_ngcontent-%COMP%]{width:50%;padding-top:20px}.radio-group[_ngcontent-%COMP%]{margin-bottom:20px}.file-button[_ngcontent-%COMP%]{width:18%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}"]});var Y2=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.vpcsService=i,this.vpcsTemplates=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(i,10)).then(function(o){e.controller=o,e.getTemplates()})}},{key:"getTemplates",value:function(){var e=this;this.vpcsService.getTemplates(this.controller).subscribe(function(i){e.vpcsTemplates=i.filter(function(o){return"vpcs"===o.template_type&&!o.builtin})})}},{key:"deleteTemplate",value:function(e){this.deleteComponent.deleteItem(e.name,e.template_id)}},{key:"onDeleteEvent",value:function(){this.getTemplates()}}]),n}();Y2.\u0275fac=function(r){return new(r||Y2)(t.Y36(pr),t.Y36(rr),t.Y36(xm))},Y2.\u0275cmp=t.Xpm({type:Y2,selectors:[["app-vpcs-templates"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(sa,5),2&r)&&(t.iGM(i=t.CRH())&&(e.deleteComponent=i.first))},decls:14,vars:5,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col","col-md-1"],["class","top-button","class","cancel-button","mat-button","",3,"routerLink",4,"ngIf"],[1,"col","col-md-10"],[1,"col"],["class","top-button cancel-button","matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",3,"routerLink",4,"ngIf"],[4,"ngIf"],["class","default-content",4,"ngIf"],[3,"controller","deleteEvent"],["deleteComponent",""],["mat-button","",1,"cancel-button",3,"routerLink"],["matTooltip","Add VPCS template","matTooltipClass","custom-tooltip","mat-button","",1,"top-button","cancel-button",3,"routerLink"],[1,"default-content"],[1,"listcontainer","mat-elevation-z8"],["class","list-item",4,"ngFor","ngForOf"],[1,"list-item"],[1,"template-name",3,"routerLink"],["mat-button","",1,"menu-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),t.YNc(4,rLe,3,1,"button",4),t.qZA(),t.TgZ(5,"div",5)(6,"h1",6),t._uU(7,"VPCS node templates"),t.qZA()(),t.TgZ(8,"div",3),t.YNc(9,iLe,3,1,"button",7),t.qZA()()(),t.YNc(10,oLe,1,0,"app-empty-templates-list",8),t.YNc(11,lLe,3,1,"div",9),t.qZA(),t.TgZ(12,"app-delete-template",10,11),t.NdJ("deleteEvent",function(){return e.onDeleteEvent()}),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",e.controller),t.xp6(5),t.Q6J("ngIf",e.controller),t.xp6(1),t.Q6J("ngIf",!e.vpcsTemplates.length),t.xp6(1),t.Q6J("ngIf",e.vpcsTemplates.length),t.xp6(1),t.Q6J("controller",e.controller))},dependencies:[ge.sg,ge.O5,Wo,Va,Dr,_a,cn,Dn,Hs,Aa,ui,sa,Nu],styles:["table[_ngcontent-%COMP%]{width:100%}.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 Gs=m(9971);function uLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(null==e?null:e.name)}}function cLe(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function dLe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"form",1),t.NdJ("ngSubmit",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.export_project_form.valid&&a.exportPortableProject())}),t.TgZ(1,"div",2)(2,"div",3)(3,"h1",4),t._uU(4,"Export Project"),t.qZA()(),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t._UZ(9,"mat-divider"),t.TgZ(10,"div",7)(11,"div",2)(12,"div",8),t._uU(13,"Compression:"),t.qZA(),t.TgZ(14,"div",9)(15,"mat-form-field",10)(16,"mat-select",11),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectCompression(a))}),t.YNc(17,uLe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(18,"div",2)(19,"div",8),t._uU(20,"Compression level:"),t.qZA(),t.TgZ(21,"div",9)(22,"mat-form-field",10)(23,"mat-select",13),t.YNc(24,cLe,2,2,"mat-option",12),t.qZA()()()(),t.TgZ(25,"div",2)(26,"div",14)(27,"section",15)(28,"mat-checkbox",16),t._uU(29," Include base images "),t.qZA()()()(),t.TgZ(30,"div",2)(31,"div",14)(32,"section",15)(33,"mat-checkbox",17),t._uU(34," Include snapshots "),t.qZA()()()(),t.TgZ(35,"div",2)(36,"div",14)(37,"section",15)(38,"mat-checkbox",18),t._uU(39," Reset MAC addresses"),t.qZA()()()()(),t._UZ(40,"mat-divider"),t.TgZ(41,"div",2)(42,"div",19)(43,"div",20)(44,"button",21),t._uU(45,"Export"),t.qZA(),t.TgZ(46,"button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t._uU(47,"Cancel"),t.qZA()()()()()}if(2&n){var i=t.oxw();t.Q6J("formGroup",i.export_project_form),t.xp6(17),t.Q6J("ngForOf",i.compression_methods),t.xp6(7),t.Q6J("ngForOf",i.compression_filter_value),t.xp6(20),t.Q6J("disabled",i.isExport)}}var Pk=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.projectService=i,this._fb=o,this.chosenImage="",this.compression_methods=[],this.compression_level=[],this.compression_filter_value=[],this.index=4,this.isExport=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.controller=this.data.controllerDetails,this.project=this.data.projectDetails,this.project&&(this.fileName=this.project.name+".gns3project"),o.next=5,this.formControls();case 5:this.compression_methods=this.projectService.getCompression(),this.compression_level=this.projectService.getCompressionLevel(),this.selectCompression({value:this.compression_methods[this.index]}),this.export_project_form.get("compression").setValue(this.compression_methods[this.index]);case 9:case"end":return o.stop()}},e,this)}))}},{key:"formControls",value:function(){this.export_project_form=this._fb.group({compression:["",J.kI.required],compression_level:[""],include_base_image:[!1,J.kI.required],include_snapshots:[!1,J.kI.required],reset_mac_address:[!1,J.kI.required]}),this.export_project_form.valueChanges.subscribe(function(){})}},{key:"selectCompression",value:function(e){var i=this;this.compression_level.length>0&&this.compression_level.map(function(o){e.value.value===o.name&&(i.export_project_form.get("compression_level").setValue(o.value),i.compression_filter_value=o.selectionValues)})}},{key:"exportPortableProject",value:function(){var e;this.isExport=!0,this.export_project_form.value.compression=null!==(e=this.export_project_form.value.compression.value)&&void 0!==e?e:"zstd",window.location.assign(this.projectService.getexportPortableProjectPath(this.controller,this.project.project_id,this.export_project_form.value)),this.dialogRef.close()}}]),n}();Pk.\u0275fac=function(r){return new(r||Pk)(t.Y36(cr),t.Y36(So),t.Y36(Gs.Y),t.Y36(J.QS))},Pk.\u0275cmp=t.Xpm({type:Pk,selectors:[["app-export-portable-project"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row"],[1,"col-md-10"],["mat-dialog-title",""],[1,"col-md-2","txt-align"],["mat-button","","type","button",1,"close-btn",3,"click"],[1,"mat-data"],[1,"col-md-4","col-data"],[1,"col-md-8"],[1,"input-full-width"],["formControlName","compression","required","",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","compression_level"],[1,"col-md-12","checkbox-row"],[1,"checkBox-section"],["formControlName","include_base_image",1,"checkBox-margin"],["formControlName","include_snapshots",1,"checkBox-margin"],["formControlName","reset_mac_address",1,"checkBox-margin"],[1,"col-md-12"],["mat-dialog-actions","","align","end"],["mat-button","","type","submit","cdkFocusInitial","",3,"disabled"],["type","button","mat-button","","cdkFocusInitial","",3,"click"],[3,"value"]],template:function(r,e){1&r&&t.YNc(0,dLe,48,4,"form",0),2&r&&t.Q6J("ngIf",e.export_project_form)},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.Q7,J.sg,J.u,kn.KE,cn,Dn,Cr,dr,$r,fm.d,ni.gD,Vt.ey],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin:0;display:block}.mat-dialog-container[_ngcontent-%COMP%]{padding:14px 14px 5px!important}.checkBox-section[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;height:35px}.checkBox-margin[_ngcontent-%COMP%]{margin:0 10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.close-btn[_ngcontent-%COMP%]{margin:0 0 20px 40px}.mat-data[_ngcontent-%COMP%]{margin:15px 0}.input-full-width[_ngcontent-%COMP%]{width:100%}.col-data[_ngcontent-%COMP%]{text-align:left;align-self:self-end;margin-bottom:20px}.checkbox-row[_ngcontent-%COMP%]{margin-top:5px 0 5px 0}"]});var Lg=m(7521),BB=m(5735),FB=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.id}}]),e}(BB.o),Am=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(FB);Am.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Am)))(e||Am)}}(),Am.\u0275prov=t.Yz7({token:Am,factory:Am.\u0275fac});var Om=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(FB);Om.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Om)))(e||Om)}}(),Om.\u0275prov=t.Yz7({token:Om,factory:Om.\u0275fac});var Im=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(FB);Im.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Im)))(e||Im)}}(),Im.\u0275prov=t.Yz7({token:Im,factory:Im.\u0275fac});var Pm=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(FB);Pm.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Pm)))(e||Pm)}}(),Pm.\u0275prov=t.Yz7({token:Pm,factory:Pm.\u0275fac});var lb=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Rk=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Pp=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"calculate",value:function(e,i){var o=document.createElement("text");o.innerText=e,o.setAttribute("fill","#00000"),o.setAttribute("fill-opacity","0"),o.setAttribute("style",i),document.documentElement.appendChild(o);var a=o.getBoundingClientRect();return document.documentElement.removeChild(o),{width:a.width,height:a.height}}}]),n}();function Hie(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);r&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,i)}return e}function Vr(n){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?Hie(Object(e),!0).forEach(function(i){(0,jw.Z)(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Hie(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}Pp.\u0275fac=function(r){return new(r||Pp)},Pp.\u0275prov=t.Yz7({token:Pp,factory:Pp.\u0275fac});function zs(n){return n>=48&&n<=57}function Zg(n){return zs(n)||n>=65&&n<=70||n>=97&&n<=102}function fz(n){return n>=65&&n<=90}function HB(n){return function hLe(n){return fz(n)||function pLe(n){return n>=97&&n<=122}(n)}(n)||function mLe(n){return n>=128}(n)||95===n}function jie(n){return HB(n)||zs(n)||45===n}function _Le(n){return n>=0&&n<=8||11===n||n>=14&&n<=31||127===n}function jB(n){return 10===n||13===n||12===n}function ub(n){return jB(n)||32===n||9===n}function Zp(n,r){return!(92!==n||jB(r)||0===r)}function GB(n,r,e){return 45===n?HB(r)||45===r||Zp(r,e):!!HB(n)||92===n&&Zp(n,r)}function pz(n,r,e){return 43===n||45===n?zs(r)?2:46===r&&zs(e)?3:0:46===n?zs(r)?2:0:zs(n)?1:0}function Gie(n){return 65279===n||65534===n?1:0}for(var hz=new Array(128),Ng=0;Ng<hz.length;Ng++)hz[Ng]=(ub(Ng)?130:zs(Ng)&&131)||HB(Ng)&&132||_Le(Ng)&&133||Ng||128;function _z(n){return n<128?hz[n]:132}function Lk(n,r){return r<n.length?n.charCodeAt(r):0}function gz(n,r,e){return 13===e&&10===Lk(n,r+1)?2:1}function Zk(n,r,e){var i=n.charCodeAt(r);return fz(i)&&(i|=32),i===e}function q2(n,r,e,i){if(e-r!==i.length||r<0||e>n.length)return!1;for(var o=r;o<e;o++){var a=i.charCodeAt(o-r),s=n.charCodeAt(o);if(fz(s)&&(s|=32),s!==a)return!1}return!0}function WB(n,r){for(;r<n.length&&ub(n.charCodeAt(r));r++);return r}function vz(n,r){for(;r<n.length&&zs(n.charCodeAt(r));r++);return r}function Nk(n,r){if(Zg(Lk(n,(r+=2)-1))){for(var e=Math.min(n.length,r+5);r<e&&Zg(Lk(n,r));r++);var i=Lk(n,r);ub(i)&&(r+=gz(n,r,i))}return r}function VB(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(!jie(e)){if(Zp(e,Lk(n,r+1))){r=Nk(n,r)-1;continue}break}}return r}function YB(n,r){var e=n.charCodeAt(r);if((43===e||45===e)&&(e=n.charCodeAt(r+=1)),zs(e)&&(r=vz(n,r+1),e=n.charCodeAt(r)),46===e&&zs(n.charCodeAt(r+1))&&(r=vz(n,r+=2)),Zk(n,r,101)){var i=0;(45===(e=n.charCodeAt(r+1))||43===e)&&(i=1,e=n.charCodeAt(r+2)),zs(e)&&(r=vz(n,r+1+i+1))}return r}function yz(n,r){for(;r<n.length;r++){var e=n.charCodeAt(r);if(41===e){r++;break}Zp(e,Lk(n,r+1))&&(r=Nk(n,r))}return r}function Vie(n){if(1===n.length&&!Zg(n.charCodeAt(0)))return n[0];var r=parseInt(n,16);return(0===r||r>=55296&&r<=57343||r>1114111)&&(r=65533),String.fromCodePoint(r)}var Yie=["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 KB(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;return null===n||n.length<r?new Uint32Array(Math.max(r+1024,16384)):n}function Jie(n){for(var r=n.source,e=r.length,i=r.length>0?Gie(r.charCodeAt(0)):0,o=KB(n.lines,e),a=KB(n.columns,e),s=n.startLine,l=n.startColumn,u=i;u<e;u++){var d=r.charCodeAt(u);o[u]=s,a[u]=l++,(10===d||13===d||12===d)&&(13===d&&u+1<e&&10===r.charCodeAt(u+1)&&(o[++u]=s,a[u]=l),s++,l=1)}o[e]=s,a[e]=l,n.lines=o,n.columns=a,n.computed=!0}var CLe=function(){function n(){(0,H.Z)(this,n),this.lines=null,this.columns=null,this.computed=!1}return(0,B.Z)(n,[{key:"setSource",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=i,this.startLine=o,this.startColumn=a,this.computed=!1}},{key:"getLocation",value:function(e,i){return this.computed||Jie(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||Jie(this),{source:o,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+i,line:this.lines[i],column:this.columns[i]}}}}]),n}(),ld=16777215,wLe=new Map([[2,22],[21,22],[19,20],[23,24]]),kLe=function(){function n(r,e){(0,H.Z)(this,n),this.setSource(r,e)}return(0,B.Z)(n,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},o=(e=String(e||"")).length,a=KB(this.offsetAndType,e.length+1),s=KB(this.balance,e.length+1),l=0,u=0,d=0,h=-1;for(this.offsetAndType=null,this.balance=null,i(e,function(C,Z,z){switch(C){default:s[l]=o;break;case u:var q=d&ld;for(d=s[q],u=d>>24,s[l]=q,s[q++]=l;q<l;q++)s[q]===o&&(s[q]=l);break;case 21:case 2:case 19:case 23:s[l]=d,u=wLe.get(C),d=u<<24|l}a[l++]=C<<24|z,-1===h&&(h=Z)}),a[l]=0|o,s[l]=o,s[o]=o;0!==d;){var g=d&ld;d=s[g],s[g]=o}this.source=e,this.firstCharOffset=-1===h?0:h,this.tokenCount=l,this.offsetAndType=a,this.balance=s,this.reset(),this.next()}},{key:"lookupType",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>24:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&ld:this.source.length}},{key:"lookupValue",value:function(e,i){return(e+=this.tokenIndex)<this.tokenCount&&q2(this.source,this.offsetAndType[e-1]&ld,this.offsetAndType[e]&ld,i)}},{key:"getTokenStart",value:function(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&ld:this.offsetAndType[this.tokenCount]&ld: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]&ld,i=this.offsetAndType[i],this.tokenType=i>>24,this.tokenEnd=i&ld):(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&ld):(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]&ld: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&ld;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:Yie[o],chunk:e.source.substring(a,s),balance:e.balance[l]}}),i}}]),n}();function qB(n,r){function e(C){return C<l?n.charCodeAt(C):0}function i(){return GB(e(d=YB(n,d)),e(d+1),e(d+2))?(h=12,void(d=VB(n,d))):37===e(d)?(h=11,void d++):void(h=10)}function o(){var C=d;return d=VB(n,d),q2(n,C,d,"url")&&40===e(d)?34===e(d=WB(n,d+1))||39===e(d)?(h=2,void(d=C+4)):void function s(){for(h=7,d=WB(n,d);d<n.length;d++){var C=n.charCodeAt(d);switch(_z(C)){case 41:return void d++;case 130:return 41===e(d=WB(n,d))||d>=n.length?void(d<n.length&&d++):(d=yz(n,d),void(h=8));case 34:case 39:case 40:case 133:return d=yz(n,d),void(h=8);case 92:if(Zp(C,e(d+1))){d=Nk(n,d)-1;break}return d=yz(n,d),void(h=8)}}}():40===e(d)?(h=2,void d++):void(h=1)}function a(C){for(C||(C=e(d++)),h=5;d<n.length;d++){var Z=n.charCodeAt(d);switch(_z(Z)){case C:return void d++;case 130:if(jB(Z))return d+=gz(n,d,Z),void(h=6);break;case 92:if(d===n.length-1)break;var z=e(d+1);jB(z)?d+=gz(n,d+1,z):Zp(Z,z)&&(d=Nk(n,d)-1)}}}for(var h,l=(n=String(n||"")).length,u=Gie(e(0)),d=u;d<l;){var g=n.charCodeAt(d);switch(_z(g)){case 130:h=13,d=WB(n,d+1);break;case 34:case 39:a();break;case 35:jie(e(d+1))||Zp(e(d+1),e(d+2))?(h=4,d=VB(n,d+1)):(h=9,d++);break;case 40:h=21,d++;break;case 41:h=22,d++;break;case 43:case 46:pz(g,e(d+1),e(d+2))?i():(h=9,d++);break;case 44:h=18,d++;break;case 45:pz(g,e(d+1),e(d+2))?i():45===e(d+1)&&62===e(d+2)?(h=15,d+=3):GB(g,e(d+1),e(d+2))?o():(h=9,d++);break;case 47:42===e(d+1)?(h=25,d=-1===(d=n.indexOf("*/",d+2))?n.length:d+2):(h=9,d++);break;case 58:h=16,d++;break;case 59:h=17,d++;break;case 60:33===e(d+1)&&45===e(d+2)&&45===e(d+3)?(h=14,d+=4):(h=9,d++);break;case 64:GB(e(d+1),e(d+2),e(d+3))?(h=3,d=VB(n,d+1)):(h=9,d++);break;case 91:h=19,d++;break;case 92:Zp(g,e(d+1))?o():(h=9,d++);break;case 93:h=20,d++;break;case 123:h=23,d++;break;case 125:h=24,d++;break;case 131:i();break;case 132:o();break;default:h=9,d++}r(h,u,u=d)}}var Bk=null,cb=function(n){function r(){(0,H.Z)(this,r),this.head=null,this.tail=null,this.cursor=null}return(0,B.Z)(r,[{key:"createItem",value:function(i){return r.createItem(i)}},{key:"allocateCursor",value:function(i,o){var a;return null!==Bk?(a=Bk,Bk=Bk.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=Bk,Bk=i}},{key:"updateCursors",value:function(i,o,a,s){for(var l=this.cursor;null!==l;)l.prev===i&&(l.prev=o),l.next===a&&(l.next=s),l=l.cursor}},{key:n,value:Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:i=this.head;case 1:if(null===i){a.next=7;break}return a.next=4,i.data;case 4:i=i.next,a.next=1;break;case 7:case"end":return a.stop()}},e,this)})},{key:"size",get:function(){for(var i=0,o=this.head;null!==o;o=o.next)i++;return i}},{key:"isEmpty",get:function(){return null===this.head}},{key:"first",get:function(){return this.head&&this.head.data}},{key:"last",get:function(){return this.tail&&this.tail.data}},{key:"fromArray",value:function(i){var o=null;this.head=null;var s,a=(0,xn.Z)(i);try{for(a.s();!(s=a.n()).done;){var l=s.value,u=r.createItem(l);null!==o?o.next=u:this.head=u,u.prev=o,o=u}}catch(d){a.e(d)}finally{a.f()}return this.tail=o,this}},{key:"toArray",value:function(){return(0,pn.Z)(this)}},{key:"toJSON",value:function(){return(0,pn.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,xn.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 JB(n,r){var e=Object.create(SyntaxError.prototype),i=new Error;return Object.assign(e,{name:n,message:r,get stack(){return(i.stack||"").replace(/^(.+\n){1,3}/,"".concat(n,": ").concat(r,"\n"))}})}function $ie(n,r){var e=n.source,i=n.line,o=n.column;function a(C,Z){return s.slice(C,Z).map(function(z,q){return String(C+q+1).padStart(d)+" |"+z}).join("\n")}var s=e.split(/\r\n?|\n|\f/),l=Math.max(1,i-r)-1,u=Math.min(i+r,s.length+1),d=Math.max(4,String(u).length)+1,h=0;(o+=(" ".length-1)*(s[i-1].substr(0,o-1).match(/\t/g)||[]).length)>100&&(h=o-60+3,o=58);for(var g=l;g<=u;g++)g>=0&&g<s.length&&(s[g]=s[g].replace(/\t/g," "),s[g]=(h>0&&s[g].length>h?"\u2026":"")+s[g].substr(h,98)+(s[g].length>h+100-1?"\u2026":""));return[a(l,i),new Array(o+d+2).join("-")+"^",a(i,u)].filter(Boolean).join("\n")}function eoe(n,r,e,i,o){return Object.assign(JB("SyntaxError",n),{source:r,offset:e,line:i,column:o,sourceFragment:function(l){return $ie({source:r,line:i,column:o},isNaN(l)?0:l)},get formattedMessage(){return"Parse error: ".concat(n,"\n")+$ie({source:r,line:i,column:o},2)}})}function TLe(n){for(var r=this.createList(),e=!1,i={recognizer:n};!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:e=!0,this.next();continue}var o=n.getNode.call(this,i);if(void 0===o)break;e&&(n.onWhiteSpace&&n.onWhiteSpace.call(this,o,r,i),e=!1),r.push(o)}return e&&n.onWhiteSpace&&n.onWhiteSpace.call(this,null,r,i),r}var toe=function(){};function ELe(n){return function(){return this[n]()}}function wz(n){var r=Object.create(null);for(var e in n){var i=n[e],o=i.parse||i;o&&(r[e]=o)}return r}function DLe(n){var r="",e="<unknown>",i=!1,o=toe,a=!1,s=new CLe,l=Object.assign(new kLe,function xLe(n){var r={context:Object.create(null),scope:Object.assign(Object.create(null),n.scope),atrule:wz(n.atrule),pseudo:wz(n.pseudo),node:wz(n.node)};for(var e in n.parseContext)switch(typeof n.parseContext[e]){case"function":r.context[e]=n.parseContext[e];break;case"string":r.context[e]=ELe(n.parseContext[e])}return Vr(Vr({config:r},r),r.node)}(n||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:TLe,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 cb},createSingleNodeList:function(h){return(new cb).appendData(h)},getFirstListNode:function(h){return h&&h.first},getLastListNode:function(h){return h&&h.last},parseWithFallback:function(h,g){var C=this.tokenIndex;try{return h.call(this)}catch(z){if(a)throw z;var Z=g.call(this,C);return a=!0,o(z,Z),a=!1,Z}},lookupNonWSType:function(h){var g;do{if(13!==(g=this.lookupType(h++)))return g}while(0!==g);return 0},charCodeAt:function(h){return h>=0&&h<r.length?r.charCodeAt(h):0},substring:function(h,g){return r.substring(h,g)},substrToCursor:function(h){return this.source.substring(h,this.tokenStart)},cmpChar:function(h,g){return Zk(r,h,g)},cmpStr:function(h,g,C){return q2(r,h,g,C)},consume:function(h){var g=this.tokenStart;return this.eat(h),this.substrToCursor(g)},consumeFunctionName:function(){var h=r.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),h},consumeNumber:function(h){var g=r.substring(this.tokenStart,YB(r,this.tokenStart));return this.eat(h),g},eat:function(h){if(this.tokenType!==h){var g=Yie[h].slice(0,-6).replace(/-/g," ").replace(/^./,function(z){return z.toUpperCase()}),C="".concat(/[[\](){}]/.test(g)?'"'.concat(g,'"'):g," is expected"),Z=this.tokenStart;switch(h){case 1:2===this.tokenType||7===this.tokenType?(Z=this.tokenEnd-1,C="Identifier is expected but function found"):C="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),Z++,C="Name is expected");break;case 11:10===this.tokenType&&(Z=this.tokenEnd,C="Percent sign is expected")}this.error(C,Z)}this.next()},eatIdent:function(h){(1!==this.tokenType||!1===this.lookupValue(0,h))&&this.error('Identifier "'.concat(h,'" is expected')),this.next()},eatDelim:function(h){this.isDelim(h)||this.error('Delim "'.concat(String.fromCharCode(h),'" is expected')),this.next()},getLocation:function(h,g){return i?s.getLocationRange(h,g,e):null},getLocationFromList:function(h){if(i){var g=this.getFirstListNode(h),C=this.getLastListNode(h);return s.getLocationRange(null!==g?g.loc.start.offset-s.startOffset:this.tokenStart,null!==C?C.loc.end.offset-s.startOffset:this.tokenStart,e)}return null},error:function(h,g){var C=void 0!==g&&g<r.length?s.getLocation(g):this.eof?s.getLocation(function vLe(n,r){for(;r>=0&&ub(n.charCodeAt(r));r--);return r+1}(r,r.length-1)):s.getLocation(this.tokenStart);throw new eoe(h||"Unexpected input",r,C.offset,C.line,C.column)}});return Object.assign(function(h,g){r=h,g=g||{},l.setSource(r,qB),s.setSource(r,g.offset,g.line,g.column),e=g.filename||"<unknown>",i=Boolean(g.positions),o="function"==typeof g.onParseError?g.onParseError:toe,a=!1,l.parseAtrulePrelude=!("parseAtrulePrelude"in g)||Boolean(g.parseAtrulePrelude),l.parseRulePrelude=!("parseRulePrelude"in g)||Boolean(g.parseRulePrelude),l.parseValue=!("parseValue"in g)||Boolean(g.parseValue),l.parseCustomProperty="parseCustomProperty"in g&&Boolean(g.parseCustomProperty);var C=g,Z=C.context,z=void 0===Z?"default":Z,q=C.onComment;if(!(z in l.context))throw new Error("Unknown context `"+z+"`");"function"==typeof q&&l.forEachToken(function(ae,Se,Ce){if(25===ae){var Ee=l.getLocation(Se,Ce),Ve=q2(r,Ce-2,Ce,"*/")?r.slice(Se+2,Ce-2):r.slice(Se+2,Ce);q(Ve,Ee)}});var re=l.context[z].call(l,g);return l.eof||l.error(),re},{SyntaxError:eoe,config:l.config})}var ALe=m(3058),ioe=new Set(["Atrule","Selector","Declaration"]);var kz=function(r,e){if(9===r&&(r=e),"string"==typeof r){var i=r.charCodeAt(0);return i>127?32768:i<<8}return r},ooe=[[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],["/","*"]],RLe=ooe.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 aoe(n){var r=new Set(n.map(function(e){var i=(0,Nn.Z)(e,2),o=i[0],a=i[1];return kz(o)<<16|kz(a)}));return function(e,i,o){var a=kz(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 LLe=aoe(ooe),soe=aoe(RLe);function NLe(n,r){var e=this;if("function"!=typeof r)n.children.forEach(this.node,this);else{var i=null;n.children.forEach(function(o){null!==i&&r.call(e,i),e.node(o),i=o})}}function BLe(n){var r=this;qB(n,function(e,i,o){r.token(e,n.slice(i,o))})}function FLe(n){var r=new Map;for(var e in n.node){var i=n.node[e];"function"==typeof(i.generate||i)&&r.set(e,i.generate||i)}return function(a,s){var l="",u=0,d={node:function(C){if(!r.has(C.type))throw new Error("Unknown node type: "+C.type);r.get(C.type).call(h,C)},tokenBefore:soe,token:function(C,Z){u=this.tokenBefore(u,C,Z),this.emit(Z,C,!1),9===C&&92===Z.charCodeAt(0)&&this.emit("\n",13,!0)},emit:function(C){l+=C},result:function(){return l}};s&&("function"==typeof s.decorator&&(d=s.decorator(d)),s.sourceMap&&(d=function OLe(n){var r=new ALe.h,e={line:1,column:0},i={line:0,column:0},o={line:1,column:0},a={generated:o},s=1,l=0,u=!1,d=n.node;n.node=function(C){if(C.loc&&C.loc.start&&ioe.has(C.type)){var Z=C.loc.start.line,z=C.loc.start.column-1;(i.line!==Z||i.column!==z)&&(i.line=Z,i.column=z,e.line=s,e.column=l,u&&(u=!1,(e.line!==o.line||e.column!==o.column)&&r.addMapping(a)),u=!0,r.addMapping({source:C.loc.source,original:i,generated:e}))}d.call(this,C),u&&ioe.has(C.type)&&(o.line=s,o.column=l)};var h=n.emit;n.emit=function(C,Z,z){for(var q=0;q<C.length;q++)10===C.charCodeAt(q)?(s++,l=0):l++;h(C,Z,z)};var g=n.result;return n.result=function(){return u&&r.addMapping(a),{css:g(),map:r}},n}(d)),s.mode in W&&(d.tokenBefore=W[s.mode]));var h={node:function(C){return d.node(C)},children:NLe,token:function(C,Z){return d.token(C,Z)},tokenize:BLe};return d.node(a),d.result()}}var Tz=Object.prototype.hasOwnProperty,J2=function(){};function loe(n){return"function"==typeof n?n:J2}function uoe(n,r){return function(e,i,o){e.type===r&&n.call(this,e,i,o)}}function HLe(n,r){var e=r.structure,i=[];for(var o in e)if(!1!==Tz.call(e,o)){var a=e[o],s={name:o,type:!1,nullable:!1};Array.isArray(a)||(a=[a]);var u,l=(0,xn.Z)(a);try{for(l.s();!(u=l.n()).done;){var d=u.value;null===d?s.nullable=!0:"string"==typeof d?s.type="node":Array.isArray(d)&&(s.type="list")}}catch(h){l.e(h)}finally{l.f()}s.type&&i.push(s)}return i.length?{context:r.walkContext,fields:i}:null}function coe(n,r){var e=n.fields.slice(),i=n.context,o="string"==typeof i;return r&&e.reverse(),function(a,s,l,u){var d;o&&(d=s[i],s[i]=a);var g,h=(0,xn.Z)(e);try{for(h.s();!(g=h.n()).done;){var C=g.value,Z=a[C.name];if(!C.nullable||Z)if("list"===C.type){if(r?Z.reduceRight(u,!1):Z.reduce(u,!1))return!0}else if(l(Z))return!0}}catch(q){h.e(q)}finally{h.f()}o&&(s[i]=d)}}function doe(n){var r=n.StyleSheet,e=n.Atrule,i=n.Rule,o=n.Block;return{Atrule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Rule:{StyleSheet:r,Atrule:e,Rule:i,Block:o},Declaration:{StyleSheet:r,Atrule:e,Rule:i,Block:o,DeclarationList:n.DeclarationList}}}function GLe(n){var r=function jLe(n){var r={};for(var e in n.node)if(Tz.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=HLe(0,i)}return r}(n),e={},i={},o=Symbol("break-walk"),a=Symbol("skip-node");for(var s in r)Tz.call(r,s)&&null!==r[s]&&(e[s]=coe(r[s],!1),i[s]=coe(r[s],!0));var l=doe(e),u=doe(i),d=function(g,C){function Z(Ce,Ee,Ve){var ut=z.call(Se,Ce,Ee,Ve);return ut===o||ut!==a&&!!(re.hasOwnProperty(Ce.type)&&re[Ce.type](Ce,Se,Z,ae)||q.call(Se,Ce,Ee,Ve)===o)}var z=J2,q=J2,re=e,ae=function(Ee,Ve,ut,Ae){return Ee||Z(Ve,ut,Ae)},Se={break:o,skip:a,root:g,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof C)z=C;else if(C&&(z=loe(C.enter),q=loe(C.leave),C.reverse&&(re=i),C.visit)){if(l.hasOwnProperty(C.visit))re=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(", ")+")");z=uoe(z,C.visit),q=uoe(q,C.visit)}if(z===J2&&q===J2)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");Z(g)};return d.break=o,d.skip=a,d.find=function(h,g){var C=null;return d(h,function(Z,z,q){if(g.call(this,Z,z,q))return C=Z,o}),C},d.findLast=function(h,g){var C=null;return d(h,{reverse:!0,enter:function(z,q,re){if(g.call(this,z,q,re))return C=z,o}}),C},d.findAll=function(h,g){var C=[];return d(h,function(Z,z,q){g.call(this,Z,z,q)&&C.push(Z)}),C},d}function zLe(n){return n}function Mz(n,r,e,i){var o;switch(n.type){case"Group":o=function YLe(n,r,e,i){var o=" "===n.combinator||i?n.combinator:" "+n.combinator+" ",a=n.terms.map(function(s){return Mz(s,r,e,i)}).join(o);return n.explicit||e?(i||","===a[0]?"[":"[ ")+a+(i?"]":" ]"):a}(n,r,e,i)+(n.disallowEmpty?"!":"");break;case"Multiplier":return Mz(n.term,r,e,i)+r(function WLe(n){var r=n.min,e=n.max,i=n.comma;return 0===r&&0===e?i?"#?":"*":0===r&&1===e?"?":1===r&&0===e?i?"#":"+":1===r&&1===e?"":(i?"#":"")+(r===e?"{"+r+"}":"{"+r+","+(0!==e?e:"")+"}")}(n),n);case"Type":o="<"+n.name+(n.opts?r(function VLe(n){if("Range"===n.type)return" ["+(null===n.min?"-\u221e":n.min)+","+(null===n.max?"\u221e":n.max)+"]";throw new Error("Unknown node type `"+n.type+"`")}(n.opts),n.opts):"")+">";break;case"Property":o="<'"+n.name+"'>";break;case"Keyword":o=n.name;break;case"AtKeyword":o="@"+n.name;break;case"Function":o=n.name+"(";break;case"String":case"Token":o=n.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+n.type+"`")}return r(o,n)}function Sz(n,r){var e=zLe,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)),Mz(n,e,i,o)}var foe={offset:0,line:1,column:1};function QB(n,r){var e=n&&n.loc&&n.loc[r];return e?"line"in e?Q2(e):e:null}function Q2(n,r){var a={offset:n.offset,line:n.line,column:n.column};if(r){var s=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=s.length-1,a.column=1===s.length?a.column+r.length:s.pop().length+1}return a}var X2=function(r,e){var i=JB("SyntaxReferenceError",r+(e?" `"+e+"`":""));return i.reference=e,i},qLe=function(r,e,i,o){var a=JB("SyntaxMatchError",r),s=function KLe(n,r){for(var h,g,e=n.tokens,i=n.longestMatch,o=i<e.length&&e[i].node||null,a=o!==r?o:null,s=0,l=0,u=0,d="",C=0;C<e.length;C++){var Z=e[C].value;C===i&&(l=Z.length,s=d.length),null!==a&&e[C].node===a&&(C<=i?u++:u=0),d+=Z}return i===e.length||u>1?(h=QB(a||r,"end")||Q2(foe,d),g=Q2(h)):(h=QB(a,"start")||Q2(QB(r,"start")||foe,d.slice(0,s)),g=QB(a,"end")||Q2(h,d.substr(s,l))),{css:d,mismatchOffset:s,mismatchLength:l,start:h,end:g}}(o,i),l=s.css,u=s.mismatchOffset,d=s.mismatchLength,h=s.start,g=s.end;return a.rawMessage=r,a.syntax=e?Sz(e):"<generic>",a.css=l,a.mismatchOffset=u,a.mismatchLength=d,a.message=r+"\n syntax: "+a.syntax+"\n value: "+(l||"<empty string>")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,h),a.loc={source:i&&i.loc&&i.loc.source||"<unknown>",start:h,end:g},a},XB=new Map,Fk=new Map,Ez=function JLe(n){if(XB.has(n))return XB.get(n);var r=n.toLowerCase(),e=XB.get(r);if(void 0===e){var i=xz(r,0),o=i?"":hoe(r,0);e=Object.freeze({basename:r.substr(o.length),name:r,prefix:o,vendor:o,custom:i})}return XB.set(n,e),e},poe=function QLe(n){if(Fk.has(n))return Fk.get(n);var r=n,e=n[0];"/"===e?e="/"===n[1]?"//":"/":"_"!==e&&"*"!==e&&"$"!==e&&"#"!==e&&"+"!==e&&"&"!==e&&(e="");var i=xz(r,e.length);if(!i&&(r=r.toLowerCase(),Fk.has(r))){var o=Fk.get(r);return Fk.set(n,o),o}var a=i?"":hoe(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 Fk.set(n,l),l};function xz(n,r){return r=r||0,n.length-r>=2&&45===n.charCodeAt(r)&&45===n.charCodeAt(r+1)}function hoe(n,r){if(r=r||0,n.length-r>=3&&45===n.charCodeAt(r)&&45!==n.charCodeAt(r+1)){var e=n.indexOf("-",r+2);if(-1!==e)return n.substring(r,e+1)}return""}var moe=["initial","inherit","unset","revert","revert-layer"],Uk=!0;function Az(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function eA(n,r,e){for(;null!==n&&(13===n.type||25===n.type);)n=e(++r);return r}function Fg(n,r,e,i){if(!n)return 0;var o=n.value.charCodeAt(r);if(43===o||45===o){if(e)return 0;r++}for(;r<n.value.length;r++)if(!zs(n.value.charCodeAt(r)))return 0;return i+1}function Oz(n,r,e){var i=!1,o=eA(n,r,e);if(null===(n=e(o)))return r;if(10!==n.type){if(!Az(n,43)&&!Az(n,45))return r;if(i=!0,o=eA(e(++o),o,e),null===(n=e(o))||10!==n.type)return 0}if(!i){var a=n.value.charCodeAt(0);if(43!==a&&45!==a)return 0}return Fg(n,i?0:1,i,o)}function Iz(n,r){return null!==n&&9===n.type&&n.value.charCodeAt(0)===r}function tA(n,r,e){for(var i=0,o=r;o<n.value.length;o++){var a=n.value.charCodeAt(o);if(45===a&&e&&0!==i)return tA(n,r+i+1,!1),6;if(!Zg(a)||++i>6)return 0}return i}function eF(n,r,e){if(!n)return 0;for(;Iz(e(r),63);){if(++n>6)return 0;r++}return r}var iZe=["calc(","-moz-calc(","-webkit-calc("],Pz=new Map([[2,22],[21,22],[19,20],[23,24]]);function df(n,r){return r<n.length?n.charCodeAt(r):0}function voe(n,r){return q2(n,0,n.length,r)}function yoe(n,r){for(var e=0;e<r.length;e++)if(voe(n,r[e]))return!0;return!1}function boe(n,r){return r===n.length-2&&(92===df(n,r)&&zs(df(n,r+1)))}function tF(n,r,e){if(n&&"Range"===n.type){var i=Number(void 0!==e&&e!==r.length?r.substr(0,e):r);if(isNaN(i)||null!==n.min&&i<n.min&&"string"!=typeof n.min||null!==n.max&&i>n.max&&"string"!=typeof n.max)return!0}return!1}function ud(n){return function(r,e,i){return null===r?0:2===r.type&&yoe(r.value,iZe)?function oZe(n,r){var e=0,i=[],o=0;e:do{switch(n.type){case 24:case 22:case 20:if(n.type!==e)break e;if(e=i.pop(),0===i.length){o++;break e}break;case 2:case 21:case 19:case 23:i.push(e),e=Pz.get(n.type)}o++}while(n=r(o));return o}(r,e):n(r,e,i)}}function Yo(n){return function(r){return null===r||r.type!==n?0:1}}function Rm(n){return n&&(n=new Set(n)),function(r,e,i){if(null===r||12!==r.type)return 0;var o=YB(r.value,0);if(null!==n){var a=r.value.indexOf("\\",o),s=-1!==a&&boe(r.value,a)?r.value.substring(o,a):r.value.substr(o);if(!1===n.has(s.toLowerCase()))return 0}return tF(i,r.value,o)?0:1}}function Coe(n){return"function"!=typeof n&&(n=function(){return 0}),function(r,e,i){return null!==r&&10===r.type&&0===Number(r.value)?1:n(r,e,i)}}var mZe={"ident-token":Yo(1),"function-token":Yo(2),"at-keyword-token":Yo(3),"hash-token":Yo(4),"string-token":Yo(5),"bad-string-token":Yo(6),"url-token":Yo(7),"bad-url-token":Yo(8),"delim-token":Yo(9),"number-token":Yo(10),"percentage-token":Yo(11),"dimension-token":Yo(12),"whitespace-token":Yo(13),"CDO-token":Yo(14),"CDC-token":Yo(15),"colon-token":Yo(16),"semicolon-token":Yo(17),"comma-token":Yo(18),"[-token":Yo(19),"]-token":Yo(20),"(-token":Yo(21),")-token":Yo(22),"{-token":Yo(23),"}-token":Yo(24)},_Ze={string:Yo(5),ident:Yo(1),percentage:ud(function fZe(n,r,e){return null===n||11!==n.type||tF(e,n.value,n.value.length-1)?0:1}),zero:Coe(),number:ud(function pZe(n,r,e){if(null===n)return 0;var i=YB(n.value,0);return!(i===n.value.length)&&!boe(n.value,i)||tF(e,n.value,i)?0:1}),integer:ud(function hZe(n,r,e){if(null===n||10!==n.type)return 0;for(var i=43===df(n.value,0)||45===df(n.value,0)?1:0;i<n.value.length;i++)if(!zs(df(n.value,i)))return 0;return tF(e,n.value,i)?0:1}),"custom-ident":function aZe(n){if(null===n||1!==n.type)return 0;var r=n.value.toLowerCase();return yoe(r,moe)||voe(r,"default")?0:1},"custom-property-name":function sZe(n){return null===n||1!==n.type||45!==df(n.value,0)||45!==df(n.value,1)?0:1},"hex-color":function lZe(n){if(null===n||4!==n.type)return 0;var r=n.value.length;if(4!==r&&5!==r&&7!==r&&9!==r)return 0;for(var e=1;e<r;e++)if(!Zg(df(n.value,e)))return 0;return 1},"id-selector":function uZe(n){return null!==n&&4===n.type&&GB(df(n.value,1),df(n.value,2),df(n.value,3))?1:0},"an-plus-b":function $Le(n,r){var e=0;if(!n)return 0;if(10===n.type)return Fg(n,0,false,e);if(1===n.type&&45===n.value.charCodeAt(0)){if(!Zk(n.value,1,110))return 0;switch(n.value.length){case 2:return Oz(r(++e),e,r);case 3:return 45!==n.value.charCodeAt(2)?0:(e=eA(r(++e),e,r),Fg(n=r(e),0,Uk,e));default:return 45!==n.value.charCodeAt(2)?0:Fg(n,3,Uk,e)}}else if(1===n.type||Az(n,43)&&1===r(e+1).type){if(1!==n.type&&(n=r(++e)),null===n||!Zk(n.value,0,110))return 0;switch(n.value.length){case 1:return Oz(r(++e),e,r);case 2:return 45!==n.value.charCodeAt(1)?0:(e=eA(r(++e),e,r),Fg(n=r(e),0,Uk,e));default:return 45!==n.value.charCodeAt(1)?0:Fg(n,2,Uk,e)}}else if(12===n.type){for(var i=n.value.charCodeAt(0),o=43===i||45===i?1:0,a=o;a<n.value.length&&zs(n.value.charCodeAt(a));a++);return a!==o&&Zk(n.value,a,110)?a+1===n.value.length?Oz(r(++e),e,r):45!==n.value.charCodeAt(a+1)?0:a+2===n.value.length?(e=eA(r(++e),e,r),Fg(n=r(e),0,Uk,e)):Fg(n,a+2,Uk,e):0}return 0},urange:function rZe(n,r){var e=0;if(null===n||1!==n.type||!Zk(n.value,0,117)||null===(n=r(++e)))return 0;if(Iz(n,43))return null===(n=r(++e))?0:1===n.type?eF(tA(n,0,!0),++e,r):Iz(n,63)?eF(1,++e,r):0;if(10===n.type){var i=tA(n,1,!0);return 0===i?0:null===(n=r(++e))?e:12===n.type||10===n.type?function nZe(n,r){return n.value.charCodeAt(0)===r}(n,45)&&tA(n,1,!1)?e+1:0:eF(i,e,r)}return 12===n.type?eF(tA(n,1,!0),++e,r):0},"declaration-value":function cZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 17:if(0===e)break e;break;case 9:if(0===e&&"!"===n.value)break e;break;case 2:case 21:case 19:case 23:i.push(e),e=Pz.get(n.type)}o++}while(n=r(o));return o},"any-value":function dZe(n,r){if(!n)return 0;var e=0,i=[],o=0;e:do{switch(n.type){case 6:case 8:break e;case 24:case 22:case 20:if(n.type!==e)break e;e=i.pop();break;case 2:case 21:case 19:case 23:i.push(e),e=Pz.get(n.type)}o++}while(n=r(o));return o}};function vZe(n){return Vr(Vr(Vr({},mZe),_Ze),function gZe(n){var r=n||{},e=r.angle,i=r.decibel,o=r.frequency,a=r.flex,s=r.length,l=r.resolution,u=r.semitones,d=r.time;return{dimension:ud(Rm(null)),angle:ud(Rm(e)),decibel:ud(Rm(i)),frequency:ud(Rm(o)),flex:ud(Rm(a)),length:ud(Coe(Rm(s))),resolution:ud(Rm(l)),semitones:ud(Rm(u)),time:ud(Rm(d))}}(n))}var yZe=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],bZe=["deg","grad","rad","turn"],CZe=["s","ms"],wZe=["hz","khz"],kZe=["dpi","dpcm","dppx","x"],TZe=["fr"],MZe=["db"],SZe=["st"];function EZe(n,r,e){return Object.assign(JB("SyntaxError",n),{input:r,offset:e,rawMessage:n,message:n+"\n "+r+"\n--"+new Array((e||r.length)+1).join("-")+"^"})}var PZe=function(){function n(r){(0,H.Z)(this,n),this.str=r,this.pos=0}return(0,B.Z)(n,[{key:"charCodeAt",value:function(e){return e<this.str.length?this.str.charCodeAt(e):0}},{key:"charCode",value:function(){return this.charCodeAt(this.pos)}},{key:"nextCharCode",value:function(){return this.charCodeAt(this.pos+1)}},{key:"nextNonWsCode",value:function(e){return this.charCodeAt(this.findWsEnd(e))}},{key:"findWsEnd",value:function(e){for(;e<this.str.length;e++){var i=this.str.charCodeAt(e);if(13!==i&&10!==i&&12!==i&&32!==i&&9!==i)break}return e}},{key:"substringToPos",value:function(e){return this.str.substring(this.pos,this.pos=e)}},{key:"eat",value:function(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}},{key:"peek",value:function(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}},{key:"error",value:function(e){throw new EZe(e,this.str,this.pos)}}]),n}(),nA=new Uint8Array(128).map(function(n,r){return/[a-zA-Z0-9\-]/.test(String.fromCharCode(r))?1:0}),Ooe={" ":1,"&&":2,"||":3,"|":4};function oF(n){return n.substringToPos(n.findWsEnd(n.pos))}function Hk(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e>=128||0===nA[e])break}return n.pos===r&&n.error("Expect a keyword"),n.substringToPos(r)}function aF(n){for(var r=n.pos;r<n.str.length;r++){var e=n.str.charCodeAt(r);if(e<48||e>57)break}return n.pos===r&&n.error("Expect a number"),n.substringToPos(r)}function HZe(n){var r=n.str.indexOf("'",n.pos+1);return-1===r&&(n.pos=n.str.length,n.error("Expect an apostrophe")),n.substringToPos(r+1)}function Ioe(n){var r,e=null;return n.eat(123),r=aF(n),44===n.charCode()?(n.pos++,125!==n.charCode()&&(e=aF(n))):e=r,n.eat(125),{min:Number(r),max:e?Number(e):0}}function jk(n,r){var e=function jZe(n){var r=null,e=!1;switch(n.charCode()){case 42:n.pos++,r={min:0,max:0};break;case 43:n.pos++,r={min:1,max:0};break;case 63:n.pos++,r={min:0,max:1};break;case 35:n.pos++,e=!0,123===n.charCode()?r=Ioe(n):63===n.charCode()?(n.pos++,r={min:0,max:0}):r={min:1,max:0};break;case 123:r=Ioe(n);break;default:return null}return{type:"Multiplier",comma:e,min:r.min,max:r.max,term:null}}(n);return null!==e?(e.term=r,35===n.charCode()&&43===n.charCodeAt(n.pos-1)?jk(n,e):e):r}function Uz(n){var r=n.peek();return""===r?null:{type:"Token",value:r}}function WZe(n){var r,e=null;return n.eat(60),r=Hk(n),40===n.charCode()&&41===n.nextCharCode()&&(n.pos+=2,r+="()"),91===n.charCodeAt(n.findWsEnd(n.pos))&&(oF(n),e=function zZe(n){var r=null,e=null,i=1;return n.eat(91),45===n.charCode()&&(n.peek(),i=-1),-1==i&&8734===n.charCode()?n.peek():(r=i*Number(aF(n)),0!==nA[n.charCode()]&&(r+=Hk(n))),oF(n),n.eat(44),oF(n),8734===n.charCode()?n.peek():(i=1,45===n.charCode()&&(n.peek(),i=-1),e=i*Number(aF(n)),0!==nA[n.charCode()]&&(e+=Hk(n))),n.eat(93),{type:"Range",min:r,max:e}}(n)),n.eat(62),jk(n,{type:"Type",name:r,opts:e})}function YZe(n,r){function e(l,u){return{type:"Group",terms:l,combinator:u,disallowEmpty:!1,explicit:!1}}var i;for(r=Object.keys(r).sort(function(l,u){return Ooe[l]-Ooe[u]});r.length>0;){i=r.shift();for(var o=0,a=0;o<n.length;o++){var s=n[o];"Combinator"===s.type&&(s.value===i?(-1===a&&(a=o-1),n.splice(o,1),o--):(-1!==a&&o-a>1&&(n.splice(a,o-a,e(n.slice(a,o),i)),o=a+1),a=-1))}-1!==a&&r.length&&n.splice(a,o-a,e(n.slice(a,o),i))}return i}function Poe(n){for(var i,r=[],e={},o=null,a=n.pos;i=qZe(n);)"Spaces"!==i.type&&("Combinator"===i.type?((null===o||"Combinator"===o.type)&&(n.pos=a,n.error("Unexpected combinator")),e[i.value]=!0):null!==o&&"Combinator"!==o.type&&(e[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(i),o=i,a=n.pos);return null!==o&&"Combinator"===o.type&&(n.pos-=a,n.error("Unexpected combinator")),{type:"Group",terms:r,combinator:YZe(r,e)||" ",disallowEmpty:!1,explicit:!1}}function qZe(n){var r=n.charCode();if(r<128&&1===nA[r])return function VZe(n){var r=Hk(n);return 40===n.charCode()?(n.pos++,{type:"Function",name:r}):jk(n,{type:"Keyword",name:r})}(n);switch(r){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return jk(n,function KZe(n){var r;return n.eat(91),r=Poe(n),n.eat(93),r.explicit=!0,33===n.charCode()&&(n.pos++,r.disallowEmpty=!0),r}(n));case 60:return 39===n.nextCharCode()?function GZe(n){var r;return n.eat(60),n.eat(39),r=Hk(n),n.eat(39),n.eat(62),jk(n,{type:"Property",name:r})}(n):WZe(n);case 124:return{type:"Combinator",value:n.substringToPos(n.pos+(124===n.nextCharCode()?2:1))};case 38:return n.pos++,n.eat(38),{type:"Combinator",value:"&&"};case 44:return n.pos++,{type:"Comma"};case 39:return jk(n,{type:"String",value:HZe(n)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:oF(n)};case 64:return(r=n.nextCharCode())<128&&1===nA[r]?(n.pos++,{type:"AtKeyword",name:Hk(n)}):Uz(n);case 123:if((r=n.nextCharCode())<48||r>57)return Uz(n);break;default:return Uz(n)}}function Roe(n){var r=new PZe(n),e=Poe(r);return r.pos!==n.length&&r.error("Unexpected input"),1===e.terms.length&&"Group"===e.terms[0].type?e.terms[0]:e}var rA=function(){};function Loe(n){return"function"==typeof n?n:rA}var QZe={decorator:function(r){var e=[],i=null;return Vr(Vr({},r),{},{node:function(a){var s=i;i=a,r.node.call(this,a),i=s},emit:function(a,s,l){e.push({type:s,value:a,node:l?null:i})},result:function(){return e}})}};function $Ze(n,r){return"string"==typeof n?function XZe(n){var r=[];return qB(n,function(e,i,o){return r.push({type:e,value:n.slice(i,o),node:null})}),r}(n):r.generate(n,QZe)}var ro={type:"Match"},xo={type:"Mismatch"},Hz={type:"DisallowEmpty"};function Il(n,r,e){return r===ro&&e===xo||n===ro&&r===ro&&e===ro?n:("If"===n.type&&n.else===xo&&r===ro&&(r=n.then,n=n.match),{type:"If",match:n,then:r,else:e})}function Zoe(n){return n.length>2&&40===n.charCodeAt(n.length-2)&&41===n.charCodeAt(n.length-1)}function Noe(n){return"Keyword"===n.type||"AtKeyword"===n.type||"Function"===n.type||"Type"===n.type&&Zoe(n.name)}function jz(n,r,e){switch(n){case" ":for(var i=ro,o=r.length-1;o>=0;o--){i=Il(r[o],i,xo)}return i;case"|":for(var s=xo,l=null,u=r.length-1;u>=0;u--){var d=r[u];if(Noe(d)&&(null===l&&u>0&&Noe(r[u-1])&&(s=Il({type:"Enum",map:l=Object.create(null)},ro,s)),null!==l)){var h=(Zoe(d.name)?d.name.slice(0,-1):d.name).toLowerCase();if(!(h in l)){l[h]=d;continue}}l=null,s=Il(d,ro,s)}return s;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(var g=xo,C=function(){var Ce,Se=r[Z];Ce=r.length>1?jz(n,r.filter(function(Ee){return Ee!==Se}),!1):ro,g=Il(Se,Ce,g)},Z=r.length-1;Z>=0;Z--)C();return g;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(var z=e?ro:xo,q=function(){var Ce,Se=r[re];Ce=r.length>1?jz(n,r.filter(function(Ee){return Ee!==Se}),!0):ro,z=Il(Se,Ce,z)},re=r.length-1;re>=0;re--)q();return z}}function Gz(n){if("function"==typeof n)return{type:"Generic",fn:n};switch(n.type){case"Group":var r=jz(n.combinator,n.terms.map(Gz),!1);return n.disallowEmpty&&(r=Il(r,Hz,xo)),r;case"Multiplier":return function nNe(n){var r=ro,e=Gz(n.term);if(0===n.max)e=Il(e,Hz,xo),(r=Il(e,null,xo)).then=Il(ro,ro,r),n.comma&&(r.then.else=Il({type:"Comma",syntax:n},r,xo));else for(var i=n.min||1;i<=n.max;i++)n.comma&&r!==ro&&(r=Il({type:"Comma",syntax:n},r,xo)),r=Il(e,Il(ro,ro,r),xo);if(0===n.min)r=Il(ro,ro,r);else for(var o=0;o<n.min-1;o++)n.comma&&r!==ro&&(r=Il({type:"Comma",syntax:n},r,xo)),r=Il(e,r,xo);return r}(n);case"Type":case"Property":return{type:n.type,name:n.name,syntax:n};case"Keyword":return{type:n.type,name:n.name.toLowerCase(),syntax:n};case"AtKeyword":return{type:n.type,name:"@"+n.name.toLowerCase(),syntax:n};case"Function":return{type:n.type,name:n.name.toLowerCase()+"(",syntax:n};case"String":return 3===n.value.length?{type:"Token",value:n.value.charAt(1),syntax:n}:{type:n.type,value:n.value.substr(1,n.value.length-2).replace(/\\'/g,"'"),syntax:n};case"Token":return{type:n.type,value:n.value,syntax:n};case"Comma":return{type:n.type,syntax:n};default:throw new Error("Unknown node type:",n.type)}}function zz(n,r){return"string"==typeof n&&(n=Roe(n)),{type:"MatchGraph",match:Gz(n),syntax:r||null,source:n}}var Boe=Object.prototype.hasOwnProperty;function Hoe(n){for(var r=null,e=null,i=n;null!==i;)e=i.prev,i.prev=r,r=i,i=e;return r}function Vz(n,r){if(n.length!==r.length)return!1;for(var e=0;e<n.length;e++){var i=r.charCodeAt(e),o=n.charCodeAt(e);if(o>=65&&o<=90&&(o|=32),o!==i)return!1}return!0}function joe(n){return null===n||(18===n.type||2===n.type||21===n.type||19===n.type||23===n.type||function lNe(n){return 9===n.type&&"?"!==n.value}(n))}function Goe(n){return null===n||(22===n.type||20===n.type||24===n.type||9===n.type&&"/"===n.value)}function zoe(n,r,e){function i(){do{Se++,ae=Se<n.length?n[Se]:null}while(null!==ae&&(13===ae.type||25===ae.type))}function o(Tn){var jn=Se+Tn;return jn<n.length?n[jn]:null}function a(Tn,jn){return{nextState:Tn,matchStack:Ee,syntaxStack:g,thenStack:C,tokenIndex:Se,prev:jn}}function s(Tn){C={nextState:Tn,matchStack:Ee,syntaxStack:g,prev:C}}function l(Tn){Z=a(Tn,Z)}function u(){Ee={type:1,syntax:r.syntax,token:ae,prev:Ee},i(),z=null,Se>Ce&&(Ce=Se)}function h(){Ee=2===Ee.type?Ee.prev:{type:3,syntax:g.syntax,token:Ee.token,prev:Ee},g=g.prev}var g=null,C=null,Z=null,z=null,q=0,re=null,ae=null,Se=-1,Ce=0,Ee={type:0,syntax:null,token:null,prev:null};for(i();null===re&&++q<15e3;)switch(r.type){case"Match":if(null===C){if(null!==ae&&(Se!==n.length-1||"\\0"!==ae.value&&"\\9"!==ae.value)){r=xo;break}re="Match";break}if((r=C.nextState)===Hz){if(C.matchStack===Ee){r=xo;break}r=ro}for(;C.syntaxStack!==g;)h();C=C.prev;break;case"Mismatch":if(null!==z&&!1!==z)(null===Z||Se>Z.tokenIndex)&&(Z=z,z=!1);else if(null===Z){re="Mismatch";break}r=Z.nextState,C=Z.thenStack,g=Z.syntaxStack,Ee=Z.matchStack,Se=Z.tokenIndex,ae=Se<n.length?n[Se]:null,Z=Z.prev;break;case"MatchGraph":r=r.match;break;case"If":r.else!==xo&&l(r.else),r.then!==ro&&s(r.then),r=r.match;break;case"MatchOnce":r={type:"MatchOnceBuffer",syntax:r,index:0,mask:0};break;case"MatchOnceBuffer":var Ve=r.syntax.terms;if(r.index===Ve.length){if(0===r.mask||r.syntax.all){r=xo;break}r=ro;break}if(r.mask===(1<<Ve.length)-1){r=ro;break}for(;r.index<Ve.length;r.index++){var ut=1<<r.index;if(0==(r.mask&ut)){l(r),s({type:"AddMatchOnce",syntax:r.syntax,mask:r.mask|ut}),r=Ve[r.index++];break}}break;case"AddMatchOnce":r={type:"MatchOnceBuffer",syntax:r.syntax,index:0,mask:r.mask};break;case"Enum":if(null!==ae){var Ae=ae.value.toLowerCase();if(-1!==Ae.indexOf("\\")&&(Ae=Ae.replace(/\\[09].*$/,"")),Boe.call(r.map,Ae)){r=r.map[Ae];break}}r=xo;break;case"Generic":var ot=null!==g?g.opts:null,ht=Se+Math.floor(r.fn(ae,o,ot));if(!isNaN(ht)&&ht>Se){for(;Se<ht;)u();r=ro}else r=xo;break;case"Type":case"Property":var bt="Type"===r.type?"types":"properties",Xe=Boe.call(e,bt)?e[bt][r.name]:null;if(!Xe||!Xe.match)throw new Error("Bad syntax reference: "+("Type"===r.type?"<"+r.name+">":"<'"+r.name+"'>"));if(!1!==z&&null!==ae&&"Type"===r.type)if("custom-ident"===r.name&&1===ae.type||"length"===r.name&&"0"===ae.value){null===z&&(z=a(r,Z)),r=xo;break}g={syntax:r.syntax,opts:r.syntax.opts||null!==g&&g.opts||null,prev:g},Ee={type:2,syntax:r.syntax,token:Ee.token,prev:Ee},r=Xe.match;break;case"Keyword":var ft=r.name;if(null!==ae){var Nt=ae.value;if(-1!==Nt.indexOf("\\")&&(Nt=Nt.replace(/\\[09].*$/,"")),Vz(Nt,ft)){u(),r=ro;break}}r=xo;break;case"AtKeyword":case"Function":if(null!==ae&&Vz(ae.value,r.name)){u(),r=ro;break}r=xo;break;case"Token":if(null!==ae&&ae.value===r.value){u(),r=ro;break}r=xo;break;case"Comma":null!==ae&&18===ae.type?joe(Ee.token)?r=xo:(u(),r=Goe(ae)?xo:ro):r=joe(Ee.token)||Goe(ae)?ro:xo;break;case"String":for(var Gt="",It=Se;It<n.length&&Gt.length<r.value.length;It++)Gt+=n[It].value;if(Vz(Gt,r.value)){for(;Se<It;)u();r=ro}else r=xo;break;default:throw new Error("Unknown node type: "+r.type)}switch(q,re){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),re="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Ee=null;break;case"Match":for(;null!==g;)h();break;default:Ee=null}return{tokens:n,reason:re,iterations:q,match:Ee,longestMatch:Ce}}function Woe(n,r,e){var i=zoe(n,r,e||{});if(null===i.match)return i;var o=i.match,a=i.match={syntax:r.syntax||null,match:[]},s=[a];for(o=Hoe(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 Voe(n){function r(o){return null!==o&&("Type"===o.type||"Property"===o.type||"Keyword"===o.type)}var i=null;return null!==this.matched&&function e(o){if(Array.isArray(o.match)){for(var a=0;a<o.match.length;a++)if(e(o.match[a]))return r(o.syntax)&&i.unshift(o.syntax),!0}else if(o.node===n)return i=r(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),i}function uNe(n,r){return Yz(this,n,function(e){return"Type"===e.type&&e.name===r})}function cNe(n,r){return Yz(this,n,function(e){return"Property"===e.type&&e.name===r})}function dNe(n){return Yz(this,n,function(r){return"Keyword"===r.type})}function Yz(n,r,e){var i=Voe.call(n,r);return null!==i&&i.some(e)}function Yoe(n){return"node"in n?n.node:Yoe(n.match[0])}function Koe(n){return"node"in n?n.node:Koe(n.match[n.match.length-1])}function qoe(n,r,e,i,o){var s=[];return null!==e.matched&&function a(l){if(null!==l.syntax&&l.syntax.type===i&&l.syntax.name===o){var u=Yoe(l),d=Koe(l);n.syntax.walk(r,function(h,g,C){if(h===u){var Z=new cb;do{if(Z.appendData(g.data),g.data===d)break;g=g.next}while(null!==g);s.push({parent:C,nodes:Z})}})}Array.isArray(l.match)&&l.match.forEach(a)}(e.matched),s}var iA=Object.prototype.hasOwnProperty;function Kz(n){return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n&&n>=0}function Joe(n){return Boolean(n)&&Kz(n.offset)&&Kz(n.line)&&Kz(n.column)}function fNe(n,r){return function(i,o){if(!i||i.constructor!==Object)return o(i,"Type of node should be an Object");for(var a in i){var s=!0;if(!1!==iA.call(i,a)){if("type"===a)i.type!==n&&o(i,"Wrong node type `"+i.type+"`, expected `"+n+"`");else if("loc"===a){if(null===i.loc)continue;if(i.loc&&i.loc.constructor===Object)if("string"!=typeof i.loc.source)a+=".source";else if(Joe(i.loc.start)){if(Joe(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 cb)}}}else o(i,"Unknown field `"+a+"` for "+n+" node type");s||o(i,"Bad value for `"+n+"."+a+"`")}}for(var d in r)iA.call(r,d)&&!1===iA.call(i,d)&&o(i,"Field `"+n+"."+d+"` is missed")}}function pNe(n,r){var e=r.structure,i={type:String,loc:!0},o={type:'"'+n+'"'};for(var a in e)if(!1!==iA.call(e,a)){for(var s=[],l=i[a]=Array.isArray(e[a])?e[a].slice():[e[a]],u=0;u<l.length;u++){var d=l[u];if(d===String||d===Boolean)s.push(d.name);else if(null===d)s.push("null");else if("string"==typeof d)s.push("<"+d+">");else{if(!Array.isArray(d))throw new Error("Wrong value `"+d+"` in `"+n+"."+a+"` structure definition");s.push("List")}}o[a]=s.join(" | ")}return{docs:o,check:fNe(n,i)}}var mNe=zz(moe.join(" | "));function qz(n,r,e){var i={};for(var o in n)n[o].syntax&&(i[o]=e?n[o].syntax:Sz(n[o].syntax,{compact:r}));return i}function _Ne(n,r,e){for(var i={},o=0,a=Object.entries(n);o<a.length;o++){var s=(0,Nn.Z)(a[o],2),l=s[0],u=s[1];i[l]={prelude:u.prelude&&(e?u.prelude.syntax:Sz(u.prelude.syntax,{compact:r})),descriptors:u.descriptors&&qz(u.descriptors,r,e)}}return i}function ff(n,r,e){return Vr({matched:n,iterations:e,error:r},U)}function Gk(n,r,e,i){var a,o=$Ze(e,n.syntax);return function gNe(n){for(var r=0;r<n.length;r++)if("var("===n[r].value.toLowerCase())return!0;return!1}(o)?ff(null,new Error("Matching for a tree with var() is not supported")):(i&&(a=Woe(o,n.cssWideKeywordsSyntax,n)),i&&a.match||(a=Woe(o,r.match,n)).match?ff(a.match,null,a.iterations):ff(null,new qLe(a.reason,r.syntax,e,a),a.iterations))}var Qoe=function(){function n(r,e,i){if((0,H.Z)(this,n),this.cssWideKeywordsSyntax=mNe,this.syntax=e,this.generic=!1,this.units=Vr({},A),this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=i||function hNe(n){var r={};if(n.node)for(var e in n.node)if(iA.call(n.node,e)){var i=n.node[e];if(!i.structure)throw new Error("Missed `structure` field in `"+e+"` node type definition");r[e]=pNe(e,i)}return r}(r),r){if(r.units)for(var o=0,a=Object.keys(A);o<a.length;o++){var s=a[o];Array.isArray(r.units[s])&&(this.units[s]=r.units[s])}if(r.types)for(var l in r.types)this.addType_(l,r.types[l]);if(r.generic){this.generic=!0;for(var u=0,d=Object.entries(vZe(this.units));u<d.length;u++){var h=(0,Nn.Z)(d[u],2),g=h[0],C=h[1];this.addType_(g,C)}}if(r.atrules)for(var Z in r.atrules)this.addAtrule_(Z,r.atrules[Z]);if(r.properties)for(var z in r.properties)this.addProperty_(z,r.properties[z])}}return(0,B.Z)(n,[{key:"checkStructure",value:function(e){function i(s,l){a.push({node:s,message:l})}var o=this.structure,a=[];return this.syntax.walk(e,function(s){o.hasOwnProperty(s.type)?o[s.type].check(s,i):i(s,"Unknown node type `"+s.type+"`")}),!!a.length&&a}},{key:"createDescriptor",value:function(e,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:i,name:o},l={type:i,name:o,parent:a,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?l.match=zz(e,s):("string"==typeof e?Object.defineProperty(l,"syntax",{get:function(){return Object.defineProperty(l,"syntax",{value:Roe(e)}),l.syntax}}):l.syntax=e,Object.defineProperty(l,"match",{get:function(){return Object.defineProperty(l,"match",{value:zz(l.syntax,s)}),l.match}})),l}},{key:"addAtrule_",value:function(e,i){var o=this;!i||(this.atrules[e]={type:"Atrule",name:e,prelude:i.prelude?this.createDescriptor(i.prelude,"AtrulePrelude",e):null,descriptors:i.descriptors?Object.keys(i.descriptors).reduce(function(a,s){return a[s]=o.createDescriptor(i.descriptors[s],"AtruleDescriptor",s,e),a},Object.create(null)):null})}},{key:"addProperty_",value:function(e,i){!i||(this.properties[e]=this.createDescriptor(i,"Property",e))}},{key:"addType_",value:function(e,i){!i||(this.types[e]=this.createDescriptor(i,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new X2("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||Gk(this,a.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,i){var o=this.checkAtruleName(e);if(o)return o;var a=this.getAtrule(e),s=Ez(i);return a.descriptors?a.descriptors[s.name]||a.descriptors[s.basename]?void 0:new X2("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 X2("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,i){var o=this.checkAtrulePrelude(e,i);if(o)return ff(null,o);var a=this.getAtrule(e);return a.prelude?Gk(this,a.prelude,i||"",!1):ff(null,null)}},{key:"matchAtruleDescriptor",value:function(e,i,o){var a=this.checkAtruleDescriptorName(e,i);if(a)return ff(null,a);var s=this.getAtrule(e),l=Ez(i);return Gk(this,s.descriptors[l.name]||s.descriptors[l.basename],o,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?ff(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,i){if(poe(e).custom)return ff(null,new Error("Lexer matching doesn't applicable for custom properties"));var o=this.checkPropertyName(e);return o?ff(null,o):Gk(this,this.getProperty(e),i,!0)}},{key:"matchType",value:function(e,i){var o=this.getType(e);return o?Gk(this,o,i,!1):ff(null,new X2("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")),Gk(this,e,i,!1)):ff(null,new X2("Bad syntax"))}},{key:"findValueFragments",value:function(e,i,o,a){return qoe(this,i,this.matchProperty(e,i),o,a)}},{key:"findDeclarationValueFragments",value:function(e,i,o){return qoe(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=Ez(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=poe(e),a=o.vendor&&i?this.properties[o.name]||this.properties[o.basename]:this.properties[o.name];return a||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(l,u,d,h){if(d.has(u))return d.get(u);d.set(u,!1),null!==h.syntax&&function JZe(n,r,e){var o=rA,a=rA;if("function"==typeof r?o=r:r&&(o=Loe(r.enter),a=Loe(r.leave)),o===rA&&a===rA)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function i(s){switch(o.call(e,s),s.type){case"Group":s.terms.forEach(i);break;case"Multiplier":i(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}a.call(e,s)}(n)}(h.syntax,function(g){if("Type"===g.type||"Property"===g.type){var C="Type"===g.type?l.types:l.properties,Z="Type"===g.type?i:o;(!hasOwnProperty.call(C,g.name)||e(l,g.name,Z,C[g.name]))&&d.set(u,!0)}},this)}var i=new Map,o=new Map;for(var a in this.types)e(this,a,i,this.types[a]);for(var s in this.properties)e(this,s,o,this.properties[s]);return i=(0,pn.Z)(i.keys()).filter(function(l){return i.get(l)}),o=(0,pn.Z)(o.keys()).filter(function(l){return o.get(l)}),i.length||o.length?{types:i,properties:o}:null}},{key:"dump",value:function(e,i){return{generic:this.generic,units:this.units,types:qz(this.types,!i,e),properties:qz(this.properties,!i,e),atrules:_Ne(this.atrules,!i,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),n}();function Jz(n,r){return"string"==typeof r&&/^\s*\|/.test(r)?"string"==typeof n?n+r:r.replace(/^\s*\|\s*/,""):r||null}function Xoe(n,r){for(var e=Object.create(null),i=0,o=Object.entries(n);i<o.length;i++){var a=(0,Nn.Z)(o[i],2),s=a[0],l=a[1];if(l){e[s]={};for(var u=0,d=Object.keys(l);u<d.length;u++){var h=d[u];r.includes(h)&&(e[s][h]=l[h])}}}return e}function Qz(n,r){for(var e=Vr({},n),i=0,o=Object.entries(r);i<o.length;i++){var a=(0,Nn.Z)(o[i],2),s=a[0],l=a[1];switch(s){case"generic":e[s]=Boolean(l);break;case"units":e[s]=Vr({},n[s]);for(var u=0,d=Object.entries(l);u<d.length;u++){var h=(0,Nn.Z)(d[u],2),g=h[0],C=h[1];e[s][g]=Array.isArray(C)?C:[]}break;case"atrules":e[s]=Vr({},n[s]);for(var Z=0,z=Object.entries(l);Z<z.length;Z++){var q=(0,Nn.Z)(z[Z],2),re=q[0],ae=q[1],Se=e[s][re]||{},Ce=e[s][re]={prelude:Se.prelude||null,descriptors:Vr({},Se.descriptors)};if(ae){Ce.prelude=ae.prelude?Jz(Ce.prelude,ae.prelude):Ce.prelude||null;for(var Ee=0,Ve=Object.entries(ae.descriptors||{});Ee<Ve.length;Ee++){var ut=(0,Nn.Z)(Ve[Ee],2),Ae=ut[0],ot=ut[1];Ce.descriptors[Ae]=ot?Jz(Ce.descriptors[Ae],ot):null}Object.keys(Ce.descriptors).length||(Ce.descriptors=null)}}break;case"types":case"properties":e[s]=Vr({},n[s]);for(var ht=0,bt=Object.entries(l);ht<bt.length;ht++){var Xe=(0,Nn.Z)(bt[ht],2),Pe=Xe[0],ft=Xe[1];e[s][Pe]=Jz(e[s][Pe],ft)}break;case"scope":e[s]=Vr({},n[s]);for(var Nt=0,Gt=Object.entries(l);Nt<Gt.length;Nt++){var It=(0,Nn.Z)(Gt[Nt],2),Tn=It[0],jn=It[1];e[s][Tn]=Vr(Vr({},e[s][Tn]),jn)}break;case"parseContext":e[s]=Vr(Vr({},n[s]),l);break;case"atrule":case"pseudo":e[s]=Vr(Vr({},n[s]),Xoe(l,["parse"]));break;case"node":e[s]=Vr(Vr({},n[s]),Xoe(l,["name","structure","parse","generate","walkContext"]))}}return e}function $oe(n){var r=DLe(n),e=GLe(n),i=FLe(n),o=function ULe(n){return{fromPlainObject:function(e){return n(e,{enter:function(o){o.children&&!(o.children instanceof cb)&&(o.children=(new cb).fromArray(o.children))}}),e},toPlainObject:function(e){return n(e,{leave:function(o){o.children&&o.children instanceof cb&&(o.children=o.children.toArray())}}),e}}}(e),a=o.fromPlainObject,s=o.toPlainObject,l={lexer:null,createLexer:function(d){return new Qoe(d,l,l.lexer.structure)},tokenize:qB,parse:r,generate:i,walk:e,find:e.find,findLast:e.findLast,findAll:e.findAll,fromPlainObject:a,toPlainObject:s,fork:function(d){var h=Qz({},n);return $oe("function"==typeof d?d(h,Object.assign):Qz(h,d))}};return l.lexer=new Qoe({generic:!0,units:n.units,types:n.types,atrules:n.atrules,properties:n.properties,node:n.node},l),l}var db=!0;function uF(n,r){var e=this.tokenStart+n,i=this.charCodeAt(e);for((43===i||45===i)&&(r&&this.error("Number sign is not allowed"),e++);e<this.tokenEnd;e++)zs(this.charCodeAt(e))||this.error("Integer is expected",e)}function zk(n){return uF.call(this,0,n)}function Ug(n,r){if(!this.cmpChar(this.tokenStart+n,r)){var e="";switch(r){case 110:e="N is expected";break;case 45:e="HyphenMinus is expected"}this.error(e,this.tokenStart+n)}}function Xz(){for(var n=0,r=0,e=this.tokenType;13===e||25===e;)e=this.lookupType(++n);if(10!==e){if(!this.isDelim(43,n)&&!this.isDelim(45,n))return null;r=this.isDelim(43,n)?43:45;do{e=this.lookupType(++n)}while(13===e||25===e);10!==e&&(this.skip(n),zk.call(this,db))}return n>0&&this.skip(n),0===r&&(43!==(e=this.charCodeAt(this.tokenStart))&&45!==e&&this.error("Number sign is expected")),zk.call(this,0!==r),45===r?"-"+this.consume(10):this.consume(10)}var CNe="AnPlusB",wNe={a:[String,null],b:[String,null]};function eae(){var n=this.tokenStart,r=null,e=null;if(10===this.tokenType)zk.call(this,false),e=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,45))switch(r="-1",Ug.call(this,1,110),this.tokenEnd-this.tokenStart){case 2:this.next(),e=Xz.call(this);break;case 3:Ug.call(this,2,45),this.next(),this.skipSC(),zk.call(this,db),e="-"+this.consume(10);break;default:Ug.call(this,2,45),uF.call(this,3,db),this.next(),e=this.substrToCursor(n+2)}else if(1===this.tokenType||this.isDelim(43)&&1===this.lookupType(1)){var i=0;switch(r="1",this.isDelim(43)&&(i=1,this.next()),Ug.call(this,0,110),this.tokenEnd-this.tokenStart){case 1:this.next(),e=Xz.call(this);break;case 2:Ug.call(this,1,45),this.next(),this.skipSC(),zk.call(this,db),e="-"+this.consume(10);break;default:Ug.call(this,1,45),uF.call(this,2,db),this.next(),e=this.substrToCursor(n+i+1)}}else if(12===this.tokenType){for(var o=this.charCodeAt(this.tokenStart),a=43===o||45===o,s=this.tokenStart+a;s<this.tokenEnd&&zs(this.charCodeAt(s));s++);s===this.tokenStart+a&&this.error("Integer is expected",this.tokenStart+a),Ug.call(this,s-this.tokenStart,110),r=this.substring(n,s),s+1===this.tokenEnd?(this.next(),e=Xz.call(this)):(Ug.call(this,s-this.tokenStart+1,45),s+2===this.tokenEnd?(this.next(),this.skipSC(),zk.call(this,db),e="-"+this.consume(10)):(uF.call(this,s-this.tokenStart+2,db),this.next(),e=this.substrToCursor(s+1)))}else this.error();return null!==r&&43===r.charCodeAt(0)&&(r=r.substr(1)),null!==e&&43===e.charCodeAt(0)&&(e=e.substr(1)),{type:"AnPlusB",loc:this.getLocation(n,this.tokenStart),a:r,b:e}}function kNe(n){if(n.a){var r=("+1"===n.a||"1"===n.a?"n":"-1"===n.a&&"-n")||n.a+"n";if(n.b){var e="-"===n.b[0]||"+"===n.b[0]?n.b:"+"+n.b;this.tokenize(r+e)}else this.tokenize(r)}else this.tokenize(n.b)}function tae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function TNe(){for(var r,n=1;r=this.lookupType(n);n++){if(24===r)return!0;if(23===r||3===r)return!1}return!1}var MNe="Atrule",SNe="atrule",ENe={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function nae(){var e,i,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,o=null,a=null;switch(this.eat(3),i=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),tae):tae.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:a=hasOwnProperty.call(this.atrule,i)&&"function"==typeof this.atrule[i].block?this.atrule[i].block.call(this,n):this.Block(TNe.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:o,block:a}}function xNe(n){this.token(3,"@"+n.name),null!==n.prelude&&this.node(n.prelude),n.block?this.node(n.block):this.token(17,";")}var DNe="AtrulePrelude",ANe="atrulePrelude",ONe={children:[[]]};function rae(n){var r=null;return null!==n&&(n=n.toLowerCase()),this.skipSC(),r=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].prelude?this.atrule[n].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(r),children:r}}function INe(n){this.children(n)}function ZNe(){this.eof&&this.error("Unexpected end of input");var n=this.tokenStart,r=!1;return this.isDelim(42)?(r=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(1)):r&&this.error("Identifier is expected",this.tokenEnd):r&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function NNe(){var n=this.tokenStart,r=this.charCodeAt(n);return 61!==r&&126!==r&&94!==r&&36!==r&&42!==r&&124!==r&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==r&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(n)}var BNe="AttributeSelector",FNe={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function oae(){var r,n=this.tokenStart,e=null,i=null,o=null;return this.eat(19),this.skipSC(),r=ZNe.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(e=NNe.call(this),this.skipSC(),i=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(n,this.tokenStart),name:r,matcher:e,value:i,flags:o}}function UNe(n){this.token(9,"["),this.node(n.name),null!==n.matcher&&(this.tokenize(n.matcher),this.node(n.value)),null!==n.flags&&this.token(1,n.flags),this.token(9,"]")}function aae(n){return this.Raw(n,null,!0)}function sae(){return this.parseWithFallback(this.Rule,aae)}function lae(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}function jNe(){if(17===this.tokenType)return lae.call(this,this.tokenIndex);var n=this.parseWithFallback(this.Declaration,lae);return 17===this.tokenType&&this.next(),n}var GNe="Block",zNe="block",WNe={children:[["Atrule","Rule","Declaration"]]};function uae(n){var r=n?jNe:sae,e=this.tokenStart,i=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:i.push(this.parseWithFallback(this.Atrule.bind(this,n),aae));break;default:n&&this.isDelim(38)?i.push(sae.call(this)):i.push(r.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(e,this.tokenStart),children:i}}function VNe(n){var r=this;this.token(23,"{"),this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")}),this.token(24,"}")}var YNe="Brackets",KNe={children:[[]]};function cae(n,r){var i,e=this.tokenStart;return this.eat(19),i=n.call(this,r),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(e,this.tokenStart),children:i}}function qNe(n){this.token(9,"["),this.children(n),this.token(9,"]")}var JNe="CDC",QNe=[];function dae(){var n=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(n,this.tokenStart)}}function XNe(){this.token(15,"--\x3e")}var $Ne="CDO",eBe=[];function fae(){var n=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(n,this.tokenStart)}}function tBe(){this.token(14,"\x3c!--")}var rBe="ClassSelector",iBe={name:String};function pae(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function oBe(n){this.token(9,"."),this.token(1,n.name)}var uBe="Combinator",cBe={name:String};function mae(){var r,n=this.tokenStart;switch(this.tokenType){case 13:r=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}r=this.substrToCursor(n)}return{type:"Combinator",loc:this.getLocation(n,this.tokenStart),name:r}}function dBe(n){this.tokenize(n.name)}var hBe="Comment",mBe={value:String};function _ae(){var n=this.tokenStart,r=this.tokenEnd;return this.eat(25),r-n+2>=2&&42===this.charCodeAt(r-2)&&47===this.charCodeAt(r-1)&&(r-=2),{type:"Comment",loc:this.getLocation(n,this.tokenStart),value:this.substring(n+2,r)}}function _Be(n){this.token(25,"/*"+n.value+"*/")}function wBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!0)}function kBe(n){return this.Raw(n,this.consumeUntilExclamationMarkOrSemicolon,!1)}function TBe(){var n=this.tokenIndex,r=this.Value();return"Raw"!==r.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(n)&&this.error(),r}var MBe="Declaration",SBe="declaration",EBe={important:[Boolean,String],property:String,value:["Value","Raw"]};function yae(){var l,n=this.tokenStart,r=this.tokenIndex,e=DBe.call(this),i=xz(e),o=i?this.parseCustomProperty:this.parseValue,a=i?kBe:wBe,s=!1;this.skipSC(),this.eat(16);var u=this.tokenIndex;if(i||this.skipSC(),l=o?this.parseWithFallback(TBe,a):a.call(this,this.tokenIndex),i&&"Value"===l.type&&l.children.isEmpty)for(var d=u-this.tokenIndex;d<=0;d++)if(13===this.lookupType(d)){l.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=ABe.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(n,this.tokenStart),important:s,property:e,value:l}}function xBe(n){this.token(1,n.property),this.token(16,":"),this.node(n.value),n.important&&(this.token(9,"!"),this.token(1,!0===n.important?"important":n.important))}function DBe(){var n=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(n)}function ABe(){this.eat(9),this.skipSC();var n=this.consume(1);return"important"===n||n}function eW(n){return this.Raw(n,this.consumeUntilSemicolonIncluded,!0)}var IBe="DeclarationList",PBe={children:[["Declaration","Atrule","Rule"]]};function bae(){for(var n=this.createList();!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule.bind(this,!0),eW));break;default:this.isDelim(38)?n.push(this.parseWithFallback(this.Rule,eW)):n.push(this.parseWithFallback(this.Declaration,eW))}return{type:"DeclarationList",loc:this.getLocationFromList(n),children:n}}function RBe(n){var r=this;this.children(n,function(e){"Declaration"===e.type&&r.token(17,";")})}var LBe="Dimension",ZBe={value:String,unit:String};function Cae(){var n=this.tokenStart,r=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(n,this.tokenStart),value:r,unit:this.substring(n+r.length,this.tokenStart)}}function NBe(n){this.token(12,n.value+n.unit)}var BBe="Function",FBe="function",UBe={name:String,children:[[]]};function wae(n,r){var a,e=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return a=r.hasOwnProperty(o)?r[o].call(this,r):n.call(this,r),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(e,this.tokenStart),name:i,children:a}}function HBe(n){this.token(2,n.name+"("),this.children(n),this.token(22,")")}var jBe="XXX",GBe="Hash",zBe={value:String};function kae(){var n=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n+1)}}function WBe(n){this.token(4,"#"+n.value)}var VBe="Identifier",YBe={name:String};function Tae(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function KBe(n){this.token(1,n.name)}var qBe="IdSelector",JBe={name:String};function Mae(){var n=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n+1)}}function QBe(n){this.token(9,"#"+n.name)}var XBe="MediaFeature",$Be={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Sae(){var r,n=this.tokenStart,e=null;if(this.eat(21),this.skipSC(),r=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:e=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:e=this.Dimension();break;case 1:e=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(n,this.tokenStart),name:r,value:e}}function eFe(n){this.token(21,"("),this.token(1,n.name),null!==n.value&&(this.token(16,":"),this.node(n.value)),this.token(22,")")}var tFe="MediaQuery",nFe={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Eae(){var n=this.createList(),r=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:r=this.Identifier();break;case 21:r=this.MediaFeature();break;default:break e}n.push(r)}return null===r&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(n),children:n}}function rFe(n){this.children(n)}var iFe="MediaQueryList",oFe={children:[["MediaQuery"]]};function xae(){var n=this.createList();for(this.skipSC();!this.eof&&(n.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(n),children:n}}function aFe(n){var r=this;this.children(n,function(){return r.token(18,",")})}var lFe="NestingSelector",uFe={};function Dae(){var n=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(n,this.tokenStart)}}function cFe(){this.token(9,"&")}var dFe="Nth",fFe={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Aae(){this.skipSC();var i,n=this.tokenStart,r=n,e=null;return i=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),e=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(n,r),nth:i,selector:e}}function pFe(n){this.node(n.nth),null!==n.selector&&(this.token(1,"of"),this.node(n.selector))}var hFe="Number",mFe={value:String};function Oae(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function _Fe(n){this.token(10,n.value)}var gFe="Operator",vFe={value:String};function Iae(){var n=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function yFe(n){this.tokenize(n.value)}var bFe="Parentheses",CFe={children:[[]]};function Pae(n,r){var i,e=this.tokenStart;return this.eat(21),i=n.call(this,r),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(e,this.tokenStart),children:i}}function wFe(n){this.token(21,"("),this.children(n),this.token(22,")")}var kFe="Percentage",TFe={value:String};function Rae(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function MFe(n){this.token(11,n.value+"%")}var SFe="PseudoClassSelector",EFe="function",xFe={name:String,children:[["Raw"],null]};function Lae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function DFe(n){this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}var AFe="PseudoElementSelector",OFe="function",IFe={name:String,children:[["Raw"],null]};function Zae(){var e,i,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(i=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,i)?(this.skipSC(),r=this.pseudo[i].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function PFe(n){this.token(16,":"),this.token(16,":"),null===n.children?this.token(1,n.name):(this.token(2,n.name+"("),this.children(n),this.token(22,")"))}function Nae(){this.skipSC();for(var n=this.consume(10),r=0;r<n.length;r++){var e=n.charCodeAt(r);!zs(e)&&46!==e&&this.error("Unsigned number is expected",this.tokenStart-n.length+r)}return 0===Number(n)&&this.error("Zero number is not allowed",this.tokenStart-n.length),n}var ZFe="Ratio",NFe={left:String,right:String};function Bae(){var e,n=this.tokenStart,r=Nae.call(this);return this.skipSC(),this.eatDelim(47),e=Nae.call(this),{type:"Ratio",loc:this.getLocation(n,this.tokenStart),left:r,right:e}}function BFe(n){this.token(10,n.left),this.token(9,"/"),this.token(10,n.right)}function FFe(){return this.tokenIndex>0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var UFe="Raw",HFe={value:String};function Fae(n,r,e){var o,i=this.getTokenStart(n);return this.skipUntilBalanced(n,r||this.consumeUntilBalanceEnd),o=e&&this.tokenStart>i?FFe.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,o),value:this.substring(i,o)}}function jFe(n){this.tokenize(n.value)}function Uae(n){return this.Raw(n,this.consumeUntilLeftCurlyBracket,!0)}function GFe(){var n=this.SelectorList();return"Raw"!==n.type&&!1===this.eof&&23!==this.tokenType&&this.error(),n}var zFe="Rule",WFe="rule",VFe={prelude:["SelectorList","Raw"],block:["Block"]};function Hae(){var e,i,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(GFe,Uae):Uae.call(this,n),i=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:i}}function YFe(n){this.node(n.prelude),this.node(n.block)}var KFe="Selector",qFe={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function jae(){var n=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(n)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(n),children:n}}function JFe(n){this.children(n)}var QFe="SelectorList",XFe="selector",$Fe={children:[["Selector","Raw"]]};function Gae(){for(var n=this.createList();!this.eof&&(n.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(n),children:n}}function e5e(n){var r=this;this.children(n,function(){return r.token(18,",")})}function Vae(n){for(var r=n.length,e=n.charCodeAt(0),i=34===e||39===e?1:0,o=1===i&&r>1&&n.charCodeAt(r-1)===e?r-2:r-1,a="",s=i;s<=o;s++){var l=n.charCodeAt(s);if(92===l){if(s===o){s!==r-1&&(a=n.substr(s+1));break}if(Zp(92,l=n.charCodeAt(++s))){var u=s-1,d=Nk(n,u);s=d-1,a+=Vie(n.substring(u+1,d))}else 13===l&&10===n.charCodeAt(s+1)&&s++}else a+=n[s]}return a}var n5e="String",r5e={value:String};function Yae(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Vae(this.consume(5))}}function i5e(n){this.token(5,function t5e(n,r){for(var e=r?"'":'"',i=r?39:34,o="",a=!1,s=0;s<n.length;s++){var l=n.charCodeAt(s);0!==l?l<=31||127===l?(o+="\\"+l.toString(16),a=!0):l===i||92===l?(o+="\\"+n.charAt(s),a=!1):(a&&(Zg(l)||ub(l))&&(o+=" "),o+=n.charAt(s),a=!1):o+="\ufffd"}return e+o+e}(n.value))}function Kae(n){return this.Raw(n,null,!1)}var a5e="StyleSheet",s5e="stylesheet",l5e={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function qae(){for(var e,n=this.tokenStart,r=this.createList();!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,Kae);break;default:e=this.parseWithFallback(this.Rule,Kae)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(n,this.tokenStart),children:r}}function u5e(n){this.children(n)}function nW(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var d5e="TypeSelector",f5e={name:String};function Qae(){var n=this.tokenStart;return this.isDelim(124)?(this.next(),nW.call(this)):(nW.call(this),this.isDelim(124)&&(this.next(),nW.call(this))),{type:"TypeSelector",loc:this.getLocation(n,this.tokenStart),name:this.substrToCursor(n)}}function p5e(n){this.tokenize(n.name)}function oA(n,r){for(var e=0,i=this.tokenStart+n;i<this.tokenEnd;i++){var o=this.charCodeAt(i);if(45===o&&r&&0!==e)return oA.call(this,n+e+1,!1),-1;Zg(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 dF(n){for(var r=0;this.isDelim(63);)++r>n&&this.error("Too many question marks"),this.next()}function h5e(n){this.charCodeAt(this.tokenStart)!==n&&this.error((43===n?"Plus sign":"Hyphen minus")+" is expected")}function m5e(){var n=0;switch(this.tokenType){case 10:if(n=oA.call(this,1,!0),this.isDelim(63)){dF.call(this,6-n);break}if(12===this.tokenType||10===this.tokenType){h5e.call(this,45),oA.call(this,1,!1);break}break;case 12:(n=oA.call(this,1,!0))>0&&dF.call(this,6-n);break;default:if(this.eatDelim(43),1===this.tokenType){(n=oA.call(this,0,!0))>0&&dF.call(this,6-n);break}if(this.isDelim(63)){this.next(),dF.call(this,5);break}this.error("Hex digit or question mark is expected")}}var _5e="UnicodeRange",g5e={value:String};function ese(){var n=this.tokenStart;return this.eatIdent("u"),m5e.call(this),{type:"UnicodeRange",loc:this.getLocation(n,this.tokenStart),value:this.substrToCursor(n)}}function v5e(n){this.tokenize(n.value)}var M5e="Url",S5e={value:String};function nse(){var r,n=this.tokenStart;switch(this.tokenType){case 7:r=function k5e(n){for(var r=n.length,e=4,i=41===n.charCodeAt(r-1)?r-2:r-1,o="";e<i&&ub(n.charCodeAt(e));)e++;for(;e<i&&ub(n.charCodeAt(i));)i--;for(var a=e;a<=i;a++){var s=n.charCodeAt(a);if(92===s){if(a===i){a!==r-1&&(o=n.substr(a+1));break}if(Zp(92,s=n.charCodeAt(++a))){var l=a-1,u=Nk(n,l);a=u-1,o+=Vie(n.substring(l+1,u))}else 13===s&&10===n.charCodeAt(a+1)&&a++}else o+=n[a]}return o}(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),r=Vae(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(n,this.tokenStart),value:r}}function E5e(n){this.token(7,function T5e(n){for(var r="",e=!1,i=0;i<n.length;i++){var o=n.charCodeAt(i);0!==o?o<=31||127===o?(r+="\\"+o.toString(16),e=!0):32===o||92===o||34===o||39===o||40===o||41===o?(r+="\\"+n.charAt(i),e=!1):(e&&Zg(o)&&(r+=" "),r+=n.charAt(i),e=!1):r+="\ufffd"}return"url("+r+")"}(n.value))}var x5e="Value",D5e={children:[[]]};function rse(){var n=this.tokenStart,r=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(n,this.tokenStart),children:r}}function A5e(n){this.children(n)}var O5e=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),I5e="WhiteSpace",P5e={value:String};function ise(){return this.eat(13),O5e}function R5e(n){this.token(13,n.value)}var L5e=Vr(Vr({generic:!0},{generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221e]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221e]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221e]> [/ <number [0,\u221e]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221e]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221e]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221e]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},nest:{prelude:"<complex-selector-list>",descriptors:null}}}),{},{node:Ct});function ase(n){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,n.recognizer);case 19:return this.Brackets(this.readSequence,n.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,n.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case 9:var r=this.charCodeAt(this.tokenStart);if(47===r||42===r||43===r||45===r)return this.Operator();35===r&&this.error("Hex or identifier is expected",this.tokenStart+1)}}var H5e={getNode:ase};var X5e={onWhiteSpace:function J5e(n,r){null!==r.last&&"Combinator"!==r.last.type&&null!==n&&"Combinator"!==n.type&&r.push({type:"Combinator",loc:null,name:" "})},getNode:function Q5e(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return 16===this.lookupType(1)?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}};function lse(n){return null!==n&&"Operator"===n.type&&("-"===n.value[n.value.length-1]||"+"===n.value[n.value.length-1])}var t4e={getNode:ase,onWhiteSpace:function(r,e){lse(r)&&(r.value=" "+r.value),lse(e.last)&&(e.last.value+=" ")},expression:function $5e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))},var:function e4e(){var n=this.createList();if(this.skipSC(),n.push(this.Identifier()),this.skipSC(),18===this.tokenType){n.push(this.Operator());var r=this.tokenIndex,e=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===e.type&&e.children.isEmpty)for(var i=r-this.tokenIndex;i<=0;i++)if(13===this.lookupType(i)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}n.push(e)}return n}},r4e={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 s4e(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function l4e(){return this.skipSC(),1===this.tokenType&&16===this.lookupNonWSType(1)?this.createSingleNodeList(this.Declaration()):use.call(this)}function use(){var r,n=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:r=this.Function(s4e,this.scope.AtrulePrelude);break;case 1:r=this.Identifier();break;case 21:r=this.Parentheses(l4e,this.scope.AtrulePrelude);break;default:break e}n.push(r)}return n}var u4e={parse:{prelude:function(){var r=use.call(this);return null===this.getFirstListNode(r)&&this.error("Condition is expected"),r},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},c4e={"font-face":{parse:{prelude:null,block:function(){return this.Block(!0)}}},import:r4e,media:{parse:{prelude:function(){return this.createSingleNodeList(this.MediaQueryList())},block:function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.Block(r)}}},nest:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},page:{parse:{prelude:function(){return this.createSingleNodeList(this.SelectorList())},block:function(){return this.Block(!0)}}},supports:u4e},fb={parse:function(){return this.createSingleNodeList(this.SelectorList())}},oW={parse:function(){return this.createSingleNodeList(this.Selector())}},cse={parse:function(){return this.createSingleNodeList(this.Identifier())}},fF={parse:function(){return this.createSingleNodeList(this.Nth())}},f4e={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:We,atrule:c4e,pseudo:{dir:cse,has:fb,lang:cse,matches:fb,is:fb,"-moz-any":fb,"-webkit-any":fb,where:fb,not:fb,"nth-child":fF,"nth-last-child":fF,"nth-last-of-type":fF,"nth-of-type":fF,slotted:oW,host:oW,"host-context":oW},node:lt},p4e={node:Ct},cd=function(n){return $oe(Qz({},n))}(Vr(Vr(Vr({},L5e),f4e),p4e));cd.tokenize;var aW=cd.parse,pse=cd.generate,Mc=(cd.lexer,cd.createLexer,cd.walk,cd.find,cd.findLast,cd.findAll,cd.toPlainObject,cd.fromPlainObject,cd.fork,function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){var i=aW(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"))}})}),pse(i)}}]),n}());Mc.\u0275fac=function(r){return new(r||Mc)},Mc.\u0275prov=t.Yz7({token:Mc,factory:Mc.\u0275fac});var is=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){return e.font_family===n.DEFAULT_FONT&&e.font_size===n.DEFAULT_SIZE&&(e.font_family=n.REPLACE_BY_FONT,e.font_size=n.REPLACE_BY_SIZE),e}},{key:"fixStyles",value:function(e){var i=aW(e,{context:"declarationList"}),o=null,a=null,s=!0;if(i.children.forEach(function(h){"font-family"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Identifier"===g.type&&(o=g),"String"===g.type&&(o=g,s=!1)}),"font-size"===h.property&&h.value&&h.value.children&&h.value.children.forEach(function(g){"Dimension"===g.type&&(a=g)})}),a&&o){var l=null,u=a.value;l=s?o.name:o.value;var d=this.fix({font_family:l.split('"').join(""),font_size:parseInt(u,10)});s?o.name=d.font_family:o.value=d.font_family,a.value=d.font_size}return pse(i)}}]),n}();is.DEFAULT_FONT="TypeWriter",is.DEFAULT_SIZE=10,is.REPLACE_BY_FONT="Noto Sans",is.REPLACE_BY_SIZE=11,is.\u0275fac=function(r){return new(r||is)},is.\u0275prov=t.Yz7({token:is,factory:is.\u0275fac});var Hg=function(){function n(r,e,i){(0,H.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,B.Z)(n,[{key:"convert",value:function(e,i){var o=new Rk;o.rotation=e.rotation,o.style=e.style,o.text=e.text,o.x=e.x,o.y=e.y,o.originalX=e.x,o.originalY=e.y,void 0!==i&&(o.id=i.node_id,o.nodeId=i.node_id);var a=this.cssFixer.fix(o.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.text,s);return null!==o.x&&(o.x+=3),null!==o.y&&(o.y+=l.height),o}}]),n}();Hg.\u0275fac=function(r){return new(r||Hg)(t.LFG(Pp),t.LFG(Mc),t.LFG(is))},Hg.\u0275prov=t.Yz7({token:Hg,factory:Hg.\u0275fac});var h4e=(0,B.Z)(function n(){(0,H.Z)(this,n)}),jg=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new h4e;return i.adapterNumber=e.adapter_number,i.linkType=e.link_type,i.name=e.name,i.portNumber=e.port_number,i.shortName=e.short_name,i}}]),n}();jg.\u0275fac=function(r){return new(r||jg)},jg.\u0275prov=t.Yz7({token:jg,factory:jg.\u0275fac});var Gg=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.labelToMapLabel=r,this.portToMapPort=e,this.fontBBoxCalculator=i,this.cssFixer=o,this.fontFixer=a}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new lb;if(o.id=e.node_id,o.commandLine=e.command_line,o.computeId=e.compute_id,o.console=e.console,o.consoleHost=e.console_host,o.consoleType=e.console_type,o.firstPortName=e.first_port_name,o.height=e.height,o.label=this.labelToMapLabel?this.labelToMapLabel.convert(e.label,{node_id:e.node_id}):void 0,o.locked=e.locked,o.name=e.name,o.nodeDirectory=e.node_directory,o.nodeType=e.node_type,o.portNameFormat=e.port_name_format,o.portSegmentSize=e.port_segment_size,o.ports=e.ports?e.ports.map(function(u){return i.portToMapPort.convert(u)}):[],o.projectId=e.project_id,o.status=e.status,o.symbol=e.symbol,o.symbolUrl=e.symbol_url,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,void 0!==o.label){var a=this.cssFixer.fix(o.label.style),s=this.fontFixer.fixStyles(a),l=this.fontBBoxCalculator.calculate(o.label.text,s);(null===e.label.x||null===e.label.y)&&(o.label.x=e.width/2-l.width/2+3,o.label.y=-8)}return o}}]),n}();Gg.\u0275fac=function(r){return new(r||Gg)(t.LFG(Hg),t.LFG(jg),t.LFG(Pp),t.LFG(Mc),t.LFG(is))},Gg.\u0275prov=t.Yz7({token:Gg,factory:Gg.\u0275fac});var hse=(0,B.Z)(function n(){(0,H.Z)(this,n),this.isSelected=!1,this.isMultiplied=!1}),aA=(0,B.Z)(function n(){(0,H.Z)(this,n)}),pb=function(){function n(r){(0,H.Z)(this,n),this.labelToMapLabel=r}return(0,B.Z)(n,[{key:"convert",value:function(e,i){var o=new aA;return o.nodeId=e.node_id,o.adapterNumber=e.adapter_number,o.portNumber=e.port_number,o.label=this.labelToMapLabel.convert(e.label),void 0!==i&&(o.linkId=i.link_id,o.id="".concat(o.nodeId,"-").concat(o.linkId)),o}}]),n}();pb.\u0275fac=function(r){return new(r||pb)(t.LFG(Hg))},pb.\u0275prov=t.Yz7({token:pb,factory:pb.\u0275fac});var zg=function(){function n(r){(0,H.Z)(this,n),this.linkNodeToMapLinkNode=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new hse;return o.id=e.link_id,o.captureFileName=e.capture_file_name,o.captureFilePath=e.capture_file_path,o.capturing=e.capturing,o.filters=e.filters,o.link_style=e.link_style,o.linkType=e.link_type,o.nodes=e.nodes.map(function(a){return i.linkNodeToMapLinkNode.convert(a,{link_id:e.link_id})}),o.projectId=e.project_id,o.suspend=e.suspend,o}}]),n}();zg.\u0275fac=function(r){return new(r||zg)(t.LFG(pb))},zg.\u0275prov=t.Yz7({token:zg,factory:zg.\u0275fac});var Lm=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Zm=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new Lm;return i.id=e.drawing_id,i.projectId=e.project_id,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i}}]),n}();Zm.\u0275fac=function(r){return new(r||Zm)},Zm.\u0275prov=t.Yz7({token:Zm,factory:Zm.\u0275fac});var m4e=(0,B.Z)(function n(){(0,H.Z)(this,n)}),hb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new m4e;return i.id=e.symbol_id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();hb.\u0275fac=function(r){return new(r||hb)},hb.\u0275prov=t.Yz7({token:hb,factory:hb.\u0275fac});var _4e=(0,B.Z)(function n(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];(0,H.Z)(this,n),this.index=r,this.nodes=e,this.drawings=i,this.links=o}),Nm=function(){function n(){(0,H.Z)(this,n),this.layers={}}return(0,B.Z)(n,[{key:"getLayersList",value:function(){var e=this;return Object.keys(this.layers).sort(function(i,o){return Number(i)-Number(o)}).map(function(i){return e.layers[i]})}},{key:"setNodes",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).nodes.push(o)})}},{key:"setDrawings",value:function(e){var i=this;e.forEach(function(o){i.getLayerForKey(o.z.toString()).drawings.push(o)})}},{key:"setLinks",value:function(e){var i=this;console.log("from set links 2"),e.filter(function(o){return o.source&&o.target}).forEach(function(o){var a=Math.min(o.source.z,o.target.z).toString();i.getLayerForKey(a).links.push(o)})}},{key:"clear",value:function(){this.layers={}}},{key:"getLayerForKey",value:function(e){return e in this.layers||(this.layers[e]=new _4e,this.layers[e].index=Number(e)),this.layers[e]}}]),n}();Nm.\u0275fac=function(r){return new(r||Nm)},Nm.\u0275prov=t.Yz7({token:Nm,factory:Nm.\u0275fac});var Fp=function(){function n(){(0,H.Z)(this,n),this.LINK_WIDTH=2}return(0,B.Z)(n,[{key:"linkTranslation",value:function(e,i,o){var l,u,a=o.x-i.x,s=o.y-i.y;if(0===s)l=0,u=e;else{var d=Math.atan(a/s);l=-e*Math.cos(d),u=e*Math.sin(d)}return{dx:l,dy:u}}},{key:"assignDataToLinks",value:function(e){var i=this,o={};e.forEach(function(a,s){var l=a.source.id,u=a.target.id,d=l<u?l+","+u:u+","+l,h=1;d in o?h=o[d].push(s):o[d]=[s],a.distance=h%2==0?h*i.LINK_WIDTH:(1-h)*i.LINK_WIDTH})}}]),n}();Fp.\u0275fac=function(r){return new(r||Fp)},Fp.\u0275prov=t.Yz7({token:Fp,factory:Fp.\u0275fac});var Up=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.mapNodesDataSource=r,this.mapLinksDataSource=e,this.mapDrawingsDataSource=i,this.mapSymbolsDataSource=o,this.nodeToMapNode=a,this.linkToMapLink=s,this.drawingToMapDrawing=l,this.symbolToMapSymbol=u,this.layersManager=d,this.multiLinkCalculator=h}return(0,B.Z)(n,[{key:"setNodes",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.nodeToMapNode.convert(a)});this.mapNodesDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setLinks",value:function(e){var i=this;if(e){console.log("from set links");var o=e.map(function(a){return i.linkToMapLink.convert(a)});this.mapLinksDataSource.set(o),this.assignDataToLinks(),this.onDataUpdate()}}},{key:"setDrawings",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.drawingToMapDrawing.convert(a)});this.mapDrawingsDataSource.set(o),this.onDataUpdate()}}},{key:"setSymbols",value:function(e){var i=this;if(e){var o=e.map(function(a){return i.symbolToMapSymbol.convert(a)});this.mapSymbolsDataSource.set(o)}}},{key:"getNodes",value:function(){return this.mapNodesDataSource.getItems()}},{key:"getLinks",value:function(){return this.mapLinksDataSource.getItems()}},{key:"getDrawings",value:function(){return this.mapDrawingsDataSource.getItems()}},{key:"getSymbols",value:function(){return this.mapSymbolsDataSource.getItems()}},{key:"onDataUpdate",value:function(){this.layersManager.clear(),this.layersManager.setNodes(this.getNodes()),console.log(this.getLinks()),this.layersManager.setLinks(this.getLinks()),this.layersManager.setDrawings(this.getDrawings())}},{key:"assignDataToLinks",value:function(){var e={};this.getNodes().forEach(function(i){e[i.id]=i}),this.getLinks().forEach(function(i){var o=i.nodes[0].nodeId,a=i.nodes[1].nodeId;o in e&&(i.source=e[o]),a in e&&(i.target=e[a]),i.source&&i.target&&(i.x=i.source.x+.5*(i.target.x-i.source.x),i.y=i.source.y+.5*(i.target.y-i.source.y))}),this.multiLinkCalculator.assignDataToLinks(this.getLinks())}}]),n}();Up.\u0275fac=function(r){return new(r||Up)(t.LFG(Am),t.LFG(Om),t.LFG(Im),t.LFG(Pm),t.LFG(Gg),t.LFG(zg),t.LFG(Zm),t.LFG(hb),t.LFG(Nm),t.LFG(Fp))},Up.\u0275prov=t.Yz7({token:Up,factory:Up.\u0275fac});var pF=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.x=r,this.y=e}),mse=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.width=r,this.height=e}),g4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.x=r,this.y=e,this.k=i}),Ws=function(){function n(){(0,H.Z)(this,n),this.centerZeroZeroPoint=!0,this.size=new mse(0,0),this.transformation=new g4e(0,0,1)}return(0,B.Z)(n,[{key:"getZeroZeroTransformationPoint",value:function(){return this.centerZeroZeroPoint?new pF(this.size.width/2,this.size.height/2):new pF(0,0)}}]),n}();Ws.\u0275fac=function(r){return new(r||Ws)},Ws.\u0275prov=t.Yz7({token:Ws,factory:Ws.\u0275fac});var Hp=function(){function n(){(0,H.Z)(this,n),this.changesDetected=new t.vpe,this.hasBeenDrawn=!1}return(0,B.Z)(n,[{key:"detectChanges",value:function(){console.log("from map change detector"),this.changesDetected.emit(!0)}}]),n}();Hp.\u0275fac=function(r){return new(r||Hp)},Hp.\u0275prov=t.Yz7({token:Hp,factory:Hp.\u0275fac});var Wg=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getOptimalSize",value:function(e,i){var o=document.documentElement.clientWidth,a=document.documentElement.clientHeight;return e>o&&(o=e),i>a&&(a=i),new mse(o,a)}}]),n}();Wg.\u0275fac=function(r){return new(r||Wg)},Wg.\u0275prov=t.Yz7({token:Wg,factory:Wg.\u0275fac});var pf=(0,B.Z)(function n(){(0,H.Z)(this,n),this.isReadOnly=!1});pf.\u0275fac=function(r){return new(r||pf)},pf.\u0275prov=t.Yz7({token:pf,factory:pf.\u0275fac});var sW=(0,B.Z)(function n(){(0,H.Z)(this,n)}),v4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(sW),y4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(sW),b4e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).datum=i,o}return(0,B.Z)(e)}(sW),hF=function(){function n(){(0,H.Z)(this,n),this.start=new t.vpe,this.drag=new t.vpe,this.end=new t.vpe}return(0,B.Z)(n,[{key:"call",value:function(e){e.call(this.behaviour())}},{key:"behaviour",value:function(){var i,o,a,e=this;return fg().on("start",function(s){o=Zn.sourceEvent.clientX,a=Zn.sourceEvent.clientY,(i=new v4e(s)).dx=Zn.dx,i.dy=Zn.dy,i.x=Zn.x,i.y=Zn.y,e.start.emit(i)}).on("drag",function(s){var l=new y4e(s);l.dx=Zn.sourceEvent.clientX-o,l.dy=Zn.sourceEvent.clientY-a,o=Zn.sourceEvent.clientX,a=Zn.sourceEvent.clientY,e.drag.emit(l)}).on("end",function(s){var l=new b4e(s);l.dx=Zn.x-i.x,l.dy=Zn.y-i.y,e.end.emit(l)})}}]),n}(),C4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.datum=r,this.dx=e,this.dy=i}),Wk=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(C4e),w4e=(0,B.Z)(function n(r,e,i,o,a){(0,H.Z)(this,n),this.datum=r,this.x=e,this.y=i,this.width=o,this.height=a}),k4e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.x=r,this.y=e}),T4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.datum=r,this.x=e,this.y=i}),M4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.savedText=r,this.x=e,this.y=i}),S4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.textDrawingId=r,this.editedText=e,this.textElement=i}),E4e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.event=r,this.drawing=e}),Vk=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.event=r,this.link=e}),x4e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.event=r,this.interfaceLabel=e}),D4e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.event=r,this.label=e}),Pl=function(){function n(){(0,H.Z)(this,n),this.selection={},this.selected=new t.vpe,this.unselected=new t.vpe}return(0,B.Z)(n,[{key:"setSelected",value:function(e){var i=this,o=this.convertToKeyDict(e),a=Object.keys(o).filter(function(l){return!i.isSelectedByKey(l)}).map(function(l){return o[l]}),s=Object.keys(this.selection).filter(function(l){return!(l in o)}).map(function(l){return i.selection[l]});this.selection=o,a.length>0&&this.selected.emit(a),s.length>0&&this.unselected.emit(s)}},{key:"getSelected",value:function(){var e=this;return Object.keys(this.selection).map(function(i){return e.selection[i]})}},{key:"isSelected",value:function(e){var i=this.getKey(e);return this.isSelectedByKey(i)}},{key:"isSelectedByKey",value:function(e){return e in this.selection}},{key:"getKey",value:function(e){var i=e.constructor.name;return"".concat(i,"-").concat(e.id)}},{key:"convertToKeyDict",value:function(e){var i=this,o={};return e.forEach(function(a){o[i.getKey(a)]=a}),o}}]),n}();Pl.\u0275fac=function(r){return new(r||Pl)},Pl.\u0275prov=t.Yz7({token:Pl,factory:Pl.\u0275fac});var hf=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new hF,this.enabled=!0}return(0,B.Z)(n,[{key:"setEnabled",value:function(e){this.enabled=e}},{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.link_node_position").data(function(g){return[[g.source,g.nodes[0]],[g.target,g.nodes[1]]]}),s=a.enter().append("g").classed("link_node_position",!0),l=a.merge(s);l.attr("transform",function(g){return"translate(".concat(g[0].x,", ").concat(g[0].y,")")});var u=l.selectAll("g.interface_label_container").data(function(g){return i.enabled?[g[1]]:[]}),d=u.enter().append("g").classed("interface_label_container",!0);d.append("rect").attr("class","interface_label_selection"),d.append("text").attr("class","interface_label noselect").attr("interface_label_id",function(g){return"".concat(g.id)});var h=u.merge(d).on("contextmenu",function(g,C){event.preventDefault(),o.onContextMenu.emit(new x4e(event,g))});h.select("text.interface_label").text(function(g){return g.label.text}).attr("style",function(g){var C=i.cssFixer.fix(g.label.style);return C=i.fontFixer.fixStyles(C)}).attr("x",function(g){return g.label.x}).attr("y",function(g){return g.label.y}).attr("transform",function(g){return"rotate(".concat(g.label.rotation,", ").concat(g.label.x,", ").concat(g.label.y,")")}),h.select("rect.interface_label_selection").attr("visibility",function(g){return i.selectionManager.isSelected(g)?"visible":"hidden"}).attr("stroke","black").attr("stroke-dasharray","3,3").attr("stroke-width","0.5").attr("fill","none").each(function(g){var C=vi(this),z=h.select('text[interface_label_id="'.concat(g.id,'"]')).node().getBBox();C.attr("width",z.width+4),C.attr("height",z.height+4),C.attr("x",z.x-2),C.attr("y",z.y-2),C.attr("transform","rotate(".concat(g.label.rotation,", ").concat(z.x-2,", ").concat(z.y-2,")"))}),u.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(h)}}]),n}();hf.SURROUNDING_TEXT_BORDER=5,hf.\u0275fac=function(r){return new(r||hf)(t.LFG(Mc),t.LFG(is),t.LFG(Pl),t.LFG(pf))},hf.\u0275prov=t.Yz7({token:hf,factory:hf.\u0275fac});var _se=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.x=r,this.y=e,this.width=i,this.height=o}),Vg=(0,B.Z)(function n(){(0,H.Z)(this,n),this.selected=new In.xQ});Vg.\u0275fac=function(r){return new(r||Vg)},Vg.\u0275prov=t.Yz7({token:Vg,factory:Vg.\u0275fac});var jp=function(){function n(r,e){(0,H.Z)(this,n),this.context=r,this.selectionEventSource=e,this.rectangleSelected=new In.xQ,this.contextMenuOpened=new t.vpe,this.enabled=!1}return(0,B.Z)(n,[{key:"disableContextMenu",value:function(){}},{key:"setEnabled",value:function(e){this.enabled=e,this.contextMenuOpened.emit(!0)}},{key:"activate",value:function(e){var i=this;e.on("mousedown",function(){if(2==Zn.button)return e.on("contextmenu",function(){Zn.preventDefault()}),void i.contextMenuOpened.emit(Zn);var o=vi(window),a=this.parentElement,s=i.transformation(Kd(a));i.startSelection(s),e.selectAll(n.SELECTABLE_CLASS).classed("selected",!1),o.on("mousemove.selection",function(){var l=i.transformation(Kd(a));i.moveSelection(s,l)}).on("mouseup.selection",function(){var l=i.transformation(Kd(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 _se(o,a,s,l))}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"transformation",value:function(e){var i=this.context.getZeroZeroTransformationPoint();return[e[0]-i.x-this.context.transformation.x,e[1]-i.y-this.context.transformation.y]}}]),n}();jp.SELECTABLE_CLASS=".selectable",jp.\u0275fac=function(r){return new(r||jp)(t.LFG(Ws),t.LFG(Vg))},jp.\u0275prov=t.Yz7({token:jp,factory:jp.\u0275fac});var Yg=function(){function n(r){(0,H.Z)(this,n),this.context=r,this.enabled=!1,this.needsDeactivate=!1,this.needsActivate=!1,this.zoom=Lne().scaleExtent([.5,8])}return(0,B.Z)(n,[{key:"setEnabled",value:function(e){this.enabled!=e&&(e?this.needsActivate=!0:this.needsDeactivate=!0),this.enabled=e}},{key:"draw",value:function(e,i){this.needsActivate&&(this.activate(e),this.needsActivate=!1),this.needsDeactivate&&(this.deactivate(e),this.needsDeactivate=!1)}},{key:"activate",value:function(e){var i=this;this.zoom.filter(function(){return"mousedown"===Zn.type}),this.zoom.on("zoom",function(){var s=e.select("g.canvas"),l=Zn;s.attr("transform",function(){i.context.transformation.x=l.transform.x,i.context.transformation.y=l.transform.y,i.context.transformation.k=l.transform.k;var u=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,d=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,h=i.context.transformation.k;return"translate(".concat(u,", ").concat(d,") scale(").concat(h,")")})}),e.call(this.zoom)}},{key:"deactivate",value:function(e){e.on("mousedown.zoom",null),this.zoom.on("zoom",null)}}]),n}();Yg.\u0275fac=function(r){return new(r||Yg)(t.LFG(Ws))},Yg.\u0275prov=t.Yz7({token:Yg,factory:Yg.\u0275fac});var A4e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.event=r,this.node=e}),gse=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(A4e),Gp=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.selectionManager=i,this.mapSettings=o,this.onContextMenu=new t.vpe,this.draggable=new hF}return(0,B.Z)(n,[{key:"redrawLabel",value:function(e,i){this.drawLabel(this.selectLabel(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.label_container").data(function(l){return[l.label]}),a=o.enter().append("g").attr("class","label_container").attr("label_id",function(l){return l.id}),s=o.merge(a).on("contextmenu",function(l,u){event.preventDefault(),i.onContextMenu.emit(new D4e(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=vi(this),h=s.select('text[label_id="'.concat(l.id,'"]')).node().getBBox();u.attr("width",h.width+4),u.attr("height",h.height+4),u.attr("x",h.x-2),u.attr("y",h.y-2),u.attr("transform","rotate(".concat(l.rotation,", ").concat(l.x,", ").concat(l.y,")"))})}},{key:"selectLabel",value:function(e,i){return e.selectAll('g.label_container[label_id="'.concat(i.id,'"]'))}}]),n}();Gp.NODE_LABEL_MARGIN=3,Gp.\u0275fac=function(r){return new(r||Gp)(t.LFG(Mc),t.LFG(is),t.LFG(Pl),t.LFG(pf))},Gp.\u0275prov=t.Yz7({token:Gp,factory:Gp.\u0275fac});var dd=(0,B.Z)(function n(){(0,H.Z)(this,n),this.dragged=new t.vpe,this.labelDragged=new t.vpe,this.clicked=new t.vpe});dd.\u0275fac=function(r){return new(r||dd)},dd.\u0275prov=t.Yz7({token:dd,factory:dd.\u0275fac});var ul=function(){function n(){(0,H.Z)(this,n),this.symbolScalingSubject=new In.xQ,this.isScrollDisabled=new In.xQ,this.isMapLocked=new In.xQ,this.isTopologySummaryVisible=!0,this.isLogConsoleVisible=!1,this.isLayerNumberVisible=!1,this.logConsoleSubject=new In.xQ,this.mapRenderedEmitter=new t.vpe,this.showInterfaceLabels=!0,this.integrateLinkLabelsToLinks=!0,this.openConsolesInWidget=!1,this.isLayerNumberVisible="true"===localStorage.getItem("layersVisibility"),localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks="true"===localStorage.getItem("integrateLinkLabelsToLinks")),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget="true"===localStorage.getItem("openConsolesInWidget"));localStorage.getItem("symbolScaling")?localStorage.getItem("symbolScaling"):localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme="true"===localStorage.getItem("openReadme"):localStorage.setItem("openReadme","false")}return(0,B.Z)(n,[{key:"getSymbolScaling",value:function(){return"true"===localStorage.getItem("symbolScaling")}},{key:"setSymbolScaling",value:function(e){e?localStorage.setItem("symbolScaling","true"):localStorage.setItem("symbolScaling","false"),this.symbolScalingSubject.next(e)}},{key:"changeMapLockValue",value:function(e){this.isMapLocked.next(e)}},{key:"setConsoleContextMenuAction",value:function(e){localStorage.setItem("consoleContextMenu",e)}},{key:"getConsoleContextMenuAction",value:function(){return localStorage.getItem("consoleContextMenu")}},{key:"toggleTopologySummary",value:function(e){this.isTopologySummaryVisible=e}},{key:"toggleLogConsole",value:function(e){this.isLogConsoleVisible=e}},{key:"toggleLayers",value:function(e){this.isLayerNumberVisible=e}},{key:"toggleShowInterfaceLabels",value:function(e){this.showInterfaceLabels=e}},{key:"toggleIntegrateInterfaceLabels",value:function(e){this.integrateLinkLabelsToLinks=e,localStorage.removeItem("integrateLinkLabelsToLinks"),e?localStorage.setItem("integrateLinkLabelsToLinks","true"):localStorage.setItem("integrateLinkLabelsToLinks","false")}},{key:"toggleOpenReadme",value:function(e){this.openReadme=e,localStorage.removeItem("openReadme"),e?localStorage.setItem("openReadme","true"):localStorage.setItem("openReadme","false")}},{key:"toggleOpenConsolesInWidget",value:function(e){this.openConsolesInWidget=e,localStorage.removeItem("openConsolesInWidget"),e?localStorage.setItem("openConsolesInWidget","true"):localStorage.setItem("openConsolesInWidget","false")}}]),n}();ul.\u0275fac=function(r){return new(r||ul)},ul.\u0275prov=t.Yz7({token:ul,factory:ul.\u0275fac,providedIn:"root"});var Kg=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.selectionManager=r,this.labelWidget=e,this.nodesEventSource=i,this.mapSettingsService=o,this.onContextMenu=new t.vpe,this.onContextConsoleMenu=new t.vpe,this.onNodeClicked=new t.vpe}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=this,a=e.selectAll("g.node_body").data(function(u){return[u]}),s=a.enter().append("g").attr("class","node_body");s.append("image");var l=a.merge(s).classed("selected",function(u){return i.selectionManager.isSelected(u)}).on("click",function(u){i.nodesEventSource.clicked.emit(new T4e(u,Zn.pageX,Zn.pageY))});l.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(u){return u.width/2-13}).attr("y",function(u){return u.height/2-13}).attr("fill","red"),l.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&l.append("text").attr("class","layer_label").text(function(u){return u.z}).attr("x",function(u){return u.z>=100?u.width/2-13:u.z>=10?u.width/2-9:u.width/2-5}).attr("y",function(u){return u.height/2+5}).attr("style",function(){var u=[];return u.push('font-family: "Noto Sans"'),u.push("font-size: 11pt"),u.push("font-weight: bold"),u.join("; ")}).attr("fill","#ffffff"),l.select("image").on("contextmenu",function(u,d){Zn.preventDefault(),o.onContextMenu.emit(new gse(Zn,u))}).on("dblclick",function(u,d){Zn.preventDefault(),o.onContextConsoleMenu.emit(new gse(Zn,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){vi(this).attr("class","over")}).on("mouseout",function(u){vi(this).attr("class","")}),l.attr("transform",function(u){return u.width?"translate(".concat(u.x,",").concat(u.y,")"):"translate(".concat(u.x-30,",").concat(u.y-30,")")}),this.labelWidget.draw(l)}}]),n}();Kg.\u0275fac=function(r){return new(r||Kg)(t.LFG(Pl),t.LFG(Gp),t.LFG(dd),t.LFG(ul))},Kg.\u0275prov=t.Yz7({token:Kg,factory:Kg.\u0275fac});var zp=function(){function n(r,e){(0,H.Z)(this,n),this.nodeWidget=r,this.mapSettings=e,this.draggable=new hF}return(0,B.Z)(n,[{key:"redrawNode",value:function(e,i){this.nodeWidget.draw(this.selectNode(e,i))}},{key:"draw",value:function(e){var i=e.selectAll("g.node").data(function(s){return s.nodes?s.nodes:[]},function(s){return s.id}),o=i.enter().append("g").attr("class","node").attr("node_id",function(s){return s.id}),a=i.merge(o);this.nodeWidget.draw(a),i.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(a)}},{key:"selectNode",value:function(e,i){return e.selectAll('g.node[node_id="'.concat(i.id,'"]'))}}]),n}();zp.NODE_LABEL_MARGIN=3,zp.\u0275fac=function(r){return new(r||zp)(t.LFG(Kg),t.LFG(pf))},zp.\u0275prov=t.Yz7({token:zp,factory:zp.\u0275fac});var O4e=(0,B.Z)(function n(){(0,H.Z)(this,n)}),qg=function(){function n(){(0,H.Z)(this,n),this.drawingLine=new O4e,this.drawing=!1,this.data={}}return(0,B.Z)(n,[{key:"start",value:function(e,i,o){var a=this;this.drawing=!0,this.data=o,this.drawingLine.start=new pF(e,i),this.drawingLine.end=new pF(e,i);this.selection.on("mousemove",function(u,d){var g=Kd(a.selection.select("g.canvas").node());a.drawingLine.end.x=g[0],a.drawingLine.end.y=g[1],a.draw(null,null)}),this.draw(null,null)}},{key:"isDrawing",value:function(){return this.drawing}},{key:"stop",value:function(){return this.drawing=!1,this.selection.on("mousemove",null),this.draw(null,null),this.data}},{key:"connect",value:function(e,i){this.selection=e}},{key:"draw",value:function(e,i){var o=this.selection.select("g.canvas");o.select("g.drawing-line-tool").node()||o.append("g").attr("class","drawing-line-tool");var a=[];this.drawing&&(a=[[[this.drawingLine.start.x,this.drawingLine.start.y],[this.drawingLine.end.x,this.drawingLine.end.y]]]);var s=yN(),u=this.selection.select("g.drawing-line-tool").selectAll("path").data(a),d=u.enter().append("path");u.merge(d).attr("d",s).attr("stroke","#000").attr("stroke-width","2"),u.exit().remove()}}]),n}();qg.\u0275fac=function(r){return new(r||qg)},qg.\u0275prov=t.Yz7({token:qg,factory:qg.\u0275fac});var vse=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.x=r,this.y=e,this.status=i,this.port=o}),mb=function(){function n(r){(0,H.Z)(this,n),this._mapSettingsService=r,this.mapSettingsService=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=[];e.each(function(a){o.push(a)}),o.forEach(function(a){o.forEach(function(s){s.nodes[0].linkId!==a.nodes[0].linkId&&(a.nodes[0].nodeId===s.nodes[0].nodeId&&a.nodes[1].nodeId===s.nodes[1].nodeId||a.nodes[0].nodeId===s.nodes[1].nodeId&&a.nodes[1].nodeId===s.nodes[0].nodeId||a.nodes[1].nodeId===s.nodes[0].nodeId&&a.nodes[0].nodeId===s.nodes[1].nodeId)&&(a.isMultiplied=!0)})}),e.each(function(a){var s=vi(this),l=s.select("path"),u=[];if(l.node()){var d=l.node().getPointAtLength(80),h=l.node().getPointAtLength(l.node().getTotalLength()-80);if(l.node().getTotalLength()>220&&a.source&&a.target){var g=a.nodes.find(function(It){return It.nodeId===a.source.id}).label.text,C=a.nodes.find(function(It){return It.nodeId===a.target.id}).label.text;u=[new vse(d.x,d.y,!a.capturing&&a.suspend||a.capturing&&a.suspend?"suspended":a.source.status,g),new vse(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 Z=s.selectAll("rect.status_started").data(u.filter(function(It){return"started"===It.status})),z=Z.enter().append("rect");Z.merge(z).attr("class","status_started").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#2ecc71").attr("stroke-width",3),Z.exit().remove();var q=s.selectAll("text.status_started_label").data(u.filter(function(It){return"started"===It.status})),re=q.enter().append("text");q.merge(re).attr("class","status_started_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),q.exit().remove();var ae=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Se=ae.enter().append("rect");ae.merge(Se).attr("class","status_stopped").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","red").attr("stroke-width",3),ae.exit().remove();var Ce=s.selectAll("text.status_stopped_label").data(u.filter(function(It){return"stopped"===It.status})),Ee=Ce.enter().append("text");Ce.merge(Ee).attr("class","status_stopped_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),Ce.exit().remove();var Ve=s.selectAll("rect.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),ut=Ve.enter().append("rect");Ve.merge(ut).attr("class","status_suspended").attr("width",function(It){return 8*It.port.length+10}).attr("height",20).attr("x",function(It){return It.x-30}).attr("y",function(It){return It.y-10}).attr("rx",8).attr("ry",8).style("fill","white").attr("stroke","#FFFF00").attr("stroke-width",3),Ve.exit().remove();var Ae=s.selectAll("text.status_suspended_label").data(u.filter(function(It){return"suspended"===It.status})),ot=Ae.enter().append("text");Ae.merge(ot).attr("class","status_suspended_label").text(function(It){return It.port}).attr("x",function(It){return It.x-25}).attr("y",function(It){return It.y+5}).attr("fill","black"),Ae.exit().remove()}else{var ht=s.selectAll("circle.status_started").data(u.filter(function(It){return"started"===It.status})),bt=ht.enter().append("circle");ht.merge(bt).attr("class","status_started").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("text",function(It){return It.port}).attr("fill","#2ecc71"),ht.exit().remove();var Xe=s.selectAll("rect.status_stopped").data(u.filter(function(It){return"stopped"===It.status})),Pe=Xe.enter().append("rect");Xe.merge(Pe).attr("class","status_stopped").attr("x",function(It){return It.x-5}).attr("y",function(It){return It.y-5}).attr("width",10).attr("height",10).attr("fill","red"),Xe.exit().remove();var Nt=s.selectAll("circle.status_suspended").data(u.filter(function(It){return"suspended"===It.status})),Gt=Nt.enter().append("circle");Nt.merge(Gt).attr("class","status_suspended").attr("cx",function(It){return It.x}).attr("cy",function(It){return It.y}).attr("r",6).attr("fill","#FFFF00"),Nt.exit().remove()}})}}]),n}();mb.\u0275fac=function(r){return new(r||mb)(t.LFG(ul))},mb.\u0275prov=t.Yz7({token:mb,factory:mb.\u0275fac});var yse=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,null,[{key:"getLinkStyle",value:function(e){return 1==e.type?"10, 10":2==e.type?"".concat(e.width,", ").concat(e.width):3==e.type?"20, 10, ".concat(e.width,", ").concat(e.width,", ").concat(e.width,", 10"):"0, 0"}}]),n}(),I4e=(0,B.Z)(function n(r,e,i){(0,H.Z)(this,n),this.source=r,this.target=e,this.style=i}),Jg=function(){function n(){(0,H.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultEthernetLinkStyle={color:"#000",width:2,type:0}}return(0,B.Z)(n,[{key:"linktoEthernetLink",value:function(e){return new I4e([e.source.x+e.source.width/2,e.source.y+e.source.height/2],[e.target.x+e.target.width/2,e.target.y+e.target.height/2],e.link_style.color?e.link_style:this.defaultEthernetLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.ethernet_link").data(function(l){return"ethernet"===l.linkType?[i.linktoEthernetLink(l)]:[]}),a=o.enter().append("path").attr("class","ethernet_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Vk(d,u))}).attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return yse.getLinkStyle(l.style)});o.merge(a).attr("d",function(l){var u=Jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();Jg.\u0275fac=function(r){return new(r||Jg)},Jg.\u0275prov=t.Yz7({token:Jg,factory:Jg.\u0275fac});var P4e=(0,B.Z)(function n(r,e,i,o,a){(0,H.Z)(this,n),this.source=r,this.source_angle=e,this.target_angle=i,this.target=o,this.style=a}),Qg=function(){function n(){(0,H.Z)(this,n),this.onContextMenu=new t.vpe,this.defaultSerialLinkStyle={color:"#B22222",width:2,type:0}}return(0,B.Z)(n,[{key:"linkToSerialLink",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return new P4e([i.x,i.y],h,g,[o.x,o.y],e.link_style.color?e.link_style:this.defaultSerialLinkStyle)}},{key:"draw",value:function(e){var i=this,o=e.selectAll("path.serial_link").data(function(l){return"serial"===l.linkType?[i.linkToSerialLink(l)]:[]}),a=o.enter().append("path").attr("class","serial_link").on("contextmenu",function(l){var u=l,d=event;i.onContextMenu.emit(new Vk(d,u))});a.attr("stroke",function(l){return l.style.color}).attr("stroke-width",function(l){return l.style.width}).attr("stroke-dasharray",function(l){return yse.getLinkStyle(l.style)}),o.merge(a).attr("d",function(l){var u=Jd();return u.moveTo(l.source[0],l.source[1]),u.lineTo(l.source_angle[0],l.source_angle[1]),u.lineTo(l.target_angle[0],l.target_angle[1]),u.lineTo(l.target[0],l.target[1]),u.toString()})}}]),n}();Qg.\u0275fac=function(r){return new(r||Qg)},Qg.\u0275prov=t.Yz7({token:Qg,factory:Qg.\u0275fac});var Xg=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.multiLinkCalculatorHelper=r,this.interfaceLabelWidget=e,this.interfaceStatusWidget=i,this.selectionManager=o,this.ethernetLinkWidget=a,this.serialLinkWidget=s,this.onContextMenu=new t.vpe}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","link_body"),s=o.merge(a).attr("transform",function(l){var u=i.multiLinkCalculatorHelper.linkTranslation(l.distance,l.source,l.target);return"translate (".concat(u.dx,", ").concat(u.dy,")")});o.select(".capture-icon").remove(),o.filter(function(l){return l.capturing&&!l.suspend&&!(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new Vk(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=Zn;i.onContextMenu.emit(new Vk(u,l))}).attr("class","filter-capture-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/filter-capture.svg"),o.select(".filter-icon").remove(),o.filter(function(l){return!l.capturing&&!l.suspend&&(l.filters.bpf||l.filters.corrupt||l.filters.delay||l.filters.frequency_drop||l.filters.packet_loss)}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new Vk(u,l))}).attr("class","filter-icon").attr("width","48px").attr("height","48px").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("width","48px").attr("height","48px").attr("xlink:href","assets/resources/images/filter.svg"),o.select(".pause-icon").remove(),o.filter(function(l){return l.suspend}).append("g").on("contextmenu",function(l){var u=Zn;i.onContextMenu.emit(new Vk(u,l))}).attr("class","pause-icon").attr("transform",function(l){return"translate (".concat((l.source.x+l.target.x)/2+24,", ").concat((l.source.y+l.target.y)/2+24,") scale(0.5)")}).attr("viewBox","0 0 20 20").append("image").attr("xlink:href","assets/resources/images/pause.svg"),this.serialLinkWidget.draw(s),this.ethernetLinkWidget.draw(s),s.select("path").classed("selected",function(l){return i.selectionManager.isSelected(l)}),this.interfaceLabelWidget.draw(s),this.interfaceStatusWidget.draw(s)}}]),n}();Xg.\u0275fac=function(r){return new(r||Xg)(t.LFG(Fp),t.LFG(hf),t.LFG(mb),t.LFG(Pl),t.LFG(Jg),t.LFG(Qg))},Xg.\u0275prov=t.Yz7({token:Xg,factory:Xg.\u0275fac});var Bm=function(){function n(r,e){(0,H.Z)(this,n),this.multiLinkCalculatorHelper=r,this.linkWidget=e}return(0,B.Z)(n,[{key:"redrawLink",value:function(e,i){console.log("redraw called"),this.linkWidget.draw(this.selectLink(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.link").data(function(l){if(l.links){var u=l.links.filter(function(d){return d.target&&d.source});return i.multiLinkCalculatorHelper.assignDataToLinks(u),u}return[]},function(l){return l.id}),a=o.enter().append("g").attr("class","link").attr("link_id",function(l){return l.id}).attr("map-source",function(l){return l.source.id}).attr("map-target",function(l){return l.target.id}),s=o.merge(a);this.linkWidget.draw(s),o.exit().remove()}},{key:"selectLink",value:function(e,i){return e.selectAll('g.link[link_id="'.concat(i.id,'"]'))}}]),n}();Bm.\u0275fac=function(r){return new(r||Bm)(t.LFG(Fp),t.LFG(Xg))},Bm.\u0275prov=t.Yz7({token:Bm,factory:Bm.\u0275fac});var R4e=(0,B.Z)(function n(){(0,H.Z)(this,n)}),ea=(0,B.Z)(function n(){(0,H.Z)(this,n)}),L4e=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new ea,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("cx");d&&(i.cx=parseInt(d.value,10));var h=e.attributes.getNamedItem("cy");h&&(i.cy=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,10));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,10)),i}}]),n}(),mF=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Z4e=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new mF,o=e.attributes.getNamedItem("xlink:href");o&&(i.data=o.value);var a=e.attributes.getNamedItem("width");a&&(i.width=parseInt(a.value,10));var s=e.attributes.getNamedItem("height");return s&&(i.height=parseInt(s.value,10)),i}}]),n}(),_b=(0,B.Z)(function n(){(0,H.Z)(this,n)}),N4e=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new _b,o=e.attributes.getNamedItem("stroke");o&&(i.stroke=o.value);var a=e.attributes.getNamedItem("stroke-width");o&&(i.stroke_width=parseInt(a.value,10));var s=e.attributes.getNamedItem("stroke-dasharray");s&&(i.stroke_dasharray=s.value);var l=e.attributes.getNamedItem("x1");l&&(i.x1=parseInt(l.value,10));var u=e.attributes.getNamedItem("x2");u&&(i.x2=parseInt(u.value,10));var d=e.attributes.getNamedItem("y1");d&&(i.y1=parseInt(d.value,10));var h=e.attributes.getNamedItem("y2");return h&&(i.y2=parseInt(h.value,10)),i}}]),n}(),mf=(0,B.Z)(function n(){(0,H.Z)(this,n)}),B4e=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new mf,o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");o&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("stroke");s&&(i.stroke=s.value);var l=e.attributes.getNamedItem("stroke-width");s&&(i.stroke_width=parseInt(l.value,10));var u=e.attributes.getNamedItem("stroke-dasharray");u&&(i.stroke_dasharray=u.value);var d=e.attributes.getNamedItem("width");d&&(i.width=parseInt(d.value,10));var h=e.attributes.getNamedItem("height");h&&(i.height=parseInt(h.value,10));var g=e.attributes.getNamedItem("rx");g&&(i.rx=parseInt(g.value,0));var C=e.attributes.getNamedItem("ry");return C&&(i.ry=parseInt(C.value,0)),i}}]),n}(),gb=(0,B.Z)(function n(){(0,H.Z)(this,n)}),F4e=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new gb;i.text=e.textContent;var o=e.attributes.getNamedItem("fill");o&&(i.fill=o.value);var a=e.attributes.getNamedItem("fill-opacity");a&&(i.fill_opacity=parseFloat(a.value));var s=e.attributes.getNamedItem("font-family");s&&(i.font_family=s.value);var l=e.attributes.getNamedItem("font-size");l&&(i.font_size=+l.value);var u=e.attributes.getNamedItem("font-weight");u&&(i.font_weight=u.value);var d=e.attributes.getNamedItem("text-decoration");return d&&(i.text_decoration=d.value),i}}]),n}(),Wp=function(){function n(){(0,H.Z)(this,n),this.parser=new DOMParser,this.elementParsers={text:new F4e,image:new Z4e,rect:new B4e,line:new N4e,ellipse:new L4e}}return(0,B.Z)(n,[{key:"supportedTags",value:function(){return Object.keys(this.elementParsers)}},{key:"convert",value:function(e){var o=this.parser.parseFromString(e,"text/xml").getElementsByTagName("svg");if(1!==o.length)throw new Error("Cannot locate svg element root in '".concat(e,"'"));var a=o[0],s=null,l=null;for(var u in a.children){var d=(l=a.children[u]).nodeName;if(d in this.elementParsers){s=this.elementParsers[d];break}}if(null===s)throw new Error("Cannot find parser for '".concat(e,"'"));var h=s.convert(l);return h.width=+a.getAttribute("width"),h.height=+a.getAttribute("height"),h}}]),n}();Wp.\u0275fac=function(r){return new(r||Wp)},Wp.\u0275prov=t.Yz7({token:Wp,factory:Wp.\u0275fac});var $g=function(){function n(r){(0,H.Z)(this,n),this.fontFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("text.text_element").data(function(h){return h.element&&h.element instanceof gb?[h.element]:[]}),a=o.enter().append("text").attr("class","text_element noselect"),s=o.merge(a);s.attr("style",function(h){var g=i.fontFixer.fix(h),C=[];return g.font_family&&C.push('font-family: "'.concat(h.font_family,'"')),g.font_size&&C.push("font-size: ".concat(h.font_size,"pt")),g.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,g){return 0===g?"0em":"1.4em"}),l.exit().remove(),s.attr("transform",function(){var h=vi(this).selectAll("tspan"),g=this.getBBox().height/h.size();return"translate(".concat(n.MARGIN,", ").concat(g-n.MARGIN,")")}),o.exit().remove()}}]),n}();$g.MARGIN=4,$g.\u0275fac=function(r){return new(r||$g)(t.LFG(is))},$g.\u0275prov=t.Yz7({token:$g,factory:$g.\u0275fac});var vb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=e.selectAll("image.image_element").data(function(s){return s.element&&s.element instanceof mF?[s.element]:[]}),o=i.enter().append("image").attr("class","image_element noselect");i.merge(o).attr("xlink:href",function(s){return s.data}).attr("width",function(s){return s.width}).attr("height",function(s){return s.height}),i.exit().remove()}}]),n}();vb.\u0275fac=function(r){return new(r||vb)},vb.\u0275prov=t.Yz7({token:vb,factory:vb.\u0275fac});var ju=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"fix",value:function(e){if(e||""==e)return e in n.MAPPING?n.MAPPING[e]:e}}]),n}();ju.MAPPING={"25, 25":"10, 2","5, 25":"4, 2","5, 25, 25":"12, 3, 5, 3","25, 25, 5, 25, 5":"12, 3, 5, 3, 5, 3"},ju.\u0275fac=function(r){return new(r||ju)},ju.\u0275prov=t.Yz7({token:ju,factory:ju.\u0275fac});var yb=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("rect.rect_element").data(function(l){return l.element&&l.element instanceof mf?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("rect").attr("class","rect_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("width",function(l){return l.width}).attr("height",function(l){return l.height}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();yb.\u0275fac=function(r){return new(r||yb)(t.LFG(ju))},yb.\u0275prov=t.Yz7({token:yb,factory:yb.\u0275fac});var bb=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("line.line_element").data(function(l){return l.element&&l.element instanceof _b?[l.element]:[]});o.enter().append("circle").attr("class","right"),o.enter().append("circle").attr("class","left");var a=o.enter().append("line").attr("class","line_element noselect");o.merge(a).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("x1",function(l){return l.x1}).attr("x2",function(l){return l.x2}).attr("y1",function(l){return l.y1}).attr("y2",function(l){return l.y2}),o.exit().remove()}}]),n}();bb.\u0275fac=function(r){return new(r||bb)(t.LFG(ju))},bb.\u0275prov=t.Yz7({token:bb,factory:bb.\u0275fac});var Cb=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("ellipse.ellipse_element").data(function(l){return l.element&&l.element instanceof ea?[l.element]:[]});o.enter().append("line").attr("class","top"),o.enter().append("line").attr("class","bottom"),o.enter().append("line").attr("class","right"),o.enter().append("line").attr("class","left");var a=o.enter().append("ellipse").attr("class","ellipse_element noselect");o.merge(a).attr("fill",function(l){return l.fill}).attr("fill-opacity",function(l){return l.fill_opacity}).attr("stroke",function(l){return l.stroke}).attr("stroke-width",function(l){return l.stroke_width}).attr("stroke-dasharray",function(l){return i.qtDasharrayFixer.fix(l.stroke_dasharray)}).attr("cx",function(l){return l.cx}).attr("cy",function(l){return l.cy}).attr("rx",function(l){return l.rx}).attr("ry",function(l){return l.ry}),o.exit().remove()}}]),n}();Cb.\u0275fac=function(r){return new(r||Cb)(t.LFG(ju))},Cb.\u0275prov=t.Yz7({token:Cb,factory:Cb.\u0275fac});var wb=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.textDrawingWidget=r,this.imageDrawingWidget=e,this.rectDrawingWidget=i,this.lineDrawingWidget=o,this.ellipseDrawingWidget=a,this.selectionManager=s,this.mapSettingsService=l,this.drawingWidgets=[],this.drawingWidgets=[this.textDrawingWidget,this.imageDrawingWidget,this.rectDrawingWidget,this.lineDrawingWidget,this.ellipseDrawingWidget]}return(0,B.Z)(n,[{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing_body").data(function(l){return[l]}),a=o.enter().append("g").attr("class","drawing_body"),s=o.merge(a).attr("transform",function(l){return"translate(".concat(l.x,",").concat(l.y,") rotate(").concat(l.rotation,")")});this.drawingWidgets.forEach(function(l){l.draw(s)}),s.select(".layer_label_wrapper").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof mf||l.element instanceof ea}).append("rect").attr("class","layer_label_wrapper").attr("width","26").attr("height","26").attr("x",function(l){return l.element?l.element.width/2-13:0}).attr("y",function(l){return l.element?l.element.height/2-13:0}).attr("fill","red"),s.select(".layer_label").remove(),this.mapSettingsService.isLayerNumberVisible&&s.filter(function(l){return l.element instanceof mf||l.element instanceof ea}).append("text").attr("class","layer_label").text(function(l){return l.z}).attr("x",function(l){return l.z>=100?l.element?l.element.width/2-13:0:l.z>=10?l.element?l.element.width/2-9:0:l.element.width/2-5}).attr("y",function(l){return l.element?l.element.height/2+5:0}).attr("style",function(){var l=[];return l.push('font-family: "Noto Sans"'),l.push("font-size: 11pt"),l.push("font-weight: bold"),l.join("; ")}).attr("fill","#ffffff"),s.select("line.top").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1","0").attr("y2","0").attr("draggable","true").attr("cursor","ns-resize"),s.select("line.bottom").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element instanceof ea?l.element.cx-l.element.width/10:"0"}).attr("x2",function(l){return l.element instanceof ea?l.element.cx+l.element.width/10:l.element.width}).attr("y1",function(l){return l.element.height}).attr("y2",function(l){return l.element.height}).attr("draggable","true").attr("cursor","ns-resize"),s.select("line.right").attr("stroke","transparent").attr("stroke-width","8px").attr("x1","0").attr("x2","0").attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("line.left").attr("stroke","transparent").attr("stroke-width","8px").attr("x1",function(l){return l.element.width}).attr("x2",function(l){return l.element.width}).attr("y1",function(l){return l.element instanceof ea?l.element.cy-l.element.height/10:"0"}).attr("y2",function(l){return l.element instanceof ea?l.element.cy+l.element.height/10:l.element.height}).attr("draggable","true").attr("cursor","ew-resize"),s.select("circle.left").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x1}).attr("cy",function(l){return l.element.y1}).attr("r",10).attr("cursor","move"),s.select("circle.right").attr("draggable","true").attr("fill","transparent").attr("stroke","transparent").attr("cx",function(l){return l.element.x2}).attr("cy",function(l){return l.element.y2}).attr("r",10).attr("cursor","move"),s.classed("drawing_selected",function(l){return i.selectionManager.isSelected(l)})}}]),n}();wb.\u0275fac=function(r){return new(r||wb)(t.LFG($g),t.LFG(vb),t.LFG(yb),t.LFG(bb),t.LFG(Cb),t.LFG(Pl),t.LFG(ul))},wb.\u0275prov=t.Yz7({token:wb,factory:wb.\u0275fac});var Vp=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.drawingWidget=r,this.svgToDrawingConverter=e,this.context=i,this.mapSettings=o,this.draggable=new hF,this.draggingEnabled=!1,this.resizingFinished=new t.vpe,this.onContextMenu=new t.vpe,this.svgToDrawingConverter=new Wp}return(0,B.Z)(n,[{key:"redrawDrawing",value:function(e,i){this.drawingWidget.draw(this.selectDrawing(e,i))}},{key:"draw",value:function(e){var i=this,o=e.selectAll("g.drawing").data(function(Ae){return Ae.drawings.forEach(function(ot){try{ot.element=i.svgToDrawingConverter.convert(ot.svg)}catch(ht){}}),Ae.drawings},function(Ae){return Ae.id}),a=o.enter().append("g").attr("class","drawing").attr("drawing_id",function(Ae){return Ae.id}).on("contextmenu",function(Ae){Zn.preventDefault(),i.onContextMenu.emit(new E4e(Zn,Ae))}),s=o.merge(a);this.drawingWidget.draw(s),o.exit().remove(),this.mapSettings.isReadOnly||this.draggable.call(s);var l,u,d,h,z,q,re,ae,g=!1,C=fg().on("start",function(Ae){document.body.style.cursor="ns-resize",d=Ae.y}).on("drag",function(Ae){var ot=Zn;g?(u=l-(ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+u<0?(g=!1,l=d,Ae.element.height=Math.abs(Ae.element.height+ot.dy)):(Ae.y=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+=u,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+u/2<0?1:Ae.element.cy+=u/2,Ae.element.ry=Ae.element.ry+u/2<0?1:Ae.element.ry+=u/2))):Ae.element.height+ot.dy<0?(g=!0,l=d,Ae.element.height=Math.abs(Ae.element.height+ot.dy)):(Ae.element.height+=ot.dy,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+ot.dy/2<0?1:Ae.element.cy+=ot.dy/2,Ae.element.ry=Ae.element.ry+ot.dy/2<0?1:Ae.element.ry+=ot.dy/2)),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Z=fg().on("start",function(Ae){l=Zn.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),h=l+Ae.element.height,document.body.style.cursor="ns-resize"}).on("drag",function(Ae){var ot=Zn;g?Ae.element.height+ot.dy<0?(g=!1,l=h,Ae.element.height=Math.abs(Ae.element.height+ot.dy)):(Ae.element.height+=ot.dy,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+ot.dy/2<0?1:Ae.element.cy+=ot.dy/2,Ae.element.ry=Ae.element.ry+ot.dy/2<0?1:Ae.element.ry+=ot.dy/2)):(u=l-(ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y)),l=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+u<0?(l=h,g=!0,Ae.element.height=Math.abs(Ae.element.height+ot.dy)):(Ae.y=ot.sourceEvent.pageY-(i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y),Ae.element.height+=u,Ae.element instanceof ea&&(Ae.element.cy=Ae.element.cy+u/2<0?1:Ae.element.cy+=u/2,Ae.element.ry=Ae.element.ry+u/2<0?1:Ae.element.ry+=u/2))),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Se=!1,Ce=fg().on("start",function(Ae){z=Zn.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),ae=z+Ae.element.width,document.body.style.cursor="ew-resize"}).on("drag",function(Ae){var ot=Zn;Se?Ae.element.width+ot.dx<0?(z=ae,Se=!1,Ae.element.width=Math.abs(Ae.element.width+ot.dx)):(Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+ot.dx/2<0?1:Ae.element.cx+=ot.dx/2,Ae.element.rx=Ae.element.rx+ot.dx/2<0?1:Ae.element.rx+=ot.dx/2),Ae.element.width=Ae.element.width+ot.dx<0?1:Ae.element.width+=ot.dx):(q=z-(ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+q<0?(z=ae,Se=!0,Ae.element.width=Math.abs(Ae.element.width+ot.dx)):(Ae.x=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+=q,Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+q/2<0?1:Ae.element.cx+=q/2,Ae.element.rx=Ae.element.rx+q/2<0?1:Ae.element.rx+=q/2))),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Ee=fg().on("start",function(Ae){document.body.style.cursor="ew-resize",re=Ae.x}).on("drag",function(Ae){var ot=Zn;Se?(q=z-(ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x)),z=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+q<0?(z=re,Se=!1,Ae.element.width=Math.abs(Ae.element.width+ot.dx)):(Ae.x=ot.sourceEvent.pageX-(i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x),Ae.element.width+=q,Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+q/2<0?1:Ae.element.cx+=q/2,Ae.element.rx=Ae.element.rx+q/2<0?1:Ae.element.rx+=q/2))):Ae.element.width+ot.dx<0?(z=re,Se=!0,Ae.element.width=Math.abs(Ae.element.width+ot.dx)):(Ae.element instanceof ea&&(Ae.element.cx=Ae.element.cx+ot.dx/2<0?1:Ae.element.cx+=ot.dx/2,Ae.element.rx=Ae.element.rx+ot.dx/2<0?1:Ae.element.rx+=ot.dx/2),Ae.element.width=Ae.element.width+ot.dx<0?1:Ae.element.width+=ot.dx),i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),Ve=fg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ae){var ot=Zn;Ae.element.width+=ot.dx,Ae.element.height+=ot.dy,Ae.element.x2+=ot.dx,Ae.element.y2+=ot.dy,i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))}),ut=fg().on("start",function(){document.body.style.cursor="move"}).on("drag",function(Ae){var ot=Zn;Ae.element.width+=ot.dx,Ae.element.height+=ot.dy,Ae.element.x1+=ot.dx,Ae.element.y1+=ot.dy,i.redrawDrawing(e,Ae)}).on("end",function(Ae){document.body.style.cursor="initial",i.resizingFinished.emit(i.createResizingEvent(Ae))});s.select("line.bottom").call(C),s.select("line.top").call(Z),s.select("line.right").call(Ce),s.select("line.left").call(Ee),s.select("circle.right").call(Ve),s.select("circle.left").call(ut)}},{key:"createResizingEvent",value:function(e){var i=new R4e;return i.x=e.x,i.y=e.y,i.width=e.element.width,i.height=e.element.height,i.datum=e,i}},{key:"selectDrawing",value:function(e,i){return e.selectAll('g.drawing[drawing_id="'.concat(i.id,'"]'))}}]),n}();Vp.\u0275fac=function(r){return new(r||Vp)(t.LFG(wb),t.LFG(Wp),t.LFG(Ws),t.LFG(pf))},Vp.\u0275prov=t.Yz7({token:Vp,factory:Vp.\u0275fac});var kb=function(){function n(r,e,i){(0,H.Z)(this,n),this.linksWidget=r,this.nodesWidget=e,this.drawingsWidget=i}return(0,B.Z)(n,[{key:"draw",value:function(e,i){var o=e.selectAll("g.layer").data(i,function(h){return h.index.toString()}),a=o.enter().append("g").attr("class","layer");a.append("g").attr("class","links"),a.append("g").attr("class","nodes"),a.append("g").attr("class","drawings");var s=o.merge(a);s.attr("data-index",function(h){return h.index});var l=s.select("g.links"),u=s.select("g.nodes"),d=s.select("g.drawings");o.exit().remove(),this.linksWidget.draw(l),this.nodesWidget.draw(u),this.drawingsWidget.draw(d)}}]),n}();kb.\u0275fac=function(r){return new(r||kb)(t.LFG(Bm),t.LFG(zp),t.LFG(Vp))},kb.\u0275prov=t.Yz7({token:kb,factory:kb.\u0275fac});var ev=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.nodesWidget=r,this.drawingLineTool=e,this.selectionTool=i,this.movingTool=o,this.layersWidget=a,this.layersManager=s}return(0,B.Z)(n,[{key:"getNodesWidget",value:function(){return this.nodesWidget}},{key:"getDrawingLineTool",value:function(){return this.drawingLineTool}},{key:"getSelectionTool",value:function(){return this.selectionTool}},{key:"connect",value:function(e,i){this.drawingLineTool.connect(e,i)}},{key:"draw",value:function(e,i){e.attr("width",i.size.width).attr("height",i.size.height);var o=e.selectAll("g.canvas").data([i]),a=o.enter().append("g").attr("class","canvas");o.merge(a).attr("transform",function(s){var l=s.getZeroZeroTransformationPoint().x+s.transformation.x,u=s.getZeroZeroTransformationPoint().y+s.transformation.y,d=s.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")}),this.layersWidget.draw(o,this.layersManager.getLayersList()),this.drawingLineTool.draw(e,i),this.selectionTool.draw(e,i),this.movingTool.draw(e,i)}},{key:"disconnect",value:function(e){e.empty&&!e.empty()&&e.selectAll("*").remove()}}]),n}();ev.\u0275fac=function(r){return new(r||ev)(t.LFG(zp),t.LFG(qg),t.LFG(jp),t.LFG(Yg),t.LFG(kb),t.LFG(Nm))},ev.\u0275prov=t.Yz7({token:ev,factory:ev.\u0275fac});var Yp=function(){function n(){(0,H.Z)(this,n),this.isSelectionToolActivated=new In.xQ,this.isMovingToolActivated=new In.xQ,this.isTextEditingToolActivated=new In.xQ,this.isTextAddingToolActivated=new In.xQ,this.isDrawLinkToolActivated=new In.xQ}return(0,B.Z)(n,[{key:"selectionToolActivation",value:function(e){this.isSelectionToolActivated.next(e)}},{key:"movingToolActivation",value:function(e){this.isMovingToolActivated.next(e)}},{key:"textEditingToolActivation",value:function(e){this.isTextEditingToolActivated.next(e)}},{key:"textAddingToolActivation",value:function(e){this.isTextAddingToolActivated.next(e)}},{key:"drawLinkToolActivation",value:function(e){this.isDrawLinkToolActivated.next(e)}}]),n}();Yp.\u0275fac=function(r){return new(r||Yp)},Yp.\u0275prov=t.Yz7({token:Yp,factory:Yp.\u0275fac});var _f=function(){function n(r){(0,H.Z)(this,n),this.context=r,this.scaleChangeEmitter=new t.vpe,this.currentScale=1}return(0,B.Z)(n,[{key:"getScale",value:function(){return this.currentScale}},{key:"setScale",value:function(e){this.currentScale=e,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}},{key:"resetToDefault",value:function(){this.currentScale=1,this.context.transformation.k=this.currentScale,this.scaleChangeEmitter.emit(this.currentScale)}}]),n}();_f.\u0275fac=function(r){return new(r||_f)(t.LFG(Ws))},_f.\u0275prov=t.Yz7({token:_f,factory:_f.\u0275fac});var Rl=(0,B.Z)(function n(){(0,H.Z)(this,n),this.dragged=new t.vpe,this.resized=new t.vpe,this.selected=new t.vpe,this.pointToAddSelected=new t.vpe,this.saved=new t.vpe,this.textAdded=new t.vpe,this.textEdited=new t.vpe,this.textSaved=new t.vpe});Rl.\u0275fac=function(r){return new(r||Rl)},Rl.\u0275prov=t.Yz7({token:Rl,factory:Rl.\u0275fac});var sA=function(){function n(r,e){(0,H.Z)(this,n),this.drawingsEventSource=r,this.context=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingSelected=this.drawingsEventSource.selected.subscribe(function(i){""===i?e.deactivate():e.activate()})}},{key:"activate",value:function(){var e=this;this.deactivate(),this.mapListener=function(a){var s=(a.pageX-(e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x))/e.context.transformation.k,l=(a.pageY-(e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y))/e.context.transformation.k;e.drawingsEventSource.pointToAddSelected.emit(new k4e(s,l)),e.deactivate()},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivate",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"ngOnDestroy",value:function(){this.drawingSelected.unsubscribe()}}]),n}();sA.\u0275fac=function(r){return new(r||sA)(t.Y36(Rl),t.Y36(Ws))},sA.\u0275cmp=t.Xpm({type:sA,selectors:[["app-drawing-adding"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var lA=function(){function n(r,e){(0,H.Z)(this,n),this.drawingsWidget=r,this.drawingsEventSource=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.resizingFinished=this.drawingsWidget.resizingFinished.subscribe(function(i){e.drawingsEventSource.resized.emit(new w4e(i.datum,i.x,i.y,i.width,i.height))})}},{key:"ngOnDestroy",value:function(){this.resizingFinished.unsubscribe()}}]),n}();lA.\u0275fac=function(r){return new(r||lA)(t.Y36(Vp),t.Y36(Rl))},lA.\u0275cmp=t.Xpm({type:lA,selectors:[["app-drawing-resizing"]],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var cl=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"createLink",value:function(e,i,o,a,s,l,u,d,h){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links"),{nodes:[{node_id:i.node_id,port_number:o.port_number,adapter_number:o.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:o.short_name,x:l,y:u}},{node_id:a.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:0,style:"font-size: 10; font-style: Verdana",text:s.short_name,x:d,y:h}}]})}},{key:"getLink",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/links/").concat(o))}},{key:"deleteLink",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id))}},{key:"updateLink",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"updateLinkStyle",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),i)}},{key:"getAvailableFilters",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/available_filters"))}},{key:"updateNodes",value:function(e,i,o){var a=o.map(function(s){return{node_id:s.node_id,port_number:s.port_number,adapter_number:s.adapter_number,label:{rotation:s.label.rotation,style:s.label.style,text:s.label.text,x:s.label.x,y:s.label.y}}});return this.httpController.put(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id),{nodes:a})}},{key:"startCaptureOnLink",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/start"),o)}},{key:"stopCaptureOnLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stop"),{})}},{key:"resetLink",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/reset"),{})}},{key:"streamPcap",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/links/").concat(i.link_id,"/capture/stream"))}}]),n}();cl.\u0275fac=function(r){return new(r||cl)(t.LFG(mo.zw))},cl.\u0275prov=t.Yz7({token:cl,factory:cl.\u0275fac});var Fm=m(6215),Ya=m(5366),H4e=["temporaryTextElement"],uA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,H.Z)(this,n),this.drawingsEventSource=r,this.toolsService=e,this.context=i,this.renderer=o,this.mapScaleService=a,this.linkService=s,this.linksDataSource=l,this.nodesDataSource=u,this.selectionManager=d,this.fontFixer=h,this.ngZone=g,this.leftPosition="0px",this.topPosition="0px",this.innerText="",this.addingFinished=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAddingSubscription=this.toolsService.isTextAddingToolActivated.subscribe(function(i){i?e.activateTextAdding():e.deactivateTextAdding()}),this.ngZone.runOutsideAngular(this.activateTextEditingForDrawings.bind(this)),this.ngZone.runOutsideAngular(this.activateTextEditingForNodeLabels.bind(this))}},{key:"activateTextAdding",value:function(){var e=this;this.deactivateTextAdding(),this.mapListener=function(a){e.leftPosition=a.pageX.toString()+"px",e.topPosition=a.pageY.toString()+"px",e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","initial"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"transform","scale(".concat(e.mapScaleService.getScale(),")")),e.temporaryTextElement.nativeElement.focus(),document.documentElement.style.cursor="default";e.textListener=function(){e.drawingsEventSource.textAdded.emit(new M4e(e.temporaryTextElement.nativeElement.innerText.replace(/\n$/,""),a.pageX,a.pageY)),e.deactivateTextAdding(),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener)},this.svg.addEventListener("click",this.mapListener)}},{key:"deactivateTextAdding",value:function(){this.svg.removeEventListener("click",this.mapListener)}},{key:"activateTextEditingForNodeLabels",value:function(){var e=this,i=vi(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,vi(s[a]).attr("visibility","hidden"),vi(s[a]).classed("editingMode",!0),e.editedNode=e.nodesDataSource.get(o.nodeId),e.editedLink=o;var l=(o.label.originalX+e.editedNode.x-1)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=(o.label.originalY+e.editedNode.y+4)*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=l.toString()+"px",e.topPosition=u.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.label.text;var g,d=[],h=(0,xn.Z)(o.label.style.split(";"));try{for(h.s();!(g=h.n()).done;){var C=g.value;d.push({property:C.split(": ")[0],value:C.split(": ")[1]})}}catch(q){h.e(q)}finally{h.f()}var Z={font_family:d.find(function(q){return"font-family"===q.property})?d.find(function(q){return"font-family"===q.property}).value:"TypeWriter",font_size:d.find(function(q){return"font-size"===q.property})?Number(d.find(function(q){return"font-size"===q.property}).value):10,font_weight:d.find(function(q){return"font-weight"===q.property})?d.find(function(q){return"font-weight"===q.property}).value:"normal"};Z=e.fontFixer.fix(Z),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",d.find(function(q){return"fill"===q.property})?d.find(function(q){return"fill"===q.property}).value:"#000000"),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",Z.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(Z.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",Z.font_weight);e.textListener=function(){var re=e.temporaryTextElement.nativeElement.innerText,ae=e.linksDataSource.get(e.editedLink.linkId);ae.nodes.find(function(Se){return Se.node_id===e.editedNode.node_id}).label.text=re,e.linkService.updateLink(e.controller,ae).subscribe(function(Se){i.selectAll("text.editingMode").attr("visibility","visible").classed("editingMode",!1),e.innerText="",e.temporaryTextElement.nativeElement.innerText="",e.temporaryTextElement.nativeElement.removeEventListener("focusout",e.textListener),e.clearStyle(),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"display","none")})},e.temporaryTextElement.nativeElement.addEventListener("focusout",e.textListener),e.temporaryTextElement.nativeElement.focus()})}},{key:"activateTextEditingForDrawings",value:function(){var e=this,i=vi(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,vi(s[a]).attr("visibility","hidden"),vi(s[a]).classed("editingMode",!0),e.editingDrawingId=s[a].parentElement.parentElement.getAttribute("drawing_id");var l=s[a].parentElement.getAttribute("transform").split(/\(|\)/),u=Number(l[1].split(/,/)[0])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,d=Number(l[1].split(/,/)[1])*e.context.transformation.k+e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y;e.leftPosition=u.toString()+"px",e.topPosition=d.toString()+"px",e.temporaryTextElement.nativeElement.innerText=o.text,e.renderer.setStyle(e.temporaryTextElement.nativeElement,"color",o.fill),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-family",o.font_family),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-size","".concat(o.font_size,"pt")),e.renderer.setStyle(e.temporaryTextElement.nativeElement,"font-weight",o.font_weight);e.textListener=function(){var C=e.temporaryTextElement.nativeElement.innerText;e.drawingsEventSource.textEdited.emit(new S4e(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")}}]),n}();uA.\u0275fac=function(r){return new(r||uA)(t.Y36(Rl),t.Y36(Yp),t.Y36(Ws),t.Y36(t.Qsj),t.Y36(_f),t.Y36(cl),t.Y36(Fm.F),t.Y36(Ya.G),t.Y36(Pl),t.Y36(is),t.Y36(t.R0b))},uA.\u0275cmp=t.Xpm({type:uA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(H4e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.temporaryTextElement=i.first))},inputs:{svg:"svg",controller:"controller"},decls:3,vars:5,consts:[["id","temporaryElement","contenteditable","true",1,"temporaryElement"],["temporaryTextElement",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0,1),t._uU(2),t.qZA()),2&r&&(t.Udp("top",e.topPosition)("left",e.leftPosition),t.xp6(2),t.hij(" ",e.innerText,"\n"))},styles:[".temporaryElement[_ngcontent-%COMP%]{padding-left:4px;width:-moz-fit-content;width:fit-content;position:absolute;z-index:99;font-family:Noto Sans;font-size:11pt;font-weight:700;color:#000}"]});var Tb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"inRectangle",value:function(e,i,o){return e.x<=i&&i<e.x+e.width&&e.y<=o&&o<e.y+e.height}}]),n}();Tb.\u0275fac=function(r){return new(r||Tb)},Tb.\u0275prov=t.Yz7({token:Tb,factory:Tb.\u0275fac});var cA=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.selectionEventSource=r,this.graphDataManager=e,this.inRectangleHelper=i,this.selectionManager=o}return(0,B.Z)(n,[{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 Z=C.x+C.label.x,z=C.y+C.label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).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 Z=C.source.x+C.nodes[0].label.x,z=C.source.y+C.nodes[0].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.nodes[0]}),d=e.graphDataManager.getLinks().filter(function(C){if(void 0===C.target||2!=C.nodes.length||void 0===C.nodes[1].label)return!1;var Z=C.target.x+C.nodes[1].label.x,z=C.target.y+C.nodes[1].label.y;return e.inRectangleHelper.inRectangle(i,Z,z)}).map(function(C){return C.nodes[1]}),h=[].concat((0,pn.Z)(u),(0,pn.Z)(d)),g=[].concat((0,pn.Z)(o),(0,pn.Z)(a),(0,pn.Z)(s),(0,pn.Z)(l),(0,pn.Z)(h));e.selectionManager.setSelected(g)})}},{key:"ngOnDestroy",value:function(){this.onSelection.unsubscribe()}}]),n}();cA.\u0275fac=function(r){return new(r||cA)(t.Y36(Vg),t.Y36(Up),t.Y36(Tb),t.Y36(Pl))},cA.\u0275cmp=t.Xpm({type:cA,selectors:[["app-selection-control"]],decls:0,vars:0,template:function(r,e){}});var dA=function(){function n(r,e){(0,H.Z)(this,n),this.selectionManager=r,this.mapChangeDetectorRef=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.onSelected=this.selectionManager.selected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()}),this.onUnselected=this.selectionManager.unselected.subscribe(function(){e.mapChangeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.onSelected.unsubscribe(),this.onUnselected.unsubscribe()}}]),n}();dA.\u0275fac=function(r){return new(r||dA)(t.Y36(Pl),t.Y36(Hp))},dA.\u0275cmp=t.Xpm({type:dA,selectors:[["app-selection-select"]],decls:0,vars:0,template:function(r,e){}});var fd=(0,B.Z)(function n(){(0,H.Z)(this,n),this.created=new t.vpe,this.edited=new t.vpe,this.interfaceDragged=new t.vpe});fd.\u0275fac=function(r){return new(r||fd)},fd.\u0275prov=t.Yz7({token:fd,factory:fd.\u0275fac});var fA=function(){function n(r,e,i,o,a,s,l,u,d,h,g){(0,H.Z)(this,n),this.nodesWidget=r,this.drawingsWidget=e,this.linksWidget=i,this.labelWidget=o,this.interfaceWidget=a,this.selectionManager=s,this.nodesEventSource=l,this.drawingsEventSource=u,this.graphDataManager=d,this.linksEventSource=h,this.mapSettingsService=g,this.isMapLocked=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=vi(this.svg);this.mapSettingsSubscription=this.mapSettingsService.isMapLocked.subscribe(function(o){e.isMapLocked=o}),this.start=(0,ji.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 lb&&0===a.filter(function(s){return s instanceof lb&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Lm&&0===a.filter(function(s){return s instanceof Lm&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof Rk&&0===a.filter(function(s){return s instanceof Rk&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum]),o.datum instanceof aA&&0===a.filter(function(s){return s instanceof aA&&s.id===o.datum.id}).length&&e.selectionManager.setSelected([o.datum])}),this.drag=(0,ji.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 lb}),l=s.filter(function(q){return q.locked}),u=s.filter(function(q){return!q.locked});u.forEach(function(q){q.x+=o.dx,q.y+=o.dy,e.nodesWidget.redrawNode(i,q),e.graphDataManager.getLinks().filter(function(ae){return void 0!==ae.target&&ae.target.id===q.id||void 0!==ae.source&&ae.source.id===q.id}).forEach(function(ae){e.linksWidget.redrawLink(i,ae)})}),a.filter(function(q){return q instanceof Lm}).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 Rk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getNodes().filter(function(Se){return Se.id===q.nodeId})[0];ae.label.x+=o.dx,ae.label.y+=o.dy,e.labelWidget.redrawLabel(i,q)}}),a.filter(function(q){return q instanceof aA}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){if(!(u.filter(function(Se){return Se.id===q.nodeId}).length>0)){var ae=e.graphDataManager.getLinks().filter(function(Se){return Se.nodes[0].id===q.id||Se.nodes[1].id===q.id})[0];ae.nodes[0].id===q.id&&(ae.nodes[0].label.x+=o.dx,ae.nodes[0].label.y+=o.dy),ae.nodes[1].id===q.id&&(ae.nodes[1].label.x+=o.dx,ae.nodes[1].label.y+=o.dy),e.linksWidget.redrawLink(i,ae)}})}}),this.end=(0,ji.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 lb}),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 Wk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Lm}).filter(function(q){return!q.locked}).forEach(function(q){e.drawingsEventSource.dragged.emit(new Wk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof Rk}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.nodesEventSource.labelDragged.emit(new Wk(q,o.dx,o.dy))}),a.filter(function(q){return q instanceof aA}).filter(function(q){return 0===l.filter(function(re){return re.id===q.nodeId}).length}).forEach(function(q){u.filter(function(ae){return ae.id===q.nodeId}).length>0||e.linksEventSource.interfaceDragged.emit(new Wk(q,o.dx,o.dy))})}})}},{key:"ngOnDestroy",value:function(){this.start.unsubscribe(),this.drag.unsubscribe(),this.end.unsubscribe(),this.mapSettingsSubscription.unsubscribe()}}]),n}();fA.\u0275fac=function(r){return new(r||fA)(t.Y36(zp),t.Y36(Vp),t.Y36(Bm),t.Y36(Gp),t.Y36(hf),t.Y36(Pl),t.Y36(dd),t.Y36(Rl),t.Y36(Up),t.Y36(fd),t.Y36(ul))},fA.\u0275cmp=t.Xpm({type:fA,selectors:[["app-draggable-selection"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var pA=function(){function n(r,e){(0,H.Z)(this,n),this.linksWidget=r,this.linksEventSource=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=vi(this.svg);this.linkEditedSubscription=this.linksEventSource.edited.subscribe(function(o){e.linksWidget.redrawLink(i,o)})}},{key:"ngOnDestroy",value:function(){this.linkEditedSubscription.unsubscribe()}}]),n}();pA.\u0275fac=function(r){return new(r||pA)(t.Y36(Bm),t.Y36(fd))},pA.\u0275cmp=t.Xpm({type:pA,selectors:[["app-link-editing"]],inputs:{svg:"svg"},decls:0,vars:0,template:function(r,e){}});var Um=(0,B.Z)(function n(){(0,H.Z)(this,n),this.movingModeState=new t.vpe});Um.\u0275fac=function(r){return new(r||Um)},Um.\u0275prov=t.Yz7({token:Um,factory:Um.\u0275fac});var hA=function(){function n(r,e,i){(0,H.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.activated=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){e.activated=i,i||e.removelisteners()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"onMouseDown",value:function(e){var i=this;this.activated&&(this.mousemoveListener=function(o){vi(i.element.nativeElement).selectAll("g.canvas").data([i.context]).attr("transform",function(){i.context.transformation.x=i.context.transformation.x+o.movementX,i.context.transformation.y=i.context.transformation.y+o.movementY;var l=i.context.getZeroZeroTransformationPoint().x+i.context.transformation.x,u=i.context.getZeroZeroTransformationPoint().y+i.context.transformation.y,d=i.context.transformation.k;return"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.mouseupListener=function(o){i.removelisteners()},this.element.nativeElement.addEventListener("mouseup",this.mouseupListener),this.element.nativeElement.addEventListener("mousemove",this.mousemoveListener))}},{key:"removelisteners",value:function(){this.element.nativeElement.removeEventListener("mouseup",this.mouseupListener),this.element.nativeElement.removeEventListener("mousemove",this.mousemoveListener)}}]),n}();hA.\u0275fac=function(r){return new(r||hA)(t.Y36(t.SBq),t.Y36(Um),t.Y36(Ws))},hA.\u0275dir=t.lG2({type:hA,selectors:[["","movingCanvas",""]],hostBindings:function(r,e){1&r&&t.NdJ("mousedown",function(o){return e.onMouseDown(o)})}});var mA=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.element=r,this.movingEventSource=e,this.context=i,this.mapsScaleService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.movingModeState=this.movingEventSource.movingModeState.subscribe(function(i){i?e.addListener():e.removeListener()})}},{key:"ngOnDestroy",value:function(){this.movingModeState.unsubscribe()}},{key:"addListener",value:function(){var e=this;this.wheelListener=function(i){i.stopPropagation(),i.preventDefault();var o=i.deltaY;o=0===i.deltaMode?o/100:o/3,vi(e.element.nativeElement).selectAll("g.canvas").data([e.context]).attr("transform",function(){e.context.transformation.k=e.context.transformation.k-o/10;var l=e.context.getZeroZeroTransformationPoint().x+e.context.transformation.x,u=e.context.getZeroZeroTransformationPoint().y+e.context.transformation.y,d=e.context.transformation.k;return e.mapsScaleService.setScale(d),"translate(".concat(l,", ").concat(u,") scale(").concat(d,")")})},this.element.nativeElement.addEventListener("wheel",this.wheelListener,{passive:!1})}},{key:"removeListener",value:function(){this.element.nativeElement.removeEventListener("wheel",this.wheelListener)}}]),n}();mA.\u0275fac=function(r){return new(r||mA)(t.Y36(t.SBq),t.Y36(Um),t.Y36(Ws),t.Y36(_f))},mA.\u0275dir=t.lG2({type:mA,selectors:[["","zoomingCanvas",""]]});var j4e=["svg"],G4e=["textEditor"],Yk=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z){(0,H.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.mapSettings=a,this.element=s,this.interfaceLabelWidget=l,this.selectionToolWidget=u,this.movingToolWidget=d,this.graphLayout=h,this.toolsService=g,this.mapScaleService=C,this.mapSettingsService=Z,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,B.Z)(n,[{key:"showInterfaceLabels",set:function(e){e&&!this.mapSettingsService.integrateLinkLabelsToLinks?(this.settings.show_interface_labels=!0,this.interfaceLabelWidget.setEnabled(!0)):(this.settings.show_interface_labels=!1,this.interfaceLabelWidget.setEnabled(!1)),this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){this.mapSettings.isReadOnly=e}},{key:"resize",value:function(e){if(e)this.svg.attr("height",window.innerHeight+window.scrollY-16);else{var i=window.innerHeight-16;this.height>i?this.svg.attr("height",this.height):this.svg.attr("height",i)}}},{key:"ngOnChanges",value:function(e){(e.width&&!e.width.isFirstChange()||e.height&&!e.height.isFirstChange()||e.drawings&&!e.drawings.isFirstChange()||e.nodes&&!e.nodes.isFirstChange()||e.links&&!e.links.isFirstChange()||e.symbols&&!e.symbols.isFirstChange())&&this.svg.empty&&!this.svg.empty()&&(e.symbols&&this.onSymbolsChange(e.symbols),this.changeLayout())}},{key:"ngOnInit",value:function(){var e=this;null!==this.parentNativeElement&&this.createGraph(this.parentNativeElement),this.context.size=this.getSize(),this.onChangesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.mapChangeDetectorRef.hasBeenDrawn&&e.redraw()}),this.subscriptions.push(this.mapScaleService.scaleChangeEmitter.subscribe(function(i){return e.redraw()})),this.subscriptions.push(this.toolsService.isMovingToolActivated.subscribe(function(i){e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isSelectionToolActivated.subscribe(function(i){e.selectionToolWidget.setEnabled(i),e.mapChangeDetectorRef.detectChanges()})),this.subscriptions.push(this.toolsService.isDrawLinkToolActivated.subscribe(function(i){e.drawLinkTool=i})),this.gridVisibility="true"===localStorage.getItem("gridVisibility")?1:0,this.mapSettingsService.isScrollDisabled.subscribe(function(i){return e.resize(i)})}},{key:"ngOnDestroy",value:function(){this.graphLayout.disconnect(this.svg),this.onChangesDetected.unsubscribe(),this.subscriptions.forEach(function(e){e.unsubscribe()})}},{key:"applyMapSettingsChanges",value:function(){this.redraw()}},{key:"createGraph",value:function(e){var i=vi(e);this.svg=i.select("svg"),this.graphLayout.connect(this.svg,this.context),this.graphLayout.draw(this.svg,this.context),this.mapChangeDetectorRef.hasBeenDrawn=!0}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"changeLayout",value:function(){null!=this.parentNativeElement&&(this.context.size=this.getSize()),this.redraw()}},{key:"onSymbolsChange",value:function(e){this.graphDataManager.setSymbols(this.symbols)}},{key:"redraw",value:function(){this.updateGrid(),this.graphDataManager.setNodes(this.nodes),this.graphDataManager.setLinks(this.links),this.graphDataManager.setDrawings(this.drawings),this.graphLayout.draw(this.svg,this.context),this.textEditor.activateTextEditingForDrawings(),this.textEditor.activateTextEditingForNodeLabels(),this.mapSettingsService.mapRenderedEmitter.emit(!0)}},{key:"updateGrid",value:function(){this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.grid_size)*this.project.grid_size),this.project.grid_size&&this.project.grid_size>0&&(this.nodeGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.grid_size)*this.project.grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridX=this.project.scene_width/2-Math.floor(this.project.scene_width/2/this.project.drawing_grid_size)*this.project.drawing_grid_size),this.project.drawing_grid_size&&this.project.drawing_grid_size>0&&(this.drawingGridY=this.project.scene_height/2-Math.floor(this.project.scene_height/2/this.project.drawing_grid_size)*this.project.drawing_grid_size)}},{key:"onResize",value:function(e){this.changeLayout()}}]),n}();Yk.\u0275fac=function(r){return new(r||Yk)(t.Y36(Up),t.Y36(Ws),t.Y36(Hp),t.Y36(Wg),t.Y36(pf),t.Y36(t.SBq),t.Y36(hf),t.Y36(jp),t.Y36(Yg),t.Y36(ev),t.Y36(Yp),t.Y36(_f),t.Y36(ul))},Yk.\u0275cmp=t.Xpm({type:Yk,selectors:[["app-d3-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(j4e,5),t.Gf(G4e,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.svgRef=i.first),t.iGM(i=t.CRH())&&(e.textEditor=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",project:"project",controller:"controller",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],readonly:"readonly"},features:[t.TTD],decls:20,vars:19,consts:[["id","map","preserveAspectRatio","none","movingCanvas","","zoomingCanvas","",1,"map"],["svg",""],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],["id","gridDrawing","patternUnits","userSpaceOnUse"],["fill","none","stroke","silver"],["id","gridNode","patternUnits","userSpaceOnUse"],["fill","none","stroke","DarkSlateGray"],["width","100%","height","100%","fill","url(#gridDrawing)"],["width","100%","height","100%","fill","url(#gridNode)"],[3,"svg"],[3,"controller","svg"],["textEditor",""]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"filter",2),t._UZ(3,"feColorMatrix",3),t.qZA(),t.TgZ(4,"defs")(5,"pattern",4),t._UZ(6,"path",5),t.qZA()(),t.TgZ(7,"defs")(8,"pattern",6),t._UZ(9,"path",7),t.qZA()(),t._UZ(10,"rect",8)(11,"rect",9),t.qZA(),t.kcU(),t._UZ(12,"app-drawing-adding",10)(13,"app-drawing-resizing")(14,"app-selection-control")(15,"app-selection-select")(16,"app-text-editor",11,12)(18,"app-draggable-selection",10)(19,"app-link-editing",10)),2&r){var i=t.MAs(1);t.xp6(5),t.uIk("x",e.drawingGridX)("y",e.drawingGridY)("width",e.project.drawing_grid_size)("height",e.project.drawing_grid_size),t.xp6(1),t.zWS("d","M ",e.project.drawing_grid_size," 0 L 0 0 0 ",e.project.drawing_grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(2),t.uIk("x",e.nodeGridX)("y",e.nodeGridY)("width",e.project.grid_size)("height",e.project.grid_size),t.xp6(1),t.zWS("d","M ",e.project.grid_size," 0 L 0 0 0 ",e.project.grid_size,""),t.uIk("stroke-width",e.gridVisibility),t.xp6(3),t.Q6J("svg",i),t.xp6(4),t.Q6J("controller",e.controller)("svg",i),t.xp6(2),t.Q6J("svg",i),t.xp6(1),t.Q6J("svg",i)}},dependencies:[sA,lA,uA,cA,dA,fA,pA,hA,mA],styles:["svg[_ngcontent-%COMP%]{display:block}"]});var z4e=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}};function W4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",2),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"No"),t.qZA(),t.TgZ(3,"button",3),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onYesClick())}),t._uU(4," Yes "),t.qZA()()}}function V4e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",1)(1,"button",4),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.onNoClick())}),t._uU(2,"Ok"),t.qZA()()}}var Kk=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.existingProject=e.existingProject}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"opened"===this.existingProject.status?(this.confirmationMessage="Project ".concat(this.existingProject.name," is open. You can not overwrite it."),this.isOpen=!0):this.confirmationMessage="Project ".concat(this.existingProject.name," already exist, overwrite it?")}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();Kk.\u0275fac=function(r){return new(r||Kk)(t.Y36(cr),t.Y36(So))},Kk.\u0275cmp=t.Xpm({type:Kk,selectors:[["app-import-project-dialog"]],decls:4,vars:3,consts:[["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.YNc(2,W4e,5,0,"div",0),t.YNc(3,V4e,3,0,"div",0)),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage),t.xp6(1),t.Q6J("ngIf",!e.isOpen),t.xp6(1),t.Q6J("ngIf",e.isOpen))},dependencies:[ge.O5,cn,dr]});var Gu=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function Y4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function K4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}function q4e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project with this name exists"),t.qZA())}Gu.\u0275fac=function(r){return new(r||Gu)},Gu.\u0275prov=t.Yz7({token:Gu,factory:Gu.\u0275fac});var J4e=function(r){return{"is-invalid":r}},qk=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.projectService=o,this.toasterService=a,this.formBuilder=s,this.projectNameValidator=l,this.onAddProject=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,this.projectNameValidator.get],[z4e(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=ts(),this.projectService.add(this.controller,this.projectNameForm.controls.projectName.value,this.uuid).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added")),e.router.navigate(["/controller",e.controller.id,"project",i.project_id])},function(i){e.toasterService.error("Cannot create new project"),console.log(i)})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kk,{width:"300px",height:"150px",data:{existingProject:e},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(a){a&&i.projectService.close(i.controller,e.project_id).subscribe(function(){i.projectService.delete(i.controller,e.project_id).subscribe(function(){i.addProject()})})})}}]),n}();function Q4e(n,r){}qk.\u0275fac=function(r){return new(r||qk)(t.Y36(cr),t.Y36(ur),t.Y36(jr),t.Y36(Gs.Y),t.Y36(Ln),t.Y36(J.QS),t.Y36(Gu))},qk.\u0275cmp=t.Xpm({type:qk,selectors:[["app-add-blank-project-dialog"]],features:[t._Bn([Gu])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new project"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,Y4e,2,0,"mat-error",4),t.YNc(6,K4e,2,0,"mat-error",4),t.YNc(7,q4e,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add project "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,J4e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.projectExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var X4e={bottomSheetState:(0,Rt.X$)("state",[(0,Rt.SB)("void, hidden",(0,Rt.oB)({transform:"translateY(100%)"})),(0,Rt.SB)("visible",(0,Rt.oB)({transform:"translateY(0%)"})),(0,Rt.eR)("visible => void, visible => hidden",(0,Rt.ru)([(0,Rt.jt)("".concat(Vt.mZ.COMPLEX," ").concat(Vt.yN.ACCELERATION_CURVE)),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})])),(0,Rt.eR)("void => visible",(0,Rt.ru)([(0,Rt.jt)("".concat(Vt.mZ.EXITING," ").concat(Vt.yN.DECELERATION_CURVE)),(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})]))])},_A=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h,g,C){var Z;return(0,H.Z)(this,e),(Z=r.call(this,i,o,a,s,l,u,d,C))._changeDetectorRef=g,Z._animationState="void",Z._animationStateChanged=new t.vpe,Z._breakpointSubscription=h.observe([ed.u3.Medium,ed.u3.Large,ed.u3.XLarge]).subscribe(function(){Z._toggleClass("mat-bottom-sheet-container-medium",h.isMatched(ed.u3.Medium)),Z._toggleClass("mat-bottom-sheet-container-large",h.isMatched(ed.u3.Large)),Z._toggleClass("mat-bottom-sheet-container-xlarge",h.isMatched(ed.u3.XLarge))}),Z}return(0,B.Z)(e,[{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}},{key:"_onAnimationDone",value:function(o){"visible"===o.toState&&this._trapFocus(),this._animationStateChanged.emit(o)}},{key:"_onAnimationStart",value:function(o){this._animationStateChanged.emit(o)}},{key:"_captureInitialFocus",value:function(){}},{key:"_toggleClass",value:function(o,a){this._elementRef.nativeElement.classList.toggle(o,a)}}]),e}(rb);_A.\u0275fac=function(r){return new(r||_A)(t.Y36(t.SBq),t.Y36(Yr.qV),t.Y36(ge.K0,8),t.Y36(i2),t.Y36(Yr.ic),t.Y36(t.R0b),t.Y36(xi.Iu),t.Y36(ed.Yg),t.Y36(t.sBO),t.Y36(Yr.tE))},_A.\u0275cmp=t.Xpm({type:_A,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,e){1&r&&t.WFA("@state.start",function(o){return e._onAnimationStart(o)})("@state.done",function(o){return e._onAnimationDone(o)}),2&r&&(t.uIk("role",e._config.role)("aria-modal",e._config.ariaModal)("aria-label",e._config.ariaLabel),t.d8E("@state",e._animationState))},features:[t.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,e){1&r&&t.YNc(0,Q4e,0,0,"ng-template",0)},dependencies:[uo.Pl],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[X4e.bottomSheetState]}});var Mb=(0,B.Z)(function n(){(0,H.Z)(this,n)});Mb.\u0275fac=function(r){return new(r||Mb)},Mb.\u0275mod=t.oAB({type:Mb}),Mb.\u0275inj=t.cJS({imports:[ib,Vt.BQ,uo.eL,Vt.BQ]});var $4e=new t.OlP("MatBottomSheetData"),e8e=(0,B.Z)(function n(){(0,H.Z)(this,n),this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}),_F=function(){function n(r,e,i){var o=this;(0,H.Z)(this,n),this._ref=r,this._afterOpened=new In.xQ,this.containerInstance=i,this.disableClose=e.disableClose,i._animationStateChanged.pipe((0,ti.h)(function(a){return"done"===a.phaseName&&"visible"===a.toState}),(0,Ei.q)(1)).subscribe(function(){o._afterOpened.next(),o._afterOpened.complete()}),i._animationStateChanged.pipe((0,ti.h)(function(a){return"done"===a.phaseName&&"hidden"===a.toState}),(0,Ei.q)(1)).subscribe(function(){clearTimeout(o._closeFallbackTimeout),o._ref.close(o._result)}),r.overlayRef.detachments().subscribe(function(){o._ref.close(o._result)}),(0,ji.T)(this.backdropClick(),this.keydownEvents().pipe((0,ti.h)(function(a){return a.keyCode===Sr.hY}))).subscribe(function(a){!o.disableClose&&("keydown"!==a.type||!(0,Sr.Vb)(a))&&(a.preventDefault(),o.dismiss())})}return(0,B.Z)(n,[{key:"instance",get:function(){return this._ref.componentInstance}},{key:"dismiss",value:function(e){var i=this;!this.containerInstance||(this.containerInstance._animationStateChanged.pipe((0,ti.h)(function(o){return"start"===o.phaseName}),(0,Ei.q)(1)).subscribe(function(o){i._closeFallbackTimeout=setTimeout(function(){i._ref.close(i._result)},o.totalTime+100),i._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}},{key:"afterDismissed",value:function(){return this._ref.closed}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"backdropClick",value:function(){return this._ref.backdropClick}},{key:"keydownEvents",value:function(){return this._ref.keydownEvents}}]),n}(),t8e=new t.OlP("mat-bottom-sheet-default-options"),gf=function(){function n(r,e,i,o){(0,H.Z)(this,n),this._overlay=r,this._parentBottomSheet=i,this._defaultOptions=o,this._bottomSheetRefAtThisLevel=null,this._dialog=e.get(_m)}return(0,B.Z)(n,[{key:"_openedBottomSheetRef",get:function(){var e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel},set:function(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}},{key:"open",value:function(e,i){var s,o=this,a=Object.assign(Object.assign({},this._defaultOptions||new e8e),i);return this._dialog.open(e,Object.assign(Object.assign({},a),{disableClose:!0,maxWidth:"100%",container:_A,scrollStrategy:a.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:function(){return{bottomSheetRef:s}},providers:function(u,d,h){return s=new _F(u,a,h),[{provide:_F,useValue:s},{provide:$4e,useValue:a.data}]}})),s.afterDismissed().subscribe(function(){o._openedBottomSheetRef===s&&(o._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(function(){var l;return null===(l=s.containerInstance)||void 0===l?void 0:l.enter()}),this._openedBottomSheetRef.dismiss()):s.containerInstance.enter(),this._openedBottomSheetRef=s,s}},{key:"dismiss",value:function(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}},{key:"ngOnDestroy",value:function(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}}]),n}();gf.\u0275fac=function(r){return new(r||gf)(t.LFG(xi.aV),t.LFG(t.zs3),t.LFG(gf,12),t.LFG(t8e,8))},gf.\u0275prov=t.Yz7({token:gf,factory:gf.\u0275fac,providedIn:Mb});var n8e=function(r){return{lightTheme:r}},pd=function(){function n(r,e){(0,H.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.message="",this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();pd.\u0275fac=function(r){return new(r||pd)(t.Y36(_F),t.Y36(Cc.f))},pd.\u0275cmp=t.Xpm({type:pd,selectors:[["app-confirmation-bottomsheet"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,n8e,e.isLightThemeEnabled)),t.xp6(2),t.Oqu(e.message))},dependencies:[ge.mk,cn],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 vf=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return+e.value>=0?null:{negativeValue:!0}}}]),n}();vf.\u0275fac=function(r){return new(r||vf)},vf.\u0275prov=t.Yz7({token:vf,factory:vf.\u0275fac});var Zi=m(3251);function bse(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var Sb={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var Cse=/[&<>"']/,i8e=new RegExp(Cse.source,"g"),wse=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,o8e=new RegExp(wse.source,"g"),a8e={"&":"&","<":"<",">":">",'"':""","'":"'"},kse=function(r){return a8e[r]};function Ll(n,r){if(r){if(Cse.test(n))return n.replace(i8e,kse)}else if(wse.test(n))return n.replace(o8e,kse);return n}var s8e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Tse(n){return n.replace(s8e,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 l8e=/(^|[^\[])\^/g;function Bo(n,r){n="string"==typeof n?n:n.source,r=r||"";var e={replace:function(o,a){return a=(a=a.source||a).replace(l8e,"$1"),n=n.replace(o,a),e},getRegex:function(){return new RegExp(n,r)}};return e}var u8e=/[^\w:]/g,c8e=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Mse(n,r,e){if(n){var i;try{i=decodeURIComponent(Tse(e)).replace(u8e,"").toLowerCase()}catch(o){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}r&&!c8e.test(e)&&(e=function h8e(n,r){gF[" "+n]||(d8e.test(n)?gF[" "+n]=n+"/":gF[" "+n]=yF(n,"/",!0));var e=-1===(n=gF[" "+n]).indexOf(":");return"//"===r.substring(0,2)?e?r:n.replace(f8e,"$1")+r:"/"===r.charAt(0)?e?r:n.replace(p8e,"$1")+r:n+r}(r,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(o){return null}return e}var gF={},d8e=/^[^:]+:\/*[^/]*$/,f8e=/^([^:]+:)[\s\S]*$/,p8e=/^([^:]+:\/*[^/]*)[\s\S]*$/;var vF={exec:function(){}};function Sse(n,r){var i=n.replace(/\|/g,function(a,s,l){for(var u=!1,d=s;--d>=0&&"\\"===l[d];)u=!u;return u?"|":" |"}).split(/ \|/),o=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(/\\\|/g,"|");return i}function yF(n,r,e){var i=n.length;if(0===i)return"";for(var o=0;o<i;){var a=n.charAt(i-o-1);if(a!==r||e){if(a===r||!e)break;o++}else o++}return n.slice(0,i-o)}function Ese(n,r){if(r<1)return"";for(var e="";r>1;)1&r&&(e+=n),r>>=1,n+=n;return e+n}function xse(n,r,e,i){var o=r.href,a=r.title?Ll(r.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if("!"!==n[0].charAt(0)){i.state.inLink=!0;var l={type:"link",raw:e,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}return{type:"image",raw:e,href:o,title:a,text:Ll(s)}}var lW=function(){function n(r){(0,H.Z)(this,n),this.options=r||Sb}return(0,B.Z)(n,[{key:"space",value:function(e){var i=this.rules.block.newline.exec(e);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}},{key:"code",value:function(e){var i=this.rules.block.code.exec(e);if(i){var o=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:yF(o,"\n")}}}},{key:"fences",value:function(e){var i=this.rules.block.fences.exec(e);if(i){var o=i[0],a=function g8e(n,r){var e=n.match(/^(\s+)(?:```)/);if(null===e)return r;var i=e[1];return r.split("\n").map(function(o){var a=o.match(/^\s+/);return null===a?o:(0,Nn.Z)(a,1)[0].length>=i.length?o.slice(i.length):o}).join("\n")}(o,i[3]||"");return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline._escapes,"$1"):i[2],text:a}}}},{key:"heading",value:function(e){var i=this.rules.block.heading.exec(e);if(i){var o=i[2].trim();if(/#$/.test(o)){var a=yF(o,"#");(this.options.pedantic||!a||/ $/.test(a))&&(o=a.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}},{key:"hr",value:function(e){var i=this.rules.block.hr.exec(e);if(i)return{type:"hr",raw:i[0]}}},{key:"blockquote",value:function(e){var i=this.rules.block.blockquote.exec(e);if(i){var o=i[0].replace(/^ *>[ \t]?/gm,""),a=this.lexer.state.top;this.lexer.state.top=!0;var s=this.lexer.blockTokens(o);return this.lexer.state.top=a,{type:"blockquote",raw:i[0],tokens:s,text:o}}}},{key:"list",value:function(e){var i=this.rules.block.list.exec(e);if(i){var o,a,s,l,u,d,h,g,C,Z,z,q,re=i[1].trim(),ae=re.length>1,Se={type:"list",raw:"",ordered:ae,start:ae?+re.slice(0,-1):"",loose:!1,items:[]};re=ae?"\\d{1,9}\\".concat(re.slice(-1)):"\\".concat(re),this.options.pedantic&&(re=ae?re:"[*+-]");for(var Ce=new RegExp("^( {0,3}".concat(re,")((?:[\t ][^\\n]*)?(?:\\n|$))"));e&&(q=!1,(i=Ce.exec(e))&&!this.rules.block.hr.test(e));){if(o=i[0],e=e.substring(o.length),g=i[2].split("\n",1)[0].replace(/^\t+/,function(Xe){return" ".repeat(3*Xe.length)}),C=e.split("\n",1)[0],this.options.pedantic?(l=2,z=g.trimLeft()):(l=(l=i[2].search(/[^ ]/))>4?1:l,z=g.slice(l),l+=i[1].length),d=!1,!g&&/^ *$/.test(C)&&(o+=C+"\n",e=e.substring(C.length+1),q=!0),!q)for(var Ee=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))")),Ve=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),ut=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:```|~~~)")),Ae=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));e&&(C=Z=e.split("\n",1)[0],this.options.pedantic&&(C=C.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ut.test(C)||Ae.test(C)||Ee.test(C)||Ve.test(e)));){if(C.search(/[^ ]/)>=l||!C.trim())z+="\n"+C.slice(l);else{if(d||g.search(/[^ ]/)>=4||ut.test(g)||Ae.test(g)||Ve.test(g))break;z+="\n"+C}!d&&!C.trim()&&(d=!0),o+=Z+"\n",e=e.substring(Z.length+1),g=C.slice(l)}Se.loose||(h?Se.loose=!0:/\n *\n *$/.test(o)&&(h=!0)),this.options.gfm&&((a=/^\[[ xX]\] /.exec(z))&&(s="[ ] "!==a[0],z=z.replace(/^\[[ xX]\] +/,""))),Se.items.push({type:"list_item",raw:o,task:!!a,checked:s,loose:!1,text:z}),Se.raw+=o}Se.items[Se.items.length-1].raw=o.trimRight(),Se.items[Se.items.length-1].text=z.trimRight(),Se.raw=Se.raw.trimRight();var ot=Se.items.length;for(u=0;u<ot;u++)if(this.lexer.state.top=!1,Se.items[u].tokens=this.lexer.blockTokens(Se.items[u].text,[]),!Se.loose){var ht=Se.items[u].tokens.filter(function(Xe){return"space"===Xe.type}),bt=ht.length>0&&ht.some(function(Xe){return/\n.*\n/.test(Xe.raw)});Se.loose=bt}if(Se.loose)for(u=0;u<ot;u++)Se.items[u].loose=!0;return Se}}},{key:"html",value:function(e){var i=this.rules.block.html.exec(e);if(i){var o={type:"html",raw:i[0],pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]};if(this.options.sanitize){var a=this.options.sanitizer?this.options.sanitizer(i[0]):Ll(i[0]);o.type="paragraph",o.text=a,o.tokens=this.lexer.inline(a)}return o}}},{key:"def",value:function(e){var i=this.rules.block.def.exec(e);if(i){var o=i[1].toLowerCase().replace(/\s+/g," "),a=i[2]?i[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline._escapes,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:a,title:s}}}},{key:"table",value:function(e){var i=this.rules.block.table.exec(e);if(i){var o={type:"table",header:Sse(i[1]).map(function(h){return{text:h}}),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:i[3]&&i[3].trim()?i[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(o.header.length===o.align.length){o.raw=i[0];var s,l,u,d,a=o.align.length;for(s=0;s<a;s++)/^ *-+: *$/.test(o.align[s])?o.align[s]="right":/^ *:-+: *$/.test(o.align[s])?o.align[s]="center":/^ *:-+ *$/.test(o.align[s])?o.align[s]="left":o.align[s]=null;for(a=o.rows.length,s=0;s<a;s++)o.rows[s]=Sse(o.rows[s],o.header.length).map(function(h){return{text:h}});for(a=o.header.length,l=0;l<a;l++)o.header[l].tokens=this.lexer.inline(o.header[l].text);for(a=o.rows.length,l=0;l<a;l++)for(d=o.rows[l],u=0;u<d.length;u++)d[u].tokens=this.lexer.inline(d[u].text);return o}}}},{key:"lheading",value:function(e){var i=this.rules.block.lheading.exec(e);if(i)return{type:"heading",raw:i[0],depth:"="===i[2].charAt(0)?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}},{key:"paragraph",value:function(e){var i=this.rules.block.paragraph.exec(e);if(i){var o="\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}},{key:"text",value:function(e){var i=this.rules.block.text.exec(e);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}},{key:"escape",value:function(e){var i=this.rules.inline.escape.exec(e);if(i)return{type:"escape",raw:i[0],text:Ll(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]):Ll(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=yF(o.slice(0,-1),"\\");if((o.length-a.length)%2==0)return}else{var s=function m8e(n,r){if(-1===n.indexOf(r[1]))return-1;for(var e=n.length,i=0,o=0;o<e;o++)if("\\"===n[o])o++;else if(n[o]===r[0])i++;else if(n[o]===r[1]&&--i<0)return o;return-1}(i[2],"()");if(s>-1){var u=(0===i[0].indexOf("!")?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,u).trim(),i[3]=""}}var d=i[2],h="";if(this.options.pedantic){var g=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(d);g&&(d=g[1],h=g[3])}else h=i[3]?i[3].slice(1,-1):"";return d=d.trim(),/^</.test(d)&&(d=this.options.pedantic&&!/>$/.test(o)?d.slice(1):d.slice(1,-1)),xse(i,{href:d&&d.replace(this.rules.inline._escapes,"$1"),title:h&&h.replace(this.rules.inline._escapes,"$1")},i[0],this.lexer)}}},{key:"reflink",value:function(e,i){var o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){var a=(o[2]||o[1]).replace(/\s+/g," ");if(!(a=i[a.toLowerCase()])){var s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return xse(o,a,o[0],this.lexer)}}},{key:"emStrong",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(e);if(a&&(!a[3]||!o.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/))){var s=a[1]||a[2]||"";if(!s||s&&(""===o||this.rules.inline.punctuation.exec(o))){var u,d,l=a[0].length-1,h=l,g=0,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(d=u.length,a[3]||a[4]){h+=d;continue}if((a[5]||a[6])&&l%3&&!((l+d)%3)){g+=d;continue}if(!((h-=d)>0)){d=Math.min(d,d+h+g);var Z=e.slice(0,l+a.index+(a[0].length-u.length)+d);if(Math.min(l,d)%2){var z=Z.slice(1,-1);return{type:"em",raw:Z,text:z,tokens:this.lexer.inlineTokens(z)}}var q=Z.slice(2,-2);return{type:"strong",raw:Z,text:q,tokens:this.lexer.inlineTokens(q)}}}}}}},{key:"codespan",value:function(e){var i=this.rules.inline.code.exec(e);if(i){var o=i[2].replace(/\n/g," "),a=/[^ ]/.test(o),s=/^ /.test(o)&&/ $/.test(o);return a&&s&&(o=o.substring(1,o.length-1)),o=Ll(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=Ll(this.options.mangle?i(o[1]):o[1])):s=a=Ll(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=Ll(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=Ll(o[0]),s="www."===o[1]?"http://"+o[0]:o[0]}return{type:"link",raw:o[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(e,i){var a,o=this.rules.inline.text.exec(e);if(o)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Ll(o[0]):o[0]:Ll(this.options.smartypants?i(o[0]):o[0]),{type:"text",raw:o[0],text:a}}}]),n}(),Lr={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:vF,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Lr.def=Bo(Lr.def).replace("label",Lr._label).replace("title",Lr._title).getRegex(),Lr.bullet=/(?:[*+-]|\d{1,9}[.)])/,Lr.listItemStart=Bo(/^( *)(bull) */).replace("bull",Lr.bullet).getRegex(),Lr.list=Bo(Lr.list).replace(/bull/g,Lr.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Lr.def.source+")").getRegex(),Lr._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",Lr._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Lr.html=Bo(Lr.html,"i").replace("comment",Lr._comment).replace("tag",Lr._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Lr.paragraph=Bo(Lr._paragraph).replace("hr",Lr.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",Lr._tag).getRegex(),Lr.blockquote=Bo(Lr.blockquote).replace("paragraph",Lr.paragraph).getRegex(),Lr.normal=Vr({},Lr),Lr.gfm=Vr(Vr({},Lr.normal),{},{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Lr.gfm.table=Bo(Lr.gfm.table).replace("hr",Lr.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",Lr._tag).getRegex(),Lr.gfm.paragraph=Bo(Lr._paragraph).replace("hr",Lr.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Lr.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",Lr._tag).getRegex(),Lr.pedantic=Vr(Vr({},Lr.normal),{},{html:Bo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Lr._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:vF,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Bo(Lr.normal._paragraph).replace("hr",Lr.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Lr.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var hr={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:vF,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:vF,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function v8e(n){return n.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function Dse(n){var e,i,r="",o=n.length;for(e=0;e<o;e++)i=n.charCodeAt(e),Math.random()>.5&&(i="x"+i.toString(16)),r+="&#"+i+";";return r}hr._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",hr.punctuation=Bo(hr.punctuation).replace(/punctuation/g,hr._punctuation).getRegex(),hr.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,hr.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,hr._comment=Bo(Lr._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),hr.emStrong.lDelim=Bo(hr.emStrong.lDelim).replace(/punct/g,hr._punctuation).getRegex(),hr.emStrong.rDelimAst=Bo(hr.emStrong.rDelimAst,"g").replace(/punct/g,hr._punctuation).getRegex(),hr.emStrong.rDelimUnd=Bo(hr.emStrong.rDelimUnd,"g").replace(/punct/g,hr._punctuation).getRegex(),hr._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,hr._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,hr._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])?)+(?![-_])/,hr.autolink=Bo(hr.autolink).replace("scheme",hr._scheme).replace("email",hr._email).getRegex(),hr._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,hr.tag=Bo(hr.tag).replace("comment",hr._comment).replace("attribute",hr._attribute).getRegex(),hr._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,hr._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,hr._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,hr.link=Bo(hr.link).replace("label",hr._label).replace("href",hr._href).replace("title",hr._title).getRegex(),hr.reflink=Bo(hr.reflink).replace("label",hr._label).replace("ref",Lr._label).getRegex(),hr.nolink=Bo(hr.nolink).replace("ref",Lr._label).getRegex(),hr.reflinkSearch=Bo(hr.reflinkSearch,"g").replace("reflink",hr.reflink).replace("nolink",hr.nolink).getRegex(),hr.normal=Vr({},hr),hr.pedantic=Vr(Vr({},hr.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:Bo(/^!?\[(label)\]\((.*?)\)/).replace("label",hr._label).getRegex(),reflink:Bo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hr._label).getRegex()}),hr.gfm=Vr(Vr({},hr.normal),{},{escape:Bo(hr.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),hr.gfm.url=Bo(hr.gfm.url,"i").replace("email",hr.gfm._extended_email).getRegex(),hr.breaks=Vr(Vr({},hr.gfm),{},{br:Bo(hr.br).replace("{2,}","*").getRegex(),text:Bo(hr.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var gA=function(){function n(r){(0,H.Z)(this,n),this.tokens=[],this.tokens.links=Object.create(null),this.options=r||Sb,this.options.tokenizer=this.options.tokenizer||new lW,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:Lr.normal,inline:hr.normal};this.options.pedantic?(e.block=Lr.pedantic,e.inline=hr.pedantic):this.options.gfm&&(e.block=Lr.gfm,this.options.breaks?e.inline=hr.breaks:e.inline=hr.gfm),this.tokenizer.rules=e}return(0,B.Z)(n,[{key:"lex",value:function(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(var i;i=this.inlineQueue.shift();)this.inlineTokens(i.src,i.tokens);return this.tokens}},{key:"blockTokens",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(g,C,Z){return C+" ".repeat(Z.length)});for(var a,s,l,u,h,d=function(){if(i.options.extensions&&i.options.extensions.block&&i.options.extensions.block.some(function(re){return!!(a=re.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.space(e))return e=e.substring(a.raw.length),1===a.raw.length&&o.length>0?o[o.length-1].raw+="\n":o.push(a),0;if(a=i.tokenizer.code(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?o.push(a):(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.fences(e))||(a=i.tokenizer.heading(e))||(a=i.tokenizer.hr(e))||(a=i.tokenizer.blockquote(e))||(a=i.tokenizer.list(e))||(a=i.tokenizer.html(e)))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.def(e))return e=e.substring(a.raw.length),!(s=o[o.length-1])||"paragraph"!==s.type&&"text"!==s.type?i.tokens.links[a.tag]||(i.tokens.links[a.tag]={href:a.href,title:a.title}):(s.raw+="\n"+a.raw,s.text+="\n"+a.raw,i.inlineQueue[i.inlineQueue.length-1].src=s.text),0;if((a=i.tokenizer.table(e))||(a=i.tokenizer.lheading(e)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startBlock){var z,C=1/0,Z=e.slice(1);i.options.extensions.startBlock.forEach(function(re){"number"==typeof(z=re.call({lexer:this},Z))&&z>=0&&(C=Math.min(C,z))}),C<1/0&&C>=0&&(l=e.substring(0,C+1))}if(i.state.top&&(a=i.tokenizer.paragraph(l)))return s=o[o.length-1],u&&"paragraph"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),u=l.length!==e.length,e=e.substring(a.raw.length),0;if(a=i.tokenizer.text(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===s.type?(s.raw+="\n"+a.raw,s.text+="\n"+a.text,i.inlineQueue.pop(),i.inlineQueue[i.inlineQueue.length-1].src=s.text):o.push(a),0;if(e){var q="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(q),1;throw new Error(q)}};e&&(0===(h=d())||1!==h););return this.state.top=!0,o}},{key:"inline",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:i}),i}},{key:"inlineTokens",value:function(e){var a,s,l,d,h,g,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=e;if(this.tokens.links){var C=Object.keys(this.tokens.links);if(C.length>0)for(;null!=(d=this.tokenizer.rules.inline.reflinkSearch.exec(u));)C.includes(d[0].slice(d[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,d.index)+"["+Ese("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(d=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,d.index)+"["+Ese("a",d[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(d=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,d.index+d[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(var z,Z=function(){if(h||(g=""),h=!1,i.options.extensions&&i.options.extensions.inline&&i.options.extensions.inline.some(function(Ee){return!!(a=Ee.call({lexer:i},e,o))&&(e=e.substring(a.raw.length),o.push(a),!0)}))return 0;if(a=i.tokenizer.escape(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.tag(e))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(a=i.tokenizer.link(e))return e=e.substring(a.raw.length),o.push(a),0;if(a=i.tokenizer.reflink(e,i.tokens.links))return e=e.substring(a.raw.length),(s=o[o.length-1])&&"text"===a.type&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if((a=i.tokenizer.emStrong(e,u,g))||(a=i.tokenizer.codespan(e))||(a=i.tokenizer.br(e))||(a=i.tokenizer.del(e))||(a=i.tokenizer.autolink(e,Dse))||!i.state.inLink&&(a=i.tokenizer.url(e,Dse)))return e=e.substring(a.raw.length),o.push(a),0;if(l=e,i.options.extensions&&i.options.extensions.startInline){var Se,re=1/0,ae=e.slice(1);i.options.extensions.startInline.forEach(function(Ee){"number"==typeof(Se=Ee.call({lexer:this},ae))&&Se>=0&&(re=Math.min(re,Se))}),re<1/0&&re>=0&&(l=e.substring(0,re+1))}if(a=i.tokenizer.inlineText(l,v8e))return e=e.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(g=a.raw.slice(-1)),h=!0,(s=o[o.length-1])&&"text"===s.type?(s.raw+=a.raw,s.text+=a.text):o.push(a),0;if(e){var Ce="Infinite loop on byte: "+e.charCodeAt(0);if(i.options.silent)return console.error(Ce),1;throw new Error(Ce)}};e&&(0===(z=Z())||1!==z););return o}}],[{key:"rules",get:function(){return{block:Lr,inline:hr}}},{key:"lex",value:function(e,i){return new n(i).lex(e)}},{key:"lexInline",value:function(e,i){return new n(i).inlineTokens(e)}}]),n}(),uW=function(){function n(r){(0,H.Z)(this,n),this.options=r||Sb}return(0,B.Z)(n,[{key:"code",value:function(e,i,o){var a=(i||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,a);null!=s&&s!==e&&(o=!0,e=s)}return e=e.replace(/\n$/,"")+"\n",a?'<pre><code class="'+this.options.langPrefix+Ll(a)+'">'+(o?e:Ll(e,!0))+"</code></pre>\n":"<pre><code>"+(o?e:Ll(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=Mse(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<a href="'+e+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>"}},{key:"image",value:function(e,i,o){if(null===(e=Mse(this.options.sanitize,this.options.baseUrl,e)))return o;var a='<img src="'.concat(e,'" alt="').concat(o,'"');return i&&(a+=' title="'.concat(i,'"')),a+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),n}(),Ase=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,i,o){return""+o}},{key:"image",value:function(e,i,o){return""+o}},{key:"br",value:function(){return""}}]),n}(),Ose=function(){function n(){(0,H.Z)(this,n),this.seen={}}return(0,B.Z)(n,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,i){var o=e,a=0;if(this.seen.hasOwnProperty(o)){a=this.seen[e];do{o=e+"-"+ ++a}while(this.seen.hasOwnProperty(o))}return i||(this.seen[e]=a,this.seen[o]=0),o}},{key:"slug",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.serialize(e);return this.getNextSafeSlug(o,i.dryrun)}}]),n}(),vA=function(){function n(r){(0,H.Z)(this,n),this.options=r||Sb,this.options.renderer=this.options.renderer||new uW,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ase,this.slugger=new Ose}return(0,B.Z)(n,[{key:"parse",value:function(e){var a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,Ee,Ve,ut,Ae,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o="",ot=e.length;for(a=0;a<ot;a++)if(z=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[z.type]&&(!1!==(Ae=this.options.extensions.renderers[z.type].call({parser:this},z))||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(z.type)))o+=Ae||"";else switch(z.type){case"space":continue;case"hr":o+=this.renderer.hr();continue;case"heading":o+=this.renderer.heading(this.parseInline(z.tokens),z.depth,Tse(this.parseInline(z.tokens,this.textRenderer)),this.slugger);continue;case"code":o+=this.renderer.code(z.text,z.lang,z.escaped);continue;case"table":for(C="",g="",u=z.header.length,s=0;s<u;s++)g+=this.renderer.tablecell(this.parseInline(z.header[s].tokens),{header:!0,align:z.align[s]});for(C+=this.renderer.tablerow(g),Z="",u=z.rows.length,s=0;s<u;s++){for(g="",d=(h=z.rows[s]).length,l=0;l<d;l++)g+=this.renderer.tablecell(this.parseInline(h[l].tokens),{header:!1,align:z.align[l]});Z+=this.renderer.tablerow(g)}o+=this.renderer.table(C,Z);continue;case"blockquote":Z=this.parse(z.tokens),o+=this.renderer.blockquote(Z);continue;case"list":for(q=z.ordered,re=z.start,ae=z.loose,u=z.items.length,Z="",s=0;s<u;s++)Ee=(Ce=z.items[s]).checked,Ve=Ce.task,Se="",Ce.task&&(ut=this.renderer.checkbox(Ee),ae?Ce.tokens.length>0&&"paragraph"===Ce.tokens[0].type?(Ce.tokens[0].text=ut+" "+Ce.tokens[0].text,Ce.tokens[0].tokens&&Ce.tokens[0].tokens.length>0&&"text"===Ce.tokens[0].tokens[0].type&&(Ce.tokens[0].tokens[0].text=ut+" "+Ce.tokens[0].tokens[0].text)):Ce.tokens.unshift({type:"text",text:ut}):Se+=ut),Se+=this.parse(Ce.tokens,ae),Z+=this.renderer.listitem(Se,Ve,Ee);o+=this.renderer.list(Z,q,re);continue;case"html":o+=this.renderer.html(z.text);continue;case"paragraph":o+=this.renderer.paragraph(this.parseInline(z.tokens));continue;case"text":for(Z=z.tokens?this.parseInline(z.tokens):z.text;a+1<ot&&"text"===e[a+1].type;)Z+="\n"+((z=e[++a]).tokens?this.parseInline(z.tokens):z.text);o+=i?this.renderer.paragraph(Z):Z;continue;default:var ht='Token with "'+z.type+'" type was not found.';if(this.options.silent)return void console.error(ht);throw new Error(ht)}return o}},{key:"parseInline",value:function(e,i){i=i||this.renderer;var a,s,l,o="",u=e.length;for(a=0;a<u;a++)if(s=e[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(!1!==(l=this.options.extensions.renderers[s.type].call({parser:this},s))||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)))o+=l||"";else switch(s.type){case"escape":case"text":o+=i.text(s.text);break;case"html":o+=i.html(s.text);break;case"link":o+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break;case"image":o+=i.image(s.href,s.title,s.text);break;case"strong":o+=i.strong(this.parseInline(s.tokens,i));break;case"em":o+=i.em(this.parseInline(s.tokens,i));break;case"codespan":o+=i.codespan(s.text);break;case"br":o+=i.br();break;case"del":o+=i.del(this.parseInline(s.tokens,i));break;default:var d='Token with "'+s.type+'" type was not found.';if(this.options.silent)return void console.error(d);throw new Error(d)}return o}}],[{key:"parse",value:function(e,i){return new n(i).parse(e)}},{key:"parseInline",value:function(e,i){return new n(i).parseInline(e)}}]),n}(),bF=function(){function n(r){(0,H.Z)(this,n),this.options=r||Sb}return(0,B.Z)(n,[{key:"preprocess",value:function(e){return e}},{key:"postprocess",value:function(e){return e}}]),n}();function Ise(n,r){return function(e,i,o){"function"==typeof i&&(o=i,i=null);var a=Vr({},i),s=function y8e(n,r,e){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",n){var o="<p>An error occurred:</p><pre>"+Ll(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):e?void e(null,o):o}if(r)return Promise.reject(i);if(!e)throw i;e(i)}}((i=Vr(Vr({},Zr.defaults),a)).silent,i.async,o);if(null==e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function _8e(n){n&&n.sanitize&&!n.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(i),i.hooks&&(i.hooks.options=i),o){var u,l=i.highlight;try{i.hooks&&(e=i.hooks.preprocess(e)),u=n(e,i)}catch(Z){return s(Z)}var d=function(z){var q;if(!z)try{i.walkTokens&&Zr.walkTokens(u,i.walkTokens),q=r(u,i),i.hooks&&(q=i.hooks.postprocess(q))}catch(re){z=re}return i.highlight=l,z?s(z):o(null,q)};if(!l||l.length<3||(delete i.highlight,!u.length))return d();var h=0;return Zr.walkTokens(u,function(Z){"code"===Z.type&&(h++,setTimeout(function(){l(Z.text,Z.lang,function(z,q){if(z)return d(z);null!=q&&q!==Z.text&&(Z.text=q,Z.escaped=!0),0===--h&&d()})},0))}),void(0===h&&d())}if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(e):e).then(function(Z){return n(Z,i)}).then(function(Z){return i.walkTokens?Promise.all(Zr.walkTokens(Z,i.walkTokens)).then(function(){return Z}):Z}).then(function(Z){return r(Z,i)}).then(function(Z){return i.hooks?i.hooks.postprocess(Z):Z}).catch(s);try{i.hooks&&(e=i.hooks.preprocess(e));var g=n(e,i);i.walkTokens&&Zr.walkTokens(g,i.walkTokens);var C=r(g,i);return i.hooks&&(C=i.hooks.postprocess(C)),C}catch(Z){return s(Z)}}}function Zr(n,r,e){return Ise(gA.lex,vA.parse)(n,r,e)}(0,jw.Z)(bF,"passThroughHooks",new Set(["preprocess","postprocess"])),Zr.options=Zr.setOptions=function(n){return Zr.defaults=Vr(Vr({},Zr.defaults),n),function r8e(n){Sb=n}(Zr.defaults),Zr},Zr.getDefaults=bse,Zr.defaults=Sb,Zr.use=function(){for(var n=Zr.defaults.extensions||{renderers:{},childTokens:{}},r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];e.forEach(function(o){var a=Vr({},o);if(a.async=Zr.defaults.async||a.async||!1,o.extensions&&(o.extensions.forEach(function(re){if(!re.name)throw new Error("extension name required");if(re.renderer){var ae=n.renderers[re.name];n.renderers[re.name]=ae?function(){for(var Se=arguments.length,Ce=new Array(Se),Ee=0;Ee<Se;Ee++)Ce[Ee]=arguments[Ee];var Ve=re.renderer.apply(this,Ce);return!1===Ve&&(Ve=ae.apply(this,Ce)),Ve}:re.renderer}if(re.tokenizer){if(!re.level||"block"!==re.level&&"inline"!==re.level)throw new Error("extension level must be 'block' or 'inline'");n[re.level]?n[re.level].unshift(re.tokenizer):n[re.level]=[re.tokenizer],re.start&&("block"===re.level?n.startBlock?n.startBlock.push(re.start):n.startBlock=[re.start]:"inline"===re.level&&(n.startInline?n.startInline.push(re.start):n.startInline=[re.start]))}re.childTokens&&(n.childTokens[re.name]=re.childTokens)}),a.extensions=n),o.renderer){var s=Zr.defaults.renderer||new uW,l=function(ae){var Se=s[ae];s[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ve=0;Ve<Ce;Ve++)Ee[Ve]=arguments[Ve];var ut=o.renderer[ae].apply(s,Ee);return!1===ut&&(ut=Se.apply(s,Ee)),ut}};for(var u in o.renderer)l(u);a.renderer=s}if(o.tokenizer){var d=Zr.defaults.tokenizer||new lW,h=function(ae){var Se=d[ae];d[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ve=0;Ve<Ce;Ve++)Ee[Ve]=arguments[Ve];var ut=o.tokenizer[ae].apply(d,Ee);return!1===ut&&(ut=Se.apply(d,Ee)),ut}};for(var g in o.tokenizer)h(g);a.tokenizer=d}if(o.hooks){var C=Zr.defaults.hooks||new bF,Z=function(ae){var Se=C[ae];bF.passThroughHooks.has(ae)?C[ae]=function(Ce){if(Zr.defaults.async)return Promise.resolve(o.hooks[ae].call(C,Ce)).then(function(Ve){return Se.call(C,Ve)});var Ee=o.hooks[ae].call(C,Ce);return Se.call(C,Ee)}:C[ae]=function(){for(var Ce=arguments.length,Ee=new Array(Ce),Ve=0;Ve<Ce;Ve++)Ee[Ve]=arguments[Ve];var ut=o.hooks[ae].apply(C,Ee);return!1===ut&&(ut=Se.apply(C,Ee)),ut}};for(var z in o.hooks)Z(z);a.hooks=C}if(o.walkTokens){var q=Zr.defaults.walkTokens;a.walkTokens=function(re){var ae=[];return ae.push(o.walkTokens.call(this,re)),q&&(ae=ae.concat(q.call(this,re))),ae}}Zr.setOptions(a)})},Zr.walkTokens=function(n,r){var o,e=[],i=(0,xn.Z)(n);try{var a=function(){var l=o.value;switch(e=e.concat(r.call(Zr,l)),l.type){case"table":var d,u=(0,xn.Z)(l.header);try{for(u.s();!(d=u.n()).done;){var h=d.value;e=e.concat(Zr.walkTokens(h.tokens,r))}}catch(ae){u.e(ae)}finally{u.f()}var C,g=(0,xn.Z)(l.rows);try{for(g.s();!(C=g.n()).done;){var q,Z=C.value,z=(0,xn.Z)(Z);try{for(z.s();!(q=z.n()).done;){var re=q.value;e=e.concat(Zr.walkTokens(re.tokens,r))}}catch(ae){z.e(ae)}finally{z.f()}}}catch(ae){g.e(ae)}finally{g.f()}break;case"list":e=e.concat(Zr.walkTokens(l.items,r));break;default:Zr.defaults.extensions&&Zr.defaults.extensions.childTokens&&Zr.defaults.extensions.childTokens[l.type]?Zr.defaults.extensions.childTokens[l.type].forEach(function(ae){e=e.concat(Zr.walkTokens(l[ae],r))}):l.tokens&&(e=e.concat(Zr.walkTokens(l.tokens,r)))}};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}return e},Zr.parseInline=Ise(gA.lexInline,vA.parseInline),Zr.Parser=vA,Zr.parser=vA.parse,Zr.Renderer=uW,Zr.TextRenderer=Ase,Zr.Lexer=gA,Zr.lexer=gA.lex,Zr.Tokenizer=lW,Zr.Slugger=Ose,Zr.Hooks=bF,Zr.parse=Zr;Zr.options,Zr.setOptions,Zr.use,Zr.walkTokens,Zr.parseInline,vA.parse,gA.lex;var yA=function(){function n(r,e){(0,H.Z)(this,n),this.elementRef=r,this.renderer=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.updateText()}},{key:"ngOnChanges",value:function(){this.updateText()}},{key:"updateText",value:function(){var e=this.text;if(e&&e.length>0){var i=Zr(e);this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",i)}}}]),n}();function b8e(n,r){if(1&n&&(t.TgZ(0,"span"),t._UZ(1,"div",4),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.s9C("text",e.markdown)}}yA.\u0275fac=function(r){return new(r||yA)(t.Y36(t.SBq),t.Y36(t.Qsj))},yA.\u0275dir=t.lG2({type:yA,selectors:[["","appMarked",""]],inputs:{text:"text"},features:[t.TTD]});var bA=function(){function n(r){(0,H.Z)(this,n),this.projectService=r,this.markdown=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e.markdown=i)})}}]),n}();bA.\u0275fac=function(r){return new(r||bA)(t.Y36(Gs.Y))},bA.\u0275cmp=t.Xpm({type:bA,selectors:[["app-readme-editor"]],inputs:{controller:"controller",project:"project"},decls:5,vars:2,consts:[["label","Edit"],["matInput","","type","text",1,"editorWrapper",3,"ngModel","ngModelChange"],["label","Preview"],[4,"ngIf"],["appMarked","",1,"textWrapper",3,"text"]],template:function(r,e){1&r&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab",0)(2,"textarea",1),t.NdJ("ngModelChange",function(o){return e.markdown=o}),t.qZA()(),t.TgZ(3,"mat-tab",2),t.YNc(4,b8e,2,1,"span",3),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngModel",e.markdown),t.xp6(2),t.Q6J("ngIf",e.markdown))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,Kn,Zi.SP,Zi.uX,yA],styles:[".textWrapper,.editorWrapper{height:500px!important;overflow-y:scroll}\n"],encapsulation:2});var C8e=["editor"];function w8e(n,r){if(1&n&&(t.TgZ(0,"mat-tab",27),t._UZ(1,"app-readme-editor",28,29),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function k8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Name"),t.qZA())}function T8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.name," ")}}function M8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Value"),t.qZA())}function S8e(n,r){if(1&n&&(t.TgZ(0,"td",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.value)}}function E8e(n,r){1&n&&(t.TgZ(0,"th",30),t._uU(1,"Actions"),t.qZA())}function x8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",31)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteVariable(a))}),t.TgZ(2,"mat-icon",33),t._uU(3,"delete"),t.qZA()()()}}function D8e(n,r){1&n&&t._UZ(0,"tr",34)}function A8e(n,r){1&n&&t._UZ(0,"tr",35)}var CF=function(){return{standalone:!0}},CA=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.projectService=i,this.toasterService=o,this.nonNegativeValidator=a,this.displayedColumns=["name","value","actions"],this.variables=[],this.formGroup=this.formBuilder.group({projectName:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,a.get]),height:new J.p4("",[J.kI.required,a.get]),nodeGridSize:new J.p4("",[J.kI.required,a.get]),drawingGridSize:new J.p4("",[J.kI.required,a.get])}),this.variableFormGroup=this.formBuilder.group({name:new J.p4("",[J.kI.required]),value:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup.controls.projectName.setValue(this.project.name),this.formGroup.controls.width.setValue(this.project.scene_width),this.formGroup.controls.height.setValue(this.project.scene_height),this.formGroup.controls.nodeGridSize.setValue(this.project.grid_size),this.formGroup.controls.drawingGridSize.setValue(this.project.drawing_grid_size),this.project.variables&&this.project.variables.forEach(function(i){return e.variables.push(i)}),this.auto_close=!this.project.auto_close}},{key:"addVariable",value:function(){if(this.variableFormGroup.valid){var e={name:this.variableFormGroup.get("name").value,value:this.variableFormGroup.get("value").value};this.variables=this.variables.concat([e])}else this.toasterService.error("Fill all required fields with correct values.")}},{key:"deleteVariable",value:function(e){this.variables=this.variables.filter(function(i){return i!==e})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;this.formGroup.valid?(this.project.name=this.formGroup.get("projectName").value,this.project.scene_width=this.formGroup.get("width").value,this.project.scene_height=this.formGroup.get("height").value,this.project.drawing_grid_size=this.formGroup.get("drawingGridSize").value,this.project.grid_size=this.formGroup.get("nodeGridSize").value,this.project.variables=this.variables,this.project.auto_close=!this.auto_close,this.projectService.update(this.controller,this.project).subscribe(function(i){e.projectService.postReadmeFile(e.controller,e.project.project_id,e.editor.markdown).subscribe(function(o){e.toasterService.success("Project ".concat(i.name," updated.")),e.onNoClick()})})):this.toasterService.error("Fill all required fields with correct values.")}}]),n}();function O8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function I8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}CA.\u0275fac=function(r){return new(r||CA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Gs.Y),t.Y36(Ln),t.Y36(vf))},CA.\u0275cmp=t.Xpm({type:CA,selectors:[["app-edit-project-dialog"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(C8e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.editor=i.first))},decls:50,vars:18,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["label","General"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","projectName","placeholder","Project name","type","text"],["matInput","","formControlName","width","placeholder","Scene width (px)","type","number"],["matInput","","formControlName","height","placeholder","Scene height (px)","type","number"],["matInput","","formControlName","nodeGridSize","placeholder","Node grid size","type","number"],["matInput","","formControlName","drawingGridSize","placeholder","Drawing grid size","type","number"],[3,"ngModelOptions","ngModel","ngModelChange"],["label","Readme",4,"ngIf"],["label","Global variables"],["matInput","","formControlName","name","placeholder","Name","type","text"],["matInput","","formControlName","value","placeholder","Value","type","text"],["mat-button","","mat-raised-button","","color","primary",1,"form-field",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Readme"],[3,"controller","project"],["editor",""],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete variable","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete adapter"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Edit project"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group")(4,"mat-tab",2)(5,"form",3)(6,"mat-form-field",4),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",4),t._UZ(9,"input",6),t.qZA(),t.TgZ(10,"mat-form-field",4),t._UZ(11,"input",7),t.qZA(),t.TgZ(12,"mat-form-field",4),t._UZ(13,"input",8),t.qZA(),t.TgZ(14,"mat-form-field",4),t._UZ(15,"input",9),t.qZA()(),t.TgZ(16,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_open=o}),t._uU(17," Open this project in the background when GNS3 controller starts "),t.qZA(),t.TgZ(18,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.auto_start=o}),t._uU(19," Start all nodes when this project is opened "),t.qZA(),t.TgZ(20,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.auto_close=o}),t._uU(21," Leave this project running in the background after closing "),t.qZA(),t.TgZ(22,"mat-checkbox",10),t.NdJ("ngModelChange",function(o){return e.project.show_interface_labels=o}),t._uU(23," Show interface labels at start "),t.qZA()(),t.YNc(24,w8e,3,2,"mat-tab",11),t.TgZ(25,"mat-tab",12)(26,"form",3)(27,"mat-form-field",4),t._UZ(28,"input",13),t.qZA(),t.TgZ(29,"mat-form-field",4),t._UZ(30,"input",14),t.qZA()(),t.TgZ(31,"button",15),t.NdJ("click",function(){return e.addVariable()}),t._uU(32,"Add variable"),t.qZA(),t.TgZ(33,"table",16),t.ynx(34,17),t.YNc(35,k8e,2,0,"th",18),t.YNc(36,T8e,2,1,"td",19),t.BQk(),t.ynx(37,20),t.YNc(38,M8e,2,0,"th",18),t.YNc(39,S8e,2,1,"td",19),t.BQk(),t.ynx(40,21),t.YNc(41,E8e,2,0,"th",18),t.YNc(42,x8e,4,0,"td",19),t.BQk(),t.YNc(43,D8e,1,0,"tr",22),t.YNc(44,A8e,1,0,"tr",23),t.qZA()()()(),t.TgZ(45,"div",24)(46,"button",25),t.NdJ("click",function(){return e.onNoClick()}),t._uU(47,"Cancel"),t.qZA(),t.TgZ(48,"button",26),t.NdJ("click",function(){return e.onYesClick()}),t._uU(49,"Apply"),t.qZA()()),2&r&&(t.xp6(5),t.Q6J("formGroup",e.formGroup),t.xp6(11),t.Q6J("ngModelOptions",t.DdM(14,CF))("ngModel",e.project.auto_open),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,CF))("ngModel",e.project.auto_start),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,CF))("ngModel",e.auto_close),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,CF))("ngModel",e.project.show_interface_labels),t.xp6(2),t.Q6J("ngIf",e.controller&&e.project),t.xp6(2),t.Q6J("formGroup",e.variableFormGroup),t.xp6(7),t.Q6J("dataSource",e.variables),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,Cr,dr,$r,ui,Zi.SP,Zi.uX,bA],styles:["table[_ngcontent-%COMP%], .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 P8e=function(r){return{empty:r}},R8e=function(r){return{"is-invalid":r}},Jk=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.dialog=r,this.dialogRef=e,this.data=i,this.formBuilder=o,this.projectService=a,this.projectNameValidator=s,this.toasterService=l,this.uploadServiceService=u,this.snackBar=d,this.uploadProgress=0,this.isImportEnabled=!1,this.isFinishEnabled=!1,this.isDeleteVisible=!1,this.resultMessage="The project is being imported... Please wait",this.submitted=!1,this.isFirstStepCompleted=!1,this.onImportProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){var l=JSON.parse(o);e.resultMessage="An error has occurred: "+l.message,e.isFinishEnabled=!0},this.uploader.onCompleteItem=function(i,o,a,s){e.onImportProject.emit(e.uuid),e.resultMessage="Project was imported succesfully!",e.isFinishEnabled=!0},this.uploader.onProgressItem=function(i){e.uploadProgress=i.progress,e.uploadServiceService.processBarCount(e.uploadProgress)},this.uploadServiceService.currentCancelItemDetails.subscribe(function(i){i&&e.cancelUploading()})}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"uploadProjectFile",value:function(e){this.projectNameForm.controls.projectName.setValue(e.target.files[0].name.split(".")[0]),this.isImportEnabled=!0,this.isDeleteVisible=!0}},{key:"onImportClick",value:function(){var e=this;this.projectNameForm.invalid?this.submitted=!0:this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value,a=i.find(function(s){return s.name===o});a?e.openConfirmationDialog(a):e.importProject()})}},{key:"importProject",value:function(){var e=this.prepareUploadPath();this.uploader.queue.forEach(function(o){return o.url=e}),this.uploader.authToken="Bearer ".concat(this.controller.authToken),this.isFirstStepCompleted=!0;var i=this.uploader.queue[0];this.uploader.uploadItem(i),this.snackBar.openFromComponent(wm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Project"}})}},{key:"openConfirmationDialog",value:function(e){var i=this;this.dialog.open(Kk,{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=ts();var e=this.projectNameForm.controls.projectName.value;return this.projectService.getUploadPath(this.controller,this.uuid,e)}},{key:"cancelUploading",value:function(){this.uploader.clearQueue(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("File upload cancelled"),this.uploadServiceService.cancelFileUploading(!1),this.isFirstStepCompleted=!1,this.uploader.cancelAll(),this.dialogRef.close(!0)}}]),n}();Jk.\u0275fac=function(r){return new(r||Jk)(t.Y36(jr),t.Y36(cr),t.Y36(So),t.Y36(J.QS),t.Y36(Gs.Y),t.Y36(Gu),t.Y36(Ln),t.Y36(id),t.Y36(td))},Jk.\u0275cmp=t.Xpm({type:Jk,selectors:[["app-import-project-dialog"]],features:[t._Bn([Gu])],decls:27,vars:16,consts:[["mat-dialog-title",""],[3,"hidden"],[1,"file-name-form",3,"formGroup"],["type","file","accept",".gns3project, .gns3p","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary","matTooltip","Import your .gns3p or .gns3project file","matTooltipClass","custom-tooltip",1,"file-button",3,"click"],[1,"file-name-form-field",3,"ngClass"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass"],[4,"ngIf"],[1,"delete-button",3,"hidden"],["color","primary",1,"delete-icon",3,"click"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Import project"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"input",3,4),t.NdJ("change",function(a){return e.uploadProjectFile(a)}),t.qZA(),t.TgZ(6,"button",5),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(5);return t.KtG(a.click())}),t._uU(7," Choose file "),t.qZA(),t.TgZ(8,"mat-form-field",6),t._UZ(9,"input",7),t.YNc(10,O8e,2,0,"mat-error",8),t.YNc(11,I8e,2,0,"mat-error",8),t.qZA(),t.TgZ(12,"button",9)(13,"mat-icon",10),t.NdJ("click",function(){return e.onDeleteClick()}),t._uU(14,"clear"),t.qZA()(),t.TgZ(15,"div",11)(16,"button",12),t.NdJ("click",function(){return e.onNoClick()}),t._uU(17,"Cancel"),t.qZA(),t.TgZ(18,"button",13),t.NdJ("click",function(){return e.onImportClick()}),t._uU(19," Import "),t.qZA()()()(),t.TgZ(20,"div",1)(21,"div",14)(22,"span"),t._uU(23),t.qZA()(),t.TgZ(24,"div",11)(25,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(26," Finish "),t.qZA()()()}2&r&&(t.xp6(2),t.Q6J("hidden",e.isFirstStepCompleted),t.xp6(1),t.Q6J("formGroup",e.projectNameForm),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(4),t.Q6J("ngClass",t.VKq(12,P8e,!e.isDeleteVisible)),t.xp6(1),t.Q6J("ngClass",t.VKq(14,R8e,e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.required),t.xp6(1),t.Q6J("ngIf",e.form.projectName.errors&&e.form.projectName.errors.invalidName),t.xp6(1),t.Q6J("hidden",!e.isDeleteVisible),t.xp6(6),t.Q6J("disabled",!e.isImportEnabled),t.xp6(2),t.Q6J("hidden",!e.isFirstStepCompleted),t.xp6(3),t.Oqu(e.resultMessage),t.xp6(2),t.Q6J("disabled",!e.isFinishEnabled))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,Mp,kn.TO,kn.KE,cn,Dn,Kn,Cr,dr,ui],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 L8e=function(r){return{lightTheme:r}},Qk=function(){function n(r,e){(0,H.Z)(this,n),this.bottomSheetRef=r,this.themeService=e,this.projectMessage="",this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1}},{key:"onNoClick",value:function(){this.bottomSheetRef.dismiss(!1)}},{key:"onYesClick",value:function(){this.bottomSheetRef.dismiss(!0)}}]),n}();function Z8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is required"),t.qZA())}function N8e(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Project name is incorrect"),t.qZA())}Qk.\u0275fac=function(r){return new(r||Qk)(t.Y36(_F),t.Y36(Cc.f))},Qk.\u0275cmp=t.Xpm({type:Qk,selectors:[["app-navigation-dialog"]],decls:8,vars:4,consts:[[1,"dialogWrapper",3,"ngClass"],[1,"title"],["mat-button","",3,"click"],["mat-button","",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"No"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return e.onYesClick()}),t._uU(7,"Yes"),t.qZA()()()),2&r&&(t.Q6J("ngClass",t.VKq(2,L8e,e.isLightThemeEnabled)),t.xp6(2),t.hij("Do you want to navigate to ",e.projectMessage,"?"))},dependencies:[ge.mk,cn],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 B8e=function(r){return{"is-invalid":r}},wA=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.dialogRef=r,this.projectService=e,this.nodesDataSource=i,this.toasterService=o,this.formBuilder=a,this.projectNameValidator=s,this.onAddProject=new t.vpe,this.projectNameForm=this.formBuilder.group({projectName:new J.p4(null,[J.kI.required,s.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.projectNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.projectNameForm.invalid||this.projectService.list(this.controller).subscribe(function(i){var o=e.projectNameForm.controls.projectName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Project with this name already exists."):e.nodesDataSource.getItems().filter(function(s){return"started"===s.status&&"vpcs"===s.node_type||"started"===s.status&&"virtualbox"===s.node_type||"started"===s.status&&"vmware"===s.node_type}).length>0?e.toasterService.error("Please stop all nodes in order to save project."):e.addProject()})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"addProject",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.projectNameForm.controls.projectName.value).subscribe(function(i){e.dialogRef.close(),e.toasterService.success("Project ".concat(i.name," added"))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();wA.\u0275fac=function(r){return new(r||wA)(t.Y36(cr),t.Y36(Gs.Y),t.Y36(Ya.G),t.Y36(Ln),t.Y36(J.QS),t.Y36(Gu))},wA.\u0275cmp=t.Xpm({type:wA,selectors:[["app-save-project-dialog"]],features:[t._Bn([Gu])],decls:12,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","projectName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,Z8e,2,0,"mat-error",4),t.YNc(6,N8e,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(11,"Save project"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.projectNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,B8e,null==e.form.projectName?null:e.form.projectName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.projectName?null:e.form.projectName.touched)&&(null==e.form.projectName?null:e.form.projectName.errors)&&(null==e.form.projectName?null:e.form.projectName.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var Br=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getNodeById",value:function(e,i,o){return this.httpController.get(e,"/projects/".concat(i,"/nodes/").concat(o))}},{key:"isolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/isolate"),{})}},{key:"unisolate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/unisolate"),{})}},{key:"start",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/start"),{})}},{key:"startAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/start"),{})}},{key:"stop",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/stop"),{})}},{key:"stopAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/stop"),{})}},{key:"suspend",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/suspend"),{})}},{key:"suspendAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/suspend"),{})}},{key:"reload",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/reload"),{})}},{key:"reloadAll",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/reload"),{})}},{key:"resetAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/console/reset"),{})}},{key:"createFromTemplate",value:function(e,i,o,a,s,l){return l?this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:l}):this.httpController.post(e,"/projects/".concat(i.project_id,"/templates/").concat(o.template_id),{x:Math.round(a),y:Math.round(s),compute_id:"local"})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(l=Math.round((l+o.width/2)/i.grid_size)*i.grid_size,u=Math.round((u+o.height/2)/i.grid_size)*i.grid_size,l=Math.round(l-o.width/2),u=Math.round(u-o.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/nodes/").concat(o.node_id),{x:l,y:u})}},{key:"updateLabel",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{label:{rotation:o.rotation,style:o.style,text:o.text,x:Math.round(o.x),y:Math.round(o.y)}})}},{key:"updateSymbol",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{symbol:o})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"updateNode",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,locked:i.locked,name:i.name,properties:i.properties})}},{key:"updateNodeWithCustomAdapters",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id),{console_type:i.console_type,console_auto_start:i.console_auto_start,custom_adapters:i.custom_adapters,name:i.name,properties:i.properties})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"duplicate",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/duplicate"),{x:i.x+10,y:i.y+10,z:i.z})}},{key:"getNode",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id))}},{key:"getDefaultCommand",value:function(){return'putty.exe -telnet %h %p -wt "%d" -gns3 5 -skin 4'}},{key:"getNetworkConfiguration",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),{responseType:"text"})}},{key:"saveNetworkConfiguration",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i.project_id,"/nodes/").concat(i.node_id,"/files/etc/network/interfaces"),o)}},{key:"getStartupConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?o+="/files/startup.vpc":"iou"===i.node_type?o+="/files/startup-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"getPrivateConfiguration",value:function(e,i){var o="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?o+="/files/private-config.cfg":"dynamips"===i.node_type&&(o+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.get(e,o,{responseType:"text"})}},{key:"saveConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"vpcs"===i.node_type?a+="/files/startup.vpc":"iou"===i.node_type?a+="/files/startup-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_startup-config.cfg")),this.httpController.post(e,a,o)}},{key:"savePrivateConfiguration",value:function(e,i,o){var a="/projects/".concat(i.project_id,"/nodes/").concat(i.node_id);return"iou"===i.node_type?a+="/files/private-config.cfg":"dynamips"===i.node_type&&(a+="/files/configs/i".concat(i.node_id,"_private-config.cfg")),this.httpController.post(e,a,o)}}]),n}();function F8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start"),t.qZA()()}}Br.\u0275fac=function(r){return new(r||Br)(t.LFG(mo.zw))},Br.\u0275prov=t.Yz7({token:Br,factory:Br.\u0275fac});var kA=function(){function n(r,e){(0,H.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStoppedStatus=!1,this.nodes.forEach(function(o){("stopped"===o.status||"suspended"===o.status)&&(i.isNodeWithStoppedStatus=!0)}))}},{key:"startNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.start(e.controller,i).subscribe(function(o){},function(o){e.toasterService.error(o.error.message)})})}}]),n}();kA.\u0275fac=function(r){return new(r||kA)(t.Y36(Br),t.Y36(Ln))},kA.\u0275cmp=t.Xpm({type:kA,selectors:[["app-start-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,F8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStoppedStatus)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var TA=function(){function n(r,e){(0,H.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"isolate",value:function(){var e=this;this.nodeService.isolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();TA.\u0275fac=function(r){return new(r||TA)(t.Y36(Br),t.Y36(Ln))},TA.\u0275cmp=t.Xpm({type:TA,selectors:[["app-isolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.isolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_off"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Isolate"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var MA=function(){function n(r,e){(0,H.Z)(this,n),this.nodeService=r,this.toasterService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"unisolate",value:function(){var e=this;this.nodeService.unisolate(this.controller,this.node).subscribe(function(i){},function(i){e.toasterService.error(i.error.message)})}}]),n}();function U8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"stop"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop"),t.qZA()()}}MA.\u0275fac=function(r){return new(r||MA)(t.Y36(Br),t.Y36(Ln))},MA.\u0275cmp=t.Xpm({type:MA,selectors:[["app-unisolate-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.unisolate()}),t.TgZ(1,"mat-icon"),t._uU(2,"gps_not_fixed"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Un-isolate"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var SA=function(){function n(r){(0,H.Z)(this,n),this.nodeService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"stopNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.stop(e.controller,i).subscribe(function(o){})})}}]),n}();SA.\u0275fac=function(r){return new(r||SA)(t.Y36(Br))},SA.\u0275cmp=t.Xpm({type:SA,selectors:[["app-stop-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,U8e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var va=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.drawing_id}}]),e}(BB.o);va.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(va)))(e||va)}}(),va.\u0275prov=t.Yz7({token:va,factory:va.\u0275fac});var Ka=function(){function n(r,e){(0,H.Z)(this,n),this.httpController=r,this.svgToDrawingConverter=e}return(0,B.Z)(n,[{key:"add",value:function(e,i,o,a,s){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:s,x:Math.round(o),y:Math.round(a),z:1})}},{key:"duplicate",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/drawings"),{svg:o.svg,rotation:o.rotation,x:o.x+10,y:o.y+10,z:o.z})}},{key:"updatePosition",value:function(e,i,o,a,s){var l=Math.round(a),u=Math.round(s);return i.snap_to_grid&&(o.element=this.svgToDrawingConverter.convert(o.svg),l=Math.round((l+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,u=Math.round((u+o.element.width/2)/i.drawing_grid_size)*i.drawing_grid_size,l=Math.round(l-o.element.width/2),u=Math.round(u-o.element.height/2)),this.httpController.put(e,"/projects/".concat(o.project_id,"/drawings/").concat(o.drawing_id),{x:l,y:u})}},{key:"updateSizeAndPosition",value:function(e,i,o,a,s){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:s,x:Math.round(o),y:Math.round(a)})}},{key:"updateText",value:function(e,i,o){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{svg:o,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id),{locked:i.locked,svg:i.svg,rotation:i.rotation,x:Math.round(i.x),y:Math.round(i.y),z:i.z})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/projects/".concat(i.project_id,"/drawings/").concat(i.drawing_id))}},{key:"lockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/lock"),{})}},{key:"unLockAllNodes",value:function(e,i){return this.httpController.post(e,"/projects/".concat(i.project_id,"/unlock"),{})}}]),n}();Ka.\u0275fac=function(r){return new(r||Ka)(t.LFG(mo.zw),t.LFG(Wp))},Ka.\u0275prov=t.Yz7({token:Ka,factory:Ka.\u0275fac});var EA=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerDown",value:function(){var e=this;this.nodes.forEach(function(i){i.z--,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z--,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();EA.\u0275fac=function(r){return new(r||EA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Br),t.Y36(Ka))},EA.\u0275cmp=t.Xpm({type:EA,selectors:[["app-move-layer-down-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerDown()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_down"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer down"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var xA=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"moveLayerUp",value:function(){var e=this;this.nodes.forEach(function(i){i.z++,e.nodesDataSource.update(i),e.nodeService.update(e.controller,i).subscribe(function(o){})}),this.drawings.forEach(function(i){i.z++,e.drawingsDataSource.update(i),e.drawingService.update(e.controller,i).subscribe(function(o){})})}}]),n}();xA.\u0275fac=function(r){return new(r||xA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Br),t.Y36(Ka))},xA.\u0275cmp=t.Xpm({type:xA,selectors:[["app-move-layer-up-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.moveLayerUp()}),t.TgZ(1,"mat-icon"),t._uU(2,"keyboard_arrow_up"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Move layer up"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var hd=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i,o="";if(e.element instanceof mf)o="".concat(""==e.element.stroke_dasharray?'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'):'<rect fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" height="').concat(e.element.height,'" width="').concat(e.element.width,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" />'));else if(e.element instanceof ea)o="".concat(""==e.element.stroke_dasharray?'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'"/>'):'<ellipse fill="'.concat(e.element.fill,'" fill-opacity="').concat(e.element.fill_opacity,'" cx="').concat(e.element.cx,'" cy="').concat(e.element.cy,'" rx="').concat(e.element.rx,'" ry="').concat(e.element.ry,'" stroke="').concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" stroke-dasharray="').concat(e.element.stroke_dasharray,'" />'));else if(e.element instanceof _b)o='<line stroke="'.concat(e.element.stroke,'" stroke-width="').concat(e.element.stroke_width,'" x1="').concat(e.element.x1,'" x2="').concat(e.element.x2,'" y1="').concat(e.element.y1,'" y2="').concat(e.element.y2,'" stroke-dasharray="').concat(null!==(i=e.element.stroke_dasharray)&&void 0!==i?i:"none",'" />');else{if(!(e.element instanceof gb))return"";o='<text fill="'.concat(e.element.fill,'" fill-opacity="1.0" font-family="').concat(e.element.font_family,'" font-size="').concat(e.element.font_size,'" font-weight="').concat(e.element.font_weight,'">').concat(e.element.text,"</text>")}return'<svg height="'.concat(e.element.height,'" width="').concat(e.element.width,'">').concat(o,"</svg>")}}]),n}();hd.\u0275fac=function(r){return new(r||hd)},hd.\u0275prov=t.Yz7({token:hd,factory:hd.\u0275fac});var tv=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return+e.value>-360&&+e.value<=360?null:{negativeValue:!0}}}]),n}();tv.\u0275fac=function(r){return new(r||tv)},tv.\u0275prov=t.Yz7({token:tv,factory:tv.\u0275fac});var Xk=function(){return{standalone:!0}};function H8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.fill=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Xk))("ngModel",i.element.fill)}}function j8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function G8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.width=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Xk))("ngModel",i.element.width)}}function z8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.height=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Xk))("ngModel",i.element.height)}}function W8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",4)(1,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.element.rx=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModelOptions",t.DdM(2,Xk))("ngModel",i.element.rx)}}var DA=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.formBuilder=s,this.toasterService=l,this.nonNegativeValidator=u,this.rotationValidator=d,this.qtDasharrayFixer=h,this.borderTypes=[{qt:"none",value:"none",name:"Solid"},{qt:"10, 2",value:"25, 25",name:"Dash"},{qt:"4, 2",value:"5, 25",name:"Dot"},{qt:"12, 3, 5, 3",value:"5, 25, 25",name:"Dash Dot"},{qt:"12, 3, 5, 3, 5, 3",value:"25, 25, 5, 25, 5",name:"Dash Dot Dot"},{qt:"",value:"",name:"No border"}],this.formGroup=this.formBuilder.group({borderWidth:new J.p4("",[J.kI.required,u.get]),rotation:new J.p4("",[J.kI.required,d.get])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e,i;this.element=new V8e,this.drawing.element instanceof mf||this.drawing.element instanceof ea?(this.element.fill=this.drawing.element.fill,this.element.width=this.drawing.element.width,this.element.height=this.drawing.element.height,this.element.stroke=this.drawing.element.stroke,console.log(this.drawing.element.stroke_dasharray,this.drawing.element.stroke_width),this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(e=this.drawing.element.stroke_dasharray)&&void 0!==e?e:"none",this.element.stroke_width=this.drawing.element.stroke_width):this.drawing.element instanceof _b&&(this.element.stroke=this.drawing.element.stroke,this.element.stroke_dasharray=null==this.drawing.element.stroke_dasharray&&null==this.drawing.element.stroke_width?"":null!==(i=this.drawing.element.stroke_dasharray)&&void 0!==i?i:"none",this.element.stroke_width=this.drawing.element.stroke_width),this.drawing.element instanceof mf&&(this.element.rx=this.drawing.element.rx,this.element.ry=this.drawing.element.ry),void 0===this.element.stroke_width&&(this.element.stroke_width=0),this.formGroup.controls.borderWidth.setValue(this.element.stroke_width),this.formGroup.controls.rotation.setValue(this.drawing.rotation)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var i,o,e=this;if(this.formGroup.valid){""==this.element.stroke_dasharray?this.element.stroke_width=0:this.element.stroke_width=0===this.formGroup.get("borderWidth").value?2:this.formGroup.get("borderWidth").value,this.drawing.rotation=this.formGroup.get("rotation").value,this.drawing.element instanceof mf||this.drawing.element instanceof ea?(this.drawing.element.fill=this.element.fill,this.drawing.element.width=this.element.width,this.drawing.element.height=this.element.height,this.drawing.element.stroke=null!==(i=this.element.stroke)&&void 0!==i?i:"#000000",this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=this.element.stroke_width):this.drawing.element instanceof _b&&(""!=this.element.stroke_dasharray?(this.drawing.element.stroke=null!==(o=this.element.stroke)&&void 0!==o?o:"#000000",this.drawing.element.stroke_dasharray=""===this.element.stroke_dasharray?"none":this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width):this.toasterService.warning("No border style line element not supported"),this.drawing.element.stroke=this.element.stroke,this.drawing.element.stroke_dasharray=this.element.stroke_dasharray,this.drawing.element.stroke_width=0===this.element.stroke_width?2:this.element.stroke_width),this.drawing.element instanceof mf&&(this.drawing.element.rx=this.element.rx,this.drawing.element.ry=this.element.rx);var a=this.drawingToMapDrawingConverter.convert(this.drawing);a.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(a),this.drawingService.update(this.controller,this.drawing).subscribe(function(s){e.drawingsDataSource.update(s),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();DA.\u0275fac=function(r){return new(r||DA)(t.Y36(cr),t.Y36(Zm),t.Y36(hd),t.Y36(Ka),t.Y36(va),t.Y36(J.QS),t.Y36(Ln),t.Y36(vf),t.Y36(tv),t.Y36(ju))},DA.\u0275cmp=t.Xpm({type:DA,selectors:[["app-style-editor"]],decls:22,vars:12,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],["class","form-field",4,"ngIf"],[1,"form-field"],["matInput","","placeholder","Border color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","borderWidth","placeholder","Border width","type","number","min","0","max","100"],["placeholder","Border style",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","rotation","placeholder","Rotation","type","number"],["mat-dialog-actions","","align","end"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["matInput","","placeholder","Fill color","type","color",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value"],["matInput","","placeholder","Width","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Height","min","0","type","number",3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","placeholder","Corner radius","type","number","min","0","max","100",3,"ngModelOptions","ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2),t.YNc(4,H8e,2,3,"mat-form-field",3),t.TgZ(5,"mat-form-field",4)(6,"input",5),t.NdJ("ngModelChange",function(o){return e.element.stroke=o}),t.qZA()(),t.TgZ(7,"mat-form-field",4),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-form-field",4)(10,"mat-select",7),t.NdJ("ngModelChange",function(o){return e.element.stroke_dasharray=o}),t.YNc(11,j8e,2,2,"mat-option",8),t.qZA()(),t.YNc(12,G8e,2,3,"mat-form-field",3),t.YNc(13,z8e,2,3,"mat-form-field",3),t.YNc(14,W8e,2,3,"mat-form-field",3),t.TgZ(15,"mat-form-field",4),t._UZ(16,"input",9),t.qZA()()(),t.TgZ(17,"div",10)(18,"button",11),t.NdJ("click",function(){return e.onNoClick()}),t._uU(19,"Cancel"),t.qZA(),t.TgZ(20,"button",12),t.NdJ("click",function(){return e.onYesClick()}),t._uU(21,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.fill),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(10,Xk))("ngModel",e.element.stroke),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(11,Xk))("ngModel",e.element.stroke_dasharray),t.xp6(1),t.Q6J("ngForOf",e.borderTypes),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.width),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.height),t.xp6(1),t.Q6J("ngIf",void 0!==e.element.rx))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.Fd,J.On,J.sg,J.u,kn.KE,cn,Kn,Cr,dr,ni.gD,Vt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var V8e=(0,B.Z)(function n(){(0,H.Z)(this,n)});function Y8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editStyle())}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()()}}var AA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r,this.isImageDrawing=!1}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){this.isImageDrawing=this.drawing.element instanceof mF}},{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.drawing=this.drawing}}]),n}();function K8e(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}AA.\u0275fac=function(r){return new(r||AA)(t.Y36(jr))},AA.\u0275cmp=t.Xpm({type:AA,selectors:[["app-edit-style-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,Y8e,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.isImageDrawing)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var OA=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.linkService=o,this.linksDataSource=a,this.linksEventSource=s,this.linkToMapLink=l,this.nonNegativeValidator=u,this.borderTypes=["Solid","Dash","Dot","Dash Dot","Dash Dot Dot"],this.formGroup=this.formBuilder.group({color:new J.p4("",[J.kI.required]),width:new J.p4("",[J.kI.required,u.get]),type:new J.p4("",[J.kI.required])})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e,i;null!==(e=this.link.link_style)&&void 0!==e&&e.color?this.formGroup.controls.color.setValue(this.link.link_style.color):this.formGroup.controls.color.setValue("#000000"),this.formGroup.controls.width.setValue(this.link.link_style.width);var o=this.borderTypes[0];!(null===(i=this.link.link_style)||void 0===i)&&i.type&&(o=this.borderTypes[this.link.link_style.type]),this.formGroup.controls.type.setValue(o)}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){this.link.link_style.color=this.formGroup.get("color").value,this.link.link_style.width=this.formGroup.get("width").value;var i=this.borderTypes.indexOf(this.formGroup.get("type").value);this.link.link_style.type=i,this.linkService.updateLinkStyle(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.linksEventSource.edited.next(e.linkToMapLink.convert(o)),location.reload(),e.dialogRef.close()})}else this.toasterService.error("Entered data is incorrect")}}]),n}();OA.\u0275fac=function(r){return new(r||OA)(t.Y36(cr),t.Y36(J.QS),t.Y36(Ln),t.Y36(cl),t.Y36(Fm.F),t.Y36(fd),t.Y36(zg),t.Y36(vf))},OA.\u0275cmp=t.Xpm({type:OA,selectors:[["app-link-style-editor"]],decls:16,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"form-field"],["matInput","","placeholder","Color","formControlName","color","type","color"],["matInput","","formControlName","width","placeholder","Width","type","number"],["placeholder","Type","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Style editor"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3),t._UZ(5,"input",4),t.qZA(),t.TgZ(6,"mat-form-field",3),t._UZ(7,"input",5),t.qZA(),t.TgZ(8,"mat-form-field",3)(9,"mat-select",6),t.YNc(10,K8e,2,2,"mat-option",7),t.qZA()()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.formGroup),t.xp6(7),t.Q6J("ngForOf",e.borderTypes))},dependencies:[ge.sg,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Kn,Cr,dr,ni.gD,Vt.ey],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var IA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){}},{key:"editStyle",value:function(){var i=this.dialog.open(OA,{width:"800px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();IA.\u0275fac=function(r){return new(r||IA)(t.Y36(jr))},IA.\u0275cmp=t.Xpm({type:IA,selectors:[["app-edit-link-style-action"]],inputs:{controller:"controller",project:"project",link:"link"},features:[t.TTD],decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editStyle()}),t.TgZ(1,"mat-icon"),t._uU(2,"style"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit style"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var q8e=["textArea"],PA=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z){(0,H.Z)(this,n),this.dialogRef=r,this.drawingToMapDrawingConverter=e,this.mapDrawingToSvgConverter=i,this.drawingService=o,this.drawingsDataSource=a,this.renderer=s,this.nodeService=l,this.nodesDataSource=u,this.linkService=d,this.linksDataSource=h,this.formBuilder=g,this.toasterService=C,this.rotationValidator=Z,this.fontFixer=z}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.formGroup=this.formBuilder.group({rotation:new J.p4("",[J.kI.required,this.rotationValidator.get])}),this.label&&this.node?(this.isTextEditable=!1,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.linkNode&&this.link?(this.isTextEditable=!0,this.label=this.link.nodes.find(function(o){return o.node_id===e.linkNode.node_id}).label,this.rotation=this.label.rotation.toString(),this.element=this.getTextElementFromLabel()):this.drawing&&(this.isTextEditable=!0,this.rotation=this.drawing.rotation.toString(),this.element=this.drawing.element);var i={font_family:this.element.font_family,font_size:this.element.font_size,font_weight:this.element.font_weight};i=this.fontFixer.fix(i),this.formGroup.controls.rotation.setValue(this.rotation),this.renderer.setStyle(this.textArea.nativeElement,"color",this.element.fill),this.renderer.setStyle(this.textArea.nativeElement,"font-family",i.font_family),this.renderer.setStyle(this.textArea.nativeElement,"font-size","".concat(i.font_size,"pt")),this.renderer.setStyle(this.textArea.nativeElement,"font-weight",i.font_weight)}},{key:"getTextElementFromLabel",value:function(){var a,e=[],i=new gb,o=(0,xn.Z)(this.label.style.split(";"));try{for(o.s();!(a=o.n()).done;){var s=a.value;e.push({property:s.split(": ")[0],value:s.split(": ")[1]})}}catch(l){o.e(l)}finally{o.f()}return i.text=this.label.text?this.label.text:"",i.font_family=e.find(function(l){return"font-family"===l.property})?e.find(function(l){return"font-family"===l.property}).value:"TypeWriter",i.font_size=e.find(function(l){return"font-size"===l.property})?+e.find(function(l){return"font-size"===l.property}).value:10,i.font_weight=e.find(function(l){return"font-weight"===l.property})?e.find(function(l){return"font-weight"===l.property}).value:"normal",i.fill=e.find(function(l){return"fill"===l.property})?e.find(function(l){return"fill"===l.property}).value:"#000000",i.fill_opacity=e.find(function(l){return"fill-opacity"===l.property})?+e.find(function(l){return"fill-opacity"===l.property}).value:1,i}},{key:"getStyleFromTextElement",value:function(){return"font-family: ".concat(this.element.font_family,";font-size: ").concat(this.element.font_size,";font-weight: ").concat(this.element.font_weight,";fill: ").concat(this.element.fill,";fill-opacity: ").concat(this.element.fill_opacity,";")}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onYesClick",value:function(){var e=this;if(this.formGroup.valid){if(this.rotation=this.formGroup.get("rotation").value,this.label&&this.node)this.node.label.style=this.getStyleFromTextElement(),this.node.label.rotation=+this.rotation,this.nodeService.updateLabel(this.controller,this.node,this.node.label).subscribe(function(o){e.nodesDataSource.update(o),e.dialogRef.close()});else if(this.linkNode&&this.link)this.label.style=this.getStyleFromTextElement(),this.label.rotation=+this.rotation,this.label.text=this.element.text,this.linkService.updateLink(this.controller,this.link).subscribe(function(o){e.linksDataSource.update(o),e.dialogRef.close()});else if(this.drawing){this.drawing.rotation=+this.rotation,this.drawing.element=this.element;var i=this.drawingToMapDrawingConverter.convert(this.drawing);i.element=this.drawing.element,this.drawing.svg=this.mapDrawingToSvgConverter.convert(i),this.drawingService.update(this.controller,this.drawing).subscribe(function(o){e.drawingsDataSource.update(o),e.dialogRef.close()})}}else this.toasterService.error("Entered data is incorrect")}},{key:"changeTextColor",value:function(e){this.renderer.setStyle(this.textArea.nativeElement,"color",e)}}]),n}();PA.\u0275fac=function(r){return new(r||PA)(t.Y36(cr),t.Y36(Zm),t.Y36(hd),t.Y36(Ka),t.Y36(va),t.Y36(t.Qsj),t.Y36(Br),t.Y36(Ya.G),t.Y36(cl),t.Y36(Fm.F),t.Y36(J.QS),t.Y36(Ln),t.Y36(tv),t.Y36(is))},PA.\u0275cmp=t.Xpm({type:PA,selectors:[["app-text-editor"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(q8e,7),2&r)&&(t.iGM(i=t.CRH())&&(e.textArea=i.first))},decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Fill color","type","color",3,"ngModel","ngModelChange"],[3,"formGroup"],["formControlName","rotation","matInput","","placeholder","Rotation","type","text"],["id","textArea",1,"text",3,"ngModel","readonly","ngModelChange"],["textArea",""],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Text editor"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.changeTextColor(o)})("ngModelChange",function(o){return e.element.fill=o}),t.qZA()(),t.TgZ(5,"form",4)(6,"mat-form-field",2),t._UZ(7,"input",5),t.qZA()(),t.TgZ(8,"textarea",6,7),t.NdJ("ngModelChange",function(o){return e.element.text=o}),t.qZA()(),t.TgZ(10,"div",8)(11,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(14,"Apply"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.element.fill),t.xp6(1),t.Q6J("formGroup",e.formGroup),t.xp6(3),t.Q6J("ngModel",e.element.text)("readonly",!e.isTextEditable))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,Cr,dr],styles:[".item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.text[_ngcontent-%COMP%]{width:100%;height:150px}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.form-field[_ngcontent-%COMP%]{width:100%}"]});var RA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"editText",value:function(){var i=this.dialog.open(PA,{width:"300px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.drawing=this.drawing,i.node=this.node,i.label=this.label,i.link=this.link,i.linkNode=this.linkNode}}]),n}();RA.\u0275fac=function(r){return new(r||RA)(t.Y36(jr))},RA.\u0275cmp=t.Xpm({type:RA,selectors:[["app-edit-text-action"]],inputs:{controller:"controller",project:"project",drawing:"drawing",node:"node",label:"label",link:"link",linkNode:"linkNode"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.editText()}),t.TgZ(1,"mat-icon"),t._uU(2,"text_format"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit text"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var LA=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.toasterService=r,this.nodesDataSource=e,this.drawingsDataSource=i,this.linksDataSource=o,this.nodeService=a,this.drawingService=s,this.linkService=l,this.bottomSheet=u}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"confirmDelete",value:function(){var e=this;this.bottomSheet.open(pd);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){i.locked?e.toasterService.error("Cannot delete locked node: "+i.name):(e.nodesDataSource.remove(i),e.nodeService.delete(e.controller,i).subscribe(function(o){}))}),this.drawings.forEach(function(i){i.locked?e.toasterService.error("Cannot delete locked drawing"):(e.drawingsDataSource.remove(i),e.drawingService.delete(e.controller,i).subscribe(function(o){}))}),0==this.nodes.length&&0==this.drawings.length&&this.links.forEach(function(i){e.linksDataSource.remove(i),e.linkService.deleteLink(e.controller,i).subscribe(function(){})})}}]),n}();LA.\u0275fac=function(r){return new(r||LA)(t.Y36(Ln),t.Y36(Ya.G),t.Y36(va),t.Y36(Fm.F),t.Y36(Br),t.Y36(Ka),t.Y36(cl),t.Y36(gf))},LA.\u0275cmp=t.Xpm({type:LA,selectors:[["app-delete-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings",links:"links"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.confirmDelete()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Delete"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var ZA=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.nodeService=r,this.nodesDataSource=e,this.drawingService=i,this.drawingsDataSource=o,this.toasterService=a}return(0,B.Z)(n,[{key:"duplicate",value:function(){var a,e=this,i="",o=(0,xn.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,xn.Z)(this.drawings);try{for(l.s();!(u=l.n()).done;){var d=u.value;this.drawingService.duplicate(this.controller,d.project_id,d).subscribe(function(h){e.drawingsDataSource.add(h)})}}catch(h){l.e(h)}finally{l.f()}i.length>0&&(i=i.substring(0,i.length-2),this.toasterService.error("Cannot duplicate node data for nodes: ".concat(i)))}}]),n}();function J8e(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"h6"),t._uU(2),t.qZA(),t.TgZ(3,"span",6),t._uU(4),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.description," ")}}ZA.\u0275fac=function(r){return new(r||ZA)(t.Y36(Br),t.Y36(Ya.G),t.Y36(Ka),t.Y36(va),t.Y36(Ln))},ZA.\u0275cmp=t.Xpm({type:ZA,selectors:[["app-duplicate-action"]],inputs:{controller:"controller",project:"project",drawings:"drawings",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.duplicate()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Duplicate"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var NA=function(){function n(r){(0,H.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();function Q8e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"mat-form-field",10)(3,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.frequency_drop[0]=a)}),t.qZA()()(),t.TgZ(4,"mat-tab",12)(5,"mat-form-field",10)(6,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.packet_loss[0]=a)}),t.qZA()()(),t.TgZ(7,"mat-tab",14)(8,"mat-form-field",10)(9,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[0]=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",10)(11,"input",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.delay[1]=a)}),t.qZA()()(),t.TgZ(12,"mat-tab",17)(13,"mat-form-field",10)(14,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.corrupt[0]=a)}),t.qZA()()(),t.TgZ(15,"mat-tab",18)(16,"mat-form-field",10)(17,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.filters.bpf[0]=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.filters.frequency_drop[0]),t.xp6(3),t.Q6J("ngModel",i.filters.packet_loss[0]),t.xp6(3),t.Q6J("ngModel",i.filters.delay[0]),t.xp6(2),t.Q6J("ngModel",i.filters.delay[1]),t.xp6(3),t.Q6J("ngModel",i.filters.corrupt[0]),t.xp6(3),t.Q6J("ngModel",i.filters.bpf[0])}}NA.\u0275fac=function(r){return new(r||NA)(t.Y36(cr))},NA.\u0275cmp=t.Xpm({type:NA,selectors:[["app-help-dialog"]],inputs:{title:"title",messages:"messages"},decls:7,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["class","message",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],[1,"message"],[1,"description"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,J8e,5,2,"div",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(6,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.title),t.xp6(2),t.Q6J("ngForOf",e.messages))},dependencies:[ge.sg,cn,Cr,dr],styles:[".message[_ngcontent-%COMP%]{margin-bottom:10px}.description[_ngcontent-%COMP%]{color:#b0bec5}"]});var BA=function(){function n(r,e,i){(0,H.Z)(this,n),this.dialogRef=r,this.linkService=e,this.dialog=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkService.getLink(this.controller,this.link.project_id,this.link.link_id).subscribe(function(i){e.link=i,e.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},e.link.filters&&(e.filters.bpf=e.link.filters.bpf?e.link.filters.bpf:[],e.filters.corrupt=e.link.filters.corrupt?e.link.filters.corrupt:[0],e.filters.delay=e.link.filters.delay?e.link.filters.delay:[0,0],e.filters.frequency_drop=e.link.filters.frequency_drop?e.link.filters.frequency_drop:[0],e.filters.packet_loss=e.link.filters.packet_loss?e.link.filters.packet_loss:[0])}),this.linkService.getAvailableFilters(this.controller,this.link).subscribe(function(i){e.availableFilters=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onResetClick",value:function(){var e=this;this.link.filters={bpf:[],corrupt:[0],delay:[0,0],frequency_drop:[0],packet_loss:[0]},this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onYesClick",value:function(){var e=this;this.link.filters=this.filters,this.linkService.updateLink(this.controller,this.link).subscribe(function(i){e.dialogRef.close()})}},{key:"onHelpClick",value:function(){var i=this.dialog.open(NA,{width:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.title="Help for filters";var o=[];this.availableFilters.forEach(function(a){o.push({name:a.name,description:a.description})}),i.messages=o}}]),n}();BA.\u0275fac=function(r){return new(r||BA)(t.Y36(cr),t.Y36(cl),t.Y36(jr))},BA.\u0275cmp=t.Xpm({type:BA,selectors:[["app-packet-filters"]],decls:16,vars:1,consts:[["mat-dialog-title",""],[1,"content"],[4,"ngIf"],[1,"bottom-bar"],[1,"spacer"],["mat-dialog-actions","","layout","row",1,"dialog-actions"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"divider"],["label","Frequency drop"],[1,"input-field"],["matInput","","placeholder","Frequency","type","number",3,"ngModel","ngModelChange"],["label","Packet loss"],["matInput","","placeholder","Chance","type","number",3,"ngModel","ngModelChange"],["label","Delay"],["matInput","","placeholder","Latency","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Jitter","type","number",3,"ngModel","ngModelChange"],["label","Corrupt"],["label","Berkeley Packet Filter (BPF)"],["matInput","","type","text",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet filters"),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,Q8e,18,6,"mat-tab-group",2),t.qZA(),t.TgZ(4,"div",3),t._UZ(5,"div",4),t.TgZ(6,"div",5)(7,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(8,"Cancel"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){return e.onResetClick()}),t._uU(10,"Reset"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onYesClick()}),t._uU(12,"Apply"),t.qZA(),t._UZ(13,"div",8),t.TgZ(14,"button",6),t.NdJ("click",function(){return e.onHelpClick()}),t._uU(15,"Help"),t.qZA()()()),2&r&&(t.xp6(3),t.Q6J("ngIf",e.filters))},dependencies:[ge.O5,J.Fj,J.wV,J.JJ,J.On,kn.KE,cn,Kn,Cr,dr,Zi.SP,Zi.uX],styles:[".spacer[_ngcontent-%COMP%]{flex-grow:1}.content[_ngcontent-%COMP%]{height:260px}.item[_ngcontent-%COMP%]{height:25px;font-size:10pt;margin-bottom:10px}.item-name[_ngcontent-%COMP%]{margin-bottom:10px}.item-value[_ngcontent-%COMP%]{width:100%;margin-bottom:10px}.input-field[_ngcontent-%COMP%]{width:100%;margin-top:10px}.divider[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;flex:1 1 auto}.input-color[_ngcontent-%COMP%]{padding:0;border-width:0px;width:100%;background-color:transparent;outline:none}input[_ngcontent-%COMP%]:focus{outline:none}input[type=color][_ngcontent-%COMP%]{-webkit-appearance:none;border:none;height:25px}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch-wrapper{padding:0}input[type=color][_ngcontent-%COMP%]::-webkit-color-swatch{border:none}.modal-form-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-form-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}"]});var FA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"openPacketFilters",value:function(){var i=this.dialog.open(BA,{width:"900px",height:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();FA.\u0275fac=function(r){return new(r||FA)(t.Y36(jr))},FA.\u0275cmp=t.Xpm({type:FA,selectors:[["app-packet-filters-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openPacketFilters()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_list"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Packet filters"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var tT,kF,$k={UKNOWN:"Unknown"},cW={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:$k.UKNOWN},wF={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")},eT={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},nv={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:$k.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"},Pse=[nv.PS4,nv.CHROME_BOOK,nv.MAC,nv.DELL,nv.ASUS,nv.UNKNOWN],X8e={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:$k.UKNOWN},$8e={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:$k.UKNOWN.toLowerCase()},Rse={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/},tUe=Object.assign(Object.assign(Object.assign(Object.assign({},wF),eT),Rse),{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/]}}]}}),dW={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)/},fW={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/},nUe=Object.keys(dW).reduce(function(n,r){return n[r]=dW[r],n},{}),Lse=Object.keys(fW).reduce(function(n,r){return n[cW[r]]=fW[r],n},{}),Kp=Object.freeze({__proto__:null,GENERAL:$k,BROWSERS:cW,MOBILES_RE:wF,TABLETS_RE:eT,DEVICES:nv,DESKTOP_DEVICES:Pse,OS:X8e,OS_VERSIONS:$8e,OS_RE:Rse,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:tUe,OS_VERSIONS_RE_MAP:dW,BROWSER_VERSIONS_RE_MAP:fW,OS_VERSIONS_RE:nUe,BROWSER_VERSIONS_RE:Lse}),rUe=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"test",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.test(e):i&&Array.isArray(i.and)?i.and.every(function(a){return o.test(e,a)}):i&&Array.isArray(i.or)?i.or.some(function(a){return o.test(e,a)}):!(!i||!i.not)&&!this.test(e,i.not)}},{key:"exec",value:function(e,i){var o=this;return"string"==typeof i&&(i=new RegExp(i)),i instanceof RegExp?i.exec(e):i&&Array.isArray(i)?i.reduce(function(a,s){return a||o.exec(e,s)},null):null}}]),n}();!function(n){n.Mobile="mobile",n.Tablet="tablet",n.Desktop="desktop",n.Unknown="unknown"}(tT||(tT={})),function(n){n.Portrait="portrait",n.Landscape="landscape"}(kF||(kF={}));var pW="iPad",rv=function(){function n(r){(0,H.Z)(this,n),this.platformId=r,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new rUe,this.deviceType="",this.orientation="",(0,ge.NF)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return(0,B.Z)(n,[{key:"setDeviceInfo",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;i!==this.userAgent&&(this.userAgent=i);var o=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).reduce(function(u,d){return"device"===Kp[l.const][d]&&(0,ge.NF)(e.platformId)&&(e.reTree.test(e.userAgent,eT[pW])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(u[Kp[l.const][d]]=pW,Object):(u[Kp[l.const][d]]=e.reTree.test(i,Kp["".concat(l.const,"_RE")][d]),u)},{})}),o.forEach(function(l){e[l.prop]=Object.keys(Kp[l.const]).map(function(u){return Kp[l.const][u]}).reduce(function(u,d){return"device"===l.prop&&u===Kp[l.const].ANDROID?e[l.prop][d]?d:u:u===Kp[l.const].UNKNOWN&&e[l.prop][d]?d:u},Kp[l.const].UNKNOWN)}),this.browser_version="0",this.browser!==cW.UNKNOWN){var a=Lse[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?kF.Landscape:kF.Portrait:this.orientation=$k.UKNOWN,this.deviceType=this.isTablet()?tT.Tablet:this.isMobile(this.userAgent)?tT.Mobile:this.isDesktop(this.userAgent)?tT.Desktop:tT.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(wF).find(function(a){return e.reTree.test(i,wF[a])});return!!o}},{key:"isTablet",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;if((0,ge.NF)(this.platformId)&&(this.reTree.test(this.userAgent,eT[pW])||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))return!0;var o=Object.keys(eT).find(function(a){return!!e.reTree.test(i,eT[a])});return!!o}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==nv.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&Pse.indexOf(this.device)>-1}}]),n}();rv.\u0275fac=function(r){return new(r||rv)(t.LFG(t.Lbi))},rv.\u0275prov=t.Yz7({token:rv,factory:rv.\u0275fac,providedIn:"root"});var Hm=function(){function n(r,e){(0,H.Z)(this,n),this.toasterService=r,this.deviceService=e}return(0,B.Z)(n,[{key:"createHiddenIframe",value:function(e,i){var o=document.createElement("iframe");return o.src=i,o.id="hiddenIframe",o.style.display="none",e.appendChild(o),o}},{key:"openUriUsingFirefox",value:function(e){var i=document.querySelector("#hiddenIframe");i||(i=this.createHiddenIframe(document.body,"about:blank"));try{i.contentWindow.location.href=e}catch(o){"NS_ERROR_UNKNOWN_PROTOCOL"===o.name&&this.toasterService.error("Protocol handler does not exist")}}},{key:"open",value:function(e){var i=this.deviceService.getDeviceInfo();console.log("Launching external protocol handler with "+i.browser+": "+e),"Firefox"===i.browser?this.openUriUsingFirefox(e):location.assign(e)}}]),n}();Hm.\u0275fac=function(r){return new(r||Hm)(t.LFG(Ln),t.LFG(rv))},Hm.\u0275prov=t.Yz7({token:Hm,factory:Hm.\u0275fac});var iv=function(){function n(r){(0,H.Z)(this,n),this.protocolHandlerService=r}return(0,B.Z)(n,[{key:"startCapture",value:function(e,i,o,a){var s="gns3+pcap://".concat(e.host,":").concat(e.port,"?protocol=").concat(e.protocol.slice(0,-1),"&project_id=").concat(i.project_id,"&link_id=").concat(o.link_id,"&project=").concat(i.name,"&name=").concat(a);this.protocolHandlerService.open(s)}}]),n}();function iUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}iv.\u0275fac=function(r){return new(r||iv)(t.LFG(Hm))},iv.\u0275prov=t.Yz7({token:iv,factory:iv.\u0275fac});var oUe=function(){return{standalone:!0}},UA=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.dialogRef=r,this.linkService=e,this.formBuilder=i,this.toasterService=o,this.nodesDataSource=a,this.packetCaptureService=s,this.linkTypes=[],this.inputForm=this.formBuilder.group({linkType:new J.p4("",J.kI.required),fileName:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){"ethernet"===this.link.link_type?this.linkTypes=[["Ethernet","DLT_EN10MB"]]:this.linkTypes=[["Cisco HDLC","DLT_C_HDLC"],["Cisco PPP","DLT_PPP_SERIAL"],["Frame Relay","DLT_FRELAY"],["ATM","DLT_ATM_RFC1483"]];var e=this.nodesDataSource.get(this.link.nodes[0].node_id),i=this.nodesDataSource.get(this.link.nodes[1].node_id),o=e.ports[this.link.nodes[0].port_number],a=i.ports[this.link.nodes[1].port_number];this.inputForm.controls.fileName.setValue("".concat(e.name,"_").concat(o.name,"_to_").concat(i.name,"_").concat(a.name).replace(new RegExp("[^0-9A-Za-z_-]","g"),""))}},{key:"onYesClick",value:function(){var e=this,i=!1;if(this.link.nodes.forEach(function(a){"started"===e.nodesDataSource.get(a.node_id).status&&(i=!0)}),i)if(this.inputForm.invalid)this.toasterService.error("Fill all required fields");else{var o={capture_file_name:this.inputForm.get("fileName").value,data_link_type:this.inputForm.get("linkType").value};this.startProgram&&this.packetCaptureService.startCapture(this.controller,this.project,this.link,o.capture_file_name),this.linkService.startCaptureOnLink(this.controller,this.link,o).subscribe(function(){e.dialogRef.close()})}else this.toasterService.error("Cannot capture because there is no running device on this link")}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function aUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"loupe"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start capture"),t.qZA()()}}UA.\u0275fac=function(r){return new(r||UA)(t.Y36(cr),t.Y36(cl),t.Y36(J.QS),t.Y36(Ln),t.Y36(Ya.G),t.Y36(iv))},UA.\u0275cmp=t.Xpm({type:UA,selectors:[["app-start-capture"]],decls:16,vars:5,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[3,"formGroup"],[1,"input-field"],["placeholder","Link type","formControlName","linkType","ngDefaultControl",""],[3,"value",4,"ngFor","ngForOf"],["placeholder","File name","formControlName","fileName","matInput","","type","text"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Packet capture"),t.qZA(),t.TgZ(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-select",4),t.YNc(6,iUe,2,2,"mat-option",5),t.qZA()(),t.TgZ(7,"mat-form-field",3),t._UZ(8,"input",6),t.qZA(),t.TgZ(9,"mat-checkbox",7),t.NdJ("ngModelChange",function(o){return e.startProgram=o}),t._uU(10," Start the capture visualization program "),t.qZA()()(),t.TgZ(11,"div",8)(12,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",10),t.NdJ("click",function(){return e.onYesClick()}),t._uU(15,"Ok"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngForOf",e.linkTypes),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(4,oUe))("ngModel",e.startProgram))},dependencies:[ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,Cr,dr,$r,ni.gD,Vt.ey],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var HA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"startCapture",value:function(){var i=this.dialog.open(UA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.link=this.link}}]),n}();function sUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.stopCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause_circle_filled"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Stop capture"),t.qZA()()}}HA.\u0275fac=function(r){return new(r||HA)(t.Y36(jr))},HA.\u0275cmp=t.Xpm({type:HA,selectors:[["app-start-capture-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,aUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.capturing)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var jA=function(){function n(r){(0,H.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"stopCapture",value:function(){this.linkService.stopCaptureOnLink(this.controller,this.link).subscribe(function(){})}}]),n}();function lUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.resumeLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"play_arrow"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Resume"),t.qZA()()}}jA.\u0275fac=function(r){return new(r||jA)(t.Y36(cl))},jA.\u0275cmp=t.Xpm({type:jA,selectors:[["app-stop-capture-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,sUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var GA=function(){function n(r){(0,H.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"resumeLink",value:function(){this.link.suspend=!1,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();function uUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendLink())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}GA.\u0275fac=function(r){return new(r||GA)(t.Y36(cl))},GA.\u0275cmp=t.Xpm({type:GA,selectors:[["app-resume-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,lUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.suspend)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var zA=function(){function n(r){(0,H.Z)(this,n),this.linkService=r}return(0,B.Z)(n,[{key:"suspendLink",value:function(){this.link.suspend=!0,this.linkService.updateLink(this.controller,this.link).subscribe(function(){})}}]),n}();zA.\u0275fac=function(r){return new(r||zA)(t.Y36(cl))},zA.\u0275cmp=t.Xpm({type:zA,selectors:[["app-suspend-link-action"]],inputs:{controller:"controller",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,uUe,5,0,"button",0),2&r&&t.Q6J("ngIf",!e.link.suspend)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var jm=m(9449),WA=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.electronService=r,this.controllerService=e,this.settingsService=i,this.toasterService=o,this.nodeService=a}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"console",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),0!==this.nodes.filter(function(g){return"started"===g.status&&"none"!==g.console_type}).length){h.next=5;break}return this.toasterService.error("Device needs to be started in order to console to it."),h.abrupt("return");case 5:a=(0,xn.Z)(this.nodes),h.prev=6,a.s();case 8:if((s=a.n()).done){h.next=17;break}if("started"===(l=s.value).status||"none"===l.console_type){h.next=12;break}return h.abrupt("continue",15);case 12:return u={command:i,type:l.console_type,host:l.console_host,port:l.console,name:l.name,project_id:l.project_id,node_id:l.node_id,controller_url:this.controllerService.getControllerUrl(this.controller)},h.next=15,this.openConsole(u);case 15:h.next=8;break;case 17:h.next=22;break;case 19:h.prev=19,h.t0=h.catch(6),a.e(h.t0);case 22:return h.prev=22,a.f(),h.finish(22);case 25:case"end":return h.stop()}},e,this,[[6,19,22,25]])}))}},{key:"openConsole",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./console-executor.js").openConsole(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}}]),n}();WA.\u0275fac=function(r){return new(r||WA)(t.Y36(al),t.Y36(rr),t.Y36(jm.g),t.Y36(Ln),t.Y36(Br))},WA.\u0275cmp=t.Xpm({type:WA,selectors:[["app-console-device-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.console()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var Eb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getInfoAboutNode",value:function(e,i){var o=[];return"cloud"===e.node_type?o.push("Cloud ".concat(e.name," is always on.")):"nat"===e.node_type?o.push("NAT ".concat(e.name," is always on.")):"ethernet-hub"===e.node_type?o.push("Ethernet hub ".concat(e.name," is always on.")):"ethernet_switch"===e.node_type?o.push("Ethernet switch ".concat(e.name," is always on.")):"frame_relay_switch"===e.node_type?o.push("Frame relay switch ".concat(e.name," is always on.")):"atm_switch"===e.node_type?o.push("ATM switch ".concat(e.name," is always on.")):"docker"===e.node_type?o.push("Docker ".concat(e.name," is ").concat(e.status,".")):"dynamips"===e.node_type?o.push("Dynamips ".concat(e.name," is always on.")):"virtualbox"===e.node_type?o.push("VirtualBox VM ".concat(e.name," is ").concat(e.status,".")):"vmware"===e.node_type?o.push("VMware VM ".concat(e.name," is ").concat(e.status,".")):"qemu"===e.node_type?o.push("QEMU VM ".concat(e.name," is ").concat(e.status,".")):"iou"===e.node_type?o.push("IOU ".concat(e.name," is always on.")):"vpcs"===e.node_type&&o.push("Node ".concat(e.name," is ").concat(e.status,".")),o.push("Running on controller ".concat(i.name," with port ").concat(i.port,".")),o.push("Controller ID is ".concat(i.id,".")),"none"!==e.console_type&&"null"!==e.console_type&&o.push("Console is on port ".concat(e.console," and type is ").concat(e.console_type,".")),e.ports.forEach(function(a){o.push("Port ".concat(a.name," is ").concat(a.link_type,"."))}),o}},{key:"getInfoAboutPorts",value:function(e){var i="Ports: ";return e.forEach(function(o){i+="link_type: ".concat(o.link_type,",\n\n name: ").concat(o.name,"; ")}),i=i.substring(0,i.length-2)}},{key:"getCommandLine",value:function(e){return"cloud"===e.node_type||"nat"===e.node_type||"ethernet_hub"===e.node_type||"ethernet_switch"===e.node_type||"frame_relay_switch"===e.node_type||"atm_switch"===e.node_type||"dynamips"===e.node_type||"iou"===e.node_type?"Command line information is not supported for this type of node.":e.command_line?e.command_line:"Please start the node in order to get the command line information."}}]),n}();function cUe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e," ")}}Eb.\u0275fac=function(r){return new(r||Eb)},Eb.\u0275prov=t.Yz7({token:Eb,factory:Eb.\u0275fac});var VA=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.infoService=e,this.infoList=[],this.usage="",this.commandLine=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.infoList=this.infoService.getInfoAboutNode(this.node,this.controller),this.commandLine=this.infoService.getCommandLine(this.node),this.usage=this.node.usage?this.node.usage:"No usage information has been provided for this node."}},{key:"onCloseClick",value:function(){this.dialogRef.close()}}]),n}();VA.\u0275fac=function(r){return new(r||VA)(t.Y36(cr),t.Y36(Eb))},VA.\u0275cmp=t.Xpm({type:VA,selectors:[["app-info-dialog"]],inputs:{controller:"controller",node:"node"},decls:16,vars:4,consts:[["mat-dialog-title",""],[1,"modal-form-container"],["animationDuration","0ms"],["label","General information"],[1,"textBox"],[4,"ngFor","ngForOf"],["label","Usage instructions"],["label","Command line"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"mat-tab-group",2)(4,"mat-tab",3)(5,"div",4),t.YNc(6,cUe,2,1,"div",5),t.qZA()(),t.TgZ(7,"mat-tab",6)(8,"div",4),t._uU(9),t.qZA()(),t.TgZ(10,"mat-tab",7)(11,"div",4),t._uU(12),t.qZA()()()(),t.TgZ(13,"div",8)(14,"button",9),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(15,"Close"),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.node.name),t.xp6(5),t.Q6J("ngForOf",e.infoList),t.xp6(3),t.hij(" ",e.usage," "),t.xp6(3),t.hij(" ",e.commandLine," "))},dependencies:[ge.sg,cn,Cr,dr,Zi.SP,Zi.uX],styles:[".textBox[_ngcontent-%COMP%]{margin-top:10px}"]});var YA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"showNode",value:function(){var i=this.dialog.open(VA,{width:"600px",maxHeight:"600px",autoFocus:!1,disableClose:!0}).componentInstance;i.node=this.node,i.controller=this.controller}}]),n}();function dUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",6)(1,"textarea",7,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.config)}}function fUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9)(2,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.config=a)}),t.qZA()(),t.TgZ(4,"mat-tab",11)(5,"textarea",10,8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.privateConfig=a)}),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngModel",i.config),t.xp6(3),t.Q6J("ngModel",i.privateConfig)}}YA.\u0275fac=function(r){return new(r||YA)(t.Y36(jr))},YA.\u0275cmp=t.Xpm({type:YA,selectors:[["app-show-node-action"]],inputs:{node:"node",controller:"controller"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.showNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"info"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Show node information"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var KA=function(){function n(r,e,i){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(i){e.config=i}),("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&this.nodeService.getPrivateConfiguration(this.controller,this.node).subscribe(function(i){e.privateConfig=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveConfiguration(this.controller,this.node,this.config).subscribe(function(i){"iou"===e.node.node_type||"dynamips"===e.node.node_type?e.nodeService.savePrivateConfiguration(e.controller,e.node,e.privateConfig).subscribe(function(o){e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))}):(e.dialogRef.close(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved.")))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function pUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.editConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"settings"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Edit config"),t.qZA()()}}KA.\u0275fac=function(r){return new(r||KA)(t.Y36(cr),t.Y36(Br),t.Y36(Ln))},KA.\u0275cmp=t.Xpm({type:KA,selectors:[["app-config-editor"]],decls:9,vars:3,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["id","textArea",1,"textArea",3,"ngModel","ngModelChange"],["textArea",""],["label","Startup config"],["id","textArea",1,"textAreaTab",3,"ngModel","ngModelChange"],["label","Private config"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,dUe,3,1,"div",1),t.YNc(3,fUe,7,2,"mat-tab-group",2),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(8,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf","vpcs"===e.node.node_type),t.xp6(1),t.Q6J("ngIf","iou"===e.node.node_type||"dynamips"===e.node.node_type))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,cn,Cr,dr,Zi.SP,Zi.uX],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}.textAreaTab[_ngcontent-%COMP%]{width:100%;height:300px}"]});var qA=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"editConfig",value:function(){var i=this.dialog.open(KA,{width:"600px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project,i.node=this.node}}]),n}();qA.\u0275fac=function(r){return new(r||qA)(t.Y36(jr))},qA.\u0275cmp=t.Xpm({type:qA,selectors:[["app-edit-config-action"]],inputs:{controller:"controller",project:"project",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,pUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"iou"===e.node.node_type||"dynamips"===e.node.node_type)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var JA=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"bringToFront",value:function(){var e=this,i=Math.max.apply(Math,(0,pn.Z)(this.nodes.map(function(s){return s.z}))),o=Math.max.apply(Math,(0,pn.Z)(this.drawings.map(function(s){return s.z}))),a=Math.max(i,o);a<100&&a++,this.nodes.forEach(function(s){s.z=a,e.nodesDataSource.update(s),e.nodeService.update(e.controller,s).subscribe(function(l){})}),this.drawings.forEach(function(s){s.z=a,e.drawingsDataSource.update(s),e.drawingService.update(e.controller,s).subscribe(function(l){})})}}]),n}();JA.\u0275fac=function(r){return new(r||JA)(t.Y36(Ya.G),t.Y36(va),t.Y36(Br),t.Y36(Ka))},JA.\u0275cmp=t.Xpm({type:JA,selectors:[["app-bring-to-front-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.bringToFront()}),t.TgZ(1,"mat-icon"),t._uU(2,"vertical_align_top"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Bring to front"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var nT=function(){function n(r){(0,H.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"close",value:function(e){this.dialogRef.close(e)}}]),n}();function hUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.exportConfig())}),t.TgZ(1,"mat-icon"),t._uU(2,"call_made"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Export config"),t.qZA()()}}nT.\u0275fac=function(r){return new(r||nT)(t.Y36(cr))},nT.\u0275cmp=t.Xpm({type:nT,selectors:[["app-config-dialog"]],decls:10,vars:0,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"container"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Choose configuration file"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div")(5,"button",3),t.NdJ("click",function(){return e.close("startup-config")}),t._uU(6,"startup configuration"),t.qZA()(),t.TgZ(7,"div")(8,"button",3),t.NdJ("click",function(){return e.close("private-config")}),t._uU(9,"private configuration"),t.qZA()()()())},dependencies:[cn,Cr],styles:[".container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}"]});var QA=function(){function n(r,e){(0,H.Z)(this,n),this.nodeService=r,this.dialog=e}return(0,B.Z)(n,[{key:"exportConfig",value:function(){var e=this;if("vpcs"===this.node.node_type)this.nodeService.getStartupConfiguration(this.controller,this.node).subscribe(function(a){e.downloadByHtmlTag(a)});else{var i=this.dialog.open(nT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){"startup-config"===a?e.nodeService.getStartupConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)}):"private-config"===a&&e.nodeService.getPrivateConfiguration(e.controller,e.node).subscribe(function(s){e.downloadByHtmlTag(s)})})}}},{key:"downloadByHtmlTag",value:function(e){var i=document.createElement("a");i.setAttribute("href","data:".concat("text/plain",";charset=utf-8,").concat(encodeURIComponent(e))),"vpcs"===this.node.node_type?i.setAttribute("download","".concat(this.node.name,"_startup.vpc")):("iou"===this.node.node_type||"dynamips"===this.node.node_type)&&i.setAttribute("download","".concat(this.node.name,"_startup.cfg"));var a=new MouseEvent("click");i.dispatchEvent(a)}}]),n}();QA.\u0275fac=function(r){return new(r||QA)(t.Y36(Br),t.Y36(jr))},QA.\u0275cmp=t.Xpm({type:QA,selectors:[["app-export-config-action"]],inputs:{controller:"controller",node:"node"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,hUe,5,0,"button",0),2&r&&t.Q6J("ngIf","vpcs"===e.node.node_type||"dynamips"===e.node.node_type||"iou"===e.node.node_type)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var mUe=["fileInput"],XA=function(){function n(r,e,i){(0,H.Z)(this,n),this.nodeService=r,this.toasterService=e,this.dialog=i}return(0,B.Z)(n,[{key:"triggerClick",value:function(){var e=this;if("vpcs"!==this.node.node_type){var i=this.dialog.open(nT,{width:"500px",autoFocus:!1,disableClose:!0});i.componentInstance;i.afterClosed().subscribe(function(a){e.configType=a,e.fileInput.nativeElement.click()})}else this.configType="startup-config",this.fileInput.nativeElement.click()}},{key:"importConfig",value:function(e){var i=this,o=e.target.files[0],a=new FileReader;a.onload=function(s){var l=a.result;"string"!=typeof l&&(l=l.toString()),"startup-config"===i.configType?i.nodeService.saveConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))}):"private-config"===i.configType&&i.nodeService.savePrivateConfiguration(i.controller,i.node,l).subscribe(function(){i.toasterService.success("Configuration for node ".concat(i.node.name," imported."))})},a.readAsText(o)}}]),n}();XA.\u0275fac=function(r){return new(r||XA)(t.Y36(Br),t.Y36(Ln),t.Y36(jr))},XA.\u0275cmp=t.Xpm({type:XA,selectors:[["app-import-config-action"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(mUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.fileInput=i.first))},inputs:{controller:"controller",node:"node"},decls:7,vars:0,consts:[["type","file","accept",".txt, .vpc",1,"non-visible",3,"change"],["fileInput",""],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"input",0,1),t.NdJ("change",function(o){return e.importConfig(o)}),t.qZA(),t.TgZ(2,"button",2),t.NdJ("click",function(){return e.triggerClick()}),t.TgZ(3,"mat-icon"),t._uU(4,"call_received"),t.qZA(),t.TgZ(5,"span"),t._uU(6,"Import config"),t.qZA()())},dependencies:[Dr,Dn],styles:[".non-visible[_ngcontent-%COMP%]{display:none}"]});var Zse=m(1396);function _Ue(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.openConsole(o.auxiliary=!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Auxiliary console"),t.qZA()()}}var $A=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.toasterService=r,this.nodeService=e,this.deviceService=i,this.protocolHandlerService=o}return(0,B.Z)(n,[{key:"openConsole",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.nodeService.getNode(this.controller,this.node).subscribe(function(o){e.node=o,e.startConsole(i)})}},{key:"startConsole",value:function(e){if("started"!==this.node.status)this.toasterService.error("This node must be started before a console can be opened");else{("0.0.0.0"===this.node.console_host||"0:0:0:0:0:0:0:0"===this.node.console_host||"::"===this.node.console_host)&&(this.node.console_host=this.controller.host);try{var i,o=this.node.console_host;if(Zse.IPv6.isValid(o)&&(o="[".concat(o,"]")),"telnet"===this.node.console_type){var a;if(!0===e){if(void 0===(a=this.node.properties.aux))return void this.toasterService.error("Auxiliary console port is not set.")}else a=this.node.console;i="gns3+telnet://".concat(o,":").concat(a,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id)}else if("vnc"===this.node.console_type)i="gns3+vnc://".concat(o,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id);else{if(!this.node.console_type.startsWith("spice"))return this.node.console_type.startsWith("http")?(i="".concat(this.node.console_type,"://").concat(o,":").concat(this.node.console),window.open(i)):void this.toasterService.error("Supported console types are: telnet, vnc, spice and spice+agent.");i="gns3+spice://".concat(o,":").concat(this.node.console,"?name=").concat(this.node.name,"&project_id=").concat(this.node.project_id,"&node_id=").concat(this.node.node_id)}this.protocolHandlerService.open(i)}catch(s){this.toasterService.error(s)}}}}]),n}();$A.\u0275fac=function(r){return new(r||$A)(t.Y36(Ln),t.Y36(Br),t.Y36(rv),t.Y36(Hm))},$A.\u0275cmp=t.Xpm({type:$A,selectors:[["app-console-device-action-browser"]],inputs:{controller:"controller",node:"node"},decls:6,vars:1,consts:[["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Console"),t.qZA()(),t.YNc(5,_Ue,5,0,"button",1)),2&r&&(t.xp6(5),t.Q6J("ngIf","docker"===e.node.node_type||"dynamips"===e.node.node_type||"qemu"===e.node.node_type))},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var eO=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.symbol=this.node.symbol}},{key:"symbolChanged",value:function(e){this.symbol=e}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSelectClick",value:function(){var e=this;this.nodeService.updateSymbol(this.controller,this.node,this.symbol).subscribe(function(){e.onCloseClick()})}}]),n}();eO.\u0275fac=function(r){return new(r||eO)(t.Y36(cr),t.Y36(Br))},eO.\u0275cmp=t.Xpm({type:eO,selectors:[["app-change-symbol-dialog"]],inputs:{controller:"controller",node:"node"},decls:10,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"symbolsWrapper"],[3,"controller","symbol","symbolChanged"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"app-symbols",3),t.NdJ("symbolChanged",function(o){return e.symbolChanged(o)}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSelectClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change symbol for node: ",e.node.name,""),t.xp6(3),t.Q6J("controller",e.controller)("symbol",e.symbol))},dependencies:[cn,Cr,dr,yk],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 tO=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeSymbol",value:function(){var i=this.dialog.open(eO,{width:"1000px",height:"500px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function gUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.reloadNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"refresh"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Reload"),t.qZA()()}}tO.\u0275fac=function(r){return new(r||tO)(t.Y36(jr))},tO.\u0275cmp=t.Xpm({type:tO,selectors:[["app-change-symbol-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeSymbol()}),t.TgZ(1,"mat-icon"),t._uU(2,"find_replace"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change symbol"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var nO=function(){function n(r){(0,H.Z)(this,n),this.nodeService=r,this.filteredNodes=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodes.forEach(function(i){("vpcs"===i.node_type||"qemu"===i.node_type||"virtualbox"===i.node_type||"vmware"===i.node_type)&&e.filteredNodes.push(i)})}},{key:"reloadNodes",value:function(){var e=this;this.filteredNodes.forEach(function(i){e.nodeService.reload(e.controller,i).subscribe(function(o){})})}}]),n}();function vUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.suspendNodes())}),t.TgZ(1,"mat-icon"),t._uU(2,"pause"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Suspend"),t.qZA()()}}nO.\u0275fac=function(r){return new(r||nO)(t.Y36(Br))},nO.\u0275cmp=t.Xpm({type:nO,selectors:[["app-reload-node-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,gUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.filteredNodes.length>0)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var rO=function(){function n(r){(0,H.Z)(this,n),this.nodeService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){var i=this;e.nodes&&(this.isNodeWithStartedStatus=!1,this.nodes.forEach(function(o){"started"===o.status&&(i.isNodeWithStartedStatus=!0)}))}},{key:"suspendNodes",value:function(){var e=this;this.nodes.forEach(function(i){e.nodeService.suspend(e.controller,i).subscribe(function(o){})})}}]),n}();function yUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function bUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function CUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Port : VPI : VCI"),t.qZA())}function wUe(n,r){if(1&n&&(t.TgZ(0,"td",28),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function kUe(n,r){1&n&&(t.TgZ(0,"th",27),t._uU(1,"Actions"),t.qZA())}function TUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",28)(1,"button",29),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",30),t._uU(3,"delete"),t.qZA()()()}}function MUe(n,r){1&n&&t._UZ(0,"tr",31)}function SUe(n,r){1&n&&t._UZ(0,"tr",32)}function EUe(n,r){if(1&n&&(t.TgZ(0,"table",19),t.ynx(1,20),t.YNc(2,yUe,2,0,"th",21),t.YNc(3,bUe,2,1,"td",22),t.BQk(),t.ynx(4,23),t.YNc(5,CUe,2,0,"th",21),t.YNc(6,wUe,2,1,"td",22),t.BQk(),t.ynx(7,24),t.YNc(8,kUe,2,0,"th",21),t.YNc(9,TUe,4,0,"td",22),t.BQk(),t.YNc(10,MUe,1,0,"tr",25),t.YNc(11,SUe,1,0,"tr",26),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}rO.\u0275fac=function(r){return new(r||rO)(t.Y36(Br))},rO.\u0275cmp=t.Xpm({type:rO,selectors:[["app-suspend-node-action"]],inputs:{controller:"controller",nodes:"nodes"},features:[t.TTD],decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,vUe,5,0,"button",0),2&r&&t.Q6J("ngIf",e.isNodeWithStartedStatus)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var iO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceVpi="",this.sourceVci="",this.destinationPort="",this.destinationVpi="",this.destinationVci="",this.useVpiOnly=!1,this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceVci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationVci:new J.p4("",J.kI.required)}),this.abstractForm=this.formBuilder.group({sourceVpi:new J.p4("",J.kI.required),destinationVpi:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){var e;this.inputForm.valid?this.useVpiOnly?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.abstractForm.valid?(e={portIn:"".concat(this.sourcePort,":").concat(this.sourceVpi,":").concat(this.sourceVci),portOut:"".concat(this.destinationPort,":").concat(this.destinationVpi,":").concat(this.destinationVci)},this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())):this.toasterService.error("Fill all required fields."):this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceVpi="0",this.sourceVci="0",this.destinationPort="0",this.destinationVpi="0",this.sourceVci="0"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Nn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,jw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function xUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Name"),t.qZA())}function DUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function AUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Local port"),t.qZA())}function OUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rport)}}function IUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Type"),t.qZA())}function PUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.rhost)}}function RUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Remote port"),t.qZA())}function LUe(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.lport)}}function ZUe(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1,"Actions"),t.qZA())}function NUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"delete"),t.qZA()()()}}function BUe(n,r){1&n&&t._UZ(0,"tr",22)}function FUe(n,r){1&n&&t._UZ(0,"tr",23)}function UUe(n,r){if(1&n&&(t.TgZ(0,"table",8),t.ynx(1,9),t.YNc(2,xUe,2,0,"th",10),t.YNc(3,DUe,2,1,"td",11),t.BQk(),t.ynx(4,12),t.YNc(5,AUe,2,0,"th",10),t.YNc(6,OUe,2,1,"td",11),t.BQk(),t.ynx(7,13),t.YNc(8,IUe,2,0,"th",10),t.YNc(9,PUe,2,1,"td",11),t.BQk(),t.ynx(10,14),t.YNc(11,RUe,2,0,"th",10),t.YNc(12,LUe,2,1,"td",11),t.BQk(),t.ynx(13,15),t.YNc(14,ZUe,2,0,"th",10),t.YNc(15,NUe,4,0,"td",11),t.BQk(),t.YNc(16,BUe,1,0,"tr",16),t.YNc(17,FUe,1,0,"tr",17),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.dataSourceUdp),t.xp6(16),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function HUe(n,r){1&n&&t._UZ(0,"br")}iO.\u0275fac=function(r){return new(r||iO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS))},iO.\u0275cmp=t.Xpm({type:iO,selectors:[["app-configurator-atm-switch"]],decls:39,vars:16,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["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","min","0","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceVci","placeholder","VCI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","destinationVpi","placeholder","VPI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","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","",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,EUe,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"mat-checkbox",8),t.NdJ("ngModelChange",function(o){return e.useVpiOnly=o}),t._uU(12," Use VPI only (VP tunnel) "),t.qZA(),t.TgZ(13,"form",5),t._uU(14," Source "),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()()(),t.TgZ(17,"form",5)(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.sourceVpi=o}),t.qZA()()(),t.TgZ(20,"form",5)(21,"mat-form-field",6)(22,"input",11),t.NdJ("ngModelChange",function(o){return e.sourceVci=o}),t.qZA()(),t._uU(23," Destination "),t.TgZ(24,"mat-form-field",6)(25,"input",12),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()()(),t.TgZ(26,"form",5)(27,"mat-form-field",6)(28,"input",13),t.NdJ("ngModelChange",function(o){return e.destinationVpi=o}),t.qZA()()(),t.TgZ(29,"form",5)(30,"mat-form-field",6)(31,"input",14),t.NdJ("ngModelChange",function(o){return e.destinationVci=o}),t.qZA()()(),t.TgZ(32,"button",15),t.NdJ("click",function(){return e.add()}),t._uU(33,"Add"),t.qZA()()()()(),t.TgZ(34,"div",16)(35,"button",17),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(36,"Cancel"),t.qZA(),t.TgZ(37,"button",18),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(38,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for ATM switch ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("ngModel",e.useVpiOnly),t.xp6(2),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.sourceVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.sourceVci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(1),t.Q6J("formGroup",e.abstractForm),t.xp6(2),t.Q6J("ngModel",e.destinationVpi),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.destinationVci))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,Cr,dr,$r,ui],styles:["table[_ngcontent-%COMP%], .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}","table[_ngcontent-%COMP%]{width:100%}.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 oO=function(){function n(r){(0,H.Z)(this,n),this.builtInTemplatesConfigurationService=r,this.dataSourceUdp=[],this.displayedColumns=["name","lport","rhost","rport","action"],this.newPort={name:"",port_number:0},this.portTypes=[],this.etherTypes=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getConfiguration()}},{key:"getConfiguration",value:function(){this.etherTypes=this.builtInTemplatesConfigurationService.getEtherTypesForEthernetSwitches(),this.portTypes=this.builtInTemplatesConfigurationService.getPortTypesForEthernetSwitches()}},{key:"onAddUdpInterface",value:function(){this.dataSourceUdp=this.dataSourceUdp.concat([this.newPort]),this.newPort={name:"",port_number:0}}},{key:"delete",value:function(e){this.dataSourceUdp=this.dataSourceUdp.filter(function(i){return i!==e})}}]),n}();oO.\u0275fac=function(r){return new(r||oO)(t.Y36(wc))},oO.\u0275cmp=t.Xpm({type:oO,selectors:[["app-udp-tunnels"]],inputs:{dataSourceUdp:"dataSourceUdp"},decls:12,vars:6,consts:[["mat-table","",3,"dataSource",4,"ngIf"],[4,"ngIf"],[1,"form-field"],["matInput","","type","text","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","max","65535","placeholder","Local port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Remote host",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","max","65535","placeholder","Remote port",3,"ngModel","ngModelChange"],["mat-button","",1,"form-field",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","rport"],["matColumnDef","rhost"],["matColumnDef","lport"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.YNc(0,UUe,18,3,"table",0),t.YNc(1,HUe,1,0,"br",1),t.TgZ(2,"mat-form-field",2)(3,"input",3),t.NdJ("ngModelChange",function(o){return e.newPort.name=o}),t.qZA()(),t.TgZ(4,"mat-form-field",2)(5,"input",4),t.NdJ("ngModelChange",function(o){return e.newPort.lport=o}),t.qZA()(),t.TgZ(6,"mat-form-field",2)(7,"input",5),t.NdJ("ngModelChange",function(o){return e.newPort.rhost=o}),t.qZA()(),t.TgZ(8,"mat-form-field",2)(9,"input",6),t.NdJ("ngModelChange",function(o){return e.newPort.rport=o}),t.qZA()(),t.TgZ(10,"button",7),t.NdJ("click",function(){return e.onAddUdpInterface()}),t._uU(11,"Add"),t.qZA()),2&r&&(t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(1),t.Q6J("ngIf",e.dataSourceUdp.length),t.xp6(2),t.Q6J("ngModel",e.newPort.name),t.xp6(2),t.Q6J("ngModel",e.newPort.lport),t.xp6(2),t.Q6J("ngModel",e.newPort.rhost),t.xp6(2),t.Q6J("ngModel",e.newPort.rport))},dependencies:[ge.O5,J.Fj,J.wV,J.JJ,J.qQ,J.Fd,J.On,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,ui],styles:["table[_ngcontent-%COMP%]{width:100%}.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 jUe=["udpTunnels"];function GUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function zUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function WUe(n,r){if(1&n&&(t.TgZ(0,"div",16)(1,"div",16),t._uU(2),t.qZA(),t._UZ(3,"br")(4,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.name)}}function VUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var YUe=function(){return{standalone:!0}};function KUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t.YNc(2,GUe,5,1,"div",10),t.TgZ(3,"mat-form-field",11)(4,"mat-select",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.ethernetInterface=a)}),t.YNc(5,zUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(6,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddEthernetInterface())}),t._uU(7,"Add"),t.qZA()(),t.TgZ(8,"mat-tab",15),t.YNc(9,WUe,5,1,"div",10),t.TgZ(10,"mat-form-field",16)(11,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.tapInterface=a)}),t.qZA()(),t.TgZ(12,"button",14),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onAddTapInterface())}),t._uU(13,"Add"),t.qZA()(),t.TgZ(14,"mat-tab",18),t._UZ(15,"app-udp-tunnels",19,20),t.qZA(),t.TgZ(17,"mat-tab",21)(18,"form",22)(19,"mat-form-field",16)(20,"input",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(21,"mat-form-field",11)(22,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,VUe,2,2,"mat-option",13),t.qZA()(),t.TgZ(24,"mat-form-field",16)(25,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_host=a)}),t.qZA()(),t.TgZ(26,"mat-form-field",16)(27,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_port=a)}),t.qZA()(),t.TgZ(28,"mat-form-field",16)(29,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.remote_console_http_path=a)}),t.qZA()()(),t.TgZ(30,"mat-tab",28)(31,"mat-form-field",16)(32,"textarea",29),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngForOf",i.portsMappingEthernet),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(15,YUe))("ngModel",i.ethernetInterface),t.xp6(1),t.Q6J("ngForOf",i.ethernetInterfaces),t.xp6(4),t.Q6J("ngForOf",i.portsMappingTap),t.xp6(2),t.Q6J("ngModel",i.tapInterface),t.xp6(4),t.Q6J("dataSourceUdp",i.portsMappingUdp),t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_host),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.remote_console_http_path),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var aO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.builtInTemplatesConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.portsMappingEthernet=[],this.portsMappingTap=[],this.portsMappingUdp=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.tapInterface="",this.ethernetInterface="",this.ethernetInterfaces=["Ethernet 2","Ethernet 3"],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.portsMappingEthernet=e.node.properties.ports_mapping.filter(function(o){return"ethernet"===o.type}),e.portsMappingTap=e.node.properties.ports_mapping.filter(function(o){return"tap"===o.type}),e.portsMappingUdp=e.node.properties.ports_mapping.filter(function(o){return"udp"===o.type})})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.builtInTemplatesConfigurationService.getConsoleTypesForCloudNodes()}},{key:"onAddEthernetInterface",value:function(){this.ethernetInterface&&this.portsMappingEthernet.push({interface:this.ethernetInterface,name:this.ethernetInterface,port_number:0,type:"ethernet"})}},{key:"onAddTapInterface",value:function(){this.tapInterface&&this.portsMappingTap.push({interface:this.tapInterface,name:this.tapInterface,port_number:0,type:"tap"})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.portsMappingUdp=this.udpTunnels.dataSourceUdp,this.node.properties.ports_mapping=this.portsMappingUdp.concat(this.portsMappingEthernet).concat(this.portsMappingTap),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function qUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",6)(2,"span",7),t._uU(3),t.qZA(),t.TgZ(4,"span",7)(5,"input",9),t.NdJ("ngModelChange",function(a){var l=t.CHM(e).$implicit;return t.KtG(l.port_name=a)}),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.hij(" Adapter ",i.adapter_number," "),t.xp6(2),t.Q6J("ngModel",i.port_name)}}function JUe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div",6)(2,"span",7),t._uU(3," Adapter number "),t.qZA(),t.TgZ(4,"span",7),t._uU(5," Port name "),t.qZA()(),t.TgZ(6,"div")(7,"mat-list"),t.YNc(8,qUe,6,2,"mat-list-item",8),t.qZA()()()),2&n){var e=t.oxw();t.xp6(8),t.Q6J("ngForOf",e.adapters)}}aO.\u0275fac=function(r){return new(r||aO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(wc))},aO.\u0275cmp=t.Xpm({type:aO,selectors:[["app-configurator-cloud"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(jUe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.udpTunnels=i.first))},decls:13,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Ethernet interfaces"],["class","form-field",4,"ngFor","ngForOf"],[1,"select"],["placeholder","Ethernet interface",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-button","",1,"form-field",3,"click"],["label","TAP interfaces"],[1,"form-field"],["matInput","","type","text","placeholder","TAP interface",3,"ngModel","ngModelChange"],["label","UDP tunnels"],[3,"dataSourceUdp"],["udpTunnels",""],["label","Miscellaneous"],[3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["placeholder","Console type",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console host",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console port",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Console HTTP path",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,KUe,33,16,"mat-tab-group",5),t.qZA(),t._UZ(7,"div"),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(12,"Apply"),t.qZA()()()),2&r&&(t.xp6(1),t.hij("Configurator for cloud node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr,ni.gD,Vt.ey,Zi.SP,Zi.uX,oO],styles:["table[_ngcontent-%COMP%], .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 sO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.displayedColumns=["adapter_number","port_name"],this.adapters=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.node.custom_adapters?this.adapters=this.node.custom_adapters:this.node.ports.forEach(function(o){e.adapters.push({adapter_number:0,port_name:""})})}},{key:"onSaveClick",value:function(){var e=this;this.node.custom_adapters=this.adapters,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.onCancelClick(),e.toasterService.success("Configuration saved for node ".concat(e.node.name))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();sO.\u0275fac=function(r){return new(r||sO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Ip))},sO.\u0275cmp=t.Xpm({type:sO,selectors:[["app-configure-custom-adapters"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],[1,"header"],[1,"column"],[4,"ngFor","ngForOf"],["matInput","","type","text","placeholder","Edit port name",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,JUe,9,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configure custom adapters for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,cn,Kn,Cr,dr,pm,Aa],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 QUe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",5)(1,"textarea",6),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.configuration=a)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngModel",i.configuration)}}var lO=function(){function n(r,e,i){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNetworkConfiguration(this.controller,this.node).subscribe(function(i){e.configuration=i})}},{key:"onSaveClick",value:function(){var e=this;this.nodeService.saveNetworkConfiguration(this.controller,this.node,this.configuration).subscribe(function(i){e.onCancelClick(),e.toasterService.success("Configuration for node ".concat(e.node.name," saved."))})}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function XUe(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function $Ue(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function e7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",30),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}lO.\u0275fac=function(r){return new(r||lO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln))},lO.\u0275cmp=t.Xpm({type:lO,selectors:[["app-edit-network-configuration"]],decls:8,vars:2,consts:[["mat-dialog-title",""],["class","modal-form-container",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"modal-form-container"],["matInput","","type","text",1,"textArea",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.YNc(2,QUe,2,1,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(5,"Cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(7,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Edit network configuration for node ",e.node.name,""),t.xp6(1),t.Q6J("ngIf",e.node))},dependencies:[ge.O5,J.Fj,J.JJ,J.On,cn,Kn,Cr,dr],styles:[".textArea[_ngcontent-%COMP%]{width:100%;height:350px}"]});var TF=function(){return{standalone:!0}};function t7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"input",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.start_command=a)}),t.qZA()(),t.TgZ(8,"mat-form-field",11)(9,"input",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.adapters=a)}),t.qZA()(),t.TgZ(10,"mat-form-field",11)(11,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.memory=a)}),t.qZA(),t.TgZ(12,"span",16),t._uU(13,"MB"),t.qZA()(),t.TgZ(14,"mat-form-field",11)(15,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(16,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.configureCustomAdapters())}),t._uU(17," Configure custom adapters "),t.qZA(),t.TgZ(18,"mat-form-field",19)(19,"mat-select",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(20,XUe,2,2,"mat-option",21),t.qZA()(),t.TgZ(21,"mat-form-field",19)(22,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.aux_type=a)}),t.YNc(23,$Ue,2,2,"mat-option",21),t.qZA()(),t.TgZ(24,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(25," Auto start console "),t.qZA(),t.TgZ(26,"mat-form-field",11)(27,"mat-select",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_resolution=a)}),t.YNc(28,e7e,2,2,"mat-option",21),t.qZA()(),t.TgZ(29,"mat-form-field",11)(30,"input",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_port=a)}),t.qZA()(),t.TgZ(31,"mat-form-field",11)(32,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_http_path=a)}),t.qZA()(),t.TgZ(33,"button",18),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.editNetworkConfiguration())}),t._uU(34," Edit network configuration "),t.qZA()(),t.TgZ(35,"h6"),t._uU(36,"Environment"),t.qZA(),t.TgZ(37,"mat-form-field",11)(38,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.environment=a)}),t.qZA()()(),t.TgZ(39,"mat-tab",28)(40,"h6"),t._uU(41,"Extra hosts"),t.qZA(),t.TgZ(42,"mat-form-field",11)(43,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_hosts=a)}),t.qZA()(),t._UZ(44,"br"),t.TgZ(45,"h6"),t._uU(46,"Additional volumes"),t.qZA(),t.TgZ(47,"mat-form-field",11)(48,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.extra_volumes=a)}),t.qZA()()(),t.TgZ(49,"mat-tab",29)(50,"mat-form-field",11)(51,"textarea",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.start_command),t.xp6(2),t.Q6J("ngModel",i.node.properties.adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.memory),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(23,TF))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(24,TF))("ngModel",i.node.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(25,TF))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(26,TF))("ngModel",i.node.properties.console_resolution),t.xp6(1),t.Q6J("ngForOf",i.consoleResolutions),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_port),t.xp6(2),t.Q6J("ngModel",i.node.properties.console_http_path),t.xp6(6),t.Q6J("ngModel",i.node.properties.environment),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_hosts),t.xp6(5),t.Q6J("ngModel",i.node.properties.extra_volumes),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}var uO=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialogReference=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.dockerConfigurationService=a,this.nonNegativeValidator=s,this.dialog=l,this.consoleTypes=[],this.auxConsoleTypes=[],this.consoleResolutions=["2560x1440","1920x1080","1680x1050","1440x900","1366x768","1280x1024","1280x800","1024x768","800x600","640x480"],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),adapter:new J.p4("",J.kI.required),memory:new J.p4("",s.get),cpus:new J.p4("",s.get),startCommand:new J.p4(""),consoleHttpPort:new J.p4("",J.kI.required),consoleHttpPath:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration(),e.node.properties.cpus||(e.node.properties.cpus=0)})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.dockerConfigurationService.getConsoleTypes(),this.auxConsoleTypes=this.dockerConfigurationService.getAuxConsoleTypes()}},{key:"configureCustomAdapters",value:function(){this.dialogRef=this.dialog.open(sO,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"editNetworkConfiguration",value:function(){this.dialogRef=this.dialog.open(lO,this.conf);var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogReference.close()}}]),n}();function n7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function r7e(n,r){if(1&n&&t._UZ(0,"app-ports",17,18),2&n){var e=t.oxw(2);t.Q6J("ethernetPorts",e.node.properties.ports_mapping)}}uO.\u0275fac=function(r){return new(r||uO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Ip),t.Y36(vf),t.Y36(jr))},uO.\u0275cmp=t.Xpm({type:uO,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","min","1","placeholder","Maximum memory",3,"ngModel","ngModelChange"],["matSuffix",""],["formControlName","cpus","matInput","","type","number","min","1","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"],["placeholder","Auxiliary console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","VNC console resolution",3,"ngModelOptions","ngModel","ngModelChange"],["formControlName","consoleHttpPort","matInput","","type","number","placeholder","HTTP port in the container",3,"ngModel","ngModelChange"],["matInput","","formControlName","consoleHttpPath","type","text","placeholder","HTTP path",3,"ngModel","ngModelChange"],["matInput","","type","text",3,"ngModel","ngModelChange"],["label","Advanced"],["label","Usage"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,t7e,52,27,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for node ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .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 i7e=function(){return{standalone:!0}};function o7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",7)(1,"mat-card",8)(2,"form",9)(3,"mat-form-field",10)(4,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(5,"mat-form-field",12)(6,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(7,n7e,2,2,"mat-option",14),t.qZA()()(),t.YNc(8,r7e,2,1,"app-ports",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("formGroup",i.inputForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(6,i7e))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngIf",i.node.properties)}}var cO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.ethernetSwitchesConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.ethernetSwitchesConfigurationService.getConsoleTypesForEthernetSwitches()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?(this.node.properties.ports_mapping=this.portsComponent.ethernetPorts,this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();cO.\u0275fac=function(r){return new(r||cO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(wc))},cO.\u0275cmp=t.Xpm({type:cO,selectors:[["app-configurator-ethernet-switch"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Dg,5),2&r)&&(t.iGM(i=t.CRH())&&(e.portsComponent=i.first))},decls:10,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],["class","default-content",4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ethernetPorts",4,"ngIf"],[3,"value"],[3,"ethernetPorts"],["ports",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2),t.YNc(4,o7e,9,7,"div",3),t.qZA()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Ethernet switch ",e.name,""),t.xp6(3),t.Q6J("ngIf",e.node))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr,ni.gD,Vt.ey,Dg],styles:["table[_ngcontent-%COMP%], .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 a7e=function(){return{standalone:!0}},dO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.categories=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name,e.numberOfPorts=e.node.ports.length,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes(),this.categories=this.vpcsConfigurationService.getCategories()}},{key:"onSaveClick",value:function(){var e=this;if(this.inputForm.valid){this.node.properties.ports_mapping=[];for(var i=0;i<this.numberOfPorts;i++)this.node.properties.ports_mapping.push({name:"Ethernet".concat(i),port_number:i});this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})}else this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function s7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function l7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function u7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,s7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-form-field",13)(10,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.aux_type=a)}),t.YNc(11,l7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(12,"mat-checkbox",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(13," Auto start console "),t.qZA(),t._UZ(14,"br"),t.qZA(),t.TgZ(15,"mat-tab",18),t._UZ(16,"br"),t.TgZ(17,"form",10)(18,"mat-form-field",11)(19,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(20,"span",20),t._uU(21,"MB"),t.qZA()(),t.TgZ(22,"mat-form-field",11)(23,"input",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(24,"span",20),t._uU(25,"MB"),t.qZA()()()(),t.TgZ(26,"mat-tab",22)(27,"mat-form-field",11)(28,"textarea",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.aux_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(5),t.Q6J("formGroup",i.memoryForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.nvram),t.xp6(5),t.Q6J("ngModel",i.node.properties.usage)}}dO.\u0275fac=function(r){return new(r||dO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Dm))},dO.\u0275cmp=t.Xpm({type:dO,selectors:[["app-configurator-ethernet-hub"]],decls:16,vars:6,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","placeholder","Number of ports",3,"ngModel","ngModelOptions","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",6)(10,"input",8),t.NdJ("ngModelChange",function(o){return e.numberOfPorts=o}),t.qZA()()()()()()(),t.TgZ(11,"div",9)(12,"button",10),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(13,"Cancel"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(15,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Ethernet hub ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModel",e.numberOfPorts)("ngModelOptions",t.DdM(5,a7e)))},dependencies:[J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var fO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.memoryForm=this.formBuilder.group({ram:new J.p4("",J.kI.required),nvram:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.memoryForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function c7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",23),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function d7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",24),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"MB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.ram)}}function f7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.nvram=a)}),t.qZA(),t.TgZ(2,"span",25),t._uU(3,"KB"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.nvram)}}function p7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,c7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t._UZ(11,"br"),t.TgZ(12,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_default_iou_values=a)}),t._uU(13," Use default IOU values for memories "),t.qZA(),t.YNc(14,d7e,4,1,"mat-form-field",17),t.YNc(15,f7e,4,1,"mat-form-field",17),t.qZA(),t.TgZ(16,"mat-tab",18),t._UZ(17,"br"),t.TgZ(18,"form",10)(19,"mat-form-field",11)(20,"input",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ethernet_adapters=a)}),t.qZA()(),t.TgZ(21,"mat-form-field",11)(22,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.serial_adapters=a)}),t.qZA()()()(),t.TgZ(23,"mat-tab",21)(24,"mat-form-field",11)(25,"textarea",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.use_default_iou_values),t.xp6(2),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(1),t.Q6J("ngIf",!i.node.properties.use_default_iou_values),t.xp6(3),t.Q6J("formGroup",i.networkForm),t.xp6(2),t.Q6J("ngModel",i.node.properties.ethernet_adapters),t.xp6(2),t.Q6J("ngModel",i.node.properties.serial_adapters),t.xp6(3),t.Q6J("ngModel",i.node.properties.usage)}}fO.\u0275fac=function(r){return new(r||fO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(km))},fO.\u0275cmp=t.Xpm({type:fO,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"],["placeholder","Auxiliary console type",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Memories and disks"],["matInput","","type","number","formControlName","ram","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","formControlName","nvram","placeholder","NVRAM size",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,u7e,29,11,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for IOS router ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .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 pO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.configurationService=a,this.consoleTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.networkForm=this.formBuilder.group({ethernetAdapters:new J.p4("",J.kI.required),serialAdapters:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.configurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid&&this.networkForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();pO.\u0275fac=function(r){return new(r||pO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Og))},pO.\u0275cmp=t.Xpm({type:pO,selectors:[["app-configurator-iou"]],decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["class","form-field",4,"ngIf"],["label","Network"],["matInput","","formControlName","ethernetAdapters","type","number","placeholder","Ethernet adapters",3,"ngModel","ngModelChange"],["matInput","","formControlName","serialAdapters","type","number","placeholder","Serial adapters",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","min","1","placeholder","RAM size",3,"ngModel","ngModelChange"],["matSuffix",""],["matInput","","type","number","min","1","placeholder","NVRAM size",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,p7e,26,12,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for IOU device ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX],styles:["table[_ngcontent-%COMP%], .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 hO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name})}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function h7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function m7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function _7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function g7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function v7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.value),t.xp6(1),t.hij(" ",e.name," ")}}function y7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Size options "),t.TgZ(2,"mat-form-field",6)(3,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.preallocation=a)}),t.YNc(4,m7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(5,"mat-form-field",6)(6,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.cluster_size=a)}),t.YNc(7,_7e,2,2,"mat-option",9),t.qZA()(),t._uU(8," Refcounts "),t.TgZ(9,"mat-form-field",6)(10,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.lazy_refcounts=a)}),t.YNc(11,g7e,2,2,"mat-option",9),t.qZA()(),t.TgZ(12,"mat-form-field",6)(13,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.refcount_bits=a)}),t.YNc(14,v7e,2,2,"mat-option",9),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngModel",i.qemuImg.preallocation),t.xp6(1),t.Q6J("ngForOf",i.preallocationsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.cluster_size),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions),t.xp6(3),t.Q6J("ngModel",i.qemuImg.lazy_refcounts),t.xp6(1),t.Q6J("ngForOf",i.lazyRefcountsOptions),t.xp6(2),t.Q6J("ngModel",i.qemuImg.refcount_bits),t.xp6(1),t.Q6J("ngForOf",i.clusterSizeOptions)}}function b7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"mat-radio-group",20)(2,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("dynamic"))}),t._uU(3,"Dynamic"),t.qZA(),t.TgZ(4,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.setSubformat("fixed"))}),t._uU(5,"Fixed"),t.qZA()()()}}function C7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",16),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function w7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div"),t._uU(1," Adapter type"),t._UZ(2,"br"),t.TgZ(3,"mat-radio-group",23)(4,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("ide"))}),t._uU(5,"IDE"),t.qZA(),t.TgZ(6,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("lsilogic"))}),t._uU(7,"LSI Logic"),t.qZA(),t.TgZ(8,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("buslogic"))}),t._uU(9,"BusLogic"),t.qZA(),t.TgZ(10,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setAdapterType("legacyESX"))}),t._uU(11,"Legacy (ESX)"),t.qZA()(),t._UZ(12,"br")(13,"br"),t._uU(14," Image file sizing mode"),t._UZ(15,"br"),t.TgZ(16,"mat-radio-group",20)(17,"mat-radio-button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("streamOptimized"))}),t._uU(18,"Stream optimized"),t.qZA(),t.TgZ(19,"mat-radio-button",22),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentSparse"))}),t._uU(20,"Split every 2GB (sparse)"),t.qZA(),t.TgZ(21,"mat-radio-button",24),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("twoGbMaxExtentFlat"))}),t._uU(22,"Split every 2GB (flat)"),t.qZA(),t.TgZ(23,"mat-radio-button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicSparse"))}),t._uU(24,"Monolithic sparse"),t.qZA(),t.TgZ(25,"mat-radio-button",26),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.setSubformat("monolithicFlat"))}),t._uU(26,"Monolithic flat"),t.qZA()(),t._UZ(27,"br")(28,"br"),t.TgZ(29,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.qemuImg.zeroed_grain=a)}),t.YNc(30,C7e,2,2,"mat-option",9),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(29),t.Q6J("ngModel",i.qemuImg.zeroed_grain),t.xp6(1),t.Q6J("ngForOf",i.zeroedGrainOptions)}}hO.\u0275fac=function(r){return new(r||hO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS))},hO.\u0275cmp=t.Xpm({type:hO,selectors:[["app-configurator-nat"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for NAT node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr],styles:["table[_ngcontent-%COMP%], .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 mO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.qemuService=a,this.formatOptions=["qcow2","qcow","vhd","vdi","vmdk","raw"],this.preallocationsOptions=["off","metadata","falloc","full"],this.clusterSizeOptions=[{name:"512",value:512},{name:"1k",value:1024},{name:"2k",value:2048},{name:"4k",value:4096},{name:"8k",value:8192},{name:"16k",value:16384},{name:"32k",value:32768},{name:"64k",value:65536},{name:"128k",value:131072},{name:"256k",value:262144},{name:"512k",value:524288},{name:"1024k",value:1048576},{name:"2048k",value:2097152}],this.lazyRefcountsOptions=["off","on"],this.refcountBitsOptions=[1,2,4,8,16,32,64],this.zeroedGrainOptions=["on","off"],this.inputForm=this.formBuilder.group({qemu_img:new J.p4("",J.kI.required),path:new J.p4("",J.kI.required),size:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.qemuImg={}}},{key:"setSubformat",value:function(e){this.qemuImg.subformat=e}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid&&this.qemuImg.format?this.qemuService.addImage(this.controller,this.qemuImg).subscribe(function(){e.dialogRef.close()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();mO.\u0275fac=function(r){return new(r||mO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Bu))},mO.\u0275cmp=t.Xpm({type:mO,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","min","1","formControlName","size","placeholder","Disk size",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"],["placeholder","Cluster size",3,"ngModel","ngModelChange"],["placeholder","Lazy refcounts",3,"ngModel","ngModelChange"],["placeholder","Refcount entry size",3,"ngModel","ngModelChange"],["aria-label","Image file sizing mode",1,"radio-selection"],["value","1","checked","",3,"click"],["value","2",3,"click"],["aria-label","Adapter type",1,"radio-selection"],["value","3",3,"click"],["value","4",3,"click"],["value","5",3,"click"],["placeholder","Zeroed grain",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Qemu image configurator"),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.qemuImg.qemu_img=o}),t.qZA()()(),t.TgZ(9,"mat-form-field",6)(10,"mat-select",8),t.NdJ("ngModelChange",function(o){return e.qemuImg.format=o}),t.YNc(11,h7e,2,2,"mat-option",9),t.qZA()(),t.YNc(12,y7e,15,8,"div",10),t.YNc(13,b7e,6,0,"div",10),t.YNc(14,w7e,31,2,"div",10),t.TgZ(15,"form",5)(16,"mat-form-field",6)(17,"input",11),t.NdJ("ngModelChange",function(o){return e.qemuImg.path=o}),t.qZA()(),t.TgZ(18,"mat-form-field",6)(19,"input",12),t.NdJ("ngModelChange",function(o){return e.qemuImg.size=o}),t.qZA()()()()()()(),t.TgZ(20,"div",13)(21,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(24,"Apply"),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.qemu_img),t.xp6(2),t.Q6J("ngModel",e.qemuImg.format),t.xp6(1),t.Q6J("ngForOf",e.formatOptions),t.xp6(1),t.Q6J("ngIf","qcow2"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vhd"===e.qemuImg.format||"vdi"===e.qemuImg.format),t.xp6(1),t.Q6J("ngIf","vmdk"===e.qemuImg.format),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.qemuImg.path),t.xp6(2),t.Q6J("ngModel",e.qemuImg.size))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr,ni.gD,Vt.ey,ns,js],styles:["table[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%], .configButton[_ngcontent-%COMP%], .select[_ngcontent-%COMP%]{width:100%}.default-content[_ngcontent-%COMP%]{max-height:400px;overflow-y:scroll;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.file-button[_ngcontent-%COMP%]{width:18%}.create-button[_ngcontent-%COMP%]{width:100%}.file-name-form-field[_ngcontent-%COMP%]{padding-left:2%;width:80%}.nonvisible[_ngcontent-%COMP%]{display:none}mat-radio-button[_ngcontent-%COMP%]{margin-right:10px}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}"]});var k7e=["customAdapters"];function T7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function M7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function S7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}function E7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function x7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function D7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function A7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function O7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function I7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function P7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function R7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function L7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.filename),t.xp6(1),t.hij(" ",e.filename," ")}}function Z7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function N7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",11)(1,"input",52),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.node.properties.cpu_throttling=a)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("ngModel",i.node.properties.cpu_throttling)}}function B7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",51),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var F7e=function(){return{standalone:!0}};function U7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",11)(7,"mat-select",13),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.platform=a)}),t.YNc(8,T7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(9,"mat-form-field",11)(10,"input",15),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(11,"span",16),t._uU(12,"MB"),t.qZA()()(),t.TgZ(13,"mat-form-field",11)(14,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cpus=a)}),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.boot_priority=a)}),t.YNc(17,M7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(18,"mat-form-field",11)(19,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(20,S7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(21,"mat-form-field",20)(22,"mat-select",21),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(23,E7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(24,"mat-form-field",20)(25,"mat-select",22),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.aux_type=a)}),t.YNc(26,x7e,2,2,"mat-option",14),t.qZA()(),t.TgZ(27,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.console_auto_start=a)}),t._uU(28," Auto start console "),t.qZA()(),t.TgZ(29,"mat-tab",24)(30,"mat-card")(31,"button",25),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.openQemuImageCreator())}),t._uU(32," Create Qemu image "),t.qZA(),t._UZ(33,"mat-card-title"),t.TgZ(34,"mat-card-subtitle"),t._uU(35," HDA (Primary Master) "),t.qZA(),t.TgZ(36,"mat-card-content")(37,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_image=a)}),t.YNc(38,D7e,2,2,"mat-option",14),t.qZA(),t.TgZ(39,"mat-form-field",11)(40,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hda_disk_interface=a)}),t.YNc(41,A7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(42,"mat-card"),t._UZ(43,"mat-card-title"),t.TgZ(44,"mat-card-subtitle"),t._uU(45," HDB (Primary Slave) "),t.qZA(),t.TgZ(46,"mat-card-content")(47,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_image=a)}),t.YNc(48,O7e,2,2,"mat-option",14),t.qZA(),t.TgZ(49,"mat-form-field",11)(50,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdb_disk_interface=a)}),t.YNc(51,I7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(52,"mat-card"),t._UZ(53,"mat-card-title"),t.TgZ(54,"mat-card-subtitle"),t._uU(55," HDC (Secondary Master) "),t.qZA(),t.TgZ(56,"mat-card-content")(57,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_image=a)}),t.YNc(58,P7e,2,2,"mat-option",14),t.qZA(),t.TgZ(59,"mat-form-field",11)(60,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdc_disk_interface=a)}),t.YNc(61,R7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(62,"mat-card"),t._UZ(63,"mat-card-title"),t.TgZ(64,"mat-card-subtitle"),t._uU(65," HDD (Secondary Slave) "),t.qZA(),t.TgZ(66,"mat-card-content")(67,"mat-select",26),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_image=a)}),t.YNc(68,L7e,2,2,"mat-option",14),t.qZA(),t.TgZ(69,"mat-form-field",11)(70,"mat-select",27),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.hdd_disk_interface=a)}),t.YNc(71,Z7e,2,2,"mat-option",14),t.qZA()()()()(),t.TgZ(72,"mat-tab",28)(73,"div")(74,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(77);return t.KtG(a.click())}),t._uU(75,"Browse"),t.qZA(),t.TgZ(76,"input",30,31),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadCdromImageFile(a))}),t.qZA(),t.TgZ(78,"mat-form-field",32)(79,"input",33),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.cdrom_image=a)}),t.qZA()()()(),t.TgZ(80,"mat-tab",34),t._UZ(81,"br")(82,"br"),t.TgZ(83,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.replicate_network_connection_state=a)}),t._uU(84," Replicate network connection state "),t.qZA(),t._UZ(85,"app-custom-adapters-table",35,36),t.qZA(),t.TgZ(87,"mat-tab",37)(88,"mat-card"),t._UZ(89,"mat-card-title"),t.TgZ(90,"mat-card-subtitle"),t._uU(91," Linux boot specific settings "),t.qZA(),t.TgZ(92,"mat-card-content")(93,"div")(94,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(97);return t.KtG(a.click())}),t._uU(95," Browse "),t.qZA(),t.TgZ(96,"input",30,38),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadInitrdFile(a))}),t.qZA(),t.TgZ(98,"mat-form-field",32)(99,"input",39),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.initrd=a)}),t.qZA()()(),t.TgZ(100,"div")(101,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.filekerenelimage.click())}),t._uU(102," Browse "),t.qZA(),t.TgZ(103,"input",30,40),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadKernelImageFile(a))}),t.qZA(),t.TgZ(105,"mat-form-field",32)(106,"input",41),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_image=a)}),t.qZA()()(),t.TgZ(107,"mat-form-field",11)(108,"input",42),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.kernel_command_line=a)}),t.qZA()()()(),t.TgZ(109,"mat-card"),t._UZ(110,"mat-card-title"),t.TgZ(111,"mat-card-subtitle"),t._uU(112," Bios "),t.qZA(),t.TgZ(113,"mat-card-content")(114,"div")(115,"button",29),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(118);return t.KtG(a.click())}),t._uU(116," Browse "),t.qZA(),t.TgZ(117,"input",30,43),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.uploadBiosFile(a))}),t.qZA(),t.TgZ(119,"mat-form-field",32)(120,"input",44),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.bios_image=a)}),t.qZA()()()()(),t.TgZ(121,"mat-card"),t._UZ(122,"mat-card-title"),t.TgZ(123,"mat-card-subtitle"),t._uU(124," Optimization "),t.qZA(),t.TgZ(125,"mat-card-content")(126,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.activateCpuThrottling=a)}),t._uU(127," Activate CPU throttling "),t.qZA(),t.YNc(128,N7e,2,1,"mat-form-field",45),t.TgZ(129,"mat-form-field",11)(130,"mat-select",46),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.process_priority=a)}),t.YNc(131,B7e,2,2,"mat-option",14),t.qZA()()()(),t.TgZ(132,"mat-card"),t._UZ(133,"mat-card-title"),t.TgZ(134,"mat-card-subtitle"),t._uU(135," Additional settings "),t.qZA(),t.TgZ(136,"mat-card-content")(137,"mat-form-field",11)(138,"input",47),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.qemu_path=a)}),t.qZA()(),t.TgZ(139,"mat-form-field",11)(140,"input",48),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.options=a)}),t.qZA()(),t._UZ(141,"br"),t.TgZ(142,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.tpm=a)}),t._uU(143," Enable the Trusted Platform Module (TPM) "),t.qZA(),t._UZ(144,"br"),t.TgZ(145,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.uefi=a)}),t._uU(146," Enable the UEFI boot mode "),t.qZA()()()(),t.TgZ(147,"mat-tab",49)(148,"mat-form-field",11)(149,"textarea",50),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModel",i.node.properties.platform)("ngModelOptions",t.DdM(50,F7e)),t.xp6(1),t.Q6J("ngForOf",i.selectPlatform),t.xp6(2),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModel",i.node.properties.cpus),t.xp6(2),t.Q6J("ngModel",i.node.properties.boot_priority),t.xp6(1),t.Q6J("ngForOf",i.bootPriorities),t.xp6(2),t.Q6J("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(2),t.Q6J("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(2),t.Q6J("ngModel",i.node.aux_type),t.xp6(1),t.Q6J("ngForOf",i.auxConsoleTypes),t.xp6(1),t.Q6J("ngModel",i.node.properties.console_auto_start),t.xp6(10),t.Q6J("ngModel",i.node.properties.hda_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hda_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdb_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdb_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdc_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdc_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(6),t.Q6J("ngModel",i.node.properties.hdd_disk_image),t.xp6(1),t.Q6J("ngForOf",i.qemuImages),t.xp6(2),t.Q6J("ngModel",i.node.properties.hdd_disk_interface),t.xp6(1),t.Q6J("ngForOf",i.diskInterfaces),t.xp6(8),t.Q6J("ngModel",i.node.properties.cdrom_image),t.xp6(4),t.Q6J("ngModel",i.node.properties.replicate_network_connection_state),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(14),t.Q6J("ngModel",i.node.properties.initrd),t.xp6(7),t.Q6J("ngModel",i.node.properties.kernel_image),t.xp6(2),t.Q6J("ngModel",i.node.properties.kernel_command_line),t.xp6(12),t.Q6J("ngModel",i.node.properties.bios_image),t.xp6(6),t.Q6J("ngModel",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngIf",i.activateCpuThrottling),t.xp6(2),t.Q6J("ngModel",i.node.properties.process_priority),t.xp6(1),t.Q6J("ngForOf",i.priorities),t.xp6(7),t.Q6J("ngModel",i.node.properties.qemu_path),t.xp6(2),t.Q6J("ngModel",i.node.properties.options),t.xp6(2),t.Q6J("ngModel",i.node.properties.tpm),t.xp6(3),t.Q6J("ngModel",i.node.properties.uefi),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var _O=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialog=r,this.dialogRef=e,this.nodeService=i,this.toasterService=o,this.formBuilder=a,this.qemuService=s,this.qemuConfigurationService=l,this.consoleTypes=[],this.onCloseOptions=[],this.bootPriorities=[],this.diskInterfaces=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.qemuImages=[],this.selectPlatform=[],this.conf={autoFocus:!1,width:"800px",disableClose:!0},this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.selectPlatform=this.qemuConfigurationService.getPlatform()}},{key:"openQemuImageCreator",value:function(){this.dialogRefQemuImageCreator=this.dialog.open(mO,this.conf),this.dialogRefQemuImageCreator.componentInstance.controller=this.controller}},{key:"uploadCdromImageFile",value:function(e){this.node.properties.cdrom_image=e.target.files[0].name}},{key:"uploadInitrdFile",value:function(e){this.node.properties.initrd=e.target.files[0].name}},{key:"uploadKernelImageFile",value:function(e){this.node.properties.kernel_image=e.target.files[0].name}},{key:"uploadBiosFile",value:function(e){this.node.properties.bios_image=e.target.files[0].name}},{key:"getConfiguration",value:function(){var e=this;this.consoleTypes=this.qemuConfigurationService.getConsoleTypes(),this.onCloseOptions=this.qemuConfigurationService.getOnCloseOptions(),this.qemuConfigurationService.getNetworkTypes().forEach(function(i){e.networkTypes.push(i)}),this.bootPriorities=this.qemuConfigurationService.getBootPriorities(),this.diskInterfaces=this.qemuConfigurationService.getDiskInterfaces()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function H7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function j7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portIn)}}function G7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Port : DLCI"),t.qZA())}function z7e(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.portOut)}}function W7e(n,r){1&n&&(t.TgZ(0,"th",24),t._uU(1,"Actions"),t.qZA())}function V7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",25)(1,"button",26),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.delete(a))}),t.TgZ(2,"mat-icon",27),t._uU(3,"delete"),t.qZA()()()}}function Y7e(n,r){1&n&&t._UZ(0,"tr",28)}function K7e(n,r){1&n&&t._UZ(0,"tr",29)}function q7e(n,r){if(1&n&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,H7e,2,0,"th",18),t.YNc(3,j7e,2,1,"td",19),t.BQk(),t.ynx(4,20),t.YNc(5,G7e,2,0,"th",18),t.YNc(6,z7e,2,1,"td",19),t.BQk(),t.ynx(7,21),t.YNc(8,W7e,2,0,"th",18),t.YNc(9,V7e,4,0,"td",19),t.BQk(),t.YNc(10,Y7e,1,0,"tr",22),t.YNc(11,K7e,1,0,"tr",23),t.qZA()),2&n){var e=t.oxw();t.Q6J("dataSource",e.nodeMappingsDataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}_O.\u0275fac=function(r){return new(r||_O)(t.Y36(jr),t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Bu),t.Y36(Mm))},_O.\u0275cmp=t.Xpm({type:_O,selectors:[["app-configurator-qemu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(k7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","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","min","1","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"],["placeholder","Auxiliary 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","Qemu binary path",3,"ngModel","ngModelChange"],["matInput","","type","text","placeholder","Options",3,"ngModel","ngModelChange"],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"],["matInput","","type","number","placeholder","Perecentage of CPU allowed",3,"ngModel","ngModelChange"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,U7e,150,51,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Qemu VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,z0,rk,ik,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX,Ig],styles:["table[_ngcontent-%COMP%], .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 gO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.consoleTypes=[],this.nodeMappings=new Map,this.nodeMappingsDataSource=[],this.dataSource=[],this.displayedColumns=["portIn","portOut","actions"],this.sourcePort="",this.sourceDlci="",this.destinationPort="",this.destinationDlci="",this.nameForm=this.formBuilder.group({name:new J.p4("",J.kI.required)}),this.inputForm=this.formBuilder.group({sourcePort:new J.p4("",J.kI.required),sourceDlci:new J.p4("",J.kI.required),destinationPort:new J.p4("",J.kI.required),destinationDlci:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name;var o=i.properties.mappings;Object.keys(o).forEach(function(a){e.nodeMappings.set(a,o[a])}),e.nodeMappings.forEach(function(a,s){e.nodeMappingsDataSource.push({portIn:s,portOut:a})})})}},{key:"delete",value:function(e){this.nodeMappingsDataSource=this.nodeMappingsDataSource.filter(function(i){return i!==e})}},{key:"add",value:function(){if(this.inputForm.valid){var e={portIn:"".concat(this.sourcePort,":").concat(this.sourceDlci),portOut:"".concat(this.destinationPort,":").concat(this.destinationDlci)};this.nodeMappingsDataSource.filter(function(i){return i.portIn===e.portIn}).length>0?this.toasterService.error("Mapping already defined."):(this.nodeMappingsDataSource=this.nodeMappingsDataSource.concat([e]),this.clearUserInput())}else this.toasterService.error("Fill all required fields.")}},{key:"clearUserInput",value:function(){this.sourcePort="0",this.sourceDlci="1",this.destinationPort="0",this.destinationDlci="1"}},{key:"strMapToObj",value:function(e){var a,i=Object.create(null),o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;){var s=(0,Nn.Z)(a.value,2),l=s[0],u=s[1];i[l]=u}}catch(d){o.e(d)}finally{o.f()}return i}},{key:"onSaveClick",value:function(){var e=this;this.nameForm.valid?(this.nodeMappings.clear(),this.nodeMappingsDataSource.forEach(function(i){e.nodeMappings.set(i.portIn,i.portOut)}),this.node.properties.mappings=Array.from(this.nodeMappings).reduce(function(i,o){var a=(0,Nn.Z)(o,2),s=a[0],l=a[1];return Object.assign(i,(0,jw.Z)({},s,l))},{}),this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();gO.\u0275fac=function(r){return new(r||gO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS))},gO.\u0275cmp=t.Xpm({type:gO,selectors:[["app-configurator-switch"]],decls:29,vars:9,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],["mat-table","",3,"dataSource",4,"ngIf"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","sourcePort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","formControlName","sourceDlci","placeholder","DLCI",3,"ngModel","ngModelChange"],["matInput","","type","number","min","0","formControlName","destinationPort","placeholder","Port",3,"ngModel","ngModelChange"],["matInput","","type","number","min","1","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","",3,"dataSource"],["matColumnDef","portIn"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","portOut"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","matTooltip","Delete port","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete port"],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card"),t.YNc(6,q7e,12,3,"table",4),t._UZ(7,"br"),t.TgZ(8,"form",5)(9,"mat-form-field",6)(10,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()(),t.TgZ(11,"form",5),t._uU(12," Source "),t.TgZ(13,"mat-form-field",6)(14,"input",8),t.NdJ("ngModelChange",function(o){return e.sourcePort=o}),t.qZA()(),t.TgZ(15,"mat-form-field",6)(16,"input",9),t.NdJ("ngModelChange",function(o){return e.sourceDlci=o}),t.qZA()(),t._uU(17," Destination "),t.TgZ(18,"mat-form-field",6)(19,"input",10),t.NdJ("ngModelChange",function(o){return e.destinationPort=o}),t.qZA()(),t.TgZ(20,"mat-form-field",6)(21,"input",11),t.NdJ("ngModelChange",function(o){return e.destinationDlci=o}),t.qZA()()(),t.TgZ(22,"button",12),t.NdJ("click",function(){return e.add()}),t._uU(23,"Add"),t.qZA()()()()(),t.TgZ(24,"div",13)(25,"button",14),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",15),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(28,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for Frame-Relay switch ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.nodeMappingsDataSource.length),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(1),t.Q6J("formGroup",e.inputForm),t.xp6(3),t.Q6J("ngModel",e.sourcePort),t.xp6(2),t.Q6J("ngModel",e.sourceDlci),t.xp6(3),t.Q6J("ngModel",e.destinationPort),t.xp6(2),t.Q6J("ngModel",e.destinationDlci))},dependencies:[ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.qQ,J.sg,J.u,kn.KE,cn,ai,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,Cr,dr,ui],styles:["table[_ngcontent-%COMP%], .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}","table[_ngcontent-%COMP%]{width:100%}.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 J7e=["customAdapters"];function Q7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function X7e(n,r){if(1&n&&(t.TgZ(0,"mat-option",26),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var hW=function(){return{standalone:!0}};function $7e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,Q7e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"input",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.ram=a)}),t.qZA(),t.TgZ(13,"span",18),t._uU(14,"MB"),t.qZA()(),t.TgZ(15,"mat-form-field",11)(16,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(17,X7e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(18,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(19," Start VM in headless mode "),t.qZA()(),t.TgZ(20,"mat-tab",21),t._UZ(21,"br"),t.TgZ(22,"mat-checkbox",20),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(23," Allow GNS3 to use any configured VirtualBox adapter "),t.qZA(),t._UZ(24,"app-custom-adapters-table",22,23),t.qZA(),t.TgZ(26,"mat-tab",24)(27,"mat-form-field",11)(28,"textarea",25),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,hW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,hW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModel",i.node.properties.ram),t.xp6(4),t.Q6J("ngModelOptions",t.DdM(19,hW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var vO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.virtualBoxConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required),ram:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.virtualBoxConfigurationService.getConsoleTypes(),this.onCloseOptions=this.virtualBoxConfigurationService.getOnCloseoptions(),this.networkTypes=this.virtualBoxConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();vO.\u0275fac=function(r){return new(r||vO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Pg))},vO.\u0275cmp=t.Xpm({type:vO,selectors:[["app-configurator-virtualbox"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(J7e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["matInput","","formControlName","ram","type","number","placeholder","RAM",3,"ngModel","ngModelChange"],["matSuffix",""],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,$7e,29,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VirtualBox VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.R9,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX,Ig],styles:["table[_ngcontent-%COMP%], .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 e9e=["customAdapters"];function t9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function n9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e[1]),t.xp6(1),t.hij(" ",e[0]," ")}}var mW=function(){return{standalone:!0}};function r9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-tab-group")(1,"mat-tab",9),t._UZ(2,"br"),t.TgZ(3,"form",10)(4,"mat-form-field",11)(5,"input",12),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.name=a)}),t.qZA()(),t.TgZ(6,"mat-form-field",13)(7,"mat-select",14),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_type=a)}),t.YNc(8,t9e,2,2,"mat-option",15),t.qZA()(),t.TgZ(9,"mat-checkbox",16),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.console_auto_start=a)}),t._uU(10," Auto start console "),t.qZA(),t.TgZ(11,"mat-form-field",11)(12,"mat-select",17),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.on_close=a)}),t.YNc(13,n9e,2,2,"mat-option",15),t.qZA()()(),t.TgZ(14,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.headless=a)}),t._uU(15," Start VM in headless mode "),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.linked_clone=a)}),t._uU(18," Use a linked base VM (experimental) "),t.qZA()(),t.TgZ(19,"mat-tab",19),t._UZ(20,"br"),t.TgZ(21,"mat-checkbox",18),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.use_any_adapter=a)}),t._uU(22," Allow GNS3 to override non custom VMware adapter "),t.qZA(),t._UZ(23,"app-custom-adapters-table",20,21),t.qZA(),t.TgZ(25,"mat-tab",22)(26,"mat-form-field",11)(27,"textarea",23),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.node.properties.usage=a)}),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("formGroup",i.generalSettingsForm),t.xp6(2),t.Q6J("ngModel",i.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,mW))("ngModel",i.node.console_type),t.xp6(1),t.Q6J("ngForOf",i.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(18,mW))("ngModel",i.node.console_auto_start),t.xp6(3),t.Q6J("ngModelOptions",t.DdM(19,mW))("ngModel",i.node.properties.on_close),t.xp6(1),t.Q6J("ngForOf",i.onCloseOptions),t.xp6(1),t.Q6J("ngModel",i.node.properties.headless),t.xp6(3),t.Q6J("ngModel",i.node.properties.linked_clone),t.xp6(4),t.Q6J("ngModel",i.node.properties.use_any_adapter),t.xp6(2),t.Q6J("networkTypes",i.networkTypes)("displayedColumns",i.displayedColumns)("adapters",i.node.ports),t.xp6(4),t.Q6J("ngModel",i.node.properties.usage)}}var yO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vmwareConfigurationService=a,this.consoleTypes=[],this.onCloseOptions=[],this.displayedColumns=["adapter_number","port_name","adapter_type","actions"],this.networkTypes=[],this.generalSettingsForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vmwareConfigurationService.getConsoleTypes(),this.onCloseOptions=this.vmwareConfigurationService.getOnCloseoptions(),this.networkTypes=this.vmwareConfigurationService.getNetworkTypes()}},{key:"onSaveClick",value:function(){var e=this;this.generalSettingsForm.valid?(this.node.custom_adapters=[],this.customAdapters.adapters.forEach(function(i){e.node.custom_adapters.push({adapter_number:i.adapter_number,adapter_type:i.adapter_type})}),this.node.properties.adapters=this.node.custom_adapters.length,this.nodeService.updateNodeWithCustomAdapters(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()})):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();function i9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}yO.\u0275fac=function(r){return new(r||yO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Rg))},yO.\u0275cmp=t.Xpm({type:yO,selectors:[["app-configurator-vmware"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(e9e,5),2&r)&&(t.iGM(i=t.CRH())&&(e.customAdapters=i.first))},decls:12,vars:2,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","General settings"],[3,"formGroup"],[1,"form-field"],["matInput","","formControlName","name","type","text","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["placeholder","On close",3,"ngModelOptions","ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["label","Network"],[3,"networkTypes","displayedColumns","adapters"],["customAdapters",""],["label","Usage"],["matInput","","type","text",3,"ngModel","ngModelChange"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4),t.YNc(6,r9e,28,20,"mat-tab-group",5),t.qZA()()()(),t.TgZ(7,"div",6)(8,"button",7),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(9,"Cancel"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(11,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VMware VM ",e.name,""),t.xp6(5),t.Q6J("ngIf",e.name))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey,Zi.SP,Zi.uX,Ig],styles:["table[_ngcontent-%COMP%], .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 Nse=function(){return{standalone:!0}},bO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.vpcsConfigurationService=a,this.consoleTypes=[],this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=i.name,e.getConfiguration()})}},{key:"getConfiguration",value:function(){this.consoleTypes=this.vpcsConfigurationService.getConsoleTypes()}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();bO.\u0275fac=function(r){return new(r||bO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS),t.Y36(Dm))},bO.\u0275cmp=t.Xpm({type:bO,selectors:[["app-configurator-vpcs"]],decls:19,vars:10,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],[1,"select"],["placeholder","Console type",3,"ngModelOptions","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModelOptions","ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()(),t.TgZ(9,"mat-form-field",8)(10,"mat-select",9),t.NdJ("ngModelChange",function(o){return e.node.console_type=o}),t.YNc(11,i9e,2,2,"mat-option",10),t.qZA()(),t.TgZ(12,"mat-checkbox",11),t.NdJ("ngModelChange",function(o){return e.node.console_auto_start=o}),t._uU(13," Auto start console "),t.qZA()()()()()(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(18,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Configurator for VPCS node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,Nse))("ngModel",e.node.console_type),t.xp6(1),t.Q6J("ngForOf",e.consoleTypes),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(9,Nse))("ngModel",e.node.console_auto_start))},dependencies:[ge.sg,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr,$r,ni.gD,Vt.ey],styles:["table[_ngcontent-%COMP%], .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 CO=function(){function n(r){(0,H.Z)(this,n),this.dialog=r,this.conf={autoFocus:!1,width:"950px",disableClose:!0}}return(0,B.Z)(n,[{key:"configureNode",value:function(){"vpcs"===this.node.node_type?this.dialogRef=this.dialog.open(bO,this.conf):"ethernet_hub"===this.node.node_type?this.dialogRef=this.dialog.open(dO,this.conf):"ethernet_switch"===this.node.node_type?this.dialogRef=this.dialog.open(cO,this.conf):"cloud"===this.node.node_type?this.dialogRef=this.dialog.open(aO,this.conf):"dynamips"===this.node.node_type?this.dialogRef=this.dialog.open(fO,this.conf):"iou"===this.node.node_type?this.dialogRef=this.dialog.open(pO,this.conf):"qemu"===this.node.node_type?this.dialogRef=this.dialog.open(_O,this.conf):"virtualbox"===this.node.node_type?this.dialogRef=this.dialog.open(vO,this.conf):"vmware"===this.node.node_type?this.dialogRef=this.dialog.open(yO,this.conf):"docker"===this.node.node_type?this.dialogRef=this.dialog.open(uO,this.conf):"nat"===this.node.node_type?this.dialogRef=this.dialog.open(hO,this.conf):"frame_relay_switch"===this.node.node_type?this.dialogRef=this.dialog.open(gO,this.conf):"atm_switch"===this.node.node_type&&(this.dialogRef=this.dialog.open(iO,this.conf));var e=this.dialogRef.componentInstance;e.controller=this.controller,e.node=this.node}}]),n}();function o9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",1),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startCapture())}),t.TgZ(1,"mat-icon"),t._uU(2,"search"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Start Wireshark"),t.qZA()()}}CO.\u0275fac=function(r){return new(r||CO)(t.Y36(jr))},CO.\u0275cmp=t.Xpm({type:CO,selectors:[["app-config-node-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.configureNode()}),t.TgZ(1,"mat-icon"),t._uU(2,"settings_applications"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Configure"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var wO=function(){function n(r){(0,H.Z)(this,n),this.packetCaptureService=r}return(0,B.Z)(n,[{key:"startCapture",value:function(){var e=this.link.capture_file_name.split(".");this.packetCaptureService.startCapture(this.controller,this.project,this.link,e[0])}}]),n}();wO.\u0275fac=function(r){return new(r||wO)(t.Y36(iv))},wO.\u0275cmp=t.Xpm({type:wO,selectors:[["app-start-capture-on-started-link-action"]],inputs:{controller:"controller",project:"project",link:"link"},decls:1,vars:1,consts:[["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&t.YNc(0,o9e,5,0,"button",0),2&r&&t.Q6J("ngIf",e.link.capturing)},dependencies:[ge.O5,Dr,Dn],encapsulation:2});var kO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.nodesDataSource=r,this.drawingsDataSource=e,this.nodeService=i,this.drawingService=o,this.projectService=a}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){1===this.nodes.length&&0===this.drawings.length?this.command=this.nodes[0].locked?"Unlock item":"Lock item":0===this.nodes.length&&1===this.drawings.length?this.command=this.drawings[0].locked?"Unlock item":"Lock item":this.command="Lock/unlock items"}},{key:"lock",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i=this;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.nodes.forEach(function(s){s.locked=!s.locked,i.nodeService.updateNode(i.controller,s).subscribe(function(l){i.nodesDataSource.update(l)})});case 2:return a.next=4,this.drawings.forEach(function(s){s.locked=!s.locked,i.drawingService.update(i.controller,s).subscribe(function(l){i.drawingsDataSource.update(l)})});case 4:this.projectService.projectUpdateLockIcon();case 5:case"end":return a.stop()}},e,this)}))}}]),n}();kO.\u0275fac=function(r){return new(r||kO)(t.Y36(Ya.G),t.Y36(va),t.Y36(Br),t.Y36(Ka),t.Y36(Gs.Y))},kO.\u0275cmp=t.Xpm({type:kO,selectors:[["app-lock-action"]],inputs:{controller:"controller",nodes:"nodes",drawings:"drawings"},features:[t.TTD],decls:5,vars:1,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.lock()}),t.TgZ(1,"mat-icon"),t._uU(2,"lock"),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.qZA()()),2&r&&(t.xp6(4),t.Oqu(e.command))},dependencies:[Dr,Dn],encapsulation:2});var TO=function(){function n(r,e){(0,H.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignHorizontally",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.y}),i/=this.nodes.length,this.nodes.forEach(function(o){o.y=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();TO.\u0275fac=function(r){return new(r||TO)(t.Y36(Ya.G),t.Y36(Br))},TO.\u0275cmp=t.Xpm({type:TO,selectors:[["app-align-horizontally-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignHorizontally()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_horiz"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align horizontally"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var MO=function(){function n(r,e){(0,H.Z)(this,n),this.nodesDataSource=r,this.nodeService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"alignVertically",value:function(){var e=this,i=0;this.nodes.forEach(function(o){i+=o.x}),i/=this.nodes.length,this.nodes.forEach(function(o){o.x=i,e.nodesDataSource.update(o),e.nodeService.update(e.controller,o).subscribe(function(a){})})}}]),n}();MO.\u0275fac=function(r){return new(r||MO)(t.Y36(Ya.G),t.Y36(Br))},MO.\u0275cmp=t.Xpm({type:MO,selectors:[["app-align-vertically-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.alignVertically()}),t.TgZ(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Align vertically"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var SO=function(){function n(r){(0,H.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"open",value:function(){this.electronService.shell.openPath(this.node.node_directory)}}]),n}();SO.\u0275fac=function(r){return new(r||SO)(t.Y36(al))},SO.\u0275cmp=t.Xpm({type:SO,selectors:[["app-open-file-explorer-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.open()}),t.TgZ(1,"mat-icon"),t._uU(2,"tab"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Open file explorer"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var pu=function(){function n(r,e,i){(0,H.Z)(this,n),this.router=r,this.toasterService=e,this.mapSettingsService=i,this.nodeConsoleTrigger=new t.vpe,this.closeNodeConsoleTrigger=new In.xQ,this.consoleResized=new In.xQ,this.openConsoles=0,this.defaultConsoleWidth=720,this.defaultConsoleHeight=408,this.defaultNumberOfColumns=80,this.defaultNumberOfRows=24}return(0,B.Z)(n,[{key:"getNumberOfColumns",value:function(){return this.lastNumberOfColumns}},{key:"getNumberOfRows",value:function(){return this.lastNumberOfRows}},{key:"setNumberOfColumns",value:function(e){this.lastNumberOfColumns=e}},{key:"setNumberOfRows",value:function(e){this.lastNumberOfRows=e}},{key:"openConsoleForNode",value:function(e){this.nodeConsoleTrigger.emit(e)}},{key:"closeConsoleForNode",value:function(e){this.closeNodeConsoleTrigger.next(e)}},{key:"resizeTerminal",value:function(e){this.consoleResized.next(e)}},{key:"getLineWidth",value:function(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}},{key:"getLineHeight",value:function(){return this.defaultConsoleHeight/this.defaultNumberOfRows}},{key:"getUrl",value:function(e,i){var o="ws";return"https:"===e.protocol&&(o="wss"),"".concat(o,"://").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/projects/").concat(i.project_id,"/nodes/").concat(i.node_id,"/console/ws?token=").concat(e.authToken)}},{key:"openConsolesForAllNodesInWidget",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles for them: ",a=0;e.forEach(function(s){"none"!==s.console_type&&("started"===s.status?(i.mapSettingsService.logConsoleSubject.next(!0),setTimeout(function(){i.openConsoleForNode(s)},500)):(a++,o+=s.name+" "))}),a>0&&this.toasterService.error(o)}},{key:"openConsolesForAllNodesInNewTabs",value:function(e){var i=this,o="Please start the following nodes if you want to open consoles in tabs for them: ",a=0;e.forEach(function(s){if("telnet"===s.console_type)if("started"===s.status){var l=i.router.url.split("/"),u="/static/web-ui/".concat(l[1],"/").concat(l[2],"/").concat(l[3],"/").concat(l[4],"/nodes/").concat(s.node_id);window.open(u)}else a++,o+=s.name+" "}),a>0&&this.toasterService.error(o)}}]),n}();pu.\u0275fac=function(r){return new(r||pu)(t.LFG(ur),t.LFG(Ln),t.LFG(ul))},pu.\u0275prov=t.Yz7({token:pu,factory:pu.\u0275fac});var EO=function(){function n(r){(0,H.Z)(this,n),this.nodeConsoleService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInWidget(this.nodes)}}]),n}();EO.\u0275fac=function(r){return new(r||EO)(t.Y36(pu))},EO.\u0275cmp=t.Xpm({type:EO,selectors:[["app-http-console-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var xO=function(){function n(r){(0,H.Z)(this,n),this.nodeConsoleService=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"openConsole",value:function(){this.nodeConsoleService.openConsolesForAllNodesInNewTabs(this.nodes)}}]),n}();xO.\u0275fac=function(r){return new(r||xO)(t.Y36(pu))},xO.\u0275cmp=t.Xpm({type:xO,selectors:[["app-http-console-new-tab-action"]],inputs:{controller:"controller",nodes:"nodes"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.openConsole()}),t.TgZ(1,"mat-icon"),t._uU(2,"http"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Web console in new tab"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var DO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.nodeService=e,this.toasterService=i,this.formBuilder=o,this.inputForm=this.formBuilder.group({name:new J.p4("",J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeService.getNode(this.controller,this.node).subscribe(function(i){e.node=i,e.name=e.node.name})}},{key:"onSaveClick",value:function(){var e=this;this.inputForm.valid?this.nodeService.updateNode(this.controller,this.node).subscribe(function(){e.toasterService.success("Node ".concat(e.node.name," updated.")),e.onCancelClick()}):this.toasterService.error("Fill all required fields.")}},{key:"onCancelClick",value:function(){this.dialogRef.close()}}]),n}();DO.\u0275fac=function(r){return new(r||DO)(t.Y36(cr),t.Y36(Br),t.Y36(Ln),t.Y36(J.QS))},DO.\u0275cmp=t.Xpm({type:DO,selectors:[["app-change-hostname-dialog-component"]],decls:14,vars:3,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"content"],[1,"default-content"],[1,"matCard"],[3,"formGroup"],[1,"form-field"],["matInput","","type","text","formControlName","name","placeholder","Name",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-card",4)(6,"form",5)(7,"mat-form-field",6)(8,"input",7),t.NdJ("ngModelChange",function(o){return e.node.name=o}),t.qZA()()()()()()(),t.TgZ(9,"div",8)(10,"button",9),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",10),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(13,"Apply"),t.qZA()()),2&r&&(t.xp6(1),t.hij("Change hostname for node ",e.name,""),t.xp6(5),t.Q6J("formGroup",e.inputForm),t.xp6(2),t.Q6J("ngModel",e.node.name))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Kn,Cr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var AO=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"changeHostname",value:function(){var i=this.dialog.open(DO,{autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.node=this.node}}]),n}();function a9e(n,r){if(1&n&&t._UZ(0,"app-show-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function s9e(n,r){if(1&n&&t._UZ(0,"app-config-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function l9e(n,r){if(1&n&&t._UZ(0,"app-start-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function u9e(n,r){if(1&n&&t._UZ(0,"app-suspend-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function c9e(n,r){if(1&n&&t._UZ(0,"app-stop-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function d9e(n,r){if(1&n&&t._UZ(0,"app-reload-node-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function f9e(n,r){if(1&n&&t._UZ(0,"app-http-console-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function p9e(n,r){if(1&n&&t._UZ(0,"app-http-console-new-tab-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function h9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function m9e(n,r){if(1&n&&t._UZ(0,"app-console-device-action-browser",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function _9e(n,r){if(1&n&&t._UZ(0,"app-open-file-explorer-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function g9e(n,r){if(1&n&&t._UZ(0,"app-isolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function v9e(n,r){if(1&n&&t._UZ(0,"app-unisolate-node-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function y9e(n,r){if(1&n&&t._UZ(0,"app-change-hostname-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function b9e(n,r){if(1&n&&t._UZ(0,"app-change-symbol-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function C9e(n,r){if(1&n&&t._UZ(0,"app-duplicate-action",16),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("nodes",e.nodes)("drawings",e.drawings)}}function w9e(n,r){if(1&n&&t._UZ(0,"app-edit-style-action",17),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])}}function k9e(n,r){if(1&n&&t._UZ(0,"app-edit-text-action",18),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("drawing",e.drawings[0])("node",e.nodes[0])("label",e.labels[0])("link",e.links[0])("linkNode",e.linkNodes[0])}}function T9e(n,r){if(1&n&&t._UZ(0,"app-edit-config-action",19),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("node",e.nodes[0])}}function M9e(n,r){if(1&n&&t._UZ(0,"app-export-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function S9e(n,r){if(1&n&&t._UZ(0,"app-import-config-action",14),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("node",e.nodes[0])}}function E9e(n,r){if(1&n&&t._UZ(0,"app-move-layer-up-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function x9e(n,r){if(1&n&&t._UZ(0,"app-move-layer-down-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function D9e(n,r){if(1&n&&t._UZ(0,"app-bring-to-front-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function A9e(n,r){if(1&n&&t._UZ(0,"app-start-capture-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function O9e(n,r){if(1&n&&t._UZ(0,"app-stop-capture-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function I9e(n,r){if(1&n&&t._UZ(0,"app-start-capture-on-started-link-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function P9e(n,r){if(1&n&&t._UZ(0,"app-packet-filters-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function R9e(n,r){if(1&n&&t._UZ(0,"app-resume-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function L9e(n,r){if(1&n&&t._UZ(0,"app-suspend-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function Z9e(n,r){if(1&n&&t._UZ(0,"app-reset-link-action",22),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("link",e.links[0])}}function N9e(n,r){if(1&n&&t._UZ(0,"app-edit-link-style-action",21),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("project",e.project)("link",e.links[0])}}function B9e(n,r){if(1&n&&t._UZ(0,"app-lock-action",20),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)}}function F9e(n,r){if(1&n&&t._UZ(0,"app-delete-action",23),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)("drawings",e.drawings)("links",e.links)}}function U9e(n,r){if(1&n&&t._UZ(0,"app-align-horizontally-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}function H9e(n,r){if(1&n&&t._UZ(0,"app-align-vertically-action",15),2&n){var e=t.oxw();t.Q6J("controller",e.controller)("nodes",e.nodes)}}AO.\u0275fac=function(r){return new(r||AO)(t.Y36(jr))},AO.\u0275cmp=t.Xpm({type:AO,selectors:[["app-change-hostname-action"]],inputs:{controller:"controller",node:"node"},decls:5,vars:0,consts:[["mat-menu-item","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.changeHostname()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Change hostname"),t.qZA()())},dependencies:[Dr,Dn],encapsulation:2});var rT=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.electronService=i,this.projectService=o,this.drawings=[],this.nodes=[],this.labels=[],this.links=[],this.linkNodes=[],this.hasTextCapabilities=!1,this.isElectronApp=!1,this.isBundledController=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0),this.isElectronApp=this.electronService.isElectronApp,this.isBundledController="bundled"===this.controller.location}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"openMenuForDrawing",value:function(e,i,o){this.resetCapabilities(),this.hasTextCapabilities=e.element instanceof gb,this.drawings=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForNode",value:function(e,i,o){this.resetCapabilities(),this.nodes=[e],this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"openMenuForLabel",value:function(e,i,o,a){this.resetCapabilities(),this.labels=[e],this.nodes=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForInterfaceLabel",value:function(e,i,o,a){this.resetCapabilities(),this.linkNodes=[e],this.links=[i],this.setPosition(o,a),this.contextMenu.openMenu()}},{key:"openMenuForListOfElements",value:function(e,i,o,a,s,l){this.resetCapabilities(),this.drawings=e,this.nodes=i,this.labels=o,this.links=a,this.setPosition(s,l),this.contextMenu.openMenu()}},{key:"resetCapabilities",value:function(){this.drawings=[],this.nodes=[],this.labels=[],this.linkNodes=[],this.links=[],this.hasTextCapabilities=!1}}]),n}();function j9e(n,r){if(1&n&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function G9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-form-field",16)(1,"mat-select",17),t.NdJ("selectionChange",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s._changePageSize(a.value))}),t.YNc(2,j9e,2,2,"mat-option",18),t.qZA()()}if(2&n){var i=t.oxw(2);t.Q6J("appearance",i._formFieldAppearance)("color",i.color),t.xp6(1),t.Q6J("value",i.pageSize)("disabled",i.disabled)("panelClass",i.selectConfig.panelClass||"")("disableOptionCentering",i.selectConfig.disableOptionCentering)("aria-label",i._intl.itemsPerPageLabel),t.xp6(1),t.Q6J("ngForOf",i._displayedPageSizeOptions)}}function z9e(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Oqu(e.pageSize)}}function W9e(n,r){if(1&n&&(t.TgZ(0,"div",12)(1,"div",13),t._uU(2),t.qZA(),t.YNc(3,G9e,3,8,"mat-form-field",14),t.YNc(4,z9e,2,1,"div",15),t.qZA()),2&n){var e=t.oxw();t.xp6(2),t.hij(" ",e._intl.itemsPerPageLabel," "),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length>1),t.xp6(1),t.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function V9e(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.firstPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",22),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),t.uIk("aria-label",i._intl.firstPageLabel)}}function Y9e(n,r){if(1&n){var e=t.EpF();t.O4$(),t.kcU(),t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.lastPage())}),t.O4$(),t.TgZ(1,"svg",7),t._UZ(2,"path",24),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),t.uIk("aria-label",i._intl.lastPageLabel)}}rT.\u0275fac=function(r){return new(r||rT)(t.Y36(Jt),t.Y36(t.sBO),t.Y36(al),t.Y36(Gs.Y))},rT.\u0275cmp=t.Xpm({type:rT,selectors:[["app-context-menu"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_a,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{project:"project",controller:"controller"},decls:40,vars:41,consts:[[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["contextMenu","matMenu"],[3,"controller","node",4,"ngIf"],[3,"controller","nodes",4,"ngIf"],[3,"controller","project","nodes","drawings",4,"ngIf"],[3,"controller","project","drawing",4,"ngIf"],[3,"controller","project","drawing","node","label","link","linkNode",4,"ngIf"],[3,"controller","project","node",4,"ngIf"],[3,"controller","nodes","drawings",4,"ngIf"],[3,"controller","project","link",4,"ngIf"],[3,"controller","link",4,"ngIf"],[3,"controller","nodes","drawings","links",4,"ngIf"],[3,"controller","node"],[3,"controller","nodes"],[3,"controller","project","nodes","drawings"],[3,"controller","project","drawing"],[3,"controller","project","drawing","node","label","link","linkNode"],[3,"controller","project","node"],[3,"controller","nodes","drawings"],[3,"controller","project","link"],[3,"controller","link"],[3,"controller","nodes","drawings","links"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0),t._UZ(1,"span",1),t.TgZ(2,"mat-menu",2,3),t.YNc(4,a9e,1,2,"app-show-node-action",4),t.YNc(5,s9e,1,2,"app-config-node-action",4),t.YNc(6,l9e,1,2,"app-start-node-action",5),t.YNc(7,u9e,1,2,"app-suspend-node-action",5),t.YNc(8,c9e,1,2,"app-stop-node-action",5),t.YNc(9,d9e,1,2,"app-reload-node-action",5),t.YNc(10,f9e,1,2,"app-http-console-action",5),t.YNc(11,p9e,1,2,"app-http-console-new-tab-action",5),t.YNc(12,h9e,1,2,"app-console-device-action",5),t.YNc(13,m9e,1,2,"app-console-device-action-browser",4),t.YNc(14,_9e,1,2,"app-open-file-explorer-action",4),t.YNc(15,g9e,1,2,"app-isolate-node-action",4),t.YNc(16,v9e,1,2,"app-unisolate-node-action",4),t.YNc(17,y9e,1,2,"app-change-hostname-action",4),t.YNc(18,b9e,1,2,"app-change-symbol-action",4),t.YNc(19,C9e,1,4,"app-duplicate-action",6),t.YNc(20,w9e,1,3,"app-edit-style-action",7),t.YNc(21,k9e,1,7,"app-edit-text-action",8),t.YNc(22,T9e,1,3,"app-edit-config-action",9),t.YNc(23,M9e,1,2,"app-export-config-action",4),t.YNc(24,S9e,1,2,"app-import-config-action",4),t.YNc(25,E9e,1,3,"app-move-layer-up-action",10),t.YNc(26,x9e,1,3,"app-move-layer-down-action",10),t.YNc(27,D9e,1,3,"app-bring-to-front-action",10),t.YNc(28,A9e,1,3,"app-start-capture-action",11),t.YNc(29,O9e,1,2,"app-stop-capture-action",12),t.YNc(30,I9e,1,3,"app-start-capture-on-started-link-action",11),t.YNc(31,P9e,1,3,"app-packet-filters-action",11),t.YNc(32,R9e,1,2,"app-resume-link-action",12),t.YNc(33,L9e,1,2,"app-suspend-link-action",12),t.YNc(34,Z9e,1,2,"app-reset-link-action",12),t.YNc(35,N9e,1,3,"app-edit-link-style-action",11),t.YNc(36,B9e,1,3,"app-lock-action",10),t.YNc(37,F9e,1,4,"app-delete-action",13),t.YNc(38,U9e,1,2,"app-align-horizontally-action",5),t.YNc(39,H9e,1,2,"app-align-vertically-action",5),t.qZA()()),2&r){var i=t.MAs(3);t.Udp("left",e.leftPosition)("top",e.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(3),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&!e.isElectronApp),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length&&e.isElectronApp),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.nodes.length),t.xp6(1),t.Q6J("ngIf",e.drawings.length>0||e.nodes.length>0),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&1===e.drawings.length&&!e.hasTextCapabilities),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(1===e.drawings.length&&e.hasTextCapabilities&&0===e.labels.length&&0===e.linkNodes.length||1===e.labels.length&&0===e.linkNodes.length&&0===e.drawings.length||1===e.linkNodes.length&&0===e.labels.length&&0===e.drawings.length)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&"vpcs"===e.nodes[0].node_type),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",1===e.nodes.length&&("vpcs"===e.nodes[0].node_type||"iou"===e.nodes[0].node_type||"dynamips"===e.nodes[0].node_type)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length||e.nodes.length)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&0===e.drawings.length&&0===e.nodes.length&&1===e.links.length&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0)),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&(e.drawings.length>0||e.nodes.length>0||e.links.length>0)&&0===e.linkNodes.length),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1),t.xp6(1),t.Q6J("ngIf",!e.projectService.isReadOnly(e.project)&&e.nodes.length>1)}},dependencies:[ge.O5,Va,_a,kA,TA,MA,SA,EA,xA,AA,IA,RA,LA,ZA,FA,HA,jA,GA,zA,WA,YA,qA,JA,QA,XA,$A,tO,nO,rO,CO,wO,kO,TO,MO,SO,EO,xO,AO],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 Gm=(0,B.Z)(function n(){(0,H.Z)(this,n),this.changes=new In.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)}});Gm.\u0275fac=function(r){return new(r||Gm)},Gm.\u0275prov=t.Yz7({token:Gm,factory:Gm.\u0275fac,providedIn:"root"});var q9e={provide:Gm,deps:[[new t.FiY,new t.tp0,Gm]],useFactory:function K9e(n){return n||new Gm}},Q9e=new t.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),X9e=(0,Vt.Id)((0,Vt.dB)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}())),MF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;if((0,H.Z)(this,e),(s=r.call(this))._intl=i,s._changeDetectorRef=o,s._pageIndex=0,s._length=0,s._pageSizeOptions=[],s._hidePageSize=!1,s._showFirstLastButtons=!1,s.selectConfig={},s.page=new t.vpe,s._intlChanges=i.changes.subscribe(function(){return s._changeDetectorRef.markForCheck()}),a){var l=a.pageSize,u=a.pageSizeOptions,d=a.hidePageSize,h=a.showFirstLastButtons;null!=l&&(s._pageSize=l),null!=u&&(s._pageSizeOptions=u),null!=d&&(s._hidePageSize=d),null!=h&&(s._showFirstLastButtons=h)}return s}return(0,B.Z)(e,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(o){this._pageIndex=Math.max((0,Mn.su)(o),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(o){this._length=(0,Mn.su)(o),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(o){this._pageSize=Math.max((0,Mn.su)(o),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(o){this._pageSizeOptions=(o||[]).map(function(a){return(0,Mn.su)(a)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(o){this._hidePageSize=(0,Mn.Ig)(o)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(o){this._showFirstLastButtons=(0,Mn.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}(X9e);MF.\u0275fac=function(r){t.$Z()},MF.\u0275dir=t.lG2({type:MF,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[t.qOj]});var md=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),s=r.call(this,i,o,a),a&&null!=a.formFieldAppearance&&(s._formFieldAppearance=a.formFieldAppearance),s}return(0,B.Z)(e)}(MF);md.\u0275fac=function(r){return new(r||md)(t.Y36(Gm),t.Y36(t.sBO),t.Y36(Q9e,8))},md.\u0275cmp=t.Xpm({type:md,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[t.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,W9e,5,3,"div",2),t.TgZ(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.YNc(6,V9e,3,5,"button",5),t.TgZ(7,"button",6),t.NdJ("click",function(){return e.previousPage()}),t.O4$(),t.TgZ(8,"svg",7),t._UZ(9,"path",8),t.qZA()(),t.kcU(),t.TgZ(10,"button",9),t.NdJ("click",function(){return e.nextPage()}),t.O4$(),t.TgZ(11,"svg",7),t._UZ(12,"path",10),t.qZA()(),t.YNc(13,Y9e,3,5,"button",11),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("ngIf",!e.hidePageSize),t.xp6(3),t.hij(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),t.xp6(1),t.Q6J("ngIf",e.showFirstLastButtons),t.xp6(1),t.Q6J("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),t.uIk("aria-label",e._intl.previousPageLabel),t.xp6(3),t.Q6J("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),t.uIk("aria-label",e._intl.nextPageLabel),t.xp6(3),t.Q6J("ngIf",e.showFirstLastButtons))},dependencies:[ge.sg,ge.O5,cn,kn.KE,ni.gD,Vt.ey,ui],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0});var iT=(0,B.Z)(function n(){(0,H.Z)(this,n)});iT.\u0275fac=function(r){return new(r||iT)},iT.\u0275mod=t.oAB({type:iT}),iT.\u0275inj=t.cJS({providers:[q9e],imports:[ge.ez,dm,ni.LD,U0,Vt.BQ]});var $9e=m(1452),oT=function(){function n(r){(0,H.Z)(this,n),this.dialogRef=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onNoClick",value:function(){this.dialogRef.close(!1)}},{key:"onYesClick",value:function(){this.dialogRef.close(!0)}}]),n}();function eHe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Adapters: ",e.appliance.qemu.adapters,"")}}function tHe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.hij("Console type: ",e.appliance.qemu.console_type,"")}}oT.\u0275fac=function(r){return new(r||oT)(t.Y36(cr))},oT.\u0275cmp=t.Xpm({type:oT,selectors:[["app-information-dialog"]],decls:7,vars:1,consts:[["mat-dialog-actions",""],["mat-button","","color","accent",1,"cancelButton",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"confirmButton",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"span"),t._uU(1),t.qZA(),t.TgZ(2,"div",0)(3,"button",1),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4,"No"),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return e.onYesClick()}),t._uU(6," Yes "),t.qZA()()),2&r&&(t.xp6(1),t.Oqu(e.confirmationMessage))},dependencies:[cn,dr]});var OO=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();OO.\u0275fac=function(r){return new(r||OO)(t.Y36(cr),t.Y36(So))},OO.\u0275cmp=t.Xpm({type:OO,selectors:[["appliance-info-dialog"]],decls:15,vars:6,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.qZA()(),t.TgZ(3,"div",2)(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"div"),t._uU(7),t.qZA(),t.TgZ(8,"div"),t._uU(9),t.qZA(),t.YNc(10,eHe,2,1,"div",3),t.YNc(11,tHe,2,1,"div",3),t.qZA(),t.TgZ(12,"div",4)(13,"button",5),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Close"),t.qZA()()),2&r&&(t.xp6(2),t.Oqu(e.appliance.name),t.xp6(3),t.hij("Vendor: ",e.appliance.vendor_name,""),t.xp6(2),t.hij("Status: ",e.appliance.status,""),t.xp6(2),t.hij("Maintainer: ",e.appliance.maintainer,""),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu),t.xp6(1),t.Q6J("ngIf",e.appliance.qemu))},dependencies:[ge.O5,cn,Cr,du,dr],encapsulation:2});var nHe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.list(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{templateExist:!0}:null}))}};function rHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is required"),t.qZA())}function iHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template name is incorrect"),t.qZA())}function oHe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Template with this name exists"),t.qZA())}var aHe=function(r){return{"is-invalid":r}},ov=function(){function n(r,e,i,o,a,s,l,u){(0,H.Z)(this,n),this.dialogRef=r,this.router=e,this.dialog=i,this.toasterService=o,this.formBuilder=a,this.templateNameValidator=s,this.templateService=l,this.data=u}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.data.name;this.templateNameForm=this.formBuilder.group({templateName:new J.p4(i,[J.kI.required,this.templateNameValidator.get],[nHe(this.controller,this.templateService)])}),setTimeout(function(){e.templateNameForm.controls.templateName.markAsTouched()},100)}},{key:"form",get:function(){return this.templateNameForm.controls}},{key:"onAddClick",value:function(){var e=this;this.templateNameForm.invalid?this.toasterService.error("Please enter correct name for new template"):this.templateService.list(this.controller).subscribe(function(i){var o=e.templateNameForm.controls.templateName.value;i.find(function(s){return s.name===o})?e.toasterService.error("Template with this name exists"):e.dialogRef.close(e.templateNameForm.controls.templateName.value)})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}}]),n}();ov.\u0275fac=function(r){return new(r||ov)(t.Y36(cr),t.Y36(ur),t.Y36(jr),t.Y36(Ln),t.Y36(J.QS),t.Y36(Gu),t.Y36(lf),t.Y36(So))},ov.\u0275cmp=t.Xpm({type:ov,selectors:[["app-template-name-dialog"]],features:[t._Bn([Gu])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","templateName","placeholder","Template name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Please enter name for the new template"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,rHe,2,0,"mat-error",4),t.YNc(6,iHe,2,0,"mat-error",4),t.YNc(7,oHe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add template "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.templateNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,aHe,null==e.form.templateName?null:e.form.templateName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.touched)&&(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.templateName?null:e.form.templateName.errors)&&(null==e.form.templateName?null:e.form.templateName.errors.templateExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var xb=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getAppliances",value:function(e){return this.httpController.get(e,"/appliances")}},{key:"getAppliance",value:function(e,i){return this.httpController.get(e,i)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/images/upload/").concat(o,"?allow_raw_image=true")}},{key:"updateAppliances",value:function(e){return this.httpController.get(e,"/appliances?update=yes")}}]),n}();xb.\u0275fac=function(r){return new(r||xb)(t.LFG(mo.zw))},xb.\u0275prov=t.Yz7({token:xb,factory:xb.\u0275fac});function lHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){t.CHM(e);var a=t.oxw();return t.KtG(a._disableViewStateAnimation=!1)}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",i._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",i._getArrowDirectionState())}}var Bse=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),cHe=(0,Vt.dB)((0,Vt.Id)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}())),zu=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._defaultOptions=i,o.sortables=new Map,o._stateChanges=new In.xQ,o.start="asc",o._direction="",o.sortChange=new t.vpe,o}return(0,B.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,Mn.Ig)(o)}},{key:"register",value:function(o){this.sortables.set(o.id,o)}},{key:"deregister",value:function(o){this.sortables.delete(o.id)}},{key:"sort",value:function(o){this.active!=o.id?(this.active=o.id,this.direction=o.start?o.start:this.start):this.direction=this.getNextSortDirection(o),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(o){var a,s,l;if(!o)return"";var u=null!==(s=null!==(a=null==o?void 0:o.disableClear)&&void 0!==a?a:this.disableClear)&&void 0!==s?s:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear),d=function dHe(n,r){var e=["asc","desc"];return"desc"==n&&e.reverse(),r||e.push(""),e}(o.start||this.start,u),h=d.indexOf(this.direction)+1;return h>=d.length&&(h=0),d[h]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(cHe);zu.\u0275fac=function(r){return new(r||zu)(t.Y36(Bse,8))},zu.\u0275dir=t.lG2({type:zu,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]});var av=Vt.mZ.ENTERING+" "+Vt.yN.STANDARD_CURVE,aT={indicator:(0,Rt.X$)("indicator",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"translateY(0px)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"translateY(10px)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(av))]),leftPointer:(0,Rt.X$)("leftPointer",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"rotate(-45deg)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"rotate(45deg)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(av))]),rightPointer:(0,Rt.X$)("rightPointer",[(0,Rt.SB)("active-asc, asc",(0,Rt.oB)({transform:"rotate(45deg)"})),(0,Rt.SB)("active-desc, desc",(0,Rt.oB)({transform:"rotate(-45deg)"})),(0,Rt.eR)("active-asc <=> active-desc",(0,Rt.jt)(av))]),arrowOpacity:(0,Rt.X$)("arrowOpacity",[(0,Rt.SB)("desc-to-active, asc-to-active, active",(0,Rt.oB)({opacity:1})),(0,Rt.SB)("desc-to-hint, asc-to-hint, hint",(0,Rt.oB)({opacity:.54})),(0,Rt.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,Rt.oB)({opacity:0})),(0,Rt.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,Rt.jt)("0ms")),(0,Rt.eR)("* <=> *",(0,Rt.jt)(av))]),arrowPosition:(0,Rt.X$)("arrowPosition",[(0,Rt.eR)("* => desc-to-hint, * => desc-to-active",(0,Rt.jt)(av,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(-25%)"}),(0,Rt.oB)({transform:"translateY(0)"})]))),(0,Rt.eR)("* => hint-to-desc, * => active-to-desc",(0,Rt.jt)(av,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(0)"}),(0,Rt.oB)({transform:"translateY(25%)"})]))),(0,Rt.eR)("* => asc-to-hint, * => asc-to-active",(0,Rt.jt)(av,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(25%)"}),(0,Rt.oB)({transform:"translateY(0)"})]))),(0,Rt.eR)("* => hint-to-asc, * => active-to-asc",(0,Rt.jt)(av,(0,Rt.F4)([(0,Rt.oB)({transform:"translateY(0)"}),(0,Rt.oB)({transform:"translateY(-25%)"})]))),(0,Rt.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,Rt.oB)({transform:"translateY(0)"})),(0,Rt.SB)("hint-to-desc, active-to-desc, desc",(0,Rt.oB)({transform:"translateY(-25%)"})),(0,Rt.SB)("hint-to-asc, active-to-asc, asc",(0,Rt.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,Rt.X$)("allowChildren",[(0,Rt.eR)("* <=> *",[(0,Rt.IO)("@*",(0,Rt.pV)(),{optional:!0})])])},zm=(0,B.Z)(function n(){(0,H.Z)(this,n),this.changes=new In.xQ});zm.\u0275fac=function(r){return new(r||zm)},zm.\u0275prov=t.Yz7({token:zm,factory:zm.\u0275fac,providedIn:"root"});var pHe={provide:zm,deps:[[new t.FiY,new t.tp0,zm]],useFactory:function fHe(n){return n||new zm}},hHe=(0,Vt.Id)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),yf=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,H.Z)(this,e),(g=r.call(this))._intl=i,g._changeDetectorRef=o,g._sort=a,g._columnDef=s,g._focusMonitor=l,g._elementRef=u,g._ariaDescriber=d,g._showIndicatorHint=!1,g._viewState={},g._arrowDirection="",g._disableViewStateAnimation=!1,g.arrowPosition="after",g._sortActionDescription="Sort",null!=h&&h.arrowPosition&&(g.arrowPosition=null==h?void 0:h.arrowPosition),g._handleStateChanges(),g}return(0,B.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,Mn.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===Sr.L_||o.keyCode===Sr.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,ji.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}(hHe);yf.\u0275fac=function(r){return new(r||yf)(t.Y36(zm),t.Y36(t.sBO),t.Y36(zu,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(Yr.tE),t.Y36(t.SBq),t.Y36(Yr.$s,8),t.Y36(Bse,8))},yf.\u0275cmp=t.Xpm({type:yf,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,e){1&r&&t.NdJ("click",function(){return e._handleClick()})("keydown",function(o){return e._handleKeydown(o)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&r&&(t.uIk("aria-sort",e._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,lHe,6,6,"div",2),t.qZA()),2&r&&(t.ekj("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"===e.arrowPosition),t.uIk("tabindex",e._isDisabled()?null:0)("role",e._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",e._renderArrow()))},dependencies:[ge.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[aT.indicator,aT.leftPointer,aT.rightPointer,aT.arrowOpacity,aT.arrowPosition,aT.allowChildren]},changeDetection:0});var sT=(0,B.Z)(function n(){(0,H.Z)(this,n)});sT.\u0275fac=function(r){return new(r||sT)},sT.\u0275mod=t.oAB({type:sT}),sT.\u0275inj=t.cJS({providers:[pHe],imports:[ge.ez,Vt.BQ]});var IO=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filteredData.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();IO.\u0275fac=function(r){return new(r||IO)},IO.\u0275pipe=t.Yjl({name:"datasourcefilter",type:IO,pure:!0});var mHe=["stepper"];function _He(n,r){1&n&&t._uU(0,"Please select how you want to create new template")}function gHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw();t.Oqu(e.actionTitle)}}function vHe(n,r){if(1&n&&(t.TgZ(0,"mat-option",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function yHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}function bHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function CHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Emulator "),t.qZA())}function wHe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.emulator," ")}}function kHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Vendor "),t.qZA())}function THe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.vendor_name," ")}}function MHe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function SHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",34)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.install(a))}),t.TgZ(2,"mat-icon",36),t._uU(3,"archive"),t.qZA()(),t.TgZ(4,"button",37),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.showInfo(a))}),t.TgZ(5,"mat-icon",38),t._uU(6,"info"),t.qZA()()()}}function EHe(n,r){1&n&&t._UZ(0,"mat-header-row")}function xHe(n,r){1&n&&t._UZ(0,"mat-row")}function DHe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw(2);t.Oqu(e.secondActionTitle)}}function AHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function OHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function IHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,AHe,3,0,"span",32),t.YNc(5,OHe,3,0,"span",32),t.TgZ(6,"input",46,47),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.bios_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.bios_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.bios_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.bios_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function PHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function RHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function LHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,PHe,3,0,"span",32),t.YNc(5,RHe,3,0,"span",32),t.TgZ(6,"input",46,51),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hda_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hda_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hda_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hda_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function ZHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function NHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function BHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ZHe,3,0,"span",32),t.YNc(5,NHe,3,0,"span",32),t.TgZ(6,"input",46,52),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdb_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdb_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdb_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function FHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function UHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function HHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,FHe,3,0,"span",32),t.YNc(5,UHe,3,0,"span",32),t.TgZ(6,"input",46,53),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdc_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdc_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdb_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdc_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function jHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function GHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function zHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,jHe,3,0,"span",32),t.YNc(5,GHe,3,0,"span",32),t.TgZ(6,"input",46,54),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.hdd_disk_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.hdd_disk_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.hdd_disk_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.hdd_disk_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function WHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function VHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function YHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",45)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t.YNc(4,WHe,3,0,"span",32),t.YNc(5,VHe,3,0,"span",32),t.TgZ(6,"input",46,55),t.NdJ("change",function(s){t.CHM(e);var l=t.oxw().$implicit,u=t.oxw(3);return t.KtG(u.importImage(s,l.images.cdrom_image))}),t.qZA(),t.TgZ(8,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(7);return t.KtG(s.click())}),t._uU(9,"Import"),t.qZA(),t.TgZ(10,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().$implicit,l=t.oxw(3);return t.KtG(l.downloadImageFromVersion(s.images.cdrom_image))}),t._uU(11," Download "),t.qZA()()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw(3);t.xp6(2),t.hij(" ",i.images.cdrom_image," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.images.cdrom_image)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function KHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div")(5,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createQemuTemplateFromVersion(l))}),t._uU(6," Create "),t.qZA()()(),t.YNc(7,IHe,12,4,"div",44),t.YNc(8,LHe,12,4,"div",44),t.YNc(9,BHe,12,4,"div",44),t.YNc(10,HHe,12,4,"div",44),t.YNc(11,zHe,12,4,"div",44),t.YNc(12,YHe,12,4,"div",44),t.qZA()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.AsE("",o.applianceToInstall.name," version ",i.name,""),t.xp6(4),t.Q6J("ngIf",i.images.bios_image),t.xp6(1),t.Q6J("ngIf",i.images.hda_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdb_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdc_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.hdd_disk_image),t.xp6(1),t.Q6J("ngIf",i.images.cdrom_image)}}function qHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required files "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"div"),t.YNc(8,KHe,13,8,"div",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.versions)}}function JHe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"button",29),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.createDockerTemplate())}),t._uU(2," Create docker template "),t.qZA()()}}function QHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function XHe(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function $He(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t.YNc(5,QHe,3,0,"span",32),t.YNc(6,XHe,3,0,"span",32),t.TgZ(7,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(9,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(8);return t.KtG(s.click())}),t._uU(10,"Import"),t.qZA(),t.TgZ(11,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIosTemplate(l))}),t._uU(12," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function eje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install the required images "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,$He,13,4,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function tje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",49),t._uU(2,"check"),t.qZA()())}function nje(n,r){1&n&&(t.TgZ(0,"span")(1,"mat-icon",50),t._uU(2,"close"),t.qZA()())}function rje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-list-item")(1,"div",42)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t.YNc(5,tje,3,0,"span",32),t.YNc(6,nje,3,0,"span",32),t.TgZ(7,"input",46,51),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.importImage(s,u.filename))}),t.qZA(),t.TgZ(9,"button",48),t.NdJ("click",function(){t.CHM(e);var s=t.MAs(8);return t.KtG(s.click())}),t._uU(10,"Import"),t.qZA(),t.TgZ(11,"button",43),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw(3);return t.KtG(u.createIouTemplate(l))}),t._uU(12," Create "),t.qZA()()()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(3),t.hij(" ",i.filename," "),t.xp6(2),t.Q6J("ngIf",o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("ngIf",!o.checkImageFromVersion(i.filename)),t.xp6(1),t.Q6J("uploader",o.uploaderImage)}}function ije(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div"),t._uU(2," Install required images "),t.TgZ(3,"button",39),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.refreshImages())}),t.TgZ(4,"mat-icon",40),t._uU(5,"refresh"),t.qZA()(),t._UZ(6,"br"),t.TgZ(7,"mat-list"),t.YNc(8,rje,13,4,"mat-list-item",41),t.qZA()()()}if(2&n){var i=t.oxw(2);t.xp6(8),t.Q6J("ngForOf",i.applianceToInstall.images)}}function oje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-step"),t.YNc(1,DHe,1,1,"ng-template",3),t.TgZ(2,"mat-card",9),t.YNc(3,qHe,9,1,"div",32),t.YNc(4,JHe,3,0,"div",32),t.YNc(5,eje,9,1,"div",32),t.YNc(6,ije,9,1,"div",32),t.qZA(),t.TgZ(7,"div")(8,"button",30),t._uU(9,"Back"),t.qZA(),t.TgZ(10,"button",8),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onCloseClick())}),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("hidden",!(!i.isLinuxPlatform||i.applianceToInstall.dynamips)),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.qemu),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.docker),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.dynamips),t.xp6(1),t.Q6J("ngIf",i.applianceToInstall.iou)}}var aje=function(){return{standalone:!0}},sje=function(){return[5,10,20,50,100]},lT=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q){(0,H.Z)(this,n),this.dialogRef=r,this.applianceService=e,this.changeDetector=i,this.toasterService=o,this.qemuService=a,this.dockerService=s,this.iosService=l,this.iouService=u,this.templateService=d,this.dialog=h,this.computeService=g,this.changeDetectorRef=C,this.progressService=Z,this.snackBar=z,this.uploadServiceService=q,this.action="install",this.actionTitle="Install appliance from controller",this.secondActionTitle="Appliance settings",this.searchText="",this.allAppliances=[],this.appliances=[],this.isLinuxPlatform=!1,this.isLocalComputerChosen=!1,this.categories=["all categories","router","multilayer_switch","guest","firewall"],this.category="all categories",this.displayedColumns=["name","emulator","vendor","actions"],this.qemuImages=[],this.iosImages=[],this.iouImages=[],this.templates=[],this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.templateService.list(this.controller).subscribe(function(i){e.templates=i}),this.computeService.getComputes(this.controller).subscribe(function(i){i.forEach(function(o){"linux"===o.capabilities.platform&&(e.isLinuxPlatform=!0)})}),this.qemuService.getImages(this.controller).subscribe(function(i){e.qemuImages=i}),this.iosService.getImages(this.controller).subscribe(function(i){e.iosImages=i}),this.iouService.getImages(this.controller).subscribe(function(i){e.iouImages=i}),this.applianceService.getAppliances(this.controller).subscribe(function(i){e.appliances=i,e.appliances.forEach(function(o){o.docker&&(o.emulator="Docker"),o.dynamips&&(o.emulator="Dynamips"),o.iou&&(o.emulator="Iou"),o.qemu&&(o.emulator="Qemu")}),e.allAppliances=i,e.dataSource=new Ap(e.allAppliances),e.dataSource.paginator=e.paginator}),this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onSuccessItem=function(i,o,a,s){e.toasterService.success("Appliance imported succesfully"),e.getAppliance(i.url)},this.uploaderImage=new wg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occurred because image already exists"),e.progressService.deactivate(),e.uploaderImage.clearQueue()},this.uploaderImage.onSuccessItem=function(i,o,a,s){e.toasterService.success("Image successfully imported"),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(Wa.N.current_version)),a=o[o.length-1];this.applianceService.getAppliance(this.controller,a).subscribe(function(s){i.applianceToInstall=s,setTimeout(function(){i.stepper.next()},100)})}},{key:"addAppliance",value:function(e){var u,i=this,a=(e.target.files[0].name.split("-")[0],e.target.files[0].name),s=e.target.files[0],l=new FileReader;l.onloadend=function(){var d=JSON.parse(l.result);d.docker&&(u="docker"),d.dynamips&&(u="dynamips"),d.iou&&(u="iou"),d.qemu&&(u="qemu");var h=i.applianceService.getUploadPath(i.controller,u,a);i.uploader.queue.forEach(function(C){return C.url=h});var g=i.uploader.queue[0];g.options&&(g.options.disableMultipart=!0),g.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploader.uploadItem(g)},l.readAsText(s)}},{key:"filterAppliances",value:function(e){var i=this,o=this.allAppliances.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all categories"!==this.category&&this.category?this.appliances=o.filter(function(a){return a.category===i.category}):this.appliances=o,this.dataSource=new Ap(this.appliances),this.dataSource.paginator=this.paginator}},{key:"setAction",value:function(e){this.action=e,"install"===e?this.actionTitle="Install appliance from controller":"import"===e&&(this.actionTitle="Import an appliance file")}},{key:"setControllerType",value:function(e){this.isLocalComputerChosen=!0}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.appliances.slice();this.appliances=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?_W(o.name,a.name,s):"emulator"===e.active?_W(o.emulator,a.emulator,s):"vendor"===e.active?_W(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(OO,{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(oT,{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),l=(e.target.files[0],new FileReader);l.onloadend=function(){i.applianceToInstall.qemu&&(u="qemu"),i.applianceToInstall.dynamips&&(u="dynamips"),i.applianceToInstall.iou&&(u="iou");var d=i.applianceService.getUploadPath(i.controller,u,a);i.uploaderImage.queue.forEach(function(g){return g.url=d});var h=i.uploaderImage.queue[0];h.options&&(h.options.disableMultipart=!0),h.options.headers=[{name:"Authorization",value:"Bearer "+i.controller.authToken}],i.uploaderImage.uploadItem(h)},l.onloadend(void 0)}},{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:"openConfirmationDialog",value:function(e,i){var o=this.dialog.open(oT,{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=e.filename,a=this.applianceToInstall.images.filter(function(d){return d.filename===o})[0],s=this.iouImages.filter(function(d){return d.checksum===a.md5sum});s.length>0&&(o=s[0].filename);var l=new lz;l.nvram=this.applianceToInstall.iou.nvram,l.ram=this.applianceToInstall.iou.ram,l.ethernet_adapters=this.applianceToInstall.iou.ethernet_adapters,l.serial_adapters=this.applianceToInstall.iou.serial_adapters,l.startup_config=this.applianceToInstall.iou.startup_config,l.category=this.getCategory(),l.default_name_format=this.applianceToInstall.default_name_format,l.symbol=this.applianceToInstall.symbol,l.compute_id="local",l.template_id=ts(),l.path=o,l.template_type="iou";var u=this.dialog.open(ov,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});u.componentInstance.controller=this.controller,u.afterClosed().subscribe(function(d){if(!d)return!1;l.name=d,i.iouService.addTemplate(i.controller,l).subscribe(function(h){i.templateService.newTemplateCreated.next(h),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createIosTemplate",value:function(e){var i=this,o=e.filename,a=this.applianceToInstall.images.filter(function(d){return d.filename===o})[0],s=this.iosImages.filter(function(d){return d.checksum===a.md5sum});s.length>0&&(o=s[0].filename);var l=new sz;l.chassis=this.applianceToInstall.dynamips.chassis,l.nvram=this.applianceToInstall.dynamips.nvram,l.platform=this.applianceToInstall.dynamips.platform,l.ram=this.applianceToInstall.dynamips.ram,l.startup_config=this.applianceToInstall.dynamips.startup_config,l.slot0=this.applianceToInstall.dynamips.slot0,l.slot1=this.applianceToInstall.dynamips.slot1,l.slot2=this.applianceToInstall.dynamips.slot2,l.slot3=this.applianceToInstall.dynamips.slot3,l.slot4=this.applianceToInstall.dynamips.slot4,l.slot5=this.applianceToInstall.dynamips.slot5,l.slot6=this.applianceToInstall.dynamips.slot6,l.slot7=this.applianceToInstall.dynamips.slot7,l.category=this.getCategory(),l.default_name_format=this.applianceToInstall.default_name_format,l.symbol=this.applianceToInstall.symbol,l.compute_id="local",l.template_id=ts(),l.image=o,l.template_type="dynamips";var u=this.dialog.open(ov,{width:"400px",height:"250px",autoFocus:!1,disableClose:!0,data:{name:this.applianceToInstall.name}});u.componentInstance.controller=this.controller,u.afterClosed().subscribe(function(d){if(!d)return!1;l.name=d,i.iosService.addTemplate(i.controller,l).subscribe(function(h){i.templateService.newTemplateCreated.next(h),i.toasterService.success("Template added"),i.dialogRef.close()})})}},{key:"createDockerTemplate",value:function(){var e=this,i=new oz;i.adapters=this.applianceToInstall.docker.adapters,i.console_type=this.applianceToInstall.docker.console_type,i.category=this.getCategory(),i.default_name_format=this.applianceToInstall.default_name_format,i.symbol=this.applianceToInstall.symbol,i.compute_id="local",i.template_id=ts(),i.image=this.applianceToInstall.docker.image,i.template_type="docker";var o=this.dialog.open(ov,{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:"findControllerImageName",value:function(e){if(e){var i=this.applianceToInstall.images.filter(function(a){return a.filename===e})[0],o=this.qemuImages.filter(function(a){return a.checksum===i.md5sum});o.length>0&&(e=o[0].filename)}return e}},{key:"createQemuTemplateFromVersion",value:function(e){var i=this,o=new uz;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.category=this.getCategory(),o.first_port_name=this.applianceToInstall.first_port_name,o.port_name_format=this.applianceToInstall.port_name_format,o.port_segment_size=this.applianceToInstall.port_segment_size,o.default_name_format=this.applianceToInstall.default_name_format,o.symbol=this.applianceToInstall.symbol,o.compute_id="local",o.template_id=ts(),o.hda_disk_image=this.findControllerImageName(e.images.hda_disk_image),o.hdb_disk_image=this.findControllerImageName(e.images.hdb_disk_image),o.hdc_disk_image=this.findControllerImageName(e.images.hdc_disk_image),o.hdd_disk_image=this.findControllerImageName(e.images.hdd_disk_image),o.cdrom_image=this.findControllerImageName(e.images.cdrom_image),o.template_type="qemu",o.usage=this.applianceToInstall.usage,o.platform=this.applianceToInstall.qemu.arch;var a=this.dialog.open(ov,{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()})})}},{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 $9e.ArrayBuffer,u=new FileReader,d=0;function h(g){var C=Math.min(e.size,g+s);u.readAsArrayBuffer(e.slice(g,C))}u.onerror=function(){a("MD5 computation failed - error reading the file")},u.onload=function(g){l.append(g.target.result),(d+=s)<e.size?h(d):o(l.end(i))},h(0)})}},{key:"openSnackBar",value:function(){this.snackBar.openFromComponent(wm,{panelClass:"uplaoding-file-snackabar",data:{upload_file_type:"Image"}})}}]),n}();function _W(n,r,e){return((n=n.toLowerCase())<(r=r.toLowerCase())?-1:1)*(e?1:-1)}lT.\u0275fac=function(r){return new(r||lT)(t.Y36(cr),t.Y36(xb),t.Y36(t.sBO),t.Y36(Ln),t.Y36(Bu),t.Y36(nd),t.Y36(od),t.Y36(ad),t.Y36(lf),t.Y36(jr),t.Y36(sf.X),t.Y36(t.sBO),t.Y36(Ml),t.Y36(td),t.Y36(id))},lT.\u0275cmp=t.Xpm({type:lT,selectors:[["app-new-template-dialog"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(md,7),t.Gf(mHe,7)),2&r)&&(t.iGM(i=t.CRH())&&(e.paginator=i.first),t.iGM(i=t.CRH())&&(e.stepper=i.first))},inputs:{controller:"controller",project:"project"},decls:56,vars:19,consts:[["mat-dialog-title",""],[3,"linear"],["stepper",""],["matStepLabel",""],[1,"radio-group"],["value","1","checked","",1,"radio-button",3,"click"],["value","2",1,"radio-button",3,"click"],["mat-button","","matStepperNext",""],["mat-button","",3,"click"],[3,"hidden"],[1,"tableHeader"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["placeholder","Category",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matSort","","multiTemplateDataRows","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emulator"],["matColumnDef","vendor"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["type","file","accept",".gns3appliance, .gns3a","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["file",""],["mat-raised-button","","color","primary",1,"create-button",3,"click"],["mat-button","","matStepperPrevious",""],["mat-button","",3,"hidden","click"],[4,"ngIf"],[3,"value"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Install","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Install"],["mat-icon-button","","matTooltip","Show info","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Show info"],["mat-icon-button","","matTooltip","Refresh list of images","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Refresh list of images"],[4,"ngFor","ngForOf"],[1,"list-item"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","list-item-inside",4,"ngIf"],[1,"list-item-inside"],["type","file","ng2FileSelect","",1,"non-visible",3,"uploader","change"],["fileBios",""],["mat-raised-button","",1,"button",3,"click"],["matTooltip","Ready to install","matTooltipClass","custom-tooltip"],["matTooltip","Missing","matTooltipClass","custom-tooltip"],["file2",""],["file3",""],["file4",""],["file5",""],["file6",""]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"h1",0),t._uU(1,"Add new template"),t.qZA(),t.TgZ(2,"mat-horizontal-stepper",1,2)(4,"mat-step"),t.YNc(5,_He,1,0,"ng-template",3),t.TgZ(6,"mat-radio-group",4)(7,"mat-radio-button",5),t.NdJ("click",function(){return e.setAction("install")}),t._uU(8,"Install new appliance from the GNS controller"),t.qZA(),t._UZ(9,"br"),t.TgZ(10,"mat-radio-button",6),t.NdJ("click",function(){return e.setAction("import")}),t._uU(11,"Import an appliance file"),t.qZA()(),t.TgZ(12,"div")(13,"button",7),t._uU(14,"Next"),t.qZA(),t.TgZ(15,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(16,"Cancel"),t.qZA()()(),t.TgZ(17,"mat-step"),t.YNc(18,gHe,1,1,"ng-template",3),t.TgZ(19,"mat-card",9)(20,"div",10)(21,"mat-form-field",11)(22,"input",12),t.NdJ("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(23,"mat-select",13),t.NdJ("selectionChange",function(a){return e.filterAppliances(a)})("ngModelChange",function(a){return e.category=a}),t.YNc(24,vHe,2,2,"mat-option",14),t.qZA()(),t.TgZ(25,"mat-table",15,16),t.NdJ("matSortChange",function(a){return e.sortData(a)}),t.ALo(27,"datasourcefilter"),t.ynx(28,17),t.YNc(29,yHe,2,0,"mat-header-cell",18),t.YNc(30,bHe,2,1,"mat-cell",19),t.BQk(),t.ynx(31,20),t.YNc(32,CHe,2,0,"mat-header-cell",18),t.YNc(33,wHe,2,1,"mat-cell",19),t.BQk(),t.ynx(34,21),t.YNc(35,kHe,2,0,"mat-header-cell",18),t.YNc(36,THe,2,1,"mat-cell",19),t.BQk(),t.ynx(37,22),t.YNc(38,MHe,2,0,"mat-header-cell",18),t.YNc(39,SHe,7,0,"mat-cell",23),t.BQk(),t.YNc(40,EHe,1,0,"mat-header-row",24),t.YNc(41,xHe,1,0,"mat-row",25),t.qZA(),t._UZ(42,"mat-paginator",26),t.qZA(),t.TgZ(43,"mat-card",9)(44,"input",27,28),t.NdJ("change",function(a){return e.addAppliance(a)}),t.qZA(),t.TgZ(46,"button",29),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(45);return t.KtG(a.click())}),t._uU(47," Click to import appliance "),t.qZA()(),t.TgZ(48,"div")(49,"button",30),t._uU(50,"Back"),t.qZA(),t.TgZ(51,"button",31),t.NdJ("click",function(){return e.updateAppliances()}),t._uU(52," Update from online registry "),t.qZA(),t.TgZ(53,"button",8),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(54,"Cancel"),t.qZA()()(),t.YNc(55,oje,12,5,"mat-step",32),t.qZA()}2&r&&(t.xp6(2),t.Q6J("linear",!1),t.xp6(17),t.Q6J("hidden","install"!==e.action),t.xp6(3),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngModelOptions",t.DdM(17,aje))("ngModel",e.category),t.xp6(1),t.Q6J("ngForOf",e.categories),t.xp6(1),t.Q6J("dataSource",t.xi3(27,14,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(18,sje)),t.xp6(1),t.Q6J("hidden","install"===e.action),t.xp6(1),t.Q6J("uploader",e.uploader),t.xp6(7),t.Q6J("hidden","install"!==e.action),t.xp6(4),t.Q6J("ngIf",e.applianceToInstall))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,Mp,kn.KE,md,cn,ai,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,Cr,pm,Aa,zu,ni.gD,Vt.ey,ui,rd,bm,uf,Ek,xk,ns,js,IO],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,Rt.X$)("detailExpand",[(0,Rt.SB)("collapsed",(0,Rt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed",(0,Rt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var lje=m(2033),uje='<?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">',Db_xmlns="http://www.w3.org/2000/xmlns/",Db_xlink="http://www.w3.org/1999/xlink",Db_svg="http://www.w3.org/2000/svg",Fse="untitled";function dje(){var n=document.createElementNS(Db_svg,"svg");document.body.appendChild(n),n.style.all="initial";var r=getComputedStyle(n);return document.body.removeChild(n),n=null,r}function pje(n,r){function e(s){for(var u,d,l=getComputedStyle(s),h="",g=0,C=l.length;g<C;g++)u=l[g],(d=l.getPropertyValue(u))!==r.getPropertyValue(u)&&(h+="".concat(u,":").concat(d,";"));s.setAttribute("style",h)}for(var o=function i(s){var l=[];return l.push(s),function u(d){if(d&&d.hasChildNodes())for(var h=d.firstChild;h;)1===h.nodeType&&"SCRIPT"!==h.nodeName&&(l.push(h),u(h)),h=h.nextSibling}(s),l}(n),a=o.length;a--;)e(o[a])}function hje(n){var r=document.createElement("style");r.innerHTML=Array.from(document.styleSheets).filter(function(e){return!e.href||e.href.startsWith(document.location.origin)}).map(function(e){return Array.from(e.cssRules).map(function(i){return i.cssText}).join(" ")}).join(" "),n.prepend(r)}var mje=function fje(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.css,i=void 0===e?"inline":e;if(!(n instanceof SVGElement))throw new Error("SVG element is required");n.setAttribute("version","1.1"),n.removeAttribute("xmlns"),n.removeAttribute("xlink"),n.hasAttributeNS(Db_xmlns,"xmlns")||n.setAttributeNS(Db_xmlns,"xmlns",Db_svg),n.hasAttributeNS(Db_xmlns,"xmlns:xlink")||n.setAttributeNS(Db_xmlns,"xmlns:xlink",Db_xlink),"inline"===i?pje(n,dje()):"internal"===i&&hje(n);var o=(new XMLSerializer).serializeToString(n),a=n.getBoundingClientRect(),s={top:a.top,left:a.left,width:a.width,height:a.height,class:n.getAttribute("class"),id:n.getAttribute("id"),name:n.getAttribute("name"),childElementCount:n.childElementCount,source:uje+o};return s};function gje(n,r,e){var i=document.createElement("a");document.body.appendChild(i),i.setAttribute("class","svg-crowbar"),i.setAttribute("download",n),i.setAttribute("href",r),i.style.display="none",i.click(),setTimeout(function(){e&&e(),document.body.removeChild(i)},10)}var yje=function vje(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fse,e=URL.createObjectURL(new Blob([n.source],{type:"text/xml"}));gje("".concat(r,".svg"),e,function(){return URL.revokeObjectURL(e)})};var wje=function(r,e,i){return yje(mje(r,i),e||function _je(n){if(!(n instanceof SVGElement))throw new Error("SVG Element is required");return n.getAttribute("id")||n.getAttribute("class")||document.title.replace(/[^a-z0-9]/gi,"-").toLowerCase()||Fse}(r))};function kje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Name for screenshot is required"),t.qZA())}function Tje(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Entered name is incorrect"),t.qZA())}var Mje=function(r){return{"is-invalid":r}},PO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.toasterService=e,this.formBuilder=i,this.electronService=o,this.deviceService=a,this.filetype="svg",this.nameForm=this.formBuilder.group({screenshotName:new J.p4("screenshot-".concat(Date.now()),[J.kI.required])}),this.isPngAvailable=this.electronService.isWindows||"Windows"===this.deviceService.getDeviceInfo().os}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"form",get:function(){return this.nameForm.controls}},{key:"onAddClick",value:function(){if(!this.nameForm.invalid){var e={name:this.nameForm.get("screenshotName").value,filetype:this.filetype};this.dialogRef.close(e)}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"setFiletype",value:function(e){this.isPngAvailable&&(this.filetype=e)}}]),n}();PO.\u0275fac=function(r){return new(r||PO)(t.Y36(cr),t.Y36(Ln),t.Y36(J.QS),t.Y36(al),t.Y36(rv))},PO.\u0275cmp=t.Xpm({type:PO,selectors:[["app-screenshot-dialog"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["aria-label","Sorting",1,"radio-group"],["value","1","checked","",3,"click"],["value","2",3,"disabled","click"],[1,"name-form",3,"formGroup"],[1,"name-form"],["matInput","","type","text","formControlName","screenshotName","placeholder","Please enter name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Take a screenshot"),t.qZA(),t.TgZ(2,"mat-radio-group",1)(3,"mat-radio-button",2),t.NdJ("click",function(){return e.setFiletype("svg")}),t._uU(4,"SVG"),t.qZA(),t.TgZ(5,"mat-radio-button",3),t.NdJ("click",function(){return e.setFiletype("png")}),t._uU(6,"PNG"),t.qZA()(),t.TgZ(7,"form",4)(8,"mat-form-field",5)(9,"input",6),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(10,kje,2,0,"mat-error",7),t.YNc(11,Tje,2,0,"mat-error",7),t.qZA(),t.TgZ(12,"div",8)(13,"button",9),t.NdJ("click",function(){return e.onNoClick()}),t._uU(14,"Cancel"),t.qZA(),t.TgZ(15,"button",10),t.NdJ("click",function(){return e.onAddClick()}),t._uU(16,"Take a screenshot"),t.qZA()()()),2&r&&(t.xp6(5),t.Q6J("disabled",!e.isPngAvailable),t.xp6(2),t.Q6J("formGroup",e.nameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,Mje,null==e.form.acreenshotName?null:e.form.acreenshotName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.screenshotName?null:e.form.screenshotName.touched)&&(null==e.form.screenshotName?null:e.form.screenshotName.errors)&&(null==e.form.acreenshotName?null:e.form.acreenshotName.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr,ns,js],styles:[".name-form[_ngcontent-%COMP%]{width:100%}.radio-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]});var RO=function(){function n(r,e){(0,H.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"Unlock",isAction:!1}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data.actionType}},{key:"confirmAction",value:function(){this.confirmActionData.isAction="Lock"==this.data.actionType,this.dialogRef.close(this.confirmActionData)}}]),n}();RO.\u0275fac=function(r){return new(r||RO)(t.Y36(So),t.Y36(cr))},RO.\u0275cmp=t.Xpm({type:RO,selectors:[["app-project-map-lock-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[cn,Eg,du,dr,fm.d]});var Ab=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new gb;return e.height=100,e.width=100,e.fill="#000000",e.fill_opacity=0,e.font_family="Noto Sans",e.font_size=11,e.font_weight="bold",e}}]),n}();Ab.\u0275fac=function(r){return new(r||Ab)},Ab.\u0275prov=t.Yz7({token:Ab,factory:Ab.\u0275fac});var Ob=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new ea;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.cx=100,e.cy=100,e.rx=100,e.ry=100,e.width=200,e.height=200,e}}]),n}();Ob.\u0275fac=function(r){return new(r||Ob)},Ob.\u0275prov=t.Yz7({token:Ob,factory:Ob.\u0275fac});var Ib=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new mf;return e.fill="#ffffff",e.fill_opacity=1,e.stroke="#000000",e.stroke_width=2,e.width=200,e.height=100,e.rx=0,e.ry=0,e}}]),n}();Ib.\u0275fac=function(r){return new(r||Ib)},Ib.\u0275prov=t.Yz7({token:Ib,factory:Ib.\u0275fac});var Pb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"getDrawingElement",value:function(){var e=new _b;return e.stroke="#000000",e.stroke_width=2,e.x1=0,e.x2=200,e.y1=0,e.y2=0,e.width=100,e.height=0,e}}]),n}();Pb.\u0275fac=function(r){return new(r||Pb)},Pb.\u0275prov=t.Yz7({token:Pb,factory:Pb.\u0275fac});var sv=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.textElementFactory=r,this.ellipseElementFactory=e,this.rectangleElementFactory=i,this.lineElementFactory=o,this.availableFactories={text:this.textElementFactory,ellipse:this.ellipseElementFactory,rectangle:this.rectangleElementFactory,line:this.lineElementFactory}}return(0,B.Z)(n,[{key:"getDrawingMock",value:function(e){this.factory=this.availableFactories[e];var i=new Lm;return i.element=this.factory.getDrawingElement(),i}}]),n}();sv.\u0275fac=function(r){return new(r||sv)(t.LFG(Ab),t.LFG(Ob),t.LFG(Ib),t.LFG(Pb))},sv.\u0275prov=t.Yz7({token:sv,factory:sv.\u0275fac});var LO=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.drawingSaved=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.pointToAddSelected=this.drawingsEventSource.pointToAddSelected.subscribe(function(i){return e.onDrawingSaved(i)})}},{key:"ngOnChanges",value:function(e){e.selectedDrawing&&!e.selectedDrawing.isFirstChange()&&(this.selectedDrawing=e.selectedDrawing.currentValue,"text"!==this.selectedDrawing&&this.drawingsEventSource.selected.emit(this.selectedDrawing))}},{key:"onDrawingSaved",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock(this.selectedDrawing),a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.pointToAddSelected.unsubscribe()}}]),n}();LO.\u0275fac=function(r){return new(r||LO)(t.Y36(Ka),t.Y36(va),t.Y36(Rl),t.Y36(sv),t.Y36(hd))},LO.\u0275cmp=t.Xpm({type:LO,selectors:[["app-drawing-added"]],inputs:{controller:"controller",project:"project",selectedDrawing:"selectedDrawing"},outputs:{drawingSaved:"drawingSaved"},features:[t.TTD],decls:0,vars:0,template:function(r,e){}});var Use=function(r){return{selected:r}};function Sje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",14),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Use,i.drawTools.isLineChosen))}}function Eje(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addDrawing("line"))}),t.O4$(),t.TgZ(1,"svg",13),t._UZ(2,"line",15),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngClass",t.VKq(1,Use,i.drawTools.isLineChosen))}}var xje=function(r,e){return{unmarkedLight:r,marked:e}},Dje=function(r){return{unmarkedLight:r}},uT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.toolsService=r,this.mapSettingsService=e,this.drawingService=i,this.symbolService=o,this.dialog=a,this.themeService=s,this.projectServices=l,this.nodeService=u,this.nodesDataSource=d,this.drawingsDataSource=h,this.nodes=[],this.drawing=[],this.lock="lock_open",this.drawTools={isRectangleChosen:!1,isEllipseChosen:!1,isLineChosen:!1,isTextChosen:!1},this.isLocked=!1,this.isLightThemeEnabled=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.projectSubscription=this.projectServices.projectLockIconSubject.subscribe(function(i){i&&e.getAllNodesAndDrawingStatus()}),this.getAllNodesAndDrawingStatus()}},{key:"getCssClassForIcon",value:function(e){return"text"===e?{unmarkedLight:!this.drawTools.isTextChosen&&this.isLightThemeEnabled,marked:this.drawTools.isTextChosen}:"rectangle"===e?{unmarkedLight:!this.drawTools.isRectangleChosen&&this.isLightThemeEnabled,marked:this.drawTools.isRectangleChosen}:{unmarkedLight:!this.drawTools.isEllipseChosen&&this.isLightThemeEnabled,marked:this.drawTools.isEllipseChosen}}},{key:"takeScreenshot",value:function(){var e=this;this.dialog.open(PO,{width:"400px",autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){o&&e.saveImage(o)})}},{key:"saveImage",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l,u,d,h,g,C;return Rn().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if("png"!==e.filetype){q.next=21;break}o=document.getElementsByTagName("svg")[0].outerHTML.split("image"),a=1;case 3:if(!(a<o.length)){q.next=14;break}return s=o[a].split('"'),l=s[1].split("/"),q.next=8,this.symbolService.raw(this.controller,l[7]).toPromise();case 8:u=q.sent,d=u.split("--\x3e"),o[a]=d[1].substring(2),a+=2,q.next=3;break;case 14:h=o.join(),(g=document.createElement("div")).innerHTML=h,C=g.firstChild,lje.saveSvgAsPng(C,"".concat(e.name,".png")),q.next=23;break;case 21:vi("svg").attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg").node(),wje(vi("svg").node(),"".concat(e.name));case 23:case"end":return q.stop()}},i,this)}))}},{key:"addDrawing",value:function(e){switch("rectangle"===e&&this.drawTools.isRectangleChosen||"ellipse"===e&&this.drawTools.isEllipseChosen||"line"===e&&this.drawTools.isLineChosen||"text"===e&&this.drawTools.isTextChosen?document.documentElement.style.cursor="default":document.documentElement.style.cursor="crosshair",e){case"rectangle":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!this.drawTools.isRectangleChosen,this.drawTools.isLineChosen=!1;break;case"ellipse":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!this.drawTools.isEllipseChosen,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1;break;case"line":this.drawTools.isTextChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!this.drawTools.isLineChosen;break;case"text":this.drawTools.isTextChosen=!this.drawTools.isTextChosen,this.drawTools.isEllipseChosen=!1,this.drawTools.isRectangleChosen=!1,this.drawTools.isLineChosen=!1,this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}this.selectedDrawing=this.selectedDrawing===e?"":e}},{key:"onDrawingSaved",value:function(){this.resetDrawToolChoice()}},{key:"resetDrawToolChoice",value:function(){document.documentElement.style.cursor="default",this.drawTools.isRectangleChosen=!1,this.drawTools.isEllipseChosen=!1,this.drawTools.isLineChosen=!1,this.drawTools.isTextChosen=!1,this.selectedDrawing="",this.toolsService.textAddingToolActivation(this.drawTools.isTextChosen)}},{key:"getAllNodesAndDrawingStatus",value:function(){var e=this;this.projectServices.getProjectStatus(this.controller,this.project.project_id).subscribe(function(i){i?(e.isLocked=!0,e.lock="lock"):(e.isLocked=!1,e.lock="lock_open")}),this.projectServices.nodes(this.controller,this.project.project_id).subscribe(function(i){e.nodes=i,e.nodes.forEach(function(o){e.nodeService.updateNode(e.controller,o).subscribe(function(a){e.nodesDataSource.update(a)})})}),this.projectServices.drawings(this.controller,this.project.project_id).subscribe(function(i){e.drawing=i,e.drawing.forEach(function(o){e.drawingService.update(e.controller,o).subscribe(function(a){e.drawingsDataSource.update(a)})})})}},{key:"changeLockValue",value:function(){var e=this;this.isLocked=!this.isLocked,this.mapSettingsService.changeMapLockValue(this.isLocked),this.dialog.open(RO,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:{isAction:this.isLocked,actionType:1==this.isLocked?"Lock":"Unlock"}}).afterClosed().subscribe(function(o){o&&""!=o&&("Lock"==o.actionType&&o.isAction?e.lockAllNode():e.unlockAllNode())})}},{key:"lockAllNode",value:function(){var e=this;this.lock="lock",this.drawingService.lockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"unlockAllNode",value:function(){var e=this;this.lock="lock_open",this.drawingService.unLockAllNodes(this.controller,this.project).subscribe(function(i){e.getAllNodesAndDrawingStatus()})}},{key:"uploadImageFile",value:function(e){this.readImageFile(e.target)}},{key:"readImageFile",value:function(e){var i=this,o=e.files[0],a=new FileReader,s=new Image;a.onloadend=function(){var l=a.result,u=i.createSvgFileForImage(l,s);i.drawingService.add(i.controller,i.project.project_id,-s.width/2,-s.height/2,u).subscribe(function(){})},s.onload=function(){a.readAsDataURL(o)},s.src=window.URL.createObjectURL(o)}},{key:"createSvgFileForImage",value:function(e,i){return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="'.concat(i.height,'"\n width="').concat(i.width,'">\n<image height="').concat(i.height,'" width="').concat(i.width,'" xlink:href="').concat(e,'"/>\n</svg>')}},{key:"ngOnDestroy",value:function(){}}]),n}();uT.\u0275fac=function(r){return new(r||uT)(t.Y36(Yp),t.Y36(ul),t.Y36(Ka),t.Y36(Op),t.Y36(jr),t.Y36(Cc.f),t.Y36(Gs.Y),t.Y36(Br),t.Y36(Ya.G),t.Y36(va))},uT.\u0275cmp=t.Xpm({type:uT,selectors:[["app-project-map-menu"]],inputs:{project:"project",controller:"controller"},decls:24,vars:16,consts:[["matTooltip","Add a note","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"ngClass"],["type","file","accept",".svg, .bmp, .jpeg, .jpg, .gif, .png",1,"non-visible",3,"change"],["file",""],["matTooltip","Insert a picture","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a rectangle","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw an ellipse","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","","class","menu-button",3,"click",4,"ngIf"],["matTooltip","Lock or unlock all items","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Take a screenshot","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],[3,"controller","project","selectedDrawing","drawingSaved"],["id","crowbar-workspace"],["matTooltip","Draw a line","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["height","40","width","40"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","white","stroke-width","2",3,"ngClass"],["x1","30","y1","10","x2","10","y2","30",2,"stroke","black","stroke-width","2",3,"ngClass"]],template:function(r,e){if(1&r){var i=t.EpF();t.TgZ(0,"button",0),t.NdJ("click",function(){return e.addDrawing("text")}),t.TgZ(1,"mat-icon",1),t._uU(2,"create"),t.qZA()(),t.TgZ(3,"input",2,3),t.NdJ("change",function(a){return e.uploadImageFile(a)}),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){t.CHM(i);var a=t.MAs(4);return t.KtG(a.click())}),t.TgZ(6,"mat-icon"),t._uU(7,"image"),t.qZA()(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.addDrawing("rectangle")}),t.TgZ(9,"mat-icon",1),t._uU(10,"crop_3_2"),t.qZA()(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.addDrawing("ellipse")}),t.TgZ(12,"mat-icon",1),t._uU(13,"panorama_fish_eye"),t.qZA()(),t.YNc(14,Sje,3,3,"button",7),t.YNc(15,Eje,3,3,"button",7),t.TgZ(16,"button",8),t.NdJ("click",function(){return e.changeLockValue()}),t.TgZ(17,"mat-icon",1),t._uU(18),t.qZA()(),t.TgZ(19,"button",9),t.NdJ("click",function(){return e.takeScreenshot()}),t.TgZ(20,"mat-icon",1),t._uU(21,"photo_camera"),t.qZA()(),t.TgZ(22,"app-drawing-added",10),t.NdJ("drawingSaved",function(){return e.onDrawingSaved()}),t.qZA(),t._UZ(23,"div",11)}2&r&&(t.xp6(1),t.Q6J("ngClass",e.getCssClassForIcon("text")),t.xp6(8),t.Q6J("ngClass",e.getCssClassForIcon("rectangle")),t.xp6(3),t.Q6J("ngClass",e.getCssClassForIcon("ellipse")),t.xp6(2),t.Q6J("ngIf",!e.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",e.isLightThemeEnabled),t.xp6(2),t.Q6J("ngClass",t.WLB(11,xje,!e.isLocked&&e.isLightThemeEnabled,e.isLocked)),t.xp6(1),t.Oqu(e.lock),t.xp6(2),t.Q6J("ngClass",t.VKq(14,Dje,!e.isLocked&&e.isLightThemeEnabled)),t.xp6(2),t.Q6J("controller",e.controller)("project",e.project)("selectedDrawing",e.selectedDrawing))},dependencies:[ge.mk,ge.O5,cn,Dn,ui,LO],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 Aje=["text"],ZO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.projectService=e,this.elementRef=i,this.renderer=o}return(0,B.Z)(n,[{key:"ngAfterViewInit",value:function(){var e="";this.projectService.getReadmeFile(this.controller,this.project.project_id).subscribe(function(i){i&&(e=i,setTimeout(function(){var o=Zr(e);document.getElementById("text").innerHTML=o},1e3))})}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();ZO.\u0275fac=function(r){return new(r||ZO)(t.Y36(cr),t.Y36(Gs.Y),t.Y36(t.SBq),t.Y36(t.Qsj))},ZO.\u0275cmp=t.Xpm({type:ZO,selectors:[["app-project-readme"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Aje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.text=i.first))},decls:6,vars:0,consts:[["mat-dialog-title",""],["id","text",1,"textWrapper"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Project README"),t.qZA(),t._UZ(2,"div",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onNoClick()}),t._uU(5,"Close"),t.qZA()())},dependencies:[cn,Cr,dr],styles:[".textWrapper[_ngcontent-%COMP%]{height:500px!important;overflow-y:scroll}"]});var lv=function(){function n(r,e,i){(0,H.Z)(this,n),this.nodesDataSource=r,this.linksDataSource=e,this.drawingsDataSource=i,this.nodeNotificationEmitter=new t.vpe,this.linkNotificationEmitter=new t.vpe,this.drawingNotificationEmitter=new t.vpe,this.infoNotificationEmitter=new t.vpe,this.warningNotificationEmitter=new t.vpe,this.errorNotificationEmitter=new t.vpe}return(0,B.Z)(n,[{key:"handleMessage",value:function(e){"node.updated"===e.action&&(this.nodesDataSource.update(e.event),this.nodeNotificationEmitter.emit(e)),"node.created"===e.action&&(this.nodesDataSource.add(e.event),this.nodeNotificationEmitter.emit(e)),"node.deleted"===e.action&&(this.nodesDataSource.remove(e.event),this.nodeNotificationEmitter.emit(e)),"link.created"===e.action&&(this.linksDataSource.add(e.event),this.linkNotificationEmitter.emit(e)),"link.updated"===e.action&&(this.linksDataSource.update(e.event),this.linkNotificationEmitter.emit(e)),"link.deleted"===e.action&&(this.linksDataSource.remove(e.event),this.linkNotificationEmitter.emit(e)),"drawing.created"===e.action&&(this.drawingsDataSource.add(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.updated"===e.action&&(this.drawingsDataSource.update(e.event),this.drawingNotificationEmitter.emit(e)),"drawing.deleted"===e.action&&(this.drawingsDataSource.remove(e.event),this.drawingNotificationEmitter.emit(e)),"log.error"===e.action&&this.errorNotificationEmitter.emit(e.event.message),"log.warning"===e.action&&this.warningNotificationEmitter.emit(e.event.message),"log.info"===e.action&&this.infoNotificationEmitter.emit(e.event.message)}}]),n}();lv.\u0275fac=function(r){return new(r||lv)(t.LFG(Ya.G),t.LFG(Fm.F),t.LFG(va))},lv.\u0275prov=t.Yz7({token:lv,factory:lv.\u0275fac});var Oje=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Ije=(0,B.Z)(function n(){(0,H.Z)(this,n)}),qp=function(){function n(r,e,i){(0,H.Z)(this,n),this.fontBBoxCalculator=r,this.cssFixer=e,this.fontFixer=i}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this.cssFixer.fix(e.style),o=this.fontFixer.fixStyles(i),a=this.fontBBoxCalculator.calculate(e.text,o),s=new Ije;return s.rotation=e.rotation,s.style=e.style,s.text=e.text,s.x=e.x,s.y=e.y,null!==s.x&&(s.x-=3),null!==s.y&&(s.y-=a.height),s}}]),n}();qp.\u0275fac=function(r){return new(r||qp)(t.LFG(Pp),t.LFG(Mc),t.LFG(is))},qp.\u0275prov=t.Yz7({token:qp,factory:qp.\u0275fac});var Pje=(0,B.Z)(function n(){(0,H.Z)(this,n)}),uv=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new Pje;return i.adapter_number=e.adapterNumber,i.link_type=e.linkType,i.name=e.name,i.port_number=e.portNumber,i.short_name=e.shortName,i}}]),n}();uv.\u0275fac=function(r){return new(r||uv)},uv.\u0275prov=t.Yz7({token:uv,factory:uv.\u0275fac});var Wm=function(){function n(r,e){(0,H.Z)(this,n),this.mapLabelToLabel=r,this.mapPortToPort=e}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new Oje;return o.node_id=e.id,o.command_line=e.commandLine,o.compute_id=e.computeId,o.console=e.console,o.console_host=e.consoleHost,o.console_type=e.consoleType,o.first_port_name=e.firstPortName,o.height=e.height,o.label=e.label?this.mapLabelToLabel.convert(e.label):void 0,o.locked=e.locked,o.name=e.name,o.node_directory=e.nodeDirectory,o.node_type=e.nodeType,o.port_name_format=e.portNameFormat,o.port_segment_size=e.portSegmentSize,o.ports=e.ports?e.ports.map(function(a){return i.mapPortToPort.convert(a)}):[],o.project_id=e.projectId,o.status=e.status,o.symbol=e.symbol,o.symbol_url=e.symbolUrl,o.usage=e.usage,o.width=e.width,o.x=e.x,o.y=e.y,o.z=e.z,o}}]),n}();Wm.\u0275fac=function(r){return new(r||Wm)(t.LFG(qp),t.LFG(uv))},Wm.\u0275prov=t.Yz7({token:Wm,factory:Wm.\u0275fac});var Rje=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Rb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new Rje;return i.drawing_id=e.id,i.project_id=e.projectId,i.rotation=e.rotation,i.svg=e.svg,i.locked=e.locked,i.x=e.x,i.y=e.y,i.z=e.z,i.element=e.element,i}}]),n}();Rb.\u0275fac=function(r){return new(r||Rb)},Rb.\u0275prov=t.Yz7({token:Rb,factory:Rb.\u0275fac});var Lje=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Zje=(0,B.Z)(function n(){(0,H.Z)(this,n)}),cv=function(){function n(r){(0,H.Z)(this,n),this.mapLabelToLabel=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new Zje;return i.node_id=e.nodeId,i.adapter_number=e.adapterNumber,i.port_number=e.portNumber,i.label=this.mapLabelToLabel.convert(e.label),i}}]),n}();cv.\u0275fac=function(r){return new(r||cv)(t.LFG(qp))},cv.\u0275prov=t.Yz7({token:cv,factory:cv.\u0275fac});var Lb=function(){function n(r){(0,H.Z)(this,n),this.mapLinkNodeToMapLinkNode=r}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=this,o=new Lje;return o.link_id=e.id,o.capture_file_name=e.captureFileName,o.capture_file_path=e.captureFilePath,o.capturing=e.capturing,o.filters=e.filters,o.link_type=e.linkType,o.link_style=e.link_style,o.nodes=e.nodes.map(function(a){return i.mapLinkNodeToMapLinkNode.convert(a)}),o.project_id=e.projectId,o.suspend=e.suspend,o}}]),n}();Lb.\u0275fac=function(r){return new(r||Lb)(t.LFG(cv))},Lb.\u0275prov=t.Yz7({token:Lb,factory:Lb.\u0275fac});var EF=m(9740),Zb=function(){function n(r){(0,H.Z)(this,n),this.fontBBCalculator=r,this.MARGIN_BETWEEN_NODE_AND_LABEL=8}return(0,B.Z)(n,[{key:"fix",value:function(e){e.label.style="font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;";var i=this.fontBBCalculator.calculate(e.label.text,e.label.style);return e.label.x=e.width/2-i.width/2,e.label.y=-i.height-this.MARGIN_BETWEEN_NODE_AND_LABEL,e}}]),n}();Zb.\u0275fac=function(r){return new(r||Zb)(t.LFG(Pp))},Zb.\u0275prov=t.Yz7({token:Zb,factory:Zb.\u0275fac});var Nb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"notificationsPath",value:function(e){var i="ws";return"https:"===e.protocol&&(i="wss"),"".concat(i,"://").concat(e.host,":").concat(e.port,"/").concat(Wa.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(Wa.N.current_version,"/projects/").concat(i,"/notifications/ws?token=").concat(e.authToken)}}]),n}();Nb.\u0275fac=function(r){return new(r||Nb)},Nb.\u0275prov=t.Yz7({token:Nb,factory:Nb.\u0275fac});var Hse=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.x=r,this.y=e,this.dx=i,this.dy=o}),cT=function(){function n(r){(0,H.Z)(this,n),this.elementRef=r,this.dragging=new t.vpe,this.dragged=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=$i.y.fromEvent(this.elementRef.nativeElement,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){e.posX=e.item.x,e.posY=e.item.y,e.startX=d.clientX,e.startY=d.clientY});var o=$i.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=$i.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=$i.y.fromEvent(document,"scroll").startWith({}),l=$i.y.combineLatest(a,s),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Nn.Z)(h,2),C=g[0];g[1];return C}).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragging.emit(new Hse(e.item.x,e.item.y,-g,-C))}).skipUntil(o.take(1).do(function(h){var g=e.startX-h.clientX,C=e.startY-h.clientY;e.item.x=Math.round(e.posX-g),e.item.y=Math.round(e.posY-C),e.dragged.emit(new Hse(e.item.x,e.item.y,-g,-C))})).take(1)});this.draggable=u.subscribe(function(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}}]),n}();cT.\u0275fac=function(r){return new(r||cT)(t.Y36(t.SBq))},cT.\u0275cmp=t.Xpm({type:cT,selectors:[["","app-draggable",""]],inputs:{item:["app-draggable","item"]},outputs:{dragging:"dragging",dragged:"dragged"},attrs:["app-draggable",""],ngContentSelectors:["*"],decls:1,vars:0,template:function(r,e){1&r&&(t.F$t(),t.Hsn(0))}});var Fje=["label"],Uje=["image"],dT=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.cssFixer=r,this.fontFixer=e,this.sanitizer=i,this.element=o,this.cd=a,this.nodesEventSource=s,this.labelHeight=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"ngOnChanges",value:function(e){this.cd.detectChanges()}},{key:"ngAfterViewInit",value:function(){this.labelHeight=this.getLabelHeight(),this.cd.detectChanges()}},{key:"OnDragging",value:function(e){this.node.x=e.x,this.node.y=e.y,this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.nodesEventSource.dragged.emit(new Wk(this.node,e.dx,e.dy))}},{key:"symbol",get:function(){var e=this;if(this.symbols){var i=this.symbols.find(function(o){return o.symbol_id===e.node.symbol});return i?"data:image/svg+xml;base64,"+btoa(i.raw):"data:image/svg+xml;base64,none"}}},{key:"label_style",get:function(){if(null!=this.node){var e=this.cssFixer.fix(this.node.label.style);return e=this.fontFixer.fixStyles(e),this.sanitizer.bypassSecurityTrustStyle(e)}}},{key:"label_x",get:function(){if(null!=this.node)return null===this.node.label.x?-this.label.nativeElement.getBBox().width/2:this.node.label.x+n.NODE_LABEL_MARGIN}},{key:"label_y",get:function(){if(this.labelHeight=this.getLabelHeight(),null!=this.node)return null===this.node.label.x?-this.node.height/2-this.labelHeight:this.node.label.y+this.labelHeight-n.NODE_LABEL_MARGIN}},{key:"getLabelHeight",value:function(){if(null!=this.label)return this.label.nativeElement.getBBox().height}}]),n}();dT.NODE_LABEL_MARGIN=3,dT.\u0275fac=function(r){return new(r||dT)(t.Y36(Mc),t.Y36(is),t.Y36(Jt),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(dd))},dT.\u0275cmp=t.Xpm({type:dT,selectors:[["","app-node",""]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Fje,5),t.Gf(Uje,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.label=i.first),t.iGM(i=t.CRH())&&(e.imageRef=i.first))},inputs:{node:["app-node","node"],symbols:"symbols",nodeChanged:["node-changed","nodeChanged"]},features:[t.TTD],attrs:["app-node",""],decls:6,vars:11,consts:[[1,"node"],[3,"app-draggable","dragging","dragged"],["image",""],[1,"label"],["label",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0)(1,"image",1,2),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.qZA(),t.TgZ(3,"text",3,4),t._uU(5),t.qZA()()),2&r&&(t.uIk("transform","translate("+(null==e.node?null:e.node.x)+","+(null==e.node?null:e.node.y)+")"),t.xp6(1),t.Q6J("app-draggable",e.node),t.uIk("width",null==e.node?null:e.node.width)("height",null==e.node?null:e.node.height)("x",0)("y",0)("href",e.symbol,null,"xlink"),t.xp6(2),t.uIk("style",e.label_style,t.Ckj)("x",e.label_x)("y",e.label_y),t.xp6(2),t.hij(" ",null==e.node||null==e.node.label?null:e.node.label.text," "))},dependencies:[cT],changeDetection:0});var jje=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"d",value:function(e){var i,o,a,s,l,u,d,h=[[(null===(i=null==e?void 0:e.source)||void 0===i?void 0:i.x)+(null===(o=null==e?void 0:e.source)||void 0===o?void 0:o.width)/2,(null==e?void 0:e.source.y)+(null===(a=null==e?void 0:e.source)||void 0===a?void 0:a.height)/2],[(null===(s=null==e?void 0:e.target)||void 0===s?void 0:s.x)+(null===(l=null==e?void 0:e.target)||void 0===l?void 0:l.width)/2,(null===(u=null==e?void 0:e.target)||void 0===u?void 0:u.y)+(null===(d=null==e?void 0:e.target)||void 0===d?void 0:d.height)/2]],g=Jd();return g.moveTo(h[0][0],h[0][1]),g.lineTo(h[1][0],h[1][1]),g.toString()}}]),n}(),Gje=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"linkToPoints",value:function(e){var i={x:e.source.x+e.source.width/2,y:e.source.y+e.source.height/2},o={x:e.target.x+e.target.width/2,y:e.target.y+e.target.height/2},a=o.x-i.x,s=o.y-i.y,l=Math.atan2(s,a),u=-Math.PI/4,d=[Math.cos(l+u),Math.sin(l+u)],h=[i.x+a/2+15*d[0],i.y+s/2+15*d[1]],g=[o.x-a/2-15*d[0],o.y-s/2-15*d[1]];return[[i.x,i.y],h,g,[o.x,o.y]]}},{key:"d",value:function(e){var i=this.linkToPoints(e),o=Jd();return o.moveTo(i[0][0],i[0][1]),o.lineTo(i[1][0],i[1][1]),o.lineTo(i[2][0],i[2][1]),o.lineTo(i[3][0],i[3][1]),o.toString()}}]),n}();function Wje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"circle",3)),2&n){var e=t.oxw(2);t.uIk("cx",e.point.x)("cy",e.point.y)}}function Vje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"rect",4)),2&n){var e=t.oxw(2);t.uIk("x",e.point.x-5)("y",e.point.y-5)}}function Yje(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Wje,1,2,"circle",1),t.YNc(2,Vje,1,2,"rect",2),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf","started"==e.status),t.xp6(1),t.Q6J("ngIf","stopped"==e.status)}}var fT=function(){function n(r,e){(0,H.Z)(this,n),this.element=r,this.ref=e,this.data={status:"",path:null,direction:null,d:null}}return(0,B.Z)(n,[{key:"status",get:function(){return this.data.status},set:function(e){this.data.status=e,this.ref.markForCheck()}},{key:"path",get:function(){return this.data.path},set:function(e){this.data.path=e,this.ref.markForCheck()}},{key:"direction",get:function(){return this.data.direction},set:function(e){this.data.direction=e,this.ref.markForCheck()}},{key:"d",set:function(e){this.data.d!==e&&(this.data.d=e,this.ref.markForCheck())}},{key:"sourceStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(45):null}},{key:"targetStatusPoint",get:function(){return this.path?this.path.nativeElement.getPointAtLength(this.path.nativeElement.getTotalLength()-45):null}},{key:"point",get:function(){return"source"===this.direction?this.sourceStatusPoint:this.targetStatusPoint}}]),n}();fT.STOPPED_STATUS_RECT_WIDTH=10,fT.\u0275fac=function(r){return new(r||fT)(t.Y36(t.SBq),t.Y36(t.sBO))},fT.\u0275cmp=t.Xpm({type:fT,selectors:[["","app-status",""]],inputs:{status:["app-status","status"],path:"path",direction:"direction",d:"d"},attrs:["app-status",""],decls:1,vars:1,consts:[[4,"ngIf"],["class","status_started","r","6","fill","#2ecc71",4,"ngIf"],["class","status_stopped","width","10","height","10","r","6","fill","red",4,"ngIf"],["r","6","fill","#2ecc71",1,"status_started"],["width","10","height","10","r","6","fill","red",1,"status_stopped"]],template:function(r,e){1&r&&t.YNc(0,Yje,3,2,"g",0),2&r&&t.Q6J("ngIf",e.status&&e.point&&e.direction)},dependencies:[ge.O5]});var Kje=["textSvg"],NO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.elementRef=r,this.ref=e,this.sanitizer=i,this.cssFixer=o,this.label={x:0,y:0,text:"",style:"",rotation:0},this.borderSize=5,this.textWidth=0,this.textHeight=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"x",set:function(e){this.label.x=e,this.ref.detectChanges()}},{key:"y",set:function(e){this.label.y=e,this.ref.detectChanges()}},{key:"text",get:function(){return this.label.text},set:function(e){this.label.text=e,this.ref.detectChanges()}},{key:"style",set:function(e){this.label.style=this.cssFixer.fix(e),this.ref.detectChanges()}},{key:"rotation",set:function(e){this.label.rotation=e,this.ref.detectChanges()}},{key:"sanitizedStyle",get:function(){return this.sanitizer.bypassSecurityTrustStyle(this.label.style)}},{key:"rectX",get:function(){return 0}},{key:"rectY",get:function(){return-this.textRef.nativeElement.getBBox().height-this.borderSize}},{key:"rectWidth",get:function(){return this.textRef.nativeElement.getBBox().width+2*this.borderSize}},{key:"rectHeight",get:function(){return this.textRef.nativeElement.getBBox().height+this.borderSize}},{key:"transform",get:function(){if(this.elementRef.nativeElement.getBBox){var e=this.elementRef.nativeElement.getBBox(),i=this.label.x,o=this.label.y+e.height;return"translate(".concat(i,", ").concat(o,") rotate(").concat(this.label.rotation,", ").concat(i,", ").concat(o,")")}}}]),n}();NO.\u0275fac=function(r){return new(r||NO)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Jt),t.Y36(Mc))},NO.\u0275cmp=t.Xpm({type:NO,selectors:[["","app-interface-label",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Kje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{ignore:["app-interface-label","ignore"],x:"x",y:"y",text:"text",style:"style",rotation:"rotation"},attrs:["app-interface-label",""],decls:5,vars:9,consts:[["width","100","height","100",1,"text_container"],["stroke-dasharray","3,3","stroke-width","0.5","fill","none","stroke","black"],[1,"interface_label"],["textSvg",""]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t._UZ(1,"rect",1),t.TgZ(2,"text",2,3),t._uU(4),t.qZA()()),2&r&&(t.uIk("transform",e.transform),t.xp6(1),t.uIk("x",e.rectX)("y",e.rectY)("width",e.rectWidth)("height",e.rectHeight),t.xp6(1),t.uIk("style",e.sanitizedStyle,t.Ckj)("x",e.borderSize)("y",-e.borderSize),t.xp6(2),t.hij(" ",e.text," "))}});var Jje=["path"];function Xje(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",5,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function $je(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",7,6)),2&n){var e=t.oxw();t.uIk("d",e.d)}}function eGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.style),t.Q6J("x",(null==e.link||null==e.link.source?null:e.link.source.x)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.x))("y",(null==e.link||null==e.link.source?null:e.link.source.y)+(null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.y))("text",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.text)("rotation",null==e.link||null==e.link.nodes[0]||null==e.link.nodes[0].label?null:e.link.nodes[0].label.rotation)}}function tGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Akn(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.style),t.Q6J("x",(null==e.link||null==e.link.target?null:e.link.target.x)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.x))("y",(null==e.link||null==e.link.target?null:e.link.target.y)+(null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.y))("text",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.text)("rotation",null==e.link||null==e.link.nodes[1]||null==e.link.nodes[1].label?null:e.link.nodes[1].label.rotation)}}var BO=function(){function n(r,e){(0,H.Z)(this,n),this.multiLinkCalculatorHelper=r,this.ref=e,this.ethernetLinkStrategy=new jje,this.serialLinkStrategy=new Gje}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.ref.detectChanges()}},{key:"ngOnDestroy",value:function(){}},{key:"strategy",get:function(){return this.link&&null!=this.link&&"serial"===this.link.linkType?this.serialLinkStrategy:this.ethernetLinkStrategy}},{key:"transform",get:function(){if(this.link){var e=this.multiLinkCalculatorHelper.linkTranslation(this.link.distance,this.link.source,this.link.target);return"translate (".concat(e.dx,", ").concat(e.dy,")")}}},{key:"d",get:function(){return this.strategy.d(this.link)}}]),n}();BO.\u0275fac=function(r){return new(r||BO)(t.Y36(Fp),t.Y36(t.sBO))},BO.\u0275cmp=t.Xpm({type:BO,selectors:[["","app-link",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Jje,5),2&r)&&(t.iGM(i=t.CRH())&&(e.path=i.first))},inputs:{link:["app-link","link"],nodeChanged:["node-changed","nodeChanged"],showInterfaceLabels:["show-interface-labels","showInterfaceLabels"]},attrs:["app-link",""],decls:7,vars:16,consts:[[1,"link"],["class","ethernet_link","stroke","#000","stroke-width","2",4,"ngIf"],["class","serial_link","stroke","#B22222","fill","none","stroke-width","2",4,"ngIf"],[3,"app-status","direction","path","d"],[3,"app-interface-label","x","y","text","style","rotation",4,"ngIf"],["stroke","#000","stroke-width","2",1,"ethernet_link"],["path",""],["stroke","#B22222","fill","none","stroke-width","2",1,"serial_link"],[3,"app-interface-label","x","y","text","rotation"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,Xje,2,1,"path",1),t.YNc(2,$je,2,1,"path",2),t._UZ(3,"g",3)(4,"g",3),t.YNc(5,eGe,1,6,"g",4),t.YNc(6,tGe,1,6,"g",4),t.qZA()),2&r&&(t.uIk("link_id",null==e.link?null:e.link.id)("map-source",null==e.link||null==e.link.source?null:e.link.source.id)("map-target",null==e.link||null==e.link.target?null:e.link.target.id)("transform",e.transform),t.xp6(1),t.Q6J("ngIf","ethernet"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("ngIf","serial"==(null==e.link?null:e.link.linkType)),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.source?null:e.link.source.status)("direction","source")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("app-status",null==e.link||null==e.link.target?null:e.link.target.status)("direction","target")("path",e.path)("d",e.d),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels),t.xp6(1),t.Q6J("ngIf",e.showInterfaceLabels))},dependencies:[ge.O5,fT,NO]});var FO=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.ellipse&&isFinite(this.ellipse.fill_opacity)?this.ellipse.fill_opacity:null}},{key:"stroke_width",get:function(){return this.ellipse&&isFinite(this.ellipse.stroke_width)?this.ellipse.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.ellipse&&this.ellipse.stroke_dasharray?this.qtDasharrayFixer.fix(this.ellipse.stroke_dasharray):null}}]),n}();FO.\u0275fac=function(r){return new(r||FO)(t.Y36(ju))},FO.\u0275cmp=t.Xpm({type:FO,selectors:[["","app-ellipse",""]],inputs:{ellipse:["app-ellipse","ellipse"]},attrs:["app-ellipse",""],decls:1,vars:9,consts:[[1,"ellipse_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"ellipse",0)),2&r&&t.uIk("fill",null==e.ellipse?null:e.ellipse.fill)("fill-opacity",e.fill_opacity)("stroke",null==e.ellipse?null:e.ellipse.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("cx",null==e.ellipse?null:e.ellipse.cx)("cy",null==e.ellipse?null:e.ellipse.cy)("rx",null==e.ellipse?null:e.ellipse.rx)("ry",null==e.ellipse?null:e.ellipse.ry)}});var UO=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();UO.\u0275fac=function(r){return new(r||UO)},UO.\u0275cmp=t.Xpm({type:UO,selectors:[["","app-image",""]],inputs:{image:["app-image","image"]},attrs:["app-image",""],decls:1,vars:3,consts:[[1,"image_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"image",0)),2&r&&t.uIk("href",null==e.image?null:e.image.data,null,"xlink")("width",null==e.image?null:e.image.width)("height",null==e.image?null:e.image.height)}});var HO=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"stroke_width",get:function(){return this.line&&isFinite(this.line.stroke_width)?this.line.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.line&&this.line.stroke_dasharray?this.qtDasharrayFixer.fix(this.line.stroke_dasharray):null}}]),n}();HO.\u0275fac=function(r){return new(r||HO)(t.Y36(ju))},HO.\u0275cmp=t.Xpm({type:HO,selectors:[["","app-line",""]],inputs:{line:["app-line","line"]},attrs:["app-line",""],decls:1,vars:7,consts:[[1,"line_element","noselect"]],template:function(r,e){var i;(1&r&&(t.O4$(),t._UZ(0,"line",0)),2&r)&&t.uIk("stroke",null==e.line?null:e.line.stroke)("stroke-width",null!==(i=e.stroke_width)&&void 0!==i?i:"")("stroke-dasharray",e.stroke_dasharray)("x1",null==e.line?null:e.line.x1)("x2",null==e.line?null:e.line.x2)("y1",null==e.line?null:e.line.y1)("y2",null==e.line?null:e.line.y2)}});var jO=function(){function n(r){(0,H.Z)(this,n),this.qtDasharrayFixer=r}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"fill_opacity",get:function(){return this.rect&&isFinite(this.rect.fill_opacity)&&this.rect.fill_opacity?this.rect.fill_opacity:null}},{key:"stroke_width",get:function(){return this.rect&&isFinite(this.rect.stroke_width)&&this.rect.stroke_width?this.rect.stroke_width:null}},{key:"stroke_dasharray",get:function(){return this.rect&&this.rect.stroke_dasharray?this.qtDasharrayFixer.fix(this.rect.stroke_dasharray):null}}]),n}();jO.\u0275fac=function(r){return new(r||jO)(t.Y36(ju))},jO.\u0275cmp=t.Xpm({type:jO,selectors:[["","app-rect",""]],inputs:{rect:["app-rect","rect"]},attrs:["app-rect",""],decls:1,vars:9,consts:[[1,"rect_element","noselect"]],template:function(r,e){1&r&&(t.O4$(),t._UZ(0,"rect",0)),2&r&&t.uIk("fill",null==e.rect?null:e.rect.fill)("fill-opacity",e.fill_opacity?e.fill_opacity:"")("stroke",null==e.rect?null:e.rect.stroke)("stroke-width",e.stroke_width)("stroke-dasharray",e.stroke_dasharray)("width",null==e.rect?null:e.rect.width)("height",null==e.rect?null:e.rect.height)("rx",null==e.rect?null:e.rect.rx)("ry",null==e.rect?null:e.rect.ry)}});var aGe=["text"];function lGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"tspan",3),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.uIk("dy",0==i?"0em":"1.4em"),t.xp6(1),t.hij(" ",e," ")}}var pT=function(){function n(r,e){(0,H.Z)(this,n),this.fontFixer=r,this.sanitizer=e,this.lines=[],this.transformation=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.text&&(this.lines=this.getLines(this.text.text))}},{key:"ngDoCheck",value:function(){this.transformation=this.calculateTransformation()}},{key:"style",get:function(){if(this.text){var e=this.fontFixer.fix(this.text),i=[];return e.font_family&&i.push('font-family: "'.concat(this.text.font_family,'"')),e.font_size&&i.push("font-size: ".concat(this.text.font_size,"pt")),e.font_weight&&i.push("font-weight: ".concat(this.text.font_weight)),this.sanitizer.bypassSecurityTrustStyle(i.join("; "))}}},{key:"textDecoration",get:function(){if(this.text)return this.text.text_decoration}},{key:"calculateTransformation",value:function(){if(null!=this.textRef){var e=this.textRef.nativeElement.getElementsByTagName("tspan");if(e.length>0){var i=this.textRef.nativeElement.getBBox().height/e.length;return"translate(".concat(n.MARGIN,", ").concat(i-n.MARGIN,")")}return""}}},{key:"getLines",value:function(e){return e.split(/\r?\n/)}}]),n}();pT.MARGIN=4,pT.\u0275fac=function(r){return new(r||pT)(t.Y36(is),t.Y36(Jt))},pT.\u0275cmp=t.Xpm({type:pT,selectors:[["","app-text",""]],viewQuery:function(r,e){var i;(1&r&&t.Gf(aGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.textRef=i.first))},inputs:{text:["app-text","text"]},attrs:["app-text",""],decls:3,vars:5,consts:[[1,"text_element","noselect"],["text",""],[0,"xml","space","preserve","x","0",4,"ngFor","ngForOf"],[0,"xml","space","preserve","x","0"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"text",0,1),t.YNc(2,lGe,2,2,"tspan",2),t.qZA()),2&r){var i=t.MAs(1);t.uIk("style",e.style,t.Ckj)("text-decoration",e.textDecoration)("fill",null==i?null:i.fill)("transform",e.transformation),t.xp6(2),t.Q6J("ngForOf",e.lines)}},dependencies:[ge.sg]});function cGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",6)),2&n){var e=t.oxw();t.Q6J("app-ellipse",null==e.drawing?null:e.drawing.element)}}function dGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",7)),2&n){var e=t.oxw();t.Q6J("app-image",null==e.drawing?null:e.drawing.element)}}function fGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",8)),2&n){var e=t.oxw();t.Q6J("app-line",null==e.drawing?null:e.drawing.element)}}function pGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",9)),2&n){var e=t.oxw();t.Q6J("app-rect",null==e.drawing?null:e.drawing.element)}}function hGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",10)),2&n){var e=t.oxw();t.Q6J("app-text",null==e.drawing?null:e.drawing.element)}}var GO=function(){function n(r,e,i){(0,H.Z)(this,n),this.svgToDrawingConverter=r,this.drawingsEventSource=e,this.cd=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){try{this.drawing.element=this.svgToDrawingConverter.convert(this.drawing.svg)}catch(e){}}},{key:"OnDragging",value:function(e){this.drawing.x=e?e.x:"",this.drawing.y=e?e.y:"",this.cd.detectChanges()}},{key:"OnDragged",value:function(e){this.cd.detectChanges(),this.drawingsEventSource.dragged.emit(new Wk(this.drawing,e.dx,e.dy))}},{key:"is",value:function(e,i){return!!e&&("ellipse"===i?e instanceof ea:"image"===i?e instanceof mF:"line"===i?e instanceof _b:"rect"===i?e instanceof mf:"text"===i&&e instanceof gb)}},{key:"transformation",get:function(){if(this.drawing)return"translate(".concat(this.drawing.x,",").concat(this.drawing.y,") rotate(").concat(this.drawing.rotation,")")}}]),n}();GO.\u0275fac=function(r){return new(r||GO)(t.Y36(Wp),t.Y36(Rl),t.Y36(t.sBO))},GO.\u0275cmp=t.Xpm({type:GO,selectors:[["","app-drawing",""]],inputs:{drawing:["app-drawing","drawing"]},attrs:["app-drawing",""],decls:6,vars:7,consts:[[1,"drawing",3,"app-draggable","dragging","dragged"],[3,"app-ellipse",4,"ngIf"],[3,"app-image",4,"ngIf"],[3,"app-line",4,"ngIf"],[3,"app-rect",4,"ngIf"],[3,"app-text",4,"ngIf"],[3,"app-ellipse"],[3,"app-image"],[3,"app-line"],[3,"app-rect"],[3,"app-text"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.NdJ("dragging",function(o){return e.OnDragging(o)})("dragged",function(o){return e.OnDragged(o)}),t.YNc(1,cGe,1,1,"g",1),t.YNc(2,dGe,1,1,"g",2),t.YNc(3,fGe,1,1,"g",3),t.YNc(4,pGe,1,1,"g",4),t.YNc(5,hGe,1,1,"g",5),t.qZA()),2&r&&(t.Q6J("app-draggable",e.drawing),t.uIk("transform",e.transformation),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"ellipse")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"image")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"line")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"rect")),t.xp6(1),t.Q6J("ngIf",e.is(null==e.drawing?null:e.drawing.element,"text")))},dependencies:[ge.O5,FO,UO,HO,jO,pT,cT]});function _Ge(n,r){if(1&n&&(t.O4$(),t._UZ(0,"path",2)),2&n){var e=t.oxw();t.uIk("d",e.d)}}var zO=function(){function n(r){(0,H.Z)(this,n),this.ref=r,this.started=!1,this.visible=!1,this.rectangleSelected=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this,i=$i.y.fromEvent(this.svg,"mousedown").do(function(d){return d.preventDefault()});i.subscribe(function(d){d.target===e.svg&&(e.started=!0,e.startX=(null==d?void 0:d.clientX)+(null==window?void 0:window.scrollX),e.startY=(null==d?void 0:d.clientY)+(null==window?void 0:window.scrollY),e.width=0,e.height=0,e.visible=!0,e.ref.detectChanges())});var o=$i.y.fromEvent(document,"mouseup").do(function(d){d.preventDefault()}),a=$i.y.fromEvent(document,"mousemove").do(function(d){return d.stopPropagation()}),s=$i.y.fromEvent(document,"scroll").startWith({}),l=$i.y.combineLatest([a,s]),u=i.mergeMap(function(d){return l.map(function(h){var g=(0,Nn.Z)(h,2),C=g[0];g[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(d){})}},{key:"ngOnDestroy",value:function(){this.draggable.unsubscribe()}},{key:"d",get:function(){return this.rect(this.startX,this.startY,this.width,this.height)}},{key:"rect",value:function(e,i,o,a){return"M"+[e,i]+" l"+[o,0]+" l"+[0,a]+" l"+[-o,0]+"z"}},{key:"selectedEvent",value:function(e,i){var o=Math.min(e[0],i[0]),a=Math.min(e[1],i[1]),s=Math.abs(e[0]-i[0]),l=Math.abs(e[1]-i[1]);this.rectangleSelected.emit(new _se(o,a,s,l))}}]),n}();zO.\u0275fac=function(r){return new(r||zO)(t.Y36(t.sBO))},zO.\u0275cmp=t.Xpm({type:zO,selectors:[["","app-selection",""]],inputs:{svg:["app-selection","svg"]},outputs:{rectangleSelected:"selected"},attrs:["app-selection",""],decls:2,vars:1,consts:[[1,"selection-line-tool"],["class","selection",4,"ngIf"],[1,"selection"]],template:function(r,e){1&r&&(t.O4$(),t.TgZ(0,"g",0),t.YNc(1,_Ge,1,1,"path",1),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf",e.visible))},dependencies:[ge.O5]});var gGe=["svg"];function vGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",12)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-link",e)("show-interface-labels",i.settings.show_interface_labels)}}function yGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",13)),2&n){var e=r.$implicit,i=t.oxw(2);t.Q6J("app-node",e)("symbols",i.symbols)}}function bGe(n,r){if(1&n&&(t.O4$(),t._UZ(0,"g",14)),2&n){var e=r.$implicit;t.Q6J("app-drawing",e)}}function CGe(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g")(1,"g",6),t.YNc(2,vGe,1,2,"g",7),t.qZA(),t.TgZ(3,"g",8),t.YNc(4,yGe,1,2,"g",9),t.qZA(),t.TgZ(5,"g",10),t.YNc(6,bGe,1,1,"g",11),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Q6J("ngForOf",e.links),t.xp6(2),t.Q6J("ngForOf",e.nodes),t.xp6(2),t.Q6J("ngForOf",e.drawings)}}var WO=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.graphDataManager=r,this.context=e,this.mapChangeDetectorRef=i,this.canvasSizeDetector=o,this.changeDetectorRef=a,this.layersManger=s,this.graphLayout=l,this.nodes=[],this.links=[],this.drawings=[],this.symbols=[],this.width=1500,this.height=600,this.settings={show_interface_labels:!0}}return(0,B.Z)(n,[{key:"showInterfaceLabels",set:function(e){this.settings.show_interface_labels=e,this.mapChangeDetectorRef.detectChanges()}},{key:"movingTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"selectionTool",set:function(e){this.mapChangeDetectorRef.detectChanges()}},{key:"readonly",set:function(e){}},{key:"ngOnChanges",value:function(e){}},{key:"ngOnInit",value:function(){var e=this;this.changesDetected=this.mapChangeDetectorRef.changesDetected.subscribe(function(){e.graphDataManager.setNodes(e.nodes),e.graphDataManager.setLinks(e.links),e.graphDataManager.setDrawings(e.drawings),e.graphDataManager.setSymbols(e.symbols),e.changeDetectorRef.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.changesDetected.unsubscribe()}},{key:"getSize",value:function(){return this.canvasSizeDetector.getOptimalSize(this.width,this.height)}},{key:"layers",get:function(){return this.layersManger.getLayersList()}},{key:"transform",get:function(){var e=new Ws;e.size=this.getSize();var i=e.getZeroZeroTransformationPoint().x+e.transformation.x,o=e.getZeroZeroTransformationPoint().y+e.transformation.y,a=e.transformation.k;return"translate(".concat(i,", ").concat(o,") scale(").concat(a,")")}},{key:"onResize",value:function(e){}}]),n}();WO.\u0275fac=function(r){return new(r||WO)(t.Y36(Up),t.Y36(Ws),t.Y36(Hp),t.Y36(Wg),t.Y36(t.sBO),t.Y36(Nm),t.Y36(ev))},WO.\u0275cmp=t.Xpm({type:WO,selectors:[["app-experimental-map"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(gGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.svg=i.first))},hostBindings:function(r,e){1&r&&t.NdJ("resize",function(o){return e.onResize(o)},!1,t.Jf7)},inputs:{nodes:"nodes",links:"links",drawings:"drawings",symbols:"symbols",width:"width",height:"height",showInterfaceLabels:["show-interface-labels","showInterfaceLabels"],movingTool:["moving-tool","movingTool"],selectionTool:["selection-tool","selectionTool"],drawLinkTool:["draw-link-tool","drawLinkTool"],readonly:"readonly"},features:[t.TTD],decls:7,vars:5,consts:[["preserveAspectRatio","none",1,"map"],["svg",""],[4,"ngFor","ngForOf"],[3,"app-selection"],["id","grayscale"],["id","feGrayscale","type","saturate","values","0"],[1,"links"],[3,"app-link","show-interface-labels",4,"ngFor","ngForOf"],[1,"nodes"],[3,"app-node","symbols",4,"ngFor","ngForOf"],[1,"drawings"],[3,"app-drawing",4,"ngFor","ngForOf"],[3,"app-link","show-interface-labels"],[3,"app-node","symbols"],[3,"app-drawing"]],template:function(r,e){if(1&r&&(t.O4$(),t.TgZ(0,"svg",0,1)(2,"g"),t.YNc(3,CGe,7,3,"g",2),t.qZA(),t._UZ(4,"g",3),t.TgZ(5,"filter",4),t._UZ(6,"feColorMatrix",5),t.qZA()()),2&r){var i=t.MAs(1);t.uIk("width",e.width)("height",e.height),t.xp6(2),t.uIk("transform",e.transform),t.xp6(1),t.Q6J("ngForOf",e.layers),t.xp6(1),t.Q6J("app-selection",i)}},dependencies:[ge.sg,dT,BO,GO,zO],styles:["svg[_ngcontent-%COMP%]{display:block}"],changeDetection:0});var Bb=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"onCancelClick",value:function(){this.dialogRef.close(n.CANCELLED)}},{key:"ngOnInit",value:function(){}}]),n}();Bb.\u0275fac=function(r){return new(r||Bb)(t.Y36(cr),t.Y36(So))},Bb.\u0275cmp=t.Xpm({type:Bb,selectors:[["app-progress-dialog"]],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["color","primary","mode","determinate",3,"value"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Operation in progress"),t.qZA(),t.TgZ(2,"div",1),t._UZ(3,"mat-progress-bar",2),t.qZA(),t.TgZ(4,"div",3)(5,"button",4),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(6,"Cancel"),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("value",e.value))},dependencies:[cn,Cr,du,dr,ab]});var wGe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),Vm=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"create",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots"),o)}},{key:"delete",value:function(e,i,o){return this.httpController.delete(e,"/projects/".concat(i,"/snapshots/").concat(o))}},{key:"list",value:function(e,i){return this.httpController.get(e,"/projects/".concat(i,"/snapshots"))}},{key:"restore",value:function(e,i,o){return this.httpController.post(e,"/projects/".concat(i,"/snapshots/").concat(o,"/restore"),{})}}]),n}();Vm.\u0275fac=function(r){return new(r||Vm)(t.LFG(mo.zw))},Vm.\u0275prov=t.Yz7({token:Vm,factory:Vm.\u0275fac});var VO=function(){function n(r,e,i,o,a,s){var l=this;(0,H.Z)(this,n),this.dialogRef=r,this.formBuilder=e,this.toasterService=i,this.snapshotService=o,this.nodesDataSource=a,this.data=s,this.snapshot=new wGe,this.snapshots=[],this.controller=s.controller,this.project=s.project,this.inputForm=this.formBuilder.group({snapshotName:new J.p4("",J.kI.required)}),this.project&&this.project.project_id&&this.snapshotService.list(this.controller,this.project.project_id).subscribe(function(u){u.forEach(function(d){l.snapshots.push(d.name)})}),this.nodesDataSource&&this.nodesDataSource.getItems().forEach(function(u){"stopped"!==u.status&&!l.isAlwaysRunningNode(u.node_type)&&(l.isInRunningState=!0)})}return(0,B.Z)(n,[{key:"isAlwaysRunningNode",value:function(e){return!["qemu","docker","dynamips","vpcs","vmware","virtualbox","iou"].includes(e)}},{key:"onAddClick",value:function(){this.inputForm.invalid?this.toasterService.error("Fill all required fields"):this.snapshots.includes(this.inputForm.get("snapshotName").value)?this.toasterService.error("Snapshot with this name already exists"):this.isInRunningState?this.toasterService.error("Project must be stopped in order to export it"):(this.snapshot.name=this.inputForm.get("snapshotName").value,this.dialogRef.close(this.snapshot))}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();VO.\u0275fac=function(r){return new(r||VO)(t.Y36(cr),t.Y36(J.QS),t.Y36(Ln),t.Y36(Vm),t.Y36(Ya.G),t.Y36(So))},VO.\u0275cmp=t.Xpm({type:VO,selectors:[["app-create-snapshot-dialog"]],decls:14,vars:3,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content",""],[3,"formGroup"],[1,"name-input"],["matInput","","tabindex","1","formControlName","snapshotName","placeholder","Name"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Create snapshot"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to snapshots "),t.qZA()(),t.TgZ(5,"div",3)(6,"form",4)(7,"mat-form-field",5),t._UZ(8,"input",6),t.qZA()()(),t.TgZ(9,"div",7)(10,"button",8),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",9),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13,"Add"),t.qZA()()),2&r&&(t.xp6(3),t.hYB("routerLink","/controller/",null==e.controller?null:e.controller.id,"/project/",null==e.project?null:e.project.project_id,"/snapshots"),t.xp6(3),t.Q6J("formGroup",e.inputForm))},dependencies:[Wo,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,Kn,Cr,du,dr],styles:[".title-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between}.name-input[_ngcontent-%COMP%]{width:100%}.top-button[_ngcontent-%COMP%]{outline:none;box-shadow:none!important;background:transparent!important}button[_ngcontent-%COMP%]:focus{outline:0!important;border:0!important;box-shadow:none!important}"]});var dv=function(){function n(r){(0,H.Z)(this,n),this.dialog=r}return(0,B.Z)(n,[{key:"open",value:function(){return this.dialog.open(Bb,{width:"250px",autoFocus:!1,disableClose:!0})}}]),n}();dv.\u0275fac=function(r){return new(r||dv)(t.LFG(jr))},dv.\u0275prov=t.Yz7({token:dv,factory:dv.\u0275fac});var YO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialog=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"createSnapshotModal",value:function(){var e=this;this.dialog.open(VO,{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===Bb.CANCELLED&&l.unsubscribe()})}})}}]),n}();YO.\u0275fac=function(r){return new(r||YO)(t.Y36(jr),t.Y36(Vm),t.Y36(dv),t.Y36(Ln))},YO.\u0275cmp=t.Xpm({type:YO,selectors:[["app-snapshot-menu-item"]],inputs:{project:"project",controller:"controller"},decls:3,vars:0,consts:[["matTooltip","Manage snapshots","matTooltipClass","custom-tooltip","mat-icon-button","",1,"snapshot-button","menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return e.createSnapshotModal()}),t.TgZ(1,"mat-icon"),t._uU(2,"filter_none"),t.qZA()())},dependencies:[cn,Dn,ui]});var KO=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function kGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function TGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function MGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function SGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-select",19),t.NdJ("valueChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectedTemplate.compute_id=a)}),t.YNc(1,MGe,2,2,"mat-option",8),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("value",i.selectedTemplate.compute_id),t.xp6(1),t.Q6J("ngForOf",i.nodeControllers)}}KO.\u0275fac=function(r){return new(r||KO)},KO.\u0275pipe=t.Yjl({name:"templatefilter",type:KO,pure:!0});var gW=function(){return{standalone:!0}},qO=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.dialogRef=r,this.templateService=e,this.formBuilder=i,this.data=o,this.toasterService=a,this.nonNegativeValidator=s,this.templateTypes=["cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.searchText="",this.nodeControllers=["local","vm"],this.controller=o.controller,this.project=o.project,this.configurationForm=this.formBuilder.group({numberOfNodes:new J.p4(1,[J.kI.compose([J.kI.required,s.get])])}),this.positionForm=this.formBuilder.group({top:new J.p4(0,J.kI.required),left:new J.p4(0,J.kI.required)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.templates=i})}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});this.filteredTemplates=o.filter(function(a){return a.template_type===e.value.toString()})}},{key:"chooseTemplate",value:function(e){this.selectedTemplate=e.value,("cloud"===this.selectedTemplate.template_type||"ethernet_hub"===this.selectedTemplate.template_type||"ethernet_switch"===this.selectedTemplate.template_type)&&(this.selectedTemplate.compute_id="local")}},{key:"onAddClick",value:function(){if(this.selectedTemplate&&0!==this.filteredTemplates.length)if(this.positionForm.valid&&this.configurationForm.valid&&this.selectedTemplate.compute_id){var e=this.positionForm.get("left").value,i=this.positionForm.get("top").value;if(e>this.project.scene_width/2||e<-this.project.scene_width/2||i>this.project.scene_height/2||i<-this.project.scene_height)this.toasterService.error("Please set correct position values.");else{var o={template:this.selectedTemplate,controller:this.selectedTemplate.compute_id,numberOfNodes:this.configurationForm.get("numberOfNodes").value,x:e,y:i};this.dialogRef.close(o)}}else this.toasterService.error("Please fill all required fields.");else this.toasterService.error("Please firstly choose template.")}}]),n}();qO.\u0275fac=function(r){return new(r||qO)(t.Y36(cr),t.Y36(lf),t.Y36(J.QS),t.Y36(So),t.Y36(Ln),t.Y36(vf))},qO.\u0275cmp=t.Xpm({type:qO,selectors:[["app-template-list-dialog"]],decls:40,vars:18,consts:[[1,"title-container"],["mat-dialog-title",""],["mat-button","","color","accent",1,"top-button",3,"routerLink","click"],["mat-dialog-content","",1,"content"],["floatPlaceholder","never",1,"form-field"],["matInput","","placeholder","Search by name","ngDefaultControl","",3,"ngModel","ngModelOptions","ngModelChange"],[1,"form-field"],["placeholder","Filter templates by type","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Choose template","ngDefaultControl","",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"formGroup"],["type","number","matInput","","formControlName","numberOfNodes","placeholder","Enter number of nodes (default value is 1)"],["placeholder","Choose controller for node",3,"value","valueChange",4,"ngIf"],["matInput","","type","number","formControlName","left"],["matInput","","type","number","formControlName","top"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"addButton",3,"click"],[3,"value"],["placeholder","Choose controller for node",3,"value","valueChange"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2,"Add a node"),t.qZA(),t.TgZ(3,"button",2),t.NdJ("click",function(){return e.onNoClick()}),t._uU(4," Go to template preferences "),t.qZA()(),t.TgZ(5,"div",3)(6,"div",0)(7,"h6"),t._uU(8,"Template"),t.qZA()(),t.TgZ(9,"mat-form-field",4)(10,"input",5),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(11,"mat-form-field",6)(12,"mat-select",7),t.NdJ("selectionChange",function(o){return e.filterTemplates(o)})("ngModelChange",function(o){return e.selectedType=o}),t.YNc(13,kGe,2,2,"mat-option",8),t.qZA()(),t.TgZ(14,"mat-form-field",6)(15,"mat-select",9),t.NdJ("selectionChange",function(o){return e.chooseTemplate(o)})("ngModelChange",function(o){return e.selectedTemplate=o}),t.YNc(16,TGe,2,2,"mat-option",8),t.ALo(17,"templatefilter"),t.qZA()(),t.TgZ(18,"div",0)(19,"h6"),t._uU(20,"Configuration"),t.qZA()(),t.TgZ(21,"form",10)(22,"mat-form-field",6),t._UZ(23,"input",11),t.qZA()(),t.YNc(24,SGe,2,2,"mat-select",12),t.TgZ(25,"div",0)(26,"h6"),t._uU(27,"Position"),t.qZA()(),t.TgZ(28,"form",10),t._uU(29," Left:\xa0 "),t.TgZ(30,"mat-form-field"),t._UZ(31,"input",13),t.qZA(),t._uU(32," Top:\xa0 "),t.TgZ(33,"mat-form-field"),t._UZ(34,"input",14),t.qZA()()(),t.TgZ(35,"div",15)(36,"button",16),t.NdJ("click",function(){return e.onNoClick()}),t._uU(37,"Close"),t.qZA(),t.TgZ(38,"button",17),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add "),t.qZA()()),2&r&&(t.xp6(3),t.MGl("routerLink","/controller/",null==e.controller?null:e.controller.id,"/preferences"),t.xp6(7),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(15,gW)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(16,gW))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(17,gW))("ngModel",e.selectedTemplate),t.xp6(1),t.Q6J("ngForOf",t.xi3(17,12,e.filteredTemplates,e.searchText)),t.xp6(5),t.Q6J("formGroup",e.configurationForm),t.xp6(3),t.Q6J("ngIf",e.selectedTemplate),t.xp6(4),t.Q6J("formGroup",e.positionForm))},dependencies:[ge.sg,ge.O5,Wo,J._Y,J.Fj,J.wV,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,cn,Kn,Cr,du,dr,ni.gD,Vt.ey,KO],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 EGe(n,r){if(1&n&&(t.TgZ(0,"mat-option",11),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}var xF=function(r,e){return{templateText:r,lightTemplateText:e}};function xGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+1]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+1]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,xF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+1].name)}}function DGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+2]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+2]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,xF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+2].name)}}function AGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",14)(1,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(3);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw(2).index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l+3]))}),t._UZ(2,"img",16),t.qZA(),t.TgZ(3,"div",17),t._uU(4),t.qZA()()}if(2&n){var i=t.oxw(2).index,o=t.oxw();t.xp6(2),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i+3]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(3,xF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i+3].name)}}function OGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"span",13)(1,"span",14)(2,"div",15),t.NdJ("dragStart",function(s){t.CHM(e);var l=t.oxw(2);return t.KtG(l.dragStart(s))})("dragEnd",function(s){t.CHM(e);var l=t.oxw().index,u=t.oxw();return t.KtG(u.dragEnd(s,u.filteredTemplates[l]))}),t._UZ(3,"img",16),t.qZA(),t.TgZ(4,"div",17),t._uU(5),t.qZA()(),t.YNc(6,xGe,5,6,"span",18),t.YNc(7,DGe,5,6,"span",18),t.YNc(8,AGe,5,6,"span",18),t.qZA()}if(2&n){var i=t.oxw().index,o=t.oxw();t.xp6(3),t.Q6J("src",o.getImageSourceForTemplate(o.filteredTemplates[i]),t.LSH),t.xp6(1),t.Q6J("ngClass",t.WLB(6,xF,!o.isLightThemeEnabled,o.isLightThemeEnabled)),t.xp6(1),t.Oqu(o.filteredTemplates[i].name),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+1]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+2]),t.xp6(1),t.Q6J("ngIf",o.filteredTemplates[i+3])}}function IGe(n,r){if(1&n&&(t.TgZ(0,"mat-list-item"),t.YNc(1,OGe,9,9,"span",12),t.qZA()),2&n){var e=r.index;t.xp6(1),t.Q6J("ngIf",e%4==0)}}var jse=function(){return{standalone:!0}},JO=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialog=r,this.templateService=e,this.scaleService=i,this.symbolService=o,this.domSanitizer=a,this.themeService=s,this.overlayContainer=l,this.onNodeCreation=new t.vpe,this.templates=[],this.filteredTemplates=[],this.searchText="",this.templateTypes=["all","cloud","ethernet_hub","ethernet_switch","docker","dynamips","vpcs","virtualbox","vmware","iou","qemu"],this.isLightThemeEnabled=!1,this.overlay=l.getContainerElement()}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.templateService.newTemplateCreated.subscribe(function(i){e.templates.push(i)}),this.templateService.list(this.controller).subscribe(function(i){e.filteredTemplates=i,e.sortTemplates(),e.templates=i}),this.symbolService.list(this.controller),"light"===this.themeService.getActualTheme()&&(this.isLightThemeEnabled=!0),this.themeSubscription=this.themeService.themeChanged.subscribe(function(i){"light-theme"===i&&(e.isLightThemeEnabled=!0),e.toggleTheme()})}},{key:"toggleTheme",value:function(){this.overlay.classList.contains("dark-theme")?(this.overlay.classList.remove("dark-theme"),this.overlay.classList.add("light-theme")):this.overlay.classList.contains("light-theme")?(this.overlay.classList.remove("light-theme"),this.overlay.classList.add("dark-theme")):this.overlay.classList.add("light-theme")}},{key:"sortTemplates",value:function(){this.filteredTemplates=this.filteredTemplates.sort(function(e,i){return e.name<i.name?-1:1})}},{key:"filterTemplates",value:function(e){var i=this,o=this.templates.filter(function(a){return a.name.toLowerCase().includes(i.searchText.toLowerCase())});"all"!==this.selectedType&&this.selectedType?this.filteredTemplates=o.filter(function(a){return a.template_type===i.selectedType}):this.filteredTemplates=o,this.sortTemplates()}},{key:"dragStart",value:function(e){var i=event.target.getBoundingClientRect();this.startX=event.clientX,this.startY=event.clientY,this.movementY=i.top-event.clientY,this.movementX=i.left-event.clientX}},{key:"dragEnd",value:function(e,i){var o=this;this.symbolService.raw(this.controller,i.symbol.substring(1)).subscribe(function(a){var s=+a.split('width="')[1].split('"')[0]?+a.split('width="')[1].split('"')[0]:0,l=o.scaleService.getScale(),u={template:i,controller:"local",numberOfNodes:1,x:(o.startX+e.x-o.project.scene_width/2-s/2)*l+window.scrollX,y:(o.startY+e.y-o.project.scene_height/2)*l+window.scrollY};o.onNodeCreation.emit(u)})}},{key:"openDialog",value:function(){var e=this;this.dialog.open(qO,{width:"600px",data:{controller:this.controller,project:this.project},autoFocus:!1,disableClose:!0}).afterClosed().subscribe(function(o){null!==o&&e.onNodeCreation.emit(o)})}},{key:"getImageSourceForTemplate",value:function(e){return this.symbolService.getSymbolFromTemplate(this.controller,e)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}}]),n}();JO.\u0275fac=function(r){return new(r||JO)(t.Y36(jr),t.Y36(lf),t.Y36(_f),t.Y36(Op),t.Y36(Jt),t.Y36(Cc.f),t.Y36(xi.Xj))},JO.\u0275cmp=t.Xpm({type:JO,selectors:[["app-template"]],inputs:{controller:"controller",project:"project"},outputs:{onNodeCreation:"onNodeCreation"},decls:18,vars:9,consts:[["matTooltip","Add a node","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button","add-menu-button",3,"matMenuTriggerFor"],["mainMenu","matMenu"],["mat-menu-item","",3,"click"],["floatPlaceholder","never",1,"form-field",3,"click"],["matInput","","placeholder","Search template by name",3,"ngModel","ngModelOptions","keyup","ngModelChange"],[1,"form-field",3,"click"],["placeholder","Filter templates by type",3,"ngModelOptions","ngModel","selectionChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"menu"],[1,"templateList"],[4,"ngFor","ngForOf"],[3,"value"],["class","templateRow",4,"ngIf"],[1,"templateRow"],[1,"templateIcon"],["mwlDraggable","",3,"dragStart","dragEnd"],[1,"image",3,"src"],[3,"ngClass"],["class","templateIcon",4,"ngIf"]],template:function(r,e){if(1&r&&(t.TgZ(0,"button",0)(1,"mat-icon"),t._uU(2,"add"),t.qZA()(),t.TgZ(3,"mat-menu",null,1)(5,"button",2),t.NdJ("click",function(){return e.openDialog()}),t.TgZ(6,"mat-icon"),t._uU(7,"add_to_queue"),t.qZA(),t.TgZ(8,"span"),t._uU(9,"Open dialog to configure"),t.qZA()(),t.TgZ(10,"mat-form-field",3),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(11,"input",4),t.NdJ("keyup",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.searchText=a}),t.qZA()(),t.TgZ(12,"mat-form-field",5),t.NdJ("click",function(a){return a.stopPropagation()}),t.TgZ(13,"mat-select",6),t.NdJ("selectionChange",function(a){return e.filterTemplates(a)})("ngModelChange",function(a){return e.selectedType=a}),t.YNc(14,EGe,2,2,"mat-option",7),t.qZA()(),t.TgZ(15,"div",8)(16,"div",9),t.YNc(17,IGe,2,1,"mat-list-item",10),t.qZA()()()),2&r){var i=t.MAs(4);t.Q6J("matMenuTriggerFor",i),t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(7,jse)),t.xp6(2),t.Q6J("ngModelOptions",t.DdM(8,jse))("ngModel",e.selectedType),t.xp6(1),t.Q6J("ngForOf",e.templateTypes),t.xp6(3),t.Q6J("ngForOf",e.filteredTemplates)}},dependencies:[ge.mk,ge.sg,ge.O5,J.Fj,J.JJ,J.On,kn.KE,Va,Dr,_a,QE,cn,Dn,Kn,Aa,ni.gD,Vt.ey,ui],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 PGe=(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this.sourceNode=r,this.sourcePort=e,this.targetNode=i,this.targetPort=o});function RGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",10),t.qZA())}function LGe(n,r){1&n&&(t.O4$(),t.TgZ(0,"svg",9),t._UZ(1,"rect",11),t.qZA())}function ZGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.chooseInterface(s))}),t.YNc(1,RGe,2,0,"svg",7),t.YNc(2,LGe,2,0,"svg",7),t.TgZ(3,"span",8),t._uU(4),t.qZA()()}if(2&n){var i=r.$implicit;t.Q6J("disabled",!i.available),t.xp6(1),t.Q6J("ngIf",i.available),t.xp6(1),t.Q6J("ngIf",!i.available),t.xp6(2),t.Oqu(i.name)}}function NGe(n,r){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"span",2),t.TgZ(2,"mat-menu",3,4),t.YNc(4,ZGe,5,4,"button",5),t.qZA()()),2&n){var e=t.MAs(3),i=t.oxw();t.Udp("left",i.leftPosition)("top",i.topPosition),t.xp6(1),t.Q6J("matMenuTriggerFor",e),t.xp6(1),t.Udp("min-height",0),t.xp6(2),t.Q6J("ngForOf",i.ports)}}var hT=function(){function n(r,e){(0,H.Z)(this,n),this.sanitizer=r,this.changeDetector=e,this.onChooseInterface=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.setPosition(0,0)}},{key:"setPosition",value:function(e,i){this.topPosition=this.sanitizer.bypassSecurityTrustStyle(e+"px"),this.leftPosition=this.sanitizer.bypassSecurityTrustStyle(i+"px"),this.changeDetector.detectChanges()}},{key:"open",value:function(e,i,o){this.node=e,this.filterNodePorts(),this.setPosition(i,o),this.contextMenu.openMenu()}},{key:"filterNodePorts",value:function(){var e=this,i=[];this.links.forEach(function(o){o.nodes.forEach(function(a){a.node_id===e.node.node_id&&i.push(a)})}),this.ports=[],this.node.ports.forEach(function(o){var a=i.filter(function(s){return s.adapter_number===o.adapter_number});0===a.length||0===a.filter(function(s){return s.port_number===o.port_number}).length?o.available=!0:o.available=!1,e.ports.push(o)})}},{key:"chooseInterface",value:function(e){this.onChooseInterface.emit({node:this.node,port:e})}}]),n}();hT.\u0275fac=function(r){return new(r||hT)(t.Y36(Jt),t.Y36(t.sBO))},hT.\u0275cmp=t.Xpm({type:hT,selectors:[["app-node-select-interface"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(_a,5),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first))},inputs:{links:"links"},outputs:{onChooseInterface:"onChooseInterface"},decls:1,vars:1,consts:[["class","context-menu",3,"left","top",4,"ngIf"],[1,"context-menu"],[3,"matMenuTriggerFor"],[1,"context-menu-items"],["selectInterfaceMenu","matMenu"],["mat-menu-item","",3,"disabled","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"disabled","click"],["width","10","height","10",4,"ngIf"],[1,"port"],["width","10","height","10"],["x","0","y","0","width","10","height","10","fill","green",1,"status"],["x","0","y","0","width","10","height","10","fill","red",1,"status"]],template:function(r,e){1&r&&t.YNc(0,NGe,5,8,"div",0),2&r&&t.Q6J("ngIf",e.node)},dependencies:[ge.sg,ge.O5,Va,Dr,_a],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 QO=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.drawingLineTool=r,this.nodesEventSource=e,this.linksEventSource=i,this.mapNodeToNode=o,this.nodeToMapNode=a,this.portToMapPort=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeClicked$=this.nodesEventSource.clicked.subscribe(function(i){var o=e.mapNodeToNode.convert(i.datum);e.nodeSelectInterfaceMenu.open(o,i.y,i.x)})}},{key:"ngOnDestroy",value:function(){this.drawingLineTool.isDrawing()&&this.drawingLineTool.stop(),this.nodeClicked$.unsubscribe()}},{key:"onChooseInterface",value:function(e){var i=this.nodeToMapNode.convert(e.node),o=this.portToMapPort.convert(e.port);if(this.drawingLineTool.isDrawing()){var a=this.drawingLineTool.stop();this.linksEventSource.created.emit(new PGe(a.node,a.port,i,o))}else this.drawingLineTool.start(i.x+i.width/2,i.y+i.height/2,{node:i,port:o})}}]),n}();QO.\u0275fac=function(r){return new(r||QO)(t.Y36(qg),t.Y36(dd),t.Y36(fd),t.Y36(Wm),t.Y36(Gg),t.Y36(jg))},QO.\u0275cmp=t.Xpm({type:QO,selectors:[["app-draw-link-tool"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(hT,5),2&r)&&(t.iGM(i=t.CRH())&&(e.nodeSelectInterfaceMenu=i.first))},inputs:{links:"links"},decls:1,vars:1,consts:[[3,"links","onChooseInterface"]],template:function(r,e){1&r&&(t.TgZ(0,"app-node-select-interface",0),t.NdJ("onChooseInterface",function(o){return e.onChooseInterface(o)}),t.qZA()),2&r&&t.Q6J("links",e.links)},dependencies:[hT]});var XO=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingResized=this.drawingsEventSource.resized.subscribe(function(i){return e.onDrawingResized(i)})}},{key:"onDrawingResized",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id),a=this.mapDrawingToSvgConverter.convert(e.datum);this.drawingService.updateSizeAndPosition(this.controller,o,e.x,e.y,a).subscribe(function(s){i.drawingsDataSource.update(s)})}},{key:"ngOnDestroy",value:function(){this.drawingResized.unsubscribe()}}]),n}();XO.\u0275fac=function(r){return new(r||XO)(t.Y36(Ka),t.Y36(va),t.Y36(Rl),t.Y36(hd))},XO.\u0275cmp=t.Xpm({type:XO,selectors:[["app-drawing-resized"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var $O=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.drawingsFactory=o,this.mapDrawingToSvgConverter=a,this.context=s,this.drawingSaved=new t.vpe}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textAdded=this.drawingsEventSource.textAdded.subscribe(function(i){return e.onTextAdded(i)})}},{key:"onTextAdded",value:function(e){var i=this,o=this.drawingsFactory.getDrawingMock("text");o.element.text=e.savedText;var a=this.mapDrawingToSvgConverter.convert(o);this.drawingService.add(this.controller,this.project.project_id,(e.x-(this.context.getZeroZeroTransformationPoint().x+this.context.transformation.x))/this.context.transformation.k,(e.y-(this.context.getZeroZeroTransformationPoint().y+this.context.transformation.y))/this.context.transformation.k,a).subscribe(function(s){i.drawingsDataSource.add(s),i.drawingSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textAdded.unsubscribe()}}]),n}();$O.\u0275fac=function(r){return new(r||$O)(t.Y36(Ka),t.Y36(va),t.Y36(Rl),t.Y36(sv),t.Y36(hd),t.Y36(Ws))},$O.\u0275cmp=t.Xpm({type:$O,selectors:[["app-text-added"]],inputs:{controller:"controller",project:"project"},outputs:{drawingSaved:"drawingSaved"},decls:0,vars:0,template:function(r,e){}});var eI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i,this.mapDrawingToSvgConverter=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.textEdited=this.drawingsEventSource.textEdited.subscribe(function(i){return e.onTextEdited(i)})}},{key:"onTextEdited",value:function(e){var i=this,o=new Lm;o.element=e.textElement,o.element.text=e.editedText;var a=this.mapDrawingToSvgConverter.convert(o),s=this.drawingsDataSource.get(e.textDrawingId);this.drawingService.updateText(this.controller,s,a).subscribe(function(l){i.drawingsDataSource.update(l),i.drawingsEventSource.textSaved.emit(!0)})}},{key:"ngOnDestroy",value:function(){this.textEdited.unsubscribe()}}]),n}();eI.\u0275fac=function(r){return new(r||eI)(t.Y36(Ka),t.Y36(va),t.Y36(Rl),t.Y36(hd))},eI.\u0275cmp=t.Xpm({type:eI,selectors:[["app-text-edited"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var tI=function(){function n(r,e,i){(0,H.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeDragged=this.nodesEventSource.dragged.subscribe(function(i){return e.onNodeDragged(i)})}},{key:"onNodeDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.nodeService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.nodesDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.nodeDragged.unsubscribe()}}]),n}();tI.\u0275fac=function(r){return new(r||tI)(t.Y36(Ya.G),t.Y36(Br),t.Y36(dd))},tI.\u0275cmp=t.Xpm({type:tI,selectors:[["app-node-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var nI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.nodesDataSource=r,this.nodeService=e,this.nodesEventSource=i,this.mapLabelToLabel=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeLabelDragged=this.nodesEventSource.labelDragged.subscribe(function(i){return e.onNodeLabelDragged(i)})}},{key:"onNodeLabelDragged",value:function(e){var i=this,o=this.nodesDataSource.get(e.datum.nodeId),a=e.datum;a.x+=e.dx,a.y+=e.dy;var s=this.mapLabelToLabel.convert(a);o.label=s,this.nodeService.updateLabel(this.controller,o,o.label).subscribe(function(l){i.nodesDataSource.update(l)})}},{key:"ngOnDestroy",value:function(){this.nodeLabelDragged.unsubscribe()}}]),n}();nI.\u0275fac=function(r){return new(r||nI)(t.Y36(Ya.G),t.Y36(Br),t.Y36(dd),t.Y36(qp))},nI.\u0275cmp=t.Xpm({type:nI,selectors:[["app-node-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var rI=function(){function n(r,e,i){(0,H.Z)(this,n),this.drawingService=r,this.drawingsDataSource=e,this.drawingsEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.drawingDragged=this.drawingsEventSource.dragged.subscribe(function(i){return e.onDrawingDragged(i)})}},{key:"onDrawingDragged",value:function(e){var i=this,o=this.drawingsDataSource.get(e.datum.id);o.x+=e.dx,o.y+=e.dy,this.drawingService.updatePosition(this.controller,this.project,o,o.x,o.y).subscribe(function(a){i.drawingsDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.drawingDragged.unsubscribe()}}]),n}();rI.\u0275fac=function(r){return new(r||rI)(t.Y36(Ka),t.Y36(va),t.Y36(Rl))},rI.\u0275cmp=t.Xpm({type:rI,selectors:[["app-drawing-dragged"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var iI=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.projectService=r,this.linkService=e,this.linksDataSource=i,this.linksEventSource=o,this.mapNodeToNode=a,this.mapPortToPort=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.linkCreated=this.linksEventSource.created.subscribe(function(i){return e.onLinkCreated(i)})}},{key:"onLinkCreated",value:function(e){var i=this,o=Math.abs(e.sourceNode.x-e.targetNode.x),a=Math.abs(e.sourceNode.y-e.targetNode.y),s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2)),l=a/s,u=45/s*o,d=45/s*a,h=0,g=0,C=0,Z=0;e.sourceNode.x<=e.targetNode.x&&e.sourceNode.y<=e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5,g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5,C=Math.floor(e.targetNode.width/2)-Math.round(u)-5-Math.round(20*l),Z=Math.floor(e.targetNode.height/2)-Math.round(d)+5-Math.round(20*l)):e.sourceNode.x>e.targetNode.x&&e.sourceNode.y<e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)+Math.round(d)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=Math.floor(e.targetNode.height/2)-Math.round(d)-5):e.sourceNode.x<e.targetNode.x&&e.sourceNode.y>e.targetNode.y?(h=Math.floor(e.sourceNode.width/2)+Math.round(u)+5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)-5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)-Math.round(u)-5,Z=Math.floor(e.targetNode.height/2)+Math.round(d)+5):e.sourceNode.x>=e.targetNode.x&&e.sourceNode.y>=e.targetNode.y&&(h=Math.floor(e.sourceNode.width/2)-Math.round(u)-5-Math.round(20*l),g=Math.floor(e.sourceNode.height/2)-Math.round(d)+5-Math.round(20*l),C=Math.floor(e.targetNode.width/2)+Math.round(u)+5,Z=Math.floor(e.targetNode.height/2)+Math.round(d)+5);var z=this.mapNodeToNode.convert(e.sourceNode),q=this.mapPortToPort.convert(e.sourcePort),re=this.mapNodeToNode.convert(e.targetNode),ae=this.mapPortToPort.convert(e.targetPort);this.linkService.createLink(this.controller,z,q,re,ae,h,g,C,Z).subscribe(function(){i.projectService.links(i.controller,i.project.project_id).subscribe(function(Se){i.linksDataSource.set(Se)})})}},{key:"ngOnDestroy",value:function(){this.linkCreated.unsubscribe()}}]),n}();iI.\u0275fac=function(r){return new(r||iI)(t.Y36(Gs.Y),t.Y36(cl),t.Y36(Fm.F),t.Y36(fd),t.Y36(Wm),t.Y36(uv))},iI.\u0275cmp=t.Xpm({type:iI,selectors:[["app-link-created"]],inputs:{controller:"controller",project:"project"},decls:0,vars:0,template:function(r,e){}});var oI=function(){function n(r,e,i){(0,H.Z)(this,n),this.linkService=r,this.linksDataSource=e,this.linksEventSource=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.interfaceDragged=this.linksEventSource.interfaceDragged.subscribe(function(i){return e.onInterfaceLabelDragged(i)})}},{key:"onInterfaceLabelDragged",value:function(e){var i=this,o=this.linksDataSource.get(e.datum.linkId);o.nodes[0].node_id===e.datum.nodeId&&(o.nodes[0].label.x+=e.dx,o.nodes[0].label.y+=e.dy),o.nodes[1].node_id===e.datum.nodeId&&(o.nodes[1].label.x+=e.dx,o.nodes[1].label.y+=e.dy),this.linkService.updateNodes(this.controller,o,o.nodes).subscribe(function(a){i.linksDataSource.update(a)})}},{key:"ngOnDestroy",value:function(){this.interfaceDragged.unsubscribe()}}]),n}();oI.\u0275fac=function(r){return new(r||oI)(t.Y36(cl),t.Y36(Fm.F),t.Y36(fd))},oI.\u0275cmp=t.Xpm({type:oI,selectors:[["app-interface-label-dragged"]],inputs:{controller:"controller"},decls:0,vars:0,template:function(r,e){}});var aI=function(){function n(r,e){(0,H.Z)(this,n),this.data=r,this.dialogRef=e,this.confirmActionData={actionType:"start",isAction:!1}}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.confirmActionData.actionType=this.data}},{key:"confirmAction",value:function(){this.confirmActionData.isAction=!0,this.dialogRef.close(this.confirmActionData)}}]),n}();aI.\u0275fac=function(r){return new(r||aI)(t.Y36(So),t.Y36(cr))},aI.\u0275cmp=t.Xpm({type:aI,selectors:[["app-nodes-menu-confirmation-dialog"]],decls:13,vars:2,consts:[[1,"row"],[1,"col-md-12"],[1,"heading-txt"],[1,"text-padding"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h5",2),t._uU(3),t.qZA()()(),t._UZ(4,"mat-divider"),t.TgZ(5,"mat-dialog-content")(6,"p",3),t._uU(7),t.qZA()(),t.TgZ(8,"mat-dialog-actions",4)(9,"button",5),t._uU(10,"No"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return e.confirmAction()}),t._uU(12,"Yes"),t.qZA()()),2&r&&(t.xp6(3),t.hij("Confirm ",e.confirmActionData.actionType," All"),t.xp6(4),t.hij("Are you sure you want to ",e.confirmActionData.actionType," all devices?"))},dependencies:[cn,Eg,du,dr,fm.d],styles:[".close-btn[_ngcontent-%COMP%]{height:30px;width:30px;margin-left:10px;margin-bottom:10px}.close-icon[_ngcontent-%COMP%]{font-size:15px}.text-padding[_ngcontent-%COMP%]{padding:15px 0 0}.mat-dialog-actions[_ngcontent-%COMP%]{min-height:31px}.heading-txt[_ngcontent-%COMP%]{text-transform:capitalize}"]});var sI=function(){function n(r,e,i,o,a,s,l,u,d){(0,H.Z)(this,n),this.nodeService=r,this.nodeConsoleService=e,this.nodesDataSource=i,this.toasterService=o,this.controllerService=a,this.settingsService=s,this.mapSettingsService=l,this.electronService=u,this.dialog=d}return(0,B.Z)(n,[{key:"startConsoleForAllNodes",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i,o,a,s,l,u;return Rn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!this.electronService.isElectronApp){h.next=23;break}i=this.settingsService.getConsoleSettings()?this.settingsService.getConsoleSettings():this.nodeService.getDefaultCommand(),o=this.nodesDataSource.getItems(),a=(0,xn.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(aI,{width:"500px",maxHeight:"200px",autoFocus:!1,disableClose:!0,data:e}).afterClosed().subscribe(function(a){a.isAction&&"start"==a.actionType?i.startNodes():a.isAction&&"stop"==a.actionType?i.stopNodes():a.isAction&&"reload"==a.actionType?i.reloadNodes():a.isAction&&"suspend"==a.actionType?i.suspendNodes():i.resetNodes()})}}]),n}();sI.\u0275fac=function(r){return new(r||sI)(t.Y36(Br),t.Y36(pu),t.Y36(Ya.G),t.Y36(Ln),t.Y36(rr),t.Y36(jm.g),t.Y36(ul),t.Y36(al),t.Y36(jr))},sI.\u0275cmp=t.Xpm({type:sI,selectors:[["app-nodes-menu"]],inputs:{project:"project",controller:"controller"},decls:19,vars:0,consts:[[1,"menu-button-group"],["matTooltip","Console connect to all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Start/Resume all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Suspend all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Stop all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reload all nodes","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"],["matTooltip","Reset all console connections","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(){return e.startConsoleForAllNodes()}),t.TgZ(2,"mat-icon"),t._uU(3,"web_asset"),t.qZA()(),t.TgZ(4,"button",2),t.NdJ("click",function(){return e.confirmControlsActions("start")}),t.TgZ(5,"mat-icon"),t._uU(6,"play_arrow"),t.qZA()(),t.TgZ(7,"button",3),t.NdJ("click",function(){return e.confirmControlsActions("suspend")}),t.TgZ(8,"mat-icon"),t._uU(9,"pause"),t.qZA()(),t.TgZ(10,"button",4),t.NdJ("click",function(){return e.confirmControlsActions("stop")}),t.TgZ(11,"mat-icon"),t._uU(12,"stop"),t.qZA()(),t.TgZ(13,"button",5),t.NdJ("click",function(){return e.confirmControlsActions("reload")}),t.TgZ(14,"mat-icon"),t._uU(15,"replay"),t.qZA()(),t.TgZ(16,"button",6),t.NdJ("click",function(){return e.confirmControlsActions("reset")}),t.TgZ(17,"mat-icon"),t._uU(18,"compare_arrows"),t.qZA()()())},dependencies:[cn,Dn,ui],styles:[".menu-button[_ngcontent-%COMP%]{margin:0 5px!important}.marked[_ngcontent-%COMP%]{color:#0097a7!important}"],changeDetection:0});var lI=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.toasterService=r,this.dockerService=e,this.qemuService=i,this.iouService=o,this.iosService=a}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.uploader=new wg({url:""}),this.uploader.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploader.onErrorItem=function(i,o,a,s){e.toasterService.error("An error has occured")},this.uploader.onCompleteItem=function(i,o,a,s){"qemu"===e.template.template_type?e.qemuService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"iou"===e.template.template_type?e.iouService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"dynamips"===e.template.template_type?e.iosService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()}):"docker"===e.template.template_type&&e.dockerService.addTemplate(e.controller,e.template).subscribe(function(){return e.onUploadComplete()})}}},{key:"onUploadComplete",value:function(){this.toasterService.success("Appliance imported successfully"),this.uploader.queue=[]}},{key:"uploadAppliance",value:function(e){var l,i=this,o=e.target.files[0],a=o.name,s=new FileReader;s.onloadend=function(){var u=JSON.parse(s.result);if(u.qemu)(l=new uz).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 lz).template_type="iou",l.console_type=u.iou.console_type,l.console_auto_start=u.iou.console_auto_start,l.ethernet_adapters=u.iou.ethernet_adapters,l.l1_keepalives=u.iou.l1_keepalives,l.use_default_iou_values=u.iou.use_default_iou_values,l.nvram=u.iou.nvram,l.ram=u.iou.ram,l.serial_adapters=u.iou.serial_adapters;else if(u.dynamips)(l=new sz).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 oz).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 g=i.uploader.queue[0];i.uploader.uploadItem(g)},s.readAsText(o)}},{key:"getUploadPath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.N.current_version,"/").concat(i,"/images/").concat(o)}}]),n}();lI.\u0275fac=function(r){return new(r||lI)(t.Y36(Ln),t.Y36(nd),t.Y36(Bu),t.Y36(ad),t.Y36(od))},lI.\u0275cmp=t.Xpm({type:lI,selectors:[["app-import-appliance"]],inputs:{project:"project",controller:"controller"},decls:0,vars:0,template:function(r,e){}});var Gse=m(4147).i8,fv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o}}]),e}(BB.o);fv.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(fv)))(e||fv)}}(),fv.\u0275prov=t.Yz7({token:fv,factory:fv.\u0275fac});var BGe=["console"];function FGe(n,r){if(1&n&&(t.TgZ(0,"span",12),t._uU(1),t._UZ(2,"br"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.message," ")}}var DF=function(r){return{lightTheme:r}},uI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.projectWebServiceHandler=r,this.nodeService=e,this.nodesDataSource=i,this.protocolHandlerService=o,this.logEventsDataSource=a,this.httpService=s,this.themeService=l,this.cd=u,this.nodeConsoleService=d,this.changeDetectorRef=h,this.version=Gse,this.command="",this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.filteredEvents=[],this.regexStart=/^start (.*?)$/,this.regexStop=/^stop (.*?)$/,this.regexSuspend=/^suspend (.*?)$/,this.regexReload=/^reload (.*?)$/,this.regexShow=/^show (.*?)$/,this.regexConsole=/^console (.*?)$/,this.style={},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.selected=new J.p4(0)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.nodeConsoleService.consoleResized.subscribe(function(i){e.style={bottom:"20px",left:"20px",width:"".concat(i.width,"px"),height:"".concat(i.height-70,"px")},e.changeDetectorRef.detectChanges()}),"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"20px",width:"720px",height:"340px"},this.nodeSubscription=this.projectWebServiceHandler.nodeNotificationEmitter.subscribe(function(i){var o=i.event,a="";a=o.label?"Event received: ".concat(i.action," - ").concat(e.printNode(o),"."):"Event received: ".concat(i.action," - ").concat(o.name,"."),e.showMessage({type:"map update",message:a})}),this.linkSubscription=this.projectWebServiceHandler.linkNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printLink(o),".");e.showMessage({type:"map update",message:a})}),this.drawingSubscription=this.projectWebServiceHandler.drawingNotificationEmitter.subscribe(function(i){var o=i.event,a="Event received: ".concat(i.action," - ").concat(e.printDrawing(o),".");e.showMessage({type:"map update",message:a})}),this.controllerRequestsSubscription=this.httpService.requestsNotificationEmitter.subscribe(function(i){e.showMessage({type:"controller request",message:i})}),this.errorSubscription=this.projectWebServiceHandler.errorNotificationEmitter.subscribe(function(i){e.showMessage({type:"error",message:i})}),this.warningSubscription=this.projectWebServiceHandler.warningNotificationEmitter.subscribe(function(i){e.showMessage({type:"warning",message:i})}),this.infoSubscription=this.projectWebServiceHandler.infoNotificationEmitter.subscribe(function(i){e.showMessage({type:"info",message:i})})}},{key:"ngAfterViewInit",value:function(){this.console.nativeElement&&(this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight)}},{key:"ngOnDestroy",value:function(){this.nodeSubscription.unsubscribe(),this.linkSubscription.unsubscribe(),this.drawingSubscription.unsubscribe(),this.controllerRequestsSubscription.unsubscribe(),this.errorSubscription.unsubscribe(),this.warningSubscription.unsubscribe(),this.infoSubscription.unsubscribe()}},{key:"applyFilter",value:function(e){this.selectedFilter=e,this.filteredEvents=this.getFilteredEvents(),this.cd.detectChanges()}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.handleCommand()}},{key:"handleCommand",value:function(){var e=this;if("help"===this.command||""===this.command)this.showCommand("Available commands: help, version, console {node name}, start all, start {node name}, stop all, stop {node name}, suspend all, suspend {node name}, reload all, reload {node name}, show {node name}.");else if("version"===this.command)this.showCommand("Current version: "+this.version);else if("start all"===this.command)this.showCommand("Starting all nodes..."),this.nodeService.startAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes started.")});else if("stop all"===this.command)this.showCommand("Stopping all nodes..."),this.nodeService.stopAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes stopped.")});else if("suspend all"===this.command)this.showCommand("Suspending all nodes..."),this.nodeService.suspendAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes suspended.")});else if("reload all"===this.command)this.showCommand("Reloading all nodes..."),this.nodeService.reloadAll(this.controller,this.project).subscribe(function(){e.showCommand("All nodes reloaded.")});else if(this.regexStart.test(this.command)||this.regexStop.test(this.command)||this.regexSuspend.test(this.command)||this.regexReload.test(this.command)||this.regexShow.test(this.command)||this.regexConsole.test(this.command)){var i=this.command.split(/[ ,]+/),o=this.nodesDataSource.getItems().find(function(s){return s.name.valueOf()===i[1].valueOf()});if(o)if(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."))});else if(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."))});else if(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."))});else if(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."))});else if(this.regexConsole.test(this.command))if("started"===o.status){this.showCommand("Launching console for node ".concat(i[1],"..."));var a=o.console_host;Zse.IPv6.isValid(a)&&(a="[".concat(a,"]")),"telnet"===o.console_type?this.protocolHandlerService.open("gns3+telnet://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):"vnc"===o.console_type?this.protocolHandlerService.open("gns3+vnc://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("spice")?this.protocolHandlerService.open("gns3+spice://".concat(a,":").concat(o.console,"?name=").concat(o.name,"&project_id=").concat(o.project_id,"&node_id=").concat(o.node_id)):o.console_type.startsWith("http")?window.open("".concat(o.console_type,"://").concat(a,":").concat(o.console)):this.showCommand("Supported console types are: telnet, vnc, spice and spice+agent")}else this.showCommand("This node must be started before a console can be opened.");else this.regexShow.test(this.command)&&(this.showCommand("Information about node ".concat(o.name,":")),this.showCommand(this.printNode(o)));else this.showCommand("Node with ".concat(i[1]," name was not found."))}else this.showCommand("Unknown syntax: ".concat(this.command));this.command="",this.cd.detectChanges()}},{key:"clearConsole",value:function(){this.filteredEvents=[],this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight}},{key:"showCommand",value:function(e){this.showMessage({type:"command",message:e})}},{key:"showMessage",value:function(e){var i=this;this.logEventsDataSource.add(e),this.filteredEvents=this.getFilteredEvents(),this.console.nativeElement.scrollTop=this.console.nativeElement.scrollHeight,setTimeout(function(){i.console.nativeElement.scrollTop=i.console.nativeElement.scrollHeight},100),this.cd.detectChanges()}},{key:"getFilteredEvents",value:function(){return"controller requests"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"controller request"===e.type}):"errors"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"error"===e.type}):"warnings"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"warning"===e.type}):"info"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"info"===e.type}):"map updates"===this.selectedFilter?this.logEventsDataSource.getItems().filter(function(e){return"map update"===e.type||"command"===e.type}):this.logEventsDataSource.getItems()}},{key:"printNode",value:function(e){return"command_line: ".concat(e.command_line,",\n compute_id: ").concat(e.compute_id,",\n console: ").concat(e.console,",\n console_host: ").concat(e.console_host,",\n console_type: ").concat(e.console_type,",\n first_port_name: ").concat(e.first_port_name,",\n height: ").concat(e.height,",\n label: ").concat(e.label.text,",\n name: ").concat(e.name,",\n node_directory: ").concat(e.node_directory,",\n node_id: ").concat(e.node_id,",\n node_type: ").concat(e.node_type,",\n port_name_format: ").concat(e.port_name_format,",\n port_segment_size: ").concat(e.port_segment_size,", ")+this.printPorts(e.ports)+"project_id: ".concat(e.project_id,",\n status: ").concat(e.status,",\n symbol: ").concat(e.symbol,",\n symbol_url: ").concat(e.symbol_url,",\n width: ").concat(e.width,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}},{key:"printPorts",value:function(e){var i="ports: ";return e.forEach(function(o){i+="adapter_number: ".concat(o.adapter_number,",\n link_type: ").concat(o.link_type,",\n name: ").concat(o.name,",\n port_number: ").concat(o.port_number,",\n short_name: ").concat(o.short_name,", ")}),i}},{key:"printLink",value:function(e){return"capture_file_name: ".concat(e.capture_file_name,",\n capture_file_path: ").concat(e.capture_file_path,",\n capturing: ").concat(e.capturing,",\n link_id: ").concat(e.link_id,",\n link_type: ").concat(e.link_type,",\n project_id: ").concat(e.project_id,",\n suspend: ").concat(e.suspend,", ")}},{key:"printDrawing",value:function(e){return"drawing_id: ".concat(e.drawing_id,",\n project_id: ").concat(e.project_id,",\n rotation: ").concat(e.rotation,",\n x: ").concat(e.x,",\n y: ").concat(e.y,",\n z: ").concat(e.z)}}]),n}();uI.\u0275fac=function(r){return new(r||uI)(t.Y36(lv),t.Y36(Br),t.Y36(Ya.G),t.Y36(Hm),t.Y36(fv),t.Y36(mo.zw),t.Y36(Cc.f),t.Y36(t.sBO),t.Y36(pu),t.Y36(t.sBO))},uI.\u0275cmp=t.Xpm({type:uI,selectors:[["app-log-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(BGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.console=i.first))},inputs:{controller:"controller",project:"project"},decls:25,vars:16,consts:[[1,"consoleHeader"],[1,"consoleFiltering"],[1,"filterButton",3,"ngClass","matMenuTriggerFor"],["xPosition","after"],["filterMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"console",3,"ngClass","ngStyle"],["console",""],["class","console-item",4,"ngFor","ngForOf"],[1,"consoleInput",3,"ngClass"],[1,"inputIcon"],["autofocus","","type","text",1,"commandLine",3,"ngClass","ngModel","keydown","ngModelChange"],[1,"console-item"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t._uU(3," Apply filter "),t.qZA(),t.TgZ(4,"mat-menu",3,4)(6,"button",5),t.NdJ("click",function(){return e.applyFilter("all")}),t._uU(7,"all"),t.qZA(),t.TgZ(8,"button",5),t.NdJ("click",function(){return e.applyFilter("errors")}),t._uU(9,"errors"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return e.applyFilter("warnings")}),t._uU(11,"warnings"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return e.applyFilter("info")}),t._uU(13,"info"),t.qZA(),t.TgZ(14,"button",5),t.NdJ("click",function(){return e.applyFilter("map updates")}),t._uU(15,"map updates"),t.qZA(),t.TgZ(16,"button",5),t.NdJ("click",function(){return e.applyFilter("controller requests")}),t._uU(17,"controller requests"),t.qZA()()()(),t.TgZ(18,"div",6,7),t.YNc(20,FGe,3,1,"span",8),t.qZA(),t.TgZ(21,"div",9)(22,"mat-icon",10),t._uU(23,"keyboard_arrow_right"),t.qZA(),t.TgZ(24,"input",11),t.NdJ("keydown",function(a){return e.onKeyDown(a)})("ngModelChange",function(a){return e.command=a}),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Q6J("ngClass",t.VKq(8,DF,e.isLightThemeEnabled))("matMenuTriggerFor",i),t.xp6(16),t.Q6J("ngClass",t.VKq(10,DF,e.isLightThemeEnabled))("ngStyle",e.style),t.xp6(2),t.Q6J("ngForOf",e.filteredEvents),t.xp6(1),t.Q6J("ngClass",t.VKq(12,DF,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("ngClass",t.VKq(14,DF,e.isLightThemeEnabled))("ngModel",e.command)}},dependencies:[ge.mk,ge.sg,ge.PC,J.Fj,J.JJ,J.On,Va,Dr,_a,Dn],styles:[".consoleWrapper[_ngcontent-%COMP%]{box-shadow:0 4px 8px #0003,0 6px 20px #00000030;position:fixed;bottom:20px;left:20px;height:180px;width:600px;background:#263238;color:#fff;overflow:hidden;font-size:12px}.lightTheme[_ngcontent-%COMP%]{background:white!important;color:#000}.filterButton[_ngcontent-%COMP%]{background:transparent;color:#fff;border:none;margin-top:0;outline:none;color:#dbd5d5;font-weight:700;padding:0}.consoleFiltering[_ngcontent-%COMP%]{display:flex}.consoleHeader[_ngcontent-%COMP%]{width:100%;height:40px;font-size:12px;overflow:hidden;display:flex;padding:2px;justify-content:space-between}.console[_ngcontent-%COMP%]{width:596px;height:120px;overflow-y:scroll;padding:2px;color:#dbd5d5;scrollbar-color:darkgrey #263238;scrollbar-width:thin}.consoleInput[_ngcontent-%COMP%]{width:100%;height:30px;padding:2px;display:flex}.commandLine[_ngcontent-%COMP%]{background-color:transparent;color:#fff;border:none}.inputIcon[_ngcontent-%COMP%]{margin-top:2px}mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}input[_ngcontent-%COMP%]:focus{outline:none}[_ngcontent-%COMP%]::-webkit-scrollbar{width:.5em}[_ngcontent-%COMP%]::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #263238}.closeButton[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0});var zse=m(4793),Wse=m(986),Vse=m(9162),UGe=["terminal"],cI=function(){function n(r,e){(0,H.Z)(this,n),this.consoleService=r,this.themeService=e,this.term=new zse.Terminal,this.fitAddon=new Vse.FitAddon,this.isLightThemeEnabled=!1,this.copiedText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.consoleService.consoleResized.subscribe(function(i){var o=Math.floor(i.width/9),a=Math.floor(i.height/17);e.consoleService.setNumberOfColumns(o),e.consoleService.setNumberOfRows(a),e.term.resize(o,a)}),this.consoleService.getNumberOfColumns()&&this.consoleService.getNumberOfRows()&&this.term.resize(this.consoleService.getNumberOfColumns(),this.consoleService.getNumberOfRows())}},{key:"ngAfterViewInit",value:function(){var e=this;this.term.open(this.terminal.nativeElement),this.isLightThemeEnabled&&this.term.setOption("theme",{background:"white",foreground:"black",cursor:"black"});var i=new WebSocket(this.consoleService.getUrl(this.controller,this.node));i.onerror=function(a){e.term.write("Connection lost")},i.onclose=function(a){e.consoleService.closeConsoleForNode(e.node)};var o=new Wse.AttachAddon(i);this.term.loadAddon(o),this.term.setOption("cursorBlink",!0),this.term.loadAddon(this.fitAddon),this.fitAddon.activate(this.term),this.term.focus(),this.term.attachCustomKeyEventHandler(function(a){return!(("KeyC"===a.code||"KeyV"===a.code)&&a.ctrlKey&&a.shiftKey)})}}]),n}();function HGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",10),t.NdJ("mousemove",function(o){t.CHM(e);var a=t.oxw();return t.KtG(a.dragWidget(o))},!1,t.evT)("mouseup",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.toggleDragging(!1))},!1,t.evT),t.qZA()}}function jGe(n,r){1&n&&(t.TgZ(0,"div",11),t._uU(1,"GNS3 console"),t.qZA())}cI.\u0275fac=function(r){return new(r||cI)(t.Y36(pu),t.Y36(Cc.f))},cI.\u0275cmp=t.Xpm({type:cI,selectors:[["app-web-console"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(UGe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},inputs:{controller:"controller",project:"project",node:"node"},decls:2,vars:0,consts:[["id","terminal",1,"lightTheme"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n',".lightTheme{background:white!important;color:#000!important}\n"],encapsulation:2});var dI=function(r){return{lightThemeConsoleHeader:r}};function GGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",11),t._uU(1),t.qZA(),t.TgZ(2,"button",7),t.NdJ("click",function(){t.CHM(e);var s=t.oxw().index,l=t.oxw();return t.KtG(l.removeTab(s))}),t.TgZ(3,"mat-icon"),t._uU(4,"close"),t.qZA()()}if(2&n){var i=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(i.name),t.xp6(1),t.Q6J("ngClass",t.VKq(2,dI,o.isLightThemeEnabled))}}function zGe(n,r){if(1&n&&(t.TgZ(0,"mat-tab",12),t.YNc(1,GGe,5,4,"ng-template",4),t.qZA()),2&n){var e=t.oxw();t.Q6J("label",e.tab)}}function WGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!0))}),t.TgZ(1,"mat-icon"),t._uU(2,"remove"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,dI,i.isLightThemeEnabled))}}function VGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.minimize(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"web_asset"),t.qZA()()}if(2&n){var i=t.oxw();t.Q6J("ngClass",t.VKq(1,dI,i.isLightThemeEnabled))}}function YGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",13),t.NdJ("mouseover",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.disableScroll(s))})("mouseout",function(s){t.CHM(e);var l=t.oxw();return t.KtG(l.enableScroll(s))}),t._UZ(1,"app-web-console",14),t.qZA()}if(2&n){var i=r.index,o=t.oxw();t.Q6J("hidden",o.isMinimized),t.xp6(1),t.Q6J("hidden",o.selected.value!==i+1)("controller",o.controller)("node",o.nodes[i])}}var KGe=function(r){return{lightTheme:r}},qGe=function(){return{right:!0,left:!0,bottom:!0,top:!0}},fI=function(){function n(r,e,i){(0,H.Z)(this,n),this.consoleService=r,this.themeService=e,this.mapSettingsService=i,this.closeConsole=new t.vpe,this.filters=["all","errors","warnings","info","map updates","controller requests"],this.selectedFilter="all",this.style={},this.styleInside={height:"120px"},this.isDraggingEnabled=!1,this.isLightThemeEnabled=!1,this.isMinimized=!1,this.resizedWidth=720,this.resizedHeight=480,this.nodes=[],this.selected=new J.p4(0)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.style={bottom:"20px",left:"80px",width:"720px",height:"460px"},this.consoleService.nodeConsoleTrigger.subscribe(function(i){e.addTab(i,!0)}),this.consoleService.closeNodeConsoleTrigger.subscribe(function(i){var o=e.nodes.findIndex(function(a){return a.node_id===i.node_id});e.removeTab(o)})}},{key:"minimize",value:function(e){this.isMinimized=e,this.style=e?{bottom:"20px",left:"20px",width:"".concat(this.resizedWidth,"px"),height:"56px"}:{bottom:"20px",left:"80px",width:"".concat(this.resizedWidth,"px"),height:"".concat(this.resizedHeight,"px")}}},{key:"addTab",value:function(e,i){this.minimize(!1),this.nodes.push(e),i&&this.selected.setValue(this.nodes.length),this.consoleService.openConsoles++}},{key:"removeTab",value:function(e){this.nodes.splice(e,1),this.consoleService.openConsoles--}},{key:"toggleDragging",value:function(e){this.isDraggingEnabled=e}},{key:"dragWidget",value:function(e){var i=Number(e.movementX),o=Number(e.movementY),a=Number(this.style.width.split("px")[0]),s=Number(this.style.height.split("px")[0]),l=Number(this.style.left.split("px")[0])+i;if(this.style.top){var u=Number(this.style.top.split("px")[0])+o;this.style={position:"fixed",left:"".concat(l,"px"),top:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}else{var d=Number(this.style.bottom.split("px")[0])-o;this.style={position:"fixed",left:"".concat(l,"px"),bottom:"".concat(d,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}}},{key:"validate",value:function(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<500||e.rectangle.height<100))}},{key:"onResizeEnd",value:function(e){this.style={position:"fixed",left:"".concat(e.rectangle.left,"px"),top:"".concat(e.rectangle.top,"px"),width:"".concat(e.rectangle.width,"px"),height:"".concat(e.rectangle.height,"px")},this.styleInside={height:"".concat(e.rectangle.height-60,"px"),width:"".concat(e.rectangle.width,"px")},this.consoleService.consoleResized.next({width:e.rectangle.width,height:e.rectangle.height-53}),this.resizedWidth=e.rectangle.width,this.resizedHeight=e.rectangle.height}},{key:"close",value:function(){this.closeConsole.emit(!1)}},{key:"enableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!1)}},{key:"disableScroll",value:function(e){this.mapSettingsService.isScrollDisabled.next(!0)}}]),n}();fI.\u0275fac=function(r){return new(r||fI)(t.Y36(pu),t.Y36(Cc.f),t.Y36(ul))},fI.\u0275cmp=t.Xpm({type:fI,selectors:[["app-console-wrapper"]],inputs:{controller:"controller",project:"project"},outputs:{closeConsole:"closeConsole"},decls:14,vars:23,consts:[[3,"mousemove","mouseup",4,"ngIf"],["mwlResizable","",1,"consoleWrapper",3,"ngClass","ngStyle","validateResize","resizeEdges","enableGhostResize","mousedown","resizeStart","resizeEnd"],[1,"consoleHeader",3,"ngClass"],[1,"tabs",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[3,"label",4,"ngFor","ngForOf"],["style","color: white","mat-icon-button","",3,"ngClass","click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"ngClass","click"],[3,"hidden","controller","project"],["class","xterm-console",3,"hidden","mouseover","mouseout",4,"ngFor","ngForOf"],[3,"mousemove","mouseup"],[1,"col",2,"margin-left","20px"],[3,"label"],[1,"xterm-console",3,"hidden","mouseover","mouseout"],[3,"hidden","controller","node"]],template:function(r,e){1&r&&(t.YNc(0,HGe,1,0,"div",0),t.TgZ(1,"div",1),t.NdJ("mousedown",function(){return e.toggleDragging(!0)})("resizeStart",function(){return e.toggleDragging(!1)})("resizeEnd",function(o){return e.onResizeEnd(o)}),t.TgZ(2,"div",2)(3,"mat-tab-group",3),t.NdJ("selectedIndexChange",function(o){return e.selected.setValue(o)}),t.TgZ(4,"mat-tab"),t.YNc(5,jGe,2,0,"ng-template",4),t.qZA(),t.YNc(6,zGe,2,1,"mat-tab",5),t.qZA(),t.YNc(7,WGe,3,3,"button",6),t.YNc(8,VGe,3,3,"button",6),t.TgZ(9,"button",7),t.NdJ("click",function(){return e.close()}),t.TgZ(10,"mat-icon"),t._uU(11,"close"),t.qZA()()(),t._UZ(12,"app-log-console",8),t.YNc(13,YGe,2,4,"div",9),t.qZA()),2&r&&(t.Q6J("ngIf",e.isDraggingEnabled),t.xp6(1),t.Q6J("ngClass",t.VKq(16,KGe,e.isLightThemeEnabled))("ngStyle",e.style)("validateResize",e.validate)("resizeEdges",t.DdM(18,qGe))("enableGhostResize",!0),t.xp6(1),t.Q6J("ngClass",t.VKq(19,dI,e.isLightThemeEnabled)),t.xp6(1),t.Q6J("selectedIndex",e.selected.value),t.xp6(3),t.Q6J("ngForOf",e.nodes),t.xp6(1),t.Q6J("ngIf",!e.isMinimized),t.xp6(1),t.Q6J("ngIf",e.isMinimized),t.xp6(1),t.Q6J("ngClass",t.VKq(21,dI,e.isLightThemeEnabled)),t.xp6(3),t.Q6J("hidden",0!==e.selected.value||e.isMinimized)("controller",e.controller)("project",e.project),t.xp6(1),t.Q6J("ngForOf",e.nodes))},dependencies:[ge.mk,ge.sg,ge.O5,ge.PC,zY.E$,cn,Dn,Zi.SP,Zi.uD,Zi.uX,uI,cI],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 JGe=["topologySummaryContainer"];function QGe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-d3-map",37),t.NdJ("nodeDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeDragged(a))})("drawingDragged",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingDragged(a))})("onLinkCreated",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onLinkCreated(a))})("onDrawingResized",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onDrawingResized(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)("symbols",i.symbols)("nodes",i.nodes)("links",i.links)("drawings",i.drawings)("width",i.project.scene_width)("height",i.project.scene_height)("show-interface-labels",i.isInterfaceLabelVisible)("readonly",i.inReadOnlyMode)}}function XGe(n,r){if(1&n&&t._UZ(0,"app-experimental-map",38),2&n){var e=t.oxw(2);t.Q6J("symbols",e.symbols)("nodes",e.nodes)("links",e.links)("drawings",e.drawings)("width",e.project.scene_width)("height",e.project.scene_height)("show-interface-labels",e.isInterfaceLabelVisible)("selection-tool",e.tools.selection)("moving-tool",e.tools.moving)("draw-link-tool",e.tools.draw_link)("readonly",e.inReadOnlyMode)}}function $Ge(n,r){1&n&&t._UZ(0,"mat-icon",39)}function eze(n,r){1&n&&t._UZ(0,"mat-icon",40)}var AF=function(r){return{lightTheme:r}},tze=function(r){return{selected:r}};function nze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",41)(1,"app-template",42),t.NdJ("onNodeCreation",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.onNodeCreation(a))}),t.qZA(),t.TgZ(2,"button",43),t.NdJ("click",function(){t.CHM(e);var a=t.oxw(2);return t.KtG(a.toggleDrawLineMode())}),t.TgZ(3,"mat-icon"),t._uU(4,"timeline"),t.qZA()()()}if(2&n){var i=t.oxw(2);t.Q6J("ngClass",t.VKq(5,AF,i.isLightThemeEnabled)),t.xp6(1),t.Q6J("controller",i.controller)("project",i.project),t.xp6(1),t.Q6J("ngClass",t.VKq(7,tze,i.tools.draw_link))("color",i.tools.draw_link?"primary":"basic")}}function rze(n,r){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-snapshot-menu-item",12),t.qZA()),2&n){var e=t.oxw(2);t.xp6(1),t.Q6J("controller",e.controller)("project",e.project)}}function ize(n,r){if(1&n&&t._UZ(0,"app-draw-link-tool",44),2&n){var e=t.oxw(2);t.Q6J("links",e.links)}}function oze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-console-wrapper",45),t.NdJ("closeConsole",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.toggleShowConsole(a))}),t.qZA()}if(2&n){var i=t.oxw(2);t.Q6J("controller",i.controller)("project",i.project)}}var aze=function(r,e){return{unmarkedLight:r,marked:e}},sze=function(){return["/controllers"]},lze=function(r){return["/controller",r,"projects"]},uze=function(r){return["/controller",r,"image-manager"]},cze=function(r){return{visible:r}};function dze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2),t.YNc(1,QGe,1,10,"app-d3-map",3),t.YNc(2,XGe,1,11,"app-experimental-map",4),t.TgZ(3,"div",5)(4,"button",6),t.YNc(5,$Ge,1,0,"mat-icon",7),t.YNc(6,eze,1,0,"mat-icon",8),t.qZA(),t.TgZ(7,"div",9),t.YNc(8,nze,5,9,"div",10),t.TgZ(9,"div",11),t._UZ(10,"app-nodes-menu",12)(11,"app-context-menu",13),t.qZA()(),t.TgZ(12,"div")(13,"button",14),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleShowTopologySummary(!u.isTopologySummaryVisible))}),t.TgZ(14,"mat-icon"),t._uU(15,"toc"),t.qZA()()(),t.TgZ(16,"mat-menu",15,16)(18,"button",17)(19,"mat-icon"),t._uU(20,"developer_board"),t.qZA(),t.TgZ(21,"span"),t._uU(22,"Controllers"),t.qZA()(),t.TgZ(23,"button",17)(24,"mat-icon"),t._uU(25,"work"),t.qZA(),t.TgZ(26,"span"),t._uU(27,"Projects"),t.qZA()(),t.TgZ(28,"button",17)(29,"mat-icon"),t._uU(30,"settings_applications"),t.qZA(),t.TgZ(31,"span"),t._uU(32,"Template preferences"),t.qZA()(),t.TgZ(33,"button",17)(34,"mat-icon"),t._uU(35,"collections"),t.qZA(),t.TgZ(36,"span"),t._uU(37,"Image manager"),t.qZA()(),t.TgZ(38,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewTemplate())}),t.TgZ(39,"mat-icon"),t._uU(40,"control_point"),t.qZA(),t.TgZ(41,"span"),t._uU(42,"New template"),t.qZA()(),t._UZ(43,"app-import-appliance",12),t.TgZ(44,"button",19)(45,"mat-icon"),t._uU(46,"settings"),t.qZA(),t.TgZ(47,"span"),t._uU(48,"Project settings"),t.qZA()(),t.TgZ(49,"button",19)(50,"mat-icon"),t._uU(51,"view_module"),t.qZA(),t.TgZ(52,"span"),t._uU(53,"Map settings"),t.qZA()()(),t.TgZ(54,"mat-menu",15,20)(56,"div")(57,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.addNewProject())}),t.TgZ(58,"mat-icon"),t._uU(59,"add"),t.qZA(),t.TgZ(60,"span"),t._uU(61,"Add new blank project"),t.qZA()(),t.TgZ(62,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.saveProject())}),t.TgZ(63,"mat-icon"),t._uU(64,"save"),t.qZA(),t.TgZ(65,"span"),t._uU(66,"Save project as"),t.qZA()(),t.TgZ(67,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.editProject())}),t.TgZ(68,"mat-icon"),t._uU(69,"edit"),t.qZA(),t.TgZ(70,"span"),t._uU(71,"Edit project"),t.qZA()(),t.TgZ(72,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.exportProject())}),t.TgZ(73,"mat-icon"),t._uU(74,"call_made"),t.qZA(),t.TgZ(75,"span"),t._uU(76,"Export project"),t.qZA()(),t.TgZ(77,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.importProject())}),t.TgZ(78,"mat-icon"),t._uU(79,"call_received"),t.qZA(),t.TgZ(80,"span"),t._uU(81,"Import project"),t.qZA()(),t.TgZ(82,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.closeProject())}),t.TgZ(83,"mat-icon"),t._uU(84,"close"),t.qZA(),t.TgZ(85,"span"),t._uU(86,"Close project"),t.qZA()(),t.TgZ(87,"button",18),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.deleteProject())}),t.TgZ(88,"mat-icon"),t._uU(89,"delete"),t.qZA(),t.TgZ(90,"span"),t._uU(91,"Delete project"),t.qZA()()()(),t.TgZ(92,"mat-menu",15,21)(94,"div",22)(95,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowInterfaceLabels(u.checked))}),t._uU(96," Show interface labels "),t.qZA(),t._UZ(97,"br"),t.TgZ(98,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowConsole(u.checked))}),t._uU(99," Show console "),t.qZA(),t._UZ(100,"br"),t.TgZ(101,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleShowTopologySummary(u.checked))}),t._uU(102," Show topology/controllers summary "),t.qZA(),t._UZ(103,"br"),t.TgZ(104,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleNotifications(u.checked))}),t._uU(105," Show notifications "),t.qZA(),t._UZ(106,"br"),t.TgZ(107,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleLayers(u.checked))}),t._uU(108," Show layers "),t.qZA(),t._UZ(109,"br"),t.TgZ(110,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleGrid(u.checked))}),t._uU(111," Show grid "),t.qZA(),t._UZ(112,"br"),t.TgZ(113,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSnapToGrid(u.checked))}),t._uU(114," Snap to grid "),t.qZA(),t._UZ(115,"br"),t.TgZ(116,"mat-checkbox",23),t.NdJ("change",function(u){t.CHM(e);var d=t.oxw();return t.KtG(d.toggleSymbolScaling(u.checked))}),t._uU(117," Scale symbols "),t.qZA(),t._UZ(118,"br"),t.qZA()()(),t.TgZ(119,"div",24)(120,"div",25)(121,"button",26),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(122,"mat-icon"),t._uU(123,"near_me"),t.qZA()(),t.TgZ(124,"button",27),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.toggleMovingMode())}),t.TgZ(125,"mat-icon"),t._uU(126,"zoom_out_map"),t.qZA()(),t.TgZ(127,"button",28),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomIn())}),t.TgZ(128,"mat-icon"),t._uU(129,"zoom_in"),t.qZA()(),t.TgZ(130,"button",29),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.resetZoom())}),t.TgZ(131,"mat-icon"),t._uU(132,"adjust"),t.qZA()(),t.TgZ(133,"button",30),t.NdJ("click",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.zoomOut())}),t.TgZ(134,"mat-icon"),t._uU(135,"zoom_out"),t.qZA()()(),t.TgZ(136,"div",25),t._UZ(137,"app-project-map-menu",12),t.qZA(),t.YNc(138,rze,2,2,"div",31),t.qZA(),t._UZ(139,"app-progress"),t.YNc(140,ize,1,1,"app-draw-link-tool",32),t._UZ(141,"app-drawing-dragged",12)(142,"app-drawing-resized",33)(143,"app-interface-label-dragged",33)(144,"app-link-created",12)(145,"app-node-dragged",12)(146,"app-node-label-dragged",33),t.TgZ(147,"app-text-added",34),t.NdJ("drawingSaved",function(){t.CHM(e);var u=t.oxw();return t.KtG(u.onDrawingSaved())}),t.qZA(),t._UZ(148,"app-text-edited",33),t.TgZ(149,"div",35),t.YNc(150,oze,1,2,"app-console-wrapper",36),t.qZA()()}if(2&n){var i=t.MAs(17),o=t.MAs(55),a=t.MAs(93),s=t.oxw();t.Q6J("ngClass",t.VKq(53,AF,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("ngIf",!s.settings.angular_map),t.xp6(1),t.Q6J("ngIf",s.settings.angular_map),t.xp6(1),t.Q6J("ngClass",t.VKq(55,AF,s.isLightThemeEnabled)),t.xp6(1),t.Q6J("matMenuTriggerFor",i),t.xp6(1),t.Q6J("ngIf",!s.isLightThemeEnabled),t.xp6(1),t.Q6J("ngIf",s.isLightThemeEnabled),t.xp6(2),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("project",s.project)("controller",s.controller),t.xp6(2),t.Q6J("ngClass",t.WLB(57,aze,!s.isTopologySummaryVisible&&s.isLightThemeEnabled,s.isTopologySummaryVisible)),t.xp6(3),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(60,sze)),t.xp6(5),t.Q6J("routerLink",t.VKq(61,lze,s.controller.id)),t.xp6(5),t.MGl("routerLink","/controller/",s.controller.id,"/preferences"),t.xp6(5),t.Q6J("routerLink",t.VKq(63,uze,s.controller.id)),t.xp6(10),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("matMenuTriggerFor",o),t.xp6(5),t.Q6J("matMenuTriggerFor",a),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(38),t.Q6J("overlapTrigger",!1),t.xp6(3),t.Q6J("ngModel",s.isInterfaceLabelVisible),t.xp6(3),t.Q6J("ngModel",s.isConsoleVisible),t.xp6(3),t.Q6J("ngModel",s.isTopologySummaryVisible),t.xp6(3),t.Q6J("ngModel",s.notificationsVisibility),t.xp6(3),t.Q6J("ngModel",s.layersVisibility),t.xp6(3),t.Q6J("ngModel",s.gridVisibility),t.xp6(3),t.Q6J("ngModel",s.project.snap_to_grid),t.xp6(3),t.Q6J("ngModel",s.symbolScaling),t.xp6(3),t.Q6J("ngClass",t.VKq(65,AF,s.isLightThemeEnabled)),t.xp6(2),t.Q6J("color",s.tools.moving?"basic":"primary"),t.xp6(3),t.Q6J("color",s.tools.moving?"primary":"basic"),t.xp6(13),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("ngIf",!s.readonly),t.xp6(2),t.Q6J("ngIf",s.tools.draw_link),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("controller",s.controller)("project",s.project),t.xp6(1),t.Q6J("controller",s.controller),t.xp6(1),t.Q6J("ngClass",t.VKq(67,cze,!s.isConsoleVisible)),t.xp6(1),t.Q6J("ngIf",s.project)}}function fze(n,r){}var pI=function(){function n(r,e,i,o,a,s,l,u,d,h,g,C,Z,z,q,re,ae,Se,Ce,Ee,Ve,ut,Ae,ot,ht,bt,Xe,Pe,ft,Nt,Gt,It,Tn,jn,zn,or,Mr,_r,zr,Ur,Kr,Fo,er,wr,Sn,gn,tr){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.projectService=i,this.nodeService=o,this.drawingService=a,this.progressService=s,this.projectWebServiceHandler=l,this.mapChangeDetectorRef=u,this.nodeWidget=d,this.drawingsWidget=h,this.linkWidget=g,this.labelWidget=C,this.interfaceLabelWidget=Z,this.mapNodeToNode=z,this.mapDrawingToDrawing=q,this.mapLabelToLabel=re,this.mapLinkToLink=ae,this.mapLinkNodeToLinkNode=Se,this.nodesDataSource=Ce,this.linksDataSource=Ee,this.drawingsDataSource=Ve,this.settingsService=ut,this.toolsService=Ae,this.selectionManager=ot,this.selectionTool=ht,this.recentlyOpenedProjectService=bt,this.movingEventSource=Xe,this.mapScaleService=Pe,this.nodeCreatedLabelStylesFixer=ft,this.toasterService=Nt,this.dialog=Gt,this.router=It,this.mapNodesDataSource=Tn,this.mapLinksDataSource=jn,this.mapDrawingsDataSource=zn,this.mapSymbolsDataSource=or,this.mapSettingsService=Mr,this.ethernetLinkWidget=_r,this.serialLinkWidget=zr,this.bottomSheet=Ur,this.notificationService=Kr,this.themeService=Fo,this.title=er,this.nodeConsoleService=wr,this.symbolService=Sn,this.cd=gn,this.viewContainerRef=tr,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 Ea.w}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.getSettings(),this.progressService.activate(),this.controllerService.isServiceInitialized?this.getData():this.projectMapSubscription.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()})),this.addSubscriptions(),this.addKeyboardListeners(),this.themeService.themeChanged.subscribe(function(i){"light"===e.themeService.getActualTheme()?e.isLightThemeEnabled=!0:e.isLightThemeEnabled=!1})}},{key:"getSettings",value:function(){var e=this;"light"===this.themeService.getActualTheme()?this.isLightThemeEnabled=!0:this.isLightThemeEnabled=!1,this.cd.detectChanges(),this.settings=this.settingsService.getAll(),this.symbolScaling=this.mapSettingsService.getSymbolScaling(),this.isConsoleVisible=this.mapSettingsService.isLogConsoleVisible,this.mapSettingsService.logConsoleSubject.subscribe(function(i){return e.isConsoleVisible=i}),this.notificationsVisibility="true"===localStorage.getItem("notificationsVisibility"),this.layersVisibility="true"===localStorage.getItem("layersVisibility"),this.gridVisibility="true"===localStorage.getItem("gridVisibility")}},{key:"lazyLoadTopologySummary",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isTopologySummaryVisible){s.next=10;break}return s.next=3,m.e(465).then(m.bind(m,2465));case 3:i=s.sent,o=i.TopologySummaryComponent,this.instance=this.viewContainerRef.createComponent(o),this.instance.instance.controller=this.controller,this.instance.instance.project=this.project,s.next=11;break;case 10:this.instance&&this.instance.instance&&(this.instance.instance.ngOnDestroy(),this.instance.destroy());case 11:case"end":return s.stop()}},e,this)}))}},{key:"addSubscriptions",value:function(){var e=this;this.projectMapSubscription.add(this.mapSettingsService.mapRenderedEmitter.subscribe(function(i){e.scrollEnabled&&e.centerCanvas()})),this.projectMapSubscription.add(this.drawingsDataSource.changes.subscribe(function(i){e.drawings=i,e.mapChangeDetectorRef.detectChanges()})),this.projectMapSubscription.add(this.nodesDataSource.changes.subscribe(function(i){!e.controller||(i.forEach(function(o){return yi(e,void 0,void 0,Rn().mark(function a(){var s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(o.symbol_url="".concat(this.controller.protocol,"//").concat(this.controller.host,":").concat(this.controller.port,"/").concat(Wa.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,Zs.D)(e.controllerService.get(a)).pipe((0,ys.zg)(function(s){return s||e.router.navigate(["/controllers"]),e.controller=s,e.projectService.get(s,o.get("project_id")).pipe((0,$n.U)(function(l){return l}))}),(0,ys.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 $i.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;Lg.bind("ctrl++",function(i){i.preventDefault(),e.zoomIn()}),Lg.bind("ctrl+-",function(i){i.preventDefault(),e.zoomOut()}),Lg.bind("ctrl+0",function(i){i.preventDefault(),e.resetZoom()}),Lg.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))}),Lg.bind("ctrl+h",function(i){i.preventDefault(),e.toolbarVisibility=!e.toolbarVisibility}),Lg.bind("ctrl+shift+a",function(i){i.preventDefault(),e.selectionManager.setSelected([])}),Lg.bind("ctrl+shift+s",function(i){i.preventDefault(),e.router.navigate(["/controller",e.controller.id,"preferences"])}),Lg.bind("del",function(i){i.preventDefault(),e.deleteItems()})}},{key:"deleteItems",value:function(){var e=this;this.bottomSheet.open(pd);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 lb}).forEach(function(l){var u=e.mapNodeToNode.convert(l);e.nodeService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Node has been deleted")})}),s.filter(function(l){return l instanceof Lm}).forEach(function(l){var u=e.mapDrawingToDrawing.convert(l);e.drawingService.delete(e.controller,u).subscribe(function(d){e.toasterService.success("Drawing has been deleted")})})}})}},{key:"onProjectLoad",value:function(e){var i=this;this.readonly=this.projectService.isReadOnly(e),this.recentlyOpenedProjectService.setProjectId(this.project.project_id);var o=this.projectService.nodes(this.controller,e.project_id).pipe((0,ys.zg)(function(a){return i.nodesDataSource.set(a),i.projectService.links(i.controller,e.project_id)}),(0,ys.zg)(function(a){return i.linksDataSource.set(a),i.projectService.drawings(i.controller,e.project_id)})).subscribe(function(a){i.drawingsDataSource.set(a),i.setUpMapCallbacks(),i.setUpProjectWS(e),i.progressService.deactivate()});this.projectMapSubscription.add(o)}},{key:"setUpProjectWS",value:function(e){var i=this;this.projectws=new WebSocket(this.notificationService.projectNotificationsPath(this.controller,e.project_id)),this.projectws.onmessage=function(o){i.projectWebServiceHandler.handleMessage(JSON.parse(o.data))},this.projectws.onerror=function(o){i.toasterService.error("Connection to host lost. Error: ".concat(o.data))}}},{key:"setUpWS",value:function(){this.ws=new WebSocket(this.notificationService.notificationsPath(this.controller))}},{key:"setUpMapCallbacks",value:function(){var e=this;this.readonly||this.toolsService.selectionToolActivation(!0);var i=this.linkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),o=this.ethernetLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),a=this.serialLinkWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkToLink.convert(g.link);e.contextMenu.openMenuForListOfElements([],[],[],[C],g.event.pageY,g.event.pageX)}),s=this.nodeWidget.onContextMenu.subscribe(function(g){var C=e.mapNodeToNode.convert(g.node);e.contextMenu.openMenuForNode(C,g.event.pageY,g.event.pageX)}),l=this.drawingsWidget.onContextMenu.subscribe(function(g){var C=e.mapDrawingToDrawing.convert(g.drawing);e.contextMenu.openMenuForDrawing(C,g.event.pageY,g.event.pageX)}),u=this.labelWidget.onContextMenu.subscribe(function(g){var C=e.mapLabelToLabel.convert(g.label),Z=e.nodes.find(function(z){return z.node_id===g.label.nodeId});e.contextMenu.openMenuForLabel(C,Z,g.event.screenY-60,g.event.screenX)}),d=this.interfaceLabelWidget.onContextMenu.subscribe(function(g){var C=e.mapLinkNodeToLinkNode.convert(g.interfaceLabel),Z=e.links.find(function(z){return z.link_id===g.interfaceLabel.linkId});e.contextMenu.openMenuForInterfaceLabel(C,Z,g.event.pageY,g.event.pageX)}),h=this.selectionTool.contextMenuOpened.subscribe(function(g){var C=e.selectionManager.getSelected();if(!(C.length<2)&&g instanceof MouseEvent){var Z=[],z=[],q=[],re=[];C.forEach(function(ae){ae instanceof Lm?Z.push(e.mapDrawingToDrawing.convert(ae)):ae instanceof lb?z.push(e.mapNodeToNode.convert(ae)):ae instanceof Rk?q.push(e.mapLabelToLabel.convert(ae)):ae instanceof hse&&re.push(e.mapLinkToLink.convert(ae))}),e.contextMenu.openMenuForListOfElements(Z,z,q,re,g.pageY,g.pageX)}});this.projectMapSubscription.add(i),this.projectMapSubscription.add(o),this.projectMapSubscription.add(a),this.projectMapSubscription.add(s),this.projectMapSubscription.add(l),this.projectMapSubscription.add(h),this.projectMapSubscription.add(u),this.projectMapSubscription.add(d),this.mapChangeDetectorRef.detectChanges()}},{key:"onNodeCreation",value:function(e){var i=this;!e||(e.x=e.x/this.mapScaleService.getScale(),e.y=e.y/this.mapScaleService.getScale(),this.progressService.activate(),this.nodeService.createFromTemplate(this.controller,this.project,e.template,e.x,e.y,e.controller).subscribe(function(o){i.projectService.nodes(i.controller,i.project.project_id).subscribe(function(a){a.filter(function(s){return null===s.label.style}).forEach(function(s){var l=i.nodeCreatedLabelStylesFixer.fix(s);i.nodeService.updateLabel(i.controller,s,l.label).subscribe()}),i.nodesDataSource.set(a),e.numberOfNodes--,e.numberOfNodes>0?(e.x=e.x+50<i.project.scene_width/2?e.x+50:e.x,e.y=e.y+50<i.project.scene_height/2?e.y+50:e.y,i.onNodeCreation(e)):i.progressService.deactivate()})},function(o){i.toasterService.error(o.error.message),i.progressService.deactivate()}))}},{key:"fitInView",value:function(){if(this.drawings.forEach(function(ot){var ht=ot.svg.split('"'),bt=parseInt(ht[1],10),Xe=parseInt(ht[3],10);ot.element={width:Xe,height:bt}}),0!==this.nodes.length||0!==this.drawings.length){var e,i,o,a,s=[];this.nodes.forEach(function(ot){var ht=new pze;ht.node=ot,ht.top=ot.y,ht.left=ot.x,ht.bottom=ot.y+ot.height,ht.right=ot.x+ot.width,ot.y+ot.label.y<ht.top&&(ht.top=ot.y+ot.label.y),ot.x+ot.label.x<ht.left&&(ht.left=ot.x+ot.label.x),ot.y+ot.label.y>ht.bottom&&(ht.bottom=ot.y+ot.label.y),ot.x+ot.label.x>ht.right&&(ht.right=ot.x+ot.label.x),s.push(ht)});var l=s.sort(function(ot,ht){return ot.left-ht.left})[0],u=s.sort(function(ot,ht){return ot.right-ht.right})[s.length-1],d=s.sort(function(ot,ht){return ot.top-ht.top})[0],h=s.sort(function(ot,ht){return ot.bottom-ht.bottom})[s.length-1],g=[];this.drawings.forEach(function(ot){var ht=new hze;ht.drawing=ot,ht.top=ot.y,ht.left=ot.x,ht.bottom=ot.y+ot.element.height,ht.right=ot.x+ot.element.width,g.push(ht)});var C=g.sort(function(ot,ht){return ot.left-ht.left})[0],Z=g.sort(function(ot,ht){return ot.right-ht.right})[g.length-1],z=g.sort(function(ot,ht){return ot.top-ht.top})[0],q=g.sort(function(ot,ht){return ot.bottom-ht.bottom})[g.length-1];C&&l?(e=l.left<C.left?l.left:C.left,i=u.right>Z.right?u.right:Z.right,o=d.top<z.top?d.top:z.top,a=h.bottom>q.bottom?h.bottom:q.bottom):l&&!C?(e=l.left,i=u.right,o=d.top,a=h.bottom):C&&!l?(e=C.left,i=Z.right,o=z.top,a=q.bottom):(e=0,i=0,o=0,a=0);e-=20,i+=20,o-=20,a+=20;var ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Se=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Ce=i-e,Ee=a-o,Ve=Ce/ae,ut=Ee/Se,Ae=1/Math.max(Ve,ut);Ae!==this.mapScaleService.currentScale?(this.mapScaleService.setScale(Ae),this.project.scene_width=this.project.scene_width*Ae,this.project.scene_height=this.project.scene_height*Ae,ut<Ce?(this.scrollX=e*Ae-(ae-Ce*Ae)/2+this.project.scene_width/2,this.scrollY=o*Ae+this.project.scene_height/2):(this.scrollX=e*Ae+this.project.scene_width/2,this.scrollY=o*Ae-(Se-Ee*Ae)/2+this.project.scene_height/2)):(this.scrollX=e*Ae+this.project.scene_width/2,this.scrollY=o*Ae+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(qk,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"saveProject",value:function(){var i=this.dialog.open(wA,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"editProject",value:function(){var i=this.dialog.open(CA,{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(Jk,{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(Qk);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(Pk,{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(pd);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(pd);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(lT,{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(ZO,{width:"600px",height:"650px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.nodeConsoleService.openConsoles=0,this.title.setTitle("GNS3 Web UI"),this.drawingsDataSource.clear(),this.nodesDataSource.clear(),this.linksDataSource.clear(),this.projectws&&this.projectws.OPEN&&this.projectws.close(),this.ws&&this.ws.OPEN&&this.ws.close(),this.projectMapSubscription.unsubscribe()}}]),n}();pI.\u0275fac=function(r){return new(r||pI)(t.Y36(pr),t.Y36(rr),t.Y36(Gs.Y),t.Y36(Br),t.Y36(Ka),t.Y36(Ml),t.Y36(lv),t.Y36(Hp),t.Y36(Kg),t.Y36(Vp),t.Y36(Xg),t.Y36(Gp),t.Y36(hf),t.Y36(Wm),t.Y36(Rb),t.Y36(qp),t.Y36(Lb),t.Y36(cv),t.Y36(Ya.G),t.Y36(Fm.F),t.Y36(va),t.Y36(jm.g),t.Y36(Yp),t.Y36(Pl),t.Y36(jp),t.Y36(EF.p),t.Y36(Um),t.Y36(_f),t.Y36(Zb),t.Y36(Ln),t.Y36(jr),t.Y36(ur),t.Y36(Am),t.Y36(Om),t.Y36(Im),t.Y36(Pm),t.Y36(ul),t.Y36(Jg),t.Y36(Qg),t.Y36(gf),t.Y36(Nb),t.Y36(Cc.f),t.Y36(Hr),t.Y36(pu),t.Y36(Op),t.Y36(t.sBO),t.Y36(t.s_b))},pI.\u0275cmp=t.Xpm({type:pI,selectors:[["app-project-map"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(rT,5),t.Gf(Yk,5),t.Gf(uT,5),t.Gf(JGe,5,t.s_b)),2&r)&&(t.iGM(i=t.CRH())&&(e.contextMenu=i.first),t.iGM(i=t.CRH())&&(e.mapChild=i.first),t.iGM(i=t.CRH())&&(e.projectMapMenuComponent=i.first),t.iGM(i=t.CRH())&&(e.topologySummaryContainer=i.first))},decls:3,vars:1,consts:[["class","project-map",3,"ngClass",4,"ngIf"],["topologySummaryContainer",""],[1,"project-map",3,"ngClass"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized",4,"ngIf"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly",4,"ngIf"],["id","project-titlebar",3,"ngClass"],["matTooltip","Open menu","matTooltipClass","custom-tooltip","mat-icon-button","",1,"gns3-button","menu-button",3,"matMenuTriggerFor"],["svgIcon","gns3",4,"ngIf"],["svgIcon","gns3black",4,"ngIf"],[1,"project-titlebar-controls"],["class","menu-button-group primary-controls",3,"ngClass",4,"ngIf"],[1,"menu-button-group"],[3,"controller","project"],[3,"project","controller"],["matTooltip","Toggle topology/controllers summary","matTooltipClass","custom-tooltip","mat-icon-button","",3,"ngClass","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"matMenuTriggerFor"],["projectMenu","matMenu"],["viewMenu","matMenu"],[1,"options-item"],[3,"ngModel","change"],["id","project-toolbar",3,"ngClass"],[1,"section"],["matTooltip","Selection mode","matTooltipClass","custom-tooltip","mat-icon-button","",1,"selection-button","menu-button",3,"color","click"],["matTooltip","Pan workspace","matTooltipClass","custom-tooltip","mat-icon-button","",1,"pan-button","menu-button",3,"color","click"],["matTooltip","Zoom in","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["matTooltip","Reset zoom","matTooltipClass","custom-tooltip","mat-icon-button","",1,"reset-zoom-button",3,"click"],["matTooltip","Zoom out","matTooltipClass","custom-tooltip","mat-icon-button","",1,"zoom-button",3,"click"],["class","section",4,"ngIf"],[3,"links",4,"ngIf"],[3,"controller"],[3,"controller","project","drawingSaved"],[3,"ngClass"],[3,"controller","project","closeConsole",4,"ngIf"],[3,"controller","project","symbols","nodes","links","drawings","width","height","show-interface-labels","readonly","nodeDragged","drawingDragged","onLinkCreated","onDrawingResized"],[3,"symbols","nodes","links","drawings","width","height","show-interface-labels","selection-tool","moving-tool","draw-link-tool","readonly"],["svgIcon","gns3"],["svgIcon","gns3black"],[1,"menu-button-group","primary-controls",3,"ngClass"],[3,"controller","project","onNodeCreation"],["matTooltip","Add a link","matTooltipClass","custom-tooltip","mat-icon-button","",1,"menu-button",3,"ngClass","color","click"],[3,"links"],[3,"controller","project","closeConsole"]],template:function(r,e){1&r&&(t.YNc(0,dze,151,69,"div",0),t.YNc(1,fze,0,0,"ng-template",null,1,t.W1O)),2&r&&t.Q6J("ngIf",e.project)},dependencies:[ge.mk,ge.O5,Wo,J.JJ,J.On,Yk,WO,Va,Dr,_a,cn,Dn,$r,ui,YO,rT,JO,H0,QO,XO,$O,eI,tI,nI,rI,iI,oI,sI,uT,lI,fI],styles:[".wrapper{height:600px}app-root,app-project-map,.project-map,app-map{width:auto}g.node:hover{background-color:#0097a7}.project-map{background-color:#e8ecef}#project-titlebar{position:fixed;top:0;left:0;right:0;height:60px;padding:0 20px;background-color:#20313b;display:flex;justify-content:space-between;align-items:center;box-shadow:3px 3px 10px #0003;z-index:2}#project-titlebar .gns3-button{position:relative;top:-2px}#project-titlebar .gns3-button mat-icon{width:30px!important;height:30px!important}#project-titlebar .primary-controls{border-right:1px solid rgba(255,255,255,.3);padding-right:15px;margin-right:15px}#project-titlebar .primary-controls.lightTheme{border-right:1px solid black}#project-titlebar .menu-button-group{display:flex;align-items:center;height:24px}#project-titlebar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;margin:0 8px;border-radius:18px;background:none;font-size:20px}#project-titlebar .add-menu-button mat-icon{font-size:28px!important}#project-titlebar .selected{background:rgba(0,151,167,.1)}#project-titlebar .selected mat-icon{color:#0097a7!important}#project-titlebar .project-titlebar-controls{display:flex;align-items:center}#project-titlebar.lightTheme{background-color:#fff!important}#project-titlebar.lightTheme .selected mat-icon{color:#0097a7!important}#project-toolbar{position:fixed;top:60px;left:0;width:50px;margin:20px;background-color:#20313b;border-radius:6px;box-shadow:1px 1px 10px #0003;z-index:2}#project-toolbar mat-icon{font-size:20px}#project-toolbar .menu-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0}#project-toolbar .zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .zoom-button mat-icon{font-size:24px!important}#project-toolbar .reset-zoom-button{display:flex;justify-content:center;align-items:center;height:36px;width:36px;border-radius:18px;background:none;margin:2px 0;color:#fff}#project-toolbar .reset-zoom-button mat-icon{font-size:18px!important}#project-toolbar .selection-button{margin-bottom:0!important}#project-toolbar .snapshot-button mat-icon{font-size:16px}#project-toolbar .section{display:flex;flex-direction:column;justify-content:center;align-items:center;border-top:1px solid rgba(255,255,255,.3);padding:5px 0}#project-toolbar .section:first-child{border:none}#project-toolbar.lightTheme{background-color:#f4f8fcf2!important}#project-toolbar.lightTheme .zoom-button,#project-toolbar.lightTheme .reset-zoom-button{opacity:.7;color:#000}#project-toolbar.lightTheme .section{border-top:1px solid rgba(0,0,0,.1)}#project-toolbar.lightTheme .section:first-child{border:none}img{filter:invert(1)}.lightTheme{color:#000!important}.darkTheme{color:#fff!important}#show-menu-wrapper{position:fixed;background:transparent;top:0;left:92px;background:#263238;height:72px;padding-top:16px}#show-menu-wrapper .arrow-button{outline:0!important}.shadowed{box-shadow:0 4px 8px -4px #0003,0 6px 20px -20px #00000030}.non-visible{display:none}#menu-wrapper{position:fixed;background:transparent;top:0;left:92px;right:0;background:#263238;height:72px;padding-top:16px;padding-bottom:16px;transition:35s;width:0;overflow:hidden;transition:.15s;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;display:flex}#menu-wrapper .menu-button{outline:0!important;transition:.5s;margin-bottom:16px;width:40px;margin-right:12px!important;margin-left:12px!important;background:transparent;padding:0;border:none;background-color:transparent}#menu-wrapper .arrow-button{outline:0!important;transition:.5s;margin-bottom:16px}.extended{width:830px!important;height:100%;overflow:hidden}mat-divider.divider{height:40px;margin-left:1px;margin-right:7px;width:10px;color:gray}@-moz-document url-prefix(){.mat-drawer-content{display:inline!important}}.shadow{box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.mat-drawer-backdrop.mat-drawer-shown{background-color:transparent}.project-toolbar .mat-toolbar-multiple-rows{width:auto!important}.loading-spinner{position:absolute;top:50%;width:100px;margin-left:-50px;margin-top:-50px;left:50%}line.selected{stroke:#0097a7!important}svg.map image:hover,svg.map image.chosen,g.selected{-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%);filter:gray;filter:url(#grayscale)}path.selected{stroke:#8b0000}.selected>.interface_label_border{stroke:#000;fill:none}.selection-line-tool .selection{fill:#7ccbe1;stroke:#66aec2;fill-opacity:.3;stroke-opacity:.7;stroke-width:1;stroke-dasharray:5,5}g.node text,.noselect{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.project-toolbar button{outline:0;border:none;-moz-outline-style:none}.options-item{padding-left:15px;padding-right:15px}.context-menu-items .mat-menu-item{line-height:24px!important;height:24px!important;font-size:13px!important;padding:0 6px;outline:none!important}.context-menu-items .mat-menu-item .mat-icon{margin-right:3px}.context-menu-items .mat-menu-item:focus{background:none}.light-theme .context-menu-items .mat-menu-item:hover{background-color:#999898cb!important}.visible{display:none}mat-menu-panel{min-height:0px}.unmarked{color:#fff!important}.unmarkedLight{color:#000!important}.marked{color:#0097a7!important}\n"],encapsulation:2});var pze=(0,B.Z)(function n(){(0,H.Z)(this,n)}),hze=(0,B.Z)(function n(){(0,H.Z)(this,n)}),hI=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.projectService=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.name=this.project.name}},{key:"onCloseClick",value:function(){this.dialogRef.close()}},{key:"onSaveClick",value:function(){var e=this;this.projectService.duplicate(this.controller,this.project.project_id,this.name).subscribe(function(){e.dialogRef.close()})}}]),n}();function mze(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function _ze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all projects?"),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected projects"),t.qZA(),t.YNc(6,mze,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function gze(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function vze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}hI.\u0275fac=function(r){return new(r||hI)(t.Y36(cr),t.Y36(Gs.Y))},hI.\u0275cmp=t.Xpm({type:hI,selectors:[["app-choose-name-dialog"]],inputs:{controller:"controller",project:"project"},decls:10,vars:1,consts:[["mat-dialog-title",""],[1,"modal-form-container"],[1,"form-field"],["matInput","","placeholder","Project name","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Save project as"),t.qZA(),t.TgZ(2,"div",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("ngModelChange",function(o){return e.name=o}),t.qZA()()(),t.TgZ(5,"div",4)(6,"button",5),t.NdJ("click",function(){return e.onCloseClick()}),t._uU(7,"Cancel"),t.qZA(),t.TgZ(8,"button",6),t.NdJ("click",function(){return e.onSaveClick()}),t._uU(9,"Save project"),t.qZA()()),2&r&&(t.xp6(4),t.Q6J("ngModel",e.name))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,cn,Kn,Cr,dr],styles:[".form-field[_ngcontent-%COMP%]{width:100%}"]});var yze=function(r){return{"deleted-error-text":r}};function bze(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,vze,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,yze,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function Cze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Project can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,bze,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function wze(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Projects deleted successfully.")}}function kze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,Cze,4,1,"div",0),t.YNc(3,wze,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var mI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.projectService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.projectService.delete(e.deleteData.controller,o.project_id).pipe((0,Xc.K)(function(a){return(0,qn.of)(a)})))}),$i.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();function Tze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",24),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Mze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",25),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function Sze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",26),t._uU(1," Name "),t.qZA())}mI.\u0275fac=function(r){return new(r||mI)(t.Y36(So),t.Y36(cr),t.Y36(Gs.Y),t.Y36(Ln))},mI.\u0275cmp=t.Xpm({type:mI,selectors:[["app-confirmation-delete-all-projects"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,_ze,12,1,"div",0),t.YNc(1,gze,5,0,"div",0),t.YNc(2,kze,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Eg,Cr,du,dr,lu]});var Eze=function(r,e){return["/controller",r,"project",e]};function xze(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",27),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,Eze,i.controller.id,e.project_id)),t.xp6(1),t.Oqu(e.name)}}function Dze(n,r){1&n&&(t.TgZ(0,"mat-header-cell",28),t._uU(1," Actions "),t.qZA())}function Aze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.open(o))}),t.TgZ(1,"mat-icon",36),t._uU(2,"play_arrow"),t.qZA()()}}function Oze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.close(o))}),t.TgZ(1,"mat-icon",38),t._uU(2,"pause"),t.qZA()()}}function Ize(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",39),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.duplicate(o))}),t.TgZ(1,"mat-icon",40),t._uU(2,"save"),t.qZA()()}}function Pze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",29),t.YNc(1,Aze,3,0,"button",30),t.YNc(2,Oze,3,0,"button",31),t.YNc(3,Ize,3,0,"button",32),t.TgZ(4,"button",33),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.exportSelectProject(s))}),t.TgZ(5,"mat-icon",34),t._uU(6,"arrow_downward"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(1),t.Q6J("ngIf","closed"==i.status),t.xp6(1),t.Q6J("ngIf","opened"==i.status),t.xp6(1),t.Q6J("ngIf","closed"==i.status)}}function Rze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",42),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function Lze(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell",28),t.YNc(1,Rze,3,0,"button",41),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function Zze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",44),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.delete(o))}),t.TgZ(1,"mat-icon",45),t._uU(2,"delete"),t.qZA()()}}function Nze(n,r){if(1&n&&(t.TgZ(0,"mat-cell",28),t.YNc(1,Zze,3,0,"button",43),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","closed"==e.status&&i.selection.isSelected(e))}}function Bze(n,r){1&n&&t._UZ(0,"mat-header-row")}function Fze(n,r){1&n&&t._UZ(0,"mat-row")}var Uze=function(){return{standalone:!0}},mT=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.route=r,this.projectService=e,this.settingsService=i,this.progressService=o,this.dialog=a,this.router=s,this.bottomSheet=l,this.toasterService=u,this.electronService=d,this.recentlyOpenedProjectService=h,this.projectDatabase=new Hze,this.displayedColumns=["select","name","actions","delete"],this.searchText="",this.isAllDelete=!1,this.selection=new Ci.Ov(!0,[])}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.recentlyOpenedProjectService.setcontrollerIdProjectList(this.controller.id.toString()),this.refresh(),this.sort.sort({id:"name",start:"asc"}),this.dataSource=new jze(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(pd);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(pd);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(hI,{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(qk,{width:"400px",autoFocus:!1,disableClose:!0}).componentInstance.controller=this.controller}},{key:"importProject",value:function(){var e=this,i="",o=this.dialog.open(Jk,{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(Qk);var l=e.bottomSheet._openedBottomSheetRef;l.instance.projectMessage="imported project";l.afterDismissed().subscribe(function(d){d&&e.projectService.open(e.controller,i).subscribe(function(){e.router.navigate(["/controller",e.controller.id,"project",i])})})}})}},{key:"deleteAllFiles",value:function(){var e=this;this.dialog.open(mI,{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(Pk,{width:"700px",maxHeight:"850px",autoFocus:!1,disableClose:!0,data:{controllerDetails:this.controller,projectDetails:this.project}}).afterClosed().subscribe(function(i){})}}]),n}();mT.\u0275fac=function(r){return new(r||mT)(t.Y36(pr),t.Y36(Gs.Y),t.Y36(jm.g),t.Y36(Ml),t.Y36(jr),t.Y36(ur),t.Y36(gf),t.Y36(Ln),t.Y36(al),t.Y36(EF.p))},mT.\u0275cmp=t.Xpm({type:mT,selectors:[["app-projects"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(zu,7),2&r)&&(t.iGM(i=t.CRH())&&(e.sort=i.first))},decls:31,vars:9,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],["mat-raised-button","","color","primary",1,"import-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search project by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","actions"],["class","action",4,"matHeaderCellDef"],["class","action","style","text-align: right",4,"matCellDef"],["matColumnDef","delete"],["class","action",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink"],[1,"action"],[1,"action",2,"text-align","right"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Export project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Export project"],["mat-icon-button","","matTooltip","Open project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Open project"],["mat-icon-button","","matTooltip","Close project","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Close project"],["mat-icon-button","","matTooltip","Save project as","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Save project as"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","matTooltip","Delete all projects","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Delete project","matTooltipClass","custom-tooltip","aria-label","Example icon button with a delete icon",3,"click"],["aria-label","Delete project"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Projects"),t.qZA(),t.TgZ(5,"button",4),t.NdJ("click",function(){return e.addBlankProject()}),t._uU(6," Add blank project "),t.qZA(),t.TgZ(7,"button",5),t.NdJ("click",function(){return e.importProject()}),t._uU(8," Import project "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",6)(11,"input",7),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9)(14,"mat-table",10,11),t.ALo(16,"projectsfilter"),t.ynx(17,12),t.YNc(18,Tze,2,2,"mat-header-cell",13),t.YNc(19,Mze,2,1,"mat-cell",14),t.BQk(),t.ynx(20,15),t.YNc(21,Sze,2,0,"mat-header-cell",16),t.YNc(22,xze,3,5,"mat-cell",14),t.BQk(),t.ynx(23,17),t.YNc(24,Dze,2,0,"mat-header-cell",18),t.YNc(25,Pze,7,3,"mat-cell",19),t.BQk(),t.ynx(26,20),t.YNc(27,Lze,2,1,"mat-header-cell",18),t.YNc(28,Nze,2,1,"mat-cell",21),t.BQk(),t.YNc(29,Bze,1,0,"mat-header-row",22),t.YNc(30,Fze,1,0,"mat-row",23),t.qZA()()()()),2&r&&(t.xp6(11),t.Q6J("ngModel",e.searchText)("ngModelOptions",t.DdM(8,Uze)),t.xp6(3),t.Q6J("dataSource",t.xi3(16,5,e.dataSource,e.searchText)),t.xp6(15),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},styles:[".import-button[_ngcontent-%COMP%], .add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.row[_ngcontent-%COMP%]{display:flex}table[_ngcontent-%COMP%]{width:100%}.action[_ngcontent-%COMP%]{justify-content:center}"]});var Hze=function(){function n(){(0,H.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addProjects",value:function(e){this.dataChange.next(e)}},{key:"remove",value:function(e){var i=this.data.indexOf(e);i>=0&&(this.data.splice(i,1),this.dataChange.next(this.data.slice()))}}]),n}(),jze=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this)).projectDatabase=i,a.sort=o,a}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this,a=[this.projectDatabase.dataChange,this.sort.sortChange];return ji.T.apply(void 0,a).pipe((0,$n.U)(function(){return o.sort.active&&""!==o.sort.direction?o.projectDatabase.data.sort(function(s,l){var u=s[o.sort.active],d=l[o.sort.active];return((isNaN(+u)?u:+u)<(isNaN(+d)?d:+d)?-1:1)*("asc"===o.sort.direction?1:-1)}):o.projectDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2);function Gze(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"You must enter a value"),t.qZA())}function zze(n,r){if(1&n&&(t.TgZ(0,"mat-option",12),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e.key),t.xp6(1),t.hij(" ",e.name," ")}}var _I=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialogRef=r,this.electronService=e,this.controllerService=i,this.toasterService=o,this.data=a,this.protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}],this.locations=[],this.controllerForm=new J.nJ({name:new J.p4("",[J.kI.required]),location:new J.p4(""),path:new J.p4(""),ubridge_path:new J.p4(""),host:new J.p4("",[J.kI.required]),port:new J.p4("",[J.kI.required,J.kI.min(1)]),protocol:new J.p4("http:")})}return(0,B.Z)(n,[{key:"getLocations",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i,o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.numberOfLocalControllers();case 2:return i=s.sent,o=[],this.electronService.isElectronApp&&0===i&&o.push({key:"local",name:"Local"}),o.push({key:"remote",name:"Remote"}),s.abrupt("return",o);case 7:case"end":return s.stop()}},e,this)}))}},{key:"getDefaultLocation",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.numberOfLocalControllers();case 2:if(i=a.sent,!this.electronService.isElectronApp||0!==i){a.next=5;break}return a.abrupt("return","local");case 5:return a.abrupt("return","remote");case 6:case"end":return a.stop()}},e,this)}))}},{key:"numberOfLocalControllers",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerService.findAll();case 2:return i=a.sent,a.abrupt("return",i.filter(function(s){return"local"===s.location}).length);case 4:case"end":return a.stop()}},e,this)}))}},{key:"getDefaultHost",value:function(){return"127.0.0.1"}},{key:"getDefaultPort",value:function(){return 3080}},{key:"getDefaultLocalControllerPath",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getLocalControllerPath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"getDefaultUbridgePath",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.electronService.isElectronApp){o.next=4;break}return o.next=3,this.electronService.remote.require("./local-controller.js").getUbridgePath();case 3:return o.abrupt("return",o.sent);case 4:return o.abrupt("return");case 5:case"end":return o.stop()}},e,this)}))}},{key:"ngOnInit",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var o,a,s,i=this;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.getLocations();case 2:return this.locations=u.sent,u.next=5,this.getDefaultLocalControllerPath();case 5:return o=u.sent,u.next=8,this.getDefaultUbridgePath();case 8:return a=u.sent,this.controllerForm.get("location").valueChanges.subscribe(function(d){var h=i.controllerForm.get("path"),g=i.controllerForm.get("ubridge_path");"local"===d?(h.setValue(o),h.setValidators([J.kI.required]),g.setValue(a),g.setValidators([J.kI.required])):(h.setValue(""),h.clearValidators(),g.setValue(""),g.clearValidators()),[h,g].forEach(function(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()}}]),n}();_I.\u0275fac=function(r){return new(r||_I)(t.Y36(cr),t.Y36(al),t.Y36(rr),t.Y36(Ln),t.Y36(So))},_I.\u0275cmp=t.Xpm({type:_I,selectors:[["app-add-controller-dialog"]],decls:19,vars:3,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content",""],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],[4,"ngIf"],["matInput","","tabindex","1","formControlName","host","placeholder","Host"],["matInput","","tabindex","1","formControlName","port","placeholder","Port"],["placeholder","Protocol","formControlName","protocol"],[3,"value",4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"value"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Add controller"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"mat-form-field"),t._UZ(5,"input",3),t.YNc(6,Gze,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",5),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",6),t.qZA(),t.TgZ(11,"mat-form-field")(12,"mat-select",7),t.YNc(13,zze,2,2,"mat-option",8),t.qZA()()(),t.TgZ(14,"div",9)(15,"button",10),t.NdJ("click",function(){return e.onNoClick()}),t._uU(16,"Cancel"),t.qZA(),t.TgZ(17,"button",11),t.NdJ("click",function(){return e.onAddClick()}),t._uU(18,"Add"),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.controllerForm),t.xp6(4),t.Q6J("ngIf",e.controllerForm.get("name").hasError("required")),t.xp6(7),t.Q6J("ngForOf",e.protocols))},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,du,dr,ni.gD,Vt.ey],encapsulation:2});var pv=function(){function n(r){var e=this;(0,H.Z)(this,n),this.electronService=r,this.controllerStatusChanged=new In.xQ,this.electronService.isElectronApp&&this.electronService.ipcRenderer.on(this.statusChannel,function(i,o){e.controllerStatusChanged.next(o)})}return(0,B.Z)(n,[{key:"statusChannel",get:function(){return"local-controller-status-events"}},{key:"start",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){var o;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o={controllerName:e.name,status:"starting",message:""},this.controllerStatusChanged.next(o),s.next=4,this.electronService.remote.require("./local-controller.js").startLocalController(e);case 4:return s.abrupt("return",s.sent);case 5:case"end":return s.stop()}},i,this)}))}},{key:"stop",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.electronService.remote.require("./local-controller.js").stopLocalController(e);case 2:return a.abrupt("return",a.sent);case 3:case"end":return a.stop()}},i,this)}))}},{key:"stopAll",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.electronService.remote.require("./local-controller.js").stopAllLocalControllers();case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},e,this)}))}},{key:"getRunningControllers",value:function(){return this.electronService.isElectronApp?this.electronService.remote.require("./local-controller.js").getRunningControllers():[]}},{key:"ngOnDestroy",value:function(){this.electronService.isElectronApp&&this.electronService.ipcRenderer.removeAllListeners(this.statusChannel)}}]),n}();pv.\u0275fac=function(r){return new(r||pv)(t.LFG(al))},pv.\u0275prov=t.Yz7({token:pv,factory:pv.\u0275fac});var vW=m(5887);function Wze(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card",2)(1,"mat-card-content",3),t._uU(2," We've discovered GNS3 controller on "),t.TgZ(3,"b"),t._uU(4),t.qZA(),t._uU(5,", would you like to add to the list? "),t.qZA(),t.TgZ(6,"mat-card-actions",4)(7,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.ignore(a.discoveredController))}),t._uU(8,"NO"),t.qZA(),t.TgZ(9,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.accept(a.discoveredController))}),t._uU(10,"YES"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(4),t.AsE("",null==i.discoveredController?null:i.discoveredController.host,":",null==i.discoveredController?null:i.discoveredController.port,"")}}function Vze(n,r){1&n&&t._UZ(0,"mat-divider")}var _T=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.versionService=r,this.controllerService=e,this.controllerDatabase=i,this.route=o,this.defaultControllers=[{host:"127.0.0.1",port:3080}]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized&&this.discoverFirstController(),this.controllerService.serviceInitialized.subscribe(function(i){return yi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.discoverFirstController();case 1:case"end":return s.stop()}},o,this)}))})}},{key:"discoverFirstController",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var i;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.discoverControllers();case 2:return i=s.sent,s.next=5,this.controllerService.findAll();case 5:s.sent.forEach(function(l){i=i.filter(function(u){return!(u.host==l.host&&u.port==l.port)})}),i.length>0&&(this.discoveredController=i.shift());case 8:case"end":return s.stop()}},e,this)}))}},{key:"discoverControllers",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){var o,i=this;return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return o=[],this.defaultControllers.forEach(function(l){return yi(i,void 0,void 0,Rn().mark(function u(){var d;return Rn().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return(d=new fB).host=l.host,d.port=l.port,C.next=5,this.versionService.get(d).toPromise().catch(function(Z){return null});case 5:C.sent&&o.push(d);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,B0.D)([(0,Zs.D)(this.controllerService.findAll()).pipe((0,$n.U)(function(i){return i})),this.discovery()]).subscribe(function(i){var o=(0,Nn.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 vW.Observable.of(null)}))}),new vW.Observable(function(o){(0,B0.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 fB;return o.host=e,o.port=i,this.versionService.get(o).flatMap(function(a){return vW.Observable.of(o)})}},{key:"ignore",value:function(e){this.discoveredController=null}},{key:"accept",value:function(e){var i=this;null==e.name&&(e.name=e.host),e.location="remote",e.protocol=location.protocol,this.controllerService.create(e).then(function(o){i.controllerDatabase.addController(o),i.discoveredController=null})}}]),n}();function Yze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," ID "),t.qZA())}function Kze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function qze(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Name "),t.qZA())}_T.\u0275fac=function(r){return new(r||_T)(t.Y36(mm),t.Y36(rr),t.Y36(Dp),t.Y36(pr))},_T.\u0275cmp=t.Xpm({type:_T,selectors:[["app-controller-discovery"]],decls:2,vars:2,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"info"],["align","center"],["align","right"],["mat-button","","color","accent",3,"click"],["mat-button","",3,"click"]],template:function(r,e){1&r&&(t.YNc(0,Wze,11,2,"mat-card",0),t.YNc(1,Vze,1,0,"mat-divider",1)),2&r&&(t.Q6J("ngIf",e.discoveredController),t.xp6(1),t.Q6J("ngIf",e.discoveredController))},dependencies:[ge.O5,cn,ai,z0,HD,fm.d]});var Jze=function(r){return["/controller",r,"login"]};function Qze(n,r){if(1&n&&(t.TgZ(0,"a",22),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.Q6J("routerLink",t.VKq(2,Jze,e.id)),t.xp6(1),t.Oqu(e.name)}}function Xze(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.name)}}function $ze(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,Qze,2,4,"a",20),t.YNc(2,Xze,2,1,"span",21),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===i.getControllerStatus(e)||"remote"===e.location||"bundled"===e.location),t.xp6(1),t.Q6J("ngIf","running"!=i.getControllerStatus(e)&&"remote"!==e.location&&"bundled"!==e.location)}}function eWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Location "),t.qZA())}function tWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.location," ")}}function nWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Host "),t.qZA())}function rWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.host," ")}}function iWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Port "),t.qZA())}function oWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.port," ")}}function aWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function sWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.openProjects(o))}),t.TgZ(1,"mat-icon",31),t._uU(2,"arrow_forward"),t.qZA()()}}function lWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.startController(o))}),t.TgZ(1,"mat-icon",33),t._uU(2,"play_arrow"),t.qZA()()}}function uWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",34),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.stopController(o))}),t.TgZ(1,"mat-icon",35),t._uU(2,"stop"),t.qZA()()}}function cWe(n,r){1&n&&t._UZ(0,"mat-spinner",36),2&n&&t.Q6J("diameter",24)}function dWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",23),t.YNc(1,sWe,3,0,"button",24),t.YNc(2,lWe,3,0,"button",25),t.YNc(3,uWe,3,0,"button",26),t.YNc(4,cWe,1,1,"mat-spinner",27),t.TgZ(5,"button",28),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.deleteController(l))}),t.TgZ(6,"mat-icon",29),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("ngIf","running"===o.getControllerStatus(i)||"remote"===i.location||"bundled"===i.location),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"stopped"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"running"===o.getControllerStatus(i)),t.xp6(1),t.Q6J("ngIf","local"===i.location&&"starting"===o.getControllerStatus(i))}}function fWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function pWe(n,r){1&n&&t._UZ(0,"mat-row")}function hWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",37),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.startLocalController())}),t._uU(1," Start local controller "),t.qZA()}}var gI=function(){function n(r,e,i,o,a,s,l,u,d,h){(0,H.Z)(this,n),this.dialog=r,this.controllerService=e,this.controllerDatabase=i,this.controllerManagement=o,this.changeDetector=a,this.electronService=s,this.childProcessService=l,this.bottomSheet=u,this.route=d,this.router=h,this.displayedColumns=["id","name","location","ip","port","actions"],this.isElectronApp=!1}return(0,B.Z)(n,[{key:"getControllers",value:function(){var e=this,i=this.controllerManagement.getRunningControllers();this.controllerService.findAll().then(function(o){o.forEach(function(a){i.findIndex(function(l){return a.name===l})>=0&&(a.status="running")}),o.forEach(function(a){e.controllerService.checkControllerVersion(a).subscribe(function(s){s.version.split(".")[0]>=3&&(a.protocol||(a.protocol=location.protocol),e.controllerDatabase.find(a.name)||e.controllerDatabase.addController(a))},function(s){})})})}},{key:"ngOnInit",value:function(){var e=this;this.isElectronApp=this.electronService.isElectronApp,this.controllerService&&this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService&&this.controllerService.isServiceInitialized&&this.controllerService.serviceInitialized.subscribe(function(i){return yi(e,void 0,void 0,Rn().mark(function o(){return Rn().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i&&this.getControllers();case 1:case"end":return s.stop()}},o,this)}))}),this.dataSource=new mWe(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(_I,{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(pd);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 yi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.start(e);case 2:case"end":return a.stop()}},i,this)}))}},{key:"stopController",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.controllerManagement.stop(e);case 2:case"end":return a.stop()}},i,this)}))}}]),n}();gI.\u0275fac=function(r){return new(r||gI)(t.Y36(jr),t.Y36(rr),t.Y36(Dp),t.Y36(pv),t.Y36(t.sBO),t.Y36(al),t.Y36(bG),t.Y36(gf),t.Y36(pr),t.Y36(ur))},gI.\u0275cmp=t.Xpm({type:gI,selectors:[["app-controller-list"]],decls:33,vars:4,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","id"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name"],["matColumnDef","location"],["matColumnDef","ip"],["matColumnDef","port"],["matColumnDef","actions"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"buttons-bar"],["mat-raised-button","","class","button",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",1,"button",3,"click"],["class","table-link",3,"routerLink",4,"ngIf"],[4,"ngIf"],[1,"table-link",3,"routerLink"],[2,"text-align","right"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click",4,"ngIf"],[3,"diameter",4,"ngIf"],["mat-icon-button","","matTooltip","Remove controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Remove controller"],["mat-icon-button","","matTooltip","Go to projects","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Go to projects"],["mat-icon-button","","matTooltip","Start controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Start controller"],["mat-icon-button","","matTooltip","Stop controller","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Stop controller"],[3,"diameter"],["mat-raised-button","",1,"button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Controllers"),t.qZA()(),t.TgZ(4,"div",2),t._UZ(5,"app-controller-discovery"),t.TgZ(6,"div",3)(7,"mat-table",4,5),t.ynx(9,6),t.YNc(10,Yze,2,0,"mat-header-cell",7),t.YNc(11,Kze,2,1,"mat-cell",8),t.BQk(),t.ynx(12,9),t.YNc(13,qze,2,0,"mat-header-cell",7),t.YNc(14,$ze,3,2,"mat-cell",8),t.BQk(),t.ynx(15,10),t.YNc(16,eWe,2,0,"mat-header-cell",7),t.YNc(17,tWe,2,1,"mat-cell",8),t.BQk(),t.ynx(18,11),t.YNc(19,nWe,2,0,"mat-header-cell",7),t.YNc(20,rWe,2,1,"mat-cell",8),t.BQk(),t.ynx(21,12),t.YNc(22,iWe,2,0,"mat-header-cell",7),t.YNc(23,oWe,2,1,"mat-cell",8),t.BQk(),t.ynx(24,13),t.YNc(25,aWe,2,0,"mat-header-cell",7),t.YNc(26,dWe,8,4,"mat-cell",14),t.BQk(),t.YNc(27,fWe,1,0,"mat-header-row",15),t.YNc(28,pWe,1,0,"mat-row",16),t.qZA()(),t.TgZ(29,"div",17),t.YNc(30,hWe,2,0,"button",18),t.TgZ(31,"button",19),t.NdJ("click",function(){return e.createModal()}),t._uU(32,"Add Controller"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("dataSource",e.dataSource),t.xp6(20),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("ngIf",e.isElectronApp))},dependencies:[ge.O5,Us,cn,Dn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,ui,_T],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 mWe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this;return(0,ji.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2),Fb=function(){function n(r){(0,H.Z)(this,n),this.electronService=r}return(0,B.Z)(n,[{key:"get",value:function(){if(this.electronService.isElectronApp){if(this.electronService.isLinux)return'xfce4-terminal --tab -T "%d" -e "telnet %h %p"';if(this.electronService.isWindows)return'putty.exe -telnet %h %p -loghost "%d"'}}}]),n}();Fb.\u0275fac=function(r){return new(r||Fb)(t.LFG(al))},Fb.\u0275prov=t.Yz7({token:Fb,factory:Fb.\u0275fac});var hv=function(){function n(r,e){(0,H.Z)(this,n),this.defaultConsoleService=r,this.settingsService=e}return(0,B.Z)(n,[{key:"command",get:function(){var e=this.settingsService.getConsoleSettings();return void 0===e?this.defaultConsoleService.get():e},set:function(e){this.settingsService.setConsoleSettings(e)}}]),n}();hv.\u0275fac=function(r){return new(r||hv)(t.LFG(Fb),t.LFG(jm.g))},hv.\u0275prov=t.Yz7({token:hv,factory:hv.\u0275fac});var vI=function(){function n(r,e,i){(0,H.Z)(this,n),this.router=r,this.consoleService=e,this.toasterService=i,this.consoleForm=new J.nJ({command:new J.p4("")})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.consoleForm.get("command").setValue(this.consoleService.command)}},{key:"goBack",value:function(){this.router.navigate(["/settings"])}},{key:"save",value:function(){var e=this.consoleForm.value;this.consoleService.command=e.command,this.toasterService.success("Console command has been updated."),this.goBack()}}]),n}();vI.\u0275fac=function(r){return new(r||vI)(t.Y36(ur),t.Y36(hv),t.Y36(Ln))},vI.\u0275cmp=t.Xpm({type:vI,selectors:[["app-console"]],decls:30,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[3,"formGroup"],[1,"form-field","full-width-field"],["matInput","","formControlName","command","placeholder","Command"],[1,"help"],[1,"buttons-bar"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Console settings"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-form-field",6),t._UZ(9,"textarea",7),t.qZA(),t.TgZ(10,"div",8),t._uU(11," The following variables are replaced by GNS3:"),t._UZ(12,"br"),t._uU(13," %h: console IP or hostname"),t._UZ(14,"br"),t._uU(15," %p: console port"),t._UZ(16,"br"),t._uU(17," %s: path of the serial connection"),t._UZ(18,"br"),t._uU(19," %d: title of the console"),t._UZ(20,"br"),t._uU(21," %i: Project UUID"),t._UZ(22,"br"),t._uU(23," %c: controller URL (http://user:password@controller:port) "),t.qZA()()(),t.TgZ(24,"div",9)(25,"button",10),t.NdJ("click",function(){return e.goBack()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",11),t.NdJ("click",function(){return e.save()}),t._uU(28,"Save"),t.qZA(),t._UZ(29,"br"),t.qZA()()()),2&r&&(t.xp6(7),t.Q6J("formGroup",e.consoleForm))},dependencies:[J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,cn,ai,Kn],styles:[".help[_ngcontent-%COMP%]{font-size:14px}"]});var Ub=function(){function n(r){(0,H.Z)(this,n),this.httpClient=r}return(0,B.Z)(n,[{key:"getLatestVersion",value:function(){return this.httpClient.get("http://update.gns3.net/")}}]),n}();Ub.\u0275fac=function(r){return new(r||Ub)(t.LFG(sc.eN))},Ub.\u0275prov=t.Yz7({token:Ub,factory:Ub.\u0275fac});var yI=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.settingsService=r,this.toaster=e,this.consoleService=i,this.themeService=o,this.mapSettingsService=a,this.updatesService=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.settings=this.settingsService.getAll(),this.integrateLinksLabelsToLinks=this.mapSettingsService.integrateLinkLabelsToLinks,this.openReadme=this.mapSettingsService.openReadme,this.openConsolesInWidget=this.mapSettingsService.openConsolesInWidget}},{key:"save",value:function(){this.settingsService.setAll(this.settings),this.toaster.success("Settings have been saved."),this.mapSettingsService.toggleIntegrateInterfaceLabels(this.integrateLinksLabelsToLinks),this.mapSettingsService.toggleOpenReadme(this.openReadme),this.mapSettingsService.toggleOpenConsolesInWidget(this.openConsolesInWidget)}},{key:"setDarkMode",value:function(e){this.themeService.setDarkMode(e)}},{key:"checkForUpdates",value:function(){window.open("https://gns3.com/software")}}]),n}();yI.\u0275fac=function(r){return new(r||yI)(t.Y36(jm.g),t.Y36(Ln),t.Y36(hv),t.Y36(Cc.f),t.Y36(ul),t.Y36(Ub))},yI.\u0275cmp=t.Xpm({type:yI,selectors:[["app-settings"]],decls:51,vars:8,consts:[[1,"content"],[1,"default-header"],[1,"default-content"],[1,"container","mat-elevation-z8"],[3,"expanded"],[3,"ngModel","ngModelChange"],[1,"theme-panel"],["mat-raised-button","",3,"click"],["mat-raised-button","",1,"fullWidth",3,"click"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h1"),t._uU(3,"Settings"),t.qZA()(),t.TgZ(4,"div",2)(5,"div",3)(6,"mat-accordion")(7,"mat-expansion-panel",4)(8,"mat-expansion-panel-header")(9,"mat-panel-title"),t._uU(10," Local settings "),t.qZA(),t.TgZ(11,"mat-panel-description"),t._uU(12," Customize your local settings "),t.qZA()(),t.TgZ(13,"div")(14,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.crash_reports=o}),t._uU(15,"Send anonymous crash reports"),t.qZA(),t._UZ(16,"br"),t.TgZ(17,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.integrateLinksLabelsToLinks=o}),t._uU(18,"Integrate link labels to links"),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openReadme=o}),t._uU(21,"Automatically open project README files"),t.qZA(),t._UZ(22,"br"),t.TgZ(23,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.settings.anonymous_statistics=o}),t._uU(24,"Send anonymous usage statistics"),t.qZA(),t._UZ(25,"br"),t.TgZ(26,"mat-checkbox",5),t.NdJ("ngModelChange",function(o){return e.openConsolesInWidget=o}),t._uU(27,"Open consoles in the widget instead of in new tabs after clicking start consoles for all nodes"),t.qZA()()(),t.TgZ(28,"mat-expansion-panel",4)(29,"mat-expansion-panel-header")(30,"mat-panel-title"),t._uU(31," Theme settings "),t.qZA(),t.TgZ(32,"mat-panel-description"),t._uU(33," Customize theme settings "),t.qZA()(),t.TgZ(34,"div",6)(35,"button",7),t.NdJ("click",function(){return e.setDarkMode(!1)}),t._uU(36,"Switch to light theme"),t.qZA(),t.TgZ(37,"button",7),t.NdJ("click",function(){return e.setDarkMode(!0)}),t._uU(38,"Switch to dark theme"),t.qZA()()(),t.TgZ(39,"mat-expansion-panel",4)(40,"mat-expansion-panel-header")(41,"mat-panel-title"),t._uU(42," Updates "),t.qZA(),t.TgZ(43,"mat-panel-description"),t._uU(44," Check for updates "),t.qZA()(),t.TgZ(45,"div",6)(46,"button",8),t.NdJ("click",function(){return e.checkForUpdates()}),t._uU(47,"Check for updates"),t.qZA()()()()(),t.TgZ(48,"div",9)(49,"button",10),t.NdJ("click",function(){return e.save()}),t._uU(50,"Save settings"),t.qZA()()()()),2&r&&(t.xp6(7),t.Q6J("expanded",!0),t.xp6(7),t.Q6J("ngModel",e.settings.crash_reports),t.xp6(3),t.Q6J("ngModel",e.integrateLinksLabelsToLinks),t.xp6(3),t.Q6J("ngModel",e.openReadme),t.xp6(3),t.Q6J("ngModel",e.settings.anonymous_statistics),t.xp6(3),t.Q6J("ngModel",e.openConsolesInWidget),t.xp6(2),t.Q6J("expanded",!1),t.xp6(11),t.Q6J("expanded",!1))},dependencies:[J.JJ,J.On,cn,$r,El,Sl,uu,Lu,VD],styles:[".theme-panel[_ngcontent-%COMP%]{justify-content:space-between;display:flex;padding:10px}.fullWidth[_ngcontent-%COMP%]{width:100%}"]});var bI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e){var i=new Date(1e3*+e),o=i.getHours(),a="0"+i.getMinutes(),s="0"+i.getSeconds(),l=i.getFullYear(),u=i.getMonth()+1,d=i.getDate();return o+":"+a.substr(-2)+":"+s.substr(-2)+" "+d+"/"+u+"/"+l}}]),n}();bI.\u0275fac=function(r){return new(r||bI)},bI.\u0275pipe=t.Yjl({name:"datefilter",type:bI,pure:!0});var CI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.filter(function(o){return o.name.toLowerCase().includes(i)})):e:[]}}]),n}();function _We(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Name "),t.qZA())}function gWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.name," ")}}function vWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",18),t._uU(1," Date "),t.qZA())}function yWe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.ALo(2,"datefilter"),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.created_at)," ")}}function bWe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Actions "),t.qZA())}function CWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",19)(1,"button",20),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.restoreSnapshot(a))}),t.TgZ(2,"mat-icon",21),t._uU(3,"restore"),t.qZA()(),t.TgZ(4,"button",22),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw();return t.KtG(s.deleteSnapshot(a))}),t.TgZ(5,"mat-icon",23),t._uU(6,"delete"),t.qZA()()()}}function wWe(n,r){1&n&&t._UZ(0,"mat-header-row")}function kWe(n,r){1&n&&t._UZ(0,"mat-row")}CI.\u0275fac=function(r){return new(r||CI)},CI.\u0275pipe=t.Yjl({name:"namefilter",type:CI,pure:!0});var wI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.snapshotService=e,this.progressDialogService=i,this.toaster=o,this.displayedColumns=["name","creationDate","actions"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.projectId=this.route.snapshot.paramMap.get("project_id"),this.controller=this.route.snapshot.data.controller,this.getSnapshots()}},{key:"getSnapshots",value:function(){var e=this;this.snapshotService.list(this.controller,this.projectId).subscribe(function(i){e.snapshots=i})}},{key:"restoreSnapshot",value:function(e){var i=this,o=this.snapshotService.restore(this.controller,this.projectId,e.snapshot_id.toString()),a=this.progressDialogService.open(),s=o.subscribe(function(l){i.toaster.success("Snapshot ".concat(e.name," has been restored.")),a.close()});a.afterClosed().subscribe(function(l){l===Bb.CANCELLED&&s.unsubscribe()})}},{key:"deleteSnapshot",value:function(e){var i=this;this.snapshotService.delete(this.controller,this.projectId,e.snapshot_id.toString()).subscribe(function(){i.getSnapshots(),i.toaster.success("Snapshot ".concat(e.name," has been deleted."))})}},{key:"sortData",value:function(e){if(e.active&&""!==e.direction){var i=this.snapshots.slice();this.snapshots=i.sort(function(o,a){var s="asc"===e.direction;return"name"===e.active?function MWe(n,r,e){return n=n.toLowerCase(),r=r.toLowerCase(),(n<r?-1:1)*(e?1:-1)}(o.name,a.name,s):"creationDate"===e.active?function TWe(n,r,e){return(n<r?-1:1)*(e?1:-1)}(+o.created_at,+a.created_at,!s):0})}}}]),n}();wI.\u0275fac=function(r){return new(r||wI)(t.Y36(pr),t.Y36(Vm),t.Y36(dv),t.Y36(Ln))},wI.\u0275cmp=t.Xpm({type:wI,selectors:[["app-list-of-snapshots"]],decls:23,vars:7,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"filter-field"],["matInput","","placeholder","Filter",3,"ngModel","ngModelChange"],["matSort","",1,"mat-table",3,"dataSource","matSortChange"],["table",""],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","actions"],[4,"matHeaderCellDef"],["style","text-align: right",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[2,"text-align","right"],["mat-icon-button","","matTooltip","Restore snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Restore snapshot"],["mat-icon-button","","matTooltip","Delete snapshot","matTooltipClass","custom-tooltip",3,"click"],["aria-label","Delete snapshot"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Snapshots"),t.qZA()()(),t.TgZ(5,"div",4)(6,"mat-card")(7,"mat-form-field",5)(8,"input",6),t.NdJ("ngModelChange",function(o){return e.searchText=o}),t.qZA()(),t.TgZ(9,"mat-table",7,8),t.NdJ("matSortChange",function(o){return e.sortData(o)}),t.ALo(11,"namefilter"),t.ynx(12,9),t.YNc(13,_We,2,0,"mat-header-cell",10),t.YNc(14,gWe,2,1,"mat-cell",11),t.BQk(),t.ynx(15,12),t.YNc(16,vWe,2,0,"mat-header-cell",10),t.YNc(17,yWe,3,3,"mat-cell",11),t.BQk(),t.ynx(18,13),t.YNc(19,bWe,2,0,"mat-header-cell",14),t.YNc(20,CWe,7,0,"mat-cell",15),t.BQk(),t.YNc(21,wWe,1,0,"mat-header-row",16),t.YNc(22,kWe,1,0,"mat-row",17),t.qZA()()()()),2&r&&(t.xp6(8),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("dataSource",t.xi3(11,4,e.snapshots,e.searchText)),t.xp6(12),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[J.Fj,J.JJ,J.On,kn.KE,cn,ai,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,zu,yf,ui,bI,CI],styles:[".filter-field[_ngcontent-%COMP%]{width:100%}.mat-table[_ngcontent-%COMP%]{margin:-16px!important}"]});var Yse=new t.OlP("MatChipRemove"),Kse=new t.OlP("MatChipAvatar"),qse=new t.OlP("MatChipTrailingIcon"),EWe=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r}),xWe=(0,Vt.sb)((0,Vt.pj)((0,Vt.Kr)(EWe),"primary"),-1),gT=(0,B.Z)(function n(){(0,H.Z)(this,n)});gT.\u0275fac=function(r){return new(r||gT)},gT.\u0275dir=t.lG2({type:gT,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[t._Bn([{provide:Kse,useExisting:gT}])]});var vT=(0,B.Z)(function n(){(0,H.Z)(this,n)});vT.\u0275fac=function(r){return new(r||vT)},vT.\u0275dir=t.lG2({type:vT,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[t._Bn([{provide:qse,useExisting:vT}])]});var mv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d,h){var g;return(0,H.Z)(this,e),(g=r.call(this,i))._ngZone=o,g._changeDetectorRef=l,g._hasFocus=!1,g.chipListSelectable=!0,g._chipListMultiple=!1,g._chipListDisabled=!1,g.role="option",g._selected=!1,g._selectable=!0,g._disabled=!1,g._removable=!0,g._onFocus=new In.xQ,g._onBlur=new In.xQ,g.selectionChange=new t.vpe,g.destroyed=new t.vpe,g.removed=new t.vpe,g._addHostClassName(),g._chipRippleTarget=u.createElement("div"),g._chipRippleTarget.classList.add("mat-chip-ripple"),g._elementRef.nativeElement.appendChild(g._chipRippleTarget),g._chipRipple=new Vt.IR((0,_D.Z)(g),o,g._chipRippleTarget,a),g._chipRipple.setupTriggerEvents(i),g.rippleConfig=s||{},g._animationsDisabled="NoopAnimations"===d,g.tabIndex=null!=h&&parseInt(h)||-1,g}return(0,B.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,Mn.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,Mn.Ig)(o)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(o){this._disabled=(0,Mn.Ig)(o)}},{key:"removable",get:function(){return this._removable},set:function(o){this._removable=(0,Mn.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 Sr.yY:case Sr.ZH:this.remove(),o.preventDefault();break;case Sr.L_:this.selectable&&this.toggleSelected(!0),o.preventDefault()}}},{key:"_blur",value:function(){var o=this;this._ngZone.onStable.pipe((0,Ei.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}(xWe);mv.\u0275fac=function(r){return new(r||mv)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(Ii.t4),t.Y36(Vt.Y2,8),t.Y36(t.sBO),t.Y36(ge.K0),t.Y36(t.QbO,8),t.$8M("tabindex"))},mv.\u0275dir=t.lG2({type:mv,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Kse,5),t.Suo(i,qse,5),t.Suo(i,Yse,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.avatar=o.first),t.iGM(o=t.CRH())&&(e.trailingIcon=o.first),t.iGM(o=t.CRH())&&(e.removeIcon=o.first))},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})("keydown",function(o){return e._handleKeydown(o)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&r&&(t.uIk("tabindex",e.disabled?null:e.tabIndex)("role",e.role)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),t.ekj("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[t.qOj]});var yT=function(){function n(r,e){(0,H.Z)(this,n),this._parentChip=r,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}return(0,B.Z)(n,[{key:"_handleClick",value:function(e){var i=this._parentChip;i.removable&&!i.disabled&&i.remove(),e.stopPropagation(),e.preventDefault()}}]),n}();yT.\u0275fac=function(r){return new(r||yT)(t.Y36(mv),t.Y36(t.SBq))},yT.\u0275dir=t.lG2({type:yT,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._handleClick(o)})},features:[t._Bn([{provide:Yse,useExisting:yT}])]});var Jse=new t.OlP("mat-chips-default-options"),DWe=0,kI=function(){function n(r,e){(0,H.Z)(this,n),this._elementRef=r,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new t.vpe,this.placeholder="",this.id="mat-chip-list-input-".concat(DWe++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return(0,B.Z)(n,[{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=(0,Mn.Ig)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=(0,Mn.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===Sr.Mf&&!(0,Sr.Vb)(e,"shiftKey")&&this._chipList._allowFocusEscape(),e.keyCode===Sr.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===Sr.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,Sr.Vb)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}]),n}();kI.\u0275fac=function(r){return new(r||kI)(t.Y36(t.SBq),t.Y36(Jse))},kI.\u0275dir=t.lG2({type:kI,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,e){1&r&&t.NdJ("keydown",function(o){return e._keydown(o)})("keyup",function(o){return e._keyup(o)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&r&&(t.Ikx("id",e.id),t.uIk("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[t.TTD]});var AWe=(0,Vt.FD)(function(){return(0,B.Z)(function n(r,e,i,o){(0,H.Z)(this,n),this._defaultErrorStateMatcher=r,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new In.xQ})}()),OWe=0,IWe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.value=e}),Hb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,u,s,l,d))._elementRef=i,h._changeDetectorRef=o,h._dir=a,h.controlType="mat-chip-list",h._lastDestroyedChipIndex=null,h._destroyed=new In.xQ,h._uid="mat-chip-list-".concat(OWe++),h._tabIndex=0,h._userTabIndex=null,h._onTouched=function(){},h._onChange=function(){},h._multiple=!1,h._compareWith=function(g,C){return g===C},h._disabled=!1,h.ariaOrientation="horizontal",h._selectable=!0,h.change=new t.vpe,h.valueChange=new t.vpe,h.ngControl&&(h.ngControl.valueAccessor=(0,_D.Z)(h)),h}return(0,B.Z)(e,[{key:"selected",get:function(){var o,a;return this.multiple?(null===(o=this._selectionModel)||void 0===o?void 0:o.selected)||[]:null===(a=this._selectionModel)||void 0===a?void 0:a.selected[0]}},{key:"role",get:function(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"},set:function(o){this._explicitRole=o}},{key:"multiple",get:function(){return this._multiple},set:function(o){this._multiple=(0,Mn.Ig)(o),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(o){this._compareWith=o,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(o){this.writeValue(o),this._value=o}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){var o,a,s,l;return null!==(l=null!==(o=this._required)&&void 0!==o?o:null===(s=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===s?void 0:s.hasValidator(J.kI.required))&&void 0!==l&&l},set:function(o){this._required=(0,Mn.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,Mn.Ig)(o),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(o){this._selectable=(0,Mn.Ig)(o),this._syncChipsState()}},{key:"tabIndex",set:function(o){this._userTabIndex=o,this._tabIndex=o}},{key:"chipSelectionChanges",get:function(){return ji.T.apply(void 0,(0,pn.Z)(this.chips.map(function(o){return o.selectionChange})))}},{key:"chipFocusChanges",get:function(){return ji.T.apply(void 0,(0,pn.Z)(this.chips.map(function(o){return o._onFocus})))}},{key:"chipBlurChanges",get:function(){return ji.T.apply(void 0,(0,pn.Z)(this.chips.map(function(o){return o._onBlur})))}},{key:"chipRemoveChanges",get:function(){return ji.T.apply(void 0,(0,pn.Z)(this.chips.map(function(o){return o.destroyed})))}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,Nr.R)(this._destroyed)).subscribe(function(a){return o._keyManager.withHorizontalOrientation(a)}),this._keyManager.tabOut.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){o._allowFocusEscape()}),this.chips.changes.pipe((0,eo.O)(null),(0,Nr.R)(this._destroyed)).subscribe(function(){(o.disabled||!o.selectable)&&Promise.resolve().then(function(){o._syncChipsState()}),o._resetChips(),o._initializeSelection(),o._updateTabIndex(),o._updateFocusForDestroyedChips(),o.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new Ci.Ov(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(o){this._chipInput=o,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",o.id)}},{key:"setDescribedByIds",value:function(o){o.length?this._elementRef.nativeElement.setAttribute("aria-describedby",o.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"writeValue",value:function(o){this.chips&&this._setSelectionByValue(o,!1)}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this.stateChanges.next()}},{key:"onContainerClick",value:function(o){this._originatesFromChip(o)||this.focus()}},{key:"focus",value:function(o){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(o),this.stateChanges.next()))}},{key:"_focusInput",value:function(o){this._chipInput&&this._chipInput.focus(o)}},{key:"_keydown",value:function(o){var a=o.target;a&&a.classList.contains("mat-chip")&&(this._keyManager.onKeydown(o),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var o=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(o)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(o){return o>=0&&o<this.chips.length}},{key:"_setSelectionByValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(u){return u.deselect()}),Array.isArray(o))o.forEach(function(u){return a._selectValue(u,s)}),this._sortValues();else{var l=this._selectValue(o,s);l&&s&&this._keyManager.setActiveItem(l)}}},{key:"_selectValue",value:function(o){var a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=this.chips.find(function(u){return null!=u.value&&a._compareWith(u.value,o)});return l&&(s?l.selectViaInteraction():l.select(),this._selectionModel.select(l)),l}},{key:"_initializeSelection",value:function(){var o=this;Promise.resolve().then(function(){(o.ngControl||o._value)&&(o._setSelectionByValue(o.ngControl?o.ngControl.value:o._value,!1),o.stateChanges.next())})}},{key:"_clearSelection",value:function(o){this._selectionModel.clear(),this.chips.forEach(function(a){a!==o&&a.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var o=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(a){a.selected&&o._selectionModel.select(a)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(o){var a=null;a=Array.isArray(this.selected)?this.selected.map(function(s){return s.value}):this.selected?this.selected.value:o,this._value=a,this.change.emit(new IWe(this,a)),this.valueChange.emit(a),this._onChange(a),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var o=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){o.focused||o._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var o=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){o._tabIndex=o._userTabIndex||0,o._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var o=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(a){a.source.selected?o._selectionModel.select(a.source):o._selectionModel.deselect(a.source),o.multiple||o.chips.forEach(function(s){!o._selectionModel.isSelected(s)&&s.selected&&s.deselect()}),a.isUserInput&&o._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var o=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(a){var s=o.chips.toArray().indexOf(a.chip);o._isValidIndex(s)&&o._keyManager.updateActiveItem(s),o.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){o._blur(),o.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var o=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(a){var s=a.chip,l=o.chips.toArray().indexOf(a.chip);o._isValidIndex(l)&&s._hasFocus&&(o._lastDestroyedChipIndex=l)})}},{key:"_originatesFromChip",value:function(o){for(var a=o.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-chip"))return!0;a=a.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(o){return o._hasFocus})}},{key:"_syncChipsState",value:function(){var o=this;this.chips&&this.chips.forEach(function(a){a._chipListDisabled=o._disabled,a._chipListMultiple=o.multiple,a.chipListSelectable=o._selectable})}}]),e}(AWe);Hb.\u0275fac=function(r){return new(r||Hb)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Ls.Is,8),t.Y36(J.F,8),t.Y36(J.sg,8),t.Y36(Vt.rD),t.Y36(J.a5,10))},Hb.\u0275cmp=t.Xpm({type:Hb,selectors:[["mat-chip-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,mv,5),2&r)&&(t.iGM(o=t.CRH())&&(e.chips=o))},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(r,e){1&r&&t.NdJ("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(o){return e._keydown(o)}),2&r&&(t.Ikx("id",e._uid),t.uIk("tabindex",e.disabled?null:e._tabIndex)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),t.ekj("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[t._Bn([{provide:kn.Eo,useExisting:Hb}]),t.qOj],ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0});var bT=(0,B.Z)(function n(){(0,H.Z)(this,n)});bT.\u0275fac=function(r){return new(r||bT)},bT.\u0275mod=t.oAB({type:bT}),bT.\u0275inj=t.cJS({providers:[Vt.rD,{provide:Jse,useValue:{separatorKeyCodes:[Sr.K5]}}],imports:[Vt.BQ]});var PWe=function(){return["Load average","(last 1 minute)"]},RWe=function(){return["Load average","(last 5 minutes)"]},LWe=function(){return["Load average","(last 15 minutes)"]},TI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"formatBytes",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var o=1024,a=i<0?0:i,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(e)/Math.log(o));return parseFloat((e/Math.pow(o,l)).toFixed(a))+" "+s[l]}}]),n}();function ZWe(n,r){1&n&&(t.TgZ(0,"div"),t._uU(1,"Statistics not loaded"),t.qZA())}function NWe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t._UZ(2,"app-status-chart",2),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.compute_name," "),t.xp6(1),t.Q6J("computeStatistics",e)}}TI.\u0275fac=function(r){return new(r||TI)},TI.\u0275cmp=t.Xpm({type:TI,selectors:[["app-status-chart"]],inputs:{computeStatistics:"computeStatistics"},decls:30,vars:114,consts:[[1,"wrapper"],[3,"percent","radius","outerStrokeWidth","innerStrokeWidth","outerStrokeColor","innerStrokeColor","animation","animationDuration","unitsColor","unitsFontSize","titleColor","titleFontSize","subtitle","subtitleColor","subtitleFontSize"],[1,"chips-wrapper"],["color","primary","selected",""]],template:function(r,e){1&r&&(t.TgZ(0,"mat-card")(1,"div",0),t._UZ(2,"circle-progress",1)(3,"circle-progress",1)(4,"circle-progress",1)(5,"circle-progress",1),t.qZA(),t.TgZ(6,"div",0),t._UZ(7,"circle-progress",1)(8,"circle-progress",1)(9,"circle-progress",1),t.qZA(),t.TgZ(10,"div",2)(11,"mat-chip-list")(12,"mat-chip",3),t._uU(13),t.qZA()(),t.TgZ(14,"mat-chip-list")(15,"mat-chip",3),t._uU(16),t.qZA()(),t.TgZ(17,"mat-chip-list")(18,"mat-chip",3),t._uU(19),t.qZA()()(),t.TgZ(20,"div",2)(21,"mat-chip-list")(22,"mat-chip",3),t._uU(23),t.qZA()(),t.TgZ(24,"mat-chip-list")(25,"mat-chip",3),t._uU(26),t.qZA()(),t.TgZ(27,"mat-chip-list")(28,"mat-chip",3),t._uU(29),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.cpu_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","CPU usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.disk_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Disk usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.memory_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","Memory usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.swap_usage_percent)("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle","SWAP usage")("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(2),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[0])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(111,PWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[1])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(112,RWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(1),t.Q6J("percent",e.computeStatistics.statistics.load_average_percent[2])("radius",100)("outerStrokeWidth",8)("innerStrokeWidth",6)("outerStrokeColor","#0097a7")("innerStrokeColor","#007380")("animation",!0)("animationDuration",300)("unitsColor","#C0C0C0")("unitsFontSize",20)("titleColor","#C0C0C0")("titleFontSize",30)("subtitle",t.DdM(113,LWe))("subtitleColor","#C0C0C0")("subtitleFontSize",15),t.xp6(4),t.hij("Memory total: ",e.formatBytes(e.computeStatistics.statistics.memory_total),""),t.xp6(3),t.hij("Memory used: ",e.formatBytes(e.computeStatistics.statistics.memory_used),""),t.xp6(3),t.hij("Memory free: ",e.formatBytes(e.computeStatistics.statistics.memory_free),""),t.xp6(4),t.hij("Swap total: ",e.formatBytes(e.computeStatistics.statistics.swap_total),""),t.xp6(3),t.hij("Swap used: ",e.formatBytes(e.computeStatistics.statistics.swap_used),""),t.xp6(3),t.hij("Swap free: ",e.formatBytes(e.computeStatistics.statistics.swap_free),""))},dependencies:[ai,Hb,mv,mD],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 MI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.computeService=e,this.controllerService=i,this.toasterService=o,this.controllerId="",this.computeStatistics=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.getStatistics()}},{key:"getStatistics",value:function(){var e=this;this.controllerService.get(Number(this.controllerId)).then(function(i){e.computeService.getStatistics(i).subscribe(function(o){e.computeStatistics=o,setTimeout(function(){e.getStatistics()},2e4)})})}}]),n}();MI.\u0275fac=function(r){return new(r||MI)(t.Y36(pr),t.Y36(sf.X),t.Y36(rr),t.Y36(Ln))},MI.\u0275cmp=t.Xpm({type:MI,selectors:[["app-status-info"]],decls:2,vars:2,consts:[[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"computeStatistics"]],template:function(r,e){1&r&&(t.YNc(0,ZWe,2,0,"div",0),t.YNc(1,NWe,3,2,"div",1)),2&r&&(t.Q6J("ngIf",!e.computeStatistics.length),t.xp6(1),t.Q6J("ngForOf",e.computeStatistics))},dependencies:[ge.sg,ge.O5,TI]});var SI=function(){function n(r){(0,H.Z)(this,n),this.route=r,this.controllerId=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controllerId=this.route.snapshot.paramMap.get("controller_id")}}]),n}();SI.\u0275fac=function(r){return new(r||SI)(t.Y36(pr))},SI.\u0275cmp=t.Xpm({type:SI,selectors:[["app-system-status"]],decls:7,vars:0,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"System status"),t.qZA()()(),t.TgZ(5,"div",4),t._UZ(6,"app-status-info"),t.qZA()())},dependencies:[MI]});var BWe=["terminal"],CT=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.consoleService=r,this.controllerService=e,this.route=i,this.title=o,this.nodeService=a,this.subscriptions=new Ea.w,this.term=new zse.Terminal,this.fitAddon=new Vse.FitAddon}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controllerService.isServiceInitialized?this.getData():this.subscriptions.add(this.controllerService.serviceInitialized.subscribe(function(i){i&&e.getData()}))}},{key:"getData",value:function(){var e=this;this.controllerId=this.route.snapshot.paramMap.get("controller_id"),this.projectId=this.route.snapshot.paramMap.get("project_id"),this.nodeId=this.route.snapshot.paramMap.get("node_id"),this.consoleService.consoleResized.subscribe(function(i){e.fitAddon.fit()}),this.controllerService.get(+this.controllerId).then(function(i){e.controller=i,e.nodeService.getNodeById(e.controller,e.projectId,e.nodeId).subscribe(function(o){e.node=o,e.title.setTitle(e.node.name),e.openTerminal()})})}},{key:"openTerminal",value:function(){var e=this;setTimeout(function(){e.term.open(e.terminal.nativeElement);var i=new WebSocket(e.consoleService.getUrl(e.controller,e.node));i.onerror=function(l){e.term.write("Connection lost\r\n")},i.onclose=function(l){e.term.write("Connection closed\r\n")};var o=new Wse.AttachAddon(i);e.term.loadAddon(o),e.term.setOption("cursorBlink",!0),e.term.loadAddon(e.fitAddon),e.fitAddon.activate(e.term),e.fitAddon.fit(),e.term.focus(),e.term.attachCustomKeyEventHandler(function(l){return!(("KeyC"===l.code||"KeyV"===l.code)&&l.ctrlKey&&l.shiftKey)});var a=Math.round(window.innerWidth/e.consoleService.getLineWidth()),s=Math.round(window.innerHeight/e.consoleService.getLineHeight());e.term.resize(a,s)},0)}}]),n}();CT.\u0275fac=function(r){return new(r||CT)(t.Y36(pu),t.Y36(rr),t.Y36(pr),t.Y36(Hr),t.Y36(Br))},CT.\u0275cmp=t.Xpm({type:CT,selectors:[["app-web-console-full-window"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(BWe,5),2&r)&&(t.iGM(i=t.CRH())&&(e.terminal=i.first))},decls:2,vars:0,consts:[["id","terminal",2,"width","100%","height","100%"],["terminal",""]],template:function(r,e){1&r&&t._UZ(0,"div",0,1)},styles:['/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *\n * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-decoration-overview-ruler{z-index:7;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}\n'],encapsulation:2});var jb=function(){function n(r,e){(0,H.Z)(this,n),this.consoleService=r,this.bottomSheet=e}return(0,B.Z)(n,[{key:"canDeactivate",value:function(){if(this.consoleService.openConsoles>0){this.bottomSheet.open(pd);var e=this.bottomSheet._openedBottomSheetRef;return e.instance.message="Exiting the project will close open consoles, do you want to continue?",e.afterDismissed()}return!0}}]),n}();jb.\u0275fac=function(r){return new(r||jb)(t.LFG(pu),t.LFG(gf))},jb.\u0275prov=t.Yz7({token:jb,factory:jb.\u0275fac});var Fr=function(){function n(r,e,i){(0,H.Z)(this,n),this.controllerService=r,this.loginService=e,this.router=i}return(0,B.Z)(n,[{key:"canActivate",value:function(e,i){return yi(this,void 0,void 0,Rn().mark(function o(){var s,l,a=this;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=e.paramMap.get("controller_id"),this.loginService.controller_id=s,d.next=4,this.controllerService.get(parseInt(s,10));case 4:return l=d.sent,d.prev=5,d.next=8,this.loginService.getLoggedUser(l);case 8:d.next=12;break;case 10:d.prev=10,d.t0=d.catch(5);case 12:return d.abrupt("return",this.controllerService.get(parseInt(s,10)).then(function(h){if(h.authToken&&!h.tokenExpired)return!0;a.router.navigate(["/controller",h.id,"login"],{queryParams:{returnUrl:i.url}})}));case 13:case"end":return d.stop()}},o,this,[[5,10]])}))}}]),n}();Fr.\u0275fac=function(r){return new(r||Fr)(t.LFG(rr),t.LFG(hm),t.LFG(ur))},Fr.\u0275prov=t.Yz7({token:Fr,factory:Fr.\u0275fac});var FWe=["*",[["mat-toolbar-row"]]],HWe=(0,Vt.pj)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}()),EI=(0,B.Z)(function n(){(0,H.Z)(this,n)});EI.\u0275fac=function(r){return new(r||EI)},EI.\u0275dir=t.lG2({type:EI,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});var xI=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i))._platform=o,s._document=a,s}return(0,B.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}(HWe);xI.\u0275fac=function(r){return new(r||xI)(t.Y36(t.SBq),t.Y36(Ii.t4),t.Y36(ge.K0))},xI.\u0275cmp=t.Xpm({type:xI,selectors:[["mat-toolbar"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,EI,5),2&r)&&(t.iGM(o=t.CRH())&&(e._toolbarRows=o))},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,e){2&r&&t.ekj("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(FWe),t.Hsn(0),t.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0});var wT=(0,B.Z)(function n(){(0,H.Z)(this,n)});function jWe(n,r){1&n&&(t.TgZ(0,"button",16),t._UZ(1,"mat-icon",17),t.qZA())}function GWe(n,r){if(1&n&&(t.TgZ(0,"button",18),t._UZ(1,"mat-icon",17),t.qZA()),2&n){t.oxw();var e=t.MAs(45);t.Q6J("matMenuTriggerFor",e)}}function zWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.listProjects())}),t._uU(1," Projects "),t.qZA()}}function WWe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.backToProject())}),t._uU(1," Back to project "),t.qZA()}}function VWe(n,r){if(1&n&&(t.TgZ(0,"button",20)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();var e=t.MAs(8);t.Q6J("matMenuTriggerFor",e)}}wT.\u0275fac=function(r){return new(r||wT)},wT.\u0275mod=t.oAB({type:wT}),wT.\u0275inj=t.cJS({imports:[Vt.BQ,Vt.BQ]});var YWe=function(r){return["controller",r,"systemstatus"]},KWe=function(r){return["controller",r,"settings"]},qWe=function(r){return["controller",r,"management","users"]},JWe=function(r){return["controller",r,"help"]},QWe=function(r){return["/controller",r,"loggeduser"]},XWe=function(){return["/controllers"]},$We=function(r){return["/controller",r,"projects"]},eVe=function(r){return["controller",r,"preferences"]},tVe=function(r){return["controller",r,"image-manager"]};function nVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-toolbar",3),t.YNc(1,jWe,2,0,"button",4),t.YNc(2,GWe,2,1,"button",5),t.YNc(3,zWe,2,0,"button",6),t.YNc(4,WWe,2,0,"button",6),t._UZ(5,"span",7),t.YNc(6,VWe,3,1,"button",8),t.TgZ(7,"mat-menu",null,9)(9,"button",10)(10,"mat-icon"),t._uU(11,"info"),t.qZA(),t.TgZ(12,"span"),t._uU(13,"System status"),t.qZA()(),t.TgZ(14,"button",10)(15,"mat-icon"),t._uU(16,"settings"),t.qZA(),t.TgZ(17,"span"),t._uU(18,"Settings"),t.qZA()(),t.TgZ(19,"button",10)(20,"mat-icon"),t._uU(21,"groups"),t.qZA(),t.TgZ(22,"span"),t._uU(23,"Management"),t.qZA()(),t.TgZ(24,"button",10)(25,"mat-icon"),t._uU(26,"help"),t.qZA(),t.TgZ(27,"span"),t._uU(28,"Help"),t.qZA()(),t.TgZ(29,"button",10)(30,"mat-icon"),t._uU(31,"person"),t.qZA(),t.TgZ(32,"span"),t._uU(33,"User info"),t.qZA()(),t.TgZ(34,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.goToDocumentation())}),t.TgZ(35,"mat-icon"),t._uU(36,"person"),t.qZA(),t.TgZ(37,"span"),t._uU(38,"API documentation"),t.qZA()(),t.TgZ(39,"button",11),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.logout())}),t.TgZ(40,"mat-icon"),t._uU(41,"highlight_off"),t.qZA(),t.TgZ(42,"span"),t._uU(43,"Logout"),t.qZA()()(),t.TgZ(44,"mat-menu",12,13)(46,"button",14)(47,"mat-icon"),t._uU(48,"developer_board"),t.qZA(),t.TgZ(49,"span"),t._uU(50,"Controllers"),t.qZA()(),t.TgZ(51,"button",14)(52,"mat-icon"),t._uU(53,"work"),t.qZA(),t.TgZ(54,"span"),t._uU(55,"Projects"),t.qZA()(),t.TgZ(56,"button",10)(57,"mat-icon"),t._uU(58,"settings_applications"),t.qZA(),t.TgZ(59,"span"),t._uU(60,"Template preferences"),t.qZA()(),t.TgZ(61,"button",10)(62,"mat-icon"),t._uU(63,"collections"),t.qZA(),t.TgZ(64,"span"),t._uU(65,"Image manager"),t.qZA()(),t.TgZ(66,"button",15),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addNewTemplate())}),t.TgZ(67,"mat-icon"),t._uU(68,"control_point"),t.qZA(),t.TgZ(69,"span"),t._uU(70,"New template"),t.qZA()()()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"==i.router.url),t.xp6(1),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(1),t.Q6J("ngIf",!i.recentlyOpenedProjectId&&i.controllerIdProjectList),t.xp6(1),t.Q6J("ngIf",i.recentlyOpenedProjectId&&i.recentlyOpenedcontrollerId&&!i.isLoginPage),t.xp6(2),t.Q6J("ngIf",!i.isLoginPage&&"/controllers"!=i.router.url),t.xp6(3),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(24,YWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(26,KWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(28,qWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(30,JWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(32,QWe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("disabled",!i.controllerId),t.xp6(5),t.Q6J("overlapTrigger",!1),t.xp6(2),t.Q6J("routerLink",t.DdM(34,XWe)),t.xp6(5),t.Q6J("routerLink",t.VKq(35,$We,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(37,eVe,i.controllerId)),t.xp6(5),t.Q6J("disabled",!i.controllerId)("routerLink",t.VKq(39,tVe,i.controllerId))}}var DI=function(){function n(r,e,i,o,a,s,l,u,d,h){var g=this;(0,H.Z)(this,n),this.electronService=r,this.recentlyOpenedProjectService=e,this.controllerManagement=i,this.toasterService=o,this.progressService=a,this.dialog=s,this.router=l,this.route=u,this.controllerService=d,this.projectService=h,this.isInstalledSoftwareAvailable=!1,this.uiVersion=Gse,this.isLoginPage=!1,this.shouldStopControllersOnClosing=!0,this.projectMapSubscription=new Ea.w,this.router.events.subscribe(function(C){C instanceof af&&(g.controllerId=g.route.children[0].snapshot.paramMap.get("controller_id"),g.getData())})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.checkIfUserIsLoginPage(),this.routeSubscription=this.router.events.subscribe(function(i){i instanceof af&&e.checkIfUserIsLoginPage()}),this.recentlyOpenedcontrollerId=this.recentlyOpenedProjectService.getcontrollerId(),this.recentlyOpenedProjectId=this.recentlyOpenedProjectService.getProjectId(),this.controllerIdProjectList=this.recentlyOpenedProjectService.getcontrollerIdProjectList(),this.isInstalledSoftwareAvailable=this.electronService.isElectronApp,this.controllerStatusSubscription=this.controllerManagement.controllerStatusChanged.subscribe(function(i){"errored"===i.status&&(console.error(i.message),e.toasterService.error(i.message)),"stderr"===i.status&&(console.error(i.message),e.toasterService.error(i.message))}),this.shouldStopControllersOnClosing=this.electronService.isElectronApp}},{key:"goToDocumentation",value:function(){this.controllerService.get(+this.controllerId).then(function(e){window.open("".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/docs"))})}},{key:"checkIfUserIsLoginPage",value:function(){this.router.url.includes("login")?this.isLoginPage=!0:this.isLoginPage=!1}},{key:"logout",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){i.authToken=null,e.controllerService.update(i).then(function(o){return e.router.navigate(["/controller",i.id,"login"])})})}},{key:"listProjects",value:function(){var e=this;this.router.navigate(["/controller",this.controllerIdProjectList,"projects"]).catch(function(i){return e.toasterService.error("Cannot list projects")})}},{key:"backToProject",value:function(){var e=this;this.router.navigate(["/controller",this.recentlyOpenedcontrollerId,"project",this.recentlyOpenedProjectId]).catch(function(i){return e.toasterService.error("Cannot navigate to the last opened project")})}},{key:"onBeforeUnload",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){return Rn().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(this.shouldStopControllersOnClosing){a.next=2;break}return a.abrupt("return");case 2:return e.preventDefault(),e.returnValue=!1,this.progressService.activate(),a.next=7,this.controllerManagement.stopAll();case 7:return this.shouldStopControllersOnClosing=!1,this.progressService.deactivate(),window.close(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},i,this)}))}},{key:"getData",value:function(){var e=this;this.controllerService.get(+this.controllerId).then(function(i){e.controller=i})}},{key:"addNewTemplate",value:function(){var i=this.dialog.open(lT,{width:"1000px",maxHeight:"700px",autoFocus:!1,disableClose:!0}).componentInstance;i.controller=this.controller,i.project=this.project}},{key:"ngOnDestroy",value:function(){this.controllerStatusSubscription.unsubscribe(),this.routeSubscription.unsubscribe()}}]),n}();DI.\u0275fac=function(r){return new(r||DI)(t.Y36(al),t.Y36(EF.p),t.Y36(pv),t.Y36(Ln),t.Y36(Ml),t.Y36(jr),t.Y36(ur),t.Y36(pr),t.Y36(rr),t.Y36(Gs.Y))},DI.\u0275cmp=t.Xpm({type:DI,selectors:[["app-default-layout"]],hostBindings:function(r,e){1&r&&t.NdJ("beforeunload",function(o){return e.onBeforeUnload(o)},!1,t.Jf7)},decls:7,vars:2,consts:[["color","primary",4,"ngIf"],[1,"mat-app-background"],[1,"footer","mat-app-background"],["color","primary"],["mat-icon-button","",4,"ngIf"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor",4,"ngIf"],["mat-button","",3,"click",4,"ngIf"],[1,"fill-space"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"disabled","routerLink"],["mat-menu-item","",3,"disabled","click"],[3,"overlapTrigger"],["mainMenu","matMenu"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"],["mat-icon-button",""],["svgIcon","gns3"],["mat-icon-button","","matTooltip","Open menu","matTooltipClass","custom-tooltip",3,"matMenuTriggerFor"],["mat-button","",3,"click"],["mat-button","",3,"matMenuTriggerFor"]],template:function(r,e){1&r&&(t.TgZ(0,"header"),t.YNc(1,nVe,71,41,"mat-toolbar",0),t.qZA(),t.TgZ(2,"main",1),t._UZ(3,"router-outlet"),t.qZA(),t._UZ(4,"app-progress"),t.TgZ(5,"footer",2),t._uU(6),t.qZA()),2&r&&(t.xp6(1),t.Q6J("ngIf","/controllers"!=e.router.url),t.xp6(5),t.hij("GNS3 Web UI \xa9 2022 - v",e.uiVersion,""))},dependencies:[ge.O5,cm,Wo,Va,Dr,_a,cn,xI,Dn,ui,H0],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 _d=function(){function n(r){(0,H.Z)(this,n),this.controllerService=r}return(0,B.Z)(n,[{key:"resolve",value:function(e){return this.controllerService.get(parseInt(e.params.controller_id))}}]),n}();_d.\u0275fac=function(r){return new(r||_d)(t.LFG(rr))},_d.\u0275prov=t.Yz7({token:_d,factory:_d.\u0275fac});var Qse=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.username===o.value&&o.value!==i})?{userExists:!0}:null}))}},Xse=function(r,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return function(o){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.list(r)}),(0,$n.U)(function(a){return a.find(function(s){return s.email===o.value&&o.value!==i})?{emailExists:!0}:null}))}};function $se(n){n.get("password").value===n.get("confirmPassword").value||n.get("confirmPassword").setErrors({confirmPasswordMatch:!0})}var Zl=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getInformationAboutLoggedUser",value:function(e){return this.httpController.get(e,"/access/users/me/")}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i))}},{key:"list",value:function(e){return this.httpController.get(e,"/access/users")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/users",i)}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/users/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/users/".concat(i.user_id),i)}},{key:"getGroupsByUserId",value:function(e,i){return this.httpController.get(e,"/access/users/".concat(i,"/groups"))}}]),n}();Zl.\u0275fac=function(r){return new(r||Zl)(t.LFG(mo.zw))},Zl.\u0275prov=t.Yz7({token:Zl,factory:Zl.\u0275fac});var Sc=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getGroups",value:function(e){return this.httpController.get(e,"/access/groups")}},{key:"getGroupMember",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/members"))}},{key:"addGroup",value:function(e,i){return this.httpController.post(e,"/access/groups",{name:i})}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/groups/".concat(i))}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i))}},{key:"addMemberToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id),{})}},{key:"removeUser",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/members/").concat(o.user_id))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id),{name:i.name})}},{key:"getGroupRole",value:function(e,i){return this.httpController.get(e,"/access/groups/".concat(i,"/roles"))}},{key:"removeRole",value:function(e,i,o){return this.httpController.delete(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id))}},{key:"addRoleToGroup",value:function(e,i,o){return this.httpController.put(e,"/access/groups/".concat(i.user_group_id,"/roles/").concat(o.role_id),{})}}]),n}();Sc.\u0275fac=function(r){return new(r||Sc)(t.LFG(mo.zw))},Sc.\u0275prov=t.Yz7({token:Sc,factory:Sc.\u0275fac,providedIn:"root"});var rVe=["panel"];function iVe(n,r){if(1&n&&(t.TgZ(0,"div",0,1),t.Hsn(2),t.qZA()),2&n){var e=r.id,i=t.oxw();t.Q6J("id",i.id)("ngClass",i._classList),t.uIk("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var aVe=0,sVe=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.option=e}),lVe=(0,Vt.Kr)(function(){return(0,B.Z)(function n(){(0,H.Z)(this,n)})}()),ele=new t.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function uVe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});var AI=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this))._changeDetectorRef=i,l._elementRef=o,l._activeOptionChanges=Ea.w.EMPTY,l.showPanel=!1,l._isOpen=!1,l.displayWith=null,l.optionSelected=new t.vpe,l.opened=new t.vpe,l.closed=new t.vpe,l.optionActivated=new t.vpe,l._classList={},l.id="mat-autocomplete-".concat(aVe++),l.inertGroups=(null==s?void 0:s.SAFARI)||!1,l._autoActiveFirstOption=!!a.autoActiveFirstOption,l._autoSelectActiveOption=!!a.autoSelectActiveOption,l}return(0,B.Z)(e,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(o){this._autoActiveFirstOption=(0,Mn.Ig)(o)}},{key:"autoSelectActiveOption",get:function(){return this._autoSelectActiveOption},set:function(o){this._autoSelectActiveOption=(0,Mn.Ig)(o)}},{key:"classList",set:function(o){o&&o.length?this._classList=(0,Mn.du)(o).reduce(function(a,s){return a[s]=!0,a},{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var o=this;this._keyManager=new Yr.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(a){o.isOpen&&o.optionActivated.emit({source:o,option:o.options.toArray()[a]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(o){this.panel&&(this.panel.nativeElement.scrollTop=o)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(o){var a=new sVe(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}(lVe);AI.\u0275fac=function(r){return new(r||AI)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ele),t.Y36(Ii.t4))},AI.\u0275dir=t.lG2({type:AI,viewQuery:function(r,e){var i;(1&r&&(t.Gf(t.Rgc,7),t.Gf(rVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.template=i.first),t.iGM(i=t.CRH())&&(e.panel=i.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[t.qOj]});var Jp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",i._hiddenClass="mat-autocomplete-hidden",i}return(0,B.Z)(e)}(AI);Jp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Jp)))(e||Jp)}}(),Jp.\u0275cmp=t.Xpm({type:Jp,selectors:[["mat-autocomplete"]],contentQueries:function(r,e,i){var o;(1&r&&(t.Suo(i,Vt.K7,5),t.Suo(i,Vt.ey,5)),2&r)&&(t.iGM(o=t.CRH())&&(e.optionGroups=o),t.iGM(o=t.CRH())&&(e.options=o))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[t._Bn([{provide:Vt.HF,useExisting:Jp}]),t.qOj],ngContentSelectors:["*"],decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,e){1&r&&(t.F$t(),t.YNc(0,iVe,3,4,"ng-template"))},dependencies:[ge.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0});var tle=new t.OlP("mat-autocomplete-scroll-strategy");var dVe={provide:tle,deps:[xi.aV],useFactory:function cVe(n){return function(){return n.scrollStrategies.reposition()}}},fVe={provide:J.JU,useExisting:(0,t.Gpc)(function(){return Qp}),multi:!0};var OI=function(){function n(r,e,i,o,a,s,l,u,d,h,g){var C=this;(0,H.Z)(this,n),this._element=r,this._overlay=e,this._viewContainerRef=i,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=d,this._viewportRuler=h,this._defaults=g,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ea.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new In.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,gD.P)(function(){var Z=C.autocomplete?C.autocomplete.options:null;return Z?Z.changes.pipe((0,eo.O)(Z),(0,bo.w)(function(){return ji.T.apply(void 0,(0,pn.Z)(Z.map(function(z){return z.onSelectionChange})))})):C._zone.onStable.pipe((0,Ei.q)(1),(0,bo.w)(function(){return C.optionSelections}))}),this._scrollStrategy=s}return(0,B.Z)(n,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=(0,Mn.Ig)(e)}},{key:"ngAfterViewInit",value:function(){var e=this,i=this._getWindow();void 0!==i&&this._zone.runOutsideAngular(function(){return i.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){var e=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){e.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var e=this;return(0,ji.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ti.h)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ti.h)(function(){return e._overlayAttached})):(0,qn.of)()).pipe((0,$n.U)(function(i){return i instanceof Vt.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,ji.T)((0,jd.R)(this._document,"click"),(0,jd.R)(this._document,"auxclick"),(0,jd.R)(this._document,"touchend")).pipe((0,ti.h)(function(i){var o=(0,Ii.sA)(i),a=e._formField?e._formField._elementRef.nativeElement:null,s=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&o!==e._element.nativeElement&&e._document.activeElement!==e._element.nativeElement&&(!a||!a.contains(o))&&(!s||!s.contains(o))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(o)}))}},{key:"writeValue",value:function(e){var i=this;Promise.resolve(null).then(function(){return i._assignOptionValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var i=e.keyCode,o=(0,Sr.Vb)(e);if(i===Sr.hY&&!o&&e.preventDefault(),this.activeOption&&i===Sr.K5&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var a=this.autocomplete._keyManager.activeItem,s=i===Sr.LH||i===Sr.JH;i===Sr.Mf||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}},{key:"_handleInput",value:function(e){var i=e.target,o=i.value;"number"===i.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,i=this._zone.onStable.pipe((0,Ei.q)(1)),o=this.autocomplete.options.changes.pipe((0,pa.b)(function(){return e._positionStrategy.reapplyLastPosition()}),(0,rz.g)(0));return(0,ji.T)(i,o).pipe((0,bo.w)(function(){return e._zone.run(function(){var a=e.panelOpen;e._resetActiveItem(),e.autocomplete._setVisibility(),e._changeDetectorRef.detectChanges(),e.panelOpen&&e._overlayRef.updatePosition(),a!==e.panelOpen&&(e.panelOpen?e.autocomplete.opened.emit():e.autocomplete.closed.emit())}),e.panelClosingActions}),(0,Ei.q)(1)).subscribe(function(a){return e._setValueAndClose(a)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_assignOptionValue",value:function(e){var i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(null!=i?i:"")}},{key:"_updateNativeInputValue",value:function(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}},{key:"_setValueAndClose",value:function(e){var i=e?e.source:this._pendingAutoselectedOption;i&&(this._clearPreviousSelectedOption(i),this._assignOptionValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(i){i!==e&&i.selected&&i.deselect()})}},{key:"_attachOverlay",value:function(){var i,e=this;this.autocomplete;var o=this._overlayRef;o?(this._positionStrategy.setOrigin(this._getConnectedElement()),o.updateSize({width:this._getPanelWidth()})):(this._portal=new uo.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(i=this._formField)||void 0===i?void 0:i.getLabelId()}),o=this._overlay.create(this._getOverlayConfig()),this._overlayRef=o,this._handleOverlayEvents(o),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&o&&o.updateSize({width:e._getPanelWidth()})})),o&&!o.hasAttached()&&(o.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var a=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&a!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new xi.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,Vt.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,Vt.jH)(s.offsetTop,s.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(l)}}}},{key:"_handleOverlayEvents",value:function(e){var i=this;e.keydownEvents().subscribe(function(o){var a;(o.keyCode===Sr.hY&&!(0,Sr.Vb)(o)||o.keyCode===Sr.LH&&(0,Sr.Vb)(o,"altKey"))&&(i._pendingAutoselectedOption&&(i._updateNativeInputValue(null!==(a=i._valueBeforeAutoSelection)&&void 0!==a?a:""),i._pendingAutoselectedOption=null),i._closeKeyEventStream.next(),i._resetActiveItem(),o.stopPropagation(),o.preventDefault())}),e.outsidePointerEvents().subscribe()}}]),n}();OI.\u0275fac=function(r){return new(r||OI)(t.Y36(t.SBq),t.Y36(xi.aV),t.Y36(t.s_b),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(tle),t.Y36(Ls.Is,8),t.Y36(kn.G_,9),t.Y36(ge.K0,8),t.Y36(ha.rL),t.Y36(ele,8))},OI.\u0275dir=t.lG2({type:OI,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[t.TTD]});var Qp=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){var i;return(0,H.Z)(this,e),(i=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",i}return(0,B.Z)(e)}(OI);Qp.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Qp)))(e||Qp)}}(),Qp.\u0275dir=t.lG2({type:Qp,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,e){1&r&&t.NdJ("focusin",function(){return e._handleFocus()})("blur",function(){return e._onTouched()})("input",function(o){return e._handleInput(o)})("keydown",function(o){return e._handleKeydown(o)})("click",function(){return e._handleClick()}),2&r&&t.uIk("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",e.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[t._Bn([fVe]),t.qOj]});var II=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.elementRef=r});II.\u0275fac=function(r){return new(r||II)(t.Y36(t.SBq))},II.\u0275dir=t.lG2({type:II});var PI=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(II);PI.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(PI)))(e||PI)}}(),PI.\u0275dir=t.lG2({type:PI,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"],features:[t.qOj]});var kT=(0,B.Z)(function n(){(0,H.Z)(this,n)});function pVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required"),t.qZA())}function hVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect"),t.qZA())}function mVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists"),t.qZA())}function _Ve(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required"),t.qZA())}function gVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid"),t.qZA())}function vVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"A password between 6 and 100 characters is required."),t.qZA())}function yVe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}function bVe(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function CVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",21)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"mat-icon",22),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteGroup(s))}),t._uU(5,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.name)}}kT.\u0275fac=function(r){return new(r||kT)},kT.\u0275mod=t.oAB({type:kT}),kT.\u0275inj=t.cJS({providers:[dVe],imports:[xi.U8,Vt.Ng,Vt.BQ,ge.ez,ha.ZD,Vt.Ng,Vt.BQ]});var RI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.userService=e,this.toasterService=i,this.groupService=o,this.groupsToAdd=new Set([]),this.autocompleteControl=new J.p4}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addUserForm=new J.nJ({username:new J.p4(null,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[Qse(this.controller,this.userService)]),full_name:new J.p4,email:new J.p4(null,[J.kI.email,J.kI.required],[Xse(this.controller,this.userService)]),password:new J.p4(null,[J.kI.required,J.kI.minLength(6),J.kI.maxLength(100)]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),is_active:new J.p4(!0)},{validators:[$se]}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i,e.filteredGroups=e.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.groups.filter(function(o){return o.name.toLowerCase().includes(i)})}}},{key:"form",get:function(){return this.addUserForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this;if(this.addUserForm.valid){var i=this.addUserForm.value,o=Array.from(this.groupsToAdd.values());this.userService.add(this.controller,i).subscribe(function(a){e.toasterService.success("User ".concat(a.username," added")),o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,s,a).subscribe(function(){e.toasterService.success("user ".concat(a.username," was added to group ").concat(s.name))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(a.username," to group ").concat(s.name))})}),e.dialogRef.close()},function(a){e.toasterService.error("Cannot create user : "+a)})}}},{key:"deleteGroup",value:function(e){this.groupsToAdd.delete(e)}},{key:"selectedGroup",value:function(e){this.groupsToAdd.add(e)}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}}]),n}();function wVe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.AsE("",e.username," ",e.full_name?"- "+e.full_name:"","")}}RI.\u0275fac=function(r){return new(r||RI)(t.Y36(cr),t.Y36(Zl),t.Y36(Ln),t.Y36(Sc))},RI.\u0275cmp=t.Xpm({type:RI,selectors:[["app-add-user-dialog"]],decls:40,vars:16,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["matInput","","type","password","formControlName","password","placeholder","Password"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["formControlName","is_active"],[1,"my-2"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"groups"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"groupList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new user"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2),t._UZ(4,"input",3),t.YNc(5,pVe,2,0,"mat-error",4),t.YNc(6,hVe,2,0,"mat-error",4),t.YNc(7,mVe,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"mat-form-field",2),t._UZ(9,"input",5),t.qZA(),t.TgZ(10,"mat-form-field",2),t._UZ(11,"input",6),t.YNc(12,_Ve,2,0,"mat-error",4),t.YNc(13,gVe,2,0,"mat-error",4),t.qZA(),t.TgZ(14,"mat-form-field",2),t._UZ(15,"input",7),t.YNc(16,vVe,2,0,"mat-error",4),t.qZA(),t.TgZ(17,"mat-form-field",2),t._UZ(18,"input",8),t.YNc(19,yVe,2,0,"mat-error",4),t.qZA(),t.TgZ(20,"mat-checkbox",9),t._uU(21,"Is active"),t.qZA(),t._UZ(22,"mat-divider",10),t.TgZ(23,"h6"),t._uU(24," Add user to groups : "),t.qZA(),t.TgZ(25,"mat-form-field",2)(26,"mat-label"),t._uU(27,"Groups"),t.qZA(),t._UZ(28,"input",11),t.TgZ(29,"mat-autocomplete",12,13),t.NdJ("optionSelected",function(a){return e.selectedGroup(a.option.value)}),t.YNc(31,bVe,2,2,"mat-option",14),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div",15),t.YNc(34,CVe,6,1,"div",16),t.qZA(),t.TgZ(35,"div",17)(36,"button",18),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(37,"Cancel"),t.qZA(),t.TgZ(38,"button",19),t.NdJ("click",function(){return e.onAddClick()}),t._uU(39," Add user "),t.qZA()()()),2&r){var i=t.MAs(30);t.xp6(2),t.Q6J("formGroup",e.addUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(3),t.Q6J("ngIf",(null==e.form.password?null:e.form.password.touched)&&(null==e.form.password?null:e.form.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.form.confirmPassword?null:e.form.confirmPassword.touched)&&(null==e.form.confirmPassword?null:e.form.confirmPassword.errors)),t.xp6(9),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(32,14,e.filteredGroups)),t.xp6(3),t.Q6J("ngForOf",e.groupsToAdd),t.xp6(4),t.Q6J("disabled",!e.addUserForm.valid)}},dependencies:[ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,cn,Dn,Kn,Cr,dr,$r,fm.d,Vt.ey,Jp,Qp,ge.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 TT=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();TT.\u0275fac=function(r){return new(r||TT)(t.Y36(cr),t.Y36(So))},TT.\u0275cmp=t.Xpm({type:TT,selectors:[["app-delete-user-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following users ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,wVe,2,2,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.users))},dependencies:[ge.sg,cn,Cr,dr],styles:[".button-div[_ngcontent-%COMP%]{float:right}ul[_ngcontent-%COMP%]{list-style-type:none}"]});var LI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.data.filter(function(o){return o.username&&o.username.toLowerCase().includes(i)||o.full_name&&o.full_name.toLowerCase().includes(i)||o.email&&o.email.toLowerCase().includes(i)})):e:[]}}]),n}();LI.\u0275fac=function(r){return new(r||LI)},LI.\u0275pipe=t.Yjl({name:"userFilter",type:LI,pure:!0});var kVe=["usersPaginator"],TVe=["usersSort"];function MVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",33)(1,"mat-checkbox",34),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function SVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"mat-checkbox",35),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function EVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Username"),t.qZA())}var xVe=function(r,e){return["/controller",r,"management","users",e]};function DVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",37),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,xVe,i.controller.id,e.user_id))("matTooltip",e.username),t.xp6(1),t.Oqu(e.username)}}function AVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Full Name"),t.qZA())}function OVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.full_name),t.xp6(1),t.Oqu(e.full_name)}}function IVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Mail"),t.qZA())}function PVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",38),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.email),t.xp6(1),t.Oqu(e.email)}}function RVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",39),t._uU(1," Active"),t.qZA())}function LVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",40),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.is_active)}}function ZVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Login"),t.qZA())}function NVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.last_login)}}function BVe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",36),t._uU(1," Last Update"),t.qZA())}function FVe(n,r){if(1&n&&(t.TgZ(0,"mat-cell",41),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.updated_at?e.updated_at:e.created_at)}}function UVe(n,r){1&n&&t._UZ(0,"mat-header-cell",33)}function HVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",33)(1,"button",42),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function jVe(n,r){1&n&&t._UZ(0,"mat-header-row")}function GVe(n,r){1&n&&t._UZ(0,"mat-row")}var zVe=function(){return{standalone:!0}},WVe=function(){return[5,10,20]};function VVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Users"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete Users "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addUser())}),t._uU(8," Add User "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"userFilter"),t.ynx(18,14),t.YNc(19,MVe,2,2,"mat-header-cell",15),t.YNc(20,SVe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,EVe,2,0,"mat-header-cell",18),t.YNc(23,DVe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,AVe,2,0,"mat-header-cell",18),t.YNc(26,OVe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,IVe,2,0,"mat-header-cell",18),t.YNc(29,PVe,3,2,"mat-cell",19),t.BQk(),t.ynx(30,22),t.YNc(31,RVe,2,0,"mat-header-cell",23),t.YNc(32,LVe,2,1,"mat-cell",24),t.BQk(),t.ynx(33,25),t.YNc(34,ZVe,2,0,"mat-header-cell",18),t.YNc(35,NVe,2,1,"mat-cell",26),t.BQk(),t.ynx(36,27),t.YNc(37,BVe,2,0,"mat-header-cell",18),t.YNc(38,FVe,2,1,"mat-cell",26),t.BQk(),t.ynx(39,28),t.YNc(40,UVe,1,0,"mat-header-cell",15),t.YNc(41,HVe,4,0,"mat-cell",16),t.BQk(),t.YNc(42,jVe,1,0,"mat-header-row",29),t.YNc(43,GVe,1,0,"mat-row",30),t.qZA(),t._UZ(44,"mat-paginator",31,32),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,zVe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(28),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,WVe))}}function YVe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var ZI=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.router=e,this.userService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","username","full_name","email","is_active","last_login","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.usersPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.usersSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"username":case"full_name":case"email":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.userService.list(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addUser",value:function(){var e=this,i=this.dialog.open(RI,{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(TT,{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(TT,{width:"500px",data:{users:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.userService.delete(e.controller,o.user_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete user ".concat(o.username))})}),e.selection.clear())})}}]),n}();function KVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-card")(1,"mat-list")(2,"mat-list-item"),t._uU(3),t.qZA(),t.TgZ(4,"mat-list-item"),t._uU(5),t.qZA(),t.TgZ(6,"mat-list-item"),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.copyToken())}),t._uU(10,"Click to copy access token"),t.qZA(),t._UZ(11,"br"),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(3),t.hij(" Username: ",i.user.username," "),t.xp6(2),t.hij(" Full name: ",i.user.full_name," "),t.xp6(2),t.hij(" Email: ",i.user.email," ")}}ZI.\u0275fac=function(r){return new(r||ZI)(t.Y36(pr),t.Y36(ur),t.Y36(Zl),t.Y36(Ml),t.Y36(rr),t.Y36(jr),t.Y36(Ln))},ZI.\u0275cmp=t.Xpm({type:ZI,selectors:[["app-user-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(kVe,5),t.Gf(TVe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.usersPaginator=i),t.iGM(i=t.CRH())&&(e.usersSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by username, full name or email",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","usersSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","username"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","full_name"],["matColumnDef","email"],["matColumnDef","is_active"],["mat-sort-header","","class","active-col",4,"matHeaderCellDef"],["class","active-col",4,"matCellDef"],["matColumnDef","last_login"],["class","overflow-col",4,"matCellDef"],["matColumnDef","updated_at"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["usersPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-sort-header","",1,"active-col"],[1,"active-col"],[1,"overflow-col"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,VVe,46,12,"div",0),t.YNc(1,YVe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,$r,zu,yf,ui,LI],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px;white-space:pre-line}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var NI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.userService=i,this.toasterService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.userService.getInformationAboutLoggedUser(o).subscribe(function(a){e.user=a})})}},{key:"copyToken",value:function(){var e=document.createElement("textarea");e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.opacity="0",e.value=this.controller.authToken,document.body.appendChild(e),e.focus(),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.toasterService.success("Token copied")}}]),n}();NI.\u0275fac=function(r){return new(r||NI)(t.Y36(pr),t.Y36(rr),t.Y36(Zl),t.Y36(Ln))},NI.\u0275cmp=t.Xpm({type:NI,selectors:[["app-logged-user"]],decls:7,vars:1,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[4,"ngIf"],[1,"buttons-bar"],["mat-raised-button","","color","primary",1,"full_width",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),t._uU(4,"Logged in user info"),t.qZA()()(),t.TgZ(5,"div",4),t.YNc(6,KVe,12,3,"mat-card",5),t.qZA()()),2&r&&(t.xp6(6),t.Q6J("ngIf",e.user))},dependencies:[ge.O5,cn,ai,pm,Aa],styles:[".full_width[_ngcontent-%COMP%]{width:100%}"]});var _v=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getImages",value:function(e){return this.httpController.get(e,"/images")}},{key:"getImagePath",value:function(e,i,o){return"".concat(e.protocol,"//").concat(e.host,":").concat(e.port,"/").concat(Wa.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(Wa.N.current_version,"/images/upload/").concat(o)}},{key:"uploadedImage",value:function(e,i,o,a){return this.httpController.post(e,"/images/upload/".concat(o,"?install_appliances=").concat(i),a)}},{key:"deleteFile",value:function(e,i){return this.httpController.delete(e,"/images/".concat(i))}}]),n}();function qVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h5"),t._uU(4,"Would you like to automatically install appliances for this image?"),t.qZA()(),t.TgZ(5,"div",3)(6,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(7,"mat-icon"),t._uU(8,"close"),t.qZA()()()(),t.TgZ(9,"div",5)(10,"mat-radio-group",6),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.selectInstallApplianceOption(a))}),t.TgZ(11,"mat-radio-button",7),t._uU(12," Yes "),t.qZA(),t.TgZ(13,"mat-radio-button",8),t._uU(14," No "),t.qZA()()(),t.TgZ(15,"div",9)(16,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.isInstallAppliance=!a.isInstallAppliance)}),t._uU(17,"Next"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(10),t.Q6J("value",i.install_appliance),t.xp6(1),t.Q6J("checked",i.install_appliance),t.xp6(2),t.Q6J("checked",!i.install_appliance)}}function JVe(n,r){1&n&&(t.TgZ(0,"h5"),t._uU(1,"Please Select image"),t.qZA())}function QVe(n,r){1&n&&(t.TgZ(0,"p",17),t._uU(1,"Uploaded image details"),t.qZA())}function XVe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"input",19,20),t.NdJ("onFileSelected",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(s.uploadImageFile(a))}),t.qZA(),t.TgZ(3,"button",21),t.NdJ("click",function(){t.CHM(e);var a=t.MAs(2);return t.KtG(a.click())}),t._uU(4,"Browse"),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("uploader",i.uploaderImage)}}function $Ve(n,r){if(1&n&&t._UZ(0,"mat-progress-bar",26),2&n){var e=t.oxw(4);t.Q6J("value",e.uploadProgress.progress)}}function eYe(n,r){1&n&&t._UZ(0,"mat-progress-bar",26),2&n&&t.Q6J("value",0)}function tYe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,$Ve,1,1,"mat-progress-bar",25),t.YNc(2,eYe,1,1,"mat-progress-bar",25),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-4"),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==i.uploadProgress.some?null:i.uploadProgress.some.name)),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==i.uploadProgress.some?null:i.uploadProgress.some.name)&&!e.isUploaded)}}function nYe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Tol(e.isError||e.isUploaded?"col-md-1":"col-md-2"),t.xp6(1),t.hij(" ",i.uploadProgress.progress+" %"," ")}}function rYe(n,r){1&n&&(t.TgZ(0,"div",27),t._uU(1),t.qZA()),2&n&&(t.xp6(1),t.hij(" ","0 %"," "))}_v.\u0275fac=function(r){return new(r||_v)(t.LFG(mo.zw))},_v.\u0275prov=t.Yz7({token:_v,factory:_v.\u0275fac,providedIn:"root"});var iYe=function(r){return{"uploaded-error-text":r}};function oYe(n,r){if(1&n&&(t.TgZ(0,"div",1)(1,"div")(2,"mat-title",22),t._uU(3),t.qZA()(),t.YNc(4,tYe,3,5,"div",23),t.YNc(5,nYe,2,4,"div",23),t.YNc(6,rYe,2,1,"div",24),t.qZA()),2&n){var e=r.$implicit,i=r.index,o=t.oxw(2);t.xp6(1),t.Tol(e.isError||e.isUploaded?"col-md-10":"col-md-6"),t.xp6(1),t.Q6J("ngClass",t.VKq(11,iYe,e.isError)),t.xp6(1),t.HOy(" ",i+1,". ",e.isError?"Image ":""," ",null==e||null==e.some?null:e.some.name," ",e.isError?" already exists":""," "),t.xp6(1),t.Q6J("ngIf",!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)===(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!e.isUploaded),t.xp6(1),t.Q6J("ngIf",(null==e||null==e.some?null:e.some.name)!==(null==o.uploadProgress.some?null:o.uploadProgress.some.name)&&e.isReady&&!o.uploadProgress.isUploaded)}}function aYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.uploaderImage.queue.length>0?o.cancelUploading():o.dialogRef.close(!1))}),t._uU(2," Cancel "),t.qZA()()}}function sYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",11)(2,"div",12),t.YNc(3,JVe,2,0,"h5",0),t.YNc(4,QVe,2,0,"p",13),t.qZA(),t.YNc(5,XVe,5,1,"div",14),t.TgZ(6,"div")(7,"button",4),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close())}),t.TgZ(8,"mat-icon"),t._uU(9,"close"),t.qZA()()()(),t.YNc(10,oYe,7,13,"div",15),t.YNc(11,aYe,3,0,"div",16),t.qZA()}if(2&n){var i=t.oxw();t.xp6(3),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length<=0),t.xp6(1),t.Gre("",i.uploaderImage.queue.length>0?"col-md-6 txt-align":"col-md-2 txt-align"," "),t.xp6(4),t.Q6J("ngForOf",i.uploaderImage.queue),t.xp6(1),t.Q6J("ngIf",i.uploaderImage.queue.length>0&&!i.uploadProgress.isUploaded)}}var BI=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.data=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.uploadServiceService=a,this.isInstallAppliance=!1,this.install_appliance=!1,this.selectFile=[],this.uploadProgress=0}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data,this.uploaderImage=new wg({url:""}),this.uploaderImage.onAfterAddingFile=function(i){i.withCredentials=!1},this.uploaderImage.onErrorItem=function(i,o,a,s){var l={name:i.file.name,message:JSON.parse(o)};e.toasterService.error(null==l?void 0:l.message.message)},this.uploaderImage.onSuccessItem=function(i,o,a,s){var l={filename:i.file.name,message:JSON.parse(o)};e.toasterService.success("Image "+(null==l?void 0:l.message.filename)+" imported succesfully")},this.uploaderImage.onProgressItem=function(i){e.uploadProgress=i}}},{key:"cancelUploading",value:function(){this.uploaderImage.clearQueue(),this.dialogRef.close(),this.uploadServiceService.processBarCount(null),this.toasterService.warning("Image file Uploading canceled")}},{key:"selectInstallApplianceOption",value:function(e){this.install_appliance=e.value}},{key:"uploadImageFile",value:function(e){return yi(this,void 0,void 0,Rn().mark(function i(){var o,a,s;return Rn().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:o=(0,xn.Z)(e);try{for(o.s();!(a=o.n()).done;)s=a.value,this.selectFile.push(s)}catch(d){o.e(d)}finally{o.f()}return u.next=4,this.importImageFile();case 4:case"end":return u.stop()}},i,this)}))}},{key:"importImageFile",value:function(){var e=this;this.selectFile.forEach(function(i,o){var a=i.name,s=i,l=new FileReader;l.onloadend=function(){var u=e.imageService.getImagePath(e.controller,e.install_appliance,a),d=e.uploaderImage.queue[o];d.url=u,d.options&&(d.options.disableMultipart=!0),d.options.headers=[{name:"Authorization",value:"Bearer "+e.controller.authToken}],e.uploaderImage.uploadItem(d)},l.readAsText(s)})}}]),n}();function lYe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=r.index;t.xp6(1),t.AsE("",i+1,". ",null==e?null:e.filename,"")}}function uYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"h1",1),t._uU(2,"Do you want delete all files ?."),t.qZA(),t.TgZ(3,"div",2)(4,"p"),t._uU(5,"Your selected files"),t.qZA(),t.YNc(6,lYe,2,2,"p",3),t.qZA(),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteAll())}),t._uU(9,"Delete"),t.qZA(),t.TgZ(10,"button",6),t._uU(11,"Cancel"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(6),t.Q6J("ngForOf",null==i.deleteData?null:i.deleteData.deleteFilesPaths)}}function cYe(n,r){1&n&&(t.TgZ(0,"div")(1,"h1",7),t._uU(2,"Please wait."),t.qZA(),t.TgZ(3,"div",8),t._UZ(4,"mat-spinner",9),t.qZA()())}function dYe(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){var e=t.oxw(),i=e.index,o=e.$implicit;t.xp6(1),t.AsE("",i+1,". ",null==o||null==o.error?null:o.error.message,"")}}BI.\u0275fac=function(r){return new(r||BI)(t.Y36(So),t.Y36(cr),t.Y36(_v),t.Y36(Ln),t.Y36(id))},BI.\u0275cmp=t.Xpm({type:BI,selectors:[["app-add-image-dialog"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"row"],[1,"col-md-10"],[1,"col-md-2","txt-align"],["mat-button","",3,"click"],["mat-dialog-content",""],["name","install_appliances",1,"choose-instal-appliance",3,"value","change"],["value","true",1,"instal-appliances-button",3,"checked"],["value","false",1,"instal-appliances-button",3,"checked"],["mat-dialog-actions","","align","end"],["mat-raised-button","","color","primary",3,"click"],[1,"row",2,"display","flex"],[1,"col-md-6"],["class","uploaded-text",4,"ngIf"],["class","col-md-4 txt-align",4,"ngIf"],["class","row",4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end",4,"ngIf"],[1,"uploaded-text"],[1,"col-md-4","txt-align"],["type","file","accept",".bin,.image,.qcow2,.vmdk","multiple","","ng2FileSelect","",1,"non-visible",3,"uploader","onFileSelected"],["file",""],["mat-raised-button","","color","primary",1,"file-button",3,"click"],[3,"ngClass"],[3,"class",4,"ngIf"],["class","col-md-2",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value",4,"ngIf"],["mode","determinate","aria-valuemin","0","aria-valuemax","100",3,"value"],[1,"col-md-2"]],template:function(r,e){1&r&&(t.YNc(0,qVe,18,3,"div",0),t.YNc(1,sYe,12,8,"div",0)),2&r&&(t.Q6J("ngIf",!e.isInstallAppliance),t.xp6(1),t.Q6J("ngIf",e.isInstallAppliance))},dependencies:[ge.mk,ge.sg,ge.O5,Mp,cn,Dn,du,dr,ab,ns,js],styles:[".progress-bar[_ngcontent-%COMP%]{padding:0}.progress[_ngcontent-%COMP%]{width:50px;background-color:#263238;height:28px;margin-left:13px}.mat-input-element[_ngcontent-%COMP%]{font-size:medium;font-weight:200}#fileInput[_ngcontent-%COMP%]{position:absolute;cursor:pointer;z-index:10;opacity:0;height:100%;left:0;top:0}.mat-toolbar-single-row[_ngcontent-%COMP%]{height:auto;background:transparent;padding:0}.mat-toolbar-single-row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px}.mat-form-field[_ngcontent-%COMP%]{width:100%}.message[_ngcontent-%COMP%]{background-color:#ddd;padding:15px;color:#333;border:#aaa solid 1px;border-radius:4px;margin:15px 0}.preview[_ngcontent-%COMP%]{max-width:200px;vertical-align:middle}.list-card[_ngcontent-%COMP%]{margin-top:20px}.list-item[_ngcontent-%COMP%]{margin-bottom:20px}.non-visible[_ngcontent-%COMP%]{display:none}mat-progress-bar[_ngcontent-%COMP%]{margin-top:10px}.txt-align[_ngcontent-%COMP%]{text-align:end}.uploaded-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.uploaded-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}.choose-instal-appliance[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:15px 0 11px;align-items:flex-start}.instal-appliances-button[_ngcontent-%COMP%]{margin:11px}"],data:{animation:[(0,Rt.X$)("detailExpand",[(0,Rt.SB)("collapsed",(0,Rt.oB)({height:"0px",minHeight:"0",visibility:"hidden"})),(0,Rt.SB)("expanded",(0,Rt.oB)({height:"*",visibility:"visible"})),(0,Rt.eR)("expanded <=> collapsed",(0,Rt.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}});var fYe=function(r){return{"deleted-error-text":r}};function pYe(n,r){if(1&n&&(t.TgZ(0,"p",12),t.YNc(1,dYe,2,2,"span",0),t.qZA()),2&n){var e=r.$implicit;t.Q6J("ngClass",t.VKq(2,fYe,null==e||null==e.error?null:e.error.message)),t.xp6(1),t.Q6J("ngIf",null!=e)}}function hYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5"),t._uU(2,"Images can't be deleted because image used in one or more template."),t.qZA(),t.YNc(3,pYe,2,4,"p",11),t.qZA()),2&n){var e=t.oxw(2);t.xp6(3),t.Q6J("ngForOf",e.deleteFliesDetails)}}function mYe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"h5",13),t._uU(2),t.qZA()()),2&n){var e=t.oxw(2);t.xp6(2),t.hij("",e.fileNotDeleted.length," Images deleted successfully.")}}function _Ye(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,hYe,4,1,"div",0),t.YNc(3,mYe,3,1,"div",0),t.qZA(),t.TgZ(4,"div",4)(5,"button",10),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.dialogRef.close(!1))}),t._uU(6,"Close"),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(2),t.Q6J("ngIf",i.deleteFliesDetails.length>0),t.xp6(1),t.Q6J("ngIf",i.fileNotDeleted.length>0)}}var FI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.deleteData=r,this.dialogRef=e,this.imageService=i,this.toasterService=o,this.isDelete=!1,this.isUsedFiles=!1,this.deleteFliesDetails=[],this.fileNotDeleted=[]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"deleteAll",value:function(){return yi(this,void 0,void 0,Rn().mark(function e(){return Rn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return this.isDelete=!0,o.next=3,this.deleteFile();case 3:case"end":return o.stop()}},e,this)}))}},{key:"deleteFile",value:function(){var e=this,i=[];this.deleteData.deleteFilesPaths.forEach(function(o){i.push(e.imageService.deleteFile(e.deleteData.controller,o.filename).pipe((0,Xc.K)(function(a){return(0,qn.of)(a)})))}),$i.y.forkJoin(i).subscribe(function(o){e.deleteFliesDetails=o.filter(function(a){return null!==a}),e.fileNotDeleted=o.filter(function(a){return null===a}),e.isUsedFiles=!0,e.isDelete=!0})}}]),n}();FI.\u0275fac=function(r){return new(r||FI)(t.Y36(So),t.Y36(cr),t.Y36(_v),t.Y36(Ln))},FI.\u0275cmp=t.Xpm({type:FI,selectors:[["app-deleteallfiles-dialog"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"],["mat-button","","mat-dialog-close","","cdkFocusInitial",""],["align","center","mat-dialog-title",""],["mat-dialog-content","","align","center"],["color","accent"],["mat-raised-button","","color","primary",3,"click"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"delete-text"]],template:function(r,e){1&r&&(t.YNc(0,uYe,12,1,"div",0),t.YNc(1,cYe,5,0,"div",0),t.YNc(2,_Ye,7,2,"div",0)),2&r&&(t.Q6J("ngIf",!e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&!e.isUsedFiles),t.xp6(1),t.Q6J("ngIf",e.isDelete&&e.isUsedFiles))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Eg,Cr,du,dr,lu],styles:[".delete-text[_ngcontent-%COMP%]{color:#0ca8c7;font-size:17px}.deleted-error-text[_ngcontent-%COMP%]{color:#d52435;font-weight:600}"]});var gYe=function(){function n(){(0,H.Z)(this,n),this.dataChange=new to.X([])}return(0,B.Z)(n,[{key:"data",get:function(){return this.dataChange.value}},{key:"addImages",value:function(e){this.dataChange.next(e)}}]),n}(),vYe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).controllerDatabase=i,o}return(0,B.Z)(e,[{key:"connect",value:function(){var o=this;return(0,ji.T)(this.controllerDatabase.dataChange).pipe((0,$n.U)(function(){return o.controllerDatabase.data}))}},{key:"disconnect",value:function(){}}]),e}(Ci.o2);function yYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell")(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw();return t.KtG(a?s.selectAllImages():null)}),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function bYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell")(1,"mat-checkbox",20),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw();return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function CYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," File Name "),t.qZA())}function wYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"mat-list-item",21),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(2),t.Oqu(e.filename)}}function kYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Type "),t.qZA())}function TYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.image_type," ")}}function MYe(n,r){1&n&&(t.TgZ(0,"mat-header-cell"),t._uU(1," Image Size "),t.qZA())}function SYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",(e.image_size/1e6).toFixed()," MB ")}}function EYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.deleteAllFiles())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function xYe(n,r){if(1&n&&(t.TgZ(0,"mat-header-cell"),t.YNc(1,EYe,3,0,"button",22),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selection.hasValue()&&e.isAllSelected()||e.selection.selected.length>1)}}function DYe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.deleteFile(o.path))}),t.TgZ(1,"mat-icon"),t._uU(2,"delete"),t.qZA()()}}function AYe(n,r){if(1&n&&(t.TgZ(0,"mat-cell"),t.YNc(1,DYe,3,0,"button",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.selection.isSelected(e))}}function OYe(n,r){1&n&&t._UZ(0,"mat-header-row")}function IYe(n,r){1&n&&t._UZ(0,"mat-row")}var UI=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.imageService=r,this.progressService=e,this.route=i,this.controllerService=o,this.versionService=a,this.dialog=s,this.toasterService=l,this.imageDatabase=new gYe,this.isAllDelete=!1,this.selection=new Ci.Ov(!0,[]),this.displayedColumns=["select","filename","image_type","image_size","delete"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=parseInt(this.route.snapshot.paramMap.get("controller_id"));this.controllerService.get(i).then(function(o){e.controller=o,o.authToken&&e.getImages()}),this.dataSource=new vYe(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(BI,{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(FI,{width:"550px",maxHeight:"650px",autoFocus:!1,disableClose:!0,data:{controller:this.controller,deleteFilesPaths:this.selection.selected}}).afterClosed().subscribe(function(o){if(!o)return e.unChecked(),e.getImages(),!1;e.unChecked(),e.getImages(),e.toasterService.success("All files deleted")})}}]),n}();function PYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password must be between 6 and 100 characters. "),t.qZA())}function RYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Password and Confirm password must be the same. "),t.qZA())}UI.\u0275fac=function(r){return new(r||UI)(t.Y36(_v),t.Y36(Ml),t.Y36(pr),t.Y36(rr),t.Y36(mm),t.Y36(jr),t.Y36(Ln))},UI.\u0275cmp=t.Xpm({type:UI,selectors:[["app-image-manager"]],decls:33,vars:3,consts:[[1,"content"],[1,"default-header"],[1,"row"],[1,"col-md-9"],[1,"col-md-3","btn-box"],["mat-button","",1,"img-btn",3,"click"],[1,"default-content"],[1,"mat-elevation-z8"],[3,"dataSource"],["table",""],["matColumnDef","select"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","filename"],["matColumnDef","image_type"],["matColumnDef","image_size"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["role","listitem"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click",4,"ngIf"],["mat-button","","aria-label","Example icon button with a delete icon",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),t._uU(5,"Image Manager"),t.qZA()(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return e.addImageDialog()}),t.TgZ(8,"mat-icon"),t._uU(9,"add"),t.qZA(),t._uU(10," Add Image "),t.qZA()()()(),t.TgZ(11,"div",6),t._UZ(12,"app-controller-discovery"),t.TgZ(13,"div",7)(14,"mat-table",8,9),t.ynx(16,10),t.YNc(17,yYe,2,2,"mat-header-cell",11),t.YNc(18,bYe,2,1,"mat-cell",12),t.BQk(),t.ynx(19,13),t.YNc(20,CYe,2,0,"mat-header-cell",11),t.YNc(21,wYe,3,1,"mat-cell",12),t.BQk(),t.ynx(22,14),t.YNc(23,kYe,2,0,"mat-header-cell",11),t.YNc(24,TYe,2,1,"mat-cell",12),t.BQk(),t.ynx(25,15),t.YNc(26,MYe,2,0,"mat-header-cell",11),t.YNc(27,SYe,2,1,"mat-cell",12),t.BQk(),t.ynx(28,16),t.YNc(29,xYe,2,1,"mat-header-cell",11),t.YNc(30,AYe,2,1,"mat-cell",12),t.BQk(),t.YNc(31,OYe,1,0,"mat-header-row",17),t.YNc(32,IYe,1,0,"mat-row",18),t.qZA()()()()),2&r&&(t.xp6(14),t.Q6J("dataSource",e.dataSource),t.xp6(17),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns))},dependencies:[ge.O5,cn,Dn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,$r,Aa,_T],styles:[".non-visible[_ngcontent-%COMP%]{display:none}.img-btn[_ngcontent-%COMP%]{margin:auto}.btn-box[_ngcontent-%COMP%]{display:flex;margin-top:10px}mat-header-cell[_ngcontent-%COMP%], mat-cell[_ngcontent-%COMP%]{justify-content:center}mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%], mat-footer-cell[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;overflow:initial;min-height:inherit}"]});var HI=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.userService=i,this.toasterService=o}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.user=this.data.user,this.editPasswordForm=new J.nJ({password:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required]),confirmPassword:new J.p4(null,[J.kI.minLength(6),J.kI.maxLength(100),J.kI.required])},{validators:[$se]})}},{key:"passwordForm",get:function(){return this.editPasswordForm.controls}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onPasswordSave",value:function(){var e=this;if(this.editPasswordForm.valid){var i={};i.password=this.editPasswordForm.get("password").value,i.user_id=this.user.user_id,console.log(i),this.userService.update(this.data.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," password updated")),e.editPasswordForm.reset(),e.dialogRef.close(!0)},function(o){e.toasterService.error("Cannot update password for user : "+o)})}}}]),n}();HI.\u0275fac=function(r){return new(r||HI)(t.Y36(cr),t.Y36(So),t.Y36(Zl),t.Y36(Ln))},HI.\u0275cmp=t.Xpm({type:HI,selectors:[["app-change-user-password"]],decls:15,vars:4,consts:[["mat-dialog-title",""],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","password","formControlName","password","placeholder","Password"],[4,"ngIf"],["matInput","","type","password","formControlName","confirmPassword","placeholder","Confirm Password"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"disabled","click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Change password for user : "),t.qZA(),t.TgZ(2,"div")(3,"form",1)(4,"mat-form-field",2),t._UZ(5,"input",3),t.YNc(6,PYe,2,0,"mat-error",4),t.qZA(),t.TgZ(7,"mat-form-field",2),t._UZ(8,"input",5),t.YNc(9,RYe,2,0,"mat-error",4),t.qZA(),t.TgZ(10,"div",6)(11,"button",7),t.NdJ("click",function(){return e.onCancel()}),t._uU(12,"Cancel"),t.qZA(),t.TgZ(13,"button",8),t.NdJ("click",function(){return e.onPasswordSave()}),t._uU(14," Change password "),t.qZA()()()()),2&r&&(t.xp6(3),t.Q6J("formGroup",e.editPasswordForm),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.password?null:e.passwordForm.password.touched)&&(null==e.passwordForm.password?null:e.passwordForm.password.errors)),t.xp6(3),t.Q6J("ngIf",(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.touched)&&(null==e.passwordForm.confirmPassword?null:e.passwordForm.confirmPassword.errors)),t.xp6(4),t.Q6J("disabled",!e.editPasswordForm.valid))},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}"]});var bf=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"getEndpoints",value:function(e){return this.httpController.get(e,"/access/acl/endpoints")}},{key:"list",value:function(e){return this.httpController.get(e,"/access/acl")}},{key:"add",value:function(e,i){return this.httpController.post(e,"/access/acl",i)}},{key:"get",value:function(e,i){return this.httpController.get(e,"/access/acl/".concat(i))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/acl/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/acl/".concat(i.ace_id),i)}}]),n}();bf.\u0275fac=function(r){return new(r||bf)(t.LFG(mo.zw))},bf.\u0275prov=t.Yz7({token:bf,factory:bf.\u0275fac,providedIn:"root"});var Cf=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/roles")}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/access/roles/".concat(i))}},{key:"create",value:function(e,i){return this.httpController.post(e,"/access/roles",i)}},{key:"getById",value:function(e,i){return this.httpController.get(e,"/access/roles/".concat(i))}},{key:"update",value:function(e,i){return this.httpController.put(e,"/access/roles/".concat(i.role_id),{name:i.name,description:i.description})}},{key:"setPrivileges",value:function(e,i,o){return this.httpController.put(e,"/access/roles/".concat(i,"/privileges/").concat(o),void 0)}},{key:"removePrivileges",value:function(e,i,o){return this.httpController.delete(e,"/access/roles/".concat(i,"/privileges/").concat(o))}}]),n}();function LYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is required "),t.qZA())}function ZYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Username is incorrect "),t.qZA())}function NYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this username exists "),t.qZA())}function BYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is required "),t.qZA())}function FYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Email is invalid "),t.qZA())}function UYe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"User with this email exists "),t.qZA())}Cf.\u0275fac=function(r){return new(r||Cf)(t.LFG(mo.zw))},Cf.\u0275prov=t.Yz7({token:Cf,factory:Cf.\u0275fac,providedIn:"root"});var HYe=function(r,e){return["/controller",r,"management","groups",e]};function jYe(n,r){if(1&n&&(t.TgZ(0,"li")(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,HYe,i.controller.id,e.user_group_id)),t.xp6(1),t.Oqu(e.name)}}function GYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Endpoint "),t.qZA())}function zYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function WYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Role "),t.qZA())}function VYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function YYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Propagate "),t.qZA())}function KYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function qYe(n,r){1&n&&(t.TgZ(0,"th",34),t._uU(1," Allowed "),t.qZA())}function JYe(n,r){if(1&n&&(t.TgZ(0,"td",35),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function QYe(n,r){1&n&&t._UZ(0,"tr",36)}function XYe(n,r){1&n&&t._UZ(0,"tr",37)}var $Ye=function(r){return["/controller",r,"management","users"]},jI=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.userService=r,this.toasterService=e,this.route=i,this.router=o,this.dialog=a,this.aclService=s,this.roleService=l,this.changingPassword=!1,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.route.snapshot.data.controller,this.controller||this.router.navigate(["/controllers"]),this.route.data.subscribe(function(i){e.user=i.user,e.user_id=e.user.user_id,e.groups=i.groups,e.aces=i.aces,e.initForm(),e.roleService.get(e.controller).subscribe(function(o){e.aclService.getEndpoints(e.controller).subscribe(function(a){e.aceDatasource.data=e.aces.map(function(s){var l=a.filter(function(d){return d.endpoint===s.path})[0],u=o.filter(function(d){return d.role_id===s.role_id})[0];return Object.assign(Object.assign({},s),{endpoint_name:l.name,role_name:u.name})})})})})}},{key:"initForm",value:function(){this.editUserForm=new J.nJ({username:new J.p4(this.user.username,[J.kI.required,J.kI.minLength(3),J.kI.pattern("[a-zA-Z0-9_-]+$")],[Qse(this.controller,this.userService,this.user.username)]),full_name:new J.p4(this.user.full_name),email:new J.p4(this.user.email,[J.kI.email,J.kI.required],[Xse(this.controller,this.userService,this.user.email)]),is_active:new J.p4(this.user.is_active)})}},{key:"form",get:function(){return this.editUserForm.controls}},{key:"onEditClick",value:function(){var e=this;if(this.editUserForm.valid){var i=this.getUpdatedValues();i.user_id=this.user.user_id,this.userService.update(this.controller,i).subscribe(function(o){e.toasterService.success("User ".concat(o.username," updated"))},function(o){e.toasterService.error("Cannot update user : "+o)})}}},{key:"getUpdatedValues",value:function(){var e=this,i={};return Object.keys(this.editUserForm.controls).forEach(function(o){var a=e.editUserForm.get(o);a.dirty&&a.value!==e.user[o]&&(i[o]=a.value)}),i}},{key:"onChangePassword",value:function(){this.dialog.open(HI,{width:"400px",height:"300px",data:{user:this.user,controller:this.controller}})}}]),n}();jI.\u0275fac=function(r){return new(r||jI)(t.Y36(Zl),t.Y36(Ln),t.Y36(pr),t.Y36(ur),t.Y36(jr),t.Y36(bf),t.Y36(Cf))},jI.\u0275cmp=t.Xpm({type:jI,selectors:[["app-user-detail"]],decls:65,vars:21,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to user management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to user management"],[1,"col"],[1,"default-content"],["label","Details",1,"details"],[1,"user-edit"],[1,"input-field",3,"formGroup"],[1,"input-field"],["matInput","","type","text","formControlName","username","placeholder","Username"],[4,"ngIf"],["matInput","","type","text","formControlName","full_name","placeholder","Full name"],["matInput","","type","text","formControlName","email","placeholder","Email"],["formControlName","is_active"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],["label","Groups"],[1,"user-groups"],[4,"ngFor","ngForOf"],["label","ACEs"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()()(),t.TgZ(8,"div",6)(9,"mat-tab-group")(10,"mat-tab",7)(11,"div",8)(12,"form",9)(13,"mat-form-field",10),t._UZ(14,"input",11),t.YNc(15,LYe,2,0,"mat-error",12),t.YNc(16,ZYe,2,0,"mat-error",12),t.YNc(17,NYe,2,0,"mat-error",12),t.qZA(),t.TgZ(18,"mat-form-field",10),t._UZ(19,"input",13),t.qZA(),t.TgZ(20,"mat-form-field",10),t._UZ(21,"input",14),t.YNc(22,BYe,2,0,"mat-error",12),t.YNc(23,FYe,2,0,"mat-error",12),t.YNc(24,UYe,2,0,"mat-error",12),t.qZA(),t.TgZ(25,"mat-checkbox",15),t._uU(26,"Is active"),t.qZA(),t.TgZ(27,"div")(28,"mat-checkbox",16),t._uU(29,"Is Superadmin"),t.qZA()(),t.TgZ(30,"div",17)(31,"button",18),t.NdJ("click",function(){return e.onEditClick()}),t._uU(32," Edit user "),t.qZA()()(),t.TgZ(33,"button",19),t.NdJ("click",function(){return e.onChangePassword()}),t._uU(34," Change Password "),t.qZA(),t.TgZ(35,"div")(36,"div"),t._uU(37),t.qZA(),t.TgZ(38,"div"),t._uU(39),t.qZA(),t.TgZ(40,"div"),t._uU(41),t.qZA(),t.TgZ(42,"div"),t._uU(43),t.qZA()()()(),t.TgZ(44,"mat-tab",20)(45,"div",21)(46,"ul"),t.YNc(47,jYe,3,5,"li",22),t.qZA()()(),t.TgZ(48,"mat-tab",23)(49,"div",6)(50,"table",24),t.ynx(51,25),t.YNc(52,GYe,2,0,"th",26),t.YNc(53,zYe,2,1,"td",27),t.BQk(),t.ynx(54,28),t.YNc(55,WYe,2,0,"th",26),t.YNc(56,VYe,2,1,"td",27),t.BQk(),t.ynx(57,29),t.YNc(58,YYe,2,0,"th",26),t.YNc(59,KYe,2,1,"td",27),t.BQk(),t.ynx(60,30),t.YNc(61,qYe,2,0,"th",26),t.YNc(62,JYe,2,1,"td",27),t.BQk(),t.YNc(63,QYe,1,0,"tr",31),t.YNc(64,XYe,1,0,"tr",32),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(19,$Ye,e.controller.id)),t.xp6(4),t.hij("User ",e.user.username,""),t.xp6(5),t.Q6J("formGroup",e.editUserForm),t.xp6(3),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.touched)&&(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.pattern)),t.xp6(1),t.Q6J("ngIf",(null==e.form.username?null:e.form.username.errors)&&(null==e.form.username?null:e.form.username.errors.userExists)),t.xp6(5),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.touched)&&(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.email)),t.xp6(1),t.Q6J("ngIf",(null==e.form.email?null:e.form.email.errors)&&(null==e.form.email?null:e.form.email.errors.emailExists)),t.xp6(4),t.Q6J("checked",e.user.is_superadmin),t.xp6(3),t.Q6J("disabled",!e.editUserForm.valid),t.xp6(6),t.hij("Creation date: ",e.user.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.user.updated_at,""),t.xp6(2),t.hij("Last login: ",e.user.last_login,""),t.xp6(2),t.hij("UUID: ",e.user.user_id,""),t.xp6(4),t.Q6J("ngForOf",e.groups),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[ge.sg,ge.O5,Wo,Us,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,dr,$r,ui,Zi.SP,Zi.uX],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.button-div[_ngcontent-%COMP%]{float:right}table[_ngcontent-%COMP%]{width:100%}"]});var MT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.userService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();function eKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"a",2,3),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.activeLink=l)}),t._uU(2),t.qZA()}if(2&n){var i=r.$implicit,o=t.MAs(1);t.MGl("routerLink","./",i,""),t.Q6J("active",o.isActive),t.xp6(2),t.hij("",i.charAt(0).toUpperCase()+i.slice(1)," ")}}MT.\u0275fac=function(r){return new(r||MT)(t.LFG(rr),t.LFG(Zl))},MT.\u0275prov=t.Yz7({token:MT,factory:MT.\u0275fac,providedIn:"root"});var GI=function(){function n(r,e,i){(0,H.Z)(this,n),this.route=r,this.router=e,this.controllerService=i,this.links=["users","groups","roles","pools","ACL"],this.activeLink=this.links[0]}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o})}}]),n}();GI.\u0275fac=function(r){return new(r||GI)(t.Y36(pr),t.Y36(ur),t.Y36(rr))},GI.\u0275cmp=t.Xpm({type:GI,selectors:[["app-management"]],decls:3,vars:1,consts:[["mat-tab-nav-bar",""],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click",4,"ngFor","ngForOf"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active","click"],["rla","routerLinkActive"]],template:function(r,e){1&r&&(t.TgZ(0,"nav",0),t.YNc(1,eKe,3,3,"a",1),t.qZA(),t._UZ(2,"router-outlet")),2&r&&(t.xp6(1),t.Q6J("ngForOf",e.links))},dependencies:[ge.sg,cm,Us,Qw,Zi.BU,Zi.Nj]});var ST=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.userService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.userService.getGroupsByUserId(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();ST.\u0275fac=function(r){return new(r||ST)(t.LFG(rr),t.LFG(Zl))},ST.\u0275prov=t.Yz7({token:ST,factory:ST.\u0275fac,providedIn:"root"});var tKe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.getGroups(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Gb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();function nKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is required"),t.qZA())}function rKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group name is incorrect"),t.qZA())}function iKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Group with this name exists"),t.qZA())}function oKe(n,r){if(1&n&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.AsE(" ",e.username," - ",e.email," ")}}function aKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"div",16)(2,"div"),t._uU(3),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.qZA(),t.TgZ(6,"mat-icon",17),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.delUser(s))}),t._uU(7,"delete"),t.qZA()()()}if(2&n){var i=r.$implicit;t.xp6(3),t.Oqu(i.username),t.xp6(2),t.Oqu(i.email)}}Gb.\u0275fac=function(r){return new(r||Gb)},Gb.\u0275prov=t.Yz7({token:Gb,factory:Gb.\u0275fac});var sKe=function(r){return{"is-invalid":r}},zI=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.groupNameValidator=o,this.groupService=a,this.userService=s,this.toasterService=l,this.usersToAdd=new Set([]),this.loading=!1,this.autocompleteControl=new J.p4}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.controller=this.data.controller,this.groupNameForm=this.formBuilder.group({groupName:new J.p4(null,[J.kI.required,this.groupNameValidator.get],[tKe(this.data.controller,this.groupService)])}),this.userService.list(this.controller).subscribe(function(i){e.users=i,e.filteredUsers=e.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e._filter(o)}))})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.groupNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.groupNameForm.invalid){var i=this.groupNameForm.controls.groupName.value,o=Array.from(this.usersToAdd.values());this.groupService.addGroup(this.controller,i).subscribe(function(a){o.forEach(function(s){e.groupService.addMemberToGroup(e.controller,a,s).subscribe(function(){e.toasterService.success("user ".concat(s.username," was added"))},function(l){e.toasterService.error("An error occur while trying to add user ".concat(s.username," to group ").concat(i))})}),e.dialogRef.close(!0)},function(a){e.toasterService.error("An error occur while trying to create new group ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}},{key:"selectedUser",value:function(e){this.usersToAdd.add(e)}},{key:"delUser",value:function(e){this.usersToAdd.delete(e)}},{key:"_filter",value:function(e){if("string"==typeof e){var i=e.toLowerCase();return this.users.filter(function(o){var a;return o.username.toLowerCase().includes(i)||(null===(a=o.email)||void 0===a?void 0:a.toLowerCase().includes(i))})}}},{key:"displayFn",value:function(e){return e&&e.username?e.username:""}}]),n}();function lKe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}zI.\u0275fac=function(r){return new(r||zI)(t.Y36(cr),t.Y36(So),t.Y36(J.QS),t.Y36(Gb),t.Y36(Sc),t.Y36(Zl),t.Y36(Ln))},zI.\u0275cmp=t.Xpm({type:zI,selectors:[["app-add-group-dialog"]],features:[t._Bn([Gb])],decls:25,vars:14,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","groupName","placeholder","Please enter group name",3,"ngClass","keydown"],[4,"ngIf"],[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"users"],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"],[3,"value"],[1,"userList"],[3,"click"]],template:function(r,e){if(1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new group"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(a){return e.onKeyDown(a)}),t.qZA(),t.YNc(5,nKe,2,0,"mat-error",4),t.YNc(6,rKe,2,0,"mat-error",4),t.YNc(7,iKe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"h5"),t._uU(9,"Add users to group: "),t.qZA(),t.TgZ(10,"mat-form-field",5)(11,"mat-label"),t._uU(12,"Users"),t.qZA(),t._UZ(13,"input",6),t.TgZ(14,"mat-autocomplete",7,8),t.NdJ("optionSelected",function(a){return e.selectedUser(a.option.value)}),t.YNc(16,oKe,2,3,"mat-option",9),t.ALo(17,"async"),t.qZA()(),t.TgZ(18,"div",10),t.YNc(19,aKe,8,2,"div",11),t.qZA(),t.TgZ(20,"div",12)(21,"button",13),t.NdJ("click",function(){return e.onNoClick()}),t._uU(22,"Cancel"),t.qZA(),t.TgZ(23,"button",14),t.NdJ("click",function(){return e.onAddClick()}),t._uU(24," Add group "),t.qZA()()),2&r){var i=t.MAs(15);t.xp6(2),t.Q6J("formGroup",e.groupNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(12,sKe,null==e.form.groupName?null:e.form.groupName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.touched)&&(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.groupName?null:e.form.groupName.errors)&&(null==e.form.groupName?null:e.form.groupName.errors.projectExist)),t.xp6(6),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(17,10,e.filteredUsers)),t.xp6(3),t.Q6J("ngForOf",e.usersToAdd)}},dependencies:[ge.mk,ge.sg,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.oH,J.sg,J.u,kn.TO,kn.KE,kn.hX,cn,Dn,Kn,Cr,dr,Vt.ey,Jp,Qp,ge.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 WI=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();WI.\u0275fac=function(r){return new(r||WI)(t.Y36(cr),t.Y36(So))},WI.\u0275cmp=t.Xpm({type:WI,selectors:[["app-delete-group-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete group named: "),t.qZA(),t.YNc(2,lKe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.groups))},dependencies:[ge.sg,cn,Cr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var VI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();VI.\u0275fac=function(r){return new(r||VI)},VI.\u0275pipe=t.Yjl({name:"groupFilter",type:VI,pure:!0});var uKe=["groupsPaginator"],cKe=["groupsSort"];function dKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",28)(1,"mat-checkbox",29),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function fKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",30)(1,"mat-checkbox",31),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function pKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Name"),t.qZA())}function hKe(n,r){if(1&n&&(t.TgZ(0,"td",33)(1,"a",34),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/groups/",e.user_group_id,""),t.xp6(1),t.Oqu(e.name)}}function mKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Creation date"),t.qZA())}function _Ke(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function gKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," Last update"),t.qZA())}function vKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function yKe(n,r){1&n&&(t.TgZ(0,"th",32),t._uU(1," is built-in"),t.qZA())}function bKe(n,r){if(1&n&&(t.TgZ(0,"td",33),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.is_builtin," ")}}function CKe(n,r){1&n&&t._UZ(0,"th",35)}function wKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"button",36),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function kKe(n,r){1&n&&t._UZ(0,"tr",37)}function TKe(n,r){1&n&&t._UZ(0,"tr",38)}var MKe=function(){return{standalone:!0}},SKe=function(){return[5,10,20]};function EKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Groups"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected groups "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addGroup())}),t._uU(8," Add group "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"groupFilter"),t.ynx(16,13),t.YNc(17,dKe,2,2,"th",14),t.YNc(18,fKe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,pKe,2,0,"th",17),t.YNc(21,hKe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,mKe,2,0,"th",17),t.YNc(24,_Ke,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,gKe,2,0,"th",17),t.YNc(27,vKe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,yKe,2,0,"th",17),t.YNc(30,bKe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,CKe,1,0,"th",23),t.YNc(33,wKe,4,0,"td",18),t.BQk(),t.YNc(34,kKe,1,0,"tr",24),t.YNc(35,TKe,1,0,"tr",25),t.qZA(),t._UZ(36,"mat-paginator",26,27),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,MKe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(21),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,SKe))}}function xKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",39),t.qZA())}var YI=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.groupService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","is_builtin","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.groupsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.groupsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.groups.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.groups.forEach(function(i){return e.selection.select(i)})}},{key:"addGroup",value:function(){var e=this;this.dialog.open(zI,{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(WI,{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,B0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete group")})}})}}]),n}();function DKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," role name is required "),t.qZA())}function AKe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1," Role name is incorrect "),t.qZA())}YI.\u0275fac=function(r){return new(r||YI)(t.Y36(pr),t.Y36(rr),t.Y36(Ln),t.Y36(Sc),t.Y36(jr))},YI.\u0275cmp=t.Xpm({type:YI,selectors:[["app-group-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(uKe,5),t.Gf(cKe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.groupsPaginator=i),t.iGM(i=t.CRH())&&(e.groupsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-group-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-group-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search group by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["groupsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","is_builtin"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["groupsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,EKe,38,12,"div",0),t.YNc(1,xKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,$r,zu,yf,VI],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-group-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var OKe=function(r){return{"is-invalid":r}},KI=function(){function n(r,e,i){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.roleNameForm=this.formBuilder.group({name:new J.p4,description:new J.p4})}},{key:"form",get:function(){return this.roleNameForm.controls}},{key:"onAddClick",value:function(){if(!this.roleNameForm.invalid){var e=this.roleNameForm.controls.name.value,i=this.roleNameForm.controls.description.value;this.dialogRef.close({name:e,description:i})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function IKe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}KI.\u0275fac=function(r){return new(r||KI)(t.Y36(cr),t.Y36(So),t.Y36(J.QS))},KI.\u0275cmp=t.Xpm({type:KI,selectors:[["app-add-role-dialog"]],decls:14,vars:6,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],["matInput","","type","text","formControlName","name","placeholder","Please enter role name",3,"ngClass"],[4,"ngIf"],["matInput","","type","text","formControlName","description","placeholder","Please enter a description"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new role"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field"),t._UZ(4,"input",2),t.YNc(5,DKe,2,0,"mat-error",3),t.YNc(6,AKe,2,0,"mat-error",3),t.qZA(),t.TgZ(7,"mat-form-field"),t._UZ(8,"input",4),t.qZA(),t.TgZ(9,"div",5)(10,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(11,"Cancel"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(13," Add Role "),t.qZA()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.roleNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(4,OKe,null==e.form.name?null:e.form.name.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.touched)&&(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.name?null:e.form.name.errors)&&(null==e.form.name?null:e.form.name.errors.invalidName)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}"]});var qI=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();qI.\u0275fac=function(r){return new(r||qI)(t.Y36(cr),t.Y36(So))},qI.\u0275cmp=t.Xpm({type:qI,selectors:[["app-delete-role-dialog"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete role named: "),t.qZA(),t.YNc(2,IKe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.roles))},dependencies:[ge.sg,cn,Cr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var JI=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();JI.\u0275fac=function(r){return new(r||JI)},JI.\u0275pipe=t.Yjl({name:"roleFilter",type:JI,pure:!0});var PKe=["rolesPaginator"],RKe=["rolesSort"];function LKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-header-cell",26)(1,"mat-checkbox",27),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function ZKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"mat-checkbox",28),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function NKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Name"),t.qZA())}var BKe=function(r,e){return["/controller",r,"management","roles",e]};function FKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"a",30),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("routerLink",t.WLB(3,BKe,i.controller.id,e.role_id))("matTooltip",e.name),t.xp6(1),t.Oqu(e.name)}}function UKe(n,r){1&n&&(t.TgZ(0,"mat-header-cell",29),t._uU(1,"Description"),t.qZA())}function HKe(n,r){if(1&n&&(t.TgZ(0,"mat-cell")(1,"div",31),t._uU(2),t.qZA()()),2&n){var e=r.$implicit;t.xp6(1),t.Q6J("matTooltip",e.description),t.xp6(1),t.Oqu(e.description)}}function jKe(n,r){1&n&&t._UZ(0,"mat-header-cell",26)}function GKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-cell",26)(1,"button",32),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function zKe(n,r){1&n&&t._UZ(0,"mat-header-row")}function WKe(n,r){1&n&&t._UZ(0,"mat-row")}var VKe=function(){return{standalone:!0}},YKe=function(){return[5,10,20]};function KKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Roles"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete roles "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addRole())}),t._uU(8," Add role "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"div",11)(14,"mat-table",12,13),t.ALo(17,"roleFilter"),t.ynx(18,14),t.YNc(19,LKe,2,2,"mat-header-cell",15),t.YNc(20,ZKe,2,1,"mat-cell",16),t.BQk(),t.ynx(21,17),t.YNc(22,NKe,2,0,"mat-header-cell",18),t.YNc(23,FKe,3,6,"mat-cell",19),t.BQk(),t.ynx(24,20),t.YNc(25,UKe,2,0,"mat-header-cell",18),t.YNc(26,HKe,3,2,"mat-cell",19),t.BQk(),t.ynx(27,21),t.YNc(28,jKe,1,0,"mat-header-cell",15),t.YNc(29,GKe,4,0,"mat-cell",16),t.BQk(),t.YNc(30,zKe,1,0,"mat-header-row",22),t.YNc(31,WKe,1,0,"mat-row",23),t.qZA(),t._UZ(32,"mat-paginator",24,25),t.qZA()()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,VKe)),t.xp6(3),t.Q6J("dataSource",t.xi3(17,7,i.dataSource,i.searchText)),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,YKe))}}function qKe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",33),t.qZA())}var QI=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.route=r,this.router=e,this.roleService=i,this.progressService=o,this.controllerService=a,this.dialog=s,this.toasterService=l,this.dataSource=new Ap,this.displayedColumns=["select","name","description","delete"],this.selection=new Ci.Ov(!0,[]),this.searchText="",this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.rolesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.rolesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"refresh",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.isReady=!0,e.dataSource.data=i},function(i){e.progressService.setError(i)})}},{key:"addRole",value:function(){var e=this;this.dialog.open(KI,{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(qI,{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,B0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete role")})}})}}]),n}();function JKe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"mat-icon",8),t.NdJ("click",function(){t.CHM(e);var o=t.oxw().$implicit,a=t.oxw();return t.KtG(a.addUser(o))}),t._uU(1,"add"),t.qZA()}}function QKe(n,r){1&n&&t._UZ(0,"mat-spinner")}function XKe(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA(),t.YNc(5,JKe,2,0,"mat-icon",6),t.YNc(6,QKe,1,0,"mat-spinner",7),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.email),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",i.loading)}}QI.\u0275fac=function(r){return new(r||QI)(t.Y36(pr),t.Y36(ur),t.Y36(Cf),t.Y36(Ml),t.Y36(rr),t.Y36(jr),t.Y36(Ln))},QI.\u0275cmp=t.Xpm({type:QI,selectors:[["app-role-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(PKe,5),t.Gf(RKe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.rolesPaginator=i),t.iGM(i=t.CRH())&&(e.rolesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search role by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],[1,"mat-elevation-z8"],["matSort","",3,"dataSource"],["table","","rolesSort","matSort"],["matColumnDef","select"],["class","small-col",4,"matHeaderCellDef"],["class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","description"],["matColumnDef","delete"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["rolesPaginator","matPaginator"],[1,"small-col"],[3,"checked","indeterminate","change"],[3,"checked","click","change"],["mat-sort-header",""],[1,"table-link",3,"routerLink","matTooltip"],["matTooltipClass","custom-tooltip",1,"overflow-col",3,"matTooltip"],["mat-button","",3,"click"],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,KKe,34,12,"div",0),t.YNc(1,qKe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,$r,zu,yf,ui,JI],styles:[".add-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.small-col[_ngcontent-%COMP%]{flex-grow:.3}.active-col[_ngcontent-%COMP%]{flex-grow:.5}.overflow-col[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-right:5px}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.permission[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-right:20px;font-size:10px}.custom-tooltip[_ngcontent-%COMP%]{font-size:100px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}.permissions-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}"]});var XI=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.dialog=r,this.data=e,this.userService=i,this.groupService=o,this.toastService=a,this.users=new to.X([]),this.displayedUsers=new to.X([]),this.loading=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.getUsers()}},{key:"onSearch",value:function(){var e=this;(0,Tp.H)(500).subscribe(function(){var i=e.users.value.filter(function(o){var a;return o.username.includes(e.searchText)||(null===(a=o.email)||void 0===a?void 0:a.includes(e.searchText))});e.displayedUsers.next(i)})}},{key:"getUsers",value:function(){var e=this;(0,B0.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,Nn.Z)(i,2),a=o[0],s=o[1],l=a.filter(function(u){return!s.find(function(d){return d.user_id===u.user_id})});e.users.next(l),e.displayedUsers.next(l)})}},{key:"addUser",value:function(e){var i=this;this.loading=!0,this.groupService.addMemberToGroup(this.data.controller,this.data.group,e).subscribe(function(){i.toastService.success("user ".concat(e.username," was added")),i.getUsers(),i.loading=!1},function(o){console.log(o),i.toastService.error("error while adding user ".concat(e.username," to group ").concat(i.data.group.name)),i.loading=!1})}}]),n}();XI.\u0275fac=function(r){return new(r||XI)(t.Y36(cr),t.Y36(So),t.Y36(Zl),t.Y36(Sc),t.Y36(Ln))},XI.\u0275cmp=t.Xpm({type:XI,selectors:[["app-add-user-to-group-dialog"]],decls:10,vars:5,consts:[[1,"title"],[1,"filter"],[1,"input-field"],["matInput","","type","text",3,"ngModel","ngModelChange","keydown"],["class","userList",4,"ngFor","ngForOf"],[1,"userList"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"h3"),t._uU(2),t.qZA()(),t.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),t._uU(6,"Search user "),t.qZA(),t.TgZ(7,"input",3),t.NdJ("ngModelChange",function(o){return e.searchText=o})("keydown",function(){return e.onSearch()}),t.qZA()()(),t.YNc(8,XKe,7,4,"div",4),t.ALo(9,"async")),2&r&&(t.xp6(2),t.hij("Add User To group: ",e.data.group.name,""),t.xp6(5),t.Q6J("ngModel",e.searchText),t.xp6(1),t.Q6J("ngForOf",t.lcZ(9,3,e.displayedUsers)))},dependencies:[ge.sg,ge.O5,J.Fj,J.JJ,J.On,kn.KE,kn.hX,Dn,Kn,lu,ge.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 ET,$I=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close(!1)}},{key:"onConfirm",value:function(){this.dialogRef.close(!0)}}]),n}();$I.\u0275fac=function(r){return new(r||$I)(t.Y36(cr),t.Y36(So))},$I.\u0275cmp=t.Xpm({type:$I,selectors:[["app-remove-user-to-group-dialog"]],decls:10,vars:1,consts:[[1,"header"],[1,"button"],["mat-button","","mat-raised-button","","color","primary",3,"click"],["mat-button","","mat-raised-button","","color","warn",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div"),t._uU(2,"Confirm ?"),t.qZA(),t.TgZ(3,"div"),t._uU(4),t.qZA()(),t.TgZ(5,"div",1)(6,"button",2),t.NdJ("click",function(){return e.onCancel()}),t._uU(7,"No, cancel"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return e.onConfirm()}),t._uU(9,"Yes, remove"),t.qZA()()),2&r&&(t.xp6(4),t.hij("Removing: ",e.data.name,""))},dependencies:[cn],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:center}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;text-align:center;margin-bottom:20px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly}"]}),function(n){n.group="group",n.user="user"}(ET||(ET={}));var eP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?(i||(i={length:e.length,pageIndex:0,pageSize:5}),e.slice(i.pageIndex*i.pageSize,(i.pageIndex+1)*i.pageSize)):[]}}]),n}();eP.\u0275fac=function(r){return new(r||eP)},eP.\u0275pipe=t.Yjl({name:"paginator",type:eP,pure:!0});var tP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?void 0===i||""===i?e:e.filter(function(o){return o.username.toLowerCase().includes(i.toLowerCase())}):[]}}]),n}();tP.\u0275fac=function(r){return new(r||tP)},tP.\u0275pipe=t.Yjl({name:"membersFilter",type:tP,pure:!0});var $Ke=function(r,e){return["/controller",r,"management","users",e]};function eqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div")(1,"a",30)(2,"div"),t._uU(3),t.qZA()(),t.TgZ(4,"mat-icon",14),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.openRemoveUserDialog(l))}),t._uU(5,"delete"),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.Q6J("routerLink",t.WLB(2,$Ke,o.controller.id,i.user_id)),t.xp6(2),t.Oqu(i.username)}}function tqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Endpoint "),t.qZA())}function nqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.endpoint_name)}}function rqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Role "),t.qZA())}function iqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.role_name," ")}}function oqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Propagate "),t.qZA())}function aqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function sqe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Allowed "),t.qZA())}function lqe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function uqe(n,r){1&n&&t._UZ(0,"tr",33)}function cqe(n,r){1&n&&t._UZ(0,"tr",34)}var dqe=function(r){return["/controller",r,"management","groups"]},fqe=function(){return[5,20,50,100]},nP=function(){function n(r,e,i,o,a,s){var l=this;(0,H.Z)(this,n),this.route=r,this.dialog=e,this.groupService=i,this.toastService=o,this.aclService=a,this.roleService=s,this.aceDatasource=new Ap,this.aceDisplayedColumns=["endpoint","role","propagate","allowed"],this.route.data.subscribe(function(u){l.controller=u.controller,l.group=u.group,l.aces=u.aces,l.members=u.members.sort(function(d,h){return d.username.toLowerCase().localeCompare(h.username.toLowerCase())}),l.editGroupForm=new J.nJ({groupname:new J.p4(l.group.name,[J.kI.required])})})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.roleService.get(this.controller).subscribe(function(i){e.aclService.getEndpoints(e.controller).subscribe(function(o){e.aceDatasource.data=e.aces.map(function(a){var s=o.filter(function(u){return u.endpoint===a.path})[0],l=i.filter(function(u){return u.role_id===a.role_id})[0];return Object.assign(Object.assign({},a),{endpoint_name:s.name,role_name:l.name})})})})}},{key:"onUpdate",value:function(){var e=this;this.group.name=this.editGroupForm.get("groupname").value,console.log(this.editGroupForm.get("groupname")),this.groupService.update(this.controller,this.group).subscribe(function(){e.toastService.success("group updated")},function(i){e.toastService.error("Error: Cannot update group"),console.log(i)})}},{key:"openAddUserDialog",value:function(){var e=this;this.dialog.open(XI,{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($I,{width:"500px",height:"200px",data:{name:e.username}}).afterClosed().subscribe(function(o){o&&i.groupService.removeUser(i.controller,i.group,e).subscribe(function(){i.toastService.success("User ".concat(e.username," was removed")),i.reloadMembers()},function(a){i.toastService.error("Error while removing user ".concat(e.username," from ").concat(i.group.name)),console.log(a)})})}},{key:"reloadMembers",value:function(){var e=this;this.groupService.getGroupMember(this.controller,this.group.user_group_id).subscribe(function(i){e.members=i})}}]),n}();nP.\u0275fac=function(r){return new(r||nP)(t.Y36(pr),t.Y36(jr),t.Y36(Sc),t.Y36(Ln),t.Y36(bf),t.Y36(Cf))},nP.\u0275cmp=t.Xpm({type:nP,selectors:[["app-group-details"]],decls:59,vars:24,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to group management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to group management"],[1,"col"],["label","Details",1,"details"],[1,"input-field",3,"formGroup"],["matInput","","type","text","formControlName","groupname"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],["label","Members"],[1,"members"],[1,"clickable",3,"click"],[1,"search"],["matInput","","placeholder","filter members",3,"ngModel","ngModelChange"],[4,"ngFor","ngForOf"],[3,"length","pageSizeOptions","page"],["label","ACEs"],[1,"default-content"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","endpoint"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"mat-tab-group")(9,"mat-tab",6)(10,"div")(11,"div")(12,"form",7)(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Group name:"),t.qZA(),t._UZ(16,"input",8),t.qZA()()(),t.TgZ(17,"div")(18,"mat-checkbox",9),t._uU(19,"Is built-in"),t.qZA()(),t.TgZ(20,"div",10)(21,"button",11),t.NdJ("click",function(){return e.onUpdate()}),t._uU(22," Update Group "),t.qZA()()(),t.TgZ(23,"div")(24,"div"),t._uU(25),t.qZA(),t.TgZ(26,"div"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.qZA()()(),t.TgZ(30,"mat-tab",12)(31,"div",13)(32,"div")(33,"mat-icon",14),t.NdJ("click",function(){return e.openAddUserDialog()}),t._uU(34,"person_add"),t.qZA()(),t.TgZ(35,"div",15)(36,"mat-form-field")(37,"input",16),t.NdJ("ngModelChange",function(o){return e.searchMembers=o}),t.qZA()()(),t.YNc(38,eqe,6,5,"div",17),t.ALo(39,"paginator"),t.ALo(40,"membersFilter"),t.TgZ(41,"mat-paginator",18),t.NdJ("page",function(o){return e.pageEvent=o}),t.qZA()()(),t.TgZ(42,"mat-tab",19)(43,"div",20)(44,"table",21),t.ynx(45,22),t.YNc(46,tqe,2,0,"th",23),t.YNc(47,nqe,2,1,"td",24),t.BQk(),t.ynx(48,25),t.YNc(49,rqe,2,0,"th",23),t.YNc(50,iqe,2,1,"td",24),t.BQk(),t.ynx(51,26),t.YNc(52,oqe,2,0,"th",23),t.YNc(53,aqe,2,1,"td",24),t.BQk(),t.ynx(54,27),t.YNc(55,sqe,2,0,"th",23),t.YNc(56,lqe,2,1,"td",24),t.BQk(),t.YNc(57,uqe,1,0,"tr",28),t.YNc(58,cqe,1,0,"tr",29),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Q6J("routerLink",t.VKq(21,dqe,e.controller.id)),t.xp6(4),t.hij("Group ",e.group.name,""),t.xp6(5),t.Q6J("formGroup",e.editGroupForm),t.xp6(6),t.Q6J("checked",e.group.is_builtin),t.xp6(3),t.Q6J("disabled",!e.editGroupForm.valid||e.group.is_builtin),t.xp6(4),t.hij("Creation date: ",e.group.created_at,""),t.xp6(2),t.hij("Last update Date: ",e.group.updated_at,""),t.xp6(2),t.hij("UUID: ",e.group.user_group_id,""),t.xp6(8),t.Q6J("ngModel",e.searchMembers),t.xp6(1),t.Q6J("ngForOf",t.xi3(39,15,t.xi3(40,18,e.members,e.searchMembers),e.pageEvent)),t.xp6(3),t.Q6J("length",e.members.length)("pageSizeOptions",t.DdM(23,fqe)),t.xp6(3),t.Q6J("dataSource",e.aceDatasource),t.xp6(13),t.Q6J("matHeaderRowDef",e.aceDisplayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.aceDisplayedColumns))},dependencies:[ge.sg,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.sg,J.u,kn.KE,kn.hX,md,cn,N0,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,dr,$r,ui,Zi.SP,Zi.uX,eP,tP],styles:["table[_ngcontent-%COMP%]{width:100%}.main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.members[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:stretch}.members[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:5px}.clickable[_ngcontent-%COMP%]{cursor:pointer}.details[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:20px}.button-div[_ngcontent-%COMP%]{float:right}.members[_ngcontent-%COMP%] > .search[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:stretch;width:100%}mat-form-field[_ngcontent-%COMP%]{width:100%}.roles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var xT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.getGroupMember(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();xT.\u0275fac=function(r){return new(r||xT)(t.LFG(rr),t.LFG(Sc))},xT.\u0275prov=t.Yz7({token:xT,factory:xT.\u0275fac,providedIn:"root"});var DT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.groupService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.groupService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();DT.\u0275fac=function(r){return new(r||DT)(t.LFG(rr),t.LFG(Sc))},DT.\u0275prov=t.Yz7({token:DT,factory:DT.\u0275fac,providedIn:"root"});var AT=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/access/privileges")}}]),n}();AT.\u0275fac=function(r){return new(r||AT)(t.LFG(mo.zw))},AT.\u0275prov=t.Yz7({token:AT,factory:AT.\u0275fac,providedIn:"root"});var nle=function(){function n(r){(0,H.Z)(this,n),this.ownedPrivileges=r,this.change={add:new Set,delete:new Set}}return(0,B.Z)(n,[{key:"add",value:function(e){this.change.delete.has(e)&&this.change.delete.delete(e),!this.ownedPrivileges.includes(e)&&this.change.add.add(e)}},{key:"delete",value:function(e){this.change.add.has(e)&&this.change.add.delete(e),this.ownedPrivileges.includes(e)&&this.change.delete.add(e)}},{key:"isAdded",value:function(e){return this.change.add.has(e)}},{key:"isDeleted",value:function(e){return this.change.delete.has(e)}},{key:"get",value:function(){return{add:Array.from(this.change.add),delete:Array.from(this.change.delete)}}}]),n}(),rP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e){if(e){var i={};e.forEach(function(h){var g=h.name.split("."),C=(0,Nn.Z)(g,2),Z=C[0],z=C[1];i.hasOwnProperty(Z)?i[Z].push({verb:z,privilege:h}):i[Z]=[{verb:z,privilege:h}]});for(var o=[],a=0,s=Object.entries(i);a<s.length;a++){var l=(0,Nn.Z)(s[a],2),u=l[0],d=l[1];o.push({key:u,values:d})}return o}}}]),n}();function pqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",8)(1,"mat-icon",9),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!0)}),t._uU(2,"edit"),t.qZA()()}}function hqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.editMode=!1)}),t._uU(1,"Cancel"),t.qZA()}}function mqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);var o=t.oxw(2);return t.KtG(o.close())}),t._uU(1,"Update"),t.qZA()}}function _qe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,pqe,3,0,"button",5),t.YNc(2,hqe,2,0,"button",6),t.YNc(3,mqe,2,0,"button",7),t.qZA()),2&n){var e=t.oxw();t.xp6(1),t.Q6J("ngIf",!e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode),t.xp6(1),t.Q6J("ngIf",e.editMode)}}rP.\u0275fac=function(r){return new(r||rP)},rP.\u0275pipe=t.Yjl({name:"groupPrivileges",type:rP,pure:!0});var gqe=function(r,e){return{add:r,delete:e}};function vqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",18)(1,"mat-checkbox",19),t.NdJ("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(3);return t.KtG(d.onPrivilegeChange(s.checked,u.privilege))}),t.qZA(),t.TgZ(2,"div",20),t._uU(3),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(3);t.xp6(1),t.Q6J("checked",o.ownedPrivilegesList.includes(i.privilege.privilege_id)),t.xp6(1),t.Q6J("ngClass",t.WLB(3,gqe,o.changer.isAdded(i.privilege.privilege_id),o.changer.isDeleted(i.privilege.privilege_id))),t.xp6(1),t.hij(" ",i.verb,"")}}function yqe(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",14)(2,"div",15),t._uU(3),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,vqe,4,6,"div",17),t.qZA()()()),2&n){var e=t.oxw().$implicit;t.xp6(3),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}var bqe=function(r){return{box:r}};function Cqe(n,r){if(1&n&&(t.TgZ(0,"div",20),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(4);t.Q6J("ngClass",t.VKq(2,bqe,i.ownedPrivilegesList.includes(e.privilege.privilege_id))),t.xp6(1),t.Oqu(e.verb)}}function wqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Cqe,2,4,"div",22),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngIf",i.ownedPrivilegesList.includes(e.privilege.privilege_id))}}function kqe(n,r){if(1&n&&(t.TgZ(0,"div",14)(1,"div",15),t._uU(2),t.qZA(),t.TgZ(3,"div",16),t.YNc(4,wqe,2,1,"div",4),t.qZA()()),2&n){var e=t.oxw(2).$implicit;t.xp6(2),t.hij("",e.key,":"),t.xp6(2),t.Q6J("ngForOf",e.values)}}function Tqe(n,r){if(1&n&&t.YNc(0,kqe,5,2,"div",21),2&n){var e=t.oxw().$implicit,i=t.oxw();t.Q6J("ngIf",i.ownedPrivilegesName.includes(e.key))}}function Mqe(n,r){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,yqe,6,2,"div",12),t.YNc(2,Tqe,1,1,"ng-template",null,13,t.W1O),t.qZA()),2&n){var e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",i.editMode)("ngIfElse",e)}}var rle=".header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:20px;padding-left:10px}.privileges[_ngcontent-%COMP%]{padding-left:10px;display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{justify-content:center}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:10px}.box[_ngcontent-%COMP%] > mat-checkbox[_ngcontent-%COMP%]{margin-right:10px}.box[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:row}.privilege[_ngcontent-%COMP%]{width:32vw;display:flex;flex-direction:row;margin-bottom:10px;justify-content:center;border:solid white 1px}.key[_ngcontent-%COMP%]{color:gray;display:flex;width:15%;margin-left:10px}.values[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.values[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:20%}.add[_ngcontent-%COMP%]{color:green}.delete[_ngcontent-%COMP%]{color:red;text-decoration:line-through}",iP=function(){function n(){(0,H.Z)(this,n),this.disable=!0,this.privileges=[],this.update=new t.vpe,this.ownedPrivilegesName=[],this.ownedPrivilegesList=[],this.changer=new nle(this.ownedPrivilegesList),this.editModeState=!1}return(0,B.Z)(n,[{key:"ownedPrivilege",set:function(e){e&&(this.ownedPrivilegesName=e.map(function(i){return i.name.split(".")[0]}),this.ownedPrivilegesList=e.map(function(i){return i.privilege_id}))}},{key:"editMode",get:function(){return this.editModeState},set:function(e){e&&(this.changer=new nle(this.ownedPrivilegesList)),this.editModeState=e}},{key:"ngOnInit",value:function(){}},{key:"onPrivilegeChange",value:function(e,i){var o=i.privilege_id;e?this.changer.add(o):this.changer.delete(o)}},{key:"close",value:function(){this.update.emit(this.changer.get()),this.editMode=!1}}]),n}();iP.\u0275fac=function(r){return new(r||iP)},iP.\u0275cmp=t.Xpm({type:iP,selectors:[["app-privilege"]],inputs:{disable:"disable",privileges:"privileges",ownedPrivilege:"ownedPrivilege"},outputs:{update:"update"},decls:7,vars:4,consts:[[1,"privileges"],[1,"header"],[1,"title"],[4,"ngIf"],[4,"ngFor","ngForOf"],["mat-button","",4,"ngIf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-button",""],[3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf","ngIfElse"],["normalMode",""],[1,"privilege"],[1,"key"],[1,"values"],["class","box",4,"ngFor","ngForOf"],[1,"box"],[3,"checked","change"],[3,"ngClass"],["class","privilege",4,"ngIf"],[3,"ngClass",4,"ngIf"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3,"Privileges"),t.qZA(),t.YNc(4,_qe,4,3,"div",3),t.qZA(),t.YNc(5,Mqe,4,2,"div",4),t.ALo(6,"groupPrivileges"),t.qZA()),2&r&&(t.xp6(4),t.Q6J("ngIf",!e.disable),t.xp6(1),t.Q6J("ngForOf",t.lcZ(6,2,e.privileges)))},dependencies:[ge.mk,ge.sg,ge.O5,cn,Dn,$r,rP],styles:[rle,rle]});var Sqe=function(r){return["/controller",r,"management","roles"]},oP=function(){function n(r,e,i,o,a){var s=this;(0,H.Z)(this,n),this.roleService=r,this.toastService=e,this.route=i,this.privilegeService=o,this.fb=a,this.$role=new to.X({role_id:"",description:"",updated_at:"",is_builtin:!1,privileges:[],name:"",created_at:""}),this.$ownedPrivilegesId=this.$role.pipe((0,$n.U)(function(l){return l.privileges})),this.$role.subscribe(function(l){s.editRoleForm=a.group({rolename:[l.name],description:[l.description]})})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.roleId=i.role.role_id,e.privileges=e.privilegeService.get(e.controller),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})})}},{key:"onUpdate",value:function(){var e=this,i=this.$role.value;i.name=this.editRoleForm.get("rolename").value,i.description=this.editRoleForm.get("description").value,this.roleService.update(this.controller,i).subscribe(function(){e.toastService.success("role: ".concat(i.name," was updated")),e.roleService.getById(e.controller,e.roleId).subscribe(function(o){return e.$role.next(o)})},function(o){e.toastService.error("".concat(o.message,"\n ").concat(o.error.message))})}},{key:"onPrivilegesUpdate",value:function(e){var s,i=this,o=[],a=(0,xn.Z)(e.add);try{for(a.s();!(s=a.n()).done;){var l=s.value;o.push(this.roleService.setPrivileges(this.controller,this.roleId,l))}}catch(g){a.e(g)}finally{a.f()}var d,u=(0,xn.Z)(e.delete);try{for(u.s();!(d=u.n()).done;){var h=d.value;o.push(this.roleService.removePrivileges(this.controller,this.roleId,h))}}catch(g){u.e(g)}finally{u.f()}$i.y.forkJoin(o).subscribe(function(){i.roleService.getById(i.controller,i.roleId).subscribe(function(g){return i.$role.next(g)})})}}]),n}();oP.\u0275fac=function(r){return new(r||oP)(t.Y36(Cf),t.Y36(Ln),t.Y36(pr),t.Y36(AT),t.Y36(J.qu))},oP.\u0275cmp=t.Xpm({type:oP,selectors:[["app-role-detail"]],decls:45,vars:34,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","Back to role management","matTooltipClass","custom-tooltip",3,"routerLink"],["aria-label","Back to role management"],[1,"col"],[1,"main"],[1,"details"],[3,"formGroup"],["matInput","","type","text","formControlName","rolename"],["matInput","","type","text","formControlName","description"],["disabled","",3,"checked"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[3,"vertical"],[3,"disable","ownedPrivilege","privileges","update"]],template:function(r,e){var i,o,a,s,l,u,d;(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.ALo(8,"async"),t.qZA()(),t.TgZ(9,"div",6)(10,"div",7)(11,"form",8)(12,"div")(13,"mat-form-field")(14,"mat-label"),t._uU(15,"Role name:"),t.qZA(),t._UZ(16,"input",9),t.qZA()(),t.TgZ(17,"div")(18,"mat-form-field")(19,"mat-label"),t._uU(20,"Description:"),t.qZA(),t._UZ(21,"input",10),t.qZA()()(),t.TgZ(22,"div"),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div"),t._uU(26),t.ALo(27,"async"),t.qZA(),t.TgZ(28,"div"),t._uU(29),t.ALo(30,"async"),t.qZA(),t.TgZ(31,"div")(32,"mat-checkbox",11),t.ALo(33,"async"),t._uU(34,"Is built-in"),t.qZA()(),t.TgZ(35,"div",12)(36,"button",13),t.NdJ("click",function(){return e.onUpdate()}),t.ALo(37,"async"),t.ALo(38,"async"),t._uU(39," Update Role "),t.qZA()()(),t._UZ(40,"mat-divider",14),t.TgZ(41,"app-privilege",15),t.NdJ("update",function(g){return e.onPrivilegesUpdate(g)}),t.ALo(42,"async"),t.ALo(43,"async"),t.ALo(44,"async"),t.qZA()()()()),2&r)&&(t.xp6(3),t.Q6J("routerLink",t.VKq(32,Sqe,e.controller.id)),t.xp6(4),t.hij("Role ",null==(i=t.lcZ(8,12,e.$role))?null:i.name,""),t.xp6(4),t.Q6J("formGroup",e.editRoleForm),t.xp6(12),t.hij("Creation date: ",null==(o=t.lcZ(24,14,e.$role))?null:o.created_at,""),t.xp6(3),t.hij("Last update Date: ",null==(a=t.lcZ(27,16,e.$role))?null:a.updated_at,""),t.xp6(3),t.hij("UUID: ",null==(s=t.lcZ(30,18,e.$role))?null:s.role_id,""),t.xp6(3),t.Q6J("checked",null==(l=t.lcZ(33,20,e.$role))?null:l.is_builtin),t.xp6(4),t.Q6J("disabled",!t.lcZ(37,22,e.editRoleForm.valueChanges)&&e.editRoleForm.valid||(null==(u=t.lcZ(38,24,e.$role))?null:u.is_builtin)),t.xp6(4),t.Q6J("vertical",!0),t.xp6(1),t.Q6J("disable",null==(d=t.lcZ(42,26,e.$role))?null:d.is_builtin)("ownedPrivilege",t.lcZ(43,28,e.$ownedPrivilegesId))("privileges",t.lcZ(44,30,e.privileges)))},dependencies:[Us,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.KE,kn.hX,cn,N0,Dn,Kn,dr,$r,fm.d,ui,iP,ge.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}"]});var ile,OT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.roleService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("role_id");o.controllerService.get(+s).then(function(u){o.roleService.getById(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();OT.\u0275fac=function(r){return new(r||OT)(t.LFG(rr),t.LFG(Cf))},OT.\u0275prov=t.Yz7({token:OT,factory:OT.\u0275fac,providedIn:"root"}),function(n){n.project="project",n.node="node",n.link="link",n.user="user",n.group="group",n.pool="pool",n.image="image",n.template="template",n.root="root"}(ile||(ile={}));var Eqe=function(){function n(){(0,H.Z)(this,n),this.expansionModel=new Ci.Ov(!0)}return(0,B.Z)(n,[{key:"toggle",value:function(e){this.expansionModel.toggle(this._trackByValue(e))}},{key:"expand",value:function(e){this.expansionModel.select(this._trackByValue(e))}},{key:"collapse",value:function(e){this.expansionModel.deselect(this._trackByValue(e))}},{key:"isExpanded",value:function(e){return this.expansionModel.isSelected(this._trackByValue(e))}},{key:"toggleDescendants",value:function(e){this.expansionModel.isSelected(this._trackByValue(e))?this.collapseDescendants(e):this.expandDescendants(e)}},{key:"collapseAll",value:function(){this.expansionModel.clear()}},{key:"expandDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,pn.Z)(this.getDescendants(e))),(i=this.expansionModel).select.apply(i,(0,pn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"collapseDescendants",value:function(e){var i,o=this,a=[e];a.push.apply(a,(0,pn.Z)(this.getDescendants(e))),(i=this.expansionModel).deselect.apply(i,(0,pn.Z)(a.map(function(s){return o._trackByValue(s)})))}},{key:"_trackByValue",value:function(e){return this.trackBy?this.trackBy(e):e}}]),n}(),xqe=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o){var a;return(0,H.Z)(this,e),(a=r.call(this)).getChildren=i,a.options=o,a.options&&(a.trackBy=a.options.trackBy),a}return(0,B.Z)(e,[{key:"expandAll",value:function(){var a,o=this;this.expansionModel.clear();var s=this.dataNodes.reduce(function(l,u){return[].concat((0,pn.Z)(l),(0,pn.Z)(o.getDescendants(u)),[u])},[]);(a=this.expansionModel).select.apply(a,(0,pn.Z)(s.map(function(l){return o._trackByValue(l)})))}},{key:"getDescendants",value:function(o){var a=[];return this._getDescendants(a,o),a.splice(1)}},{key:"_getDescendants",value:function(o,a){var s=this;o.push(a);var l=this.getChildren(a);Array.isArray(l)?l.forEach(function(u){return s._getDescendants(o,u)}):(0,Oy.b)(l)&&l.pipe((0,Ei.q)(1),(0,ti.h)(Boolean)).subscribe(function(u){var h,d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;s._getDescendants(o,g)}}catch(C){d.e(C)}finally{d.f()}})}}]),e}(Eqe),OF=new t.OlP("CDK_TREE_NODE_OUTLET_NODE"),Xp=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this._node=e});Xp.\u0275fac=function(r){return new(r||Xp)(t.Y36(t.s_b),t.Y36(OF,8))},Xp.\u0275dir=t.lG2({type:Xp,selectors:[["","cdkTreeNodeOutlet",""]]});var Dqe=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.$implicit=r}),Ym=(0,B.Z)(function n(r){(0,H.Z)(this,n),this.template=r});Ym.\u0275fac=function(r){return new(r||Ym)(t.Y36(t.Rgc))},Ym.\u0275dir=t.lG2({type:Ym,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}});var Wu=function(){function n(r,e){(0,H.Z)(this,n),this._differs=r,this._changeDetectorRef=e,this._onDestroy=new In.xQ,this._levels=new Map,this.viewChange=new to.X({start:0,end:Number.MAX_VALUE})}return(0,B.Z)(n,[{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"ngOnInit",value:function(){this._dataDiffer=this._differs.find([]).create(this.trackBy),this.treeControl}},{key:"ngOnDestroy",value:function(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}},{key:"ngAfterContentChecked",value:function(){var e=this._nodeDefs.filter(function(i){return!i.when});e.length,this._defaultNodeDef=e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}},{key:"_switchDataSource",value:function(e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._observeRenderChanges()}},{key:"_observeRenderChanges",value:function(){var i,e=this;(0,Ci.Z9)(this._dataSource)?i=this._dataSource.connect(this):(0,Oy.b)(this._dataSource)?i=this._dataSource:Array.isArray(this._dataSource)&&(i=(0,qn.of)(this._dataSource)),i&&(this._dataSubscription=i.pipe((0,Nr.R)(this._onDestroy)).subscribe(function(o){return e.renderNodeChanges(o)}))}},{key:"renderNodeChanges",value:function(e){var i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._dataDiffer,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._nodeOutlet.viewContainer,s=arguments.length>3?arguments[3]:void 0,l=o.diff(e);!l||(l.forEachOperation(function(u,d,h){if(null==u.previousIndex)i.insertNode(e[h],h,a,s);else if(null==h)a.remove(d),i._levels.delete(u.item);else{var g=a.get(d);a.move(g,h)}}),this._changeDetectorRef.detectChanges())}},{key:"_getNodeDef",value:function(e,i){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(function(a){return a.when&&a.when(i,e)})||this._defaultNodeDef}},{key:"insertNode",value:function(e,i,o,a){var s=this._getNodeDef(e,i),l=new Dqe(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),hu.mostRecentTreeNode&&(hu.mostRecentTreeNode.data=e)}}]),n}();Wu.\u0275fac=function(r){return new(r||Wu)(t.Y36(t.ZZ4),t.Y36(t.sBO))},Wu.\u0275cmp=t.Xpm({type:Wu,selectors:[["cdk-tree"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Ym,5),2&r)&&(t.iGM(o=t.CRH())&&(e._nodeDefs=o))},viewQuery:function(r,e){var i;(1&r&&t.Gf(Xp,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[Xp],encapsulation:2});var hu=function(){function n(r,e){(0,H.Z)(this,n),this._elementRef=r,this._tree=e,this._destroyed=new In.xQ,this._dataChanges=new In.xQ,n.mostRecentTreeNode=this,this.role="treeitem"}return(0,B.Z)(n,[{key:"role",get:function(){return"treeitem"},set:function(e){this._elementRef.nativeElement.setAttribute("role",e)}},{key:"data",get:function(){return this._data},set:function(e){e!==this._data&&(this._data=e,this._setRoleFromData(),this._dataChanges.next())}},{key:"isExpanded",get:function(){return this._tree.treeControl.isExpanded(this._data)}},{key:"level",get:function(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}},{key:"ngOnInit",value:function(){this._parentNodeAriaLevel=function Aqe(n){for(var r=n.parentElement;r&&!Oqe(r);)r=r.parentElement;return r?r.classList.contains("cdk-nested-tree-node")?(0,Mn.su)(r.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level","".concat(this.level+1))}},{key:"ngOnDestroy",value:function(){n.mostRecentTreeNode===this&&(n.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"focus",value:function(){this._elementRef.nativeElement.focus()}},{key:"_setRoleFromData",value:function(){!this._tree.treeControl.isExpandable&&this._tree.treeControl.getChildren,this.role="treeitem"}}]),n}();function Oqe(n){var r=n.classList;return!(!(null==r?void 0:r.contains("cdk-nested-tree-node"))&&!(null==r?void 0:r.contains("cdk-tree")))}hu.mostRecentTreeNode=null,hu.\u0275fac=function(r){return new(r||hu)(t.Y36(t.SBq),t.Y36(Wu))},hu.\u0275dir=t.lG2({type:hu,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("aria-expanded",e.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]});var $p=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o))._differs=a,s}return(0,B.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,Oy.b)(a)&&a.pipe((0,Nr.R)(this._destroyed)).subscribe(function(s){return o.updateChildrenNodes(s)}),this.nodeOutlet.changes.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return o.updateChildrenNodes()})}},{key:"ngOnInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){this._clear(),(0,dt.Z)((0,Ut.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}(hu);$p.\u0275fac=function(r){return new(r||$p)(t.Y36(t.SBq),t.Y36(Wu),t.Y36(t.ZZ4))},$p.\u0275dir=t.lG2({type:$p,selectors:[["cdk-nested-tree-node"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Xp,5),2&r)&&(t.iGM(o=t.CRH())&&(e.nodeOutlet=o))},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[t._Bn([{provide:hu,useExisting:$p},{provide:OF,useExisting:$p}]),t.qOj]});var Iqe=/([A-Za-z%]+)$/,zb=function(){function n(r,e,i,o){var a=this;(0,H.Z)(this,n),this._treeNode=r,this._tree=e,this._element=i,this._dir=o,this._destroyed=new In.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),o&&o.change.pipe((0,Nr.R)(this._destroyed)).subscribe(function(){return a._setPadding(!0)}),r._dataChanges.subscribe(function(){return a._setPadding()})}return(0,B.Z)(n,[{key:"level",get:function(){return this._level},set:function(e){this._setLevelInput(e)}},{key:"indent",get:function(){return this._indent},set:function(e){this._setIndentInput(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_paddingIndent",value:function(){var e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,i=null==this._level?e:this._level;return"number"==typeof i?"".concat(i*this._indent).concat(this.indentUnits):null}},{key:"_setPadding",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this._paddingIndent();if(i!==this._currentPadding||e){var o=this._element.nativeElement,a=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",s="paddingLeft"===a?"paddingRight":"paddingLeft";o.style[a]=i||"",o.style[s]="",this._currentPadding=i}}},{key:"_setLevelInput",value:function(e){this._level=(0,Mn.su)(e,null),this._setPadding()}},{key:"_setIndentInput",value:function(e){var i=e,o="px";if("string"==typeof e){var a=e.split(Iqe);i=a[0],o=a[1]||o}this.indentUnits=o,this._indent=(0,Mn.su)(i),this._setPadding()}}]),n}();zb.\u0275fac=function(r){return new(r||zb)(t.Y36(hu),t.Y36(Wu),t.Y36(t.SBq),t.Y36(Ls.Is,8))},zb.\u0275dir=t.lG2({type:zb,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}});var gv=function(){function n(r,e){(0,H.Z)(this,n),this._tree=r,this._treeNode=e,this._recursive=!1}return(0,B.Z)(n,[{key:"recursive",get:function(){return this._recursive},set:function(e){this._recursive=(0,Mn.Ig)(e)}},{key:"_toggle",value:function(e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),e.stopPropagation()}}]),n}();gv.\u0275fac=function(r){return new(r||gv)(t.Y36(Wu),t.Y36(hu))},gv.\u0275dir=t.lG2({type:gv,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(r,e){1&r&&t.NdJ("click",function(o){return e._toggle(o)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}});var Wb=(0,B.Z)(function n(){(0,H.Z)(this,n)});Wb.\u0275fac=function(r){return new(r||Wb)},Wb.\u0275mod=t.oAB({type:Wb}),Wb.\u0275inj=t.cJS({});var Pqe=function(){function n(r){(0,H.Z)(this,n),this.endpoints=r}return(0,B.Z)(n,[{key:"buildTreeFromEndpoints",value:function(){var e=this,i=[],o=[];return this.endpoints.forEach(function(a){var s=e.extractParent(a);o.push(s)}),o.forEach(function(a){a.depth>0&&o.filter(function(l){return l.splitEndp.join("/")==a.splitEndp.slice(0,a.depth-1).join("/")})[0].children.push(a)}),i.push(o.find(function(a){return 0===a.depth})),i}},{key:"extractParent",value:function(e){var i=e.endpoint.split("/"),o=[];return(i=i.filter(function(s){return""!==s&&"access"!==s})).length>0&&(o=i.slice(0,i.length-1)),{children:[],depth:i.length,splitEndp:i,endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name,parent:o}}}]),n}();function Rqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.hij(" ",i.displayFn(e)," ")}}var aP=function(){function n(){(0,H.Z)(this,n),this.autocompleteControl=new J.p4,this.onSelection=new t.vpe}return(0,B.Z)(n,[{key:"ngOnChanges",value:function(){var e=this;this.filteredData=this.autocompleteControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(i){return e.filterFn(i,e.data)}))}}]),n}();function Lqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function Zqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Nqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div"),t._UZ(2,"button",23),t._uU(3),t.TgZ(4,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(5,Lqe,3,0,"div",25),t.YNc(6,Zqe,3,0,"div",25),t.qZA()()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(2),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint)}}function Bqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",26),t._uU(2,"panorama_fish_eye"),t.qZA()())}function Fqe(n,r){1&n&&(t.TgZ(0,"div")(1,"mat-icon",27),t._uU(2,"check_circle"),t.qZA()())}function Uqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"cdk-nested-tree-node",22)(1,"div")(2,"button",28)(3,"mat-icon",29),t._uU(4),t.qZA()(),t._uU(5),t.TgZ(6,"button",24),t.NdJ("click",function(){var l=t.CHM(e).$implicit,u=t.oxw();return t.KtG(u.endpointSelection(l))}),t.YNc(7,Bqe,3,0,"div",25),t.YNc(8,Fqe,3,0,"div",25),t.qZA()(),t.TgZ(9,"div"),t.GkF(10,30),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw();t.xp6(1),t.ekj("selected",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.uIk("aria-label","Toggle "+i.name),t.xp6(2),t.hij(" ",o.treeControl.isExpanded(i)?"expand_more":"chevron_right"," "),t.xp6(1),t.hij(" ",i.name," "),t.xp6(2),t.Q6J("ngIf",!o.selectedEndpoint||i.endpoint!==o.selectedEndpoint.endpoint),t.xp6(1),t.Q6J("ngIf",o.selectedEndpoint&&i.endpoint===o.selectedEndpoint.endpoint),t.xp6(1),t.ekj("example-tree-invisible",!o.treeControl.isExpanded(i))}}function Hqe(n,r){if(1&n&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.charAt(0).toUpperCase()+e.slice(1))}}function jqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.userSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.users)("eltType","Users")("displayFn",i.displayFnUser)("filterFn",i._filterUser)}}function Gqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"app-autocomplete",12),t.NdJ("onSelection",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.groupSelection(a))}),t.qZA()}if(2&n){var i=t.oxw();t.Q6J("data",i.groups)("eltType","Groups")("displayFn",i.displayFn)("filterFn",i._filter)}}function zqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"ALLOWED "),t.qZA()}}function Wqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"button",33),t.NdJ("click",function(){t.CHM(e);var o=t.oxw();return t.KtG(o.changeAllowed())}),t._uU(1,"DENY "),t.qZA()}}aP.\u0275fac=function(r){return new(r||aP)},aP.\u0275cmp=t.Xpm({type:aP,selectors:[["app-autocomplete"]],inputs:{data:"data",eltType:"eltType",displayFn:"displayFn",filterFn:"filterFn"},outputs:{onSelection:"onSelection"},features:[t.TTD],decls:8,vars:7,consts:[[1,"input-field"],["type","text","matInput","",3,"matAutocomplete","formControl"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(r,e){if(1&r&&(t.TgZ(0,"mat-form-field",0)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",1),t.TgZ(4,"mat-autocomplete",2,3),t.NdJ("optionSelected",function(a){return e.onSelection.emit(a.option.value)}),t.YNc(6,Rqe,2,2,"mat-option",4),t.ALo(7,"async"),t.qZA()()),2&r){var i=t.MAs(5);t.xp6(2),t.Oqu(e.eltType),t.xp6(1),t.Q6J("matAutocomplete",i)("formControl",e.autocompleteControl),t.xp6(1),t.Q6J("displayWith",e.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(7,5,e.filteredData))}},dependencies:[ge.sg,J.Fj,J.JJ,J.oH,kn.KE,kn.hX,Kn,Vt.ey,Jp,Qp,ge.Ov],styles:[".input-field[_ngcontent-%COMP%]{width:100%}"]});var sP=function(){function n(r,e,i,o,a,s,l){(0,H.Z)(this,n),this.dialogRef=r,this.aclService=e,this.userService=i,this.groupService=o,this.roleService=a,this.toasterService=s,this.data=l,this.allowed=!0,this.types=Object.values(ET),this.TREE_DATA=[],this.treeControl=new xqe(function(h){return h.children}),this.hasChild=function(h,g){return!!g.children&&g.children.length>0},this.endpoints=l.endpoints;var d=new Pqe(this.endpoints).buildTreeFromEndpoints();this.treeDataSource=new Ci.P3(d),console.log(d)}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.addAceForm=new J.nJ({type:new J.p4(ET.user),role_id:new J.p4,propagate:new J.p4(!0)}),this.groupService.getGroups(this.controller).subscribe(function(i){e.groups=i}),this.userService.list(this.controller).subscribe(function(i){e.users=i}),this.roleService.get(this.controller).subscribe(function(i){e.roles=i})}},{key:"form",get:function(){return this.addAceForm.controls}},{key:"onCancelClick",value:function(){this.dialogRef.close()}},{key:"onAddClick",value:function(){var e=this,i={ace_type:this.form.type.value,allowed:this.allowed,group_id:this.form.type.value===ET.group?this.selectedGroup.user_group_id:null,path:this.selectedEndpoint.endpoint,propagate:this.form.propagate.value,role_id:this.selectedRole.role_id,user_id:this.form.type.value===ET.user?this.selectedUser.user_id:null};i.path&&i.role_id&&(i.user_id||i.group_id)&&(this.aclService.add(this.controller,i).subscribe(function(o){e.toasterService.success("ACE was added for path ".concat(i.path))},function(o){e.toasterService.error("Cannot create ACE: ".concat(o.error.message))}),this.dialogRef.close())}},{key:"changeAllowed",value:function(){this.allowed=!this.allowed}},{key:"displayFn",value:function(e){return e&&e.name?e.name:""}},{key:"displayFnUser",value:function(e){return e&&e.full_name&&e.username?e.username.concat(" - ",e.full_name):""}},{key:"_filter",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"_filterUser",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.full_name.toLowerCase().includes(o)||a.username.toLowerCase().includes(o)})}}},{key:"_filterRole",value:function(e,i){if("string"==typeof e&&i){var o=e.toLowerCase();return i.filter(function(a){return a.name.toLowerCase().includes(o)})}}},{key:"userSelection",value:function(e){this.selectedUser=e}},{key:"groupSelection",value:function(e){this.selectedGroup=e}},{key:"roleSelection",value:function(e){this.selectedRole=e}},{key:"endpointSelection",value:function(e){var i={endpoint:e.endpoint,endpoint_type:e.endpoint_type,name:e.name};this.selectedEndpoint=i}}]),n}();function Vqe(n,r){if(1&n&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij("",e.path," ")}}sP.\u0275fac=function(r){return new(r||sP)(t.Y36(cr),t.Y36(bf),t.Y36(Zl),t.Y36(Sc),t.Y36(Cf),t.Y36(Ln),t.Y36(So))},sP.\u0275cmp=t.Xpm({type:sP,selectors:[["app-add-ace-dialog"]],decls:29,vars:16,consts:[["mat-dialog-title",""],[1,"input-field","d-flex",2,"height","380px",3,"formGroup"],[1,"d-inline-block",2,"width","75%","float","left","overflow-y","auto"],[3,"dataSource","treeControl"],["class","example-tree-node",4,"cdkTreeNodeDef"],["class","example-tree-node",4,"cdkTreeNodeDef","cdkTreeNodeDefWhen"],[2,"height","auto",3,"vertical"],[1,"form-div","d-inline-block","h-100"],[1,"typeSelect"],["placeholder","User/Group","formControlName","type"],[3,"value",4,"ngFor","ngForOf"],[3,"data","eltType","displayFn","filterFn","onSelection",4,"ngIf"],[3,"data","eltType","displayFn","filterFn","onSelection"],[1,"d-flex","justify-content-between"],[1,"d-inline-block",2,"float","left"],["formControlName","propagate"],[1,"d-inline-block",2,"float","right"],["class","allow ","mat-button","",3,"click",4,"ngIf"],["class","deny","mat-button","",3,"click",4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"disabled","click"],[1,"example-tree-node"],["mat-icon-button","","disabled",""],["mat-icon-button","",3,"click"],[4,"ngIf"],[1,"align-middle",2,"color","#696969"],[1,"align-middle"],["mat-icon-button","","cdkTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],["cdkTreeNodeOutlet",""],[3,"value"],["mat-button","",1,"allow",3,"click"],["mat-button","",1,"deny",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new ACE"),t.qZA(),t.TgZ(2,"form",1)(3,"div",2)(4,"cdk-tree",3),t.YNc(5,Nqe,7,5,"cdk-nested-tree-node",4),t.YNc(6,Uqe,11,9,"cdk-nested-tree-node",5),t.qZA()(),t._UZ(7,"mat-divider",6),t.TgZ(8,"div",7)(9,"div")(10,"div",8)(11,"mat-select",9),t.YNc(12,Hqe,2,2,"mat-option",10),t.qZA()(),t.YNc(13,jqe,1,4,"app-autocomplete",11),t.YNc(14,Gqe,1,4,"app-autocomplete",11),t.TgZ(15,"app-autocomplete",12),t.NdJ("onSelection",function(o){return e.roleSelection(o)}),t.qZA(),t.TgZ(16,"div",13)(17,"div",14)(18,"mat-checkbox",15),t._uU(19,"Propagate"),t.qZA()(),t._UZ(20,"mat-divider",6),t.TgZ(21,"div",16),t.YNc(22,zqe,2,0,"button",17),t.YNc(23,Wqe,2,0,"button",18),t.qZA()()(),t.TgZ(24,"div",19)(25,"button",20),t.NdJ("click",function(){return e.onCancelClick()}),t._uU(26,"Cancel"),t.qZA(),t.TgZ(27,"button",21),t.NdJ("click",function(){return e.onAddClick()}),t._uU(28," Add ACE "),t.qZA()()()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.addAceForm),t.xp6(2),t.Q6J("dataSource",e.treeDataSource)("treeControl",e.treeControl),t.xp6(2),t.Q6J("cdkTreeNodeDefWhen",e.hasChild),t.xp6(1),t.Q6J("vertical",!0),t.xp6(5),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf","user"===e.form.type.value),t.xp6(1),t.Q6J("ngIf","group"===e.form.type.value),t.xp6(1),t.Q6J("data",e.roles)("eltType","Roles")("displayFn",e.displayFn)("filterFn",e._filter),t.xp6(5),t.Q6J("vertical",!0),t.xp6(2),t.Q6J("ngIf",e.allowed),t.xp6(1),t.Q6J("ngIf",!e.allowed),t.xp6(4),t.Q6J("disabled",!e.addAceForm.valid))},dependencies:[ge.sg,ge.O5,J._Y,J.JJ,J.JL,J.sg,J.u,cn,Dn,Cr,dr,$r,fm.d,ni.gD,Vt.ey,$p,Ym,gv,Wu,Xp,aP],styles:[".input-field[_ngcontent-%COMP%]{width:100%}.height-100[_ngcontent-%COMP%]{height:100%}.button-div[_ngcontent-%COMP%]{float:right;position:absolute;right:0;bottom:0}.allow[_ngcontent-%COMP%]{background-color:green}.deny[_ngcontent-%COMP%]{background-color:#8b0000}.typeSelect[_ngcontent-%COMP%]{height:25px;margin-left:5px;margin-right:5px}.groupList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.groups[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.example-tree-node[_ngcontent-%COMP%]{display:block}.example-tree-node[_ngcontent-%COMP%] .example-tree-node[_ngcontent-%COMP%]{padding-left:40px}.form-div[_ngcontent-%COMP%]{position:relative;width:25%;float:right;margin-left:20px}.selected[_ngcontent-%COMP%]{color:green}"]});var IT=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();IT.\u0275fac=function(r){return new(r||IT)(t.Y36(cr),t.Y36(So))},IT.\u0275cmp=t.Xpm({type:IT,selectors:[["app-delete-ace-dialog"]],decls:9,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure you want to delete the following ACEs ?"),t.qZA(),t.TgZ(2,"ul"),t.YNc(3,Vqe,2,1,"li",1),t.qZA(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(6,"No, cancel"),t.qZA(),t.TgZ(7,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(8," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(3),t.Q6J("ngForOf",e.data.aces))},dependencies:[ge.sg,cn,Cr,dr]});var lP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i,o){var a=this;if(!e)return[];if(!i)return e;i=i.toLowerCase();var s=o.filter(function(l){return l.name.toLowerCase().includes(i)});return e.data.filter(function(l){var u=a.getEndpoint(l.user_id,o),d=a.getEndpoint(l.group_id,o),h=a.getEndpoint(l.path,o),g=a.getEndpoint(l.role_id,o);return s.some(function(C){return[u,d,h,g].includes(C.endpoint)})})}},{key:"getEndpoint",value:function(e,i){var o=i.filter(function(a){return a.endpoint.includes(e)});return o.length>0?o[0].endpoint.toLowerCase():""}}]),n}();lP.\u0275fac=function(r){return new(r||lP)},lP.\u0275pipe=t.Yjl({name:"aceFilter",type:lP,pure:!0});var Yqe=["acesPaginator"],Kqe=["acesSort"];function qqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",31)(1,"mat-checkbox",32),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Jqe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",33)(1,"mat-checkbox",34),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function Qqe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Path"),t.qZA())}function Xqe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.path)," ")}}function $qe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"User/Group"),t.qZA())}function eJe(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.xp6(1),t.Oqu(i.getNameByUuidFromEndpoint(e.user_id))}}function tJe(n,r){if(1&n&&t._uU(0),2&n){var e=t.oxw().$implicit,i=t.oxw(2);t.Oqu(i.getNameByUuidFromEndpoint(e.group_id))}}function nJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t.YNc(1,eJe,2,1,"div",37),t.YNc(2,tJe,1,1,"ng-template",null,38,t.W1O),t.qZA()),2&n){var e=r.$implicit,i=t.MAs(3);t.xp6(1),t.Q6J("ngIf","user"===e.ace_type)("ngIfElse",i)}}function rJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Role"),t.qZA())}function iJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hij(" ",i.getNameByUuidFromEndpoint(e.role_id)," ")}}function oJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Propagate"),t.qZA())}function aJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.propagate," ")}}function sJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Allowed"),t.qZA())}function lJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.allowed," ")}}function uJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Created"),t.qZA())}function cJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function dJe(n,r){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Last update"),t.qZA())}function fJe(n,r){if(1&n&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function pJe(n,r){1&n&&t._UZ(0,"th",39)}function hJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",36)(1,"button",40),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete(a))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function mJe(n,r){1&n&&t._UZ(0,"tr",41)}function _Je(n,r){1&n&&t._UZ(0,"tr",42)}var gJe=function(){return{standalone:!0}},vJe=function(){return[5,10,20]};function yJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Access Control List (ACL)"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.deleteMultiple())}),t._uU(6," Delete selected ACEs "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addACE())}),t._uU(8," Add ACE "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"aceFilter"),t.ynx(16,13),t.YNc(17,qqe,2,2,"th",14),t.YNc(18,Jqe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,Qqe,2,0,"th",17),t.YNc(21,Xqe,2,1,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,$qe,2,0,"th",17),t.YNc(24,nJe,4,2,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,rJe,2,0,"th",17),t.YNc(27,iJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,oJe,2,0,"th",17),t.YNc(30,aJe,2,1,"td",18),t.BQk(),t.ynx(31,22),t.YNc(32,sJe,2,0,"th",17),t.YNc(33,lJe,2,1,"td",18),t.BQk(),t.ynx(34,23),t.YNc(35,uJe,2,0,"th",17),t.YNc(36,cJe,2,1,"td",18),t.BQk(),t.ynx(37,24),t.YNc(38,dJe,2,0,"th",17),t.YNc(39,fJe,2,1,"td",18),t.BQk(),t.ynx(40,25),t.YNc(41,pJe,1,0,"th",26),t.YNc(42,hJe,4,0,"td",18),t.BQk(),t.YNc(43,mJe,1,0,"tr",27),t.YNc(44,_Je,1,0,"tr",28),t.qZA(),t._UZ(45,"mat-paginator",29,30),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(11,gJe)),t.xp6(2),t.Q6J("dataSource",t.Dn7(15,7,i.dataSource,i.searchText,i.endpoints)),t.xp6(30),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(12,vJe))}}function bJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",43),t.qZA())}var uP=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.aclService=o,this.dialog=a,this.displayedColumns=["select","path","user/group","role","propagate","allowed","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1,this.searchText=""}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.aclService.getEndpoints(e.controller).subscribe(function(a){e.endpoints=a,e.refresh()})})}},{key:"ngAfterViewInit",value:function(){var e=this;this.acesPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.acesSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){switch(o){case"path":case"user/group":case"role":return i[o]?i[o].toLowerCase():"";default:return i[o]}}}},{key:"refresh",value:function(){var e=this;this.aclService.list(this.controller).subscribe(function(i){e.isReady=!0,e.aces=i,e.dataSource.data=i,e.selection.clear()})}},{key:"addACE",value:function(){var e=this,i=this.dialog.open(sP,{width:"1200px",height:"500px",autoFocus:!1,disableClose:!0,data:{endpoints:this.endpoints}});i.componentInstance.controller=this.controller,i.afterClosed().subscribe(function(){return e.refresh()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(IT,{width:"500px",data:{aces:[e]}}).afterClosed().subscribe(function(o){o&&i.aclService.delete(i.controller,e.ace_id).subscribe(function(){i.refresh()},function(a){i.toasterService.error("An error occur while trying to delete ace ".concat(e.ace_id))})})}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.aces.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.aces.forEach(function(i){return e.selection.select(i)})}},{key:"deleteMultiple",value:function(){var e=this;this.dialog.open(IT,{width:"500px",data:{aces:this.selection.selected}}).afterClosed().subscribe(function(i){i&&(e.selection.selected.forEach(function(o){e.aclService.delete(e.controller,o.ace_id).subscribe(function(){e.refresh()},function(a){e.toasterService.error("An error occur while trying to delete ace ".concat(o.ace_id))})}),e.selection.clear())})}},{key:"getNameByUuidFromEndpoint",value:function(e){if(this.endpoints){var i=this.endpoints.filter(function(o){return o.endpoint.includes(e)});if(i.length>=1)return i[0].name}return""}}]),n}();uP.\u0275fac=function(r){return new(r||uP)(t.Y36(pr),t.Y36(rr),t.Y36(Ln),t.Y36(bf),t.Y36(jr))},uP.\u0275cmp=t.Xpm({type:uP,selectors:[["app-acl-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(Yqe,5),t.Gf(Kqe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.acesPaginator=i),t.iGM(i=t.CRH())&&(e.acesSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ace-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search by path, user/group or role",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["acesSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","path"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user/group"],["matColumnDef","role"],["matColumnDef","propagate"],["matColumnDef","allowed"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["acesPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["groupId",""],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,yJe,47,13,"div",0),t.YNc(1,bJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,$r,zu,yf,lP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ace-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var Vb=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"get",value:function(e){return new RegExp(/[~`!#$%\^&*+=\[\]\\';,/{}|\\":<>\?]/).test(e.value)?{invalidName:!0}:null}}]),n}();Vb.\u0275fac=function(r){return new(r||Vb)},Vb.\u0275prov=t.Yz7({token:Vb,factory:Vb.\u0275fac});var CJe=function(r,e){return function(i){return(0,Tp.H)(500).pipe((0,bo.w)(function(){return e.getAll(r)}),(0,$n.U)(function(o){return o.find(function(a){return a.name===i.value})?{projectExist:!0}:null}))}},Km=function(){function n(r,e){(0,H.Z)(this,n),this.httpController=r,this.projectService=e}return(0,B.Z)(n,[{key:"getAll",value:function(e){return this.httpController.get(e,"/pools")}},{key:"get",value:function(e,i){return $i.y.forkJoin([this.httpController.get(e,"/pools/".concat(i)),this.httpController.get(e,"/pools/".concat(i,"/resources"))]).pipe((0,$n.U)(function(o){return o[0].resources=o[1],o[0]}))}},{key:"delete",value:function(e,i){return this.httpController.delete(e,"/pools/".concat(i))}},{key:"add",value:function(e,i){return this.httpController.post(e,"/pools",{name:i})}},{key:"update",value:function(e,i){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id),{name:i.name})}},{key:"addResource",value:function(e,i,o){return this.httpController.put(e,"/pools/".concat(i.resource_pool_id,"/resources/").concat(o.project_id),{})}},{key:"deleteResource",value:function(e,i,o){return this.httpController.delete(e,"/pools/".concat(o.resource_pool_id,"/resources/").concat(i.resource_id))}},{key:"getFreeResources",value:function(e){var i=this;return this.projectService.list(e).pipe((0,bo.w)(function(o){return i.getAllNonFreeResources(e).pipe((0,$n.U)(function(a){return a.map(function(s){return s.resource_id})}),(0,$n.U)(function(a){return o.filter(function(s){return!a.includes(s.project_id)})}))}))}},{key:"getAllNonFreeResources",value:function(e){var i=this;return this.getAll(e).pipe((0,bo.w)(function(o){return $i.y.forkJoin(o.map(function(a){return i.httpController.get(e,"/pools/".concat(a.resource_pool_id,"/resources"))}))}),(0,$n.U)(function(o){var l,a=[],s=(0,xn.Z)(o);try{for(s.s();!(l=s.n()).done;){var h,u=l.value,d=(0,xn.Z)(u);try{for(d.s();!(h=d.n()).done;){var g=h.value;a.push(g)}}catch(C){d.e(C)}finally{d.f()}}}catch(C){s.e(C)}finally{s.f()}return a}))}}]),n}();function wJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is required"),t.qZA())}function kJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool name is incorrect"),t.qZA())}function TJe(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Resource pool with this name exists"),t.qZA())}Km.\u0275fac=function(r){return new(r||Km)(t.LFG(mo.zw),t.LFG(Gs.Y))},Km.\u0275prov=t.Yz7({token:Km,factory:Km.\u0275fac,providedIn:"root"});var MJe=function(r){return{"is-invalid":r}},cP=function(){function n(r,e,i,o,a,s){(0,H.Z)(this,n),this.dialogRef=r,this.data=e,this.formBuilder=i,this.poolNameValidator=o,this.resourcePoolsService=a,this.toasterService=s}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){this.controller=this.data.controller,this.poolNameForm=this.formBuilder.group({poolName:new J.p4(null,[J.kI.required,this.poolNameValidator.get],[CJe(this.data.controller,this.resourcePoolsService)])})}},{key:"onKeyDown",value:function(e){"Enter"===e.key&&this.onAddClick()}},{key:"form",get:function(){return this.poolNameForm.controls}},{key:"onAddClick",value:function(){var e=this;if(!this.poolNameForm.invalid){var i=this.poolNameForm.controls.poolName.value;this.resourcePoolsService.add(this.controller,i).subscribe(function(o){e.dialogRef.close(!0)},function(o){e.toasterService.error("An error occur while trying to create new pool ".concat(i)),e.dialogRef.close(!1)})}}},{key:"onNoClick",value:function(){this.dialogRef.close()}}]),n}();function SJe(n,r){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}cP.\u0275fac=function(r){return new(r||cP)(t.Y36(cr),t.Y36(So),t.Y36(J.QS),t.Y36(Vb),t.Y36(Km),t.Y36(Ln))},cP.\u0275cmp=t.Xpm({type:cP,selectors:[["app-add-resource-pool-dialog"]],features:[t._Bn([Vb])],decls:13,vars:7,consts:[["mat-dialog-title",""],[1,"file-name-form",3,"formGroup"],[1,"file-name-form-field"],["matInput","","type","text","formControlName","poolName","placeholder","Please enter a resource pool name",3,"ngClass","keydown"],[4,"ngIf"],["mat-dialog-actions","",1,"button-div"],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Create new resource pool"),t.qZA(),t.TgZ(2,"form",1)(3,"mat-form-field",2)(4,"input",3),t.NdJ("keydown",function(o){return e.onKeyDown(o)}),t.qZA(),t.YNc(5,wJe,2,0,"mat-error",4),t.YNc(6,kJe,2,0,"mat-error",4),t.YNc(7,TJe,2,0,"mat-error",4),t.qZA()(),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return e.onNoClick()}),t._uU(10,"Cancel"),t.qZA(),t.TgZ(11,"button",7),t.NdJ("click",function(){return e.onAddClick()}),t._uU(12," Add resource pool "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("formGroup",e.poolNameForm),t.xp6(2),t.Q6J("ngClass",t.VKq(5,MJe,null==e.form.poolName?null:e.form.poolName.errors)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.touched)&&(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.required)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.invalidName)),t.xp6(1),t.Q6J("ngIf",(null==e.form.poolName?null:e.form.poolName.errors)&&(null==e.form.poolName?null:e.form.poolName.errors.projectExist)))},dependencies:[ge.mk,ge.O5,J._Y,J.Fj,J.JJ,J.JL,J.sg,J.u,kn.TO,kn.KE,cn,Kn,Cr,dr],styles:[".file-name-form-field[_ngcontent-%COMP%]{width:100%}.project-snackbar[_ngcontent-%COMP%]{background:#2196f3}.userList[_ngcontent-%COMP%]{display:flex;margin:10px;justify-content:space-between;flex:1 1 auto}.users[_ngcontent-%COMP%]{display:flex;height:180px;overflow:auto;flex-direction:column}.button-div[_ngcontent-%COMP%]{float:right}"]});var dP=function(){function n(r,e){(0,H.Z)(this,n),this.dialogRef=r,this.data=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}},{key:"onCancel",value:function(){this.dialogRef.close()}},{key:"onDelete",value:function(){this.dialogRef.close(!0)}}]),n}();dP.\u0275fac=function(r){return new(r||dP)(t.Y36(cr),t.Y36(So))},dP.\u0275cmp=t.Xpm({type:dP,selectors:[["app-delete-resource-pool"]],decls:8,vars:1,consts:[["mat-dialog-title",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",1,"add-project-button",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"h1",0),t._uU(1,"Are you sure to delete pools named: "),t.qZA(),t.YNc(2,SJe,2,1,"p",1),t.TgZ(3,"div",2)(4,"button",3),t.NdJ("click",function(){return e.onCancel()}),t._uU(5,"No, cancel"),t.qZA(),t.TgZ(6,"button",4),t.NdJ("click",function(){return e.onDelete()}),t._uU(7," Yes, delete! "),t.qZA()()),2&r&&(t.xp6(2),t.Q6J("ngForOf",e.data.pools))},dependencies:[ge.sg,cn,Cr,dr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}"]});var fP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return i&&(i=i.trim().toLowerCase(),e.filter=i),e}}]),n}();fP.\u0275fac=function(r){return new(r||fP)},fP.\u0275pipe=t.Yjl({name:"resourcePoolsFilter",type:fP,pure:!0});var EJe=["resourcePoolsPaginator"],xJe=["resourcePoolsSort"];function DJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"th",27)(1,"mat-checkbox",28),t.NdJ("change",function(a){t.CHM(e);var s=t.oxw(2);return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&n){var i=t.oxw(2);t.xp6(1),t.Q6J("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function AJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",29)(1,"mat-checkbox",30),t.NdJ("click",function(s){return s.stopPropagation()})("change",function(s){var u=t.CHM(e).$implicit,d=t.oxw(2);return t.KtG(s?d.selection.toggle(u):null)}),t.qZA()()}if(2&n){var i=r.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("checked",o.selection.isSelected(i))}}function OJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Name"),t.qZA())}function IJe(n,r){if(1&n&&(t.TgZ(0,"td",32)(1,"a",33),t._uU(2),t.qZA()()),2&n){var e=r.$implicit,i=t.oxw(2);t.xp6(1),t.hYB("routerLink","/controller/",i.controller.id,"/management/pools/",e.resource_pool_id,""),t.xp6(1),t.Oqu(e.name)}}function PJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Creation date"),t.qZA())}function RJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.created_at," ")}}function LJe(n,r){1&n&&(t.TgZ(0,"th",31),t._uU(1," Last update"),t.qZA())}function ZJe(n,r){if(1&n&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.xp6(1),t.hij(" ",e.updated_at," ")}}function NJe(n,r){1&n&&t._UZ(0,"th",34)}function BJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"td",32)(1,"button",35),t.NdJ("click",function(){var a=t.CHM(e).$implicit,s=t.oxw(2);return t.KtG(s.onDelete([a]))}),t.TgZ(2,"mat-icon"),t._uU(3,"delete"),t.qZA()()()}}function FJe(n,r){1&n&&t._UZ(0,"tr",36)}function UJe(n,r){1&n&&t._UZ(0,"tr",37)}var HJe=function(){return{standalone:!0}},jJe=function(){return[5,10,20]};function GJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",2)(1,"div",3)(2,"div",4)(3,"h1",5),t._uU(4,"Resource pools"),t.qZA(),t.TgZ(5,"button",6),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.onDelete(a.selection.selected))}),t._uU(6," Delete selected pools "),t.qZA(),t.TgZ(7,"button",7),t.NdJ("click",function(){t.CHM(e);var a=t.oxw();return t.KtG(a.addResourcePool())}),t._uU(8," Add resource pool "),t.qZA()()(),t.TgZ(9,"form")(10,"mat-form-field",8)(11,"input",9),t.NdJ("ngModelChange",function(a){t.CHM(e);var s=t.oxw();return t.KtG(s.searchText=a)}),t.qZA()()(),t.TgZ(12,"div",10)(13,"table",11,12),t.ALo(15,"resourcePoolsFilter"),t.ynx(16,13),t.YNc(17,DJe,2,2,"th",14),t.YNc(18,AJe,2,1,"td",15),t.BQk(),t.ynx(19,16),t.YNc(20,OJe,2,0,"th",17),t.YNc(21,IJe,3,3,"td",18),t.BQk(),t.ynx(22,19),t.YNc(23,PJe,2,0,"th",17),t.YNc(24,RJe,2,1,"td",18),t.BQk(),t.ynx(25,20),t.YNc(26,LJe,2,0,"th",17),t.YNc(27,ZJe,2,1,"td",18),t.BQk(),t.ynx(28,21),t.YNc(29,NJe,1,0,"th",22),t.YNc(30,BJe,4,0,"td",18),t.BQk(),t.YNc(31,FJe,1,0,"tr",23),t.YNc(32,UJe,1,0,"tr",24),t.qZA(),t._UZ(33,"mat-paginator",25,26),t.qZA()()}if(2&n){var i=t.oxw();t.xp6(5),t.Q6J("disabled",0==i.selection.selected.length),t.xp6(6),t.Q6J("ngModel",i.searchText)("ngModelOptions",t.DdM(10,HJe)),t.xp6(2),t.Q6J("dataSource",t.xi3(15,7,i.dataSource,i.searchText)),t.xp6(18),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSizeOptions",t.DdM(11,jJe))}}function zJe(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",38),t.qZA())}var pP=function(){function n(r,e,i,o,a){(0,H.Z)(this,n),this.route=r,this.controllerService=e,this.toasterService=i,this.resourcePoolsService=o,this.dialog=a,this.displayedColumns=["select","name","created_at","updated_at","delete"],this.selection=new Ci.Ov(!0,[]),this.dataSource=new Ap,this.isReady=!1}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this,i=this.route.parent.snapshot.paramMap.get("controller_id");this.controllerService.get(+i).then(function(o){e.controller=o,e.refresh()})}},{key:"ngAfterViewInit",value:function(){var e=this;this.resourcePoolsPaginator.changes.subscribe(function(i){e.dataSource.paginator=i.first}),this.resourcePoolsSort.changes.subscribe(function(i){e.dataSource.sort=i.first}),this.dataSource.sortingDataAccessor=function(i,o){return"name"===o?i[o]?i[o].toLowerCase():"":i[o]}}},{key:"isAllSelected",value:function(){return this.selection.selected.length===this.resourcePools.length}},{key:"masterToggle",value:function(){var e=this;this.isAllSelected()?this.selection.clear():this.resourcePools.forEach(function(i){return e.selection.select(i)})}},{key:"addResourcePool",value:function(){var e=this;this.dialog.open(cP,{width:"600px",height:"500px",data:{controller:this.controller}}).afterClosed().subscribe(function(i){i&&e.refresh()})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.getAll(this.controller).subscribe(function(i){e.isReady=!0,e.resourcePools=i,e.dataSource.data=i,e.selection.clear()})}},{key:"onDelete",value:function(e){var i=this;this.dialog.open(dP,{width:"500px",height:"250px",data:{pools:e}}).afterClosed().subscribe(function(o){if(o){var a=e.map(function(s){return i.resourcePoolsService.delete(i.controller,s.resource_pool_id)});(0,B0.D)(a).subscribe(function(){i.refresh()},function(s){i.toasterService.error("An error occur while trying to delete resource pool")})}})}}]),n}();pP.\u0275fac=function(r){return new(r||pP)(t.Y36(pr),t.Y36(rr),t.Y36(Ln),t.Y36(Km),t.Y36(jr))},pP.\u0275cmp=t.Xpm({type:pP,selectors:[["app-resource-pools-management"]],viewQuery:function(r,e){var i;(1&r&&(t.Gf(EJe,5),t.Gf(xJe,5)),2&r)&&(t.iGM(i=t.CRH())&&(e.resourcePoolsPaginator=i),t.iGM(i=t.CRH())&&(e.resourcePoolsSort=i))},decls:3,vars:2,consts:[["class","content",4,"ngIf","ngIfElse"],["loading",""],[1,"content"],[1,"default-header"],[1,"row"],[1,"col"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"disabled","click"],["mat-raised-button","","color","primary",1,"add-ressourcePool-button",3,"click"],[1,"full-width"],["matInput","","placeholder","Search resource pool by name",3,"ngModel","ngModelOptions","ngModelChange"],[1,"default-content"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["resourcePoolsSort","matSort"],["matColumnDef","select"],["mat-header-cell","","class","small-col",4,"matHeaderCellDef"],["mat-cell","","class","small-col",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["matColumnDef","updated_at"],["matColumnDef","delete"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page",3,"pageSizeOptions"],["resourcePoolsPaginator","matPaginator"],["mat-header-cell","",1,"small-col"],[3,"checked","indeterminate","change"],["mat-cell","",1,"small-col"],[3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"table-link",3,"routerLink"],["mat-header-cell",""],["mat-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"loader"]],template:function(r,e){if(1&r&&(t.YNc(0,GJe,35,12,"div",0),t.YNc(1,zJe,2,0,"ng-template",null,1,t.W1O)),2&r){var i=t.MAs(2);t.Q6J("ngIf",e.isReady)("ngIfElse",i)}},dependencies:[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,md,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,lu,$r,zu,yf,fP],styles:["table[_ngcontent-%COMP%]{width:100%}.full-width[_ngcontent-%COMP%]{width:940px;margin-left:-470px;left:50%}.add-ressourcePool-button[_ngcontent-%COMP%]{height:40px;width:160px;margin:20px}.loader[_ngcontent-%COMP%]{position:absolute;margin:auto;height:175px;inset:0;width:175px}"]});var hP=function(){function n(r,e){(0,H.Z)(this,n),this.data=r,this.dialogRef=e}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){}}]),n}();function WJe(n,r){if(1&n&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&n){var e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function VJe(n,r){if(1&n){var e=t.EpF();t.TgZ(0,"div",22)(1,"div"),t._uU(2),t.qZA(),t.TgZ(3,"div")(4,"button",18)(5,"mat-icon",19),t.NdJ("click",function(){var s=t.CHM(e).$implicit,l=t.oxw();return t.KtG(l.deleteResource(s))}),t._uU(6,"delete"),t.qZA()()()()}if(2&n){var i=r.$implicit;t.xp6(2),t.Oqu(i.name)}}hP.\u0275fac=function(r){return new(r||hP)(t.Y36(_ie),t.Y36(cr))},hP.\u0275cmp=t.Xpm({type:hP,selectors:[["app-delete-resource-confirmation-dialog"]],decls:7,vars:2,consts:[[1,"title"],[1,"button"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return e.dialogRef.close()}),t._uU(4,"Cancel"),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return e.dialogRef.close(e.data)}),t._uU(6,"Update"),t.qZA()()),2&r&&(t.xp6(1),t.AsE("delete resource ",e.data.resource_type,"/",e.data.name," ?"))},dependencies:[cn],styles:["[_nghost-%COMP%]{display:flex;margin:30px;flex-direction:column}.title[_ngcontent-%COMP%]{margin-bottom:50px}.button[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]});var YJe=function(r){return["/controller",r,"management","pools"]},mP=function(){function n(r,e,i,o){(0,H.Z)(this,n),this.toastService=r,this.route=e,this.resourcePoolsService=i,this.dialog=o,this.addResourceFormControl=new J.NI(""),this.projects=[],this.editPoolForm=new J.nJ({poolname:new J.p4})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.route.data.subscribe(function(i){e.controller=i.controller,e.pool=i.pool,e.refresh()})}},{key:"onUpdate",value:function(){var e=this;this.resourcePoolsService.update(this.controller,this.pool).subscribe(function(i){e.toastService.success("pool ".concat(i.name,", updated"))})}},{key:"addResource",value:function(){var e=this,i=this.addResourceFormControl.value,o=this.projects.filter(function(a){return a.name.includes(i)});1!==o.length?0!==o.length?o.length>1&&this.toastService.error("".concat(o.length," match ").concat(i,", please be more accurate")):this.toastService.error("cannot found related project with string: ".concat(i)):this.resourcePoolsService.addResource(this.controller,this.pool,o[0]).subscribe(function(){e.toastService.success("project : ".concat(o[0].name,", added to pool: ").concat(e.pool.name)),e.refresh(),e.addResourceFormControl.setValue("")})}},{key:"deleteResource",value:function(e){var i=this;this.dialog.open(hP,{data:e}).afterClosed().subscribe(function(o){o&&i.resourcePoolsService.deleteResource(i.controller,o,i.pool).subscribe(function(){i.refresh(),i.toastService.success("resource ".concat(o.name," delete from pool ").concat(i.pool.name))})})}},{key:"refresh",value:function(){var e=this;this.resourcePoolsService.get(this.controller,this.pool.resource_pool_id).subscribe(function(i){e.pool=i}),this.resourcePoolsService.getFreeResources(this.controller).subscribe(function(i){e.projects=i,e.addResourceFilteredOptions=e.addResourceFormControl.valueChanges.pipe((0,eo.O)(""),(0,$n.U)(function(o){return e.projects.filter(function(a){return a.name.toLowerCase().includes(o.toLowerCase()||"")}).map(function(a){return a.name})}))})}}]),n}();mP.\u0275fac=function(r){return new(r||mP)(t.Y36(Ln),t.Y36(pr),t.Y36(Km),t.Y36(jr))},mP.\u0275cmp=t.Xpm({type:mP,selectors:[["app-resource-pool-details"]],decls:38,vars:15,consts:[[1,"content"],[1,"default-header"],[1,"row","align-items-center"],["mat-icon-button","","matTooltip","back to resource pools management","mattooltipclass","custom-tooltip",3,"routerLink"],["aria-label","back to resource pools management"],[1,"col"],[1,"main"],[1,"details"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"button-div"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click"],[3,"vertical"],[1,"resources"],[1,"addResource"],["type","text","placeholder","add project to resource pool","matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-button",""],[3,"click"],["class","ownedResources",4,"ngFor","ngForOf"],[3,"value"],[1,"ownedResources"]],template:function(r,e){if(1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3)(4,"mat-icon",4),t._uU(5,"keyboard_arrow_left"),t.qZA()(),t.TgZ(6,"h1",5),t._uU(7),t.qZA()(),t.TgZ(8,"div",6)(9,"div",7)(10,"div")(11,"mat-form-field")(12,"mat-label"),t._uU(13,"Resource pool name:"),t.qZA(),t.TgZ(14,"input",8),t.NdJ("ngModelChange",function(a){return e.pool.name=a}),t.qZA()()(),t.TgZ(15,"div"),t._uU(16),t.qZA(),t.TgZ(17,"div"),t._uU(18),t.qZA(),t.TgZ(19,"div"),t._uU(20),t.qZA(),t.TgZ(21,"div",9)(22,"button",10),t.NdJ("click",function(){return e.onUpdate()}),t._uU(23," Update resource pool "),t.qZA()()(),t._UZ(24,"mat-divider",11),t.TgZ(25,"div",12)(26,"div",13)(27,"div"),t._UZ(28,"input",14),t.TgZ(29,"mat-autocomplete",15,16),t.YNc(31,WJe,2,2,"mat-option",17),t.ALo(32,"async"),t.qZA()(),t.TgZ(33,"div")(34,"button",18)(35,"mat-icon",19),t.NdJ("click",function(){return e.addResource()}),t._uU(36,"add"),t.qZA()()()(),t.YNc(37,VJe,7,1,"div",20),t.qZA()()()()),2&r){var i=t.MAs(30);t.xp6(3),t.Q6J("routerLink",t.VKq(13,YJe,e.controller.id)),t.xp6(4),t.hij("Resource pool ",e.pool.name,""),t.xp6(7),t.Q6J("ngModel",e.pool.name),t.xp6(2),t.hij("creation date: ",e.pool.created_at,""),t.xp6(2),t.hij("last update date: ",e.pool.updated_at,""),t.xp6(2),t.hij("uuid: ",e.pool.resource_pool_id,""),t.xp6(4),t.Q6J("vertical",!0),t.xp6(4),t.Q6J("formControl",e.addResourceFormControl)("matAutocomplete",i),t.xp6(3),t.Q6J("ngForOf",t.lcZ(32,11,e.addResourceFilteredOptions)),t.xp6(6),t.Q6J("ngForOf",e.pool.resources)}},dependencies:[ge.sg,Us,J.Fj,J.JJ,J.On,J.oH,kn.KE,kn.hX,cn,N0,Dn,Kn,dr,fm.d,Vt.ey,ui,Jp,Qp,ge.Ov],styles:[".main[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.details[_ngcontent-%COMP%]{width:30vw;display:flex;flex-direction:column;justify-content:center}.clickable[_ngcontent-%COMP%]{cursor:pointer}.privilege[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:10px;justify-content:space-between}.permission[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px;border:1px solid;padding:5px;border-radius:5px;font-family:monospace}.header[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:20px;padding-left:10px}.header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:2em}.resources[_ngcontent-%COMP%]{display:flex;flex-direction:column}.ownedResources[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.addResource[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between}"]});var PT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.resourcePoolsService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("pool_id");o.controllerService.get(+s).then(function(u){o.resourcePoolsService.get(u,l).subscribe(function(d){a.next(d),a.complete()})})})}}]),n}();PT.\u0275fac=function(r){return new(r||PT)(t.LFG(rr),t.LFG(Km))},PT.\u0275prov=t.Yz7({token:PT,factory:PT.\u0275fac,providedIn:"root"});var RT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_group_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.group_id===l});a.next(h),a.complete()})})})}}]),n}();RT.\u0275fac=function(r){return new(r||RT)(t.LFG(rr),t.LFG(bf))},RT.\u0275prov=t.Yz7({token:RT,factory:RT.\u0275fac,providedIn:"root"});var LT=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.aceService=e}return(0,B.Z)(n,[{key:"resolve",value:function(e,i){var o=this;return new $i.y(function(a){var s=e.paramMap.get("controller_id"),l=e.paramMap.get("user_id");o.controllerService.get(+s).then(function(u){o.aceService.list(u).subscribe(function(d){var h=d.filter(function(g){return g.user_id===l});a.next(h),a.complete()})})})}}]),n}();LT.\u0275fac=function(r){return new(r||LT)(t.LFG(rr),t.LFG(bf))},LT.\u0275prov=t.Yz7({token:LT,factory:LT.\u0275fac,providedIn:"root"});var KJe=[{path:"",component:DI,children:[{path:"",redirectTo:"controllers",pathMatch:"full"},{path:"controllers",component:gI},{path:"bundled",component:ND},{path:"controller/:controller_id/login",component:QD},{path:"controller/:controller_id/loggeduser",component:NI},{path:"controller/:controller_id/image-manager",component:UI},{path:"controller/:controller_id/projects",component:mT,canActivate:[Fr],resolve:{controller:_d}},{path:"controller/:controller_id/help",component:YD},{path:"controller/:controller_id/settings",component:yI},{path:"controller/:controller_id/settings/console",component:vI},{path:"controller/:controller_id/management/users/:user_id",component:jI,canActivate:[Fr],resolve:{user:MT,groups:ST,aces:LT,controller:_d}},{path:"controller/:controller_id/management/pools/:pool_id",component:mP,canActivate:[Fr],resolve:{pool:PT,controller:_d}},{path:"installed-software",component:JD},{path:"controller/:controller_id/systemstatus",component:SI,canActivate:[Fr]},{path:"controller/:controller_ip/:controller_port/project/:project_id",component:jD,canActivate:[Fr]},{path:"controller/:controller_id/project/:project_id/snapshots",component:wI,canActivate:[Fr],resolve:{controller:_d}},{path:"controller/:controller_id/preferences",component:R2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin",component:$D,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs",component:h2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/addtemplate",component:f2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-hubs/:template_id",component:p2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches",component:g2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/addtemplate",component:m2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/ethernet-switches/:template_id",component:_2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes",component:d2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/addtemplate",component:t2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/builtin/cloud-nodes/:template_id",component:r2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates",component:D2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/addtemplate",component:S2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id",component:x2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/dynamips/templates/:template_id/copy",component:E2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates",component:B2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id/copy",component:Z2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/templates/:template_id",component:N2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/qemu/addtemplate",component:L2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/templates",component:Y2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/templates/:template_id",component:V2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vpcs/addtemplate",component:W2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/templates",component:H2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/templates/:template_id",component:U2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/virtualbox/addtemplate",component:F2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/templates",component:z2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/templates/:template_id",component:G2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/vmware/addtemplate",component:j2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates",component:M2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates/:template_id",component:T2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/templates/:template_id/copy",component:k2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/docker/addtemplate",component:w2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates",component:P2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates/:template_id",component:I2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/templates/:template_id/copy",component:O2,canActivate:[Fr]},{path:"controller/:controller_id/preferences/iou/addtemplate",component:A2,canActivate:[Fr]},{path:"controller/:controller_id/management",component:GI,children:[{path:"users",component:ZI},{path:"groups",component:YI},{path:"roles",component:QI},{path:"pools",component:pP},{path:"ACL",component:uP}]},{path:"controller/:controller_id/management/groups/:user_group_id",component:nP,resolve:{members:xT,controller:_d,group:DT,aces:RT}},{path:"controller/:controller_id/management/roles/:role_id",component:oP,resolve:{role:OT,controller:_d}}]},{path:"controller/:controller_id/project/:project_id",component:pI,canActivate:[Fr],canDeactivate:[jb]},{path:"controller/:controller_id/project/:project_id/nodes/:node_id",component:CT,canActivate:[Fr]},{path:"static/web-ui/controller/:controller_id/project/:project_id/nodes/:node_id",component:CT,canActivate:[Fr]},{path:"**",component:XD}],ZT=(0,B.Z)(function n(){(0,H.Z)(this,n)});ZT.\u0275fac=function(r){return new(r||ZT)},ZT.\u0275mod=t.oAB({type:ZT}),ZT.\u0275inj=t.cJS({imports:[Z0.forRoot(KJe,{anchorScrolling:"enabled",enableTracing:!1,scrollPositionRestoration:"enabled"}),Z0]});var qJe=function(r,e){return{dark:r,light:e}},_P=function(){function n(r,e,i,o,a,s,l,u){var d=this;(0,H.Z)(this,n),this.overlayContainer=r,this.settingsService=o,this.electronService=a,this.themeService=s,this.router=l,this.progressService=u,this.darkThemeEnabled=!1,e.addSvgIcon("gns3",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon.svg")),e.addSvgIcon("gns3black",i.bypassSecurityTrustResourceUrl("./assets/gns3_icon_black.svg")),l.events.subscribe(function(h){d.checkEvent(h)})}return(0,B.Z)(n,[{key:"ngOnInit",value:function(){var e=this;this.applyTheme(this.themeService.savedTheme+"-theme"),this.themeService.themeChanged.subscribe(function(i){e.applyTheme(i)})}},{key:"applyTheme",value:function(e){this.darkThemeEnabled="dark-theme"===e,this.overlayContainer.getContainerElement().classList.add(e),this.componentCssClass=e}},{key:"checkEvent",value:function(e){e instanceof XN?this.progressService.activate():(e instanceof af||e instanceof TD||e instanceof xG)&&this.progressService.deactivate()}}]),n}();_P.\u0275fac=function(r){return new(r||_P)(t.Y36(xi.Xj),t.Y36(xp),t.Y36(Jt),t.Y36(jm.g),t.Y36(al),t.Y36(Cc.f),t.Y36(ur),t.Y36(Ml))},_P.\u0275cmp=t.Xpm({type:_P,selectors:[["app-root"]],hostVars:2,hostBindings:function(r,e){2&r&&t.Tol(e.componentCssClass)},decls:3,vars:4,consts:[[3,"ngClass"]],template:function(r,e){1&r&&(t.TgZ(0,"div",0),t._UZ(1,"router-outlet")(2,"app-adbutler"),t.qZA()),2&r&&t.Q6J("ngClass",t.WLB(1,qJe,e.darkThemeEnabled,!e.darkThemeEnabled))},dependencies:[ge.mk,cm,_k],styles:["mat-menu-panel[_ngcontent-%COMP%]{min-height:0px}.dark[_ngcontent-%COMP%]{background:#263238!important}.light[_ngcontent-%COMP%]{background:white!important}"]});var JJe=(0,B.Z)(function n(){(0,H.Z)(this,n)}),NT=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i=new JJe;return i.symbol_id=e.id,i.builtin=e.builtin,i.filename=e.filename,i.raw=e.raw,i}}]),n}();NT.\u0275fac=function(r){return new(r||NT)},NT.\u0275prov=t.Yz7({token:NT,factory:NT.\u0275fac});var BT=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"convert",value:function(e){var i={font_family:void 0,font_size:void 0,font_weight:void 0};return aW(e,{context:"declarationList"}).children.forEach(function(a){"font-size"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Dimension"===s.type&&(i.font_size=parseInt(s.value))}),"font-family"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_family=s.name)}),"font-weight"===a.property&&a.value&&a.value.children&&a.value.children.forEach(function(s){"Identifier"===s.type&&(i.font_weight=s.name)})}),i}}]),n}();BT.\u0275fac=function(r){return new(r||BT)},BT.\u0275prov=t.Yz7({token:BT,factory:BT.\u0275fac});var QJe=[ev,Bm,zp,Kg,Gp,Vp,qg,jp,Yg,kb,Xg,mb,hf,Cb,vb,bb,yb,$g,wb],FT=(0,B.Z)(function n(){(0,H.Z)(this,n)});FT.\u0275fac=function(r){return new(r||FT)},FT.\u0275mod=t.oAB({type:FT}),FT.\u0275inj=t.cJS({providers:[Mc,is,sv,Ab,Ob,Ib,Pb,Fp,Wp,ju,Nm,Hp,Wg,Ws,Rl,dd,fd,Um,hd,Zm,Hg,zg,pb,Rb,qp,cv,Lb,Wm,uv,NT,Gg,jg,hb,Up,Am,Om,Im,Pm,Vg,pf,Pp,BT,Jg,Qg].concat((0,pn.Z)(QJe)),imports:[ge.ez,xg,Sg]});var Yb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"getItemKey",value:function(o){return o.symbol_id}}]),e}(BB.o);Yb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Yb)))(e||Yb)}}(),Yb.\u0275prov=t.Yz7({token:Yb,factory:Yb.\u0275fac});var yW=function(n,r){return(yW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])})(n,r)};function gP(n,r){function e(){this.constructor=n}yW(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var Pn=function(){return Pn=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r},Pn.apply(this,arguments)};function qm(n){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&n[r],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function mu(n,r){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var o,s,i=e.call(n),a=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(l){s={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return a}function os(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(mu(arguments[r]));return n}var ya=m(7312),ole=Object.prototype.toString;function bW(n){switch(ole.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return vv(n,Error)}}function UT(n,r){return ole.call(n)==="[object "+r+"]"}function ale(n){return UT(n,"ErrorEvent")}function sle(n){return UT(n,"DOMError")}function HT(n){return UT(n,"String")}function CW(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function jT(n){return UT(n,"Object")}function PF(n){return"undefined"!=typeof Event&&vv(n,Event)}function wW(n){return Boolean(n&&n.then&&"function"==typeof n.then)}function vv(n,r){try{return n instanceof r}catch(e){return!1}}function kW(n,r){try{for(var e=n,a=[],s=0,l=0,d=" > ".length,h=void 0;e&&s++<5&&!("html"===(h=rQe(e,r))||s>1&&l+a.length*d+h.length>=80);)a.push(h),l+=h.length,e=e.parentNode;return a.reverse().join(" > ")}catch(g){return"<unknown>"}}function rQe(n,r){var o,a,s,l,u,e=n,i=[];if(!e||!e.tagName)return"";i.push(e.tagName.toLowerCase());var d=r&&r.length?r.filter(function(g){return e.getAttribute(g)}).map(function(g){return[g,e.getAttribute(g)]}):null;if(d&&d.length)d.forEach(function(g){i.push("["+g[0]+'="'+g[1]+'"]')});else if(e.id&&i.push("#"+e.id),(o=e.className)&&HT(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 vP(n,r){return void 0===r&&(r=0),"string"!=typeof n||0===r||n.length<=r?n:n.substr(0,r)+"..."}function lle(n,r){if(!Array.isArray(n))return"";for(var e=[],i=0;i<n.length;i++){var o=n[i];try{e.push(String(o))}catch(a){e.push("[value cannot be serialized]")}}return e.join(r)}function TW(n,r){return!!HT(n)&&(function eQe(n){return UT(n,"RegExp")}(r)?r.test(n):"string"==typeof r&&-1!==n.indexOf(r))}function Nl(n,r,e){if(r in n){var i=n[r],o=e(i);if("function"==typeof o)try{ule(o,i)}catch(a){}n[r]=o}}function RF(n,r,e){Object.defineProperty(n,r,{value:e,writable:!0,configurable:!0})}function ule(n,r){var e=r.prototype||{};n.prototype=r.prototype=e,RF(n,"__sentry_original__",r)}function MW(n){return n.__sentry_original__}function cle(n){var r=n;if(bW(n))r=Pn({message:n.message,name:n.name,stack:n.stack},fle(n));else if(PF(n)){var e=n;r=Pn({type:e.type,target:dle(e.target),currentTarget:dle(e.currentTarget)},fle(e)),"undefined"!=typeof CustomEvent&&vv(n,CustomEvent)&&(r.detail=e.detail)}return r}function dle(n){try{return function $Je(n){return"undefined"!=typeof Element&&vv(n,Element)}(n)?kW(n):Object.prototype.toString.call(n)}catch(r){return"<unknown>"}}function fle(n){var r={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r[e]=n[e]);return r}function aQe(n,r){void 0===r&&(r=40);var e=Object.keys(cle(n));if(e.sort(),!e.length)return"[object has no keys]";if(e[0].length>=r)return vP(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:vP(o,r)}return""}function SW(n){var r,e;if(jT(n)){var i={};try{for(var o=qm(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==n[s]&&(i[s]=SW(n[s]))}}catch(l){r={error:l}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}return Array.isArray(n)?n.map(SW):n}function GT(){var n=(0,ya.R)(),r=n.crypto||n.msCrypto;if(void 0!==r&&r.getRandomValues){var e=new Uint16Array(8);r.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var i=function(a){for(var s=a.toString(16);s.length<4;)s="0"+s;return s};return i(e[0])+i(e[1])+i(e[2])+i(e[3])+i(e[4])+i(e[5])+i(e[6])+i(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(o){var a=16*Math.random()|0;return("x"===o?a:3&a|8).toString(16)})}function EW(n){if(!n)return{};var r=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!r)return{};var e=r[6]||"",i=r[8]||"";return{host:r[4],path:r[5],protocol:r[2],relative:r[5]+e+i}}function ple(n){return n.exception&&n.exception.values?n.exception.values[0]:void 0}function Kb(n){var r=n.message,e=n.event_id;if(r)return r;var i=ple(n);return i?i.type&&i.value?i.type+": "+i.value:i.type||i.value||e||"<unknown>":e||"<unknown>"}function xW(n,r,e){var i=n.exception=n.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{};a.value||(a.value=r||""),a.type||(a.type=e||"Error")}function yP(n,r){var e=ple(n);if(e){var o=e.mechanism;if(e.mechanism=Pn(Pn(Pn({},{type:"generic",handled:!0}),o),r),r&&"data"in r){var a=Pn(Pn({},o&&o.data),r.data);e.mechanism.data=a}}}function hle(n){if(n&&n.__sentry_captured__)return!0;try{RF(n,"__sentry_captured__",!0)}catch(r){}return!1}var ci,zT=m(3169),WT="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,lQe=(0,ya.R)(),uQe="Sentry Logger ",LF=["debug","info","warn","error","log","assert"];function mle(n){var r=(0,ya.R)();if(!("console"in r))return n();var e=r.console,i={};LF.forEach(function(o){var a=e[o]&&e[o].__sentry_original__;o in r.console&&a&&(i[o]=e[o],e[o]=a)});try{return n()}finally{Object.keys(i).forEach(function(o){e[o]=i[o]})}}function _le(){var n=!1,r={enable:function(){n=!0},disable:function(){n=!1}};return WT?LF.forEach(function(e){r[e]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&mle(function(){var a;(a=lQe.console)[e].apply(a,os([uQe+"["+e+"]:"],i))})}}):LF.forEach(function(e){r[e]=function(){}}),r}ci=WT?(0,ya.Y)("logger",_le):_le();var cQe=m(3295),gle="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function qb(n){return new yv(function(r){r(n)})}function bP(n){return new yv(function(r,e){e(n)})}var yv=function(){function n(r){var e=this;this._state=0,this._handlers=[],this._resolve=function(i){e._setResult(1,i)},this._reject=function(i){e._setResult(2,i)},this._setResult=function(i,o){if(0===e._state){if(wW(o))return void o.then(e._resolve,e._reject);e._state=i,e._value=o,e._executeHandlers()}},this._executeHandlers=function(){if(0!==e._state){var i=e._handlers.slice();e._handlers=[],i.forEach(function(o){o[0]||(1===e._state&&o[1](e._value),2===e._state&&o[2](e._value),o[0]=!0)})}};try{r(this._resolve,this._reject)}catch(i){this._reject(i)}}return n.prototype.then=function(r,e){var i=this;return new n(function(o,a){i._handlers.push([!1,function(s){if(r)try{o(r(s))}catch(l){a(l)}else o(s)},function(s){if(e)try{o(e(s))}catch(l){a(l)}else a(s)}]),i._executeHandlers()})},n.prototype.catch=function(r){return this.then(function(e){return e},r)},n.prototype.finally=function(r){var e=this;return new n(function(i,o){var a,s;return e.then(function(l){s=!1,a=l,r&&r()},function(l){s=!0,a=l,r&&r()}).then(function(){s?o(a):i(a)})})},n}(),ZF=function(){function n(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return n.clone=function(r){var e=new n;return r&&(e._breadcrumbs=os(r._breadcrumbs),e._tags=Pn({},r._tags),e._extra=Pn({},r._extra),e._contexts=Pn({},r._contexts),e._user=r._user,e._level=r._level,e._span=r._span,e._session=r._session,e._transactionName=r._transactionName,e._fingerprint=r._fingerprint,e._eventProcessors=os(r._eventProcessors),e._requestSession=r._requestSession),e},n.prototype.addScopeListener=function(r){this._scopeListeners.push(r)},n.prototype.addEventProcessor=function(r){return this._eventProcessors.push(r),this},n.prototype.setUser=function(r){return this._user=r||{},this._session&&this._session.update({user:r}),this._notifyScopeListeners(),this},n.prototype.getUser=function(){return this._user},n.prototype.getRequestSession=function(){return this._requestSession},n.prototype.setRequestSession=function(r){return this._requestSession=r,this},n.prototype.setTags=function(r){return this._tags=Pn(Pn({},this._tags),r),this._notifyScopeListeners(),this},n.prototype.setTag=function(r,e){var i;return this._tags=Pn(Pn({},this._tags),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setExtras=function(r){return this._extra=Pn(Pn({},this._extra),r),this._notifyScopeListeners(),this},n.prototype.setExtra=function(r,e){var i;return this._extra=Pn(Pn({},this._extra),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setFingerprint=function(r){return this._fingerprint=r,this._notifyScopeListeners(),this},n.prototype.setLevel=function(r){return this._level=r,this._notifyScopeListeners(),this},n.prototype.setTransactionName=function(r){return this._transactionName=r,this._notifyScopeListeners(),this},n.prototype.setTransaction=function(r){return this.setTransactionName(r)},n.prototype.setContext=function(r,e){var i;return null===e?delete this._contexts[r]:this._contexts=Pn(Pn({},this._contexts),((i={})[r]=e,i)),this._notifyScopeListeners(),this},n.prototype.setSpan=function(r){return this._span=r,this._notifyScopeListeners(),this},n.prototype.getSpan=function(){return this._span},n.prototype.getTransaction=function(){var r=this.getSpan();return r&&r.transaction},n.prototype.setSession=function(r){return r?this._session=r:delete this._session,this._notifyScopeListeners(),this},n.prototype.getSession=function(){return this._session},n.prototype.update=function(r){if(!r)return this;if("function"==typeof r){var e=r(this);return e instanceof n?e:this}return r instanceof n?(this._tags=Pn(Pn({},this._tags),r._tags),this._extra=Pn(Pn({},this._extra),r._extra),this._contexts=Pn(Pn({},this._contexts),r._contexts),r._user&&Object.keys(r._user).length&&(this._user=r._user),r._level&&(this._level=r._level),r._fingerprint&&(this._fingerprint=r._fingerprint),r._requestSession&&(this._requestSession=r._requestSession)):jT(r)&&(this._tags=Pn(Pn({},this._tags),r.tags),this._extra=Pn(Pn({},this._extra),r.extra),this._contexts=Pn(Pn({},this._contexts),r.contexts),r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession)),this},n.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},n.prototype.addBreadcrumb=function(r,e){var i="number"==typeof e?Math.min(e,100):100;if(i<=0)return this;var o=Pn({timestamp:(0,zT.yW)()},r);return this._breadcrumbs=os(this._breadcrumbs,[o]).slice(-i),this._notifyScopeListeners(),this},n.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},n.prototype.applyToEvent=function(r,e){if(this._extra&&Object.keys(this._extra).length&&(r.extra=Pn(Pn({},this._extra),r.extra)),this._tags&&Object.keys(this._tags).length&&(r.tags=Pn(Pn({},this._tags),r.tags)),this._user&&Object.keys(this._user).length&&(r.user=Pn(Pn({},this._user),r.user)),this._contexts&&Object.keys(this._contexts).length&&(r.contexts=Pn(Pn({},this._contexts),r.contexts)),this._level&&(r.level=this._level),this._transactionName&&(r.transaction=this._transactionName),this._span){r.contexts=Pn({trace:this._span.getTraceContext()},r.contexts);var i=this._span.transaction&&this._span.transaction.name;i&&(r.tags=Pn({transaction:i},r.tags))}return this._applyFingerprint(r),r.breadcrumbs=os(r.breadcrumbs||[],this._breadcrumbs),r.breadcrumbs=r.breadcrumbs.length>0?r.breadcrumbs:void 0,r.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(os(yle(),this._eventProcessors),r,e)},n.prototype.setSDKProcessingMetadata=function(r){return this._sdkProcessingMetadata=Pn(Pn({},this._sdkProcessingMetadata),r),this},n.prototype._notifyEventProcessors=function(r,e,i,o){var a=this;return void 0===o&&(o=0),new yv(function(s,l){var u=r[o];if(null===e||"function"!=typeof u)s(e);else{var d=u(Pn({},e),i);wW(d)?d.then(function(h){return a._notifyEventProcessors(r,h,i,o+1).then(s)}).then(null,l):a._notifyEventProcessors(r,d,i,o+1).then(s).then(null,l)}})},n.prototype._notifyScopeListeners=function(){var r=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(function(e){e(r)}),this._notifyingListeners=!1)},n.prototype._applyFingerprint=function(r){r.fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],this._fingerprint&&(r.fingerprint=r.fingerprint.concat(this._fingerprint)),r.fingerprint&&!r.fingerprint.length&&delete r.fingerprint},n}();function yle(){return(0,ya.Y)("globalEventProcessors",function(){return[]})}function DW(n){yle().push(n)}var dQe=function(){function n(r){this.errors=0,this.sid=GT(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=(0,zT.ph)();this.timestamp=e,this.started=e,r&&this.update(r)}return n.prototype.update=function(r){if(void 0===r&&(r={}),r.user&&(!this.ipAddress&&r.user.ip_address&&(this.ipAddress=r.user.ip_address),!this.did&&!r.did&&(this.did=r.user.id||r.user.email||r.user.username)),this.timestamp=r.timestamp||(0,zT.ph)(),r.ignoreDuration&&(this.ignoreDuration=r.ignoreDuration),r.sid&&(this.sid=32===r.sid.length?r.sid:GT()),void 0!==r.init&&(this.init=r.init),!this.did&&r.did&&(this.did=""+r.did),"number"==typeof r.started&&(this.started=r.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof r.duration)this.duration=r.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}r.release&&(this.release=r.release),r.environment&&(this.environment=r.environment),!this.ipAddress&&r.ipAddress&&(this.ipAddress=r.ipAddress),!this.userAgent&&r.userAgent&&(this.userAgent=r.userAgent),"number"==typeof r.errors&&(this.errors=r.errors),r.status&&(this.status=r.status)},n.prototype.close=function(r){r?this.update({status:r}):"ok"===this.status?this.update({status:"exited"}):this.update()},n.prototype.toJSON=function(){return SW({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},n}(),OW=function(){function n(r,e,i){void 0===e&&(e=new ZF),void 0===i&&(i=4),this._version=i,this._stack=[{}],this.getStackTop().scope=e,r&&this.bindClient(r)}return n.prototype.isOlderThan=function(r){return this._version<r},n.prototype.bindClient=function(r){this.getStackTop().client=r,r&&r.setupIntegrations&&r.setupIntegrations()},n.prototype.pushScope=function(){var r=ZF.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:r}),r},n.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},n.prototype.withScope=function(r){var e=this.pushScope();try{r(e)}finally{this.popScope()}},n.prototype.getClient=function(){return this.getStackTop().client},n.prototype.getScope=function(){return this.getStackTop().scope},n.prototype.getStack=function(){return this._stack},n.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},n.prototype.captureException=function(r,e){var i=this._lastEventId=e&&e.event_id?e.event_id:GT(),o=e;if(!e){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(s){a=s}o={originalException:r,syntheticException:a}}return this._invokeClient("captureException",r,Pn(Pn({},o),{event_id:i})),i},n.prototype.captureMessage=function(r,e,i){var o=this._lastEventId=i&&i.event_id?i.event_id:GT(),a=i;if(!i){var s=void 0;try{throw new Error(r)}catch(l){s=l}a={originalException:r,syntheticException:s}}return this._invokeClient("captureMessage",r,e,Pn(Pn({},a),{event_id:o})),o},n.prototype.captureEvent=function(r,e){var i=e&&e.event_id?e.event_id:GT();return"transaction"!==r.type&&(this._lastEventId=i),this._invokeClient("captureEvent",r,Pn(Pn({},e),{event_id:i})),i},n.prototype.lastEventId=function(){return this._lastEventId},n.prototype.addBreadcrumb=function(r,e){var i=this.getStackTop(),o=i.scope,a=i.client;if(o&&a){var s=a.getOptions&&a.getOptions()||{},l=s.beforeBreadcrumb,u=void 0===l?null:l,d=s.maxBreadcrumbs,h=void 0===d?100:d;if(!(h<=0)){var g=(0,zT.yW)(),C=Pn({timestamp:g},r),Z=u?mle(function(){return u(C,e)}):C;null!==Z&&o.addBreadcrumb(Z,h)}}},n.prototype.setUser=function(r){var e=this.getScope();e&&e.setUser(r)},n.prototype.setTags=function(r){var e=this.getScope();e&&e.setTags(r)},n.prototype.setExtras=function(r){var e=this.getScope();e&&e.setExtras(r)},n.prototype.setTag=function(r,e){var i=this.getScope();i&&i.setTag(r,e)},n.prototype.setExtra=function(r,e){var i=this.getScope();i&&i.setExtra(r,e)},n.prototype.setContext=function(r,e){var i=this.getScope();i&&i.setContext(r,e)},n.prototype.configureScope=function(r){var e=this.getStackTop(),i=e.scope,o=e.client;i&&o&&r(i)},n.prototype.run=function(r){var e=ble(this);try{r(this)}finally{ble(e)}},n.prototype.getIntegration=function(r){var e=this.getClient();if(!e)return null;try{return e.getIntegration(r)}catch(i){return gle&&ci.warn("Cannot retrieve integration "+r.id+" from the current Hub"),null}},n.prototype.startSpan=function(r){return this._callExtensionMethod("startSpan",r)},n.prototype.startTransaction=function(r,e){return this._callExtensionMethod("startTransaction",r,e)},n.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},n.prototype.captureSession=function(r){if(void 0===r&&(r=!1),r)return this.endSession();this._sendSessionUpdate()},n.prototype.endSession=function(){var r=this.getStackTop(),e=r&&r.scope,i=e&&e.getSession();i&&i.close(),this._sendSessionUpdate(),e&&e.setSession()},n.prototype.startSession=function(r){var e=this.getStackTop(),i=e.scope,o=e.client,a=o&&o.getOptions()||{},s=a.release,l=a.environment,d=((0,ya.R)().navigator||{}).userAgent,h=new dQe(Pn(Pn(Pn({release:s,environment:l},i&&{user:i.getUser()}),d&&{userAgent:d}),r));if(i){var g=i.getSession&&i.getSession();g&&"ok"===g.status&&g.update({status:"exited"}),this.endSession(),i.setSession(h)}return h},n.prototype._sendSessionUpdate=function(){var r=this.getStackTop(),e=r.scope,i=r.client;if(e){var o=e.getSession&&e.getSession();o&&i&&i.captureSession&&i.captureSession(o)}},n.prototype._invokeClient=function(r){for(var e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=this.getStackTop(),s=a.scope,l=a.client;l&&l[r]&&(e=l)[r].apply(e,os(i,[s]))},n.prototype._callExtensionMethod=function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=CP(),a=o.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[r])return a.extensions[r].apply(this,e);gle&&ci.warn("Extension method "+r+" couldn't be found, doing nothing.")},n}();function CP(){var n=(0,ya.R)();return n.__SENTRY__=n.__SENTRY__||{extensions:{},hub:void 0},n}function ble(n){var r=CP(),e=bv(r);return IW(r,n),e}function _u(){var n=CP();return(!Cle(n)||bv(n).isOlderThan(4))&&IW(n,new OW),(0,cQe.KV)()?function pQe(n){try{var r=CP().__SENTRY__,e=r&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!e)return bv(n);if(!Cle(e)||bv(e).isOlderThan(4)){var i=bv(n).getStackTop();IW(e,new OW(i.client,ZF.clone(i.scope)))}return bv(e)}catch(o){return bv(n)}}(n):bv(n)}function Cle(n){return!!(n&&n.__SENTRY__&&n.__SENTRY__.hub)}function bv(n){return(0,ya.Y)("hub",function(){return new OW},n)}function IW(n,r){return!!n&&((n.__SENTRY__=n.__SENTRY__||{}).hub=r,!0)}function Vu(n){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var i=_u();if(i&&i[n])return i[n].apply(i,os(r));throw new Error("No hub defined or "+n+" was not found on the hub, please open a bug report.")}function wle(n,r){return Vu("captureException",n,{captureContext:r,originalException:n,syntheticException:new Error("Sentry syntheticException")})}function hQe(n){Vu("withScope",n)}var as="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mQe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],_Qe=function(){function n(r){void 0===r&&(r={}),this._options=r,this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e();if(o){var a=o.getIntegration(n);if(a){var s=o.getClient(),l=s?s.getOptions():{},u=function gQe(n,r){return void 0===n&&(n={}),void 0===r&&(r={}),{allowUrls:os(n.whitelistUrls||[],n.allowUrls||[],r.whitelistUrls||[],r.allowUrls||[]),denyUrls:os(n.blacklistUrls||[],n.denyUrls||[],r.blacklistUrls||[],r.denyUrls||[]),ignoreErrors:os(n.ignoreErrors||[],r.ignoreErrors||[],mQe),ignoreInternal:void 0===n.ignoreInternal||n.ignoreInternal}}(a._options,l);return function vQe(n,r){return r.ignoreInternal&&function kQe(n){try{return"SentryError"===n.exception.values[0].type}catch(r){}return!1}(n)?(as&&ci.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Kb(n)),!0):function yQe(n,r){return!(!r||!r.length)&&function wQe(n){if(n.message)return[n.message];if(n.exception)try{var r=n.exception.values&&n.exception.values[0]||{},e=r.type,i=void 0===e?"":e,o=r.value,a=void 0===o?"":o;return[""+a,i+": "+a]}catch(s){return as&&ci.error("Cannot extract message for event "+Kb(n)),[]}return[]}(n).some(function(e){return r.some(function(i){return TW(e,i)})})}(n,r.ignoreErrors)?(as&&ci.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Kb(n)),!0):function bQe(n,r){if(!r||!r.length)return!1;var e=NF(n);return!!e&&r.some(function(i){return TW(e,i)})}(n,r.denyUrls)?(as&&ci.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Kb(n)+".\nUrl: "+NF(n)),!0):!function CQe(n,r){if(!r||!r.length)return!0;var e=NF(n);return!e||r.some(function(i){return TW(e,i)})}(n,r.allowUrls)&&(as&&ci.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Kb(n)+".\nUrl: "+NF(n)),!0)}(i,u)?null:i}}return i})},n.id="InboundFilters",n}();function kle(n){void 0===n&&(n=[]);for(var r=n.length-1;r>=0;r--){var e=n[r];if(e&&"<anonymous>"!==e.filename&&"[native code]"!==e.filename)return e.filename||null}return null}function NF(n){try{if(n.stacktrace)return kle(n.stacktrace.frames);var r;try{r=n.exception.values[0].stacktrace.frames}catch(e){}return r?kle(r):null}catch(e){return as&&ci.error("Cannot extract url for event "+Kb(n)),null}}var Tle,TQe=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){Tle=Function.prototype.toString,Function.prototype.toString=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=MW(this)||this;return Tle.apply(i,r)}},n.id="FunctionToString",n}();function xQe(n){if(!n.length)return[];var r=n,e=r[0].function||"",i=r[r.length-1].function||"";return(-1!==e.indexOf("captureMessage")||-1!==e.indexOf("captureException"))&&(r=r.slice(1)),-1!==i.indexOf("sentryWrapped")&&(r=r.slice(0,-1)),r.slice(0,50).map(function(o){return Pn(Pn({},o),{filename:o.filename||r[0].filename,function:o.function||"?"})}).reverse()}var PW="<anonymous>";function Cv(n){try{return n&&"function"==typeof n&&n.name||PW}catch(r){return PW}}function BF(){if(!("fetch"in(0,ya.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(n){return!1}}function RW(n){return n&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function AQe(){if(!BF())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(n){return!1}}var FF,la=(0,ya.R)(),wP={},Mle={};function IQe(n){if(!Mle[n])switch(Mle[n]=!0,n){case"console":!function PQe(){"console"in la&&LF.forEach(function(n){n in la.console&&Nl(la.console,n,function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];wf("console",{args:e,level:n}),r&&r.apply(la.console,e)}})})}();break;case"dom":!function jQe(){if("document"in la){var n=wf.bind(null,"dom"),r=Sle(n,!0);la.document.addEventListener("click",r,!1),la.document.addEventListener("keypress",r,!1),["EventTarget","Node"].forEach(function(e){var i=la[e]&&la[e].prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Nl(i,"addEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},h=d[a]=d[a]||{refCount:0};if(!h.handler){var g=Sle(n);h.handler=g,o.call(this,a,g,l)}h.refCount+=1}catch(C){}return o.call(this,a,s,l)}}),Nl(i,"removeEventListener",function(o){return function(a,s,l){if("click"===a||"keypress"==a)try{var u=this,d=u.__sentry_instrumentation_handlers__||{},h=d[a];h&&(h.refCount-=1,h.refCount<=0&&(o.call(this,a,h.handler,l),h.handler=void 0,delete d[a]),0===Object.keys(d).length&&delete u.__sentry_instrumentation_handlers__)}catch(g){}return o.call(this,a,s,l)}}))})}}();break;case"xhr":!function NQe(){if("XMLHttpRequest"in la){var n=XMLHttpRequest.prototype;Nl(n,"open",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this,a=e[1],s=o.__sentry_xhr__={method:HT(e[0])?e[0].toUpperCase():e[0],url:e[1]};HT(a)&&"POST"===s.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var l=function(){if(4===o.readyState){try{s.status_code=o.status}catch(d){}wf("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?Nl(o,"onreadystatechange",function(u){return function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return l(),u.apply(o,d)}}):o.addEventListener("readystatechange",l),r.apply(o,e)}}),Nl(n,"send",function(r){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),wf("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),r.apply(this,e)}})}}();break;case"fetch":!function RQe(){!function DQe(){if(!BF())return!1;var n=(0,ya.R)();if(RW(n.fetch))return!0;var r=!1,e=n.document;if(e&&"function"==typeof e.createElement)try{var i=e.createElement("iframe");i.hidden=!0,e.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(r=RW(i.contentWindow.fetch)),e.head.removeChild(i)}catch(o){WT&&ci.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return r}()||Nl(la,"fetch",function(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i={args:r,fetchData:{method:LQe(r),url:ZQe(r)},startTimestamp:Date.now()};return wf("fetch",Pn({},i)),n.apply(la,r).then(function(o){return wf("fetch",Pn(Pn({},i),{endTimestamp:Date.now(),response:o})),o},function(o){throw wf("fetch",Pn(Pn({},i),{endTimestamp:Date.now(),error:o})),o})}})}();break;case"history":!function BQe(){if(!function OQe(){var n=(0,ya.R)(),r=n.chrome,e=r&&r.app&&r.app.runtime,i="history"in n&&!!n.history.pushState&&!!n.history.replaceState;return!e&&i}())return;var n=la.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=FF,l=String(a);FF=l,wf("history",{from:s,to:l})}return e.apply(this,i)}}la.onpopstate=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=la.location.href,a=FF;if(FF=o,wf("history",{from:a,to:o}),n)try{return n.apply(this,e)}catch(s){}},Nl(la.history,"pushState",r),Nl(la.history,"replaceState",r)}();break;case"error":!function GQe(){LW=la.onerror,la.onerror=function(n,r,e,i,o){return wf("error",{column:i,error:o,line:e,msg:n,url:r}),!!LW&&LW.apply(this,arguments)}}();break;case"unhandledrejection":!function zQe(){ZW=la.onunhandledrejection,la.onunhandledrejection=function(n){return wf("unhandledrejection",n),!ZW||ZW.apply(this,arguments)}}();break;default:return void(WT&&ci.warn("unknown instrumentation type:",n))}}function wv(n,r){wP[n]=wP[n]||[],wP[n].push(r),IQe(n)}function wf(n,r){var e,i;if(n&&wP[n])try{for(var o=qm(wP[n]||[]),a=o.next();!a.done;a=o.next()){var s=a.value;try{s(r)}catch(l){WT&&ci.error("Error while triggering instrumentation handler.\nType: "+n+"\nName: "+Cv(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 LQe(n){return void 0===n&&(n=[]),"Request"in la&&vv(n[0],Request)&&n[0].method?String(n[0].method).toUpperCase():n[1]&&n[1].method?String(n[1].method).toUpperCase():"GET"}function ZQe(n){return void 0===n&&(n=[]),"string"==typeof n[0]?n[0]:"Request"in la&&vv(n[0],Request)?n[0].url:String(n[0])}var UF,HF;function Sle(n,r){return void 0===r&&(r=!1),function(e){if(e&&HF!==e&&!function HQe(n){if("keypress"!==n.type)return!1;try{var r=n.target;if(!r||!r.tagName)return!0;if("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)return!1}catch(e){}return!0}(e)){var i="keypress"===e.type?"input":e.type;(void 0===UF||function UQe(n,r){if(!n||n.type!==r.type)return!0;try{if(n.target!==r.target)return!0}catch(e){}return!1}(HF,e))&&(n({event:e,name:i,global:r}),HF=e),clearTimeout(UF),UF=la.setTimeout(function(){UF=void 0},1e3)}}}var LW=null;var ZW=null;var WQe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function VQe(n,r){return n.__proto__=r,n}:function YQe(n,r){for(var e in r)Object.prototype.hasOwnProperty.call(n,e)||(n[e]=r[e]);return n});var Ts=function(n){function r(e){var i=this.constructor,o=n.call(this,e)||this;return o.message=e,o.name=i.prototype.constructor.name,WQe(o,i.prototype),o}return gP(r,n),r}(Error),KQe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function kP(n,r){void 0===r&&(r=!1);var e=n.host,i=n.path,o=n.pass,a=n.port,s=n.projectId;return n.protocol+"://"+n.publicKey+(r&&o?":"+o:"")+"@"+e+(a?":"+a:"")+"/"+(i&&i+"/")+s}function xle(n){return"user"in n&&!("publicKey"in n)&&(n.publicKey=n.user),{user:n.publicKey||"",protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function jF(n){var r="string"==typeof n?function JQe(n){var r=KQe.exec(n);if(!r)throw new Ts("Invalid Sentry Dsn: "+n);var e=mu(r.slice(1),6),i=e[0],o=e[1],a=e[2],s=void 0===a?"":a,l=e[3],u=e[4],d=void 0===u?"":u,g="",C=e[5],Z=C.split("/");if(Z.length>1&&(g=Z.slice(0,-1).join("/"),C=Z.pop()),C){var z=C.match(/^\d+/);z&&(C=z[0])}return xle({host:l,pass:s,path:g,projectId:C,port:d,protocol:i,publicKey:o})}(n):xle(n);return function QQe(n){if(WT){var r=n.port,e=n.projectId,i=n.protocol;if(["protocol","publicKey","host","projectId"].forEach(function(a){if(!n[a])throw new Ts("Invalid Sentry Dsn: "+a+" missing")}),!e.match(/^\d+$/))throw new Ts("Invalid Sentry Dsn: Invalid projectId "+e);if(!function qQe(n){return"http"===n||"https"===n}(i))throw new Ts("Invalid Sentry Dsn: Invalid protocol "+i);if(r&&isNaN(parseInt(r,10)))throw new Ts("Invalid Sentry Dsn: Invalid port "+r);return!0}}(r),r}function Jb(n,r,e){void 0===r&&(r=1/0),void 0===e&&(e=1/0);try{return Ale("",n,r,e)}catch(i){return{ERROR:"**non-serializable** ("+i+")"}}}function Dle(n,r,e){void 0===r&&(r=3),void 0===e&&(e=102400);var i=Jb(n,r);return function tXe(n){return function eXe(n){return~-encodeURI(n).split(/%..|./).length}(JSON.stringify(n))}(i)>e?Dle(n,r-1,e):i}function Ale(n,r,e,i,o){void 0===e&&(e=1/0),void 0===i&&(i=1/0),void 0===o&&(o=function XQe(){var n="function"==typeof WeakSet,r=n?new WeakSet:[];return[function e(o){if(n)return!!r.has(o)||(r.add(o),!1);for(var a=0;a<r.length;a++)if(r[a]===o)return!0;return r.push(o),!1},function i(o){if(n)r.delete(o);else for(var a=0;a<r.length;a++)if(r[a]===o){r.splice(a,1);break}}]}());var a=mu(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 nQe(n){return"number"==typeof n&&n!=n}(r))return r;var d=function $Qe(n,r){try{return"domain"===n&&r&&"object"==typeof r&&r._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&r===global?"[Global]":"undefined"!=typeof window&&r===window?"[Window]":"undefined"!=typeof document&&r===document?"[Document]":function tQe(n){return jT(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}(r)?"[SyntheticEvent]":"number"==typeof r&&r!=r?"[NaN]":void 0===r?"[undefined]":"function"==typeof r?"[Function: "+Cv(r)+"]":"symbol"==typeof r?"["+String(r)+"]":"bigint"==typeof r?"[BigInt: "+String(r)+"]":"[object "+Object.getPrototypeOf(r).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,r);if(!d.startsWith("[object "))return d;if(0===e)return d.replace("object ","");if(s(r))return"[Circular ~]";var h=Array.isArray(r)?[]:{},g=0,C=bW(r)||PF(r)?cle(r):r;for(var Z in C)if(Object.prototype.hasOwnProperty.call(C,Z)){if(g>=i){h[Z]="[MaxProperties ~]";break}var z=C[Z];h[Z]=Ale(Z,z,e-1,i,o),g+=1}return l(r),h}var Ole=[];function Ile(n){return n.reduce(function(r,e){return r.every(function(i){return e.name!==i.name})&&r.push(e),r},[])}function iXe(n){var r={};return function nXe(n){var r=n.defaultIntegrations&&os(n.defaultIntegrations)||[],e=n.integrations,i=os(Ile(r));Array.isArray(e)?i=os(i.filter(function(s){return e.every(function(l){return l.name!==s.name})}),Ile(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,os(i.splice(o.indexOf(a),1))),i}(n).forEach(function(e){r[e.name]=e,function rXe(n){-1===Ole.indexOf(n.name)&&(n.setupOnce(DW,_u),Ole.push(n.name),as&&ci.log("Integration installed: "+n.name))}(e)}),RF(r,"initialized",!0),r}var Ple="Not capturing exception because it's already been captured.",oXe=function(){function n(r,e){this._integrations={},this._numProcessing=0,this._backend=new r(e),this._options=e,e.dsn&&(this._dsn=jF(e.dsn))}return n.prototype.captureException=function(r,e,i){var o=this;if(!hle(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}as&&ci.log(Ple)},n.prototype.captureMessage=function(r,e,i,o){var a=this,s=i&&i.event_id,l=CW(r)?this._getBackend().eventFromMessage(String(r),e,i):this._getBackend().eventFromException(r,i);return this._process(l.then(function(u){return a._captureEvent(u,i,o)}).then(function(u){s=u})),s},n.prototype.captureEvent=function(r,e,i){if(!(e&&e.originalException&&hle(e.originalException))){var o=e&&e.event_id;return this._process(this._captureEvent(r,e,i).then(function(a){o=a})),o}as&&ci.log(Ple)},n.prototype.captureSession=function(r){this._isEnabled()?"string"!=typeof r.release?as&&ci.warn("Discarded session because of missing or non-string release"):(this._sendSession(r),r.update({init:!1})):as&&ci.warn("SDK not enabled, will not capture session.")},n.prototype.getDsn=function(){return this._dsn},n.prototype.getOptions=function(){return this._options},n.prototype.getTransport=function(){return this._getBackend().getTransport()},n.prototype.flush=function(r){var e=this;return this._isClientDoneProcessing(r).then(function(i){return e.getTransport().close(r).then(function(o){return i&&o})})},n.prototype.close=function(r){var e=this;return this.flush(r).then(function(i){return e.getOptions().enabled=!1,i})},n.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=iXe(this._options))},n.prototype.getIntegration=function(r){try{return this._integrations[r.id]||null}catch(e){return as&&ci.warn("Cannot retrieve integration "+r.id+" from the current Client"),null}},n.prototype._updateSessionFromEvent=function(r,e){var i,o,a=!1,s=!1,l=e.exception&&e.exception.values;if(l){s=!0;try{for(var u=qm(l),d=u.next();!d.done;d=u.next()){var g=d.value.mechanism;if(g&&!1===g.handled){a=!0;break}}}catch(z){i={error:z}}finally{try{d&&!d.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}var C="ok"===r.status;(C&&0===r.errors||C&&a)&&(r.update(Pn(Pn({},a&&{status:"crashed"}),{errors:r.errors||Number(s||a)})),this.captureSession(r))},n.prototype._sendSession=function(r){this._getBackend().sendSession(r)},n.prototype._isClientDoneProcessing=function(r){var e=this;return new yv(function(i){var o=0,s=setInterval(function(){0==e._numProcessing?(clearInterval(s),i(!0)):(o+=1,r&&o>=r&&(clearInterval(s),i(!1)))},1)})},n.prototype._getBackend=function(){return this._backend},n.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},n.prototype._prepareEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.normalizeDepth,l=void 0===s?3:s,u=a.normalizeMaxBreadth,d=void 0===u?1e3:u,h=Pn(Pn({},r),{event_id:r.event_id||(i&&i.event_id?i.event_id:GT()),timestamp:r.timestamp||(0,zT.yW)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var g=e;i&&i.captureContext&&(g=ZF.clone(g).update(i.captureContext));var C=qb(h);return g&&(C=g.applyToEvent(h,i)),C.then(function(Z){return Z&&(Z.sdkProcessingMetadata=Pn(Pn({},Z.sdkProcessingMetadata),{normalizeDepth:Jb(l)+" ("+typeof l+")"})),"number"==typeof l&&l>0?o._normalizeEvent(Z,l,d):Z})},n.prototype._normalizeEvent=function(r,e,i){if(!r)return null;var o=Pn(Pn(Pn(Pn(Pn({},r),r.breadcrumbs&&{breadcrumbs:r.breadcrumbs.map(function(a){return Pn(Pn({},a),a.data&&{data:Jb(a.data,e,i)})})}),r.user&&{user:Jb(r.user,e,i)}),r.contexts&&{contexts:Jb(r.contexts,e,i)}),r.extra&&{extra:Jb(r.extra,e,i)});return r.contexts&&r.contexts.trace&&(o.contexts.trace=r.contexts.trace),o.sdkProcessingMetadata=Pn(Pn({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},n.prototype._applyClientOptions=function(r){var e=this.getOptions(),i=e.environment,o=e.release,a=e.dist,s=e.maxValueLength,l=void 0===s?250:s;"environment"in r||(r.environment="environment"in e?i:"production"),void 0===r.release&&void 0!==o&&(r.release=o),void 0===r.dist&&void 0!==a&&(r.dist=a),r.message&&(r.message=vP(r.message,l));var u=r.exception&&r.exception.values&&r.exception.values[0];u&&u.value&&(u.value=vP(u.value,l));var d=r.request;d&&d.url&&(d.url=vP(d.url,l))},n.prototype._applyIntegrationsMetadata=function(r){var e=Object.keys(this._integrations);e.length>0&&(r.sdk=r.sdk||{},r.sdk.integrations=os(r.sdk.integrations||[],e))},n.prototype._sendEvent=function(r){this._getBackend().sendEvent(r)},n.prototype._captureEvent=function(r,e,i){return this._processEvent(r,e,i).then(function(o){return o.event_id},function(o){as&&ci.error(o)})},n.prototype._processEvent=function(r,e,i){var o=this,a=this.getOptions(),s=a.beforeSend,l=a.sampleRate,u=this.getTransport();function d(g,C){u.recordLostEvent&&u.recordLostEvent(g,C)}if(!this._isEnabled())return bP(new Ts("SDK not enabled, will not capture event."));var h="transaction"===r.type;return!h&&"number"==typeof l&&Math.random()>l?(d("sample_rate","event"),bP(new Ts("Discarding event because it's not included in the random sample (sampling rate = "+l+")"))):this._prepareEvent(r,i,e).then(function(g){if(null===g)throw d("event_processor",r.type||"event"),new Ts("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||h||!s?g:function aXe(n){var r="`beforeSend` method has to return `null` or a valid event.";if(wW(n))return n.then(function(e){if(!jT(e)&&null!==e)throw new Ts(r);return e},function(e){throw new Ts("beforeSend rejected with "+e)});if(!jT(n)&&null!==n)throw new Ts(r);return n}(s(g,e))}).then(function(g){if(null===g)throw d("before_send",r.type||"event"),new Ts("`beforeSend` returned `null`, will not send event.");var C=i&&i.getSession&&i.getSession();return!h&&C&&o._updateSessionFromEvent(C,g),o._sendEvent(g),g}).then(null,function(g){throw g instanceof Ts?g:(o.captureException(g,{data:{__sentry__:!0},originalException:g}),new Ts("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+g))})},n.prototype._process=function(r){var e=this;this._numProcessing+=1,r.then(function(i){return e._numProcessing-=1,i},function(i){return e._numProcessing-=1,i})},n}();!function(){function n(r,e,i){void 0===e&&(e={}),this.dsn=r,this._dsnObject=jF(r),this.metadata=e,this._tunnel=i}n.prototype.getDsn=function(){return this._dsnObject},n.prototype.forceEnvelope=function(){return!!this._tunnel},n.prototype.getBaseApiEndpoint=function(){return NW(this._dsnObject)},n.prototype.getStoreEndpoint=function(){return Nle(this._dsnObject)},n.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return BW(this._dsnObject)},n.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return TP(this._dsnObject,this._tunnel)}}();function GF(n,r,e){return{initDsn:n,metadata:r||{},dsn:jF(n),tunnel:e}}function NW(n){var r=n.protocol?n.protocol+":":"",e=n.port?":"+n.port:"";return r+"//"+n.host+e+(n.path?"/"+n.path:"")+"/api/"}function Lle(n,r){return""+NW(n)+n.projectId+"/"+r+"/"}function Zle(n){return function oQe(n){return Object.keys(n).map(function(r){return encodeURIComponent(r)+"="+encodeURIComponent(n[r])}).join("&")}({sentry_key:n.publicKey,sentry_version:"7"})}function Nle(n){return Lle(n,"store")}function BW(n){return Nle(n)+"?"+Zle(n)}function TP(n,r){return r||function sXe(n){return Lle(n,"envelope")}(n)+"?"+Zle(n)}function zF(n,r){return void 0===r&&(r=[]),[n,r]}function WF(n){var r=mu(n,2),e=r[0],i=r[1],o=JSON.stringify(e);return i.reduce(function(a,s){var l=mu(s,2),u=l[0],d=l[1],h=CW(d)?String(d):JSON.stringify(d);return a+"\n"+JSON.stringify(u)+"\n"+h},o)}function FW(n){if(n.metadata&&n.metadata.sdk){var r=n.metadata.sdk;return{name:r.name,version:r.version}}}function Ble(n,r){return r&&(n.sdk=n.sdk||{},n.sdk.name=n.sdk.name||r.name,n.sdk.version=n.sdk.version||r.version,n.sdk.integrations=os(n.sdk.integrations||[],r.integrations||[]),n.sdk.packages=os(n.sdk.packages||[],r.packages||[])),n}function Fle(n,r){var e=FW(r),o="aggregates"in n?"sessions":"session";return[zF(Pn(Pn({sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:kP(r.dsn)}),[[{type:o},n]]),o]}var eh,pXe=function(){function n(){}return n.prototype.sendEvent=function(r){return qb({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},n.prototype.close=function(r){return qb(!0)},n}(),hXe=function(){function n(r){this._options=r,this._options.dsn||as&&ci.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return n.prototype.eventFromException=function(r,e){throw new Ts("Backend has to implement `eventFromException` method")},n.prototype.eventFromMessage=function(r,e,i){throw new Ts("Backend has to implement `eventFromMessage` method")},n.prototype.sendEvent=function(r){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var i=function dXe(n,r){var e=FW(r),i=n.type||"event",a=(n.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,l=a.rate;return Ble(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata,zF(Pn(Pn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:kP(r.dsn)}),[[{type:i,sample_rates:[{id:s,rate:l}]},n]])}(r,GF(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(i).then(null,function(o){as&&ci.error("Error while sending event:",o)})}else this._transport.sendEvent(r).then(null,function(o){as&&ci.error("Error while sending event:",o)})},n.prototype.sendSession=function(r){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var o=mu(Fle(r,GF(this._options.dsn,this._options._metadata,this._options.tunnel)),1)[0];this._newTransport.send(o).then(null,function(a){as&&ci.error("Error while sending session:",a)})}else this._transport.sendSession(r).then(null,function(a){as&&ci.error("Error while sending session:",a)});else as&&ci.warn("Dropping session because custom transport doesn't implement sendSession")},n.prototype.getTransport=function(){return this._transport},n.prototype._setupTransport=function(){return new pXe},n}();!function(n){n.Fatal="fatal",n.Error="error",n.Warning="warning",n.Log="log",n.Info="info",n.Debug="debug",n.Critical="critical"}(eh||(eh={}));function MP(n,r,e,i){var o={filename:n,function:r,in_app:!0};return void 0!==e&&(o.lineno=e),void 0!==i&&(o.colno=i),o}var bXe=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,CXe=/\((\S*)(?::(\d+))(?::(\d+))\)/,kXe=[30,function(r){var e=bXe.exec(r);if(e){if(e[2]&&0===e[2].indexOf("eval")){var o=CXe.exec(e[2]);o&&(e[2]=o[1],e[3]=o[2],e[4]=o[3])}var a=mu(Ule(e[1]||"?",e[2]),2),s=a[0];return MP(a[1],s,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],TXe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,MXe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,EXe=[50,function(r){var e,i=TXe.exec(r);if(i){if(i[3]&&i[3].indexOf(" > eval")>-1){var a=MXe.exec(i[3]);a&&(i[1]=i[1]||"eval",i[3]=a[1],i[4]=a[2],i[5]="")}var s=i[3],l=i[1]||"?";return l=(e=mu(Ule(l,s),2))[0],MP(s=e[1],l,i[4]?+i[4]:void 0,i[5]?+i[5]:void 0)}}],xXe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,AXe=[40,function(r){var e=xXe.exec(r);return e?MP(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],OXe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,PXe=[10,function(r){var e=OXe.exec(r);return e?MP(e[2],e[3]||"?",+e[1]):void 0}],RXe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ZXe=[20,function(r){var e=RXe.exec(r);return e?MP(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],Ule=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 Hle(n){var r=HW(n),e={type:n&&n.name,value:UXe(n)};return r.length&&(e.stacktrace={frames:r}),void 0===e.type&&""===e.value&&(e.value="Unrecoverable error caught"),e}function UW(n){return{exception:{values:[Hle(n)]}}}function HW(n){var r=n.stacktrace||n.stack||"",e=function FXe(n){if(n){if("number"==typeof n.framesToPop)return n.framesToPop;if(BXe.test(n.message))return 1}return 0}(n);try{return function EQe(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var e=n.sort(function(i,o){return i[0]-o[0]}).map(function(i){return i[1]});return function(i,o){var a,s,l,u;void 0===o&&(o=0);var d=[];try{for(var h=qm(i.split("\n").slice(o)),g=h.next();!g.done;g=h.next()){var C=g.value;try{for(var Z=(l=void 0,qm(e)),z=Z.next();!z.done;z=Z.next()){var re=(0,z.value)(C);if(re){d.push(re);break}}}catch(ae){l={error:ae}}finally{try{z&&!z.done&&(u=Z.return)&&u.call(Z)}finally{if(l)throw l.error}}}}catch(ae){a={error:ae}}finally{try{g&&!g.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}return xQe(d)}}(PXe,ZXe,kXe,AXe,EXe)(r,e)}catch(i){}return[]}var BXe=/Minified React error #\d+;/i;function UXe(n){var r=n&&n.message;return r?r.error&&"string"==typeof r.error.message?r.error.message:r:"No error message"}function jW(n,r,e,i){var o;if(ale(n)&&n.error)return UW(n.error);if(sle(n)||function XJe(n){return UT(n,"DOMException")}(n)){var s=n;if("stack"in n)o=UW(n);else{var l=s.name||(sle(s)?"DOMError":"DOMException"),u=s.message?l+": "+s.message:l;xW(o=GW(u,r,e),u)}return"code"in s&&(o.tags=Pn(Pn({},o.tags),{"DOMException.code":""+s.code})),o}return bW(n)?UW(n):jT(n)||PF(n)?(o=function NXe(n,r,e){var i={exception:{values:[{type:PF(n)?n.constructor.name:e?"UnhandledRejection":"Error",value:"Non-Error "+(e?"promise rejection":"exception")+" captured with keys: "+aQe(n)}]},extra:{__serialized__:Dle(n)}};if(r){var o=HW(r);o.length&&(i.stacktrace={frames:o})}return i}(n,r,i),yP(o,{synthetic:!0}),o):(xW(o=GW(n,r,e),""+n,void 0),yP(o,{synthetic:!0}),o)}function GW(n,r,e){var i={message:n};if(e&&r){var o=HW(r);o.length&&(i.stacktrace={frames:o})}return i}function jle(n){var r=[];function i(s){return r.splice(r.indexOf(s),1)[0]}return{$:r,add:function o(s){if(!function e(){return void 0===n||r.length<n}())return bP(new Ts("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 yv(function(l,u){var d=r.length;if(!d)return l(!0);var h=setTimeout(function(){s&&s>0&&l(!1)},s);r.forEach(function(g){qb(g).then(function(){--d||(clearTimeout(h),l(!0))},u)})})}}}function zW(n,r){return n[r]||n.all||0}function Gle(n,r,e){return void 0===e&&(e=Date.now()),zW(n,r)>e}function zle(n,r,e){var i,o,a,s;void 0===e&&(e=Date.now());var l=Pn({},n),u=r["x-sentry-rate-limits"],d=r["retry-after"];if(u)try{for(var h=qm(u.trim().split(",")),g=h.next();!g.done;g=h.next()){var Z=g.value.split(":",2),z=parseInt(Z[0],10),q=1e3*(isNaN(z)?60:z);if(Z[1])try{for(var re=(a=void 0,qm(Z[1].split(";"))),ae=re.next();!ae.done;ae=re.next()){l[ae.value]=e+q}}catch(Ce){a={error:Ce}}finally{try{ae&&!ae.done&&(s=re.return)&&s.call(re)}finally{if(a)throw a.error}}else l.all=e+q}}catch(Ce){i={error:Ce}}finally{try{g&&!g.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}else d&&(l.all=e+function zXe(n,r){void 0===r&&(r=Date.now());var e=parseInt(""+n,10);if(!isNaN(e))return 1e3*e;var i=Date.parse(""+n);return isNaN(i)?6e4:i-r}(d,e));return l}function Wle(n){return n>=200&&n<300?"success":429===n?"rate_limit":n>=400&&n<500?"invalid":n>=500?"failed":"unknown"}function Vle(n,r,e){void 0===e&&(e=jle(n.bufferSize||30));var i={};return{send:function a(s){var l=function uXe(n){var r=mu(n,2),e=mu(r[1],1);return mu(e[0],1)[0].type}(s),u="event"===l?"error":l,d={category:u,body:WF(s)};return Gle(i,u)?bP({status:"rate_limit",reason:Yle(i,u)}):e.add(function(){return r(d).then(function(C){var Z=C.body,z=C.headers,q=C.reason,ae=Wle(C.statusCode);return z&&(i=zle(i,z)),"success"===ae?qb({status:ae,reason:q}):bP({status:ae,reason:q||Z||("rate_limit"===ae?Yle(i,u):"Unknown transport error")})})})},flush:function(l){return e.drain(l)}}}function Yle(n,r){return"Too many "+r+" requests, backing off until: "+new Date(zW(n,r)).toISOString()}var VF,gd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,kf=(0,ya.R)();function WW(){if(VF)return VF;if(RW(kf.fetch))return VF=kf.fetch.bind(kf);var n=kf.document,r=kf.fetch;if(n&&"function"==typeof n.createElement)try{var e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);var i=e.contentWindow;i&&i.fetch&&(r=i.fetch),n.head.removeChild(e)}catch(o){gd&&ci.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",o)}return VF=r.bind(kf)}function YXe(n,r){return"[object Navigator]"===Object.prototype.toString.call(kf&&kf.navigator)&&"function"==typeof kf.navigator.sendBeacon?kf.navigator.sendBeacon.bind(kf.navigator)(n,r):BF()?function VXe(n){n.then(null,function(r){console.error(r)})}(WW()(n,{body:r,method:"POST",credentials:"omit",keepalive:!0})):void 0}function VW(n){return"event"===n?"error":n}var YW=(0,ya.R)(),Kle=function(){function n(r){var e=this;this.options=r,this._buffer=jle(30),this._rateLimits={},this._outcomes={},this._api=GF(r.dsn,r._metadata,r.tunnel),this.url=BW(this._api.dsn),this.options.sendClientReports&&YW.document&&YW.document.addEventListener("visibilitychange",function(){"hidden"===YW.document.visibilityState&&e._flushOutcomes()})}return n.prototype.sendEvent=function(r){return this._sendRequest(function fXe(n,r){var d,e=FW(r),i=n.type||"event",o="transaction"===i||!!r.tunnel,s=(n.sdkProcessingMetadata||{}).transactionSampling||{},l=s.method,u=s.rate;Ble(n,r.metadata.sdk),n.tags=n.tags||{},n.extra=n.extra||{},n.sdkProcessingMetadata&&n.sdkProcessingMetadata.baseClientNormalized||(n.tags.skippedNormalization=!0,n.extra.normalizeDepth=n.sdkProcessingMetadata?n.sdkProcessingMetadata.normalizeDepth:"unset"),delete n.sdkProcessingMetadata;try{d=JSON.stringify(n)}catch(q){n.tags.JSONStringifyError=!0,n.extra.JSONStringifyError=q;try{d=JSON.stringify(Jb(n))}catch(re){var h=re;d=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:h.message,stack:h.stack}})}}var g={body:d,type:i,url:o?TP(r.dsn,r.tunnel):BW(r.dsn)};if(o){var z=zF(Pn(Pn({event_id:n.event_id,sent_at:(new Date).toISOString()},e&&{sdk:e}),!!r.tunnel&&{dsn:kP(r.dsn)}),[[{type:i,sample_rates:[{id:l,rate:u}]},g.body]]);g.body=WF(z)}return g}(r,this._api),r)},n.prototype.sendSession=function(r){return this._sendRequest(function cXe(n,r){var e=mu(Fle(n,r),2),i=e[0],o=e[1];return{body:WF(i),type:o,url:TP(r.dsn,r.tunnel)}}(r,this._api),r)},n.prototype.close=function(r){return this._buffer.drain(r)},n.prototype.recordLostEvent=function(r,e){var i;if(this.options.sendClientReports){var o=VW(e)+":"+r;gd&&ci.log("Adding outcome: "+o),this._outcomes[o]=(null!=(i=this._outcomes[o])?i:0)+1}},n.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var r=this._outcomes;if(this._outcomes={},!Object.keys(r).length)return void(gd&&ci.log("No outcomes to flush"));gd&&ci.log("Flushing outcomes:\n"+JSON.stringify(r,null,2));var e=TP(this._api.dsn,this._api.tunnel),o=function qXe(n,r,e){return zF(r?{dsn:r}:{},[[{type:"client_report"},{timestamp:e||(0,zT.yW)(),discarded_events:n}]])}(Object.keys(r).map(function(a){var s=mu(a.split(":"),2),l=s[0];return{reason:s[1],category:l,quantity:r[a]}}),this._api.tunnel&&kP(this._api.dsn));try{YXe(e,WF(o))}catch(a){gd&&ci.error(a)}}},n.prototype._handleResponse=function(r){var e=r.requestType,i=r.response,o=r.headers,a=r.resolve,s=r.reject,l=Wle(i.status);this._rateLimits=zle(this._rateLimits,o),this._isRateLimited(e)&&gd&&ci.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==l?s(i):a({status:l})},n.prototype._disabledUntil=function(r){var e=VW(r);return new Date(zW(this._rateLimits,e))},n.prototype._isRateLimited=function(r){var e=VW(r);return Gle(this._rateLimits,e)},n}(),JXe=function(n){function r(e,i){void 0===i&&(i=WW());var o=n.call(this,e)||this;return o._fetch=i,o}return gP(r,n),r.prototype._sendRequest=function(e,i){var o=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var a={body:e.body,method:"POST",referrerPolicy:AQe()?"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 yv(function(s,l){o._fetch(e.url,a).then(function(u){var d={"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")};o._handleResponse({requestType:e.type,response:u,headers:d,resolve:s,reject:l})}).catch(l)})}).then(void 0,function(s){throw s instanceof Ts?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),s})},r}(Kle);var $Xe=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return gP(r,n),r.prototype._sendRequest=function(e,i){var o=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:i,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add(function(){return new yv(function(a,s){var l=new XMLHttpRequest;for(var u in l.onreadystatechange=function(){if(4===l.readyState){var d={"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")};o._handleResponse({requestType:e.type,response:l,headers:d,resolve:a,reject:s})}},l.open("POST",e.url),o.options.headers)Object.prototype.hasOwnProperty.call(o.options.headers,u)&&l.setRequestHeader(u,o.options.headers[u]);l.send(e.body)})}).then(void 0,function(a){throw a instanceof Ts?o.recordLostEvent("queue_overflow",e.type):o.recordLostEvent("network_error",e.type),a})},r}(Kle),e$e=function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return gP(r,n),r.prototype.eventFromException=function(e,i){return function HXe(n,r,e){var o=jW(n,r&&r.syntheticException||void 0,e);return yP(o),o.level=eh.Error,r&&r.event_id&&(o.event_id=r.event_id),qb(o)}(e,i,this._options.attachStacktrace)},r.prototype.eventFromMessage=function(e,i,o){return void 0===i&&(i=eh.Info),function jXe(n,r,e,i){void 0===r&&(r=eh.Info);var a=GW(n,e&&e.syntheticException||void 0,i);return a.level=r,e&&e.event_id&&(a.event_id=e.event_id),qb(a)}(e,i,o,this._options.attachStacktrace)},r.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var e=Pn(Pn({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=GF(e.dsn,e._metadata,e.tunnel),o=TP(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(e);if(BF()){var a=Pn({},e.fetchParameters);return this._newTransport=function KXe(n,r){return void 0===r&&(r=WW()),Vle({bufferSize:n.bufferSize},function e(i){var o=Pn({body:i.body,method:"POST",referrerPolicy:"origin"},n.requestOptions);return r(n.url,o).then(function(a){return a.text().then(function(s){return{body:s,headers:{"x-sentry-rate-limits":a.headers.get("X-Sentry-Rate-Limits"),"retry-after":a.headers.get("Retry-After")},reason:a.statusText,statusCode:a.status}})})})}({requestOptions:a,url:o}),new JXe(e)}return this._newTransport=function XXe(n){return Vle({bufferSize:n.bufferSize},function r(e){return new yv(function(i,o){var a=new XMLHttpRequest;for(var s in a.onreadystatechange=function(){if(4===a.readyState){var l={body:a.response,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")},reason:a.statusText,statusCode:a.status};i(l)}},a.open("POST",n.url),n.headers)Object.prototype.hasOwnProperty.call(n.headers,s)&&a.setRequestHeader(s,n.headers[s]);a.send(e.body)})})}({url:o,headers:e.headers}),new $Xe(e)},r}(hXe),YF=(0,ya.R)(),KW=0;function qle(){return KW>0}function t$e(){KW+=1,setTimeout(function(){KW-=1})}function YT(n,r,e){if(void 0===r&&(r={}),"function"!=typeof n)return n;try{var i=n.__sentry_wrapped__;if(i)return i;if(MW(n))return n}catch(l){return n}var o=function(){var u=Array.prototype.slice.call(arguments);try{e&&"function"==typeof e&&e.apply(this,arguments);var d=u.map(function(h){return YT(h,r)});return n.apply(this,d)}catch(h){throw t$e(),hQe(function(g){g.addEventProcessor(function(C){return r.mechanism&&(xW(C,void 0,void 0),yP(C,r.mechanism)),C.extra=Pn(Pn({},C.extra),{arguments:u}),C}),wle(h)}),h}};try{for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])}catch(l){}ule(o,n),RF(n,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return n.name}})}catch(l){}return o}function n$e(n){if(void 0===n&&(n={}),YF.document){if(!n.eventId)return void(gd&&ci.error("Missing eventId option in showReportDialog call"));if(!n.dsn)return void(gd&&ci.error("Missing dsn option in showReportDialog call"));var r=YF.document.createElement("script");r.async=!0,r.src=function lXe(n,r){var e=jF(n),i=NW(e)+"embed/error-page/",o="dsn="+kP(e);for(var a in r)if("dsn"!==a)if("user"===a){if(!r.user)continue;r.user.name&&(o+="&name="+encodeURIComponent(r.user.name)),r.user.email&&(o+="&email="+encodeURIComponent(r.user.email))}else o+="&"+encodeURIComponent(a)+"="+encodeURIComponent(r[a]);return i+"?"+o}(n.dsn,n),n.onLoad&&(r.onload=n.onLoad);var e=YF.document.head||YF.document.body;e&&e.appendChild(r)}}var r$e=["fatal","error","warning","log","info","debug","critical"];function o$e(n){return"warn"===n?eh.Warning:function i$e(n){return-1!==r$e.indexOf(n)}(n)?n:eh.Log}var Jle=function(){function n(r){this.name=n.id,this._options=Pn({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},r)}return n.prototype.addSentryBreadcrumb=function(r){!this._options.sentry||_u().addBreadcrumb({category:"sentry."+("transaction"===r.type?"transaction":"event"),event_id:r.event_id,level:r.level,message:Kb(r)},{event:r})},n.prototype.setupOnce=function(){this._options.console&&wv("console",s$e),this._options.dom&&wv("dom",function a$e(n){function r(e){var i,o="object"==typeof n?n.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{i=e.event.target?kW(e.event.target,o):kW(e.event,o)}catch(a){i="<unknown>"}0!==i.length&&_u().addBreadcrumb({category:"ui."+e.name,message:i},{event:e.event,name:e.name,global:e.global})}return r}(this._options.dom)),this._options.xhr&&wv("xhr",l$e),this._options.fetch&&wv("fetch",u$e),this._options.history&&wv("history",c$e)},n.id="Breadcrumbs",n}();function s$e(n){var r={category:"console",data:{arguments:n.args,logger:"console"},level:o$e(n.level),message:lle(n.args," ")};if("assert"===n.level){if(!1!==n.args[0])return;r.message="Assertion failed: "+(lle(n.args.slice(1)," ")||"console.assert"),r.data.arguments=n.args.slice(1)}_u().addBreadcrumb(r,{input:n.args,level:n.level})}function l$e(n){if(n.endTimestamp){if(n.xhr.__sentry_own_request__)return;var r=n.xhr.__sentry_xhr__||{},e=r.method,i=r.url,o=r.status_code,a=r.body;_u().addBreadcrumb({category:"xhr",data:{method:e,url:i,status_code:o},type:"http"},{xhr:n.xhr,input:a})}else;}function u$e(n){!n.endTimestamp||n.fetchData.url.match(/sentry_key/)&&"POST"===n.fetchData.method||(n.error?_u().addBreadcrumb({category:"fetch",data:n.fetchData,level:eh.Error,type:"http"},{data:n.error,input:n.args}):_u().addBreadcrumb({category:"fetch",data:Pn(Pn({},n.fetchData),{status_code:n.response.status}),type:"http"},{input:n.args,response:n.response}))}function c$e(n){var r=(0,ya.R)(),e=n.from,i=n.to,o=EW(r.location.href),a=EW(e),s=EW(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),_u().addBreadcrumb({category:"navigation",data:{from:e,to:i}})}var d$e=function(n){function r(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},n.call(this,e$e,e)||this}return gP(r,n),r.prototype.showReportDialog=function(e){if(void 0===e&&(e={}),(0,ya.R)().document){if(!this._isEnabled())return void(gd&&ci.error("Trying to call showReportDialog with Sentry Client disabled"));n$e(Pn(Pn({},e),{dsn:e.dsn||this.getDsn()}))}},r.prototype._prepareEvent=function(e,i,o){return e.platform=e.platform||"javascript",n.prototype._prepareEvent.call(this,e,i,o)},r.prototype._sendEvent=function(e){var i=this.getIntegration(Jle);i&&i.addSentryBreadcrumb(e),n.prototype._sendEvent.call(this,e)},r}(oXe),f$e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],p$e=function(){function n(r){this.name=n.id,this._options=Pn({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},r)}return n.prototype.setupOnce=function(){var r=(0,ya.R)();this._options.setTimeout&&Nl(r,"setTimeout",Qle),this._options.setInterval&&Nl(r,"setInterval",Qle),this._options.requestAnimationFrame&&Nl(r,"requestAnimationFrame",h$e),this._options.XMLHttpRequest&&"XMLHttpRequest"in r&&Nl(XMLHttpRequest.prototype,"send",m$e);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:f$e).forEach(_$e)},n.id="TryCatch",n}();function Qle(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=r[0];return r[0]=YT(i,{mechanism:{data:{function:Cv(n)},handled:!0,type:"instrument"}}),n.apply(this,r)}}function h$e(n){return function(r){return n.apply(this,[YT(r,{mechanism:{data:{function:"requestAnimationFrame",handler:Cv(n)},handled:!0,type:"instrument"}})])}}function m$e(n){return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach(function(a){a in i&&"function"==typeof i[a]&&Nl(i,a,function(s){var l={mechanism:{data:{function:a,handler:Cv(s)},handled:!0,type:"instrument"}},u=MW(s);return u&&(l.mechanism.data.handler=Cv(u)),YT(s,l)})}),n.apply(this,r)}}function _$e(n){var r=(0,ya.R)(),e=r[n]&&r[n].prototype;!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")||(Nl(e,"addEventListener",function(i){return function(o,a,s){try{"function"==typeof a.handleEvent&&(a.handleEvent=YT(a.handleEvent.bind(a),{mechanism:{data:{function:"handleEvent",handler:Cv(a),target:n},handled:!0,type:"instrument"}}))}catch(l){}return i.apply(this,[o,YT(a,{mechanism:{data:{function:"addEventListener",handler:Cv(a),target:n},handled:!0,type:"instrument"}}),s])}}),Nl(e,"removeEventListener",function(i){return function(o,a,s){var l=a;try{var u=l&&l.__sentry_wrapped__;u&&i.call(this,o,u,s)}catch(d){}return i.call(this,o,l,s)}}))}var qW=function(){function n(r){this.name=n.id,this._installFunc={onerror:g$e,onunhandledrejection:v$e},this._options=Pn({onerror:!0,onunhandledrejection:!0},r)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50;var r=this._options;for(var e in r){var i=this._installFunc[e];i&&r[e]&&(C$e(e),i(),this._installFunc[e]=void 0)}},n.id="GlobalHandlers",n}();function g$e(){wv("error",function(n){var r=mu(eue(),2),e=r[0],i=r[1];if(e.getIntegration(qW)){var o=n.msg,a=n.url,s=n.line,l=n.column,u=n.error;if(!(qle()||u&&u.__sentry_own_request__)){var d=void 0===u&&HT(o)?function b$e(n,r,e,i){var o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,a=ale(n)?n.message:n,s="Error",l=a.match(o);return l&&(s=l[1],a=l[2]),Xle({exception:{values:[{type:s,value:a}]}},r,e,i)}(o,a,s,l):Xle(jW(u||o,void 0,i,!1),a,s,l);d.level=eh.Error,$le(e,u,d,"onerror")}}})}function v$e(){wv("unhandledrejection",function(n){var r=mu(eue(),2),e=r[0],i=r[1];if(e.getIntegration(qW)){var o=n;try{"reason"in n?o=n.reason:"detail"in n&&"reason"in n.detail&&(o=n.detail.reason)}catch(s){}if(qle()||o&&o.__sentry_own_request__)return!0;var a=CW(o)?function y$e(n){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n)}]}}}(o):jW(o,void 0,i,!0);a.level=eh.Error,$le(e,o,a,"onunhandledrejection")}})}function Xle(n,r,e,i){var o=n.exception=n.exception||{},a=o.values=o.values||[],s=a[0]=a[0]||{},l=s.stacktrace=s.stacktrace||{},u=l.frames=l.frames||[],d=isNaN(parseInt(i,10))?void 0:i,h=isNaN(parseInt(e,10))?void 0:e,g=HT(r)&&r.length>0?r:function iQe(){var n=(0,ya.R)();try{return n.document.location.href}catch(r){return""}}();return 0===u.length&&u.push({colno:d,filename:g,function:"?",in_app:!0,lineno:h}),n}function C$e(n){gd&&ci.log("Global Handler attached: "+n)}function $le(n,r,e,i){yP(e,{handled:!1,type:i}),n.captureEvent(e,{originalException:r})}function eue(){var n=_u(),r=n.getClient();return[n,r&&r.getOptions().attachStacktrace]}var T$e=function(){function n(r){void 0===r&&(r={}),this.name=n.id,this._key=r.key||"cause",this._limit=r.limit||5}return n.prototype.setupOnce=function(){DW(function(r,e){var i=_u().getIntegration(n);return i?function M$e(n,r,e,i){if(!(e.exception&&e.exception.values&&i&&vv(i.originalException,Error)))return e;var o=tue(r,i.originalException,n);return e.exception.values=os(o,e.exception.values),e}(i._key,i._limit,r,e):r})},n.id="LinkedErrors",n}();function tue(n,r,e,i){if(void 0===i&&(i=[]),!vv(r[e],Error)||i.length+1>=n)return i;var o=Hle(r[e]);return tue(n,r[e],e,os([o],i))}var S$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(r,e){r(function(i){var o=e().getIntegration(n);if(o){try{if(function E$e(n,r){return!!r&&!(!function x$e(n,r){var e=n.message,i=r.message;return!(!e&&!i||e&&!i||!e&&i||e!==i||!rue(n,r)||!nue(n,r))}(n,r)&&!function D$e(n,r){var e=iue(r),i=iue(n);return!!(e&&i&&e.type===i.type&&e.value===i.value&&rue(n,r)&&nue(n,r))}(n,r))}(i,o._previousEvent))return gd&&ci.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(a){return o._previousEvent=i}return o._previousEvent=i}return i})},n.id="Dedupe",n}();function nue(n,r){var e=oue(n),i=oue(r);if(!e&&!i)return!0;if(e&&!i||!e&&i||i.length!==e.length)return!1;for(var o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.filename!==s.filename||a.lineno!==s.lineno||a.colno!==s.colno||a.function!==s.function)return!1}return!0}function rue(n,r){var e=n.fingerprint,i=r.fingerprint;if(!e&&!i)return!0;if(e&&!i||!e&&i)return!1;try{return e.join("")===i.join("")}catch(o){return!1}}function iue(n){return n.exception&&n.exception.values&&n.exception.values[0]}function oue(n){var r=n.exception;if(r)try{return r.values[0].stacktrace.frames}catch(e){return}else if(n.stacktrace)return n.stacktrace.frames}var Qb=(0,ya.R)(),A$e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){DW(function(r){if(_u().getIntegration(n)){if(!Qb.navigator&&!Qb.location&&!Qb.document)return r;var e=r.request&&r.request.url||Qb.location&&Qb.location.href,i=(Qb.document||{}).referrer,o=(Qb.navigator||{}).userAgent,a=Pn(Pn(Pn({},r.request&&r.request.headers),i&&{Referer:i}),o&&{"User-Agent":o}),s=Pn(Pn({},e&&{url:e}),{headers:a});return Pn(Pn({},r),{request:s})}return r})},n.id="UserAgent",n}(),O$e=[new _Qe,new TQe,new p$e,new Jle,new qW,new T$e,new S$e,new A$e];function aue(n){n.startSession({ignoreDuration:!0}),n.captureSession()}!function I$e(n){if(void 0===n&&(n={}),void 0===n.defaultIntegrations&&(n.defaultIntegrations=O$e),void 0===n.release){var r=(0,ya.R)();r.SENTRY_RELEASE&&r.SENTRY_RELEASE.id&&(n.release=r.SENTRY_RELEASE.id)}void 0===n.autoSessionTracking&&(n.autoSessionTracking=!0),void 0===n.sendClientReports&&(n.sendClientReports=!0),function MQe(n,r){!0===r.debug&&(as?ci.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var e=_u(),i=e.getScope();i&&i.update(r.initialScope);var o=new n(r);e.bindClient(o)}(d$e,n),n.autoSessionTracking&&function P$e(){if(void 0===(0,ya.R)().document)return void(gd&&ci.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));var e=_u();!e.captureSession||(aue(e),wv("history",function(i){var o=i.from,a=i.to;void 0===o||o===a||aue(_u())}))}()}({dsn:"https://d8be3a98530f49eb90968ff396db326c@o19455.ingest.sentry.io/842726"});var KT=function(){function n(r){(0,H.Z)(this,n),this.injector=r}return(0,B.Z)(n,[{key:"extractError",value:function(e){return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof sc.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";wle(i);Wa.N.production||console.error(i)}}]),n}();KT.\u0275fac=function(r){return new(r||KT)(t.LFG(t.zs3))},KT.\u0275prov=t.Yz7({token:KT,factory:KT.\u0275fac});var Xb=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"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,dt.Z)((0,Ut.Z)(e.prototype),"handleError",this).call(this,o),o){var a=this.injector.get(Ln);o.error&&o.error.message?a.error(o.error.message):o.message?a.error(o.message):o.error&&a.error(o.error)}}}]),e}(KT);Xb.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(Xb)))(e||Xb)}}(),Xb.\u0275prov=t.Yz7({token:Xb,factory:Xb.\u0275fac});var SP=function(){function n(){(0,H.Z)(this,n)}return(0,B.Z)(n,[{key:"transform",value:function(e,i){return e?i?(i=i.toLowerCase(),e.projectDatabase.data.filter(function(o){return o.filename.toLowerCase().includes(i)})):e:[]}}]),n}();SP.\u0275fac=function(r){return new(r||SP)},SP.\u0275pipe=t.Yjl({name:"projectsfilter",type:SP,pure:!0});var sue=["*"],L$e=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],B$e=function(){function n(){(0,H.Z)(this,n),this.columnIndex=0,this.rowIndex=0}return(0,B.Z)(n,[{key:"rowCount",get:function(){return this.rowIndex+1}},{key:"rowspan",get:function(){var e=Math.max.apply(Math,(0,pn.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 F$e(this.rowIndex,i)}},{key:"_findMatchingGap",value:function(e){this.tracker.length;var i=-1,o=-1;do{this.columnIndex+e>this.tracker.length?(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i)):-1!=(i=this.tracker.indexOf(0,this.columnIndex))?(o=this._findGapEndIndex(i),this.columnIndex=i+1):(this._nextRow(),i=this.tracker.indexOf(0,this.columnIndex),o=this._findGapEndIndex(i))}while(o-i<e||0==o);return Math.max(i,0)}},{key:"_nextRow",value:function(){this.columnIndex=0,this.rowIndex++;for(var e=0;e<this.tracker.length;e++)this.tracker[e]=Math.max(0,this.tracker[e]-1)}},{key:"_findGapEndIndex",value:function(e){for(var i=e+1;i<this.tracker.length;i++)if(0!=this.tracker[i])return i;return this.tracker.length}},{key:"_markTilePosition",value:function(e,i){for(var o=0;o<i.colspan;o++)this.tracker[e+o]=i.rowspan}}]),n}(),F$e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.row=r,this.col=e}),lue=new t.OlP("MAT_GRID_LIST"),EP=function(){function n(r,e){(0,H.Z)(this,n),this._element=r,this._gridList=e,this._rowspan=1,this._colspan=1}return(0,B.Z)(n,[{key:"rowspan",get:function(){return this._rowspan},set:function(e){this._rowspan=Math.round((0,Mn.su)(e))}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=Math.round((0,Mn.su)(e))}},{key:"_setStyle",value:function(e,i){this._element.nativeElement.style[e]=i}}]),n}();EP.\u0275fac=function(r){return new(r||EP)(t.Y36(t.SBq),t.Y36(lue,8))},EP.\u0275cmp=t.Xpm({type:EP,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(r,e){2&r&&t.uIk("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:sue,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var KF=function(){function n(r){(0,H.Z)(this,n),this._element=r}return(0,B.Z)(n,[{key:"ngAfterContentInit",value:function(){(0,Vt.E0)(this._lines,this._element)}}]),n}();KF.\u0275fac=function(r){return new(r||KF)(t.Y36(t.SBq))},KF.\u0275cmp=t.Xpm({type:KF,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,Vt.X2,5),2&r)&&(t.iGM(o=t.CRH())&&(e._lines=o))},ngContentSelectors:["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(r,e){1&r&&(t.F$t(L$e),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0});var qF=(0,B.Z)(function n(){(0,H.Z)(this,n)});qF.\u0275fac=function(r){return new(r||qF)},qF.\u0275dir=t.lG2({type:qF,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]});var JF=(0,B.Z)(function n(){(0,H.Z)(this,n)});JF.\u0275fac=function(r){return new(r||JF)},JF.\u0275dir=t.lG2({type:JF,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]});var QF=(0,B.Z)(function n(){(0,H.Z)(this,n)});QF.\u0275fac=function(r){return new(r||QF)},QF.\u0275dir=t.lG2({type:QF,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]});var U$e=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,JW=function(){function n(){(0,H.Z)(this,n),this._rows=0,this._rowspan=0}return(0,B.Z)(n,[{key:"init",value:function(e,i,o,a){this._gutterSize=uue(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}}]),n}(),H$e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this)).fixedRowHeight=i,o}return(0,B.Z)(e,[{key:"init",value:function(o,a,s,l){(0,dt.Z)((0,Ut.Z)(e.prototype),"init",this).call(this,o,a,s,l),this.fixedRowHeight=uue(this.fixedRowHeight),U$e.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}(JW),j$e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i){var o;return(0,H.Z)(this,e),(o=r.call(this))._parseRatio(i),o}return(0,B.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}(JW),G$e=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"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}(JW);function $b(n){return"calc(".concat(n,")")}function uue(n){return n.match(/([A-Za-z%]+)$/)?n:"".concat(n,"px")}var xP=function(){function n(r,e){(0,H.Z)(this,n),this._element=r,this._dir=e,this._gutter="1px"}return(0,B.Z)(n,[{key:"cols",get:function(){return this._cols},set:function(e){this._cols=Math.max(1,Math.round((0,Mn.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 G$e:e&&e.indexOf(":")>-1?this._tileStyler=new j$e(e):this._tileStyler=new H$e(e)}},{key:"_layoutTiles",value:function(){var e=this;this._tileCoordinator||(this._tileCoordinator=new B$e);var i=this._tileCoordinator,o=this._tiles.filter(function(s){return!s._gridList||s._gridList===e}),a=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,o),this._tileStyler.init(this.gutterSize,i,this.cols,a),o.forEach(function(s,l){var u=i.positions[l];e._tileStyler.setStyle(s,u.row,u.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}}]),n}();xP.\u0275fac=function(r){return new(r||xP)(t.Y36(t.SBq),t.Y36(Ls.Is,8))},xP.\u0275cmp=t.Xpm({type:xP,selectors:[["mat-grid-list"]],contentQueries:function(r,e,i){var o;(1&r&&t.Suo(i,EP,5),2&r)&&(t.iGM(o=t.CRH())&&(e._tiles=o))},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(r,e){2&r&&t.uIk("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:lue,useExisting:xP}])],ngContentSelectors:sue,decls:2,vars:0,template:function(r,e){1&r&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0});var qT=(0,B.Z)(function n(){(0,H.Z)(this,n)});qT.\u0275fac=function(r){return new(r||qT)},qT.\u0275mod=t.oAB({type:qT}),qT.\u0275inj=t.cJS({imports:[Vt.uc,Vt.BQ,Vt.uc,Vt.BQ]});var JT=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a){var s;return(0,H.Z)(this,e),(s=r.call(this,i,o)).tabIndex=Number(a)||0,s}return(0,B.Z)(e,[{key:"ngOnInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}((0,Vt.sb)((0,Vt.Id)(hu)));JT.\u0275fac=function(r){return new(r||JT)(t.Y36(t.SBq),t.Y36(Wu),t.$8M("tabindex"))},JT.\u0275dir=t.lG2({type:JT,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[t._Bn([{provide:hu,useExisting:JT}]),t.qOj]});var eC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Ym);eC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eC)))(e||eC)}}(),eC.\u0275dir=t.lG2({type:eC,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[t._Bn([{provide:Ym,useExisting:eC}]),t.qOj]});var kv=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s){var l;return(0,H.Z)(this,e),(l=r.call(this,i,o,a))._disabled=!1,l.tabIndex=Number(s)||0,l}return(0,B.Z)(e,[{key:"disabled",get:function(){return this._disabled},set:function(o){this._disabled=(0,Mn.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,dt.Z)((0,Ut.Z)(e.prototype),"ngOnInit",this).call(this)}},{key:"ngAfterContentInit",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngAfterContentInit",this).call(this)}},{key:"ngOnDestroy",value:function(){(0,dt.Z)((0,Ut.Z)(e.prototype),"ngOnDestroy",this).call(this)}}]),e}($p);kv.\u0275fac=function(r){return new(r||kv)(t.Y36(t.SBq),t.Y36(Wu),t.Y36(t.ZZ4),t.$8M("tabindex"))},kv.\u0275dir=t.lG2({type:kv,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[t._Bn([{provide:$p,useExisting:kv},{provide:hu,useExisting:kv},{provide:OF,useExisting:kv}]),t.qOj]});var tC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e,[{key:"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}(zb);tC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(tC)))(e||tC)}}(),tC.\u0275dir=t.lG2({type:tC,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[t._Bn([{provide:zb,useExisting:tC}]),t.qOj]});var Tv=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.viewContainer=r,this._node=e});Tv.\u0275fac=function(r){return new(r||Tv)(t.Y36(t.s_b),t.Y36(OF,8))},Tv.\u0275dir=t.lG2({type:Tv,selectors:[["","matTreeNodeOutlet",""]],features:[t._Bn([{provide:Xp,useExisting:Tv}])]});var nC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(Wu);nC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(nC)))(e||nC)}}(),nC.\u0275cmp=t.Xpm({type:nC,selectors:[["mat-tree"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Tv,7),2&r)&&(t.iGM(i=t.CRH())&&(e._nodeOutlet=i.first))},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[t._Bn([{provide:Wu,useExisting:nC}]),t.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(r,e){1&r&&t.GkF(0,0)},dependencies:[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}"],encapsulation:2});var rC=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(gv);rC.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(rC)))(e||rC)}}(),rC.\u0275dir=t.lG2({type:rC,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[t._Bn([{provide:gv,useExisting:rC}]),t.qOj]});var QT=(0,B.Z)(function n(){(0,H.Z)(this,n)});QT.\u0275fac=function(r){return new(r||QT)},QT.\u0275mod=t.oAB({type:QT}),QT.\u0275inj=t.cJS({imports:[Wb,Vt.BQ,Vt.BQ]});Ci.o2,Ci.o2;var V$e=[iT,dm,xg,ok,wT,Sg,kn.lN,ak,mk,Ck,Ak,tk,j0,nb,ck,fk,sT,ni.LD,U0,Dk,vk,qT,Zi.Nh,QT,Mb,bT],iC=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),Wa.N.production&&r.events.subscribe(function(i){e.getStatisticsSettings()&&i instanceof af&&(gtag("set","page",i.url),gtag("send","pageview"))})});iC.\u0275fac=function(r){return new(r||iC)(t.LFG(ur),t.LFG(jm.g))},iC.\u0275prov=t.Yz7({token:iC,factory:iC.\u0275fac});var XT=function(){function n(r){(0,H.Z)(this,n),this.httpController=r}return(0,B.Z)(n,[{key:"get",value:function(e){return this.httpController.get(e,"/settings")}},{key:"update",value:function(e,i){return this.httpController.post(e,"/settings",i)}},{key:"getSettingsForQemu",value:function(e){return this.httpController.get(e,"/settings/qemu")}},{key:"updateSettingsForQemu",value:function(e,i){return this.httpController.put(e,"/settings/qemu",{enable_hardware_acceleration:i.enable_hardware_acceleration,require_hardware_acceleration:i.require_hardware_acceleration})}}]),n}();XT.\u0275fac=function(r){return new(r||XT)(t.LFG(mo.zw))},XT.\u0275prov=t.Yz7({token:XT,factory:XT.\u0275fac});var $T=function(){function n(r,e){(0,H.Z)(this,n),this.controllerService=r,this.loginService=e}return(0,B.Z)(n,[{key:"intercept",value:function(e,i){var o=this;return i.handle(e).pipe((0,Xc.K)(function(a){if(401!==a.status&&403!==a.status)return(0,x0._)(a);o.call()}))}},{key:"call",value:function(){var e;return yi(this,void 0,void 0,Rn().mark(function i(){var o,a,s,l;return Rn().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return o=null!==(e=JSON.parse(localStorage.getItem("isRememberMe")))&&void 0!==e?e:null,a=this.loginService.controller_id,d.next=4,this.controllerService.get(parseInt(a,10));case 4:return(s=d.sent).tokenExpired=!0,d.next=8,this.controllerService.update(s);case 8:if(d.prev=8,!o||!o.isRememberMe){d.next=20;break}return d.next=12,this.loginService.getLoggedUserRefToken(s,o);case 12:return l=d.sent,s.authToken=l.access_token,s.tokenExpired=!1,d.next=17,this.controllerService.update(s);case 17:return d.next=19,this.loginService.getLoggedUser(s);case 19:this.reloadCurrentRoute();case 20:d.next=25;break;case 22:throw d.prev=22,d.t0=d.catch(8),d.t0;case 25:case"end":return d.stop()}},i,this,[[8,22]])}))}},{key:"reloadCurrentRoute",value:function(){location.reload()}}]),n}();$T.\u0275fac=function(r){return new(r||$T)(t.LFG(rr),t.LFG(hm))},$T.\u0275prov=t.Yz7({token:$T,factory:$T.\u0275fac});var Y$e=["input"],K$e=function(r){return{enterDuration:r}},J$e=new t.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),Q$e=0,X$e={provide:J.JU,useExisting:(0,t.Gpc)(function(){return DP}),multi:!0},$$e=(0,B.Z)(function n(r,e){(0,H.Z)(this,n),this.source=r,this.checked=e}),eet=(0,Vt.sb)((0,Vt.pj)((0,Vt.Kr)((0,Vt.Id)(function(){return(0,B.Z)(function n(r){(0,H.Z)(this,n),this._elementRef=r})}())))),XF=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u,d){var h;return(0,H.Z)(this,e),(h=r.call(this,i))._focusMonitor=o,h._changeDetectorRef=a,h.defaults=l,h._onChange=function(g){},h._onTouched=function(){},h._required=!1,h._checked=!1,h.name=null,h.labelPosition="after",h.ariaLabel=null,h.ariaLabelledby=null,h.change=new t.vpe,h.toggleChange=new t.vpe,h.tabIndex=parseInt(s)||0,h.color=h.defaultColor=l.color||"accent",h._noopAnimations="NoopAnimations"===u,h.id=h._uniqueId="".concat(d).concat(++Q$e),h}return(0,B.Z)(e,[{key:"required",get:function(){return this._required},set:function(o){this._required=(0,Mn.Ig)(o)}},{key:"checked",get:function(){return this._checked},set:function(o){this._checked=(0,Mn.Ig)(o),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var o=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(a){"keyboard"===a||"program"===a?o._focused=!0:a||Promise.resolve().then(function(){o._focused=!1,o._onTouched(),o._changeDetectorRef.markForCheck()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"writeValue",value:function(o){this.checked=!!o}},{key:"registerOnChange",value:function(o){this._onChange=o}},{key:"registerOnTouched",value:function(o){this._onTouched=o}},{key:"setDisabledState",value:function(o){this.disabled=o,this._changeDetectorRef.markForCheck()}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}]),e}(eet);XF.\u0275fac=function(r){t.$Z()},XF.\u0275dir=t.lG2({type:XF,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[t.qOj]});var DP=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(i,o,a,s,l,u){return(0,H.Z)(this,e),r.call(this,i,o,a,s,l,u,"mat-slide-toggle-")}return(0,B.Z)(e,[{key:"_createChangeEvent",value:function(o){return new $$e(this,o)}},{key:"_onChangeEvent",value:function(o){o.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(o){o.stopPropagation()}},{key:"focus",value:function(o,a){a?this._focusMonitor.focusVia(this._inputElement,a,o):this._inputElement.nativeElement.focus(o)}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),e}(XF);DP.\u0275fac=function(r){return new(r||DP)(t.Y36(t.SBq),t.Y36(Yr.tE),t.Y36(t.sBO),t.$8M("tabindex"),t.Y36(J$e),t.Y36(t.QbO,8))},DP.\u0275cmp=t.Xpm({type:DP,selectors:[["mat-slide-toggle"]],viewQuery:function(r,e){var i;(1&r&&t.Gf(Y$e,5),2&r)&&(t.iGM(i=t.CRH())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,e){2&r&&(t.Ikx("id",e.id),t.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),t.ekj("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[t._Bn([X$e]),t.qOj],ngContentSelectors:["*"],decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(r,e){if(1&r&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),t.NdJ("change",function(s){return e._onChangeEvent(s)})("click",function(s){return e._onInputClick(s)}),t.qZA(),t.TgZ(5,"span",5),t._UZ(6,"span",6),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()()(),t.TgZ(9,"span",9,10),t.NdJ("cdkObserveContent",function(){return e._onLabelTextChange()}),t.TgZ(11,"span",11),t._uU(12,"\xa0"),t.qZA(),t.Hsn(13),t.qZA()()),2&r){var i=t.MAs(1),o=t.MAs(10);t.uIk("for",e.inputId),t.xp6(2),t.ekj("mat-slide-toggle-bar-no-side-margin",!o.textContent||!o.textContent.trim()),t.xp6(1),t.Q6J("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),t.uIk("name",e.name)("aria-checked",e.checked)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),t.xp6(4),t.Q6J("matRippleTrigger",i)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(18,K$e,e._noopAnimations?0:150))}},dependencies:[Vt.wG,OB.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0});var tet={provide:J.Cf,useExisting:(0,t.Gpc)(function(){return eM}),multi:!0},eM=function(n){(0,tt.Z)(e,n);var r=(0,Ye.Z)(e);function e(){return(0,H.Z)(this,e),r.apply(this,arguments)}return(0,B.Z)(e)}(J.Zs);eM.\u0275fac=function(){var n;return function(e){return(n||(n=t.n5z(eM)))(e||eM)}}(),eM.\u0275dir=t.lG2({type:eM,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[t._Bn([tet]),t.qOj]});var oC=(0,B.Z)(function n(){(0,H.Z)(this,n)});oC.\u0275fac=function(r){return new(r||oC)},oC.\u0275mod=t.oAB({type:oC}),oC.\u0275inj=t.cJS({});var tM=(0,B.Z)(function n(){(0,H.Z)(this,n)});tM.\u0275fac=function(r){return new(r||tM)},tM.\u0275mod=t.oAB({type:tM}),tM.\u0275inj=t.cJS({imports:[oC,Vt.si,Vt.BQ,OB.Q8,oC,Vt.BQ]});var nM=(0,B.Z)(function n(r){(0,H.Z)(this,n),this._googleAnalyticsService=r});nM.\u0275fac=function(r){return new(r||nM)(t.LFG(iC))},nM.\u0275mod=t.oAB({type:nM,bootstrap:[_P]}),nM.\u0275inj=t.cJS({providers:[jm.g,{provide:t.qLn,useClass:Xb},{provide:sc.TP,useClass:$T,multi:!0},mm,vG,Gs.Y,Op,rr,lf,Br,cl,Ka,mo.zw,Vm,dv,Ln,Ml,lv,Fm.F,Ya.G,Yb,fv,Pl,Tb,va,mo.CJ,Dp,Gu,Yp,XT,Bu,xm,xl,Sm,cu,od,J0,q0,K0,km,Mm,Pg,Dm,wc,Em,Rg,nd,Ip,ad,Og,EF.p,pv,_f,hv,Fb,Zb,vf,tv,ul,Eb,sf.X,iv,Hm,Nb,Cc.f,iC,pu,_d,Fr,jb,Hr,xb,Ub,hm,Zl],imports:[ri,sc.JF,ZT,J.u5,J.UX,H1,rp,FT,Hw,Uw,Wh,kn.lN,xg,zY.ym,V1,G_,Nne,V$e,Bw.forRoot(),xi.U8,tM,nb,kT,Y0,Wb]}),t.B6R(mT,function(){return[ge.O5,Us,J._Y,J.Fj,J.JJ,J.JL,J.On,J.F,kn.KE,cn,Dn,Kn,ko,Mo,Ro,_o,To,Lo,Io,Po,Zo,No,$r,zu,yf,ui]},function(){return[SP]}),Wa.N.production&&(0,t.G48)(),Ra().bootstrapModule(nM).then(function(n){!function Ca(n){return qr(Uo,new Ar(n)),n}(n.injector.get(t.z2F).components[0])}).catch(function(n){return console.log(n)})},7312:function(De,K,m){"use strict";m.d(K,{R:function(){return A},Y:function(){return U}});var G=m(3295),W={};function A(){return(0,G.KV)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:W}function U(R,P,E){var D=E||A(),j=D.__SENTRY__=D.__SENTRY__||{};return j[R]||(j[R]=P())}},3295:function(De,K,m){"use strict";function W(){return!function G(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function A(R,P){return R.require(P)}m.d(K,{l$:function(){return A},KV:function(){return W}}),De=m.hmd(De)},3169:function(De,K,m){"use strict";m.d(K,{ph:function(){return j},yW:function(){return D}});var G=m(7312),W=m(3295);De=m.hmd(De);var A={nowSeconds:function(){return Date.now()/1e3}};var P=(0,W.KV)()?function R(){try{return(0,W.l$)(De,"perf_hooks").performance}catch(S){return}}():function U(){var O=(0,G.R)().performance;if(O&&O.now)return{now:function(){return O.now()},timeOrigin:Date.now()-O.now()}}(),E=void 0===P?A:{nowSeconds:function(){return(P.timeOrigin+P.now())/1e3}},D=A.nowSeconds.bind(A),j=E.nowSeconds.bind(E);!function(){var O=(0,G.R)().performance;if(O&&O.now){var S=36e5,y=O.now(),T=Date.now(),M=O.timeOrigin?Math.abs(O.timeOrigin+y-T):S,x=M<S,N=O.timing&&O.timing.navigationStart,X="number"==typeof N?Math.abs(N+y-T):S;return x||X<S?M<=X?("timeOrigin",O.timeOrigin):("navigationStart",N):("dateNow",T)}"none"}()},2072:function(De,K,m){"use strict";m.d(K,{E$:function(){return Ze},ym:function(){return fn}});var G=m(7685),W=m(5671),A=m(3144),U=m(9808),R=m(5e3),P=m(8929),E=m(6787),D=m(8896),j=m(7451),L=m(3753),v=m(2994),k=m(8117),b=m(1059),O=m(4850),S=m(7545),y=m(7568),T=m(7625),M=m(1709),x=m(2986),N=m(519),F=m(9664),X="undefined"!=typeof window&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0);function $(nt,Ot){var _t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,Ct=Math.abs(nt-Ot);return Ct<_t}function Y(nt,Ot,_t,Ct){var We={top:nt.top,bottom:nt.bottom,left:nt.left,right:nt.right};return Ot.top&&(We.top+=Ct),Ot.bottom&&(We.bottom+=Ct),Ot.left&&(We.left+=_t),Ot.right&&(We.right+=_t),We.height=We.bottom-We.top,We.width=We.right-We.left,We}function ne(nt){var Ot=nt.clientY,_t=nt.rect;return Ot>=_t.top&&Ot<=_t.bottom}function be(nt){var Ot=nt.clientX,_t=nt.rect;return Ot>=_t.left&&Ot<=_t.right}function pe(nt){var Ot=nt.clientX,_t=nt.clientY,Ct=nt.elm,We=nt.allowedEdges,lt=nt.cursorPrecision,dt=Ct.nativeElement.getBoundingClientRect(),Ut={};return We.left&&$(Ot,dt.left,lt)&&ne({clientY:_t,rect:dt})&&(Ut.left=!0),We.right&&$(Ot,dt.right,lt)&&ne({clientY:_t,rect:dt})&&(Ut.right=!0),We.top&&$(_t,dt.top,lt)&&be({clientX:Ot,rect:dt})&&(Ut.top=!0),We.bottom&&$(_t,dt.bottom,lt)&&be({clientX:Ot,rect:dt})&&(Ut.bottom=!0),Ut}var de=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function le(nt,Ot){return nt.left&&nt.top?Ot.topLeft:nt.right&&nt.top?Ot.topRight:nt.left&&nt.bottom?Ot.bottomLeft:nt.right&&nt.bottom?Ot.bottomRight:nt.left||nt.right?Ot.leftOrRight:nt.top||nt.bottom?Ot.topOrBottom:""}function ce(nt){var Ot=nt.edges,_t=nt.initialRectangle,Ct=nt.newRectangle,We={};return Object.keys(Ot).forEach(function(lt){We[lt]=(Ct[lt]||0)-(_t[lt]||0)}),We}var me="resize-active",Ze=function(){function nt(Ot,_t,Ct,We){(0,W.Z)(this,nt),this.platformId=Ot,this.renderer=_t,this.elm=Ct,this.zone=We,this.resizeEdges={},this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=de,this.resizeCursorPrecision=3,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=50,this.resizeStart=new R.vpe,this.resizing=new R.vpe,this.resizeEnd=new R.vpe,this.mouseup=new P.xQ,this.mousedown=new P.xQ,this.mousemove=new P.xQ,this.destroy$=new P.xQ,this.resizeEdges$=new P.xQ,this.pointerEventListeners=$t.getInstance(_t,We)}return(0,A.Z)(nt,[{key:"ngOnInit",value:function(){var dt,_t=this,Ct=(0,E.T)(this.pointerEventListeners.pointerDown,this.mousedown),We=(0,E.T)(this.pointerEventListeners.pointerMove,this.mousemove).pipe((0,v.b)(function(tt){var Ye=tt.event;if(dt)try{Ye.preventDefault()}catch(ge){}}),(0,k.B)()),lt=(0,E.T)(this.pointerEventListeners.pointerUp,this.mouseup),Ut=function(){dt&&dt.clonedNode&&(_t.elm.nativeElement.parentElement.removeChild(dt.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","inherit"))},B=function(){return Object.assign({},de,_t.resizeCursors)};this.resizeEdges$.pipe((0,b.O)(this.resizeEdges),(0,O.U)(function(){return _t.resizeEdges&&Object.keys(_t.resizeEdges).some(function(tt){return!!_t.resizeEdges[tt]})}),(0,S.w)(function(tt){return tt?We:D.E}),(0,y.e)(this.mouseMoveThrottleMS),(0,T.R)(this.destroy$)).subscribe(function(tt){var t=pe({clientX:tt.clientX,clientY:tt.clientY,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision}),Dt=B();if(!dt){var Zt=le(t,Dt);_t.renderer.setStyle(_t.elm.nativeElement,"cursor",Zt)}_t.setElementClass(_t.elm,"resize-left-hover",!0===t.left),_t.setElementClass(_t.elm,"resize-right-hover",!0===t.right),_t.setElementClass(_t.elm,"resize-top-hover",!0===t.top),_t.setElementClass(_t.elm,"resize-bottom-hover",!0===t.bottom)}),Ct.pipe((0,M.zg)(function(tt){function Ye(Dt){return{clientX:Dt.clientX-tt.clientX,clientY:Dt.clientY-tt.clientY}}var ge=function(){var Zt={x:1,y:1};return dt&&(_t.resizeSnapGrid.left&&dt.edges.left?Zt.x=+_t.resizeSnapGrid.left:_t.resizeSnapGrid.right&&dt.edges.right&&(Zt.x=+_t.resizeSnapGrid.right),_t.resizeSnapGrid.top&&dt.edges.top?Zt.y=+_t.resizeSnapGrid.top:_t.resizeSnapGrid.bottom&&dt.edges.bottom&&(Zt.y=+_t.resizeSnapGrid.bottom)),Zt};function t(Dt,Zt){return{x:Math.ceil(Dt.clientX/Zt.x),y:Math.ceil(Dt.clientY/Zt.y)}}return(0,E.T)(We.pipe((0,x.q)(1)).pipe((0,O.U)(function(Dt){return[,Dt]})),We.pipe((0,N.G)())).pipe((0,O.U)(function(Dt){var Zt=(0,G.Z)(Dt,2),zt=Zt[0],sn=Zt[1];return[zt&&Ye(zt),Ye(sn)]})).pipe((0,F.h)(function(Dt){var Zt=(0,G.Z)(Dt,2),zt=Zt[0],sn=Zt[1];if(!zt)return!0;var qt=ge(),yn=t(zt,qt),Kt=t(sn,qt);return yn.x!==Kt.x||yn.y!==Kt.y})).pipe((0,O.U)(function(Dt){var zt=(0,G.Z)(Dt,2)[1],sn=ge();return{clientX:Math.round(zt.clientX/sn.x)*sn.x,clientY:Math.round(zt.clientY/sn.y)*sn.y}})).pipe((0,T.R)((0,E.T)(lt,Ct)))})).pipe((0,F.h)(function(){return!!dt})).pipe((0,O.U)(function(tt){var Ye=tt.clientX,ge=tt.clientY;return Y(dt.startingRect,dt.edges,Ye,ge)})).pipe((0,F.h)(function(tt){return _t.allowNegativeResizes||!!(tt.height&&tt.width&&tt.height>0&&tt.width>0)})).pipe((0,F.h)(function(tt){return!_t.validateResize||_t.validateResize({rectangle:tt,edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:tt})})}),(0,T.R)(this.destroy$)).subscribe(function(tt){dt&&dt.clonedNode&&(_t.renderer.setStyle(dt.clonedNode,"height","".concat(tt.height,"px")),_t.renderer.setStyle(dt.clonedNode,"width","".concat(tt.width,"px")),_t.renderer.setStyle(dt.clonedNode,"top","".concat(tt.top,"px")),_t.renderer.setStyle(dt.clonedNode,"left","".concat(tt.left,"px"))),_t.resizing.observers.length>0&&_t.zone.run(function(){_t.resizing.emit({edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:tt}),rectangle:tt})}),dt.currentRect=tt}),Ct.pipe((0,O.U)(function(tt){var Ye=tt.clientX,ge=tt.clientY;return tt.edges||pe({clientX:Ye,clientY:ge,elm:_t.elm,allowedEdges:_t.resizeEdges,cursorPrecision:_t.resizeCursorPrecision})})).pipe((0,F.h)(function(tt){return Object.keys(tt).length>0}),(0,T.R)(this.destroy$)).subscribe(function(tt){dt&&Ut();var Ye=function Q(nt,Ot){var _t=0,Ct=0,We=nt.nativeElement.style,dt=["transform","-ms-transform","-moz-transform","-o-transform"].map(function(B){return We[B]}).find(function(B){return!!B});if(dt&&dt.includes("translate")&&(_t=dt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),Ct=dt.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),"absolute"===Ot)return{height:nt.nativeElement.offsetHeight,width:nt.nativeElement.offsetWidth,top:nt.nativeElement.offsetTop-Ct,bottom:nt.nativeElement.offsetHeight+nt.nativeElement.offsetTop-Ct,left:nt.nativeElement.offsetLeft-_t,right:nt.nativeElement.offsetWidth+nt.nativeElement.offsetLeft-_t};var Ut=nt.nativeElement.getBoundingClientRect();return{height:Ut.height,width:Ut.width,top:Ut.top-Ct,bottom:Ut.bottom-Ct,left:Ut.left-_t,right:Ut.right-_t,scrollTop:nt.nativeElement.scrollTop,scrollLeft:nt.nativeElement.scrollLeft}}(_t.elm,_t.ghostElementPositioning);dt={edges:tt,startingRect:Ye,currentRect:Ye};var ge=B(),t=le(dt.edges,ge);_t.renderer.setStyle(document.body,"cursor",t),_t.setElementClass(_t.elm,me,!0),_t.enableGhostResize&&(dt.clonedNode=_t.elm.nativeElement.cloneNode(!0),_t.elm.nativeElement.parentElement.appendChild(dt.clonedNode),_t.renderer.setStyle(_t.elm.nativeElement,"visibility","hidden"),_t.renderer.setStyle(dt.clonedNode,"position",_t.ghostElementPositioning),_t.renderer.setStyle(dt.clonedNode,"left","".concat(dt.startingRect.left,"px")),_t.renderer.setStyle(dt.clonedNode,"top","".concat(dt.startingRect.top,"px")),_t.renderer.setStyle(dt.clonedNode,"height","".concat(dt.startingRect.height,"px")),_t.renderer.setStyle(dt.clonedNode,"width","".concat(dt.startingRect.width,"px")),_t.renderer.setStyle(dt.clonedNode,"cursor",le(dt.edges,ge)),_t.renderer.addClass(dt.clonedNode,"resize-ghost-element"),dt.clonedNode.scrollTop=dt.startingRect.scrollTop,dt.clonedNode.scrollLeft=dt.startingRect.scrollLeft),_t.resizeStart.observers.length>0&&_t.zone.run(function(){_t.resizeStart.emit({edges:ce({edges:tt,initialRectangle:Ye,newRectangle:Ye}),rectangle:Y(Ye,{},0,0)})})}),lt.pipe((0,T.R)(this.destroy$)).subscribe(function(){dt&&(_t.renderer.removeClass(_t.elm.nativeElement,me),_t.renderer.setStyle(document.body,"cursor",""),_t.renderer.setStyle(_t.elm.nativeElement,"cursor",""),_t.resizeEnd.observers.length>0&&_t.zone.run(function(){_t.resizeEnd.emit({edges:ce({edges:dt.edges,initialRectangle:dt.startingRect,newRectangle:dt.currentRect}),rectangle:dt.currentRect})}),Ut(),dt=null)})}},{key:"ngOnChanges",value:function(_t){_t.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(_t,Ct,We){We?this.renderer.addClass(_t.nativeElement,Ct):this.renderer.removeClass(_t.nativeElement,Ct)}}]),nt}();Ze.\u0275fac=function(Ot){return new(Ot||Ze)(R.Y36(R.Lbi),R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b))},Ze.\u0275dir=R.lG2({type:Ze,selectors:[["","mwlResizable",""]],inputs:{resizeEdges:"resizeEdges",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",resizeCursorPrecision:"resizeCursorPrecision",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS",validateResize:"validateResize"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"],features:[R.TTD]}),Ze.ctorParameters=function(){return[{type:void 0,decorators:[{type:R.tBr,args:[R.Lbi]}]},{type:R.Qsj},{type:R.SBq},{type:R.R0b}]},Ze.propDecorators={validateResize:[{type:R.IIB}],resizeEdges:[{type:R.IIB}],enableGhostResize:[{type:R.IIB}],resizeSnapGrid:[{type:R.IIB}],resizeCursors:[{type:R.IIB}],resizeCursorPrecision:[{type:R.IIB}],ghostElementPositioning:[{type:R.IIB}],allowNegativeResizes:[{type:R.IIB}],mouseMoveThrottleMS:[{type:R.IIB}],resizeStart:[{type:R.r_U}],resizing:[{type:R.r_U}],resizeEnd:[{type:R.r_U}]};var $t=function(){function nt(Ot,_t){(0,W.Z)(this,nt),this.pointerDown=new j.y(function(Ct){var We,lt;return _t.runOutsideAngular(function(){We=Ot.listen("document","mousedown",function(dt){Ct.next({clientX:dt.clientX,clientY:dt.clientY,event:dt})}),X&&(lt=Ot.listen("document","touchstart",function(dt){Ct.next({clientX:dt.touches[0].clientX,clientY:dt.touches[0].clientY,event:dt})}))}),function(){We(),X&<()}}).pipe((0,k.B)()),this.pointerMove=new j.y(function(Ct){var We,lt;return _t.runOutsideAngular(function(){We=Ot.listen("document","mousemove",function(dt){Ct.next({clientX:dt.clientX,clientY:dt.clientY,event:dt})}),X&&(lt=Ot.listen("document","touchmove",function(dt){Ct.next({clientX:dt.targetTouches[0].clientX,clientY:dt.targetTouches[0].clientY,event:dt})}))}),function(){We(),X&<()}}).pipe((0,k.B)()),this.pointerUp=new j.y(function(Ct){var We,lt,dt;return _t.runOutsideAngular(function(){We=Ot.listen("document","mouseup",function(Ut){Ct.next({clientX:Ut.clientX,clientY:Ut.clientY,event:Ut})}),X&&(lt=Ot.listen("document","touchend",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}),dt=Ot.listen("document","touchcancel",function(Ut){Ct.next({clientX:Ut.changedTouches[0].clientX,clientY:Ut.changedTouches[0].clientY,event:Ut})}))}),function(){We(),X&&(lt(),dt())}}).pipe((0,k.B)())}return(0,A.Z)(nt,null,[{key:"getInstance",value:function(_t,Ct){return nt.instance||(nt.instance=new nt(_t,Ct)),nt.instance}}]),nt}(),Ft=function(){function nt(Ot,_t,Ct,We){(0,W.Z)(this,nt),this.renderer=Ot,this.element=_t,this.zone=Ct,this.resizableDirective=We,this.resizeEdges={},this.eventListeners={},this.destroy$=new P.xQ}return(0,A.Z)(nt,[{key:"ngOnInit",value:function(){var _t=this;this.zone.runOutsideAngular(function(){_t.listenOnTheHost("mousedown").subscribe(function(Ct){_t.onMousedown(Ct,Ct.clientX,Ct.clientY)}),_t.listenOnTheHost("mouseup").subscribe(function(Ct){_t.onMouseup(Ct.clientX,Ct.clientY)}),X&&(_t.listenOnTheHost("touchstart").subscribe(function(Ct){_t.onMousedown(Ct,Ct.touches[0].clientX,Ct.touches[0].clientY)}),(0,E.T)(_t.listenOnTheHost("touchend"),_t.listenOnTheHost("touchcancel")).subscribe(function(Ct){_t.onMouseup(Ct.changedTouches[0].clientX,Ct.changedTouches[0].clientY)}))})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.unsubscribeEventListeners()}},{key:"onMousedown",value:function(_t,Ct,We){var lt=this;_t.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",function(dt){lt.onMousemove(dt,dt.targetTouches[0].clientX,dt.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",function(dt){lt.onMousemove(dt,dt.clientX,dt.clientY)})),this.resizable.mousedown.next({clientX:Ct,clientY:We,edges:this.resizeEdges})}},{key:"onMouseup",value:function(_t,Ct){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:_t,clientY:Ct,edges:this.resizeEdges})}},{key:"resizable",get:function(){return this.resizableDirective||this.resizableContainer}},{key:"onMousemove",value:function(_t,Ct,We){this.resizable.mousemove.next({clientX:Ct,clientY:We,edges:this.resizeEdges,event:_t})}},{key:"unsubscribeEventListeners",value:function(){var _t=this;Object.keys(this.eventListeners).forEach(function(Ct){_t.eventListeners[Ct](),delete _t.eventListeners[Ct]})}},{key:"listenOnTheHost",value:function(_t){return(0,L.R)(this.element.nativeElement,_t).pipe((0,T.R)(this.destroy$))}}]),nt}();Ft.\u0275fac=function(Ot){return new(Ot||Ft)(R.Y36(R.Qsj),R.Y36(R.SBq),R.Y36(R.R0b),R.Y36(Ze,8))},Ft.\u0275dir=R.lG2({type:Ft,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}}),Ft.ctorParameters=function(){return[{type:R.Qsj},{type:R.SBq},{type:R.R0b},{type:Ze,decorators:[{type:R.FiY}]}]},Ft.propDecorators={resizeEdges:[{type:R.IIB}],resizableContainer:[{type:R.IIB}]};var fn=(0,A.Z)(function nt(){(0,W.Z)(this,nt)});fn.\u0275fac=function(Ot){return new(Ot||fn)},fn.\u0275mod=R.oAB({type:fn}),fn.\u0275inj=R.cJS({})},1396:function(De){!function(K){"use strict";var m="(0?\\d+|0x[a-f0-9]+)",G={fourOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),threeOctet:new RegExp("^".concat(m,"\\.").concat(m,"\\.").concat(m,"$"),"i"),twoOctet:new RegExp("^".concat(m,"\\.").concat(m,"$"),"i"),longValue:new RegExp("^".concat(m,"$"),"i")},W=new RegExp("^0[0-7]+$","i"),A=new RegExp("^0x[a-f0-9]+$","i"),U="%[0-9a-z]{1,}",R="(?:[0-9a-f]+::?)+",P={zoneIndex:new RegExp(U,"i"),native:new RegExp("^(::)?(".concat(R,")?([0-9a-f]+)?(::)?(").concat(U,")?$"),"i"),deprecatedTransitional:new RegExp("^(?:::)(".concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(U,")?)$"),"i"),transitional:new RegExp("^((?:".concat(R,")|(?:::)(?:").concat(R,")?)").concat(m,"\\.").concat(m,"\\.").concat(m,"\\.").concat(m,"(").concat(U,")?$"),"i")};function E(k,b){if(k.indexOf("::")!==k.lastIndexOf("::"))return null;var T,M,O=0,S=-1,y=(k.match(P.zoneIndex)||[])[0];for(y&&(y=y.substring(1),k=k.replace(/%.+$/,""));(S=k.indexOf(":",S+1))>=0;)O++;if("::"===k.substr(0,2)&&O--,"::"===k.substr(-2,2)&&O--,O>b)return null;for(M=b-O,T=":";M--;)T+="0:";return":"===(k=k.replace("::",T))[0]&&(k=k.slice(1)),":"===k[k.length-1]&&(k=k.slice(0,-1)),{parts:b=function(){for(var x=k.split(":"),N=[],F=0;F<x.length;F++)N.push(parseInt(x[F],16));return N}(),zoneId:y}}function D(k,b,O,S){if(k.length!==b.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(var T,y=0;S>0;){if((T=O-S)<0&&(T=0),k[y]>>T!=b[y]>>T)return!1;S-=O,y+=1}return!0}function j(k){if(A.test(k))return parseInt(k,16);if("0"===k[0]&&!isNaN(parseInt(k[1],10))){if(W.test(k))return parseInt(k,8);throw new Error("ipaddr: cannot parse ".concat(k," as octal"))}return parseInt(k,10)}function L(k,b){for(;k.length<b;)k="0".concat(k);return k}var v={};v.IPv4=function(){function k(b){if(4!==b.length)throw new Error("ipaddr: ipv4 octet count should be 4");var O,S;for(O=0;O<b.length;O++)if(!(0<=(S=b[O])&&S<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=b}return k.prototype.SpecialRanges={unspecified:[[new k([0,0,0,0]),8]],broadcast:[[new k([255,255,255,255]),32]],multicast:[[new k([224,0,0,0]),4]],linkLocal:[[new k([169,254,0,0]),16]],loopback:[[new k([127,0,0,0]),8]],carrierGradeNat:[[new k([100,64,0,0]),10]],private:[[new k([10,0,0,0]),8],[new k([172,16,0,0]),12],[new k([192,168,0,0]),16]],reserved:[[new k([192,0,0,0]),24],[new k([192,0,2,0]),24],[new k([192,88,99,0]),24],[new k([198,18,0,0]),15],[new k([198,51,100,0]),24],[new k([203,0,113,0]),24],[new k([240,0,0,0]),4]]},k.prototype.kind=function(){return"ipv4"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv4"!==b.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return D(this.octets,b.octets,8,O)},k.prototype.prefixLengthFromSubnetMask=function(){var y,T,M,b=0,O=!1,S={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};for(y=3;y>=0;y-=1){if(!((T=this.octets[y])in S))return null;if(M=S[T],O&&0!==M)return null;8!==M&&(O=!0),b+=M}return 32-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){return this.octets.slice(0)},k.prototype.toIPv4MappedAddress=function(){return v.IPv6.parse("::ffff:".concat(this.toString()))},k.prototype.toNormalizedString=function(){return this.toString()},k.prototype.toString=function(){return this.octets.join(".")},k}(),v.IPv4.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<4;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.isIPv4=function(k){return null!==this.parser(k)},v.IPv4.isValid=function(k){try{return new this(this.parser(k)),!0}catch(b){return!1}},v.IPv4.isValidFourPartDecimal=function(k){return!(!v.IPv4.isValid(k)||!k.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},v.IPv4.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<4;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},v.IPv4.parse=function(k){var b=this.parser(k);if(null===b)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(b)},v.IPv4.parseCIDR=function(k){var b;if(b=k.match(/^(.+)\/(\d+)$/)){var O=parseInt(b[2]);if(O>=0&&O<=32){var S=[this.parse(b[1]),O];return Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},v.IPv4.parser=function(k){var b,O,S;if(b=k.match(G.fourOctet))return function(){for(var y=b.slice(1,6),T=[],M=0;M<y.length;M++)O=y[M],T.push(j(O));return T}();if(b=k.match(G.longValue)){if((S=j(b[1]))>4294967295||S<0)throw new Error("ipaddr: address outside defined range");return function(){var T,y=[];for(T=0;T<=24;T+=8)y.push(S>>T&255);return y}().reverse()}return(b=k.match(G.twoOctet))?function(){var y=b.slice(1,4),T=[];if((S=j(y[1]))>16777215||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(S>>16&255),T.push(S>>8&255),T.push(255&S),T}():(b=k.match(G.threeOctet))?function(){var y=b.slice(1,5),T=[];if((S=j(y[2]))>65535||S<0)throw new Error("ipaddr: address outside defined range");return T.push(j(y[0])),T.push(j(y[1])),T.push(S>>8&255),T.push(255&S),T}():null},v.IPv4.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(var b=[0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<4&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.IPv6=function(){function k(b,O){var S,y;if(16===b.length)for(this.parts=[],S=0;S<=14;S+=2)this.parts.push(b[S]<<8|b[S+1]);else{if(8!==b.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=b}for(S=0;S<this.parts.length;S++)if(!(0<=(y=this.parts[S])&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");O&&(this.zoneId=O)}return k.prototype.SpecialRanges={unspecified:[new k([0,0,0,0,0,0,0,0]),128],linkLocal:[new k([65152,0,0,0,0,0,0,0]),10],multicast:[new k([65280,0,0,0,0,0,0,0]),8],loopback:[new k([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new k([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new k([0,0,0,0,0,65535,0,0]),96],rfc6145:[new k([0,0,0,0,65535,0,0,0]),96],rfc6052:[new k([100,65435,0,0,0,0,0,0]),96],"6to4":[new k([8194,0,0,0,0,0,0,0]),16],teredo:[new k([8193,0,0,0,0,0,0,0]),32],reserved:[[new k([8193,3512,0,0,0,0,0,0]),32]],benchmarking:[new k([8193,2,0,0,0,0,0,0]),48],amt:[new k([8193,3,0,0,0,0,0,0]),32],as112v6:[new k([8193,4,274,0,0,0,0,0]),48],deprecated:[new k([8193,16,0,0,0,0,0,0]),28],orchid2:[new k([8193,32,0,0,0,0,0,0]),28]},k.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},k.prototype.kind=function(){return"ipv6"},k.prototype.match=function(b,O){var S;if(void 0===O&&(b=(S=b)[0],O=S[1]),"ipv6"!==b.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return D(this.parts,b.parts,16,O)},k.prototype.prefixLengthFromSubnetMask=function(){for(var y,T,b=0,O=!1,S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},M=7;M>=0;M-=1){if(!((y=this.parts[M])in S))return null;if(T=S[y],O&&0!==T)return null;16!==T&&(O=!0),b+=T}return 128-b},k.prototype.range=function(){return v.subnetMatch(this,this.SpecialRanges)},k.prototype.toByteArray=function(){for(var b,O=[],S=this.parts,y=0;y<S.length;y++)b=S[y],O.push(b>>8),O.push(255&b);return O},k.prototype.toFixedLengthString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(L(this.parts[y].toString(16),4));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");var b=this.parts.slice(-2),O=b[0],S=b[1];return new v.IPv4([O>>8,255&O,S>>8,255&S])},k.prototype.toNormalizedString=function(){var b=function(){for(var S=[],y=0;y<this.parts.length;y++)S.push(this.parts[y].toString(16));return S}.call(this).join(":"),O="";return this.zoneId&&(O="%".concat(this.zoneId)),b+O},k.prototype.toRFC5952String=function(){for(var T,b=/((^|:)(0(:|$)){2,})/g,O=this.toNormalizedString(),S=0,y=-1;T=b.exec(O);)T[0].length>y&&(S=T.index,y=T[0].length);return y<0?O:"".concat(O.substring(0,S),"::").concat(O.substring(S+y))},k.prototype.toString=function(){return this.toRFC5952String()},k}(),v.IPv6.broadcastAddressFromCIDR=function(k){try{for(var b=this.parseCIDR(k),O=b[0].toByteArray(),S=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],T=0;T<16;)y.push(parseInt(O[T],10)|255^parseInt(S[T],10)),T++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.isIPv6=function(k){return null!==this.parser(k)},v.IPv6.isValid=function(k){if("string"==typeof k&&-1===k.indexOf(":"))return!1;try{var b=this.parser(k);return new this(b.parts,b.zoneId),!0}catch(O){return!1}},v.IPv6.networkAddressFromCIDR=function(k){var b,O,S,y,T;try{for(S=(b=this.parseCIDR(k))[0].toByteArray(),T=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),y=[],O=0;O<16;)y.push(parseInt(S[O],10)&parseInt(T[O],10)),O++;return new this(y)}catch(M){throw new Error("ipaddr: the address does not have IPv6 CIDR format (".concat(M,")"))}},v.IPv6.parse=function(k){var b=this.parser(k);if(null===b.parts)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(b.parts,b.zoneId)},v.IPv6.parseCIDR=function(k){var b,O,S;if((O=k.match(/^(.+)\/(\d+)$/))&&((b=parseInt(O[2]))>=0&&b<=128))return S=[this.parse(O[1]),b],Object.defineProperty(S,"toString",{value:function(){return this.join("/")}}),S;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},v.IPv6.parser=function(k){var b,O,S,y,T,M;if(S=k.match(P.deprecatedTransitional))return this.parser("::ffff:".concat(S[1]));if(P.native.test(k))return E(k,8);if((S=k.match(P.transitional))&&(M=S[6]||"",(b=E(S[1].slice(0,-1)+M,6)).parts)){for(T=[parseInt(S[2]),parseInt(S[3]),parseInt(S[4]),parseInt(S[5])],O=0;O<T.length;O++)if(!(0<=(y=T[O])&&y<=255))return null;return b.parts.push(T[0]<<8|T[1]),b.parts.push(T[2]<<8|T[3]),{parts:b.parts,zoneId:b.zoneId}}return null},v.IPv6.subnetMaskFromPrefixLength=function(k){if((k=parseInt(k))<0||k>128)throw new Error("ipaddr: invalid IPv6 prefix length");for(var b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],O=0,S=Math.floor(k/8);O<S;)b[O]=255,O++;return S<16&&(b[S]=Math.pow(2,k%8)-1<<8-k%8),new this(b)},v.fromByteArray=function(k){var b=k.length;if(4===b)return new v.IPv4(k);if(16===b)return new v.IPv6(k);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},v.isValid=function(k){return v.IPv6.isValid(k)||v.IPv4.isValid(k)},v.parse=function(k){if(v.IPv6.isValid(k))return v.IPv6.parse(k);if(v.IPv4.isValid(k))return v.IPv4.parse(k);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},v.parseCIDR=function(k){try{return v.IPv6.parseCIDR(k)}catch(b){try{return v.IPv4.parseCIDR(k)}catch(O){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},v.process=function(k){var b=this.parse(k);return"ipv6"===b.kind()&&b.isIPv4MappedAddress()?b.toIPv4Address():b},v.subnetMatch=function(k,b,O){var S,y,T,M;for(y in null==O&&(O="unicast"),b)if(Object.prototype.hasOwnProperty.call(b,y))for((T=b[y])[0]&&!(T[0]instanceof Array)&&(T=[T]),S=0;S<T.length;S++)if(M=T[S],k.kind()===M[0].kind()&&k.match.apply(k,M))return y;return O},De.exports?De.exports=v:K.ipaddr=v}(this)},7521:function(De,K,m){var G;!function(W,A,U){if(W){for(var j,R={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:"'"},E={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},D={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},L=1;L<20;++L)R[111+L]="f"+L;for(L=0;L<=9;++L)R[L+96]=L.toString();$.prototype.bind=function(Y,Q,ne){return Y=Y instanceof Array?Y:[Y],this._bindMultiple.call(this,Y,Q,ne),this},$.prototype.unbind=function(Y,Q){return this.bind.call(this,Y,function(){},Q)},$.prototype.trigger=function(Y,Q){return this._directMap[Y+":"+Q]&&this._directMap[Y+":"+Q]({},Y),this},$.prototype.reset=function(){var Y=this;return Y._callbacks={},Y._directMap={},Y},$.prototype.stopCallback=function(Y,Q){if((" "+Q.className+" ").indexOf(" mousetrap ")>-1||X(Q,this.target))return!1;if("composedPath"in Y&&"function"==typeof Y.composedPath){var be=Y.composedPath()[0];be!==Y.target&&(Q=be)}return"INPUT"==Q.tagName||"SELECT"==Q.tagName||"TEXTAREA"==Q.tagName||Q.isContentEditable},$.prototype.handleKey=function(){var Y=this;return Y._handleKey.apply(Y,arguments)},$.addKeycodes=function(Y){for(var Q in Y)Y.hasOwnProperty(Q)&&(R[Q]=Y[Q]);j=null},$.init=function(){var Y=$(A);for(var Q in Y)"_"!==Q.charAt(0)&&($[Q]=function(ne){return function(){return Y[ne].apply(Y,arguments)}}(Q))},$.init(),W.Mousetrap=$,De.exports&&(De.exports=$),void 0!==(G=function(){return $}.call(K,m,K,De))&&(De.exports=G)}function v(Y,Q,ne){Y.addEventListener?Y.addEventListener(Q,ne,!1):Y.attachEvent("on"+Q,ne)}function k(Y){if("keypress"==Y.type){var Q=String.fromCharCode(Y.which);return Y.shiftKey||(Q=Q.toLowerCase()),Q}return R[Y.which]?R[Y.which]:P[Y.which]?P[Y.which]:String.fromCharCode(Y.which).toLowerCase()}function b(Y,Q){return Y.sort().join(",")===Q.sort().join(",")}function T(Y){return"shift"==Y||"ctrl"==Y||"alt"==Y||"meta"==Y}function x(Y,Q,ne){return ne||(ne=function M(){if(!j)for(var Y in j={},R)Y>95&&Y<112||R.hasOwnProperty(Y)&&(j[R[Y]]=Y);return j}()[Y]?"keydown":"keypress"),"keypress"==ne&&Q.length&&(ne="keydown"),ne}function F(Y,Q){var ne,be,pe,de=[];for(ne=function N(Y){return"+"===Y?["+"]:(Y=Y.replace(/\+{2}/g,"+plus")).split("+")}(Y),pe=0;pe<ne.length;++pe)be=ne[pe],D[be]&&(be=D[be]),Q&&"keypress"!=Q&&E[be]&&(be=E[be],de.push("shift")),T(be)&&de.push(be);return{key:be,modifiers:de,action:Q=x(be,de,Q)}}function X(Y,Q){return null!==Y&&Y!==A&&(Y===Q||X(Y.parentNode,Q))}function $(Y){var Q=this;if(Y=Y||A,!(Q instanceof $))return new $(Y);Q.target=Y,Q._callbacks={},Q._directMap={};var be,ne={},pe=!1,de=!1,le=!1;function ce(Lt){Lt=Lt||{};var $t,Ze=!1;for($t in ne)Lt[$t]?Ze=!0:ne[$t]=0;Ze||(le=!1)}function me(Lt,Ze,$t,Ft,fn,nt){var Ot,_t,Ct=[],We=$t.type;if(!Q._callbacks[Lt])return[];for("keyup"==We&&T(Lt)&&(Ze=[Lt]),Ot=0;Ot<Q._callbacks[Lt].length;++Ot)if(_t=Q._callbacks[Lt][Ot],(Ft||!_t.seq||ne[_t.seq]==_t.level)&&We==_t.action&&("keypress"==We&&!$t.metaKey&&!$t.ctrlKey||b(Ze,_t.modifiers))){var lt=!Ft&&_t.combo==fn,dt=Ft&&_t.seq==Ft&&_t.level==nt;(lt||dt)&&Q._callbacks[Lt].splice(Ot,1),Ct.push(_t)}return Ct}function je(Lt,Ze,$t,Ft){Q.stopCallback(Ze,Ze.target||Ze.srcElement,$t,Ft)||!1===Lt(Ze,$t)&&(function S(Y){Y.preventDefault?Y.preventDefault():Y.returnValue=!1}(Ze),function y(Y){Y.stopPropagation?Y.stopPropagation():Y.cancelBubble=!0}(Ze))}function at(Lt){"number"!=typeof Lt.which&&(Lt.which=Lt.keyCode);var Ze=k(Lt);if(Ze){if("keyup"==Lt.type&&pe===Ze)return void(pe=!1);Q.handleKey(Ze,function O(Y){var Q=[];return Y.shiftKey&&Q.push("shift"),Y.altKey&&Q.push("alt"),Y.ctrlKey&&Q.push("ctrl"),Y.metaKey&&Q.push("meta"),Q}(Lt),Lt)}}function Tt(Lt,Ze,$t,Ft){function fn(We){return function(){le=We,++ne[Lt],function Mt(){clearTimeout(be),be=setTimeout(ce,1e3)}()}}function nt(We){je($t,We,Lt),"keyup"!==Ft&&(pe=k(We)),setTimeout(ce,10)}ne[Lt]=0;for(var Ot=0;Ot<Ze.length;++Ot){var Ct=Ot+1===Ze.length?nt:fn(Ft||F(Ze[Ot+1]).action);xt(Ze[Ot],Ct,Ft,Lt,Ot)}}function xt(Lt,Ze,$t,Ft,fn){Q._directMap[Lt+":"+$t]=Ze;var Ot,nt=(Lt=Lt.replace(/\s+/g," ")).split(" ");nt.length>1?Tt(Lt,nt,Ze,$t):(Ot=F(Lt,$t),Q._callbacks[Ot.key]=Q._callbacks[Ot.key]||[],me(Ot.key,Ot.modifiers,{type:Ot.action},Ft,Lt,fn),Q._callbacks[Ot.key][Ft?"unshift":"push"]({callback:Ze,modifiers:Ot.modifiers,action:Ot.action,seq:Ft,level:fn,combo:Lt}))}Q._handleKey=function(Lt,Ze,$t){var fn,Ft=me(Lt,Ze,$t),nt={},Ot=0,_t=!1;for(fn=0;fn<Ft.length;++fn)Ft[fn].seq&&(Ot=Math.max(Ot,Ft[fn].level));for(fn=0;fn<Ft.length;++fn)if(Ft[fn].seq){if(Ft[fn].level!=Ot)continue;_t=!0,nt[Ft[fn].seq]=1,je(Ft[fn].callback,$t,Ft[fn].combo,Ft[fn].seq)}else _t||je(Ft[fn].callback,$t,Ft[fn].combo);var Ct="keypress"==$t.type&&de;$t.type==le&&!T(Lt)&&!Ct&&ce(nt),de=_t&&"keydown"==$t.type},Q._bindMultiple=function(Lt,Ze,$t){for(var Ft=0;Ft<Lt.length;++Ft)xt(Lt[Ft],Ze,$t)},v(Y,"keypress",at),v(Y,"keydown",at),v(Y,"keyup",at)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},285:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.Observable=G.Observable,K.Subject=G.Subject;var W=m(5718);K.AnonymousSubject=W.AnonymousSubject;var A=m(5718);K.config=A.config,m(5010),m(9471),m(2687),m(2750),m(2977),m(2925),m(2231),m(1897),m(7026),m(6187),m(1562),m(9470),m(4641),m(3408),m(7975),m(6034),m(3518),m(1305),m(9566),m(6839),m(1672),m(1216),m(987),m(8366),m(5991),m(8173),m(1357),m(5615),m(3056),m(7551),m(2080),m(8273),m(5500),m(8413),m(39),m(2964),m(3569),m(2243),m(3768),m(1989),m(7613),m(4655),m(4997),m(7417),m(5934),m(7199),m(8047),m(1381),m(1817),m(9754),m(9574),m(8124),m(230),m(2995),m(2181),m(5803),m(3928),m(9193),m(9733),m(5755),m(8744),m(1872),m(9982),m(7980),m(3368),m(1448),m(598),m(5772),m(2172),m(5136),m(600),m(69),m(7939),m(8345),m(1128),m(7943),m(7896),m(8324),m(1736),m(9473),m(8418),m(8180),m(3373),m(5313),m(1860),m(4376),m(2941),m(9762),m(5507),m(522),m(6278),m(7459),m(6269),m(1080),m(3634),m(4051),m(5161),m(5247),m(6776),m(7337),m(8),m(1405),m(5431),m(1986),m(454),m(2738),m(8201),m(7024),m(1434),m(492),m(6166),m(1730),m(7499),m(1281),m(523),m(9049),m(9061),m(9922),m(2769),m(1636),m(6044),m(9773),m(1798),m(6916),m(6694),m(9975),m(6193),m(7558),m(368);var U=m(4822);K.Subscription=U.Subscription,K.ReplaySubject=U.ReplaySubject,K.BehaviorSubject=U.BehaviorSubject,K.Notification=U.Notification,K.EmptyError=U.EmptyError,K.ArgumentOutOfRangeError=U.ArgumentOutOfRangeError,K.ObjectUnsubscribedError=U.ObjectUnsubscribedError,K.UnsubscriptionError=U.UnsubscriptionError,K.pipe=U.pipe;var R=m(9594);K.TestScheduler=R.TestScheduler;var P=m(4822);K.Subscriber=P.Subscriber,K.AsyncSubject=P.AsyncSubject,K.ConnectableObservable=P.ConnectableObservable,K.TimeoutError=P.TimeoutError,K.VirtualTimeScheduler=P.VirtualTimeScheduler;var E=m(8679);K.AjaxResponse=E.AjaxResponse,K.AjaxError=E.AjaxError,K.AjaxTimeoutError=E.AjaxTimeoutError;var D=m(4822),j=m(5718),L=m(5718);K.TimeInterval=L.TimeInterval,K.Timestamp=L.Timestamp;var v=m(6650);K.operators=v;var k={asap:D.asapScheduler,queue:D.queueScheduler,animationFrame:D.animationFrameScheduler,async:D.asyncScheduler};K.Scheduler=k;var b={rxSubscriber:j.rxSubscriber,observable:j.observable,iterator:j.iterator};K.Symbol=b},5010:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindCallback=G.bindCallback},9471:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.bindNodeCallback=G.bindNodeCallback},2687:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.combineLatest=G.combineLatest},2750:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.concat=G.concat},2977:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.defer=G.defer},8173:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8679);G.Observable.ajax=W.ajax},1357:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2301);G.Observable.webSocket=W.webSocket},2925:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.empty=G.empty},2231:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.forkJoin=G.forkJoin},1897:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.from=G.from},7026:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEvent=G.fromEvent},6187:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromEventPattern=G.fromEventPattern},1562:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.fromPromise=G.from},9470:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.generate=G.generate},4641:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.if=G.iif},3408:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.interval=G.interval},7975:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.merge=G.merge},3518:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);function W(){return G.NEVER}K.staticNever=W,G.Observable.never=W},1305:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.of=G.of},9566:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.onErrorResumeNext=G.onErrorResumeNext},6839:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.pairs=G.pairs},6034:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.race=G.race},1672:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.range=G.range},987:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.throw=G.throwError,G.Observable.throwError=G.throwError},8366:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.timer=G.timer},1216:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.using=G.using},5991:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);G.Observable.zip=G.zip},9982:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5641);G.Observable.prototype.audit=W.audit},7980:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4657);G.Observable.prototype.auditTime=W.auditTime},5615:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2792);G.Observable.prototype.buffer=W.buffer},3056:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1667);G.Observable.prototype.bufferCount=W.bufferCount},7551:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4283);G.Observable.prototype.bufferTime=W.bufferTime},2080:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1028);G.Observable.prototype.bufferToggle=W.bufferToggle},8273:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(188);G.Observable.prototype.bufferWhen=W.bufferWhen},5500:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8747);G.Observable.prototype.catch=W._catch,G.Observable.prototype._catch=W._catch},8413:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(572);G.Observable.prototype.combineAll=W.combineAll},39:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(648);G.Observable.prototype.combineLatest=W.combineLatest},2964:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9075);G.Observable.prototype.concat=W.concat},3569:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6979);G.Observable.prototype.concatAll=W.concatAll},2243:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3268);G.Observable.prototype.concatMap=W.concatMap},3768:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3382);G.Observable.prototype.concatMapTo=W.concatMapTo},1989:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3337);G.Observable.prototype.count=W.count},4655:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1066);G.Observable.prototype.debounce=W.debounce},4997:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9959);G.Observable.prototype.debounceTime=W.debounceTime},7417:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2448);G.Observable.prototype.defaultIfEmpty=W.defaultIfEmpty},5934:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5514);G.Observable.prototype.delay=W.delay},7199:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7607);G.Observable.prototype.delayWhen=W.delayWhen},7613:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5395);G.Observable.prototype.dematerialize=W.dematerialize},8047:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9440);G.Observable.prototype.distinct=W.distinct},1381:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3943);G.Observable.prototype.distinctUntilChanged=W.distinctUntilChanged},1817:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9749);G.Observable.prototype.distinctUntilKeyChanged=W.distinctUntilKeyChanged},9754:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6764);G.Observable.prototype.do=W._do,G.Observable.prototype._do=W._do},2995:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3833);G.Observable.prototype.elementAt=W.elementAt},598:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8648);G.Observable.prototype.every=W.every},9574:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(14);G.Observable.prototype.exhaust=W.exhaust},8124:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4768);G.Observable.prototype.exhaustMap=W.exhaustMap},230:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(326);G.Observable.prototype.expand=W.expand},2181:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1973);G.Observable.prototype.filter=W.filter},5803:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5032);G.Observable.prototype.finally=W._finally,G.Observable.prototype._finally=W._finally},3928:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8302);G.Observable.prototype.find=W.find},9193:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5286);G.Observable.prototype.findIndex=W.findIndex},9733:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9311);G.Observable.prototype.first=W.first},5755:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6595);G.Observable.prototype.groupBy=W.groupBy},8744:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5783);G.Observable.prototype.ignoreElements=W.ignoreElements},1872:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6866);G.Observable.prototype.isEmpty=W.isEmpty},3368:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1409);G.Observable.prototype.last=W.last},1448:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5953);G.Observable.prototype.let=W.letProto,G.Observable.prototype.letBind=W.letProto},5772:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8137);G.Observable.prototype.map=W.map},2172:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1234);G.Observable.prototype.mapTo=W.mapTo},5136:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2876);G.Observable.prototype.materialize=W.materialize},600:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8821);G.Observable.prototype.max=W.max},69:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2136);G.Observable.prototype.merge=W.merge},7939:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9883);G.Observable.prototype.mergeAll=W.mergeAll},8345:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(621);G.Observable.prototype.mergeMap=W.mergeMap,G.Observable.prototype.flatMap=W.mergeMap},1128:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6881);G.Observable.prototype.flatMapTo=W.mergeMapTo,G.Observable.prototype.mergeMapTo=W.mergeMapTo},7943:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8589);G.Observable.prototype.mergeScan=W.mergeScan},7896:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1348);G.Observable.prototype.min=W.min},8324:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6134);G.Observable.prototype.multicast=W.multicast},1736:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(386);G.Observable.prototype.observeOn=W.observeOn},9473:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8394);G.Observable.prototype.onErrorResumeNext=W.onErrorResumeNext},8418:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(400);G.Observable.prototype.pairwise=W.pairwise},8180:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1604);G.Observable.prototype.partition=W.partition},3373:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9782);G.Observable.prototype.pluck=W.pluck},5313:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7437);G.Observable.prototype.publish=W.publish},1860:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5990);G.Observable.prototype.publishBehavior=W.publishBehavior},2941:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4254);G.Observable.prototype.publishLast=W.publishLast},4376:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(397);G.Observable.prototype.publishReplay=W.publishReplay},9762:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9023);G.Observable.prototype.race=W.race},5507:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(345);G.Observable.prototype.reduce=W.reduce},522:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2085);G.Observable.prototype.repeat=W.repeat},6278:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3679);G.Observable.prototype.repeatWhen=W.repeatWhen},7459:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7080);G.Observable.prototype.retry=W.retry},6269:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9302);G.Observable.prototype.retryWhen=W.retryWhen},1080:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3266);G.Observable.prototype.sample=W.sample},3634:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(615);G.Observable.prototype.sampleTime=W.sampleTime},4051:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8305);G.Observable.prototype.scan=W.scan},5161:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1289);G.Observable.prototype.sequenceEqual=W.sequenceEqual},5247:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(896);G.Observable.prototype.share=W.share},6776:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4791);G.Observable.prototype.shareReplay=W.shareReplay},7337:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6462);G.Observable.prototype.single=W.single},8:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3458);G.Observable.prototype.skip=W.skip},1405:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(801);G.Observable.prototype.skipLast=W.skipLast},5431:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8249);G.Observable.prototype.skipUntil=W.skipUntil},1986:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9603);G.Observable.prototype.skipWhile=W.skipWhile},454:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(295);G.Observable.prototype.startWith=W.startWith},2738:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1112);G.Observable.prototype.subscribeOn=W.subscribeOn},8201:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(761);G.Observable.prototype.switch=W._switch,G.Observable.prototype._switch=W._switch},7024:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3573);G.Observable.prototype.switchMap=W.switchMap},1434:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2892);G.Observable.prototype.switchMapTo=W.switchMapTo},492:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7203);G.Observable.prototype.take=W.take},6166:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7579);G.Observable.prototype.takeLast=W.takeLast},1730:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1583);G.Observable.prototype.takeUntil=W.takeUntil},7499:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7694);G.Observable.prototype.takeWhile=W.takeWhile},1281:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9259);G.Observable.prototype.throttle=W.throttle},523:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(4630);G.Observable.prototype.throttleTime=W.throttleTime},9049:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3578);G.Observable.prototype.timeInterval=W.timeInterval},9061:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7945);G.Observable.prototype.timeout=W.timeout},9922:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(3060);G.Observable.prototype.timeoutWith=W.timeoutWith},2769:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1265);G.Observable.prototype.timestamp=W.timestamp},1636:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2561);G.Observable.prototype.toArray=W.toArray},6044:function(){},9773:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9766);G.Observable.prototype.window=W.window},1798:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(8227);G.Observable.prototype.windowCount=W.windowCount},6916:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(1868);G.Observable.prototype.windowTime=W.windowTime},6694:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(30);G.Observable.prototype.windowToggle=W.windowToggle},9975:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(9687);G.Observable.prototype.windowWhen=W.windowWhen},6193:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5196);G.Observable.prototype.withLatestFrom=W.withLatestFrom},7558:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(2357);G.Observable.prototype.zip=W.zipProto},368:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(7381);G.Observable.prototype.zipAll=W.zipAll},5641:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.audit=function W(A){return G.audit(A)(this)}},4657:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.auditTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.auditTime(U,R)(this)}},2792:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.buffer=function W(A){return G.buffer(A)(this)}},1667:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferCount=function W(A,U){return void 0===U&&(U=null),G.bufferCount(A,U)(this)}},4283:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.bufferTime=function U(R){var P=arguments.length,E=G.asyncScheduler;W.isScheduler(arguments[arguments.length-1])&&(E=arguments[arguments.length-1],P--);var D=null;P>=2&&(D=arguments[1]);var j=Number.POSITIVE_INFINITY;return P>=3&&(j=arguments[2]),A.bufferTime(R,D,j,E)(this)}},1028:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferToggle=function W(A,U){return G.bufferToggle(A,U)(this)}},188:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.bufferWhen=function W(A){return G.bufferWhen(A)(this)}},8747:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._catch=function W(A){return G.catchError(A)(this)}},572:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.combineAll=function W(A){return G.combineAll(A)(this)}},648:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718);K.combineLatest=function A(){for(var U=[],R=0;R<arguments.length;R++)U[R]=arguments[R];var P=null;return"function"==typeof U[U.length-1]&&(P=U.pop()),1===U.length&&W.isArray(U[0])&&(U=U[0].slice()),this.lift.call(G.of.apply(void 0,[this].concat(U)),new W.CombineLatestOperator(P))}},9075:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.concat=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.concat.apply(void 0,[this].concat(A)))}},6979:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatAll=function W(){return G.concatAll()(this)}},3268:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMap=function W(A){return G.concatMap(A)(this)}},3382:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.concatMapTo=function W(A){return G.concatMapTo(A)(this)}},3337:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.count=function W(A){return G.count(A)(this)}},1066:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.debounce=function W(A){return G.debounce(A)(this)}},9959:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.debounceTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.debounceTime(U,R)(this)}},2448:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.defaultIfEmpty=function W(A){return void 0===A&&(A=null),G.defaultIfEmpty(A)(this)}},5514:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.delay=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.delay(U,R)(this)}},7607:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.delayWhen=function W(A,U){return G.delayWhen(A,U)(this)}},5395:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.dematerialize=function W(){return G.dematerialize()(this)}},9440:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinct=function W(A,U){return G.distinct(A,U)(this)}},3943:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilChanged=function W(A,U){return G.distinctUntilChanged(A,U)(this)}},9749:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.distinctUntilKeyChanged=function W(A,U){return G.distinctUntilKeyChanged(A,U)(this)}},6764:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._do=function W(A,U,R){return G.tap(A,U,R)(this)}},3833:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.elementAt=function W(A,U){return G.elementAt.apply(void 0,arguments)(this)}},8648:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.every=function W(A,U){return G.every(A,U)(this)}},14:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaust=function W(){return G.exhaust()(this)}},4768:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.exhaustMap=function W(A){return G.exhaustMap(A)(this)}},326:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.expand=function W(A,U,R){return void 0===U&&(U=Number.POSITIVE_INFINITY),void 0===R&&(R=void 0),U=(U||0)<1?Number.POSITIVE_INFINITY:U,G.expand(A,U,R)(this)}},1973:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.filter=function W(A,U){return G.filter(A,U)(this)}},5032:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._finally=function W(A){return G.finalize(A)(this)}},8302:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.find=function W(A,U){return G.find(A,U)(this)}},5286:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.findIndex=function W(A,U){return G.findIndex(A,U)(this)}},9311:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.first=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.first.apply(void 0,A)(this)}},6595:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.groupBy=function W(A,U,R,P){return G.groupBy(A,U,R,P)(this)}},5783:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.ignoreElements=function W(){return G.ignoreElements()(this)}},6866:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.isEmpty=function W(){return G.isEmpty()(this)}},1409:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.last=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.last.apply(void 0,A)(this)}},5953:function(De,K){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),K.letProto=function m(G){return G(this)}},8137:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.map=function W(A,U){return G.map(A,U)(this)}},1234:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mapTo=function W(A){return G.mapTo(A)(this)}},2876:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.materialize=function W(){return G.materialize()(this)}},8821:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.max=function W(A){return G.max(A)(this)}},2136:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.merge=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.merge.apply(void 0,[this].concat(A)))}},9883:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeAll=function W(A){return void 0===A&&(A=Number.POSITIVE_INFINITY),G.mergeAll(A)(this)}},621:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMap=function W(A,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),G.mergeMap(A,U)(this)}},6881:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeMapTo=function W(A,U){return void 0===U&&(U=Number.POSITIVE_INFINITY),G.mergeMapTo(A,U)(this)}},8589:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.mergeScan=function W(A,U,R){return void 0===R&&(R=Number.POSITIVE_INFINITY),G.mergeScan(A,U,R)(this)}},1348:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.min=function W(A){return G.min(A)(this)}},6134:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.multicast=function W(A,U){return G.multicast(A,U)(this)}},386:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.observeOn=function W(A,U){return void 0===U&&(U=0),G.observeOn(A,U)(this)}},8394:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.onErrorResumeNext=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.onErrorResumeNext.apply(void 0,A)(this)}},400:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pairwise=function W(){return G.pairwise()(this)}},1604:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.partition=function W(A,U){return G.partition(A,U)(this)}},9782:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.pluck=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.pluck.apply(void 0,A)(this)}},7437:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publish=function W(A){return G.publish(A)(this)}},5990:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishBehavior=function W(A){return G.publishBehavior(A)(this)}},4254:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishLast=function W(){return G.publishLast()(this)}},397:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.publishReplay=function W(A,U,R,P){return G.publishReplay(A,U,R,P)(this)}},9023:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.race=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.race.apply(void 0,A)(this)}},345:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.reduce=function W(A,U){return arguments.length>=2?G.reduce(A,U)(this):G.reduce(A)(this)}},2085:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeat=function W(A){return void 0===A&&(A=-1),G.repeat(A)(this)}},3679:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.repeatWhen=function W(A){return G.repeatWhen(A)(this)}},7080:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retry=function W(A){return void 0===A&&(A=-1),G.retry(A)(this)}},9302:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.retryWhen=function W(A){return G.retryWhen(A)(this)}},3266:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sample=function W(A){return G.sample(A)(this)}},615:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.sampleTime=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.sampleTime(U,R)(this)}},8305:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.scan=function W(A,U){return arguments.length>=2?G.scan(A,U)(this):G.scan(A)(this)}},1289:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.sequenceEqual=function W(A,U){return G.sequenceEqual(A,U)(this)}},896:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.share=function W(){return G.share()(this)}},4791:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.shareReplay=function W(A,U,R){return A&&"object"==typeof A?G.shareReplay(A)(this):G.shareReplay(A,U,R)(this)}},6462:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.single=function W(A){return G.single(A)(this)}},3458:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skip=function W(A){return G.skip(A)(this)}},801:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipLast=function W(A){return G.skipLast(A)(this)}},8249:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipUntil=function W(A){return G.skipUntil(A)(this)}},9603:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.skipWhile=function W(A){return G.skipWhile(A)(this)}},295:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.startWith=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.startWith.apply(void 0,A)(this)}},1112:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.subscribeOn=function W(A,U){return void 0===U&&(U=0),G.subscribeOn(A,U)(this)}},761:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K._switch=function W(){return G.switchAll()(this)}},3573:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMap=function W(A){return G.switchMap(A)(this)}},2892:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.switchMapTo=function W(A){return G.switchMapTo(A)(this)}},7203:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.take=function W(A){return G.take(A)(this)}},7579:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeLast=function W(A){return G.takeLast(A)(this)}},1583:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeUntil=function W(A){return G.takeUntil(A)(this)}},7694:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.takeWhile=function W(A){return G.takeWhile(A)(this)}},9259:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650),W=m(5718);K.throttle=function A(U,R){return void 0===R&&(R=W.defaultThrottleConfig),G.throttle(U,R)(this)}},4630:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.throttleTime=function U(R,P,E){return void 0===P&&(P=G.asyncScheduler),void 0===E&&(E=W.defaultThrottleConfig),A.throttleTime(R,P,E)(this)}},3578:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeInterval=function A(U){return void 0===U&&(U=G.asyncScheduler),W.timeInterval(U)(this)}},7945:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeout=function A(U,R){return void 0===R&&(R=G.asyncScheduler),W.timeout(U,R)(this)}},3060:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timeoutWith=function A(U,R,P){return void 0===P&&(P=G.asyncScheduler),W.timeoutWith(U,R,P)(this)}},1265:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(6650);K.timestamp=function A(U){return void 0===U&&(U=G.asyncScheduler),W.timestamp(U)(this)}},2561:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.toArray=function W(){return G.toArray()(this)}},9766:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.window=function W(A){return G.window(A)(this)}},8227:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowCount=function W(A,U){return void 0===U&&(U=0),G.windowCount(A,U)(this)}},1868:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822),W=m(5718),A=m(6650);K.windowTime=function U(R){var P=G.asyncScheduler,E=null,D=Number.POSITIVE_INFINITY;return W.isScheduler(arguments[3])&&(P=arguments[3]),W.isScheduler(arguments[2])?P=arguments[2]:W.isNumeric(arguments[2])&&(D=Number(arguments[2])),W.isScheduler(arguments[1])?P=arguments[1]:W.isNumeric(arguments[1])&&(E=Number(arguments[1])),A.windowTime(R,E,D,P)(this)}},30:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowToggle=function W(A,U){return G.windowToggle(A,U)(this)}},9687:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.windowWhen=function W(A){return G.windowWhen(A)(this)}},5196:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.withLatestFrom=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return G.withLatestFrom.apply(void 0,A)(this)}},2357:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(4822);K.zipProto=function W(){for(var A=[],U=0;U<arguments.length;U++)A[U]=arguments[U];return this.lift.call(G.zip.apply(void 0,[this].concat(A)))}},7381:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0});var G=m(6650);K.zipAll=function W(A){return G.zipAll(A)(this)}},5887:function(De,K,m){"use strict";Object.defineProperty(K,"__esModule",{value:!0}),function G(W){for(var A in W)K.hasOwnProperty(A)||(K[A]=W[A])}(m(285))},8679:function(De,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return W.iM},AjaxResponse:function(){return W.vD},AjaxTimeoutError:function(){return W.cw},ajax:function(){return G.h}});var G=m(8059),W=m(8452)},4822:function(De,K,m){"use strict";m.r(K),m.d(K,{ArgumentOutOfRangeError:function(){return X.W},AsyncSubject:function(){return D.c},BehaviorSubject:function(){return P.X},ConnectableObservable:function(){return W.c},EMPTY:function(){return nt.E},EmptyError:function(){return $.K},GroupedObservable:function(){return A.T},NEVER:function(){return Ye},Notification:function(){return T.P},NotificationKind:function(){return T.W},ObjectUnsubscribedError:function(){return Y.N},Observable:function(){return G.y},ReplaySubject:function(){return E.t},Scheduler:function(){return O.b},Subject:function(){return R.xQ},Subscriber:function(){return y.L},Subscription:function(){return S.w},TimeoutError:function(){return ne.W},UnsubscriptionError:function(){return Q.B},VirtualAction:function(){return b.h},VirtualTimeScheduler:function(){return b.y},animationFrame:function(){return k.r},animationFrameScheduler:function(){return k.Z},asap:function(){return j.e},asapScheduler:function(){return j.E},async:function(){return L.P},asyncScheduler:function(){return L.z},bindCallback:function(){return me},bindNodeCallback:function(){return Tt},combineLatest:function(){return $t.aj},concat:function(){return Ft.z},config:function(){return st.v},defer:function(){return fn.P},empty:function(){return nt.c},forkJoin:function(){return Ot.D},from:function(){return _t.D},fromEvent:function(){return Ct.R},fromEventPattern:function(){return lt},generate:function(){return dt},identity:function(){return N.y},iif:function(){return B},interval:function(){return H.F},isObservable:function(){return F.b},merge:function(){return tt.T},never:function(){return ge},noop:function(){return x.Z},observable:function(){return U.L},of:function(){return t.of},onErrorResumeNext:function(){return Dt},pairs:function(){return Zt},partition:function(){return Kt},pipe:function(){return M.z},queue:function(){return v.c},queueScheduler:function(){return v.N},race:function(){return Xt.S3},range:function(){return Je.w},scheduled:function(){return Ne.x},throwError:function(){return Be._},timer:function(){return te.H},using:function(){return ye},zip:function(){return fe.$R}});var G=m(7451),W=m(1762),A=m(4002),U=m(3821),R=m(8929),P=m(591),E=m(839),D=m(2185),j=m(9931),L=m(353),v=m(341),k=m(352),b=m(9027),O=m(2221),S=m(4096),y=m(3489),T=m(9312),M=m(4843),x=m(7876),N=m(5379),F=m(4715),X=m(4231),$=m(4450),Y=m(5279),Q=m(7964),ne=m(854),be=m(4902),pe=m(4850),de=m(9476),le=m(6688),ce=m(2866);function me(ct,Bt,jt){if(Bt){if(!(0,ce.K)(Bt))return function(){return me(ct,jt).apply(void 0,arguments).pipe((0,pe.U)(function(on){return(0,le.k)(on)?Bt.apply(void 0,(0,be.Z)(on)):Bt(on)}))};jt=Bt}return function(){for(var on=arguments.length,vn=new Array(on),ln=0;ln<on;ln++)vn[ln]=arguments[ln];var hn,En=this,mn={context:En,subject:hn,callbackFunc:ct,scheduler:jt};return new G.y(function(At){if(jt){var et={args:vn,subscriber:At,params:mn};return jt.schedule(je,0,et)}if(!hn){hn=new D.c;try{ct.apply(En,[].concat(vn,[function(){for(var ze=arguments.length,Ke=new Array(ze),Re=0;Re<ze;Re++)Ke[Re]=arguments[Re];hn.next(Ke.length<=1?Ke[0]:Ke),hn.complete()}]))}catch(St){(0,de._)(hn)?hn.error(St):console.warn(St)}}return hn.subscribe(At)})}}function je(ct){var Bt=this,on=ct.args,vn=ct.subscriber,ln=ct.params,En=ln.callbackFunc,hn=ln.context,mn=ln.scheduler,At=ln.subject;if(!At){At=ln.subject=new D.c;try{En.apply(hn,[].concat((0,be.Z)(on),[function(){for(var St=arguments.length,ze=new Array(St),Ke=0;Ke<St;Ke++)ze[Ke]=arguments[Ke];var Re=ze.length<=1?ze[0]:ze;Bt.add(mn.schedule(at,0,{value:Re,subject:At}))}]))}catch(et){At.error(et)}}this.add(At.subscribe(vn))}function at(ct){var Bt=ct.value,jt=ct.subject;jt.next(Bt),jt.complete()}function Tt(ct,Bt,jt){if(Bt){if(!(0,ce.K)(Bt))return function(){return Tt(ct,jt).apply(void 0,arguments).pipe((0,pe.U)(function(on){return(0,le.k)(on)?Bt.apply(void 0,(0,be.Z)(on)):Bt(on)}))};jt=Bt}return function(){for(var on=arguments.length,vn=new Array(on),ln=0;ln<on;ln++)vn[ln]=arguments[ln];var En={subject:void 0,args:vn,callbackFunc:ct,scheduler:jt,context:this};return new G.y(function(hn){var mn=En.context,At=En.subject;if(jt)return jt.schedule(xt,0,{params:En,subscriber:hn,context:mn});if(!At){At=En.subject=new D.c;try{ct.apply(mn,[].concat(vn,[function(){for(var St=arguments.length,ze=new Array(St),Ke=0;Ke<St;Ke++)ze[Ke]=arguments[Ke];var Re=ze.shift();Re?At.error(Re):(At.next(ze.length<=1?ze[0]:ze),At.complete())}]))}catch(et){(0,de._)(At)?At.error(et):console.warn(et)}}return At.subscribe(hn)})}}function xt(ct){var Bt=this,jt=ct.params,on=ct.subscriber,vn=ct.context,ln=jt.callbackFunc,En=jt.args,hn=jt.scheduler,mn=jt.subject;if(!mn){mn=jt.subject=new D.c;try{ln.apply(vn,[].concat((0,be.Z)(En),[function(){for(var et=arguments.length,St=new Array(et),ze=0;ze<et;ze++)St[ze]=arguments[ze];var Ke=St.shift();if(Ke)Bt.add(hn.schedule(Ze,0,{err:Ke,subject:mn}));else{var Re=St.length<=1?St[0]:St;Bt.add(hn.schedule(Lt,0,{value:Re,subject:mn}))}}]))}catch(Et){this.add(hn.schedule(Ze,0,{err:Et,subject:mn}))}}this.add(mn.subscribe(on))}function Lt(ct){var Bt=ct.value,jt=ct.subject;jt.next(Bt),jt.complete()}function Ze(ct){var Bt=ct.err;ct.subject.error(Bt)}var $t=m(6053),Ft=m(1961),fn=m(8514),nt=m(8896),Ot=m(567),_t=m(3527),Ct=m(3753),We=m(7043);function lt(ct,Bt,jt){return jt?lt(ct,Bt).pipe((0,pe.U)(function(on){return(0,le.k)(on)?jt.apply(void 0,(0,be.Z)(on)):jt(on)})):new G.y(function(on){var ln,vn=function(){for(var hn=arguments.length,mn=new Array(hn),At=0;At<hn;At++)mn[At]=arguments[At];return on.next(1===mn.length?mn[0]:mn)};try{ln=ct(vn)}catch(En){return void on.error(En)}if((0,We.m)(Bt))return function(){return Bt(vn,ln)}})}function dt(ct,Bt,jt,on,vn){var ln,En;if(1==arguments.length){var hn=ct;En=hn.initialState,Bt=hn.condition,jt=hn.iterate,ln=hn.resultSelector||N.y,vn=hn.scheduler}else void 0===on||(0,ce.K)(on)?(En=ct,ln=N.y,vn=on):(En=ct,ln=on);return new G.y(function(mn){var At=En;if(vn)return vn.schedule(Ut,0,{subscriber:mn,iterate:jt,condition:Bt,resultSelector:ln,state:At});for(;;){if(Bt){var Et=void 0;try{Et=Bt(At)}catch(St){return void mn.error(St)}if(!Et){mn.complete();break}}var et=void 0;try{et=ln(At)}catch(St){return void mn.error(St)}if(mn.next(et),mn.closed)break;try{At=jt(At)}catch(St){return void mn.error(St)}}})}function Ut(ct){var Bt=ct.subscriber,jt=ct.condition;if(!Bt.closed){if(ct.needIterate)try{ct.state=ct.iterate(ct.state)}catch(ln){return void Bt.error(ln)}else ct.needIterate=!0;if(jt){var on;try{on=jt(ct.state)}catch(ln){return void Bt.error(ln)}if(!on)return void Bt.complete();if(Bt.closed)return}var vn;try{vn=ct.resultSelector(ct.state)}catch(ln){return void Bt.error(ln)}if(!Bt.closed&&(Bt.next(vn),!Bt.closed))return this.schedule(ct)}}function B(ct){var Bt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nt.E,jt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nt.E;return(0,fn.P)(function(){return ct()?Bt:jt})}var H=m(1715),tt=m(6787),Ye=new G.y(x.Z);function ge(){return Ye}var t=m(1086);function Dt(){for(var ct=arguments.length,Bt=new Array(ct),jt=0;jt<ct;jt++)Bt[jt]=arguments[jt];if(0===Bt.length)return nt.E;var on=Bt[0],vn=Bt.slice(1);return 1===Bt.length&&(0,le.k)(on)?Dt.apply(void 0,(0,be.Z)(on)):new G.y(function(ln){var En=function(){return ln.add(Dt.apply(void 0,(0,be.Z)(vn)).subscribe(ln))};return(0,_t.D)(on).subscribe({next:function(mn){ln.next(mn)},error:En,complete:En})})}function Zt(ct,Bt){return Bt?new G.y(function(jt){var on=Object.keys(ct),vn=new S.w;return vn.add(Bt.schedule(zt,0,{keys:on,index:0,subscriber:jt,subscription:vn,obj:ct})),vn}):new G.y(function(jt){for(var on=Object.keys(ct),vn=0;vn<on.length&&!jt.closed;vn++){var ln=on[vn];ct.hasOwnProperty(ln)&&jt.next([ln,ct[ln]])}jt.complete()})}function zt(ct){var Bt=ct.keys,jt=ct.index,on=ct.subscriber,vn=ct.subscription,ln=ct.obj;if(!on.closed)if(jt<Bt.length){var En=Bt[jt];on.next([En,ln[En]]),vn.add(this.schedule({keys:Bt,index:jt+1,subscriber:on,subscription:vn,obj:ln}))}else on.complete()}var sn=m(5884),qt=m(3071),yn=m(9664);function Kt(ct,Bt,jt){return[(0,yn.h)(Bt,jt)(new G.y((0,qt.s)(ct))),(0,yn.h)((0,sn.f)(Bt,jt))(new G.y((0,qt.s)(ct)))]}var Xt=m(1946),Je=m(3103),Be=m(1737),te=m(8723);function ye(ct,Bt){return new G.y(function(jt){var on,vn;try{on=ct()}catch(hn){return void jt.error(hn)}try{vn=Bt(on)}catch(hn){return void jt.error(hn)}var En=(vn?(0,_t.D)(vn):nt.E).subscribe(jt);return function(){En.unsubscribe(),on&&on.unsubscribe()}})}var fe=m(1746),Ne=m(6266),st=m(2830)},5718:function(De,K,m){"use strict";m.r(K),m.d(K,{AjaxError:function(){return T.iM},AjaxObservable:function(){return T.i6},AjaxResponse:function(){return T.vD},AjaxSubscriber:function(){return T.de},AjaxTimeoutError:function(){return T.cw},AnonymousSubject:function(){return R.ug},ArgumentOutOfRangeError:function(){return de.W},CombineLatestOperator:function(){return x.Ms},EmptyError:function(){return le.K},GroupedObservable:function(){return Y.T},Immediate:function(){return ce.H},InnerSubscriber:function(){return W.d},ObjectUnsubscribedError:function(){return me.N},OuterSubscriber:function(){return A.L},Scheduler:function(){return U.b},SubjectSubscription:function(){return P.W},SubscribeOnObservable:function(){return F.e},Subscriber:function(){return E.L},TimeInterval:function(){return $.R},TimeoutError:function(){return je.W},Timestamp:function(){return X.E},UnsubscriptionError:function(){return at.B},WebSocketSubject:function(){return M.p},ajax:function(){return S.h},ajaxDelete:function(){return T._c},ajaxGet:function(){return T.Ck},ajaxGetJSON:function(){return T.uX},ajaxPatch:function(){return T.YB},ajaxPost:function(){return T.tB},ajaxPut:function(){return T.Vk},applyMixins:function(){return Mt.e},config:function(){return G.v},defaultThrottleConfig:function(){return Q.d},dispatch:function(){return N.W},errorObject:function(){return Tt},fromIterable:function(){return O},fromPromise:function(){return v},hostReportError:function(){return xt.z},identity:function(){return Lt.y},isArray:function(){return Ze.k},isArrayLike:function(){return $t.z},isDate:function(){return Ft.J},isFunction:function(){return fn.m},isIterable:function(){return nt.T},isNumeric:function(){return Ot.k},isObject:function(){return _t.K},isObservable:function(){return Ct.c},isPromise:function(){return We.t},isScheduler:function(){return lt.K},iterator:function(){return be.hZ},noop:function(){return dt.Z},not:function(){return Ut.f},observable:function(){return pe.L},pipe:function(){return B.z},root:function(){return H.J},rxSubscriber:function(){return ne.b},subscribeTo:function(){return tt.s},subscribeToArray:function(){return Ye.V},subscribeToIterable:function(){return k.u},subscribeToObservable:function(){return ge.h},subscribeToPromise:function(){return j.A},subscribeToResult:function(){return t.D},toSubscriber:function(){return Dt.Y},tryCatch:function(){return sn},webSocket:function(){return y.j}});var G=m(2830),W=m(1869),A=m(826),U=m(2221),R=m(8929),P=m(5283),E=m(3489),D=m(7451),j=m(3445),L=m(8687);function v(qt,yn){return yn?(0,L.c)(qt,yn):new D.y((0,j.A)(qt))}var k=m(3720),b=m(6389);function O(qt,yn){if(!qt)throw new Error("Iterable cannot be null");return yn?(0,b.Q)(qt,yn):new D.y((0,k.u)(qt))}var Zt,S=m(8059),y=m(7623),T=m(8452),M=m(2741),x=m(6053),N=m(3103),F=m(3837),X=m(7781),$=m(3485),Y=m(4002),Q=m(2444),ne=m(7668),be=m(5430),pe=m(3821),de=m(4231),le=m(4450),ce=m(1450),me=m(5279),je=m(854),at=m(7964),Mt=m(5128),Tt={e:{}},xt=m(2782),Lt=m(5379),Ze=m(6688),$t=m(8515),Ft=m(2697),fn=m(7043),nt=m(2198),Ot=m(4241),_t=m(7830),Ct=m(8845),We=m(8955),lt=m(2866),dt=m(7876),Ut=m(5884),B=m(4843),H=m(797),tt=m(3071),Ye=m(3650),ge=m(1810),t=m(9054),Dt=m(5221);function zt(){Tt.e=void 0;try{return Zt.apply(this,arguments)}catch(qt){return Tt.e=qt,Tt}finally{Zt=void 0}}function sn(qt){return Zt=qt,zt}},2185:function(De,K,m){"use strict";m.d(K,{c:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(4096),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(){var b;return(0,G.Z)(this,k),(b=v.apply(this,arguments)).value=null,b.hasNext=!1,b.hasCompleted=!1,b}return(0,W.Z)(k,[{key:"_subscribe",value:function(O){return this.hasError?(O.error(this.thrownError),D.w.EMPTY):this.hasCompleted&&this.hasNext?(O.next(this.value),O.complete(),D.w.EMPTY):(0,A.Z)((0,U.Z)(k.prototype),"_subscribe",this).call(this,O)}},{key:"next",value:function(O){this.hasCompleted||(this.value=O,this.hasNext=!0)}},{key:"error",value:function(O){this.hasCompleted||(0,A.Z)((0,U.Z)(k.prototype),"error",this).call(this,O)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&(0,A.Z)((0,U.Z)(k.prototype),"next",this).call(this,this.value),(0,A.Z)((0,U.Z)(k.prototype),"complete",this).call(this)}}]),k}(E.xQ)},591:function(De,K,m){"use strict";m.d(K,{X:function(){return j}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(5279),j=function(L){(0,R.Z)(k,L);var v=(0,P.Z)(k);function k(b){var O;return(0,G.Z)(this,k),(O=v.call(this))._value=b,O}return(0,W.Z)(k,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(O){var S=(0,A.Z)((0,U.Z)(k.prototype),"_subscribe",this).call(this,O);return S&&!S.closed&&O.next(this._value),S}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new D.N;return this._value}},{key:"next",value:function(O){(0,A.Z)((0,U.Z)(k.prototype),"next",this).call(this,this._value=O)}}]),k}(E.xQ)},1869:function(De,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(L,v,k){var b;return(0,G.Z)(this,j),(b=D.call(this)).parent=L,b.outerValue=v,b.outerIndex=k,b.index=0,b}return(0,W.Z)(j,[{key:"_next",value:function(v){this.parent.notifyNext(this.outerValue,v,this.outerIndex,this.index++,this)}},{key:"_error",value:function(v){this.parent.notifyError(v,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),j}(m(3489).L)},9312:function(De,K,m){"use strict";m.d(K,{P:function(){return E},W:function(){return P}});var P,D,G=m(5671),W=m(3144),A=m(8896),U=m(1086),R=m(1737);(D=P||(P={})).NEXT="N",D.ERROR="E",D.COMPLETE="C";var E=function(){function D(j,L,v){(0,G.Z)(this,D),this.kind=j,this.value=L,this.error=v,this.hasValue="N"===j}return(0,W.Z)(D,[{key:"observe",value:function(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}},{key:"do",value:function(L,v,k){switch(this.kind){case"N":return L&&L(this.value);case"E":return v&&v(this.error);case"C":return k&&k()}}},{key:"accept",value:function(L,v,k){return L&&"function"==typeof L.next?this.observe(L):this.do(L,v,k)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return(0,U.of)(this.value);case"E":return(0,R._)(this.error);case"C":return(0,A.c)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(L){return void 0!==L?new D("N",L):D.undefinedValueNotification}},{key:"createError",value:function(L){return new D("E",void 0,L)}},{key:"createComplete",value:function(){return D.completeNotification}}]),D}();E.completeNotification=new E("C"),E.undefinedValueNotification=new E("N",void 0)},7451:function(De,K,m){"use strict";m.d(K,{y:function(){return D}});var G=m(5671),W=m(3144),A=m(9476),U=m(5221),R=m(3821),P=m(4843),E=m(2830),D=function(){function L(v){(0,G.Z)(this,L),this._isScalar=!1,v&&(this._subscribe=v)}return(0,W.Z)(L,[{key:"lift",value:function(k){var b=new L;return b.source=this,b.operator=k,b}},{key:"subscribe",value:function(k,b,O){var S=this.operator,y=(0,U.Y)(k,b,O);if(S?y.add(S.call(y,this.source)):y.add(this.source||E.v.useDeprecatedSynchronousErrorHandling&&!y.syncErrorThrowable?this._subscribe(y):this._trySubscribe(y)),E.v.useDeprecatedSynchronousErrorHandling&&y.syncErrorThrowable&&(y.syncErrorThrowable=!1,y.syncErrorThrown))throw y.syncErrorValue;return y}},{key:"_trySubscribe",value:function(k){try{return this._subscribe(k)}catch(b){E.v.useDeprecatedSynchronousErrorHandling&&(k.syncErrorThrown=!0,k.syncErrorValue=b),(0,A._)(k)?k.error(b):console.warn(b)}}},{key:"forEach",value:function(k,b){var O=this;return new(b=j(b))(function(S,y){var T;T=O.subscribe(function(M){try{k(M)}catch(x){y(x),T&&T.unsubscribe()}},y,S)})}},{key:"_subscribe",value:function(k){var b=this.source;return b&&b.subscribe(k)}},{key:R.L,value:function(){return this}},{key:"pipe",value:function(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];return 0===b.length?this:(0,P.U)(b)(this)}},{key:"toPromise",value:function(k){var b=this;return new(k=j(k))(function(O,S){var y;b.subscribe(function(T){return y=T},function(T){return S(T)},function(){return O(y)})})}}]),L}();function j(L){if(L||(L=E.v.Promise||Promise),!L)throw new Error("no Promise impl found");return L}D.create=function(L){return new D(L)}},3292:function(De,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(2830),W=m(2782),A={closed:!0,next:function(R){},error:function(R){if(G.v.useDeprecatedSynchronousErrorHandling)throw R;(0,W.z)(R)},complete:function(){}}},826:function(De,K,m){"use strict";m.d(K,{L:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(){return(0,G.Z)(this,j),D.apply(this,arguments)}return(0,W.Z)(j,[{key:"notifyNext",value:function(v,k,b,O,S){this.destination.next(k)}},{key:"notifyError",value:function(v,k){this.destination.error(v)}},{key:"notifyComplete",value:function(v){this.destination.complete()}}]),j}(m(3489).L)},839:function(De,K,m){"use strict";m.d(K,{t:function(){return b}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(341),j=m(4096),L=m(7770),v=m(5279),k=m(5283),b=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(){var M,x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,F=arguments.length>2?arguments[2]:void 0;return(0,G.Z)(this,T),(M=y.call(this)).scheduler=F,M._events=[],M._infiniteTimeWindow=!1,M._bufferSize=x<1?1:x,M._windowTime=N<1?1:N,N===Number.POSITIVE_INFINITY?(M._infiniteTimeWindow=!0,M.next=M.nextInfiniteTimeWindow):M.next=M.nextTimeWindow,M}return(0,W.Z)(T,[{key:"nextInfiniteTimeWindow",value:function(x){if(!this.isStopped){var N=this._events;N.push(x),N.length>this._bufferSize&&N.shift()}(0,A.Z)((0,U.Z)(T.prototype),"next",this).call(this,x)}},{key:"nextTimeWindow",value:function(x){this.isStopped||(this._events.push(new O(this._getNow(),x)),this._trimBufferThenGetEvents()),(0,A.Z)((0,U.Z)(T.prototype),"next",this).call(this,x)}},{key:"_subscribe",value:function(x){var Y,N=this._infiniteTimeWindow,F=N?this._events:this._trimBufferThenGetEvents(),X=this.scheduler,$=F.length;if(this.closed)throw new v.N;if(this.isStopped||this.hasError?Y=j.w.EMPTY:(this.observers.push(x),Y=new k.W(this,x)),X&&x.add(x=new L.ht(x,X)),N)for(var Q=0;Q<$&&!x.closed;Q++)x.next(F[Q]);else for(var ne=0;ne<$&&!x.closed;ne++)x.next(F[ne].value);return this.hasError?x.error(this.thrownError):this.isStopped&&x.complete(),Y}},{key:"_getNow",value:function(){return(this.scheduler||D.c).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var x=this._getNow(),N=this._bufferSize,F=this._windowTime,X=this._events,$=X.length,Y=0;Y<$&&!(x-X[Y].time<F);)Y++;return $>N&&(Y=Math.max(Y,$-N)),Y>0&&X.splice(0,Y),X}}]),T}(E.xQ),O=(0,W.Z)(function S(y,T){(0,G.Z)(this,S),this.time=y,this.value=T})},2221:function(De,K,m){"use strict";m.d(K,{b:function(){return A}});var G=m(5671),W=m(3144),A=function(){function U(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.now;(0,G.Z)(this,U),this.SchedulerAction=R,this.now=P}return(0,W.Z)(U,[{key:"schedule",value:function(P){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,P).schedule(D,E)}}]),U}();A.now=function(){return Date.now()}},8929:function(De,K,m){"use strict";m.d(K,{Yc:function(){return b},ug:function(){return S},xQ:function(){return O}});var G=m(3237),W=m(1120),A=m(3144),U=m(5671),R=m(136),P=m(9388),E=m(7451),D=m(3489),j=m(4096),L=m(5279),v=m(5283),k=m(7668),b=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(x){var N;return(0,U.Z)(this,M),(N=T.call(this,x)).destination=x,N}return(0,A.Z)(M)}(D.L),O=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(){var x;return(0,U.Z)(this,M),(x=T.call(this)).observers=[],x.closed=!1,x.isStopped=!1,x.hasError=!1,x.thrownError=null,x}return(0,A.Z)(M,[{key:k.b,value:function(){return new b(this)}},{key:"lift",value:function(N){var F=new S(this,this);return F.operator=N,F}},{key:"next",value:function(N){if(this.closed)throw new L.N;if(!this.isStopped)for(var F=this.observers,X=F.length,$=F.slice(),Y=0;Y<X;Y++)$[Y].next(N)}},{key:"error",value:function(N){if(this.closed)throw new L.N;this.hasError=!0,this.thrownError=N,this.isStopped=!0;for(var F=this.observers,X=F.length,$=F.slice(),Y=0;Y<X;Y++)$[Y].error(N);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new L.N;this.isStopped=!0;for(var N=this.observers,F=N.length,X=N.slice(),$=0;$<F;$++)X[$].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(N){if(this.closed)throw new L.N;return(0,G.Z)((0,W.Z)(M.prototype),"_trySubscribe",this).call(this,N)}},{key:"_subscribe",value:function(N){if(this.closed)throw new L.N;return this.hasError?(N.error(this.thrownError),j.w.EMPTY):this.isStopped?(N.complete(),j.w.EMPTY):(this.observers.push(N),new v.W(this,N))}},{key:"asObservable",value:function(){var N=new E.y;return N.source=this,N}}]),M}(E.y);O.create=function(y,T){return new S(y,T)};var S=function(y){(0,R.Z)(M,y);var T=(0,P.Z)(M);function M(x,N){var F;return(0,U.Z)(this,M),(F=T.call(this)).destination=x,F.source=N,F}return(0,A.Z)(M,[{key:"next",value:function(N){var F=this.destination;F&&F.next&&F.next(N)}},{key:"error",value:function(N){var F=this.destination;F&&F.error&&this.destination.error(N)}},{key:"complete",value:function(){var N=this.destination;N&&N.complete&&this.destination.complete()}},{key:"_subscribe",value:function(N){return this.source?this.source.subscribe(N):j.w.EMPTY}}]),M}(O)},5283:function(De,K,m){"use strict";m.d(K,{W:function(){return P}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(E){(0,A.Z)(j,E);var D=(0,U.Z)(j);function j(L,v){var k;return(0,G.Z)(this,j),(k=D.call(this)).subject=L,k.subscriber=v,k.closed=!1,k}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var v=this.subject,k=v.observers;if(this.subject=null,k&&0!==k.length&&!v.isStopped&&!v.closed){var b=k.indexOf(this.subscriber);-1!==b&&k.splice(b,1)}}}}]),j}(m(4096).w)},3489:function(De,K,m){"use strict";m.d(K,{L:function(){return O}});var G=m(5671),W=m(3144),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(7043),j=m(3292),L=m(4096),v=m(7668),k=m(2830),b=m(2782),O=function(y){(0,P.Z)(M,y);var T=(0,E.Z)(M);function M(x,N,F){var X;switch((0,G.Z)(this,M),(X=T.call(this)).syncErrorValue=null,X.syncErrorThrown=!1,X.syncErrorThrowable=!1,X.isStopped=!1,arguments.length){case 0:X.destination=j.c;break;case 1:if(!x){X.destination=j.c;break}if("object"==typeof x){x instanceof M?(X.syncErrorThrowable=x.syncErrorThrowable,X.destination=x,x.add((0,A.Z)(X))):(X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),x));break}default:X.syncErrorThrowable=!0,X.destination=new S((0,A.Z)(X),x,N,F)}return X}return(0,W.Z)(M,[{key:v.b,value:function(){return this}},{key:"next",value:function(N){this.isStopped||this._next(N)}},{key:"error",value:function(N){this.isStopped||(this.isStopped=!0,this._error(N))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,(0,U.Z)((0,R.Z)(M.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(N){this.destination.next(N)}},{key:"_error",value:function(N){this.destination.error(N),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var N=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=N,this}}],[{key:"create",value:function(N,F,X){var $=new M(N,F,X);return $.syncErrorThrowable=!1,$}}]),M}(L.w),S=function(y){(0,P.Z)(M,y);var T=(0,E.Z)(M);function M(x,N,F,X){var $;(0,G.Z)(this,M),($=T.call(this))._parentSubscriber=x;var Y,Q=(0,A.Z)($);return(0,D.m)(N)?Y=N:N&&(Y=N.next,F=N.error,X=N.complete,N!==j.c&&(Q=Object.create(N),(0,D.m)(Q.unsubscribe)&&$.add(Q.unsubscribe.bind(Q)),Q.unsubscribe=$.unsubscribe.bind((0,A.Z)($)))),$._context=Q,$._next=Y,$._error=F,$._complete=X,$}return(0,W.Z)(M,[{key:"next",value:function(N){if(!this.isStopped&&this._next){var F=this._parentSubscriber;k.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?this.__tryOrSetError(F,this._next,N)&&this.unsubscribe():this.__tryOrUnsub(this._next,N)}}},{key:"error",value:function(N){if(!this.isStopped){var F=this._parentSubscriber,X=k.v.useDeprecatedSynchronousErrorHandling;if(this._error)X&&F.syncErrorThrowable?(this.__tryOrSetError(F,this._error,N),this.unsubscribe()):(this.__tryOrUnsub(this._error,N),this.unsubscribe());else if(F.syncErrorThrowable)X?(F.syncErrorValue=N,F.syncErrorThrown=!0):(0,b.z)(N),this.unsubscribe();else{if(this.unsubscribe(),X)throw N;(0,b.z)(N)}}}},{key:"complete",value:function(){var N=this;if(!this.isStopped){var F=this._parentSubscriber;if(this._complete){var X=function(){return N._complete.call(N._context)};k.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,X),this.unsubscribe()):(this.__tryOrUnsub(X),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(N,F){try{N.call(this._context,F)}catch(X){if(this.unsubscribe(),k.v.useDeprecatedSynchronousErrorHandling)throw X;(0,b.z)(X)}}},{key:"__tryOrSetError",value:function(N,F,X){if(!k.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{F.call(this._context,X)}catch($){return k.v.useDeprecatedSynchronousErrorHandling?(N.syncErrorValue=$,N.syncErrorThrown=!0,!0):((0,b.z)($),!0)}return!1}},{key:"_unsubscribe",value:function(){var N=this._parentSubscriber;this._context=null,this._parentSubscriber=null,N.unsubscribe()}}]),M}(O)},4096:function(De,K,m){"use strict";m.d(K,{w:function(){return E}});var j,G=m(5671),W=m(3144),A=m(6688),U=m(7830),R=m(7043),P=m(7964),E=function(){function j(L){(0,G.Z)(this,j),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,L&&(this._ctorUnsubscribe=!0,this._unsubscribe=L)}return(0,W.Z)(j,[{key:"unsubscribe",value:function(){var v;if(!this.closed){var k=this._parentOrParents,b=this._ctorUnsubscribe,O=this._unsubscribe,S=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,k instanceof j)k.remove(this);else if(null!==k)for(var y=0;y<k.length;++y){k[y].remove(this)}if((0,R.m)(O)){b&&(this._unsubscribe=void 0);try{O.call(this)}catch(F){v=F instanceof P.B?D(F.errors):[F]}}if((0,A.k)(S))for(var M=-1,x=S.length;++M<x;){var N=S[M];if((0,U.K)(N))try{N.unsubscribe()}catch(F){v=v||[],F instanceof P.B?v=v.concat(D(F.errors)):v.push(F)}}if(v)throw new P.B(v)}}},{key:"add",value:function(v){var k=v;if(!v)return j.EMPTY;switch(typeof v){case"function":k=new j(v);case"object":if(k===this||k.closed||"function"!=typeof k.unsubscribe)return k;if(this.closed)return k.unsubscribe(),k;if(!(k instanceof j)){var b=k;(k=new j)._subscriptions=[b]}break;default:throw new Error("unrecognized teardown "+v+" added to Subscription.")}var S=k._parentOrParents;if(null===S)k._parentOrParents=this;else if(S instanceof j){if(S===this)return k;k._parentOrParents=[S,this]}else{if(-1!==S.indexOf(this))return k;S.push(this)}var y=this._subscriptions;return null===y?this._subscriptions=[k]:y.push(k),k}},{key:"remove",value:function(v){var k=this._subscriptions;if(k){var b=k.indexOf(v);-1!==b&&k.splice(b,1)}}}]),j}();function D(j){return j.reduce(function(L,v){return L.concat(v instanceof P.B?v.errors:v)},[])}E.EMPTY=((j=new E).closed=!0,j)},2830:function(De,K,m){"use strict";m.d(K,{v:function(){return W}});var G=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(A){if(A){var U=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+U.stack)}else G&&console.log("RxJS: Back to a better error behavior. Thank you. <3");G=A},get useDeprecatedSynchronousErrorHandling(){return G}}},1177:function(De,K,m){"use strict";m.d(K,{Ds:function(){return L},IY:function(){return D},ft:function(){return k}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(3489),P=m(7451),E=m(3071),D=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(y){var T;return(0,G.Z)(this,S),(T=O.call(this)).parent=y,T}return(0,W.Z)(S,[{key:"_next",value:function(T){this.parent.notifyNext(T)}},{key:"_error",value:function(T){this.parent.notifyError(T),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),S}(R.L),L=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"notifyNext",value:function(T){this.destination.next(T)}},{key:"notifyError",value:function(T){this.destination.error(T)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),S}(R.L);function k(b,O){if(!O.closed){if(b instanceof P.y)return b.subscribe(O);var S;try{S=(0,E.s)(b)(O)}catch(y){O.error(y)}return S}}},1762:function(De,K,m){"use strict";m.d(K,{N:function(){return b},c:function(){return k}});var T,G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(8929),D=m(7451),j=m(3489),L=m(4096),v=m(4327),k=function(T){(0,R.Z)(x,T);var M=(0,P.Z)(x);function x(N,F){var X;return(0,A.Z)(this,x),(X=M.call(this)).source=N,X.subjectFactory=F,X._refCount=0,X._isComplete=!1,X}return(0,U.Z)(x,[{key:"_subscribe",value:function(F){return this.getSubject().subscribe(F)}},{key:"getSubject",value:function(){var F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var F=this._connection;return F||(this._isComplete=!1,(F=this._connection=new L.w).add(this.source.subscribe(new O(this.getSubject(),this))),F.closed&&(this._connection=null,F=L.w.EMPTY)),F}},{key:"refCount",value:function(){return(0,v.x)()(this)}}]),x}(D.y),b={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(T=k.prototype)._subscribe},_isComplete:{value:T._isComplete,writable:!0},getSubject:{value:T.getSubject},connect:{value:T.connect},refCount:{value:T.refCount}},O=function(T){(0,R.Z)(x,T);var M=(0,P.Z)(x);function x(N,F){var X;return(0,A.Z)(this,x),(X=M.call(this,N)).connectable=F,X}return(0,U.Z)(x,[{key:"_error",value:function(F){this._unsubscribe(),(0,G.Z)((0,W.Z)(x.prototype),"_error",this).call(this,F)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),(0,G.Z)((0,W.Z)(x.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var F=this.connectable;if(F){this.connectable=null;var X=F._connection;F._refCount=0,F._subject=null,F._connection=null,X&&X.unsubscribe()}}}]),x}(E.Yc);j.L},3837:function(De,K,m){"use strict";m.d(K,{e:function(){return D}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),R=m(7451),P=m(9931),E=m(4241),D=function(j){(0,A.Z)(v,j);var L=(0,U.Z)(v);function v(k){var b,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return(0,G.Z)(this,v),(b=L.call(this)).source=k,b.delayTime=O,b.scheduler=S,(!(0,E.k)(O)||O<0)&&(b.delayTime=0),(!S||"function"!=typeof S.schedule)&&(b.scheduler=P.e),b}return(0,W.Z)(v,[{key:"_subscribe",value:function(b){var O=this.delayTime,S=this.source;return this.scheduler.schedule(v.dispatch,O,{source:S,subscriber:b})}}],[{key:"create",value:function(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.e;return new v(b,O,S)}},{key:"dispatch",value:function(b){var O=b.source,S=b.subscriber;return this.add(O.subscribe(S))}}]),v}(R.y)},6053:function(De,K,m){"use strict";m.d(K,{Ms:function(){return k},aj:function(){return v}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(2866),P=m(6688),E=m(826),D=m(9054),j=m(3009),L={};function v(){for(var O=arguments.length,S=new Array(O),y=0;y<O;y++)S[y]=arguments[y];var T=void 0,M=void 0;return(0,R.K)(S[S.length-1])&&(M=S.pop()),"function"==typeof S[S.length-1]&&(T=S.pop()),1===S.length&&(0,P.k)(S[0])&&(S=S[0]),(0,j.n)(S,M).lift(new k(T))}var k=function(){function O(S){(0,A.Z)(this,O),this.resultSelector=S}return(0,U.Z)(O,[{key:"call",value:function(y,T){return T.subscribe(new b(y,this.resultSelector))}}]),O}(),b=function(O){(0,G.Z)(y,O);var S=(0,W.Z)(y);function y(T,M){var x;return(0,A.Z)(this,y),(x=S.call(this,T)).resultSelector=M,x.active=0,x.values=[],x.observables=[],x}return(0,U.Z)(y,[{key:"_next",value:function(M){this.values.push(L),this.observables.push(M)}},{key:"_complete",value:function(){var M=this.observables,x=M.length;if(0===x)this.destination.complete();else{this.active=x,this.toRespond=x;for(var N=0;N<x;N++){var F=M[N];this.add((0,D.D)(this,F,void 0,N))}}}},{key:"notifyComplete",value:function(M){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(M,x,N){var F=this.values,X=F[N],$=this.toRespond?X===L?--this.toRespond:this.toRespond:0;F[N]=x,0===$&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}},{key:"_tryResultSelector",value:function(M){var x;try{x=this.resultSelector.apply(this,M)}catch(N){return void this.destination.error(N)}this.destination.next(x)}}]),y}(E.L)},1961:function(De,K,m){"use strict";m.d(K,{z:function(){return A}});var G=m(1086),W=m(534);function A(){return(0,W.u)()(G.of.apply(void 0,arguments))}},8514:function(De,K,m){"use strict";m.d(K,{P:function(){return U}});var G=m(7451),W=m(3527),A=m(8896);function U(R){return new G.y(function(P){var E;try{E=R()}catch(j){return void P.error(j)}return(E?(0,W.D)(E):(0,A.c)()).subscribe(P)})}},8452:function(De,K,m){"use strict";m.d(K,{Ck:function(){return b},Vk:function(){return y},YB:function(){return T},_c:function(){return S},cw:function(){return pe},de:function(){return F},i6:function(){return N},iM:function(){return Y},tB:function(){return O},uX:function(){return x},vD:function(){return X}});var G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(797),D=m(7451),j=m(3489);function b(de){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new N({method:"GET",url:de,headers:le})}function O(de,le,ce){return new N({method:"POST",url:de,body:le,headers:ce})}function S(de,le){return new N({method:"DELETE",url:de,headers:le})}function y(de,le,ce){return new N({method:"PUT",url:de,body:le,headers:ce})}function T(de,le,ce){return new N({method:"PATCH",url:de,body:le,headers:ce})}var M=(0,m(4850).U)(function(de,le){return de.response});function x(de,le){return M(new N({method:"GET",url:de,responseType:"json",headers:le}))}var de,N=function(de){(0,R.Z)(ce,de);var le=(0,P.Z)(ce);function ce(me){var je;(0,A.Z)(this,ce),je=le.call(this);var at={async:!0,createXHR:function(){return this.crossDomain?function v(){if(E.J.XMLHttpRequest)return new E.J.XMLHttpRequest;if(E.J.XDomainRequest)return new E.J.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function k(){if(E.J.XMLHttpRequest)return new E.J.XMLHttpRequest;var de;try{for(var le=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],ce=0;ce<3;ce++)try{if(de=le[ce],new E.J.ActiveXObject(de))break}catch(me){}return new E.J.ActiveXObject(de)}catch(me){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof me)at.url=me;else for(var Mt in me)me.hasOwnProperty(Mt)&&(at[Mt]=me[Mt]);return je.request=at,je}return(0,U.Z)(ce,[{key:"_subscribe",value:function(je){return new F(je,this.request)}}]),ce}(D.y);N.create=((de=function(ce){return new N(ce)}).get=b,de.post=O,de.delete=S,de.put=y,de.patch=T,de.getJSON=x,de);var F=function(de){(0,R.Z)(ce,de);var le=(0,P.Z)(ce);function ce(me,je){var at;(0,A.Z)(this,ce),(at=le.call(this,me)).request=je,at.done=!1;var Mt=je.headers=je.headers||{};return!je.crossDomain&&!at.getHeader(Mt,"X-Requested-With")&&(Mt["X-Requested-With"]="XMLHttpRequest"),!at.getHeader(Mt,"Content-Type")&&!(E.J.FormData&&je.body instanceof E.J.FormData)&&void 0!==je.body&&(Mt["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),je.body=at.serializeBody(je.body,at.getHeader(je.headers,"Content-Type")),at.send(),at}return(0,U.Z)(ce,[{key:"next",value:function(je){this.done=!0;var xt,at=this.xhr,Mt=this.request,Tt=this.destination;try{xt=new X(je,at,Mt)}catch(Lt){return Tt.error(Lt)}Tt.next(xt)}},{key:"send",value:function(){var je=this.request,at=this.request,Mt=at.user,Tt=at.method,xt=at.url,Lt=at.async,Ze=at.password,$t=at.headers,Ft=at.body;try{var fn=this.xhr=je.createXHR();this.setupEvents(fn,je),Mt?fn.open(Tt,xt,Lt,Mt,Ze):fn.open(Tt,xt,Lt),Lt&&(fn.timeout=je.timeout,fn.responseType=je.responseType),"withCredentials"in fn&&(fn.withCredentials=!!je.withCredentials),this.setHeaders(fn,$t),Ft?fn.send(Ft):fn.send()}catch(nt){this.error(nt)}}},{key:"serializeBody",value:function(je,at){if(!je||"string"==typeof je)return je;if(E.J.FormData&&je instanceof E.J.FormData)return je;if(at){var Mt=at.indexOf(";");-1!==Mt&&(at=at.substring(0,Mt))}switch(at){case"application/x-www-form-urlencoded":return Object.keys(je).map(function(Tt){return"".concat(encodeURIComponent(Tt),"=").concat(encodeURIComponent(je[Tt]))}).join("&");case"application/json":return JSON.stringify(je);default:return je}}},{key:"setHeaders",value:function(je,at){for(var Mt in at)at.hasOwnProperty(Mt)&&je.setRequestHeader(Mt,at[Mt])}},{key:"getHeader",value:function(je,at){for(var Mt in je)if(Mt.toLowerCase()===at.toLowerCase())return je[Mt]}},{key:"setupEvents",value:function(je,at){var Mt=at.progressSubscriber;function Tt(Ft){var _t,fn=Tt.subscriber,nt=Tt.progressSubscriber,Ot=Tt.request;nt&&nt.error(Ft);try{_t=new pe(this,Ot)}catch(Ct){_t=Ct}fn.error(_t)}if(je.ontimeout=Tt,Tt.request=at,Tt.subscriber=this,Tt.progressSubscriber=Mt,je.upload&&"withCredentials"in je){var xt,Lt;if(Mt)xt=function(fn){xt.progressSubscriber.next(fn)},E.J.XDomainRequest?je.onprogress=xt:je.upload.onprogress=xt,xt.progressSubscriber=Mt;Lt=function(fn){var We,nt=Lt,Ot=nt.progressSubscriber,_t=nt.subscriber,Ct=nt.request;Ot&&Ot.error(fn);try{We=new Y("ajax error",this,Ct)}catch(lt){We=lt}_t.error(We)},je.onerror=Lt,Lt.request=at,Lt.subscriber=this,Lt.progressSubscriber=Mt}function Ze(Ft){}function $t(Ft){var fn=$t.subscriber,nt=$t.progressSubscriber,Ot=$t.request;if(4===this.readyState){var _t=1223===this.status?204:this.status,Ct="text"===this.responseType?this.response||this.responseText:this.response;if(0===_t&&(_t=Ct?200:0),_t<400)nt&&nt.complete(),fn.next(Ft),fn.complete();else{var We;nt&&nt.error(Ft);try{We=new Y("ajax error "+_t,this,Ot)}catch(lt){We=lt}fn.error(We)}}}je.onreadystatechange=Ze,Ze.subscriber=this,Ze.progressSubscriber=Mt,Ze.request=at,je.onload=$t,$t.subscriber=this,$t.progressSubscriber=Mt,$t.request=at}},{key:"unsubscribe",value:function(){var je=this.done,at=this.xhr;!je&&at&&4!==at.readyState&&"function"==typeof at.abort&&at.abort(),(0,G.Z)((0,W.Z)(ce.prototype),"unsubscribe",this).call(this)}}]),ce}(j.L),X=(0,U.Z)(function de(le,ce,me){(0,A.Z)(this,de),this.originalEvent=le,this.xhr=ce,this.request=me,this.status=ce.status,this.responseType=ce.responseType||me.responseType,this.response=ne(this.responseType,ce)}),$=function(){function de(le,ce,me){return Error.call(this),this.message=le,this.name="AjaxError",this.xhr=ce,this.request=me,this.status=ce.status,this.responseType=ce.responseType||me.responseType,this.response=ne(this.responseType,ce),this}return de.prototype=Object.create(Error.prototype),de}(),Y=$;function ne(de,le){switch(de){case"json":return function Q(de){return"response"in de?de.responseType?de.response:JSON.parse(de.response||de.responseText||"null"):JSON.parse(de.responseText||"null")}(le);case"xml":return le.responseXML;default:return"response"in le?le.response:le.responseText}}var pe=function be(de,le){return Y.call(this,"ajax timeout",de,le),this.name="AjaxTimeoutError",this}},2741:function(De,K,m){"use strict";m.d(K,{p:function(){return O}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(8929),D=m(3489),j=m(7451),L=m(4096),v=m(839),k={url:"",deserializer:function(y){return JSON.parse(y.data)},serializer:function(y){return JSON.stringify(y)}},O=function(S){(0,R.Z)(T,S);var y=(0,P.Z)(T);function T(M,x){var N;if((0,G.Z)(this,T),N=y.call(this),M instanceof j.y)N.destination=x,N.source=M;else{var F=N._config=Object.assign({},k);if(N._output=new E.xQ,"string"==typeof M)F.url=M;else for(var X in M)M.hasOwnProperty(X)&&(F[X]=M[X]);if(!F.WebSocketCtor&&WebSocket)F.WebSocketCtor=WebSocket;else if(!F.WebSocketCtor)throw new Error("no WebSocket constructor can be found");N.destination=new v.t}return N}return(0,W.Z)(T,[{key:"lift",value:function(x){var N=new T(this._config,this.destination);return N.operator=x,N.source=this,N}},{key:"_resetState",value:function(){this._socket=null,this.source||(this.destination=new v.t),this._output=new E.xQ}},{key:"multiplex",value:function(x,N,F){var X=this;return new j.y(function($){try{X.next(x())}catch(Q){$.error(Q)}var Y=X.subscribe(function(Q){try{F(Q)&&$.next(Q)}catch(ne){$.error(ne)}},function(Q){return $.error(Q)},function(){return $.complete()});return function(){try{X.next(N())}catch(Q){$.error(Q)}Y.unsubscribe()}})}},{key:"_connectSocket",value:function(){var x=this,N=this._config,F=N.WebSocketCtor,X=N.protocol,$=N.url,Y=N.binaryType,Q=this._output,ne=null;try{ne=X?new F($,X):new F($),this._socket=ne,Y&&(this._socket.binaryType=Y)}catch(pe){return void Q.error(pe)}var be=new L.w(function(){x._socket=null,ne&&1===ne.readyState&&ne.close()});ne.onopen=function(pe){if(!x._socket)return ne.close(),void x._resetState();var le=x._config.openObserver;le&&le.next(pe);var ce=x.destination;x.destination=D.L.create(function(me){if(1===ne.readyState)try{var je=x._config.serializer;ne.send(je(me))}catch(at){x.destination.error(at)}},function(me){var je=x._config.closingObserver;je&&je.next(void 0),me&&me.code?ne.close(me.code,me.reason):Q.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),x._resetState()},function(){var me=x._config.closingObserver;me&&me.next(void 0),ne.close(),x._resetState()}),ce&&ce instanceof v.t&&be.add(ce.subscribe(x.destination))},ne.onerror=function(pe){x._resetState(),Q.error(pe)},ne.onclose=function(pe){x._resetState();var de=x._config.closeObserver;de&&de.next(pe),pe.wasClean?Q.complete():Q.error(pe)},ne.onmessage=function(pe){try{var de=x._config.deserializer;Q.next(de(pe))}catch(le){Q.error(le)}}}},{key:"_subscribe",value:function(x){var N=this,F=this.source;return F?F.subscribe(x):(this._socket||this._connectSocket(),this._output.subscribe(x),x.add(function(){var X=N._socket;0===N._output.observers.length&&(X&&1===X.readyState&&X.close(),N._resetState())}),x)}},{key:"unsubscribe",value:function(){var x=this._socket;x&&1===x.readyState&&x.close(),this._resetState(),(0,A.Z)((0,U.Z)(T.prototype),"unsubscribe",this).call(this)}}]),T}(E.ug)},8059:function(De,K,m){"use strict";m.d(K,{h:function(){return W}});var W=m(8452).i6.create},7623:function(De,K,m){"use strict";m.d(K,{j:function(){return W}});var G=m(2741);function W(A){return new G.p(A)}},8896:function(De,K,m){"use strict";m.d(K,{E:function(){return W},c:function(){return A}});var G=m(7451),W=new G.y(function(R){return R.complete()});function A(R){return R?function U(R){return new G.y(function(P){return R.schedule(function(){return P.complete()})})}(R):W}},567:function(De,K,m){"use strict";m.d(K,{D:function(){return E}});var G=m(4902),W=m(7451),A=m(6688),U=m(4850),R=m(7830),P=m(3527);function E(){for(var j=arguments.length,L=new Array(j),v=0;v<j;v++)L[v]=arguments[v];if(1===L.length){var k=L[0];if((0,A.k)(k))return D(k,null);if((0,R.K)(k)&&Object.getPrototypeOf(k)===Object.prototype){var b=Object.keys(k);return D(b.map(function(S){return k[S]}),b)}}if("function"==typeof L[L.length-1]){var O=L.pop();return D(L=1===L.length&&(0,A.k)(L[0])?L[0]:L,null).pipe((0,U.U)(function(S){return O.apply(void 0,(0,G.Z)(S))}))}return D(L,null)}function D(j,L){return new W.y(function(v){var k=j.length;if(0!==k)for(var b=new Array(k),O=0,S=0,y=function(x){var N=(0,P.D)(j[x]),F=!1;v.add(N.subscribe({next:function($){F||(F=!0,S++),b[x]=$},error:function($){return v.error($)},complete:function(){(++O===k||!F)&&(S===k&&v.next(L?L.reduce(function($,Y,Q){return $[Y]=b[Q],$},{}):b),v.complete())}}))},T=0;T<k;T++)y(T);else v.complete()})}},3527:function(De,K,m){"use strict";m.d(K,{D:function(){return U}});var G=m(7451),W=m(3071),A=m(6266);function U(R,P){return P?(0,A.x)(R,P):R instanceof G.y?R:new G.y((0,W.s)(R))}},3009:function(De,K,m){"use strict";m.d(K,{n:function(){return U}});var G=m(7451),W=m(3650),A=m(6454);function U(R,P){return P?(0,A.r)(R,P):new G.y((0,W.V)(R))}},3753:function(De,K,m){"use strict";m.d(K,{R:function(){return E}});var G=m(4902),W=m(7451),A=m(6688),U=m(7043),R=m(4850);Object.prototype.toString;function E(k,b,O,S){return(0,U.m)(O)&&(S=O,O=void 0),S?E(k,b,O).pipe((0,R.U)(function(y){return(0,A.k)(y)?S.apply(void 0,(0,G.Z)(y)):S(y)})):new W.y(function(y){D(k,b,function T(M){arguments.length>1?y.next(Array.prototype.slice.call(arguments)):y.next(M)},y,O)})}function D(k,b,O,S,y){var T;if(function v(k){return k&&"function"==typeof k.addEventListener&&"function"==typeof k.removeEventListener}(k)){var M=k;k.addEventListener(b,O,y),T=function(){return M.removeEventListener(b,O,y)}}else if(function L(k){return k&&"function"==typeof k.on&&"function"==typeof k.off}(k)){var x=k;k.on(b,O),T=function(){return x.off(b,O)}}else if(function j(k){return k&&"function"==typeof k.addListener&&"function"==typeof k.removeListener}(k)){var N=k;k.addListener(b,O),T=function(){return N.removeListener(b,O)}}else{if(!k||!k.length)throw new TypeError("Invalid event target");for(var F=0,X=k.length;F<X;F++)D(k[F],b,O,S,y)}S.add(T)}},1715:function(De,K,m){"use strict";m.d(K,{F:function(){return U}});var G=m(7451),W=m(353),A=m(4241);function U(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.P;return(!(0,A.k)(P)||P<0)&&(P=0),(!E||"function"!=typeof E.schedule)&&(E=W.P),new G.y(function(D){return D.add(E.schedule(R,P,{subscriber:D,counter:0,period:P})),D})}function R(P){var E=P.subscriber,D=P.counter,j=P.period;E.next(D),this.schedule({subscriber:E,counter:D+1,period:j},j)}},6787:function(De,K,m){"use strict";m.d(K,{T:function(){return R}});var G=m(7451),W=m(2866),A=m(9146),U=m(3009);function R(){for(var P=Number.POSITIVE_INFINITY,E=null,D=arguments.length,j=new Array(D),L=0;L<D;L++)j[L]=arguments[L];var v=j[j.length-1];return(0,W.K)(v)?(E=j.pop(),j.length>1&&"number"==typeof j[j.length-1]&&(P=j.pop())):"number"==typeof v&&(P=j.pop()),null===E&&1===j.length&&j[0]instanceof G.y?j[0]:(0,A.J)(P)((0,U.n)(j,E))}},1086:function(De,K,m){"use strict";m.d(K,{of:function(){return U}});var G=m(2866),W=m(3009),A=m(6454);function U(){for(var R=arguments.length,P=new Array(R),E=0;E<R;E++)P[E]=arguments[E];var D=P[P.length-1];return(0,G.K)(D)?(P.pop(),(0,A.r)(P,D)):(0,W.n)(P)}},1946:function(De,K,m){"use strict";m.d(K,{S3:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(6688),P=m(3009),E=m(826),D=m(9054);function j(){for(var k=arguments.length,b=new Array(k),O=0;O<k;O++)b[O]=arguments[O];if(1===b.length){if(!(0,R.k)(b[0]))return b[0];b=b[0]}return(0,P.n)(b,void 0).lift(new L)}var L=function(){function k(){(0,A.Z)(this,k)}return(0,U.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O))}}]),k}(),v=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S){var y;return(0,A.Z)(this,O),(y=b.call(this,S)).hasFirst=!1,y.observables=[],y.subscriptions=[],y}return(0,U.Z)(O,[{key:"_next",value:function(y){this.observables.push(y)}},{key:"_complete",value:function(){var y=this.observables,T=y.length;if(0===T)this.destination.complete();else{for(var M=0;M<T&&!this.hasFirst;M++){var x=y[M],N=(0,D.D)(this,x,void 0,M);this.subscriptions&&this.subscriptions.push(N),this.add(N)}this.observables=null}}},{key:"notifyNext",value:function(y,T,M){if(!this.hasFirst){this.hasFirst=!0;for(var x=0;x<this.subscriptions.length;x++)if(x!==M){var N=this.subscriptions[x];N.unsubscribe(),this.remove(N)}this.subscriptions=null}this.destination.next(T)}}]),O}(E.L)},3103:function(De,K,m){"use strict";m.d(K,{W:function(){return A},w:function(){return W}});var G=m(7451);function W(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,R=arguments.length>1?arguments[1]:void 0,P=arguments.length>2?arguments[2]:void 0;return new G.y(function(E){void 0===R&&(R=U,U=0);var D=0,j=U;if(P)return P.schedule(A,0,{index:D,count:R,start:U,subscriber:E});for(;;){if(D++>=R){E.complete();break}if(E.next(j++),E.closed)break}})}function A(U){var R=U.start,P=U.index,E=U.count,D=U.subscriber;P>=E?D.complete():(D.next(R),!D.closed&&(U.index=P+1,U.start=R+1,this.schedule(U)))}},1737:function(De,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(7451);function W(U,R){return R?new G.y(function(P){return R.schedule(A,0,{error:U,subscriber:P})}):new G.y(function(P){return P.error(U)})}function A(U){var R=U.error;U.subscriber.error(R)}},8723:function(De,K,m){"use strict";m.d(K,{H:function(){return R}});var G=m(7451),W=m(353),A=m(4241),U=m(2866);function R(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,D=arguments.length>1?arguments[1]:void 0,j=arguments.length>2?arguments[2]:void 0,L=-1;return(0,A.k)(D)?L=Number(D)<1?1:Number(D):(0,U.K)(D)&&(j=D),(0,U.K)(j)||(j=W.P),new G.y(function(v){var k=(0,A.k)(E)?E:+E-j.now();return j.schedule(P,k,{index:0,period:L,subscriber:v})})}function P(E){var D=E.index,j=E.period,L=E.subscriber;if(L.next(D),!L.closed){if(-1===j)return L.complete();E.index=D+1,this.schedule(E,j)}}},1746:function(De,K,m){"use strict";m.d(K,{$R:function(){return L},mx:function(){return v}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3009),P=m(6688),E=m(3489),D=m(5430),j=m(1177);function L(){for(var y=arguments.length,T=new Array(y),M=0;M<y;M++)T[M]=arguments[M];var x=T[T.length-1];return"function"==typeof x&&T.pop(),(0,R.n)(T,void 0).lift(new v(x))}var v=function(){function y(T){(0,A.Z)(this,y),this.resultSelector=T}return(0,U.Z)(y,[{key:"call",value:function(M,x){return x.subscribe(new k(M,this.resultSelector))}}]),y}(),k=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(x,N){var F;arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,A.Z)(this,M),(F=T.call(this,x)).resultSelector=N,F.iterators=[],F.active=0,F.resultSelector="function"==typeof N?N:void 0,F}return(0,U.Z)(M,[{key:"_next",value:function(N){var F=this.iterators;(0,P.k)(N)?F.push(new O(N)):"function"==typeof N[D.hZ]?F.push(new b(N[D.hZ]())):F.push(new S(this.destination,this,N))}},{key:"_complete",value:function(){var N=this.iterators,F=N.length;if(this.unsubscribe(),0!==F){this.active=F;for(var X=0;X<F;X++){var $=N[X];if($.stillUnsubscribed)this.destination.add($.subscribe());else this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var N=this.iterators,F=N.length,X=this.destination,$=0;$<F;$++){var Y=N[$];if("function"==typeof Y.hasValue&&!Y.hasValue())return}for(var Q=!1,ne=[],be=0;be<F;be++){var pe=N[be],de=pe.next();if(pe.hasCompleted()&&(Q=!0),de.done)return void X.complete();ne.push(de.value)}this.resultSelector?this._tryresultSelector(ne):X.next(ne),Q&&X.complete()}},{key:"_tryresultSelector",value:function(N){var F;try{F=this.resultSelector.apply(this,N)}catch(X){return void this.destination.error(X)}this.destination.next(F)}}]),M}(E.L),b=function(){function y(T){(0,A.Z)(this,y),this.iterator=T,this.nextResult=T.next()}return(0,U.Z)(y,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var M=this.nextResult;return this.nextResult=this.iterator.next(),M}},{key:"hasCompleted",value:function(){var M=this.nextResult;return Boolean(M&&M.done)}}]),y}(),O=function(){function y(T){(0,A.Z)(this,y),this.array=T,this.index=0,this.length=0,this.length=T.length}return(0,U.Z)(y,[{key:D.hZ,value:function(){return this}},{key:"next",value:function(M){var x=this.index++,N=this.array;return x<this.length?{value:N[x],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}}]),y}(),S=function(y){(0,G.Z)(M,y);var T=(0,W.Z)(M);function M(x,N,F){var X;return(0,A.Z)(this,M),(X=T.call(this,x)).parent=N,X.observable=F,X.stillUnsubscribed=!0,X.buffer=[],X.isComplete=!1,X}return(0,U.Z)(M,[{key:D.hZ,value:function(){return this}},{key:"next",value:function(){var N=this.buffer;return 0===N.length&&this.isComplete?{value:null,done:!0}:{value:N.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(N){this.buffer.push(N),this.parent.checkIterators()}},{key:"subscribe",value:function(){return(0,j.ft)(this.observable,new j.IY(this))}}]),M}(j.Ds)},384:function(De,K,m){"use strict";m.d(K,{U:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177);function P(j){return function(v){return v.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.durationSelector=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.durationSelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).durationSelector=b,O.hasValue=!1,O}return(0,U.Z)(v,[{key:"_next",value:function(b){if(this.value=b,this.hasValue=!0,!this.throttled){var O;try{O=(0,this.durationSelector)(b)}catch(T){return this.destination.error(T)}var y=(0,R.ft)(O,new R.IY(this));!y||y.closed?this.clearThrottle():this.add(this.throttled=y)}}},{key:"clearThrottle",value:function(){var b=this.value,O=this.hasValue,S=this.throttled;S&&(this.remove(S),this.throttled=void 0,S.unsubscribe()),O&&(this.value=void 0,this.hasValue=!1,this.destination.next(b))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),v}(R.Ds)},7568:function(De,K,m){"use strict";m.d(K,{e:function(){return U}});var G=m(353),W=m(384),A=m(8723);function U(R){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G.P;return(0,W.U)(function(){return(0,A.H)(R,P)})}},7221:function(De,K,m){"use strict";m.d(K,{K:function(){return D}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(1177);function D(v){return function(b){var O=new j(v),S=b.lift(O);return O.caught=S}}var j=function(){function v(k){(0,R.Z)(this,v),this.selector=k}return(0,P.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.selector,this.caught))}}]),v}(),L=function(v){(0,A.Z)(b,v);var k=(0,U.Z)(b);function b(O,S,y){var T;return(0,R.Z)(this,b),(T=k.call(this,O)).selector=S,T.caught=y,T}return(0,P.Z)(b,[{key:"error",value:function(S){if(!this.isStopped){var y;try{y=this.selector(S,this.caught)}catch(x){return void(0,G.Z)((0,W.Z)(b.prototype),"error",this).call(this,x)}this._unsubscribeAndRecycle();var T=new E.IY(this);this.add(T);var M=(0,E.ft)(y,T);M!==T&&this.add(M)}}}]),b}(E.Ds)},534:function(De,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(9146);function W(){return(0,G.J)(1)}},1406:function(De,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(1709);function W(A,U){return(0,G.zg)(A,U,1)}},3906:function(De,K,m){"use strict";m.d(K,{Q:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.source=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.source))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.source=O,S.count=0,S.index=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){this.predicate?this._tryPredicate(b):this.count++}},{key:"_tryPredicate",value:function(b){var O;try{O=this.predicate(b,this.index++,this.source)}catch(S){return void this.destination.error(S)}O&&this.count++}},{key:"_complete",value:function(){this.destination.next(this.count),this.destination.complete()}}]),v}(R.L)},13:function(De,K,m){"use strict";m.d(K,{b:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(353);function E(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.P;return function(b){return b.lift(new D(v,k))}}var D=function(){function v(k,b){(0,A.Z)(this,v),this.dueTime=k,this.scheduler=b}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.dueTime,this.scheduler))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S,y){var T;return(0,A.Z)(this,b),(T=k.call(this,O)).dueTime=S,T.scheduler=y,T.debouncedSubscription=null,T.lastValue=null,T.hasValue=!1,T}return(0,U.Z)(b,[{key:"_next",value:function(S){this.clearDebounce(),this.lastValue=S,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var S=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(S)}}},{key:"clearDebounce",value:function(){var S=this.debouncedSubscription;null!==S&&(this.remove(S),S.unsubscribe(),this.debouncedSubscription=null)}}]),b}(R.L);function L(v){v.debouncedNext()}},7314:function(De,K,m){"use strict";m.d(K,{d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.defaultValue=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.defaultValue))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).defaultValue=b,O.isEmpty=!0,O}return(0,U.Z)(v,[{key:"_next",value:function(b){this.isEmpty=!1,this.destination.next(b)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),v}(R.L)},943:function(De,K,m){"use strict";m.d(K,{g:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(353),P=m(2697),E=m(3489),D=m(9312);function j(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R.P,S=(0,P.J)(b),y=S?+b-O.now():Math.abs(b);return function(T){return T.lift(new L(y,O))}}var L=function(){function b(O,S){(0,A.Z)(this,b),this.delay=O,this.scheduler=S}return(0,U.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new v(S,this.delay,this.scheduler))}}]),b}(),v=function(b){(0,G.Z)(S,b);var O=(0,W.Z)(S);function S(y,T,M){var x;return(0,A.Z)(this,S),(x=O.call(this,y)).delay=T,x.scheduler=M,x.queue=[],x.active=!1,x.errored=!1,x}return(0,U.Z)(S,[{key:"_schedule",value:function(T){this.active=!0,this.destination.add(T.schedule(S.dispatch,this.delay,{source:this,destination:this.destination,scheduler:T}))}},{key:"scheduleNotification",value:function(T){if(!0!==this.errored){var M=this.scheduler,x=new k(M.now()+this.delay,T);this.queue.push(x),!1===this.active&&this._schedule(M)}}},{key:"_next",value:function(T){this.scheduleNotification(D.P.createNext(T))}},{key:"_error",value:function(T){this.errored=!0,this.queue=[],this.destination.error(T),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(D.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(T){for(var M=T.source,x=M.queue,N=T.scheduler,F=T.destination;x.length>0&&x[0].time-N.now()<=0;)x.shift().notification.observe(F);if(x.length>0){var X=Math.max(0,x[0].time-N.now());this.schedule(T,X)}else this.unsubscribe(),M.active=!1}}]),S}(E.L),k=(0,U.Z)(function b(O,S){(0,A.Z)(this,b),this.time=O,this.notification=S})},5778:function(De,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){return function(v){return v.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.compare=L,this.keySelector=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.compare,this.keySelector))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).keySelector=O,S.hasKey=!1,"function"==typeof b&&(S.compare=b),S}return(0,U.Z)(v,[{key:"compare",value:function(b,O){return b===O}},{key:"_next",value:function(b){var O;try{var S=this.keySelector;O=S?S(b):b}catch(M){return this.destination.error(M)}var y=!1;if(this.hasKey)try{y=(0,this.compare)(this.key,O)}catch(M){return this.destination.error(M)}else this.hasKey=!0;y||(this.key=O,this.destination.next(b))}}]),v}(R.L)},9664:function(De,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){return function(k){return k.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.thisArg=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.thisArg))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.thisArg=O,S.count=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){var O;try{O=this.predicate.call(this.thisArg,b,this.count++)}catch(S){return void this.destination.error(S)}O&&this.destination.next(b)}}]),v}(R.L)},537:function(De,K,m){"use strict";m.d(K,{x:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4096);function E(L){return function(v){return v.lift(new D(L))}}var D=function(){function L(v){(0,A.Z)(this,L),this.callback=v}return(0,U.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.callback))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O){var S;return(0,A.Z)(this,k),(S=v.call(this,b)).add(new P.w(O)),S}return(0,U.Z)(k)}(R.L)},7224:function(De,K,m){"use strict";m.d(K,{P:function(){return E}});var G=m(4450),W=m(9664),A=m(2986),U=m(7314),R=m(4907),P=m(5379);function E(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.q)(1),L?(0,U.d)(j):(0,R.T)(function(){return new G.K}))}}},4002:function(De,K,m){"use strict";m.d(K,{T:function(){return S},v:function(){return v}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(3489),D=m(4096),j=m(7451),L=m(8929);function v(T,M,x,N){return function(F){return F.lift(new k(T,M,x,N))}}var k=function(){function T(M,x,N,F){(0,R.Z)(this,T),this.keySelector=M,this.elementSelector=x,this.durationSelector=N,this.subjectSelector=F}return(0,P.Z)(T,[{key:"call",value:function(x,N){return N.subscribe(new b(x,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}]),T}(),b=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,F,X,$,Y){var Q;return(0,R.Z)(this,x),(Q=M.call(this,N)).keySelector=F,Q.elementSelector=X,Q.durationSelector=$,Q.subjectSelector=Y,Q.groups=null,Q.attemptedToUnsubscribe=!1,Q.count=0,Q}return(0,P.Z)(x,[{key:"_next",value:function(F){var X;try{X=this.keySelector(F)}catch($){return void this.error($)}this._group(F,X)}},{key:"_group",value:function(F,X){var $=this.groups;$||($=this.groups=new Map);var Q,Y=$.get(X);if(this.elementSelector)try{Q=this.elementSelector(F)}catch(pe){this.error(pe)}else Q=F;if(!Y){Y=this.subjectSelector?this.subjectSelector():new L.xQ,$.set(X,Y);var ne=new S(X,Y,this);if(this.destination.next(ne),this.durationSelector){var be;try{be=this.durationSelector(new S(X,Y))}catch(pe){return void this.error(pe)}this.add(be.subscribe(new O(X,Y,this)))}}Y.closed||Y.next(Q)}},{key:"_error",value:function(F){var X=this.groups;X&&(X.forEach(function($,Y){$.error(F)}),X.clear()),this.destination.error(F)}},{key:"_complete",value:function(){var F=this.groups;F&&(F.forEach(function(X,$){X.complete()}),F.clear()),this.destination.complete()}},{key:"removeGroup",value:function(F){this.groups.delete(F)}},{key:"unsubscribe",value:function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&(0,G.Z)((0,W.Z)(x.prototype),"unsubscribe",this).call(this))}}]),x}(E.L),O=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,F,X){var $;return(0,R.Z)(this,x),($=M.call(this,F)).key=N,$.group=F,$.parent=X,$}return(0,P.Z)(x,[{key:"_next",value:function(F){this.complete()}},{key:"_unsubscribe",value:function(){var F=this.parent,X=this.key;this.key=this.parent=null,F&&F.removeGroup(X)}}]),x}(E.L),S=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N,F,X){var $;return(0,R.Z)(this,x),($=M.call(this)).key=N,$.groupSubject=F,$.refCountSubscription=X,$}return(0,P.Z)(x,[{key:"_subscribe",value:function(F){var X=new D.w,$=this.refCountSubscription,Y=this.groupSubject;return $&&!$.closed&&X.add(new y($)),X.add(Y.subscribe(F)),X}}]),x}(j.y),y=function(T){(0,A.Z)(x,T);var M=(0,U.Z)(x);function x(N){var F;return(0,R.Z)(this,x),(F=M.call(this)).parent=N,N.count++,F}return(0,P.Z)(x,[{key:"unsubscribe",value:function(){var F=this.parent;!F.closed&&!this.closed&&((0,G.Z)((0,W.Z)(x.prototype),"unsubscribe",this).call(this),F.count-=1,0===F.count&&F.attemptedToUnsubscribe&&F.unsubscribe())}}]),x}(D.w)},8127:function(De,K,m){"use strict";m.d(K,{Z:function(){return E}});var G=m(4450),W=m(9664),A=m(2821),U=m(4907),R=m(7314),P=m(5379);function E(D,j){var L=arguments.length>=2;return function(v){return v.pipe(D?(0,W.h)(function(k,b){return D(k,b,v)}):P.y,(0,A.h)(1),L?(0,R.d)(j):(0,U.T)(function(){return new G.K}))}}},4850:function(De,K,m){"use strict";m.d(K,{U:function(){return E}});var G=m(7326),W=m(136),A=m(9388),U=m(5671),R=m(3144),P=m(3489);function E(L,v){return function(b){if("function"!=typeof L)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new D(L,v))}}var D=function(){function L(v,k){(0,U.Z)(this,L),this.project=v,this.thisArg=k}return(0,R.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.project,this.thisArg))}}]),L}(),j=function(L){(0,W.Z)(k,L);var v=(0,A.Z)(k);function k(b,O,S){var y;return(0,U.Z)(this,k),(y=v.call(this,b)).project=O,y.count=0,y.thisArg=S||(0,G.Z)(y),y}return(0,R.Z)(k,[{key:"_next",value:function(O){var S;try{S=this.project.call(this.thisArg,O,this.count++)}catch(y){return void this.destination.error(y)}this.destination.next(S)}}]),k}(P.L)},7604:function(De,K,m){"use strict";m.d(K,{h:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.value=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.value))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).value=b,O}return(0,U.Z)(v,[{key:"_next",value:function(b){this.destination.next(this.value)}}]),v}(R.L)},9146:function(De,K,m){"use strict";m.d(K,{J:function(){return A}});var G=m(1709),W=m(5379);function A(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return(0,G.zg)(W.y,U)}},1709:function(De,K,m){"use strict";m.d(K,{VS:function(){return v},zg:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(4850),P=m(3527),E=m(1177);function D(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof b?function(S){return S.pipe(D(function(y,T){return(0,P.D)(k(y,T)).pipe((0,R.U)(function(M,x){return b(y,M,T,x)}))},O))}:("number"==typeof b&&(O=b),function(S){return S.lift(new j(k,O))})}var j=function(){function k(b){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,A.Z)(this,k),this.project=b,this.concurrent=O}return(0,U.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new L(O,this.project,this.concurrent))}}]),k}(),L=function(k){(0,G.Z)(O,k);var b=(0,W.Z)(O);function O(S,y){var T,M=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,O),(T=b.call(this,S)).project=y,T.concurrent=M,T.hasCompleted=!1,T.buffer=[],T.active=0,T.index=0,T}return(0,U.Z)(O,[{key:"_next",value:function(y){this.active<this.concurrent?this._tryNext(y):this.buffer.push(y)}},{key:"_tryNext",value:function(y){var T,M=this.index++;try{T=this.project(y,M)}catch(x){return void this.destination.error(x)}this.active++,this._innerSub(T)}},{key:"_innerSub",value:function(y){var T=new E.IY(this),M=this.destination;M.add(T);var x=(0,E.ft)(y,T);x!==T&&M.add(x)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(y){this.destination.next(y)}},{key:"notifyComplete",value:function(){var y=this.buffer;this.active--,y.length>0?this._next(y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),O}(E.Ds),v=D},2536:function(De,K,m){"use strict";m.d(K,{O:function(){return U}});var G=m(5671),W=m(3144),A=m(1762);function U(P,E){return function(j){var L;if(L="function"==typeof P?P:function(){return P},"function"==typeof E)return j.lift(new R(L,E));var v=Object.create(j,A.N);return v.source=j,v.subjectFactory=L,v}}var R=function(){function P(E,D){(0,G.Z)(this,P),this.subjectFactory=E,this.selector=D}return(0,W.Z)(P,[{key:"call",value:function(D,j){var L=this.selector,v=this.subjectFactory(),k=L(v).subscribe(D);return k.add(j.subscribe(v)),k}}]),P}()},7770:function(De,K,m){"use strict";m.d(K,{QV:function(){return E},ht:function(){return j}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(9312);function E(v){var k=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(O){return O.lift(new D(v,k))}}var D=function(){function v(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,A.Z)(this,v),this.scheduler=k,this.delay=b}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.scheduler,this.delay))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return(0,A.Z)(this,b),(y=k.call(this,O)).scheduler=S,y.delay=T,y}return(0,U.Z)(b,[{key:"scheduleMessage",value:function(S){this.destination.add(this.scheduler.schedule(b.dispatch,this.delay,new L(S,this.destination)))}},{key:"_next",value:function(S){this.scheduleMessage(P.P.createNext(S))}},{key:"_error",value:function(S){this.scheduleMessage(P.P.createError(S)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(P.P.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(S){var y=S.notification,T=S.destination;y.observe(T),this.unsubscribe()}}]),b}(R.L),L=(0,U.Z)(function v(k,b){(0,A.Z)(this,v),this.notification=k,this.destination=b})},519:function(De,K,m){"use strict";m.d(K,{G:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){return function(j){return j.lift(new E)}}var E=function(){function j(){(0,A.Z)(this,j)}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).hasPrev=!1,b}return(0,U.Z)(v,[{key:"_next",value:function(b){var O;this.hasPrev?O=[this.prev,b]:this.hasPrev=!0,this.prev=b,O&&this.destination.next(O)}}]),v}(R.L)},4327:function(De,K,m){"use strict";m.d(K,{x:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(){return function(L){return L.lift(new E(L))}}var E=function(){function j(L){(0,A.Z)(this,j),this.connectable=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){var b=this.connectable;b._refCount++;var O=new D(v,b),S=k.subscribe(O);return O.closed||(O.connection=b.connect()),S}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).connectable=b,O}return(0,U.Z)(v,[{key:"_unsubscribe",value:function(){var b=this.connectable;if(b){this.connectable=null;var O=b._refCount;if(O<=0)this.connection=null;else if(b._refCount=O-1,O>1)this.connection=null;else{var S=this.connection,y=b._connection;this.connection=null,y&&(!S||y===S)&&y.unsubscribe()}}else this.connection=null}}]),v}(R.L)},2014:function(De,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j,L){var v=!1;return arguments.length>=2&&(v=!0),function(b){return b.lift(new E(j,L,v))}}var E=function(){function j(L,v){var k=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,A.Z)(this,j),this.accumulator=L,this.seed=v,this.hasSeed=k}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.accumulator,this.seed,this.hasSeed))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O,S){var y;return(0,A.Z)(this,v),(y=L.call(this,k)).accumulator=b,y._seed=O,y.hasSeed=S,y.index=0,y}return(0,U.Z)(v,[{key:"seed",get:function(){return this._seed},set:function(b){this.hasSeed=!0,this._seed=b}},{key:"_next",value:function(b){if(this.hasSeed)return this._tryNext(b);this.seed=b,this.destination.next(b)}},{key:"_tryNext",value:function(b){var S,O=this.index++;try{S=this.accumulator(this.seed,b,O)}catch(y){this.destination.error(y)}this.seed=S,this.destination.next(S)}}]),v}(R.L)},8117:function(De,K,m){"use strict";m.d(K,{B:function(){return R}});var G=m(2536),W=m(4327),A=m(8929);function U(){return new A.xQ}function R(){return function(P){return(0,W.x)()((0,G.O)(U)(P))}}},5154:function(De,K,m){"use strict";m.d(K,{d:function(){return W}});var G=m(839);function W(U,R,P){var E;return E=U&&"object"==typeof U?U:{bufferSize:U,windowTime:R,refCount:!1,scheduler:P},function(D){return D.lift(function A(U){var v,b,R=U.bufferSize,P=void 0===R?Number.POSITIVE_INFINITY:R,E=U.windowTime,D=void 0===E?Number.POSITIVE_INFINITY:E,j=U.refCount,L=U.scheduler,k=0,O=!1,S=!1;return function(T){var M;k++,!v||O?(O=!1,v=new G.t(P,D,L),M=v.subscribe(this),b=T.subscribe({next:function(N){v.next(N)},error:function(N){O=!0,v.error(N)},complete:function(){S=!0,b=void 0,v.complete()}}),S&&(b=void 0)):M=v.subscribe(this),this.add(function(){k--,M.unsubscribe(),M=void 0,b&&!S&&j&&0===k&&(b.unsubscribe(),b=void 0,v=void 0)})}}(E))}}},1307:function(De,K,m){"use strict";m.d(K,{T:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.total=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.total))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b){var O;return(0,A.Z)(this,v),(O=L.call(this,k)).total=b,O.count=0,O}return(0,U.Z)(v,[{key:"_next",value:function(b){++this.count>this.total&&this.destination.next(b)}}]),v}(R.L)},1059:function(De,K,m){"use strict";m.d(K,{O:function(){return A}});var G=m(1961),W=m(2866);function A(){for(var U=arguments.length,R=new Array(U),P=0;P<U;P++)R[P]=arguments[P];var E=R[R.length-1];return(0,W.K)(E)?(R.pop(),function(D){return(0,G.z)(R,D,E)}):function(D){return(0,G.z)(R,D)}}},7545:function(De,K,m){"use strict";m.d(K,{w:function(){return L}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(5671),P=m(3144),E=m(4850),D=m(3527),j=m(1177);function L(b,O){return"function"==typeof O?function(S){return S.pipe(L(function(y,T){return(0,D.D)(b(y,T)).pipe((0,E.U)(function(M,x){return O(y,M,T,x)}))}))}:function(S){return S.lift(new v(b))}}var v=function(){function b(O){(0,R.Z)(this,b),this.project=O}return(0,P.Z)(b,[{key:"call",value:function(S,y){return y.subscribe(new k(S,this.project))}}]),b}(),k=function(b){(0,A.Z)(S,b);var O=(0,U.Z)(S);function S(y,T){var M;return(0,R.Z)(this,S),(M=O.call(this,y)).project=T,M.index=0,M}return(0,P.Z)(S,[{key:"_next",value:function(T){var M,x=this.index++;try{M=this.project(T,x)}catch(N){return void this.destination.error(N)}this._innerSub(M)}},{key:"_innerSub",value:function(T){var M=this.innerSubscription;M&&M.unsubscribe();var x=new j.IY(this),N=this.destination;N.add(x),this.innerSubscription=(0,j.ft)(T,x),this.innerSubscription!==x&&N.add(this.innerSubscription)}},{key:"_complete",value:function(){var T=this.innerSubscription;(!T||T.closed)&&(0,G.Z)((0,W.Z)(S.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&(0,G.Z)((0,W.Z)(S.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(T){this.destination.next(T)}}]),S}(j.Ds)},2986:function(De,K,m){"use strict";m.d(K,{q:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4231),E=m(8896);function D(v){return function(k){return 0===v?(0,E.c)():k.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.count=0,y}return(0,U.Z)(b,[{key:"_next",value:function(S){var y=this.total,T=++this.count;T<=y&&(this.destination.next(S),T===y&&(this.destination.complete(),this.unsubscribe()))}}]),b}(R.L)},2821:function(De,K,m){"use strict";m.d(K,{h:function(){return D}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489),P=m(4231),E=m(8896);function D(v){return function(b){return 0===v?(0,E.c)():b.lift(new j(v))}}var j=function(){function v(k){if((0,A.Z)(this,v),this.total=k,this.total<0)throw new P.W}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new L(b,this.total))}}]),v}(),L=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).total=S,y.ring=new Array,y.count=0,y}return(0,U.Z)(b,[{key:"_next",value:function(S){var y=this.ring,T=this.total,M=this.count++;y.length<T?y.push(S):y[M%T]=S}},{key:"_complete",value:function(){var S=this.destination,y=this.count;if(y>0)for(var T=this.count>=this.total?this.total:this.count,M=this.ring,x=0;x<T;x++){var N=y++%T;S.next(M[N])}S.complete()}}]),b}(R.L)},7625:function(De,K,m){"use strict";m.d(K,{R:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177);function P(j){return function(L){return L.lift(new E(j))}}var E=function(){function j(L){(0,A.Z)(this,j),this.notifier=L}return(0,U.Z)(j,[{key:"call",value:function(v,k){var b=new D(v),O=(0,R.ft)(this.notifier,new R.IY(b));return O&&!b.seenValue?(b.add(O),k.subscribe(b)):b}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k){var b;return(0,A.Z)(this,v),(b=L.call(this,k)).seenValue=!1,b}return(0,U.Z)(v,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),v}(R.Ds)},4290:function(De,K,m){"use strict";m.d(K,{o:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(3489);function P(j){var L=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(v){return v.lift(new E(j,L))}}var E=function(){function j(L,v){(0,A.Z)(this,j),this.predicate=L,this.inclusive=v}return(0,U.Z)(j,[{key:"call",value:function(v,k){return k.subscribe(new D(v,this.predicate,this.inclusive))}}]),j}(),D=function(j){(0,G.Z)(v,j);var L=(0,W.Z)(v);function v(k,b,O){var S;return(0,A.Z)(this,v),(S=L.call(this,k)).predicate=b,S.inclusive=O,S.index=0,S}return(0,U.Z)(v,[{key:"_next",value:function(b){var S,O=this.destination;try{S=this.predicate(b,this.index++)}catch(y){return void O.error(y)}this.nextOrComplete(b,S)}},{key:"nextOrComplete",value:function(b,O){var S=this.destination;Boolean(O)?S.next(b):(this.inclusive&&S.next(b),S.complete())}}]),v}(R.L)},2994:function(De,K,m){"use strict";m.d(K,{b:function(){return j}});var G=m(7326),W=m(136),A=m(9388),U=m(5671),R=m(3144),P=m(3489),E=m(7876),D=m(7043);function j(k,b,O){return function(y){return y.lift(new L(k,b,O))}}var L=function(){function k(b,O,S){(0,U.Z)(this,k),this.nextOrObserver=b,this.error=O,this.complete=S}return(0,R.Z)(k,[{key:"call",value:function(O,S){return S.subscribe(new v(O,this.nextOrObserver,this.error,this.complete))}}]),k}(),v=function(k){(0,W.Z)(O,k);var b=(0,A.Z)(O);function O(S,y,T,M){var x;return(0,U.Z)(this,O),(x=b.call(this,S))._tapNext=E.Z,x._tapError=E.Z,x._tapComplete=E.Z,x._tapError=T||E.Z,x._tapComplete=M||E.Z,(0,D.m)(y)?(x._context=(0,G.Z)(x),x._tapNext=y):y&&(x._context=y,x._tapNext=y.next||E.Z,x._tapError=y.error||E.Z,x._tapComplete=y.complete||E.Z),x}return(0,R.Z)(O,[{key:"_next",value:function(y){try{this._tapNext.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.next(y)}},{key:"_error",value:function(y){try{this._tapError.call(this._context,y)}catch(T){return void this.destination.error(T)}this.destination.error(y)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(y){return void this.destination.error(y)}return this.destination.complete()}}]),O}(P.L)},2444:function(De,K,m){"use strict";m.d(K,{P:function(){return E},d:function(){return P}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(1177),P={leading:!0,trailing:!1};function E(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return function(k){return k.lift(new D(L,!!v.leading,!!v.trailing))}}var D=function(){function L(v,k,b){(0,A.Z)(this,L),this.durationSelector=v,this.leading=k,this.trailing=b}return(0,U.Z)(L,[{key:"call",value:function(k,b){return b.subscribe(new j(k,this.durationSelector,this.leading,this.trailing))}}]),L}(),j=function(L){(0,G.Z)(k,L);var v=(0,W.Z)(k);function k(b,O,S,y){var T;return(0,A.Z)(this,k),(T=v.call(this,b)).destination=b,T.durationSelector=O,T._leading=S,T._trailing=y,T._hasValue=!1,T}return(0,U.Z)(k,[{key:"_next",value:function(O){this._hasValue=!0,this._sendValue=O,this._throttled||(this._leading?this.send():this.throttle(O))}},{key:"send",value:function(){var O=this._hasValue,S=this._sendValue;O&&(this.destination.next(S),this.throttle(S)),this._hasValue=!1,this._sendValue=void 0}},{key:"throttle",value:function(O){var S=this.tryDurationSelector(O);S&&this.add(this._throttled=(0,R.ft)(S,new R.IY(this)))}},{key:"tryDurationSelector",value:function(O){try{return this.durationSelector(O)}catch(S){return this.destination.error(S),null}}},{key:"throttlingDone",value:function(){var O=this._throttled,S=this._trailing;O&&O.unsubscribe(),this._throttled=void 0,S&&this.send()}},{key:"notifyNext",value:function(){this.throttlingDone()}},{key:"notifyComplete",value:function(){this.throttlingDone()}}]),k}(R.Ds)},4907:function(De,K,m){"use strict";m.d(K,{T:function(){return E}});var G=m(136),W=m(9388),A=m(5671),U=m(3144),R=m(4450),P=m(3489);function E(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;return function(k){return k.lift(new D(v))}}var D=function(){function v(k){(0,A.Z)(this,v),this.errorFactory=k}return(0,U.Z)(v,[{key:"call",value:function(b,O){return O.subscribe(new j(b,this.errorFactory))}}]),v}(),j=function(v){(0,G.Z)(b,v);var k=(0,W.Z)(b);function b(O,S){var y;return(0,A.Z)(this,b),(y=k.call(this,O)).errorFactory=S,y.hasValue=!1,y}return(0,U.Z)(b,[{key:"_next",value:function(S){this.hasValue=!0,this.destination.next(S)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var S;try{S=this.errorFactory()}catch(y){S=y}this.destination.error(S)}}]),b}(P.L);function L(){return new R.K}},3485:function(De,K,m){"use strict";m.d(K,{J:function(){return E},R:function(){return D}});var G=m(3144),W=m(5671),A=m(353),U=m(2014),R=m(8514),P=m(4850);function E(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return function(L){return(0,R.P)(function(){return L.pipe((0,U.R)(function(v,k){var b=v.current;return{value:k,current:j.now(),last:b}},{current:j.now(),value:void 0,last:void 0}),(0,P.U)(function(v){var k=v.current,b=v.last,O=v.value;return new D(O,k-b)}))})}}var D=(0,G.Z)(function j(L,v){(0,W.Z)(this,j),this.value=L,this.interval=v})},7781:function(De,K,m){"use strict";m.d(K,{A:function(){return R},E:function(){return P}});var G=m(3144),W=m(5671),A=m(353),U=m(4850);function R(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A.P;return(0,U.U)(function(D){return new P(D,E.now())})}var P=(0,G.Z)(function E(D,j){(0,W.Z)(this,E),this.value=D,this.timestamp=j})},6454:function(De,K,m){"use strict";m.d(K,{r:function(){return A}});var G=m(7451),W=m(4096);function A(U,R){return new G.y(function(P){var E=new W.w,D=0;return E.add(R.schedule(function(){D!==U.length?(P.next(U[D++]),P.closed||E.add(this.schedule())):P.complete()})),E})}},6389:function(De,K,m){"use strict";m.d(K,{Q:function(){return U}});var G=m(7451),W=m(4096),A=m(5430);function U(R,P){if(!R)throw new Error("Iterable cannot be null");return new G.y(function(E){var j,D=new W.w;return D.add(function(){j&&"function"==typeof j.return&&j.return()}),D.add(P.schedule(function(){j=R[A.hZ](),D.add(P.schedule(function(){if(!E.closed){var L,v;try{var k=j.next();L=k.value,v=k.done}catch(b){return void E.error(b)}v?E.complete():(E.next(L),this.schedule())}}))})),D})}},8687:function(De,K,m){"use strict";m.d(K,{c:function(){return A}});var G=m(7451),W=m(4096);function A(U,R){return new G.y(function(P){var E=new W.w;return E.add(R.schedule(function(){return U.then(function(D){E.add(R.schedule(function(){P.next(D),E.add(R.schedule(function(){return P.complete()}))}))},function(D){E.add(R.schedule(function(){return P.error(D)}))})})),E})}},6266:function(De,K,m){"use strict";m.d(K,{x:function(){return k}});var G=m(7451),W=m(4096),A=m(3821);var R=m(8687),P=m(6454),E=m(6389),D=m(8845),j=m(8955),L=m(8515),v=m(2198);function k(b,O){if(null!=b){if((0,D.c)(b))return function U(b,O){return new G.y(function(S){var y=new W.w;return y.add(O.schedule(function(){var T=b[A.L]();y.add(T.subscribe({next:function(x){y.add(O.schedule(function(){return S.next(x)}))},error:function(x){y.add(O.schedule(function(){return S.error(x)}))},complete:function(){y.add(O.schedule(function(){return S.complete()}))}}))})),y})}(b,O);if((0,j.t)(b))return(0,R.c)(b,O);if((0,L.z)(b))return(0,P.r)(b,O);if((0,v.T)(b)||"string"==typeof b)return(0,E.Q)(b,O)}throw new TypeError((null!==b&&typeof b||b)+" is not observable")}},6686:function(De,K,m){"use strict";m.d(K,{o:function(){return E}});var G=m(5671),W=m(3144),A=m(136),U=m(9388),P=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(v,k){return(0,G.Z)(this,L),j.call(this)}return(0,W.Z)(L,[{key:"schedule",value:function(k){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),L}(m(4096).w),E=function(D){(0,A.Z)(L,D);var j=(0,U.Z)(L);function L(v,k){var b;return(0,G.Z)(this,L),(b=j.call(this,v,k)).scheduler=v,b.work=k,b.pending=!1,b}return(0,W.Z)(L,[{key:"schedule",value:function(k){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=k;var O=this.id,S=this.scheduler;return null!=O&&(this.id=this.recycleAsyncId(S,O,b)),this.pending=!0,this.delay=b,this.id=this.id||this.requestAsyncId(S,this.id,b),this}},{key:"requestAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(k.flush.bind(k,this),O)}},{key:"recycleAsyncId",value:function(k,b){var O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==O&&this.delay===O&&!1===this.pending)return b;clearInterval(b)}},{key:"execute",value:function(k,b){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var O=this._execute(k,b);if(O)return O;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(k,b){var O=!1,S=void 0;try{this.work(k)}catch(y){O=!0,S=!!y&&y||new Error(y)}if(O)return this.unsubscribe(),S}},{key:"_unsubscribe",value:function(){var k=this.id,b=this.scheduler,O=b.actions,S=O.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==S&&O.splice(S,1),null!=k&&(this.id=this.recycleAsyncId(b,k,null)),this.delay=null}}]),L}(P)},198:function(De,K,m){"use strict";m.d(K,{v:function(){return j}});var G=m(5671),W=m(3144),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(2221),j=function(L){(0,P.Z)(k,L);var v=(0,E.Z)(k);function k(b){var O,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D.b.now;return(0,G.Z)(this,k),(O=v.call(this,b,function(){return k.delegate&&k.delegate!==(0,A.Z)(O)?k.delegate.now():S()})).actions=[],O.active=!1,O.scheduled=void 0,O}return(0,W.Z)(k,[{key:"schedule",value:function(O){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,y=arguments.length>2?arguments[2]:void 0;return k.delegate&&k.delegate!==this?k.delegate.schedule(O,S,y):(0,U.Z)((0,R.Z)(k.prototype),"schedule",this).call(this,O,S,y)}},{key:"flush",value:function(O){var S=this.actions;if(this.active)S.push(O);else{var y;this.active=!0;do{if(y=O.execute(O.state,O.delay))break}while(O=S.shift());if(this.active=!1,y){for(;O=S.shift();)O.unsubscribe();throw y}}}}]),k}(D.b)},9027:function(De,K,m){"use strict";m.d(K,{h:function(){return L},y:function(){return j}});var G=m(3237),W=m(1120),A=m(5671),U=m(3144),R=m(136),P=m(9388),E=m(6686),j=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(){var O,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return(0,A.Z)(this,b),(O=k.call(this,S,function(){return O.frame})).maxFrames=y,O.frame=0,O.index=-1,O}return(0,U.Z)(b,[{key:"flush",value:function(){for(var T,M,S=this.actions,y=this.maxFrames;(M=S[0])&&M.delay<=y&&(S.shift(),this.frame=M.delay,!(T=M.execute(M.state,M.delay))););if(T){for(;M=S.shift();)M.unsubscribe();throw T}}}]),b}(m(198).v);j.frameTimeFactor=10;var L=function(v){(0,R.Z)(b,v);var k=(0,P.Z)(b);function b(O,S){var y,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O.index+=1;return(0,A.Z)(this,b),(y=k.call(this,O,S)).scheduler=O,y.work=S,y.index=T,y.active=!0,y.index=O.index=T,y}return(0,U.Z)(b,[{key:"schedule",value:function(S){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!this.id)return(0,G.Z)((0,W.Z)(b.prototype),"schedule",this).call(this,S,y);this.active=!1;var T=new b(this.scheduler,this.work);return this.add(T),T.schedule(S,y)}},{key:"requestAsyncId",value:function(S,y){var T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.delay=S.frame+T;var M=S.actions;return M.push(this),M.sort(b.sortActions),!0}},{key:"recycleAsyncId",value:function(S,y){arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},{key:"_execute",value:function(S,y){if(!0===this.active)return(0,G.Z)((0,W.Z)(b.prototype),"_execute",this).call(this,S,y)}}],[{key:"sortActions",value:function(S,y){return S.delay===y.delay?S.index===y.index?0:S.index>y.index?1:-1:S.delay>y.delay?1:-1}}]),b}(E.o)},352:function(De,K,m){"use strict";m.d(K,{r:function(){return k},Z:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"requestAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0?(0,A.Z)((0,U.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,x):(T.actions.push(this),T.scheduled||(T.scheduled=requestAnimationFrame(function(){return T.flush(null)})))}},{key:"recycleAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==x&&x>0||null===x&&this.delay>0)return(0,A.Z)((0,U.Z)(S.prototype),"recycleAsyncId",this).call(this,T,M,x);0===T.actions.length&&(cancelAnimationFrame(M),T.scheduled=void 0)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S,[{key:"flush",value:function(T){this.active=!0,this.scheduled=void 0;var x,M=this.actions,N=-1,F=M.length;T=T||M.shift();do{if(x=T.execute(T.state,T.delay))break}while(++N<F&&(T=M.shift()));if(this.active=!1,x){for(;++N<F&&(T=M.shift());)T.unsubscribe();throw x}}}]),S}(m(198).v),v=new L(D),k=v},9931:function(De,K,m){"use strict";m.d(K,{e:function(){return b},E:function(){return k}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(1450),j=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(T,M){var x;return(0,G.Z)(this,y),(x=S.call(this,T,M)).scheduler=T,x.work=M,x}return(0,W.Z)(y,[{key:"requestAsyncId",value:function(M,x){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==N&&N>0?(0,A.Z)((0,U.Z)(y.prototype),"requestAsyncId",this).call(this,M,x,N):(M.actions.push(this),M.scheduled||(M.scheduled=E.H.setImmediate(M.flush.bind(M,null))))}},{key:"recycleAsyncId",value:function(M,x){var N=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==N&&N>0||null===N&&this.delay>0)return(0,A.Z)((0,U.Z)(y.prototype),"recycleAsyncId",this).call(this,M,x,N);0===M.actions.length&&(E.H.clearImmediate(x),M.scheduled=void 0)}}]),y}(m(6686).o),v=function(O){(0,R.Z)(y,O);var S=(0,P.Z)(y);function y(){return(0,G.Z)(this,y),S.apply(this,arguments)}return(0,W.Z)(y,[{key:"flush",value:function(M){this.active=!0,this.scheduled=void 0;var N,x=this.actions,F=-1,X=x.length;M=M||x.shift();do{if(N=M.execute(M.state,M.delay))break}while(++F<X&&(M=x.shift()));if(this.active=!1,N){for(;++F<X&&(M=x.shift());)M.unsubscribe();throw N}}}]),y}(m(198).v),k=new v(j),b=k},353:function(De,K,m){"use strict";m.d(K,{P:function(){return U},z:function(){return A}});var G=m(6686),A=new(m(198).v)(G.o),U=A},341:function(De,K,m){"use strict";m.d(K,{c:function(){return k},N:function(){return v}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),D=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(y,T){var M;return(0,G.Z)(this,S),(M=O.call(this,y,T)).scheduler=y,M.work=T,M}return(0,W.Z)(S,[{key:"schedule",value:function(T){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return M>0?(0,A.Z)((0,U.Z)(S.prototype),"schedule",this).call(this,T,M):(this.delay=M,this.state=T,this.scheduler.flush(this),this)}},{key:"execute",value:function(T,M){return M>0||this.closed?(0,A.Z)((0,U.Z)(S.prototype),"execute",this).call(this,T,M):this._execute(T,M)}},{key:"requestAsyncId",value:function(T,M){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==x&&x>0||null===x&&this.delay>0?(0,A.Z)((0,U.Z)(S.prototype),"requestAsyncId",this).call(this,T,M,x):T.flush(this)}}]),S}(m(6686).o),L=function(b){(0,R.Z)(S,b);var O=(0,P.Z)(S);function S(){return(0,G.Z)(this,S),O.apply(this,arguments)}return(0,W.Z)(S)}(m(198).v),v=new L(D),k=v},5430:function(De,K,m){"use strict";m.d(K,{hZ:function(){return W}});var W=function G(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:function(De,K,m){"use strict";m.d(K,{L:function(){return G}});var G="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:function(De,K,m){"use strict";m.d(K,{b:function(){return G}});var G="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:function(De,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return A.prototype=Object.create(Error.prototype),A}()},4450:function(De,K,m){"use strict";m.d(K,{K:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return A.prototype=Object.create(Error.prototype),A}()},1450:function(De,K,m){"use strict";m.d(K,{H:function(){return R}});var G=1,W=Promise.resolve(),A={};function U(E){return E in A&&(delete A[E],!0)}var R={setImmediate:function(D){var j=G++;return A[j]=!0,W.then(function(){return U(j)&&D()}),j},clearImmediate:function(D){U(D)}}},5279:function(De,K,m){"use strict";m.d(K,{N:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return A.prototype=Object.create(Error.prototype),A}()},854:function(De,K,m){"use strict";m.d(K,{W:function(){return W}});var W=function(){function A(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return A.prototype=Object.create(Error.prototype),A}()},7964:function(De,K,m){"use strict";m.d(K,{B:function(){return W}});var W=function(){function A(U){return Error.call(this),this.message=U?"".concat(U.length," errors occurred during unsubscription:\n").concat(U.map(function(R,P){return"".concat(P+1,") ").concat(R.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=U,this}return A.prototype=Object.create(Error.prototype),A}()},5128:function(De,K,m){"use strict";function G(W,A){for(var U=0,R=A.length;U<R;U++)for(var P=A[U],E=Object.getOwnPropertyNames(P.prototype),D=0,j=E.length;D<j;D++){var L=E[D];W.prototype[L]=P.prototype[L]}}m.d(K,{e:function(){return G}})},9476:function(De,K,m){"use strict";m.d(K,{_:function(){return W}});var G=m(3489);function W(A){for(;A;){var U=A,R=U.closed,P=U.destination,E=U.isStopped;if(R||E)return!1;A=P&&P instanceof G.L?P:null}return!0}},2782:function(De,K,m){"use strict";function G(W){setTimeout(function(){throw W},0)}m.d(K,{z:function(){return G}})},5379:function(De,K,m){"use strict";function G(W){return W}m.d(K,{y:function(){return G}})},6688:function(De,K,m){"use strict";m.d(K,{k:function(){return G}});var G=Array.isArray||function(W){return W&&"number"==typeof W.length}},8515:function(De,K,m){"use strict";m.d(K,{z:function(){return G}});var G=function(A){return A&&"number"==typeof A.length&&"function"!=typeof A}},2697:function(De,K,m){"use strict";function G(W){return W instanceof Date&&!isNaN(+W)}m.d(K,{J:function(){return G}})},7043:function(De,K,m){"use strict";function G(W){return"function"==typeof W}m.d(K,{m:function(){return G}})},8845:function(De,K,m){"use strict";m.d(K,{c:function(){return W}});var G=m(3821);function W(A){return A&&"function"==typeof A[G.L]}},2198:function(De,K,m){"use strict";m.d(K,{T:function(){return W}});var G=m(5430);function W(A){return A&&"function"==typeof A[G.hZ]}},4241:function(De,K,m){"use strict";m.d(K,{k:function(){return W}});var G=m(6688);function W(A){return!(0,G.k)(A)&&A-parseFloat(A)+1>=0}},7830:function(De,K,m){"use strict";function G(W){return null!==W&&"object"==typeof W}m.d(K,{K:function(){return G}})},4715:function(De,K,m){"use strict";m.d(K,{b:function(){return W}});var G=m(7451);function W(A){return!!A&&(A instanceof G.y||"function"==typeof A.lift&&"function"==typeof A.subscribe)}},8955:function(De,K,m){"use strict";function G(W){return!!W&&"function"!=typeof W.subscribe&&"function"==typeof W.then}m.d(K,{t:function(){return G}})},2866:function(De,K,m){"use strict";function G(W){return W&&"function"==typeof W.schedule}m.d(K,{K:function(){return G}})},7876:function(De,K,m){"use strict";function G(){}m.d(K,{Z:function(){return G}})},5884:function(De,K,m){"use strict";function G(W,A){function U(){return!U.pred.apply(U.thisArg,arguments)}return U.pred=W,U.thisArg=A,U}m.d(K,{f:function(){return G}})},4843:function(De,K,m){"use strict";m.d(K,{U:function(){return A},z:function(){return W}});var G=m(5379);function W(){for(var U=arguments.length,R=new Array(U),P=0;P<U;P++)R[P]=arguments[P];return A(R)}function A(U){return 0===U.length?G.y:1===U.length?U[0]:function(P){return U.reduce(function(E,D){return D(E)},P)}}},797:function(De,K,m){"use strict";m.d(K,{J:function(){return U}});var G="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,A="undefined"!=typeof global&&global,U=G||A||W;!function(){if(!U)throw new Error("RxJS could not find any global context (window, self, global)")}()},3071:function(De,K,m){"use strict";m.d(K,{s:function(){return L}});var G=m(3650),W=m(3445),A=m(3720),U=m(1810),R=m(8515),P=m(8955),E=m(7830),D=m(5430),j=m(3821),L=function(k){if(k&&"function"==typeof k[j.L])return(0,U.h)(k);if((0,R.z)(k))return(0,G.V)(k);if((0,P.t)(k))return(0,W.A)(k);if(k&&"function"==typeof k[D.hZ])return(0,A.u)(k);var b=(0,E.K)(k)?"an invalid object":"'".concat(k,"'"),O="You provided ".concat(b," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(O)}},3650:function(De,K,m){"use strict";m.d(K,{V:function(){return G}});var G=function(A){return function(U){for(var R=0,P=A.length;R<P&&!U.closed;R++)U.next(A[R]);U.complete()}}},3720:function(De,K,m){"use strict";m.d(K,{u:function(){return W}});var G=m(5430),W=function(U){return function(R){for(var P=U[G.hZ]();;){var E=void 0;try{E=P.next()}catch(D){return R.error(D),R}if(E.done){R.complete();break}if(R.next(E.value),R.closed)break}return"function"==typeof P.return&&R.add(function(){P.return&&P.return()}),R}}},1810:function(De,K,m){"use strict";m.d(K,{h:function(){return W}});var G=m(3821),W=function(U){return function(R){var P=U[G.L]();if("function"!=typeof P.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return P.subscribe(R)}}},3445:function(De,K,m){"use strict";m.d(K,{A:function(){return W}});var G=m(2782),W=function(U){return function(R){return U.then(function(P){R.closed||(R.next(P),R.complete())},function(P){return R.error(P)}).then(null,G.z),R}}},9054:function(De,K,m){"use strict";m.d(K,{D:function(){return U}});var G=m(1869),W=m(3071),A=m(7451);function U(R,P,E,D){var j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new G.d(R,E,D);if(!j.closed)return P instanceof A.y?P.subscribe(j):(0,W.s)(P)(j)}},5221:function(De,K,m){"use strict";m.d(K,{Y:function(){return U}});var G=m(3489),W=m(7668),A=m(3292);function U(R,P,E){if(R){if(R instanceof G.L)return R;if(R[W.b])return R[W.b]()}return R||P||E?new G.L(R,P,E):new G.L(A.c)}},6650:function(De,K,m){"use strict";m.r(K),m.d(K,{audit:function(){return G.U},auditTime:function(){return W.e},buffer:function(){return j},bufferCount:function(){return S},bufferTime:function(){return F},bufferToggle:function(){return ce},bufferWhen:function(){return at},catchError:function(){return xt.K},combineAll:function(){return Ze},combineLatest:function(){return Ot},concat:function(){return Ct},concatAll:function(){return We.u},concatMap:function(){return lt.b},concatMapTo:function(){return dt},count:function(){return Ut.Q},debounce:function(){return B},debounceTime:function(){return Ye.b},defaultIfEmpty:function(){return ge.d},delay:function(){return t.g},delayWhen:function(){return Zt},dematerialize:function(){return Kt},distinct:function(){return Be},distinctUntilChanged:function(){return fe.x},distinctUntilKeyChanged:function(){return Ne},elementAt:function(){return on},endWith:function(){return ln},every:function(){return En},exhaust:function(){return At},exhaustMap:function(){return ze},expand:function(){return qe},filter:function(){return ct.h},finalize:function(){return Hn.x},find:function(){return Yt},findIndex:function(){return gt},first:function(){return yt.P},flatMap:function(){return ki.VS},groupBy:function(){return nn.v},ignoreElements:function(){return Gn},isEmpty:function(){return ar},last:function(){return Gi.Z},map:function(){return St.U},mapTo:function(){return Pa.h},materialize:function(){return ua},max:function(){return yr},merge:function(){return Ni},mergeAll:function(){return Ms.J},mergeMap:function(){return ki.zg},mergeMapTo:function(){return Ko},mergeScan:function(){return qr},min:function(){return Ar},multicast:function(){return Fi.O},observeOn:function(){return Uo.QV},onErrorResumeNext:function(){return Ca},pairwise:function(){return ls.G},partition:function(){return fo},pluck:function(){return La},publish:function(){return gu},publishBehavior:function(){return Ui},publishLast:function(){return qi},publishReplay:function(){return Jt},race:function(){return Mi},reduce:function(){return Yn},refCount:function(){return Vi.x},repeat:function(){return Ho},repeatWhen:function(){return go},retry:function(){return xn},retryWhen:function(){return Ji},sample:function(){return ei},sampleTime:function(){return Do},scan:function(){return ri.R},sequenceEqual:function(){return oo},share:function(){return Na.B},shareReplay:function(){return ao.d},single:function(){return ka},skip:function(){return Hi.T},skipLast:function(){return Yi},skipUntil:function(){return Tf},skipWhile:function(){return so},startWith:function(){return xc.O},subscribeOn:function(){return Dc},switchAll:function(){return Sf},switchMap:function(){return cs.w},switchMapTo:function(){return Ys},take:function(){return jt.q},takeLast:function(){return Vs.h},takeUntil:function(){return Ku.R},takeWhile:function(){return Ul.o},tap:function(){return nh.b},throttle:function(){return ds.P},throttleTime:function(){return Tr},throwIfEmpty:function(){return Bt.T},timeInterval:function(){return ih.J},timeout:function(){return Te},timeoutWith:function(){return qu},timestamp:function(){return se.A},toArray:function(){return Oe},window:function(){return mt},windowCount:function(){return sr},windowTime:function(){return jl},windowToggle:function(){return oh},windowWhen:function(){return Ju},withLatestFrom:function(){return hs},zip:function(){return ia},zipAll:function(){return ah}});var G=m(384),W=m(7568),A=m(7326),U=m(136),R=m(9388),P=m(5671),E=m(3144),D=m(1177);function j(Ie){return function(_e){return _e.lift(new L(Ie))}}var L=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingNotifier=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new v(_e,this.closingNotifier))}}]),Ie}(),v=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).buffer=[],Ge.add((0,D.ft)(ke,new D.IY((0,A.Z)(Ge)))),Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.buffer.push(ke)}},{key:"notifyNext",value:function(){var ke=this.buffer;this.buffer=[],this.destination.next(ke)}}]),_e}(D.Ds),k=m(3237),b=m(1120),O=m(3489);function S(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(xe){return xe.lift(new y(Ie,Ue))}}var y=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.bufferSize=Ue,this.startBufferEvery=_e,this.subscriberClass=_e&&Ue!==_e?M:T}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new this.subscriberClass(_e,this.bufferSize,this.startBufferEvery))}}]),Ie}(),T=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).bufferSize=ke,Ge.buffer=[],Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.buffer;Ge.push(ke),Ge.length==this.bufferSize&&(this.destination.next(Ge),this.buffer=[])}},{key:"_complete",value:function(){var ke=this.buffer;ke.length>0&&this.destination.next(ke),(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),M=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).bufferSize=ke,it.startBufferEvery=Ge,it.buffers=[],it.count=0,it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.bufferSize,it=this.startBufferEvery,Wt=this.buffers,Cn=this.count;this.count++,Cn%it==0&&Wt.push([]);for(var gr=Wt.length;gr--;){var Pr=Wt[gr];Pr.push(ke),Pr.length===Ge&&(Wt.splice(gr,1),this.destination.next(Pr))}}},{key:"_complete",value:function(){for(var ke=this.buffers,Ge=this.destination;ke.length>0;){var it=ke.shift();it.length>0&&Ge.next(it)}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}}]),_e}(O.L),x=m(353),N=m(2866);function F(Ie){var Ue=arguments.length,_e=x.P;(0,N.K)(arguments[arguments.length-1])&&(_e=arguments[arguments.length-1],Ue--);var xe=null;Ue>=2&&(xe=arguments[1]);var ke=Number.POSITIVE_INFINITY;return Ue>=3&&(ke=arguments[2]),function(it){return it.lift(new X(Ie,xe,ke,_e))}}var X=function(){function Ie(Ue,_e,xe,ke){(0,P.Z)(this,Ie),this.bufferTimeSpan=Ue,this.bufferCreationInterval=_e,this.maxBufferSize=xe,this.scheduler=ke}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Y(_e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}]),Ie}(),$=(0,E.Z)(function Ie(){(0,P.Z)(this,Ie),this.buffer=[]}),Y=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it,Wt){var Cn;(0,P.Z)(this,_e),(Cn=Ue.call(this,xe)).bufferTimeSpan=ke,Cn.bufferCreationInterval=Ge,Cn.maxBufferSize=it,Cn.scheduler=Wt,Cn.contexts=[];var gr=Cn.openContext();if(Cn.timespanOnly=null==Ge||Ge<0,Cn.timespanOnly){var Pr={subscriber:(0,A.Z)(Cn),context:gr,bufferTimeSpan:ke};Cn.add(gr.closeAction=Wt.schedule(Q,ke,Pr))}else{var ms={subscriber:(0,A.Z)(Cn),context:gr},_l={bufferTimeSpan:ke,bufferCreationInterval:Ge,subscriber:(0,A.Z)(Cn),scheduler:Wt};Cn.add(gr.closeAction=Wt.schedule(be,ke,ms)),Cn.add(Wt.schedule(ne,Ge,_l))}return Cn}return(0,E.Z)(_e,[{key:"_next",value:function(ke){for(var Wt,Ge=this.contexts,it=Ge.length,Cn=0;Cn<it;Cn++){var gr=Ge[Cn],Pr=gr.buffer;Pr.push(ke),Pr.length==this.maxBufferSize&&(Wt=gr)}Wt&&this.onBufferFull(Wt)}},{key:"_error",value:function(ke){this.contexts.length=0,(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){for(var ke=this.contexts,Ge=this.destination;ke.length>0;){var it=ke.shift();Ge.next(it.buffer)}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.contexts=null}},{key:"onBufferFull",value:function(ke){this.closeContext(ke);var Ge=ke.closeAction;if(Ge.unsubscribe(),this.remove(Ge),!this.closed&&this.timespanOnly){ke=this.openContext();var it=this.bufferTimeSpan,Wt={subscriber:this,context:ke,bufferTimeSpan:it};this.add(ke.closeAction=this.scheduler.schedule(Q,it,Wt))}}},{key:"openContext",value:function(){var ke=new $;return this.contexts.push(ke),ke}},{key:"closeContext",value:function(ke){this.destination.next(ke.buffer);var Ge=this.contexts;(Ge?Ge.indexOf(ke):-1)>=0&&Ge.splice(Ge.indexOf(ke),1)}}]),_e}(O.L);function Q(Ie){var Ue=Ie.subscriber,_e=Ie.context;_e&&Ue.closeContext(_e),Ue.closed||(Ie.context=Ue.openContext(),Ie.context.closeAction=this.schedule(Ie,Ie.bufferTimeSpan))}function ne(Ie){var Ue=Ie.bufferCreationInterval,_e=Ie.bufferTimeSpan,xe=Ie.subscriber,ke=Ie.scheduler,Ge=xe.openContext();xe.closed||(xe.add(Ge.closeAction=ke.schedule(be,_e,{subscriber:xe,context:Ge})),this.schedule(Ie,Ue))}function be(Ie){var Ue=Ie.subscriber,_e=Ie.context;Ue.closeContext(_e)}var pe=m(4096),de=m(9054),le=m(826);function ce(Ie,Ue){return function(xe){return xe.lift(new me(Ie,Ue))}}var me=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.openings=Ue,this.closingSelector=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new je(_e,this.openings,this.closingSelector))}}]),Ie}(),je=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).closingSelector=Ge,it.contexts=[],it.add((0,de.D)((0,A.Z)(it),ke)),it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.contexts,it=Ge.length,Wt=0;Wt<it;Wt++)Ge[Wt].buffer.push(ke)}},{key:"_error",value:function(ke){for(var Ge=this.contexts;Ge.length>0;){var it=Ge.shift();it.subscription.unsubscribe(),it.buffer=null,it.subscription=null}this.contexts=null,(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){for(var ke=this.contexts;ke.length>0;){var Ge=ke.shift();this.destination.next(Ge.buffer),Ge.subscription.unsubscribe(),Ge.buffer=null,Ge.subscription=null}this.contexts=null,(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(ke,Ge){ke?this.closeBuffer(ke):this.openBuffer(Ge)}},{key:"notifyComplete",value:function(ke){this.closeBuffer(ke.context)}},{key:"openBuffer",value:function(ke){try{var it=this.closingSelector.call(this,ke);it&&this.trySubscribe(it)}catch(Wt){this._error(Wt)}}},{key:"closeBuffer",value:function(ke){var Ge=this.contexts;if(Ge&&ke){var it=ke.buffer,Wt=ke.subscription;this.destination.next(it),Ge.splice(Ge.indexOf(ke),1),this.remove(Wt),Wt.unsubscribe()}}},{key:"trySubscribe",value:function(ke){var Ge=this.contexts,Wt=new pe.w,Cn={buffer:[],subscription:Wt};Ge.push(Cn);var gr=(0,de.D)(this,ke,Cn);!gr||gr.closed?this.closeBuffer(Cn):(gr.context=Cn,this.add(gr),Wt.add(gr))}}]),_e}(le.L);function at(Ie){return function(Ue){return Ue.lift(new Mt(Ie))}}var Mt=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingSelector=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Tt(_e,this.closingSelector))}}]),Ie}(),Tt=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).closingSelector=ke,Ge.subscribing=!1,Ge.openBuffer(),Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.buffer.push(ke)}},{key:"_complete",value:function(){var ke=this.buffer;ke&&this.destination.next(ke),(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){this.buffer=void 0,this.subscribing=!1}},{key:"notifyNext",value:function(){this.openBuffer()}},{key:"notifyComplete",value:function(){this.subscribing?this.complete():this.openBuffer()}},{key:"openBuffer",value:function(){var ke=this.closingSubscription;ke&&(this.remove(ke),ke.unsubscribe());var it,Ge=this.buffer;this.buffer&&this.destination.next(Ge),this.buffer=[];try{it=(0,this.closingSelector)()}catch(Cn){return this.error(Cn)}ke=new pe.w,this.closingSubscription=ke,this.add(ke),this.subscribing=!0,ke.add((0,D.ft)(it,new D.IY(this))),this.subscribing=!1}}]),_e}(D.Ds),xt=m(7221),Lt=m(6053);function Ze(Ie){return function(Ue){return Ue.lift(new Lt.Ms(Ie))}}var $t=m(4902),Ft=m(6688),fn=m(3527);function Ot(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];var xe=null;return"function"==typeof Ue[Ue.length-1]&&(xe=Ue.pop()),1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0].slice()),function(ke){return ke.lift.call((0,fn.D)([ke].concat((0,$t.Z)(Ue))),new Lt.Ms(xe))}}var _t=m(1961);function Ct(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(xe){return xe.lift.call(_t.z.apply(void 0,[xe].concat(Ue)))}}var We=m(534),lt=m(1406);function dt(Ie,Ue){return(0,lt.b)(function(){return Ie},Ue)}var Ut=m(3906);function B(Ie){return function(Ue){return Ue.lift(new H(Ie))}}var H=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.durationSelector=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new tt(_e,this.durationSelector))}}]),Ie}(),tt=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).durationSelector=ke,Ge.hasValue=!1,Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){try{var Ge=this.durationSelector.call(this,ke);Ge&&this._tryNext(ke,Ge)}catch(it){this.destination.error(it)}}},{key:"_complete",value:function(){this.emitValue(),this.destination.complete()}},{key:"_tryNext",value:function(ke,Ge){var it=this.durationSubscription;this.value=ke,this.hasValue=!0,it&&(it.unsubscribe(),this.remove(it)),(it=(0,D.ft)(Ge,new D.IY(this)))&&!it.closed&&this.add(this.durationSubscription=it)}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){if(this.hasValue){var ke=this.value,Ge=this.durationSubscription;Ge&&(this.durationSubscription=void 0,Ge.unsubscribe(),this.remove(Ge)),this.value=void 0,this.hasValue=!1,(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}}}]),_e}(D.Ds),Ye=m(13),ge=m(7314),t=m(943),Dt=m(7451);function Zt(Ie,Ue){return Ue?function(_e){return new qt(_e,Ue).lift(new zt(Ie))}:function(_e){return _e.lift(new zt(Ie))}}var zt=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.delayDurationSelector=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new sn(_e,this.delayDurationSelector))}}]),Ie}(),sn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).delayDurationSelector=ke,Ge.completed=!1,Ge.delayNotifierSubscriptions=[],Ge.index=0,Ge}return(0,E.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it,Wt,Cn){this.destination.next(ke),this.removeSubscription(Cn),this.tryComplete()}},{key:"notifyError",value:function(ke,Ge){this._error(ke)}},{key:"notifyComplete",value:function(ke){var Ge=this.removeSubscription(ke);Ge&&this.destination.next(Ge),this.tryComplete()}},{key:"_next",value:function(ke){var Ge=this.index++;try{var it=this.delayDurationSelector(ke,Ge);it&&this.tryDelay(it,ke)}catch(Wt){this.destination.error(Wt)}}},{key:"_complete",value:function(){this.completed=!0,this.tryComplete(),this.unsubscribe()}},{key:"removeSubscription",value:function(ke){ke.unsubscribe();var Ge=this.delayNotifierSubscriptions.indexOf(ke);return-1!==Ge&&this.delayNotifierSubscriptions.splice(Ge,1),ke.outerValue}},{key:"tryDelay",value:function(ke,Ge){var it=(0,de.D)(this,ke,Ge);it&&!it.closed&&(this.destination.add(it),this.delayNotifierSubscriptions.push(it))}},{key:"tryComplete",value:function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}]),_e}(le.L),qt=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this)).source=xe,Ge.subscriptionDelay=ke,Ge}return(0,E.Z)(_e,[{key:"_subscribe",value:function(ke){this.subscriptionDelay.subscribe(new yn(ke,this.source))}}]),_e}(Dt.y),yn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this)).parent=xe,Ge.source=ke,Ge.sourceSubscribed=!1,Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.subscribeToSource()}},{key:"_error",value:function(ke){this.unsubscribe(),this.parent.error(ke)}},{key:"_complete",value:function(){this.unsubscribe(),this.subscribeToSource()}},{key:"subscribeToSource",value:function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}]),_e}(O.L);function Kt(){return function(Ue){return Ue.lift(new Xt)}}var Xt=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Je(_e))}}]),Ie}(),Je=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ue.call(this,xe)}return(0,E.Z)(_e,[{key:"_next",value:function(ke){ke.observe(this.destination)}}]),_e}(O.L);function Be(Ie,Ue){return function(_e){return _e.lift(new te(Ie,Ue))}}var te=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.keySelector=Ue,this.flushes=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ye(_e,this.keySelector,this.flushes))}}]),Ie}(),ye=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).keySelector=ke,it.values=new Set,Ge&&it.add((0,D.ft)(Ge,new D.IY((0,A.Z)(it)))),it}return(0,E.Z)(_e,[{key:"notifyNext",value:function(){this.values.clear()}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"_next",value:function(ke){this.keySelector?this._useKeySelector(ke):this._finalizeNext(ke,ke)}},{key:"_useKeySelector",value:function(ke){var Ge,it=this.destination;try{Ge=this.keySelector(ke)}catch(Wt){return void it.error(Wt)}this._finalizeNext(Ge,ke)}},{key:"_finalizeNext",value:function(ke,Ge){var it=this.values;it.has(ke)||(it.add(ke),this.destination.next(Ge))}}]),_e}(D.Ds),fe=m(5778);function Ne(Ie,Ue){return(0,fe.x)(function(_e,xe){return Ue?Ue(_e[Ie],xe[Ie]):_e[Ie]===xe[Ie]})}var st=m(4231),ct=m(9664),Bt=m(4907),jt=m(2986);function on(Ie,Ue){if(Ie<0)throw new st.W;var _e=arguments.length>=2;return function(xe){return xe.pipe((0,ct.h)(function(ke,Ge){return Ge===Ie}),(0,jt.q)(1),_e?(0,ge.d)(Ue):(0,Bt.T)(function(){return new st.W}))}}var vn=m(1086);function ln(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(xe){return(0,_t.z)(xe,vn.of.apply(void 0,Ue))}}function En(Ie,Ue){return function(_e){return _e.lift(new hn(Ie,Ue,_e))}}var hn=function(){function Ie(Ue,_e,xe){(0,P.Z)(this,Ie),this.predicate=Ue,this.thisArg=_e,this.source=xe}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new mn(_e,this.predicate,this.thisArg,this.source))}}]),Ie}(),mn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it){var Wt;return(0,P.Z)(this,_e),(Wt=Ue.call(this,xe)).predicate=ke,Wt.thisArg=Ge,Wt.source=it,Wt.index=0,Wt.thisArg=Ge||(0,A.Z)(Wt),Wt}return(0,E.Z)(_e,[{key:"notifyComplete",value:function(ke){this.destination.next(ke),this.destination.complete()}},{key:"_next",value:function(ke){var Ge=!1;try{Ge=this.predicate.call(this.thisArg,ke,this.index++,this.source)}catch(it){return void this.destination.error(it)}Ge||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(O.L);function At(){return function(Ie){return Ie.lift(new Et)}}var Et=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new et(_e))}}]),Ie}(),et=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe){var ke;return(0,P.Z)(this,_e),(ke=Ue.call(this,xe)).hasCompleted=!1,ke.hasSubscription=!1,ke}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.hasSubscription||(this.hasSubscription=!0,this.add((0,D.ft)(ke,new D.IY(this))))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(D.Ds),St=m(4850);function ze(Ie,Ue){return Ue?function(_e){return _e.pipe(ze(function(xe,ke){return(0,fn.D)(Ie(xe,ke)).pipe((0,St.U)(function(Ge,it){return Ue(xe,Ge,ke,it)}))}))}:function(_e){return _e.lift(new Ke(Ie))}}var Ke=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.project=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Re(_e,this.project))}}]),Ie}(),Re=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).project=ke,Ge.hasSubscription=!1,Ge.hasCompleted=!1,Ge.index=0,Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.hasSubscription||this.tryNext(ke)}},{key:"tryNext",value:function(ke){var Ge,it=this.index++;try{Ge=this.project(ke,it)}catch(Wt){return void this.destination.error(Wt)}this.hasSubscription=!0,this._innerSub(Ge)}},{key:"_innerSub",value:function(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Wt=(0,D.ft)(ke,Ge);Wt!==Ge&&it.add(Wt)}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(ke){this.destination.next(ke)}},{key:"notifyError",value:function(ke){this.destination.error(ke)}},{key:"notifyComplete",value:function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}]),_e}(D.Ds);function qe(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,_e=arguments.length>2?arguments[2]:void 0;return Ue=(Ue||0)<1?Number.POSITIVE_INFINITY:Ue,function(xe){return xe.lift(new vt(Ie,Ue,_e))}}var vt=function(){function Ie(Ue,_e,xe){(0,P.Z)(this,Ie),this.project=Ue,this.concurrent=_e,this.scheduler=xe}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new dn(_e,this.project,this.concurrent,this.scheduler))}}]),Ie}(),dn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it){var Wt;return(0,P.Z)(this,_e),(Wt=Ue.call(this,xe)).project=ke,Wt.concurrent=Ge,Wt.scheduler=it,Wt.index=0,Wt.active=0,Wt.hasCompleted=!1,Ge<Number.POSITIVE_INFINITY&&(Wt.buffer=[]),Wt}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.destination;if(Ge.closed)this._complete();else{var it=this.index++;if(this.active<this.concurrent){Ge.next(ke);try{var Cn=(0,this.project)(ke,it);if(this.scheduler){var gr={subscriber:this,result:Cn,value:ke,index:it};this.destination.add(this.scheduler.schedule(_e.dispatch,0,gr))}else this.subscribeToProjection(Cn,ke,it)}catch(ms){Ge.error(ms)}}else this.buffer.push(ke)}}},{key:"subscribeToProjection",value:function(ke,Ge,it){this.active++,this.destination.add((0,D.ft)(ke,new D.IY(this)))}},{key:"_complete",value:function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(ke){this._next(ke)}},{key:"notifyComplete",value:function(){var ke=this.buffer;this.active--,ke&&ke.length>0&&this._next(ke.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}],[{key:"dispatch",value:function(ke){var Ge=ke.subscriber,it=ke.result,Wt=ke.value,Cn=ke.index;Ge.subscribeToProjection(it,Wt,Cn)}}]),_e}(D.Ds),Hn=m(537);function Yt(Ie,Ue){if("function"!=typeof Ie)throw new TypeError("predicate is not a function");return function(_e){return _e.lift(new kt(Ie,_e,!1,Ue))}}var kt=function(){function Ie(Ue,_e,xe,ke){(0,P.Z)(this,Ie),this.predicate=Ue,this.source=_e,this.yieldIndex=xe,this.thisArg=ke}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new $e(_e,this.predicate,this.source,this.yieldIndex,this.thisArg))}}]),Ie}(),$e=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it,Wt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,xe)).predicate=ke,Cn.source=Ge,Cn.yieldIndex=it,Cn.thisArg=Wt,Cn.index=0,Cn}return(0,E.Z)(_e,[{key:"notifyComplete",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete(),this.unsubscribe()}},{key:"_next",value:function(ke){var Ge=this.predicate,it=this.thisArg,Wt=this.index++;try{Ge.call(it||this,ke,Wt,this.source)&&this.notifyComplete(this.yieldIndex?Wt:ke)}catch(gr){this.destination.error(gr)}}},{key:"_complete",value:function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}]),_e}(O.L);function gt(Ie,Ue){return function(_e){return _e.lift(new kt(Ie,_e,!0,Ue))}}var yt=m(7224),nn=m(4002);function Gn(){return function(Ue){return Ue.lift(new Vn)}}var Vn=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Wn(_e))}}]),Ie}(),Wn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){return(0,P.Z)(this,_e),Ue.apply(this,arguments)}return(0,E.Z)(_e,[{key:"_next",value:function(ke){}}]),_e}(O.L);function ar(){return function(Ie){return Ie.lift(new Or)}}var Or=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new hi(_e))}}]),Ie}(),hi=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ue.call(this,xe)}return(0,E.Z)(_e,[{key:"notifyComplete",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete()}},{key:"_next",value:function(ke){this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),_e}(O.L),Gi=m(8127),Pa=m(7604),Ra=m(9312);function ua(){return function(Ue){return Ue.lift(new ss)}}var ss=function(){function Ie(){(0,P.Z)(this,Ie)}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ta(_e))}}]),Ie}(),ta=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe){return(0,P.Z)(this,_e),Ue.call(this,xe)}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.destination.next(Ra.P.createNext(ke))}},{key:"_error",value:function(ke){var Ge=this.destination;Ge.next(Ra.P.createError(ke)),Ge.complete()}},{key:"_complete",value:function(){var ke=this.destination;ke.next(Ra.P.createComplete()),ke.complete()}}]),_e}(O.L),ri=m(2014),Vs=m(2821),zi=m(4843);function Yn(Ie,Ue){return arguments.length>=2?function(xe){return(0,zi.z)((0,ri.R)(Ie,Ue),(0,Vs.h)(1),(0,ge.d)(Ue))(xe)}:function(xe){return(0,zi.z)((0,ri.R)(function(ke,Ge,it){return Ie(ke,Ge,it+1)}),(0,Vs.h)(1))(xe)}}function yr(Ie){return Yn("function"==typeof Ie?function(_e,xe){return Ie(_e,xe)>0?_e:xe}:function(_e,xe){return _e>xe?_e:xe})}var Hr=m(6787);function Ni(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(xe){return xe.lift.call(Hr.T.apply(void 0,[xe].concat(Ue)))}}var Ms=m(9146),ki=m(1709);function Ko(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof Ue?(0,ki.zg)(function(){return Ie},Ue,_e):("number"==typeof Ue&&(_e=Ue),(0,ki.zg)(function(){return Ie},_e))}function qr(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return function(xe){return xe.lift(new Bi(Ie,Ue,_e))}}var Bi=function(){function Ie(Ue,_e,xe){(0,P.Z)(this,Ie),this.accumulator=Ue,this.seed=_e,this.concurrent=xe}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ba(_e,this.accumulator,this.seed,this.concurrent))}}]),Ie}(),ba=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it){var Wt;return(0,P.Z)(this,_e),(Wt=Ue.call(this,xe)).accumulator=ke,Wt.acc=Ge,Wt.concurrent=it,Wt.hasValue=!1,Wt.hasCompleted=!1,Wt.buffer=[],Wt.active=0,Wt.index=0,Wt}return(0,E.Z)(_e,[{key:"_next",value:function(ke){if(this.active<this.concurrent){var Wt,Ge=this.index++,it=this.destination;try{Wt=(0,this.accumulator)(this.acc,ke,Ge)}catch(gr){return it.error(gr)}this.active++,this._innerSub(Wt)}else this.buffer.push(ke)}},{key:"_innerSub",value:function(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Wt=(0,D.ft)(ke,Ge);Wt!==Ge&&it.add(Wt)}},{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(ke){var Ge=this.destination;this.acc=ke,this.hasValue=!0,Ge.next(ke)}},{key:"notifyComplete",value:function(){var ke=this.buffer;this.active--,ke.length>0?this._next(ke.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}]),_e}(D.Ds);function Ar(Ie){return Yn("function"==typeof Ie?function(_e,xe){return Ie(_e,xe)<0?_e:xe}:function(_e,xe){return _e<xe?_e:xe})}var Fi=m(2536),Uo=m(7770);function Ca(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return 1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0]),function(xe){return xe.lift(new co(Ue))}}var co=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.nextSources=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new na(_e,this.nextSources))}}]),Ie}(),na=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).destination=xe,Ge.nextSources=ke,Ge}return(0,E.Z)(_e,[{key:"notifyError",value:function(){this.subscribeToNextSource()}},{key:"notifyComplete",value:function(){this.subscribeToNextSource()}},{key:"_error",value:function(ke){this.subscribeToNextSource(),this.unsubscribe()}},{key:"_complete",value:function(){this.subscribeToNextSource(),this.unsubscribe()}},{key:"subscribeToNextSource",value:function(){var ke=this.nextSources.shift();if(ke){var Ge=new D.IY(this),it=this.destination;it.add(Ge);var Wt=(0,D.ft)(ke,Ge);Wt!==Ge&&it.add(Wt)}else this.destination.complete()}}]),_e}(D.Ds),ls=m(519),Ai=m(5884);function fo(Ie,Ue){return function(_e){return[(0,ct.h)(Ie,Ue)(_e),(0,ct.h)((0,Ai.f)(Ie,Ue))(_e)]}}function La(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];var xe=Ue.length;if(0===xe)throw new Error("list of properties cannot be empty.");return function(ke){return(0,St.U)(Ti(Ue,xe))(ke)}}function Ti(Ie,Ue){return function(ke){for(var Ge=ke,it=0;it<Ue;it++){var Wt=null!=Ge?Ge[Ie[it]]:void 0;if(void 0===Wt)return;Ge=Wt}return Ge}}var qo=m(8929);function gu(Ie){return Ie?(0,Fi.O)(function(){return new qo.xQ},Ie):(0,Fi.O)(new qo.xQ)}var Wi=m(591);function Ui(Ie){return function(Ue){return(0,Fi.O)(new Wi.X(Ie))(Ue)}}var Ss=m(2185);function qi(){return function(Ie){return(0,Fi.O)(new Ss.c)(Ie)}}var tn=m(839);function Jt(Ie,Ue,_e,xe){_e&&"function"!=typeof _e&&(xe=_e);var ke="function"==typeof _e?_e:void 0,Ge=new tn.t(Ie,Ue,xe);return function(it){return(0,Fi.O)(function(){return Ge},ke)(it)}}var Jr=m(1946);function Mi(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(ke){return 1===Ue.length&&(0,Ft.k)(Ue[0])&&(Ue=Ue[0]),ke.lift.call(Jr.S3.apply(void 0,[ke].concat((0,$t.Z)(Ue))))}}var Jo=m(8896);function Ho(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ue){return 0===Ie?(0,Jo.c)():Ie<0?Ue.lift(new bi(-1,Ue)):Ue.lift(new bi(Ie-1,Ue))}}var bi=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.count=Ue,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Rn(_e,this.count,this.source))}}]),Ie}(),Rn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).count=ke,it.source=Ge,it}return(0,E.Z)(_e,[{key:"complete",value:function(){if(!this.isStopped){var ke=this.source,Ge=this.count;if(0===Ge)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this);Ge>-1&&(this.count=Ge-1),ke.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function go(Ie){return function(Ue){return Ue.lift(new Bl(Ie))}}var Bl=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Nn(_e,this.notifier,xe))}}]),Ie}(),Nn=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).notifier=ke,it.source=Ge,it.sourceIsBeingSubscribedTo=!0,it}return(0,E.Z)(_e,[{key:"notifyNext",value:function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}},{key:"notifyComplete",value:function(){if(!1===this.sourceIsBeingSubscribedTo)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this)}},{key:"complete",value:function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}},{key:"_unsubscribe",value:function(){var ke=this.notifications,Ge=this.retriesSubscription;ke&&(ke.unsubscribe(),this.notifications=void 0),Ge&&(Ge.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"_unsubscribeAndRecycle",value:function(){var ke=this._unsubscribe;return this._unsubscribe=null,(0,k.Z)((0,b.Z)(_e.prototype),"_unsubscribeAndRecycle",this).call(this),this._unsubscribe=ke,this}},{key:"subscribeToRetries",value:function(){var ke;this.notifications=new qo.xQ;try{ke=(0,this.notifier)(this.notifications)}catch(it){return(0,k.Z)((0,b.Z)(_e.prototype),"complete",this).call(this)}this.retries=ke,this.retriesSubscription=(0,D.ft)(ke,new D.IY(this))}}]),_e}(D.Ds);function xn(){var Ie=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(Ue){return Ue.lift(new pn(Ie,Ue))}}var pn=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.count=Ue,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new mi(_e,this.count,this.source))}}]),Ie}(),mi=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).count=ke,it.source=Ge,it}return(0,E.Z)(_e,[{key:"error",value:function(ke){if(!this.isStopped){var Ge=this.source,it=this.count;if(0===it)return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,ke);it>-1&&(this.count=it-1),Ge.subscribe(this._unsubscribeAndRecycle())}}}]),_e}(O.L);function Ji(Ie){return function(Ue){return Ue.lift(new jo(Ie,Ue))}}var jo=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.notifier=Ue,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qi(_e,this.notifier,this.source))}}]),Ie}(),Qi=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).notifier=ke,it.source=Ge,it}return(0,E.Z)(_e,[{key:"error",value:function(ke){if(!this.isStopped){var Ge=this.errors,it=this.retries,Wt=this.retriesSubscription;if(it)this.errors=void 0,this.retriesSubscription=void 0;else{Ge=new qo.xQ;try{it=(0,this.notifier)(Ge)}catch(gr){return(0,k.Z)((0,b.Z)(_e.prototype),"error",this).call(this,gr)}Wt=(0,D.ft)(it,new D.IY(this))}this._unsubscribeAndRecycle(),this.errors=Ge,this.retries=it,this.retriesSubscription=Wt,Ge.next(ke)}}},{key:"_unsubscribe",value:function(){var ke=this.errors,Ge=this.retriesSubscription;ke&&(ke.unsubscribe(),this.errors=void 0),Ge&&(Ge.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}},{key:"notifyNext",value:function(){var ke=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=ke,this.source.subscribe(this)}}]),_e}(D.Ds),Vi=m(4327);function ei(Ie){return function(Ue){return Ue.lift(new _i(Ie))}}var _i=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){var ke=new ir(_e),Ge=xe.subscribe(ke);return Ge.add((0,D.ft)(this.notifier,new D.IY(ke))),Ge}}]),Ie}(),ir=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ue.apply(this,arguments)).hasValue=!1,xe}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.value=ke,this.hasValue=!0}},{key:"notifyNext",value:function(){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}]),_e}(D.Ds);function Do(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return function(_e){return _e.lift(new Xi(Ie,Ue))}}var Xi=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.period=Ue,this.scheduler=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new wa(_e,this.period,this.scheduler))}}]),Ie}(),wa=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).period=ke,it.scheduler=Ge,it.hasValue=!1,it.add(Ge.schedule(Za,ke,{subscriber:(0,A.Z)(it),period:ke})),it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.lastValue=ke,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),_e}(O.L);function Za(Ie){var Ue=Ie.subscriber,_e=Ie.period;Ue.notifyNext(),this.schedule(Ie,_e)}function oo(Ie,Ue){return function(_e){return _e.lift(new Qo(Ie,Ue))}}var Qo=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.compareTo=Ue,this.comparator=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ra(_e,this.compareTo,this.comparator))}}]),Ie}(),ra=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).compareTo=ke,it.comparator=Ge,it._a=[],it._b=[],it._oneComplete=!1,it.destination.add(ke.subscribe(new dl(xe,(0,A.Z)(it)))),it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(ke),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 ke=this._a,Ge=this._b,it=this.comparator;ke.length>0&&Ge.length>0;){var Wt=ke.shift(),Cn=Ge.shift(),gr=!1;try{gr=it?it(Wt,Cn):Wt===Cn}catch(Pr){this.destination.error(Pr)}gr||this.emit(!1)}}},{key:"emit",value:function(ke){var Ge=this.destination;Ge.next(ke),Ge.complete()}},{key:"nextB",value:function(ke){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(ke),this.checkValues())}},{key:"completeB",value:function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}]),_e}(O.L),dl=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).parent=ke,Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.parent.nextB(ke)}},{key:"_error",value:function(ke){this.parent.error(ke),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.completeB(),this.unsubscribe()}}]),_e}(O.L),Na=m(8117),ao=m(5154),qa=m(4450);function ka(Ie){return function(Ue){return Ue.lift(new vu(Ie,Ue))}}var vu=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.predicate=Ue,this.source=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new vd(_e,this.predicate,this.source))}}]),Ie}(),vd=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).predicate=ke,it.source=Ge,it.seenValue=!1,it.index=0,it}return(0,E.Z)(_e,[{key:"applySingleValue",value:function(ke){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=ke)}},{key:"_next",value:function(ke){var Ge=this.index++;this.predicate?this.tryNext(ke,Ge):this.applySingleValue(ke)}},{key:"tryNext",value:function(ke,Ge){try{this.predicate(ke,Ge,this.source)&&this.applySingleValue(ke)}catch(it){this.destination.error(it)}}},{key:"_complete",value:function(){var ke=this.destination;this.index>0?(ke.next(this.seenValue?this.singleValue:void 0),ke.complete()):ke.error(new qa.K)}}]),_e}(O.L),Hi=m(1307);function Yi(Ie){return function(Ue){return Ue.lift(new Ec(Ie))}}var Ec=function(){function Ie(Ue){if((0,P.Z)(this,Ie),this._skipCount=Ue,this._skipCount<0)throw new st.W}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return 0===this._skipCount?xe.subscribe(new O.L(_e)):xe.subscribe(new fl(_e,this._skipCount))}}]),Ie}(),fl=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe))._skipCount=ke,Ge._count=0,Ge._ring=new Array(ke),Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this._skipCount,it=this._count++;if(it<Ge)this._ring[it]=ke;else{var Wt=it%Ge,Cn=this._ring,gr=Cn[Wt];Cn[Wt]=ke,this.destination.next(gr)}}}]),_e}(O.L);function Tf(Ie){return function(Ue){return Ue.lift(new us(Ie))}}var us=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.notifier=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Mf(_e,this.notifier))}}]),Ie}(),Mf=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).hasValue=!1;var it=new D.IY((0,A.Z)(Ge));Ge.add(it),Ge.innerSubscription=it;var Wt=(0,D.ft)(ke,it);return Wt!==it&&(Ge.add(Wt),Ge.innerSubscription=Wt),Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.hasValue&&(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}},{key:"notifyNext",value:function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}},{key:"notifyComplete",value:function(){}}]),_e}(D.Ds);function so(Ie){return function(Ue){return Ue.lift(new Es(Ie))}}var Es=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.predicate=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Fl(_e,this.predicate))}}]),Ie}(),Fl=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).predicate=ke,Ge.skipping=!0,Ge.index=0,Ge}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.destination;this.skipping&&this.tryCallPredicate(ke),this.skipping||Ge.next(ke)}},{key:"tryCallPredicate",value:function(ke){try{var Ge=this.predicate(ke,this.index++);this.skipping=Boolean(Ge)}catch(it){this.destination.error(it)}}}]),_e}(O.L),xc=m(1059),vo=m(3837);function Dc(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new Ba(Ie,Ue))}}var Ba=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.scheduler=Ue,this.delay=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return new vo.e(xe,this.delay,this.scheduler).subscribe(_e)}}]),Ie}(),cs=m(7545),po=m(5379);function Sf(){return(0,cs.w)(po.y)}function Ys(Ie,Ue){return Ue?(0,cs.w)(function(){return Ie},Ue):(0,cs.w)(function(){return Ie})}var Ku=m(7625),Ul=m(4290),nh=m(2994),ds=m(2444);function Tr(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P,_e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ds.d;return function(xe){return xe.lift(new xs(Ie,Ue,_e.leading,_e.trailing))}}var xs=function(){function Ie(Ue,_e,xe,ke){(0,P.Z)(this,Ie),this.duration=Ue,this.scheduler=_e,this.leading=xe,this.trailing=ke}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Qm(_e,this.duration,this.scheduler,this.leading,this.trailing))}}]),Ie}(),Qm=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it,Wt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,xe)).duration=ke,Cn.scheduler=Ge,Cn.leading=it,Cn.trailing=Wt,Cn._hasTrailingValue=!1,Cn._trailingValue=null,Cn}return(0,E.Z)(_e,[{key:"_next",value:function(ke){this.throttled?this.trailing&&(this._trailingValue=ke,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(rh,this.duration,{subscriber:this})),this.leading?this.destination.next(ke):this.trailing&&(this._trailingValue=ke,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 ke=this.throttled;ke&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),ke.unsubscribe(),this.remove(ke),this.throttled=null)}}]),_e}(O.L);function rh(Ie){Ie.subscriber.clearThrottle()}var ih=m(3485),Ef=m(854),Ds=m(2697);function qu(Ie,Ue){var _e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x.P;return function(xe){var ke=(0,Ds.J)(Ie),Ge=ke?+Ie-_e.now():Math.abs(Ie);return xe.lift(new Hl(Ge,ke,Ue,_e))}}var Hl=function(){function Ie(Ue,_e,xe,ke){(0,P.Z)(this,Ie),this.waitFor=Ue,this.absoluteTimeout=_e,this.withObservable=xe,this.scheduler=ke}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new An(_e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),Ie}(),An=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it,Wt){var Cn;return(0,P.Z)(this,_e),(Cn=Ue.call(this,xe)).absoluteTimeout=ke,Cn.waitFor=Ge,Cn.withObservable=it,Cn.scheduler=Wt,Cn.scheduleTimeout(),Cn}return(0,E.Z)(_e,[{key:"scheduleTimeout",value:function(){var ke=this.action;ke?this.action=ke.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(_e.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(ke){this.absoluteTimeout||this.scheduleTimeout(),(0,k.Z)((0,b.Z)(_e.prototype),"_next",this).call(this,ke)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(ke){var Ge=ke.withObservable;ke._unsubscribeAndRecycle(),ke.add((0,D.ft)(Ge,new D.IY(ke)))}}]),_e}(D.Ds),we=m(1737);function Te(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:x.P;return qu(Ie,(0,we._)(new Ef.W),Ue)}var se=m(7781);function Me(Ie,Ue,_e){return 0===_e?[Ue]:(Ie.push(Ue),Ie)}function Oe(){return Yn(Me,[])}function mt(Ie){return function(_e){return _e.lift(new Ht(Ie))}}var Ht=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.windowBoundaries=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){var ke=new On(_e),Ge=xe.subscribe(ke);return Ge.closed||ke.add((0,D.ft)(this.windowBoundaries,new D.IY(ke))),Ge}}]),Ie}(),On=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe){var ke;return(0,P.Z)(this,_e),(ke=Ue.call(this,xe)).window=new qo.xQ,xe.next(ke.window),ke}return(0,E.Z)(_e,[{key:"notifyNext",value:function(){this.openWindow()}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"notifyComplete",value:function(){this._complete()}},{key:"_next",value:function(ke){this.window.next(ke)}},{key:"_error",value:function(ke){this.window.error(ke),this.destination.error(ke)}},{key:"_complete",value:function(){this.window.complete(),this.destination.complete()}},{key:"_unsubscribe",value:function(){this.window=null}},{key:"openWindow",value:function(){var ke=this.window;ke&&ke.complete();var Ge=this.destination,it=this.window=new qo.xQ;Ge.next(it)}}]),_e}(D.Ds);function sr(Ie){var Ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(xe){return xe.lift(new pl(Ie,Ue))}}var pl=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.windowSize=Ue,this.startWindowEvery=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new lo(_e,this.windowSize,this.startWindowEvery))}}]),Ie}(),lo=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).destination=xe,it.windowSize=ke,it.startWindowEvery=Ge,it.windows=[new qo.xQ],it.count=0,xe.next(it.windows[0]),it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,it=this.destination,Wt=this.windowSize,Cn=this.windows,gr=Cn.length,Pr=0;Pr<gr&&!this.closed;Pr++)Cn[Pr].next(ke);var ms=this.count-Wt+1;if(ms>=0&&ms%Ge==0&&!this.closed&&Cn.shift().complete(),++this.count%Ge==0&&!this.closed){var _l=new qo.xQ;Cn.push(_l),it.next(_l)}}},{key:"_error",value:function(ke){var Ge=this.windows;if(Ge)for(;Ge.length>0&&!this.closed;)Ge.shift().error(ke);this.destination.error(ke)}},{key:"_complete",value:function(){var ke=this.windows;if(ke)for(;ke.length>0&&!this.closed;)ke.shift().complete();this.destination.complete()}},{key:"_unsubscribe",value:function(){this.count=0,this.windows=null}}]),_e}(O.L),yd=m(4241);function jl(Ie){var Ue=x.P,_e=null,xe=Number.POSITIVE_INFINITY;return(0,N.K)(arguments[3])&&(Ue=arguments[3]),(0,N.K)(arguments[2])?Ue=arguments[2]:(0,yd.k)(arguments[2])&&(xe=Number(arguments[2])),(0,N.K)(arguments[1])?Ue=arguments[1]:(0,yd.k)(arguments[1])&&(_e=Number(arguments[1])),function(Ge){return Ge.lift(new Xo(Ie,_e,xe,Ue))}}var Xo=function(){function Ie(Ue,_e,xe,ke){(0,P.Z)(this,Ie),this.windowTimeSpan=Ue,this.windowCreationInterval=_e,this.maxWindowSize=xe,this.scheduler=ke}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Ks(_e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}]),Ie}(),Ta=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(){var xe;return(0,P.Z)(this,_e),(xe=Ue.apply(this,arguments))._numberOfNextedValues=0,xe}return(0,E.Z)(_e,[{key:"next",value:function(ke){this._numberOfNextedValues++,(0,k.Z)((0,b.Z)(_e.prototype),"next",this).call(this,ke)}},{key:"numberOfNextedValues",get:function(){return this._numberOfNextedValues}}]),_e}(qo.xQ),Ks=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge,it,Wt){var Cn;(0,P.Z)(this,_e),(Cn=Ue.call(this,xe)).destination=xe,Cn.windowTimeSpan=ke,Cn.windowCreationInterval=Ge,Cn.maxWindowSize=it,Cn.scheduler=Wt,Cn.windows=[];var gr=Cn.openWindow();if(null!==Ge&&Ge>=0){var Pr={subscriber:(0,A.Z)(Cn),window:gr,context:null},ms={windowTimeSpan:ke,windowCreationInterval:Ge,subscriber:(0,A.Z)(Cn),scheduler:Wt};Cn.add(Wt.schedule(Xm,ke,Pr)),Cn.add(Wt.schedule(fs,Ge,ms))}else{var _l={subscriber:(0,A.Z)(Cn),window:gr,windowTimeSpan:ke};Cn.add(Wt.schedule(hl,ke,_l))}return Cn}return(0,E.Z)(_e,[{key:"_next",value:function(ke){for(var Ge=this.windows,it=Ge.length,Wt=0;Wt<it;Wt++){var Cn=Ge[Wt];Cn.closed||(Cn.next(ke),Cn.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(Cn))}}},{key:"_error",value:function(ke){for(var Ge=this.windows;Ge.length>0;)Ge.shift().error(ke);this.destination.error(ke)}},{key:"_complete",value:function(){for(var ke=this.windows;ke.length>0;){var Ge=ke.shift();Ge.closed||Ge.complete()}this.destination.complete()}},{key:"openWindow",value:function(){var ke=new Ta;return this.windows.push(ke),this.destination.next(ke),ke}},{key:"closeWindow",value:function(ke){ke.complete();var Ge=this.windows;Ge.splice(Ge.indexOf(ke),1)}}]),_e}(O.L);function hl(Ie){var Ue=Ie.subscriber,_e=Ie.windowTimeSpan,xe=Ie.window;xe&&Ue.closeWindow(xe),Ie.window=Ue.openWindow(),this.schedule(Ie,_e)}function fs(Ie){var Ue=Ie.windowTimeSpan,_e=Ie.subscriber,xe=Ie.scheduler,ke=Ie.windowCreationInterval,Ge=_e.openWindow(),Wt={action:this,subscription:null},Cn={subscriber:_e,window:Ge,context:Wt};Wt.subscription=xe.schedule(Xm,Ue,Cn),this.add(Wt.subscription),this.schedule(Ie,ke)}function Xm(Ie){var Ue=Ie.subscriber,_e=Ie.window,xe=Ie.context;xe&&xe.action&&xe.subscription&&xe.action.remove(xe.subscription),Ue.closeWindow(_e)}function oh(Ie,Ue){return function(_e){return _e.lift(new $m(Ie,Ue))}}var $m=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.openings=Ue,this.closingSelector=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new bd(_e,this.openings,this.closingSelector))}}]),Ie}(),bd=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;return(0,P.Z)(this,_e),(it=Ue.call(this,xe)).openings=ke,it.closingSelector=Ge,it.contexts=[],it.add(it.openSubscription=(0,de.D)((0,A.Z)(it),ke,ke)),it}return(0,E.Z)(_e,[{key:"_next",value:function(ke){var Ge=this.contexts;if(Ge)for(var it=Ge.length,Wt=0;Wt<it;Wt++)Ge[Wt].window.next(ke)}},{key:"_error",value:function(ke){var Ge=this.contexts;if(this.contexts=null,Ge)for(var it=Ge.length,Wt=-1;++Wt<it;){var Cn=Ge[Wt];Cn.window.error(ke),Cn.subscription.unsubscribe()}(0,k.Z)((0,b.Z)(_e.prototype),"_error",this).call(this,ke)}},{key:"_complete",value:function(){var ke=this.contexts;if(this.contexts=null,ke)for(var Ge=ke.length,it=-1;++it<Ge;){var Wt=ke[it];Wt.window.complete(),Wt.subscription.unsubscribe()}(0,k.Z)((0,b.Z)(_e.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var ke=this.contexts;if(this.contexts=null,ke)for(var Ge=ke.length,it=-1;++it<Ge;){var Wt=ke[it];Wt.window.unsubscribe(),Wt.subscription.unsubscribe()}}},{key:"notifyNext",value:function(ke,Ge,it,Wt,Cn){if(ke===this.openings){var gr;try{gr=(0,this.closingSelector)(Ge)}catch(xf){return this.error(xf)}var ms=new qo.xQ,_l=new pe.w,Ir={window:ms,subscription:_l};this.contexts.push(Ir);var Ac=(0,de.D)(this,gr,Ir);Ac.closed?this.closeWindow(this.contexts.length-1):(Ac.context=Ir,_l.add(Ac)),this.destination.next(ms)}else this.closeWindow(this.contexts.indexOf(ke))}},{key:"notifyError",value:function(ke){this.error(ke)}},{key:"notifyComplete",value:function(ke){ke!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(ke.context))}},{key:"closeWindow",value:function(ke){if(-1!==ke){var Ge=this.contexts,it=Ge[ke],Wt=it.window,Cn=it.subscription;Ge.splice(ke,1),Wt.complete(),Cn.unsubscribe()}}}]),_e}(le.L);function Ju(Ie){return function(_e){return _e.lift(new ps(Ie))}}var ps=function(){function Ie(Ue){(0,P.Z)(this,Ie),this.closingSelector=Ue}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new ml(_e,this.closingSelector))}}]),Ie}(),ml=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke){var Ge;return(0,P.Z)(this,_e),(Ge=Ue.call(this,xe)).destination=xe,Ge.closingSelector=ke,Ge.openWindow(),Ge}return(0,E.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it,Wt,Cn){this.openWindow(Cn)}},{key:"notifyError",value:function(ke){this._error(ke)}},{key:"notifyComplete",value:function(ke){this.openWindow(ke)}},{key:"_next",value:function(ke){this.window.next(ke)}},{key:"_error",value:function(ke){this.window.error(ke),this.destination.error(ke),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 ke=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;ke&&(this.remove(ke),ke.unsubscribe());var Ge=this.window;Ge&&Ge.complete();var Wt,it=this.window=new qo.xQ;this.destination.next(it);try{var Cn=this.closingSelector;Wt=Cn()}catch(gr){return this.destination.error(gr),void this.window.error(gr)}this.add(this.closingNotification=(0,de.D)(this,Wt))}}]),_e}(le.L);function hs(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(xe){var ke;"function"==typeof Ue[Ue.length-1]&&(ke=Ue.pop());var Ge=Ue;return xe.lift(new Ev(Ge,ke))}}var Ev=function(){function Ie(Ue,_e){(0,P.Z)(this,Ie),this.observables=Ue,this.project=_e}return(0,E.Z)(Ie,[{key:"call",value:function(_e,xe){return xe.subscribe(new Cd(_e,this.observables,this.project))}}]),Ie}(),Cd=function(Ie){(0,U.Z)(_e,Ie);var Ue=(0,R.Z)(_e);function _e(xe,ke,Ge){var it;(0,P.Z)(this,_e),(it=Ue.call(this,xe)).observables=ke,it.project=Ge,it.toRespond=[];var Wt=ke.length;it.values=new Array(Wt);for(var Cn=0;Cn<Wt;Cn++)it.toRespond.push(Cn);for(var gr=0;gr<Wt;gr++){var Pr=ke[gr];it.add((0,de.D)((0,A.Z)(it),Pr,void 0,gr))}return it}return(0,E.Z)(_e,[{key:"notifyNext",value:function(ke,Ge,it){this.values[it]=Ge;var Wt=this.toRespond;if(Wt.length>0){var Cn=Wt.indexOf(it);-1!==Cn&&Wt.splice(Cn,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(ke){if(0===this.toRespond.length){var Ge=[ke].concat((0,$t.Z)(this.values));this.project?this._tryProject(Ge):this.destination.next(Ge)}}},{key:"_tryProject",value:function(ke){var Ge;try{Ge=this.project.apply(this,ke)}catch(it){return void this.destination.error(it)}this.destination.next(Ge)}}]),_e}(le.L),qs=m(1746);function ia(){for(var Ie=arguments.length,Ue=new Array(Ie),_e=0;_e<Ie;_e++)Ue[_e]=arguments[_e];return function(ke){return ke.lift.call(qs.$R.apply(void 0,[ke].concat(Ue)))}}function ah(Ie){return function(Ue){return Ue.lift(new qs.mx(Ie))}}},9594:function(De,K,m){"use strict";m.r(K),m.d(K,{TestScheduler:function(){return x}});var G=m(5671),W=m(3144),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(7451),D=m(9312),j=m(4096),L=(0,W.Z)(function N(F){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;(0,G.Z)(this,N),this.subscribedFrame=F,this.unsubscribedFrame=X}),v=function(){function N(){(0,G.Z)(this,N),this.subscriptions=[]}return(0,W.Z)(N,[{key:"logSubscribedFrame",value:function(){return this.subscriptions.push(new L(this.scheduler.now())),this.subscriptions.length-1}},{key:"logUnsubscribedFrame",value:function(X){var $=this.subscriptions,Y=$[X];$[X]=new L(Y.subscribedFrame,this.scheduler.now())}}]),N}(),k=m(5128),b=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($,Y){var Q;return(0,G.Z)(this,X),(Q=F.call(this,function(ne){var be=this,pe=be.logSubscribedFrame(),de=new j.w;return de.add(new j.w(function(){be.logUnsubscribedFrame(pe)})),be.scheduleMessages(ne),de})).messages=$,Q.subscriptions=[],Q.scheduler=Y,Q}return(0,W.Z)(X,[{key:"scheduleMessages",value:function(Y){for(var Q=this.messages.length,ne=0;ne<Q;ne++){var be=this.messages[ne];Y.add(this.scheduler.schedule(function(pe){var de=pe.message,le=pe.subscriber;de.notification.observe(le)},be.frame,{message:be,subscriber:Y}))}}}]),X}(E.y);(0,k.e)(b,[v]);var S=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($,Y){var Q;return(0,G.Z)(this,X),(Q=F.call(this)).messages=$,Q.subscriptions=[],Q.scheduler=Y,Q}return(0,W.Z)(X,[{key:"_subscribe",value:function(Y){var Q=this,ne=Q.logSubscribedFrame(),be=new j.w;return be.add(new j.w(function(){Q.logUnsubscribedFrame(ne)})),be.add((0,A.Z)((0,U.Z)(X.prototype),"_subscribe",this).call(this,Y)),be}},{key:"setup",value:function(){for(var Y=this,Q=Y.messages.length,ne=0;ne<Q;ne++)!function(){var be=Y.messages[ne];Y.scheduler.schedule(function(){be.notification.observe(Y)},be.frame)}()}}]),X}(m(8929).xQ);(0,k.e)(S,[v]);var y=m(9027),T=m(198),x=function(N){(0,R.Z)(X,N);var F=(0,P.Z)(X);function X($){var Y;return(0,G.Z)(this,X),(Y=F.call(this,y.h,750)).assertDeepEqual=$,Y.hotObservables=[],Y.coldObservables=[],Y.flushTests=[],Y.runMode=!1,Y}return(0,W.Z)(X,[{key:"createTime",value:function(Y){var Q=Y.indexOf("|");if(-1===Q)throw new Error('marble diagram for time should have a completion marker "|"');return Q*X.frameTimeFactor}},{key:"createColdObservable",value:function(Y,Q,ne){if(-1!==Y.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==Y.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var be=X.parseMarbles(Y,Q,ne,void 0,this.runMode),pe=new b(be,this);return this.coldObservables.push(pe),pe}},{key:"createHotObservable",value:function(Y,Q,ne){if(-1!==Y.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var be=X.parseMarbles(Y,Q,ne,void 0,this.runMode),pe=new S(be,this);return this.hotObservables.push(pe),pe}},{key:"materializeInnerObservable",value:function(Y,Q){var ne=this,be=[];return Y.subscribe(function(pe){be.push({frame:ne.frame-Q,notification:D.P.createNext(pe)})},function(pe){be.push({frame:ne.frame-Q,notification:D.P.createError(pe)})},function(){be.push({frame:ne.frame-Q,notification:D.P.createComplete()})}),be}},{key:"expectObservable",value:function(Y){var me,Q=this,ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,be=[],pe={actual:be,ready:!1},de=X.parseMarblesAsSubscriptions(ne,this.runMode),le=de.subscribedFrame===Number.POSITIVE_INFINITY?0:de.subscribedFrame,ce=de.unsubscribedFrame;this.schedule(function(){me=Y.subscribe(function(at){var Mt=at;at instanceof E.y&&(Mt=Q.materializeInnerObservable(Mt,Q.frame)),be.push({frame:Q.frame,notification:D.P.createNext(Mt)})},function(at){be.push({frame:Q.frame,notification:D.P.createError(at)})},function(){be.push({frame:Q.frame,notification:D.P.createComplete()})})},le),ce!==Number.POSITIVE_INFINITY&&this.schedule(function(){return me.unsubscribe()},ce),this.flushTests.push(pe);var je=this.runMode;return{toBe:function(Mt,Tt,xt){pe.ready=!0,pe.expected=X.parseMarbles(Mt,Tt,xt,!0,je)}}}},{key:"expectSubscriptions",value:function(Y){var Q={actual:Y,ready:!1};this.flushTests.push(Q);var ne=this.runMode;return{toBe:function(pe){var de="string"==typeof pe?[pe]:pe;Q.ready=!0,Q.expected=de.map(function(le){return X.parseMarblesAsSubscriptions(le,ne)})}}}},{key:"flush",value:function(){for(var Y=this,Q=this.hotObservables;Q.length>0;)Q.shift().setup();(0,A.Z)((0,U.Z)(X.prototype),"flush",this).call(this),this.flushTests=this.flushTests.filter(function(ne){return!ne.ready||(Y.assertDeepEqual(ne.actual,ne.expected),!1)})}},{key:"run",value:function(Y){var Q=X.frameTimeFactor,ne=this.maxFrames;X.frameTimeFactor=1,this.maxFrames=Number.POSITIVE_INFINITY,this.runMode=!0,T.v.delegate=this;var be={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};try{var pe=Y(be);return this.flush(),pe}finally{X.frameTimeFactor=Q,this.maxFrames=ne,this.runMode=!1,T.v.delegate=void 0}}}],[{key:"parseMarblesAsSubscriptions",value:function(Y){var Q=this,ne=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof Y)return new L(Number.POSITIVE_INFINITY);for(var be=Y.length,pe=-1,de=Number.POSITIVE_INFINITY,le=Number.POSITIVE_INFINITY,ce=0,me=function(Mt){var Tt=ce,xt=function(_t){Tt+=_t*Q.frameTimeFactor},Lt=Y[Mt];switch(Lt){case" ":ne||xt(1);break;case"-":xt(1);break;case"(":pe=ce,xt(1);break;case")":pe=-1,xt(1);break;case"^":if(de!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");de=pe>-1?pe:ce,xt(1);break;case"!":if(le!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");le=pe>-1?pe:ce;break;default:if(ne&&Lt.match(/^[0-9]$/)&&(0===Mt||" "===Y[Mt-1])){var $t=Y.slice(Mt).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if($t){Mt+=$t[0].length-1;var nt,Ft=parseFloat($t[1]);switch($t[2]){case"ms":nt=Ft;break;case"s":nt=1e3*Ft;break;case"m":nt=1e3*Ft*60}xt(nt/Q.frameTimeFactor);break}}throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+Lt+"'.")}ce=Tt,je=Mt},je=0;je<be;je++)me(je);return le<0?new L(de):new L(de,le)}},{key:"parseMarbles",value:function(Y,Q,ne){var be=this,pe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],de=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(-1!==Y.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var le=Y.length,ce=[],me=de?Y.replace(/^[ ]+/,"").indexOf("^"):Y.indexOf("^"),je=-1===me?0:me*-this.frameTimeFactor,at="object"!=typeof Q?function(Lt){return Lt}:function(Lt){return pe&&Q[Lt]instanceof b?Q[Lt].messages:Q[Lt]},Mt=-1,Tt=function(Ze){var fn,$t=je,Ft=function(Ut){$t+=Ut*be.frameTimeFactor},nt=Y[Ze];switch(nt){case" ":de||Ft(1);break;case"-":case"^":Ft(1);break;case"(":Mt=je,Ft(1);break;case")":Mt=-1,Ft(1);break;case"|":fn=D.P.createComplete(),Ft(1);break;case"#":fn=D.P.createError(ne||"error"),Ft(1);break;default:if(de&&nt.match(/^[0-9]$/)&&(0===Ze||" "===Y[Ze-1])){var _t=Y.slice(Ze).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(_t){Ze+=_t[0].length-1;var lt,Ct=parseFloat(_t[1]);switch(_t[2]){case"ms":lt=Ct;break;case"s":lt=1e3*Ct;break;case"m":lt=1e3*Ct*60}Ft(lt/be.frameTimeFactor);break}}fn=D.P.createNext(at(nt)),Ft(1)}fn&&ce.push({frame:Mt>-1?Mt:je,notification:fn}),je=$t,xt=Ze},xt=0;xt<le;xt++)Tt(xt);return ce}}]),X}(y.y)},2301:function(De,K,m){"use strict";m.r(K),m.d(K,{WebSocketSubject:function(){return W.p},webSocket:function(){return G.j}});var G=m(7623),W=m(2741)},5561:function(De,K,m){"use strict";m(5772)},2033:function(De,K){"use strict";var m,G;!function(){var W=K||{};m=[],void 0!==(G=function(){return W}.apply(K,m))&&(De.exports=G),W.default=W;var A="http://www.w3.org/2000/xmlns/",R="http://www.w3.org/2000/svg",E=/url\(["']?(.+?)["']?\)/,D={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"},j=function(de){return de instanceof HTMLElement||de instanceof SVGElement},L=function(de){if(!j(de))throw new Error("an HTMLElement or SVGElement is required; got "+de)},v=function(de){return new Promise(function(le,ce){j(de)?le(de):ce(new Error("an HTMLElement or SVGElement is required; got "+de))})},b=function(de){var le=Object.keys(D).filter(function(ce){return de.indexOf("."+ce)>0}).map(function(ce){return D[ce]});return le?le[0]:(console.error("Unknown font format for "+de+". Fonts may not be working correctly."),"application/octet-stream")},S=function(de,le,ce){var me=de.viewBox&&de.viewBox.baseVal&&de.viewBox.baseVal[ce]||null!==le.getAttribute(ce)&&!le.getAttribute(ce).match(/%$/)&&parseInt(le.getAttribute(ce))||de.getBoundingClientRect()[ce]||parseInt(le.style[ce])||parseInt(window.getComputedStyle(de).getPropertyValue(ce));return null==me||isNaN(parseFloat(me))?0:me},M=function(de){for(var le=window.atob(de.split(",")[1]),ce=de.split(",")[0].split(":")[1].split(";")[0],me=new ArrayBuffer(le.length),je=new Uint8Array(me),at=0;at<le.length;at++)je[at]=le.charCodeAt(at);return new Blob([me],{type:ce})},F=function(de){return Promise.all(Array.from(de.querySelectorAll("image")).map(function(le){var ce=le.getAttributeNS("http://www.w3.org/1999/xlink","href")||le.getAttribute("href");return ce?(function(de){return de&&0===de.lastIndexOf("http",0)&&-1===de.lastIndexOf(window.location.host)}(ce)&&(ce+=(-1===ce.indexOf("?")?"?":"&")+"t="+(new Date).valueOf()),new Promise(function(me,je){var at=document.createElement("canvas"),Mt=new Image;Mt.crossOrigin="anonymous",Mt.src=ce,Mt.onerror=function(){return je(new Error("Could not load "+ce))},Mt.onload=function(){at.width=Mt.width,at.height=Mt.height,at.getContext("2d").drawImage(Mt,0,0),le.setAttributeNS("http://www.w3.org/1999/xlink","href",at.toDataURL("image/png")),me(!0)}})):Promise.resolve(null)}))},X={},$=function(de){return Promise.all(de.map(function(le){return new Promise(function(ce,me){if(X[le.url])return ce(X[le.url]);var je=new XMLHttpRequest;je.addEventListener("load",function(){var at=function(de){for(var le="",ce=new Uint8Array(de),me=0;me<ce.byteLength;me++)le+=String.fromCharCode(ce[me]);return window.btoa(le)}(je.response),Mt=le.text.replace(E,'url("data:'+le.format+";base64,"+at+'")')+"\n";X[le.url]=Mt,ce(Mt)}),je.addEventListener("error",function(at){console.warn("Failed to load font from: "+le.url,at),X[le.url]=null,ce(null)}),je.addEventListener("abort",function(at){console.warn("Aborted loading font from: "+le.url,at),ce(null)}),je.open("GET",le.url),je.responseType="arraybuffer",je.send()})})).then(function(le){return le.filter(function(ce){return ce}).join("")})},Y=null,ne=function(de,le){var ce=le||{},me=ce.selectorRemap,je=ce.modifyStyle,at=ce.modifyCss,Mt=ce.fonts,Tt=ce.excludeUnusedCss,xt=at||function(Ft,fn){return(me?me(Ft):Ft)+"{"+(je?je(fn):fn)+"}\n"},Lt=[],Ze=void 0===Mt,$t=Mt||[];return(Y||(Y=Array.from(document.styleSheets).map(function(de){try{return{rules:de.cssRules,href:de.href}}catch(le){return console.warn("Stylesheet could not be loaded: "+de.href,le),{}}}))).forEach(function(Ft){var fn=Ft.rules,nt=Ft.href;!fn||Array.from(fn).forEach(function(Ot){if(void 0!==Ot.style)if(function(de,le){if(le)try{return de.querySelector(le)||de.parentNode&&de.parentNode.querySelector(le)}catch(ce){console.warn('Invalid CSS selector "'+le+'"',ce)}}(de,Ot.selectorText))Lt.push(xt(Ot.selectorText,Ot.style.cssText));else if(Ze&&Ot.cssText.match(/^@font-face/)){var _t=function(de,le){var ce=de.cssText.match(E),me=ce&&ce[1]||"";if(me&&!me.match(/^data:/)&&"about:blank"!==me){var je=me.startsWith("../")?le+"/../"+me:me.startsWith("./")?le+"/."+me:me;return{text:de.cssText,format:b(je),url:je}}}(Ot,nt);_t&&$t.push(_t)}else Tt||Lt.push(Ot.cssText)})}),$($t).then(function(Ft){return Lt.join("\n")+Ft})},be=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};W.prepareSvg=function(pe,de,le){L(pe);var ce=de||{},me=ce.left,je=void 0===me?0:me,at=ce.top,Mt=void 0===at?0:at,Tt=ce.width,xt=ce.height,Lt=ce.scale,Ze=void 0===Lt?1:Lt,$t=ce.responsive,Ft=void 0!==$t&&$t,fn=ce.excludeCss,nt=void 0!==fn&&fn;return F(pe).then(function(){var Ot=pe.cloneNode(!0);Ot.style.backgroundColor=(de||{}).backgroundColor||pe.style.backgroundColor;var _t=function(de,le,ce,me){if("svg"===de.tagName)return{width:ce||S(de,le,"width"),height:me||S(de,le,"height")};if(de.getBBox){var je=de.getBBox(),at=je.x,Mt=je.y;return{width:at+je.width,height:Mt+je.height}}}(pe,Ot,Tt,xt),Ct=_t.width,We=_t.height;if("svg"!==pe.tagName){if(!pe.getBBox)return void console.error("Attempted to render non-SVG element",pe);null!=Ot.getAttribute("transform")&&Ot.setAttribute("transform",Ot.getAttribute("transform").replace(/translate\(.*?\)/,""));var lt=document.createElementNS("http://www.w3.org/2000/svg","svg");lt.appendChild(Ot),Ot=lt}if(Ot.setAttribute("version","1.1"),Ot.setAttribute("viewBox",[je,Mt,Ct,We].join(" ")),Ot.getAttribute("xmlns")||Ot.setAttributeNS(A,"xmlns",R),Ot.getAttribute("xmlns:xlink")||Ot.setAttributeNS(A,"xmlns:xlink","http://www.w3.org/1999/xlink"),Ft?(Ot.removeAttribute("width"),Ot.removeAttribute("height"),Ot.setAttribute("preserveAspectRatio","xMinYMin meet")):(Ot.setAttribute("width",Ct*Ze),Ot.setAttribute("height",We*Ze)),Array.from(Ot.querySelectorAll("foreignObject > *")).forEach(function(B){B.setAttributeNS(A,"xmlns","svg"===B.tagName?R:"http://www.w3.org/1999/xhtml")}),!nt)return ne(pe,de).then(function(B){var H=document.createElement("style");H.setAttribute("type","text/css"),H.innerHTML="<![CDATA[\n"+B+"\n]]>";var tt=document.createElement("defs");tt.appendChild(H),Ot.insertBefore(tt,Ot.firstChild);var Ye=document.createElement("div");Ye.appendChild(Ot);var ge=Ye.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if("function"!=typeof le)return{src:ge,width:Ct,height:We};le(ge,Ct,We)});var dt=document.createElement("div");dt.appendChild(Ot);var Ut=dt.innerHTML;if("function"!=typeof le)return{src:Ut,width:Ct,height:We};le(Ut,Ct,We)})},W.svgAsDataUri=function(pe,de,le){return L(pe),W.prepareSvg(pe,de).then(function(ce){var me=ce.src,je=ce.width,at=ce.height,Mt="data:image/svg+xml;base64,"+window.btoa(function(de){return decodeURIComponent(encodeURIComponent(de).replace(/%([0-9A-F]{2})/g,function(le,ce){var me=String.fromCharCode("0x"+ce);return"%"===me?"%25":me}))}('<?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 " ">]>'+me));return"function"==typeof le&&le(Mt,je,at),Mt})},W.svgAsPngUri=function(pe,de,le){L(pe);var ce=de||{},me=ce.encoderType,je=void 0===me?"image/png":me,at=ce.encoderOptions,Mt=void 0===at?.8:at,Tt=ce.canvg,xt=function(Ze){var $t=Ze.src,Ft=Ze.width,fn=Ze.height,nt=document.createElement("canvas"),Ot=nt.getContext("2d"),_t=window.devicePixelRatio||1;nt.width=Ft*_t,nt.height=fn*_t,nt.style.width=nt.width+"px",nt.style.height=nt.height+"px",Ot.setTransform(_t,0,0,_t,0,0),Tt?Tt(nt,$t):Ot.drawImage($t,0,0);var Ct=void 0;try{Ct=nt.toDataURL(je,Mt)}catch(We){if("undefined"!=typeof SecurityError&&We instanceof SecurityError||"SecurityError"===We.name)return void console.error("Rendered SVG images cannot be downloaded in this browser.");throw We}return"function"==typeof le&&le(Ct,nt.width,nt.height),Promise.resolve(Ct)};return Tt?W.prepareSvg(pe,de).then(xt):W.svgAsDataUri(pe,de).then(function(Lt){return new Promise(function(Ze,$t){var Ft=new Image;Ft.onload=function(){return Ze(xt({src:Ft,width:Ft.width,height:Ft.height}))},Ft.onerror=function(){$t("There was an error loading the data URI as an image on the following SVG\n"+window.atob(Lt.slice(26))+"Open the following link to see browser's diagnosis\n"+Lt)},Ft.src=Lt})})},W.download=function(pe,de,le){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(M(de),pe);else{var ce=document.createElement("a");if("download"in ce){ce.download=pe,ce.style.display="none",document.body.appendChild(ce);try{var me=M(de),je=URL.createObjectURL(me);ce.href=je,ce.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(je)})}}catch(at){console.error(at),console.warn("Error while getting object URL. Falling back to string URL."),ce.href=de}ce.click(),document.body.removeChild(ce)}else le&&le.popup&&(le.popup.document.title=pe,le.popup.location.replace(de))}},W.saveSvg=function(pe,de,le){var ce=be();return v(pe).then(function(me){return W.svgAsDataUri(me,le||{})}).then(function(me){return W.download(de,me,ce)})},W.saveSvgAsPng=function(pe,de,le){var ce=be();return v(pe).then(function(me){return W.svgAsPngUri(me,le||{})}).then(function(me){return W.download(de,me,ce)})}}()},6842:function(De,K,m){var G=m(2472),W=Object.prototype.hasOwnProperty,A="undefined"!=typeof Map;function U(){this._array=[],this._set=A?new Map:Object.create(null)}U.fromArray=function(P,E){for(var D=new U,j=0,L=P.length;j<L;j++)D.add(P[j],E);return D},U.prototype.size=function(){return A?this._set.size:Object.getOwnPropertyNames(this._set).length},U.prototype.add=function(P,E){var D=A?P:G.toSetString(P),j=A?this.has(P):W.call(this._set,D),L=this._array.length;(!j||E)&&this._array.push(P),j||(A?this._set.set(P,L):this._set[D]=L)},U.prototype.has=function(P){if(A)return this._set.has(P);var E=G.toSetString(P);return W.call(this._set,E)},U.prototype.indexOf=function(P){if(A){var E=this._set.get(P);if(E>=0)return E}else{var D=G.toSetString(P);if(W.call(this._set,D))return this._set[D]}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()},K.I=U},3357:function(De,K,m){var G=m(5773);K.encode=function(j){var v,L="",k=function P(D){return D<0?1+(-D<<1):0+(D<<1)}(j);do{v=31&k,(k>>>=5)>0&&(v|=32),L+=G.encode(v)}while(k>0);return L},K.decode=function(j,L,v){var S,y,k=j.length,b=0,O=0;do{if(L>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(y=G.decode(j.charCodeAt(L++))))throw new Error("Invalid base64 digit: "+j.charAt(L-1));S=!!(32&y),b+=(y&=31)<<O,O+=5}while(S);v.value=function E(D){var L=D>>1;return 1==(1&D)?-L:L}(b),v.rest=L}},5773:function(De,K){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");K.encode=function(G){if(0<=G&&G<m.length)return m[G];throw new TypeError("Must be between 0 and 63: "+G)},K.decode=function(G){return 65<=G&&G<=90?G-65:97<=G&&G<=122?G-97+26:48<=G&&G<=57?G-48+52:43==G?62:47==G?63:-1}},1490:function(De,K,m){var G=m(2472);function A(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}A.prototype.unsortedForEach=function(R,P){this._array.forEach(R,P)},A.prototype.add=function(R){!function W(U,R){var P=U.generatedLine,E=R.generatedLine,D=U.generatedColumn,j=R.generatedColumn;return E>P||E==P&&j>=D||G.compareByGeneratedPositionsInflated(U,R)<=0}(this._last,R)?(this._sorted=!1,this._array.push(R)):(this._last=R,this._array.push(R))},A.prototype.toArray=function(){return this._sorted||(this._array.sort(G.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},K.H=A},3058:function(De,K,m){var G=m(3357),W=m(2472),A=m(6842).I,U=m(1490).H;function R(P){P||(P={}),this._file=W.getArg(P,"file",null),this._sourceRoot=W.getArg(P,"sourceRoot",null),this._skipValidation=W.getArg(P,"skipValidation",!1),this._sources=new A,this._names=new A,this._mappings=new U,this._sourcesContents=null}R.prototype._version=3,R.fromSourceMap=function(E){var D=E.sourceRoot,j=new R({file:E.file,sourceRoot:D});return E.eachMapping(function(L){var v={generated:{line:L.generatedLine,column:L.generatedColumn}};null!=L.source&&(v.source=L.source,null!=D&&(v.source=W.relative(D,v.source)),v.original={line:L.originalLine,column:L.originalColumn},null!=L.name&&(v.name=L.name)),j.addMapping(v)}),E.sources.forEach(function(L){var v=L;null!==D&&(v=W.relative(D,L)),j._sources.has(v)||j._sources.add(v);var k=E.sourceContentFor(L);null!=k&&j.setSourceContent(L,k)}),j},R.prototype.addMapping=function(E){var D=W.getArg(E,"generated"),j=W.getArg(E,"original",null),L=W.getArg(E,"source",null),v=W.getArg(E,"name",null);this._skipValidation||this._validateMapping(D,j,L,v),null!=L&&(L=String(L),this._sources.has(L)||this._sources.add(L)),null!=v&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:D.line,generatedColumn:D.column,originalLine:null!=j&&j.line,originalColumn:null!=j&&j.column,source:L,name:v})},R.prototype.setSourceContent=function(E,D){var j=E;null!=this._sourceRoot&&(j=W.relative(this._sourceRoot,j)),null!=D?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[W.toSetString(j)]=D):this._sourcesContents&&(delete this._sourcesContents[W.toSetString(j)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},R.prototype.applySourceMap=function(E,D,j){var L=D;if(null==D){if(null==E.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');L=E.file}var v=this._sourceRoot;null!=v&&(L=W.relative(v,L));var k=new A,b=new A;this._mappings.unsortedForEach(function(O){if(O.source===L&&null!=O.originalLine){var S=E.originalPositionFor({line:O.originalLine,column:O.originalColumn});null!=S.source&&(O.source=S.source,null!=j&&(O.source=W.join(j,O.source)),null!=v&&(O.source=W.relative(v,O.source)),O.originalLine=S.line,O.originalColumn=S.column,null!=S.name&&(O.name=S.name))}var y=O.source;null!=y&&!k.has(y)&&k.add(y);var T=O.name;null!=T&&!b.has(T)&&b.add(T)},this),this._sources=k,this._names=b,E.sources.forEach(function(O){var S=E.sourceContentFor(O);null!=S&&(null!=j&&(O=W.join(j,O)),null!=v&&(O=W.relative(v,O)),this.setSourceContent(O,S))},this)},R.prototype._validateMapping=function(E,D,j,L){if(D&&"number"!=typeof D.line&&"number"!=typeof D.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(!(E&&"line"in E&&"column"in E&&E.line>0&&E.column>=0)||D||j||L){if(E&&"line"in E&&"column"in E&&D&&"line"in D&&"column"in D&&E.line>0&&E.column>=0&&D.line>0&&D.column>=0&&j)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:E,source:j,original:D,name:L}))}},R.prototype._serializeMappings=function(){for(var O,S,y,T,E=0,D=1,j=0,L=0,v=0,k=0,b="",M=this._mappings.toArray(),x=0,N=M.length;x<N;x++){if(O="",(S=M[x]).generatedLine!==D)for(E=0;S.generatedLine!==D;)O+=";",D++;else if(x>0){if(!W.compareByGeneratedPositionsInflated(S,M[x-1]))continue;O+=","}O+=G.encode(S.generatedColumn-E),E=S.generatedColumn,null!=S.source&&(T=this._sources.indexOf(S.source),O+=G.encode(T-k),k=T,O+=G.encode(S.originalLine-1-L),L=S.originalLine-1,O+=G.encode(S.originalColumn-j),j=S.originalColumn,null!=S.name&&(y=this._names.indexOf(S.name),O+=G.encode(y-v),v=y)),b+=O}return b},R.prototype._generateSourcesContent=function(E,D){return E.map(function(j){if(!this._sourcesContents)return null;null!=D&&(j=W.relative(D,j));var L=W.toSetString(j);return Object.prototype.hasOwnProperty.call(this._sourcesContents,L)?this._sourcesContents[L]:null},this)},R.prototype.toJSON=function(){var E={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(E.file=this._file),null!=this._sourceRoot&&(E.sourceRoot=this._sourceRoot),this._sourcesContents&&(E.sourcesContent=this._generateSourcesContent(E.sources,E.sourceRoot)),E},R.prototype.toString=function(){return JSON.stringify(this.toJSON())},K.h=R},2472:function(De,K){K.getArg=function m($,Y,Q){if(Y in $)return $[Y];if(3===arguments.length)return Q;throw new Error('"'+Y+'" is a required argument.')};var G=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,W=/^data:.+\,.+$/;function A($){var Y=$.match(G);return Y?{scheme:Y[1],auth:Y[2],host:Y[3],port:Y[4],path:Y[5]}:null}function U($){var Y="";return $.scheme&&(Y+=$.scheme+":"),Y+="//",$.auth&&(Y+=$.auth+"@"),$.host&&(Y+=$.host),$.port&&(Y+=":"+$.port),$.path&&(Y+=$.path),Y}K.urlParse=A,K.urlGenerate=U;var E=function P($){var Y=[];return function(Q){for(var ne=0;ne<Y.length;ne++)if(Y[ne].input===Q){var be=Y[0];return Y[0]=Y[ne],Y[ne]=be,Y[0].result}var pe=$(Q);return Y.unshift({input:Q,result:pe}),Y.length>32&&Y.pop(),pe}}(function(Y){var Q=Y,ne=A(Y);if(ne){if(!ne.path)return Y;Q=ne.path}for(var be=K.isAbsolute(Q),pe=[],de=0,le=0;;){if(de=le,-1===(le=Q.indexOf("/",de))){pe.push(Q.slice(de));break}for(pe.push(Q.slice(de,le));le<Q.length&&"/"===Q[le];)le++}var ce,me=0;for(le=pe.length-1;le>=0;le--)"."===(ce=pe[le])?pe.splice(le,1):".."===ce?me++:me>0&&(""===ce?(pe.splice(le+1,me),me=0):(pe.splice(le,2),me--));return""===(Q=pe.join("/"))&&(Q=be?"/":"."),ne?(ne.path=Q,U(ne)):Q});function D($,Y){""===$&&($="."),""===Y&&(Y=".");var Q=A(Y),ne=A($);if(ne&&($=ne.path||"/"),Q&&!Q.scheme)return ne&&(Q.scheme=ne.scheme),U(Q);if(Q||Y.match(W))return Y;if(ne&&!ne.host&&!ne.path)return ne.host=Y,U(ne);var be="/"===Y.charAt(0)?Y:E($.replace(/\/+$/,"")+"/"+Y);return ne?(ne.path=be,U(ne)):be}K.normalize=E,K.join=D,K.isAbsolute=function($){return"/"===$.charAt(0)||G.test($)},K.relative=function j($,Y){""===$&&($="."),$=$.replace(/\/$/,"");for(var Q=0;0!==Y.indexOf($+"/");){var ne=$.lastIndexOf("/");if(ne<0||($=$.slice(0,ne)).match(/^([^\/]+:\/)?\/*$/))return Y;++Q}return Array(Q+1).join("../")+Y.substr($.length+1)};var L=!("__proto__"in Object.create(null));function v($){return $}function O($){if(!$)return!1;var Y=$.length;if(Y<9||95!==$.charCodeAt(Y-1)||95!==$.charCodeAt(Y-2)||111!==$.charCodeAt(Y-3)||116!==$.charCodeAt(Y-4)||111!==$.charCodeAt(Y-5)||114!==$.charCodeAt(Y-6)||112!==$.charCodeAt(Y-7)||95!==$.charCodeAt(Y-8)||95!==$.charCodeAt(Y-9))return!1;for(var Q=Y-10;Q>=0;Q--)if(36!==$.charCodeAt(Q))return!1;return!0}function x($,Y){return $===Y?0:null===$?1:null===Y?-1:$>Y?1:-1}K.toSetString=L?v:function k($){return O($)?"$"+$:$},K.fromSetString=L?v:function b($){return O($)?$.slice(1):$},K.compareByOriginalPositions=function S($,Y,Q){var ne=x($.source,Y.source);return 0!==ne||0!==(ne=$.originalLine-Y.originalLine)||(0!==(ne=$.originalColumn-Y.originalColumn)||Q)||0!==(ne=$.generatedColumn-Y.generatedColumn)||0!==(ne=$.generatedLine-Y.generatedLine)?ne:x($.name,Y.name)},K.compareByOriginalPositionsNoSource=function y($,Y,Q){var ne;return 0!==(ne=$.originalLine-Y.originalLine)||(0!==(ne=$.originalColumn-Y.originalColumn)||Q)||0!==(ne=$.generatedColumn-Y.generatedColumn)||0!==(ne=$.generatedLine-Y.generatedLine)?ne:x($.name,Y.name)},K.compareByGeneratedPositionsDeflated=function T($,Y,Q){var ne=$.generatedLine-Y.generatedLine;return 0!==ne||(0!==(ne=$.generatedColumn-Y.generatedColumn)||Q)||0!==(ne=x($.source,Y.source))||0!==(ne=$.originalLine-Y.originalLine)||0!==(ne=$.originalColumn-Y.originalColumn)?ne:x($.name,Y.name)},K.compareByGeneratedPositionsDeflatedNoLine=function M($,Y,Q){var ne=$.generatedColumn-Y.generatedColumn;return 0!==ne||Q||0!==(ne=x($.source,Y.source))||0!==(ne=$.originalLine-Y.originalLine)||0!==(ne=$.originalColumn-Y.originalColumn)?ne:x($.name,Y.name)},K.compareByGeneratedPositionsInflated=function N($,Y){var Q=$.generatedLine-Y.generatedLine;return 0!==Q||0!==(Q=$.generatedColumn-Y.generatedColumn)||0!==(Q=x($.source,Y.source))||0!==(Q=$.originalLine-Y.originalLine)||0!==(Q=$.originalColumn-Y.originalColumn)?Q:x($.name,Y.name)},K.parseSourceMapInput=function F($){return JSON.parse($.replace(/^\)]}'[^\n]*\n/,""))},K.computeSourceURL=function X($,Y,Q){if(Y=Y||"",$&&("/"!==$[$.length-1]&&"/"!==Y[0]&&($+="/"),Y=$+Y),Q){var ne=A(Q);if(!ne)throw new Error("sourceMapURL could not be parsed");if(ne.path){var be=ne.path.lastIndexOf("/");be>=0&&(ne.path=ne.path.substring(0,be+1))}Y=D(U(ne),Y)}return E(Y)}},1452:function(De){De.exports=function(K){"use strict";var G=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function A(y,T){var M=y[0],x=y[1],N=y[2],F=y[3];x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&N|~x&F)+T[0]-680876936|0)<<7|M>>>25)+x|0)&x|~M&N)+T[1]-389564586|0)<<12|F>>>20)+M|0)&M|~F&x)+T[2]+606105819|0)<<17|N>>>15)+F|0)&F|~N&M)+T[3]-1044525330|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&N|~x&F)+T[4]-176418897|0)<<7|M>>>25)+x|0)&x|~M&N)+T[5]+1200080426|0)<<12|F>>>20)+M|0)&M|~F&x)+T[6]-1473231341|0)<<17|N>>>15)+F|0)&F|~N&M)+T[7]-45705983|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&N|~x&F)+T[8]+1770035416|0)<<7|M>>>25)+x|0)&x|~M&N)+T[9]-1958414417|0)<<12|F>>>20)+M|0)&M|~F&x)+T[10]-42063|0)<<17|N>>>15)+F|0)&F|~N&M)+T[11]-1990404162|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&N|~x&F)+T[12]+1804603682|0)<<7|M>>>25)+x|0)&x|~M&N)+T[13]-40341101|0)<<12|F>>>20)+M|0)&M|~F&x)+T[14]-1502002290|0)<<17|N>>>15)+F|0)&F|~N&M)+T[15]+1236535329|0)<<22|x>>>10)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&F|N&~F)+T[1]-165796510|0)<<5|M>>>27)+x|0)&N|x&~N)+T[6]-1069501632|0)<<9|F>>>23)+M|0)&x|M&~x)+T[11]+643717713|0)<<14|N>>>18)+F|0)&M|F&~M)+T[0]-373897302|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&F|N&~F)+T[5]-701558691|0)<<5|M>>>27)+x|0)&N|x&~N)+T[10]+38016083|0)<<9|F>>>23)+M|0)&x|M&~x)+T[15]-660478335|0)<<14|N>>>18)+F|0)&M|F&~M)+T[4]-405537848|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&F|N&~F)+T[9]+568446438|0)<<5|M>>>27)+x|0)&N|x&~N)+T[14]-1019803690|0)<<9|F>>>23)+M|0)&x|M&~x)+T[3]-187363961|0)<<14|N>>>18)+F|0)&M|F&~M)+T[8]+1163531501|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x&F|N&~F)+T[13]-1444681467|0)<<5|M>>>27)+x|0)&N|x&~N)+T[2]-51403784|0)<<9|F>>>23)+M|0)&x|M&~x)+T[7]+1735328473|0)<<14|N>>>18)+F|0)&M|F&~M)+T[12]-1926607734|0)<<20|x>>>12)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x^N^F)+T[5]-378558|0)<<4|M>>>28)+x|0)^x^N)+T[8]-2022574463|0)<<11|F>>>21)+M|0)^M^x)+T[11]+1839030562|0)<<16|N>>>16)+F|0)^F^M)+T[14]-35309556|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x^N^F)+T[1]-1530992060|0)<<4|M>>>28)+x|0)^x^N)+T[4]+1272893353|0)<<11|F>>>21)+M|0)^M^x)+T[7]-155497632|0)<<16|N>>>16)+F|0)^F^M)+T[10]-1094730640|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x^N^F)+T[13]+681279174|0)<<4|M>>>28)+x|0)^x^N)+T[0]-358537222|0)<<11|F>>>21)+M|0)^M^x)+T[3]-722521979|0)<<16|N>>>16)+F|0)^F^M)+T[6]+76029189|0)<<23|x>>>9)+N|0,x=((x+=((N=((N+=((F=((F+=((M=((M+=(x^N^F)+T[9]-640364487|0)<<4|M>>>28)+x|0)^x^N)+T[12]-421815835|0)<<11|F>>>21)+M|0)^M^x)+T[15]+530742520|0)<<16|N>>>16)+F|0)^F^M)+T[2]-995338651|0)<<23|x>>>9)+N|0,x=((x+=((F=((F+=(x^((M=((M+=(N^(x|~F))+T[0]-198630844|0)<<6|M>>>26)+x|0)|~N))+T[7]+1126891415|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~x))+T[14]-1416354905|0)<<15|N>>>17)+F|0)|~M))+T[5]-57434055|0)<<21|x>>>11)+N|0,x=((x+=((F=((F+=(x^((M=((M+=(N^(x|~F))+T[12]+1700485571|0)<<6|M>>>26)+x|0)|~N))+T[3]-1894986606|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~x))+T[10]-1051523|0)<<15|N>>>17)+F|0)|~M))+T[1]-2054922799|0)<<21|x>>>11)+N|0,x=((x+=((F=((F+=(x^((M=((M+=(N^(x|~F))+T[8]+1873313359|0)<<6|M>>>26)+x|0)|~N))+T[15]-30611744|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~x))+T[6]-1560198380|0)<<15|N>>>17)+F|0)|~M))+T[13]+1309151649|0)<<21|x>>>11)+N|0,x=((x+=((F=((F+=(x^((M=((M+=(N^(x|~F))+T[4]-145523070|0)<<6|M>>>26)+x|0)|~N))+T[11]-1120210379|0)<<10|F>>>22)+M|0)^((N=((N+=(M^(F|~x))+T[2]+718787259|0)<<15|N>>>17)+F|0)|~M))+T[9]-343485551|0)<<21|x>>>11)+N|0,y[0]=M+y[0]|0,y[1]=x+y[1]|0,y[2]=N+y[2]|0,y[3]=F+y[3]|0}function U(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y.charCodeAt(M)+(y.charCodeAt(M+1)<<8)+(y.charCodeAt(M+2)<<16)+(y.charCodeAt(M+3)<<24);return T}function R(y){var M,T=[];for(M=0;M<64;M+=4)T[M>>2]=y[M]+(y[M+1]<<8)+(y[M+2]<<16)+(y[M+3]<<24);return T}function P(y){var x,N,F,X,$,Y,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=T;x+=64)A(M,U(y.substring(x-64,x)));for(N=(y=y.substring(x-64)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<N;x+=1)F[x>>2]|=y.charCodeAt(x)<<(x%4<<3);if(F[x>>2]|=128<<(x%4<<3),x>55)for(A(M,F),x=0;x<16;x+=1)F[x]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),Y=parseInt(X[1],16)||0,F[14]=$,F[15]=Y,A(M,F),M}function E(y){var x,N,F,X,$,Y,T=y.length,M=[1732584193,-271733879,-1732584194,271733878];for(x=64;x<=T;x+=64)A(M,R(y.subarray(x-64,x)));for(N=(y=x-64<T?y.subarray(x-64):new Uint8Array(0)).length,F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<N;x+=1)F[x>>2]|=y[x]<<(x%4<<3);if(F[x>>2]|=128<<(x%4<<3),x>55)for(A(M,F),x=0;x<16;x+=1)F[x]=0;return X=(X=8*T).toString(16).match(/(.*?)(.{0,8})$/),$=parseInt(X[2],16),Y=parseInt(X[1],16)||0,F[14]=$,F[15]=Y,A(M,F),M}function D(y){var M,T="";for(M=0;M<4;M+=1)T+=G[y>>8*M+4&15]+G[y>>8*M&15];return T}function j(y){var T;for(T=0;T<y.length;T+=1)y[T]=D(y[T]);return y.join("")}function L(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function v(y,T){var F,M=y.length,x=new ArrayBuffer(M),N=new Uint8Array(x);for(F=0;F<M;F+=1)N[F]=y.charCodeAt(F);return T?N:x}function k(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function b(y,T,M){var x=new Uint8Array(y.byteLength+T.byteLength);return x.set(new Uint8Array(y)),x.set(new Uint8Array(T),y.byteLength),M?x:x.buffer}function O(y){var x,T=[],M=y.length;for(x=0;x<M-1;x+=2)T.push(parseInt(y.substr(x,2),16));return String.fromCharCode.apply(String,T)}function S(){this.reset()}return j(P("hello")),"undefined"!=typeof ArrayBuffer&&!ArrayBuffer.prototype.slice&&function(){function y(T,M){return(T=0|T||0)<0?Math.max(T+M,0):Math.min(T,M)}ArrayBuffer.prototype.slice=function(T,M){var X,$,Y,Q,x=this.byteLength,N=y(T,x),F=x;return M!==K&&(F=y(M,x)),N>F?new ArrayBuffer(0):(X=F-N,$=new ArrayBuffer(X),Y=new Uint8Array($),Q=new Uint8Array(this,N,X),Y.set(Q),$)}}(),S.prototype.append=function(y){return this.appendBinary(L(y)),this},S.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var M,T=this._buff.length;for(M=64;M<=T;M+=64)A(this._hash,U(this._buff.substring(M-64,M)));return this._buff=this._buff.substring(M-64),this},S.prototype.end=function(y){var x,F,T=this._buff,M=T.length,N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(x=0;x<M;x+=1)N[x>>2]|=T.charCodeAt(x)<<(x%4<<3);return this._finish(N,M),F=j(this._hash),y&&(F=O(F)),this.reset(),F},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(y,T){var x,N,F,M=T;if(y[M>>2]|=128<<(M%4<<3),M>55)for(A(this._hash,y),M=0;M<16;M+=1)y[M]=0;x=(x=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(x[2],16),F=parseInt(x[1],16)||0,y[14]=N,y[15]=F,A(this._hash,y)},S.hash=function(y,T){return S.hashBinary(L(y),T)},S.hashBinary=function(y,T){var x=j(P(y));return T?O(x):x},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(y){var x,T=b(this._buff.buffer,y,!0),M=T.length;for(this._length+=y.byteLength,x=64;x<=M;x+=64)A(this._hash,R(T.subarray(x-64,x)));return this._buff=x-64<M?new Uint8Array(T.buffer.slice(x-64)):new Uint8Array(0),this},S.ArrayBuffer.prototype.end=function(y){var N,F,T=this._buff,M=T.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(N=0;N<M;N+=1)x[N>>2]|=T[N]<<(N%4<<3);return this._finish(x,M),F=j(this._hash),y&&(F=O(F)),this.reset(),F},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var y=S.prototype.getState.call(this);return y.buff=k(y.buff),y},S.ArrayBuffer.prototype.setState=function(y){return y.buff=v(y.buff,!0),S.prototype.setState.call(this,y)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(y,T){var x=j(E(new Uint8Array(y)));return T?O(x):x},S}()},986:function(De){window,De.exports=function(K){var m={};function G(W){if(m[W])return m[W].exports;var A=m[W]={i:W,l:!1,exports:{}};return K[W].call(A.exports,A,A.exports,G),A.l=!0,A.exports}return G.m=K,G.c=m,G.d=function(W,A,U){G.o(W,A)||Object.defineProperty(W,A,{enumerable:!0,get:U})},G.r=function(W){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},G.t=function(W,A){if(1&A&&(W=G(W)),8&A||4&A&&"object"==typeof W&&W&&W.__esModule)return W;var U=Object.create(null);if(G.r(U),Object.defineProperty(U,"default",{enumerable:!0,value:W}),2&A&&"string"!=typeof W)for(var R in W)G.d(U,R,function(P){return W[P]}.bind(null,R));return U},G.n=function(W){var A=W&&W.__esModule?function(){return W.default}:function(){return W};return G.d(A,"a",A),A},G.o=function(W,A){return Object.prototype.hasOwnProperty.call(W,A)},G.p="",G(G.s=0)}([function(K,m,G){"use strict";Object.defineProperty(m,"__esModule",{value:!0}),m.AttachAddon=void 0;var W=function(){function U(R,P){this._disposables=[],this._socket=R,this._socket.binaryType="arraybuffer",this._bidirectional=!P||!1!==P.bidirectional}return U.prototype.activate=function(R){var P=this;this._disposables.push(A(this._socket,"message",function(E){var D=E.data;R.write("string"==typeof D?D:new Uint8Array(D))})),this._bidirectional&&(this._disposables.push(R.onData(function(E){return P._sendData(E)})),this._disposables.push(R.onBinary(function(E){return P._sendBinary(E)}))),this._disposables.push(A(this._socket,"close",function(){return P.dispose()})),this._disposables.push(A(this._socket,"error",function(){return P.dispose()}))},U.prototype.dispose=function(){this._disposables.forEach(function(R){return R.dispose()})},U.prototype._sendData=function(R){1===this._socket.readyState&&this._socket.send(R)},U.prototype._sendBinary=function(R){if(1===this._socket.readyState){for(var P=new Uint8Array(R.length),E=0;E<R.length;++E)P[E]=255&R.charCodeAt(E);this._socket.send(P)}},U}();function A(U,R,P){return U.addEventListener(R,P),{dispose:function(){P&&U.removeEventListener(R,P)}}}m.AttachAddon=W}])},9162:function(De){self,De.exports=function(){"use strict";var K={775:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.FitAddon=void 0;var U=function(){function R(){}return R.prototype.activate=function(P){this._terminal=P},R.prototype.dispose=function(){},R.prototype.fit=function(){var P=this.proposeDimensions();if(P&&this._terminal){var E=this._terminal._core;this._terminal.rows===P.rows&&this._terminal.cols===P.cols||(E._renderService.clear(),this._terminal.resize(P.cols,P.rows))}},R.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 E=window.getComputedStyle(this._terminal.element.parentElement),D=parseInt(E.getPropertyValue("height")),j=Math.max(0,parseInt(E.getPropertyValue("width"))),L=window.getComputedStyle(this._terminal.element),v=D-(parseInt(L.getPropertyValue("padding-top"))+parseInt(L.getPropertyValue("padding-bottom"))),k=j-(parseInt(L.getPropertyValue("padding-right"))+parseInt(L.getPropertyValue("padding-left")))-P.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(k/P._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(v/P._renderService.dimensions.actualCellHeight))}}}},R}();A.FitAddon=U}},m={};return function G(W){if(m[W])return m[W].exports;var A=m[W]={exports:{}};return K[W](A,A.exports,G),A.exports}(775)}()},4793:function(De){self,De.exports=function(){"use strict";var K={4567:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.AccessibilityManager=void 0;var E=U(9042),D=U(6114),j=U(9924),L=U(3656),v=U(844),k=U(5596),b=U(9631),O=function(S){function y(T,M){var x=S.call(this)||this;x._terminal=T,x._renderService=M,x._liveRegionLineCount=0,x._charsToConsume=[],x._charsToAnnounce="",x._accessibilityTreeRoot=document.createElement("div"),x._accessibilityTreeRoot.classList.add("xterm-accessibility"),x._accessibilityTreeRoot.tabIndex=0,x._rowContainer=document.createElement("div"),x._rowContainer.setAttribute("role","list"),x._rowContainer.classList.add("xterm-accessibility-tree"),x._rowElements=[];for(var N=0;N<x._terminal.rows;N++)x._rowElements[N]=x._createAccessibilityTreeNode(),x._rowContainer.appendChild(x._rowElements[N]);if(x._topBoundaryFocusListener=function(F){return x._onBoundaryFocus(F,0)},x._bottomBoundaryFocusListener=function(F){return x._onBoundaryFocus(F,1)},x._rowElements[0].addEventListener("focus",x._topBoundaryFocusListener),x._rowElements[x._rowElements.length-1].addEventListener("focus",x._bottomBoundaryFocusListener),x._refreshRowsDimensions(),x._accessibilityTreeRoot.appendChild(x._rowContainer),x._renderRowsDebouncer=new j.TimeBasedDebouncer(x._renderRows.bind(x)),x._refreshRows(),x._liveRegion=document.createElement("div"),x._liveRegion.classList.add("live-region"),x._liveRegion.setAttribute("aria-live","assertive"),x._accessibilityTreeRoot.appendChild(x._liveRegion),!x._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return x._terminal.element.insertAdjacentElement("afterbegin",x._accessibilityTreeRoot),x.register(x._renderRowsDebouncer),x.register(x._terminal.onResize(function(F){return x._onResize(F.rows)})),x.register(x._terminal.onRender(function(F){return x._refreshRows(F.start,F.end)})),x.register(x._terminal.onScroll(function(){return x._refreshRows()})),x.register(x._terminal.onA11yChar(function(F){return x._onChar(F)})),x.register(x._terminal.onLineFeed(function(){return x._onChar("\n")})),x.register(x._terminal.onA11yTab(function(F){return x._onTab(F)})),x.register(x._terminal.onKey(function(F){return x._onKey(F.key)})),x.register(x._terminal.onBlur(function(){return x._clearLiveRegion()})),x.register(x._renderService.onDimensionsChange(function(){return x._refreshRowsDimensions()})),x._screenDprMonitor=new k.ScreenDprMonitor,x.register(x._screenDprMonitor),x._screenDprMonitor.setListener(function(){return x._refreshRowsDimensions()}),x.register((0,L.addDisposableDomListener)(window,"resize",function(){return x._refreshRowsDimensions()})),x}return P(y,S),y.prototype.dispose=function(){S.prototype.dispose.call(this),(0,b.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},y.prototype._onBoundaryFocus=function(T,M){var x=T.target,N=this._rowElements[0===M?1:this._rowElements.length-2];if(x.getAttribute("aria-posinset")!==(0===M?"1":""+this._terminal.buffer.lines.length)&&T.relatedTarget===N){var F,X;if(0===M?(F=x,X=this._rowElements.pop(),this._rowContainer.removeChild(X)):(F=this._rowElements.shift(),X=x,this._rowContainer.removeChild(F)),F.removeEventListener("focus",this._topBoundaryFocusListener),X.removeEventListener("focus",this._bottomBoundaryFocusListener),0===M){var $=this._createAccessibilityTreeNode();this._rowElements.unshift($),this._rowContainer.insertAdjacentElement("afterbegin",$)}else $=this._createAccessibilityTreeNode(),this._rowElements.push($),this._rowContainer.appendChild($);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===M?-1:1),this._rowElements[0===M?1:this._rowElements.length-2].focus(),T.preventDefault(),T.stopImmediatePropagation()}},y.prototype._onResize=function(T){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var M=this._rowContainer.children.length;M<this._terminal.rows;M++)this._rowElements[M]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[M]);for(;this._rowElements.length>T;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},y.prototype._createAccessibilityTreeNode=function(){var T=document.createElement("div");return T.setAttribute("role","listitem"),T.tabIndex=-1,this._refreshRowDimensions(T),T},y.prototype._onTab=function(T){for(var M=0;M<T;M++)this._onChar(" ")},y.prototype._onChar=function(T){var M=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==T&&(this._charsToAnnounce+=T):this._charsToAnnounce+=T,"\n"===T&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=E.tooMuchOutput)),D.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){M._accessibilityTreeRoot.appendChild(M._liveRegion)},0))},y.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,D.isMac&&(0,b.removeElementFromParent)(this._liveRegion)},y.prototype._onKey=function(T){this._clearLiveRegion(),this._charsToConsume.push(T)},y.prototype._refreshRows=function(T,M){this._renderRowsDebouncer.refresh(T,M,this._terminal.rows)},y.prototype._renderRows=function(T,M){for(var x=this._terminal.buffer,N=x.lines.length.toString(),F=T;F<=M;F++){var X=x.translateBufferLineToString(x.ydisp+F,!0),$=(x.ydisp+F+1).toString(),Y=this._rowElements[F];Y&&(0===X.length?Y.innerText="\xa0":Y.textContent=X,Y.setAttribute("aria-posinset",$),Y.setAttribute("aria-setsize",N))}this._announceCharacters()},y.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var T=0;T<this._terminal.rows;T++)this._refreshRowDimensions(this._rowElements[T])}},y.prototype._refreshRowDimensions=function(T){T.style.height=this._renderService.dimensions.actualCellHeight+"px"},y.prototype._announceCharacters=function(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},y}(v.Disposable);A.AccessibilityManager=O},3614:function(W,A){function U(D){return D.replace(/\r?\n/g,"\r")}function R(D,j){return j?"\x1b[200~"+D+"\x1b[201~":D}function P(D,j,L){D=R(D=U(D),L.decPrivateModes.bracketedPasteMode),L.triggerDataEvent(D,!0),j.value=""}function E(D,j,L){var v=L.getBoundingClientRect(),k=D.clientX-v.left-10,b=D.clientY-v.top-10;j.style.width="20px",j.style.height="20px",j.style.left=k+"px",j.style.top=b+"px",j.style.zIndex="1000",j.focus()}Object.defineProperty(A,"__esModule",{value:!0}),A.rightClickHandler=A.moveTextAreaUnderMouseCursor=A.paste=A.handlePasteEvent=A.copyHandler=A.bracketTextForPaste=A.prepareTextForTerminal=void 0,A.prepareTextForTerminal=U,A.bracketTextForPaste=R,A.copyHandler=function(D,j){D.clipboardData&&D.clipboardData.setData("text/plain",j.selectionText),D.preventDefault()},A.handlePasteEvent=function(D,j,L){D.stopPropagation(),D.clipboardData&&P(D.clipboardData.getData("text/plain"),j,L)},A.paste=P,A.moveTextAreaUnderMouseCursor=E,A.rightClickHandler=function(D,j,L,v,k){E(D,j,L),k&&v.rightClickSelect(D),j.value=v.selectionText,j.select()}},7239:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ColorContrastCache=void 0;var U=function(){function R(){this._color={},this._rgba={}}return R.prototype.clear=function(){this._color={},this._rgba={}},R.prototype.setCss=function(P,E,D){this._rgba[P]||(this._rgba[P]={}),this._rgba[P][E]=D},R.prototype.getCss=function(P,E){return this._rgba[P]?this._rgba[P][E]:void 0},R.prototype.setColor=function(P,E,D){this._color[P]||(this._color[P]={}),this._color[P][E]=D},R.prototype.getColor=function(P,E){return this._color[P]?this._color[P][E]:void 0},R}();A.ColorContrastCache=U},5680:function(W,A,U){var R=this&&this.__read||function(O,S){var y="function"==typeof Symbol&&O[Symbol.iterator];if(!y)return O;var T,M,x=y.call(O),N=[];try{for(;(void 0===S||S-- >0)&&!(T=x.next()).done;)N.push(T.value)}catch(F){M={error:F}}finally{try{T&&!T.done&&(y=x.return)&&y.call(x)}finally{if(M)throw M.error}}return N};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorManager=A.DEFAULT_ANSI_COLORS=void 0;var P=U(8055),E=U(7239),D=P.css.toColor("#ffffff"),j=P.css.toColor("#000000"),L=P.css.toColor("#ffffff"),v=P.css.toColor("#000000"),k={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};A.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var O=[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")],S=[0,95,135,175,215,255],y=0;y<216;y++){var T=S[y/36%6|0],M=S[y/6%6|0],x=S[y%6];O.push({css:P.channels.toCss(T,M,x),rgba:P.channels.toRgba(T,M,x)})}for(y=0;y<24;y++){var N=8+10*y;O.push({css:P.channels.toCss(N,N,N),rgba:P.channels.toRgba(N,N,N)})}return O}());var b=function(){function O(S,y){this.allowTransparency=y;var T=S.createElement("canvas");T.width=1,T.height=1;var M=T.getContext("2d");if(!M)throw new Error("Could not get rendering context");this._ctx=M,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new E.ColorContrastCache,this.colors={foreground:D,background:j,cursor:L,cursorAccent:v,selectionTransparent:k,selectionOpaque:P.color.blend(j,k),selectionForeground:void 0,ansi:A.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return O.prototype.onOptionsChange=function(S){"minimumContrastRatio"===S&&this._contrastCache.clear()},O.prototype.setTheme=function(S){void 0===S&&(S={}),this.colors.foreground=this._parseColor(S.foreground,D),this.colors.background=this._parseColor(S.background,j),this.colors.cursor=this._parseColor(S.cursor,L,!0),this.colors.cursorAccent=this._parseColor(S.cursorAccent,v,!0),this.colors.selectionTransparent=this._parseColor(S.selection,k,!0),this.colors.selectionOpaque=P.color.blend(this.colors.background,this.colors.selectionTransparent);var y={css:"",rgba:0};this.colors.selectionForeground=S.selectionForeground?this._parseColor(S.selectionForeground,y):void 0,this.colors.selectionForeground===y&&(this.colors.selectionForeground=void 0),P.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=P.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(S.black,A.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(S.red,A.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(S.green,A.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(S.yellow,A.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(S.blue,A.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(S.magenta,A.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(S.cyan,A.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(S.white,A.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(S.brightBlack,A.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(S.brightRed,A.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(S.brightGreen,A.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(S.brightYellow,A.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(S.brightBlue,A.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(S.brightMagenta,A.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(S.brightCyan,A.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(S.brightWhite,A.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},O.prototype.restoreColor=function(S){if(void 0!==S)switch(S){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[S]=this._restoreColors.ansi[S]}else for(var y=0;y<this._restoreColors.ansi.length;++y)this.colors.ansi[y]=this._restoreColors.ansi[y]},O.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:this.colors.ansi.slice()}},O.prototype._parseColor=function(S,y,T){if(void 0===T&&(T=this.allowTransparency),void 0===S)return y;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=S,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+S+" is invalid using fallback "+y.css),y;this._ctx.fillRect(0,0,1,1);var M=this._ctx.getImageData(0,0,1,1).data;if(255!==M[3]){if(!T)return console.warn("Color: "+S+" is using transparency, but allowTransparency is false. Using fallback "+y.css+"."),y;var x=R(this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Q){return Number(Q)}),4),N=x[0],F=x[1],X=x[2],$=x[3],Y=Math.round(255*$);return{rgba:P.channels.toRgba(N,F,X,Y),css:S}}return{css:this._ctx.fillStyle,rgba:P.channels.toRgba(M[0],M[1],M[2],M[3])}},O}();A.ColorManager=b},9631:function(W,A){var U=this&&this.__values||function(R){var P="function"==typeof Symbol&&Symbol.iterator,E=P&&R[P],D=0;if(E)return E.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&D>=R.length&&(R=void 0),{value:R&&R[D++],done:!R}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.removeElementFromParent=void 0,A.removeElementFromParent=function(){for(var R,P,E,D=[],j=0;j<arguments.length;j++)D[j]=arguments[j];try{for(var L=U(D),v=L.next();!v.done;v=L.next()){var k=v.value;null===(E=null==k?void 0:k.parentElement)||void 0===E||E.removeChild(k)}}catch(b){R={error:b}}finally{try{v&&!v.done&&(P=L.return)&&P.call(L)}finally{if(R)throw R.error}}}},3656:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.addDisposableDomListener=void 0,A.addDisposableDomListener=function(U,R,P,E){U.addEventListener(R,P,E);var D=!1;return{dispose:function(){D||(D=!0,U.removeEventListener(R,P,E))}}}},3551:function(W,A,U){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZone=A.Linkifier=void 0;var E=U(8460),D=U(2585),j=function(){function v(k,b,O){this._bufferService=k,this._logService=b,this._unicodeService=O,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new E.EventEmitter,this._onHideLinkUnderline=new E.EventEmitter,this._onLinkTooltip=new E.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(v.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),v.prototype.attachToDom=function(k,b){this._element=k,this._mouseZoneManager=b},v.prototype.linkifyRows=function(k,b){var O=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=k,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,k),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(k,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return O._linkifyRows()},v._timeBeforeLatency))},v.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var k=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var b=k.ydisp+this._rowsToLinkify.start;if(!(b>=k.lines.length)){for(var O=k.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,S=Math.ceil(2e3/this._bufferService.cols),y=this._bufferService.buffer.iterator(!1,b,O,S,S);y.hasNext();)for(var T=y.next(),M=0;M<this._linkMatchers.length;M++)this._doLinkifyRow(T.range.first,T.content,this._linkMatchers[M]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},v.prototype.registerLinkMatcher=function(k,b,O){if(void 0===O&&(O={}),!b)throw new Error("handler must be defined");var S={id:this._nextLinkMatcherId++,regex:k,handler:b,matchIndex:O.matchIndex,validationCallback:O.validationCallback,hoverTooltipCallback:O.tooltipCallback,hoverLeaveCallback:O.leaveCallback,willLinkActivate:O.willLinkActivate,priority:O.priority||0};return this._addLinkMatcherToList(S),S.id},v.prototype._addLinkMatcherToList=function(k){if(0!==this._linkMatchers.length){for(var b=this._linkMatchers.length-1;b>=0;b--)if(k.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,k);this._linkMatchers.splice(0,0,k)}else this._linkMatchers.push(k)},v.prototype.deregisterLinkMatcher=function(k){for(var b=0;b<this._linkMatchers.length;b++)if(this._linkMatchers[b].id===k)return this._linkMatchers.splice(b,1),!0;return!1},v.prototype._doLinkifyRow=function(k,b,O){for(var S,y=this,T=new RegExp(O.regex.source,(O.regex.flags||"")+"g"),M=-1,x=function(){var X=S["number"!=typeof O.matchIndex?0:O.matchIndex];if(!X)return N._logService.debug("match found without corresponding matchIndex",S,O),"break";if(M=b.indexOf(X,M+1),T.lastIndex=M+X.length,M<0)return"break";var $=N._bufferService.buffer.stringIndexToBufferIndex(k,M);if($[0]<0)return"break";var Y=N._bufferService.buffer.lines.get($[0]);if(!Y)return"break";var Q=Y.getFg($[1]),ne=Q?Q>>9&511:void 0;O.validationCallback?O.validationCallback(X,function(be){y._rowsTimeoutId||be&&y._addLink($[1],$[0]-y._bufferService.buffer.ydisp,X,O,ne)}):N._addLink($[1],$[0]-N._bufferService.buffer.ydisp,X,O,ne)},N=this;null!==(S=T.exec(b))&&"break"!==x(););},v.prototype._addLink=function(k,b,O,S,y){var T=this;if(this._mouseZoneManager&&this._element){var M=this._unicodeService.getStringCellWidth(O),x=k%this._bufferService.cols,N=b+Math.floor(k/this._bufferService.cols),F=(x+M)%this._bufferService.cols,X=N+Math.floor((x+M)/this._bufferService.cols);0===F&&(F=this._bufferService.cols,X--),this._mouseZoneManager.add(new L(x+1,N+1,F+1,X+1,function($){if(S.handler)return S.handler($,O);var Y=window.open();Y?(Y.opener=null,Y.location.href=O):console.warn("Opening link blocked as opener could not be cleared")},function(){T._onShowLinkUnderline.fire(T._createLinkHoverEvent(x,N,F,X,y)),T._element.classList.add("xterm-cursor-pointer")},function($){T._onLinkTooltip.fire(T._createLinkHoverEvent(x,N,F,X,y)),S.hoverTooltipCallback&&S.hoverTooltipCallback($,O,{start:{x:x,y:N},end:{x:F,y:X}})},function(){T._onHideLinkUnderline.fire(T._createLinkHoverEvent(x,N,F,X,y)),T._element.classList.remove("xterm-cursor-pointer"),S.hoverLeaveCallback&&S.hoverLeaveCallback()},function($){return!S.willLinkActivate||S.willLinkActivate($,O)}))}},v.prototype._createLinkHoverEvent=function(k,b,O,S,y){return{x1:k,y1:b,x2:O,y2:S,cols:this._bufferService.cols,fg:y}},v._timeBeforeLatency=200,v=R([P(0,D.IBufferService),P(1,D.ILogService),P(2,D.IUnicodeService)],v)}();A.Linkifier=j;var L=function(k,b,O,S,y,T,M,x,N){this.x1=k,this.y1=b,this.x2=O,this.y2=S,this.clickCallback=y,this.hoverCallback=T,this.tooltipCallback=M,this.leaveCallback=x,this.willLinkActivate=N};A.MouseZone=L},6465:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(x[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,F=arguments.length,X=F<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}},j=this&&this.__values||function(y){var T="function"==typeof Symbol&&Symbol.iterator,M=T&&y[T],x=0;if(M)return M.call(y);if(y&&"number"==typeof y.length)return{next:function(){return y&&x>=y.length&&(y=void 0),{value:y&&y[x++],done:!y}}};throw new TypeError(T?"Object is not iterable.":"Symbol.iterator is not defined.")},L=this&&this.__read||function(y,T){var M="function"==typeof Symbol&&y[Symbol.iterator];if(!M)return y;var x,N,F=M.call(y),X=[];try{for(;(void 0===T||T-- >0)&&!(x=F.next()).done;)X.push(x.value)}catch($){N={error:$}}finally{try{x&&!x.done&&(M=F.return)&&M.call(F)}finally{if(N)throw N.error}}return X};Object.defineProperty(A,"__esModule",{value:!0}),A.Linkifier2=void 0;var v=U(2585),k=U(8460),b=U(844),O=U(3656),S=function(y){function T(M){var x=y.call(this)||this;return x._bufferService=M,x._linkProviders=[],x._linkCacheDisposables=[],x._isMouseOut=!0,x._activeLine=-1,x._onShowLinkUnderline=x.register(new k.EventEmitter),x._onHideLinkUnderline=x.register(new k.EventEmitter),x.register((0,b.getDisposeArrayDisposable)(x._linkCacheDisposables)),x}return P(T,y),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(M){var x=this;return this._linkProviders.push(M),{dispose:function(){var F=x._linkProviders.indexOf(M);-1!==F&&x._linkProviders.splice(F,1)}}},T.prototype.attachToDom=function(M,x,N){var F=this;this._element=M,this._mouseService=x,this._renderService=N,this.register((0,O.addDisposableDomListener)(this._element,"mouseleave",function(){F._isMouseOut=!0,F._clearCurrentLink()})),this.register((0,O.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,O.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))},T.prototype._onMouseMove=function(M){if(this._lastMouseEvent=M,this._element&&this._mouseService){var x=this._positionFromMouseEvent(M,this._element,this._mouseService);if(x){this._isMouseOut=!1;for(var N=M.composedPath(),F=0;F<N.length;F++){var X=N[F];if(X.classList.contains("xterm"))break;if(X.classList.contains("xterm-hover"))return}this._lastBufferCell&&x.x===this._lastBufferCell.x&&x.y===this._lastBufferCell.y||(this._onHover(x),this._lastBufferCell=x)}}},T.prototype._onHover=function(M){if(this._activeLine!==M.y)return this._clearCurrentLink(),void this._askForLink(M,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,M)||(this._clearCurrentLink(),this._askForLink(M,!0))},T.prototype._askForLink=function(M,x){var N,F,X,$,Y=this;this._activeProviderReplies&&x||(null===(X=this._activeProviderReplies)||void 0===X||X.forEach(function(ce){null==ce||ce.forEach(function(me){me.link.dispose&&me.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=M.y);var Q=!1,ne=function(me,je){x?null!==($=be._activeProviderReplies)&&void 0!==$&&$.get(me)&&(Q=be._checkLinkProviderResult(me,M,Q)):je.provideLinks(M.y,function(at){var Mt,Tt;if(!Y._isMouseOut){var xt=null==at?void 0:at.map(function(Lt){return{link:Lt}});null===(Mt=Y._activeProviderReplies)||void 0===Mt||Mt.set(me,xt),Q=Y._checkLinkProviderResult(me,M,Q),(null===(Tt=Y._activeProviderReplies)||void 0===Tt?void 0:Tt.size)===Y._linkProviders.length&&Y._removeIntersectingLinks(M.y,Y._activeProviderReplies)}})},be=this;try{for(var pe=j(this._linkProviders.entries()),de=pe.next();!de.done;de=pe.next()){var le=L(de.value,2);ne(le[0],le[1])}}catch(ce){N={error:ce}}finally{try{de&&!de.done&&(F=pe.return)&&F.call(pe)}finally{if(N)throw N.error}}},T.prototype._removeIntersectingLinks=function(M,x){for(var N=new Set,F=0;F<x.size;F++){var X=x.get(F);if(X)for(var $=0;$<X.length;$++)for(var Y=X[$],Q=Y.link.range.start.y<M?0:Y.link.range.start.x,ne=Y.link.range.end.y>M?this._bufferService.cols:Y.link.range.end.x,be=Q;be<=ne;be++){if(N.has(be)){X.splice($--,1);break}N.add(be)}}},T.prototype._checkLinkProviderResult=function(M,x,N){var F,X=this;if(!this._activeProviderReplies)return N;for(var $=this._activeProviderReplies.get(M),Y=!1,Q=0;Q<M;Q++)this._activeProviderReplies.has(Q)&&!this._activeProviderReplies.get(Q)||(Y=!0);if(!Y&&$){var ne=$.find(function(pe){return X._linkAtPosition(pe.link,x)});ne&&(N=!0,this._handleNewLink(ne))}if(this._activeProviderReplies.size===this._linkProviders.length&&!N)for(Q=0;Q<this._activeProviderReplies.size;Q++){var be=null===(F=this._activeProviderReplies.get(Q))||void 0===F?void 0:F.find(function(pe){return X._linkAtPosition(pe.link,x)});if(be){N=!0,this._handleNewLink(be);break}}return N},T.prototype._handleMouseDown=function(){this._mouseDownLink=this._currentLink},T.prototype._handleMouseUp=function(M){if(this._element&&this._mouseService&&this._currentLink){var x=this._positionFromMouseEvent(M,this._element,this._mouseService);x&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,x)&&this._currentLink.link.activate(M,this._currentLink.link.text)}},T.prototype._clearCurrentLink=function(M,x){this._element&&this._currentLink&&this._lastMouseEvent&&(!M||!x||this._currentLink.link.range.start.y>=M&&this._currentLink.link.range.end.y<=x)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,b.disposeArray)(this._linkCacheDisposables))},T.prototype._handleNewLink=function(M){var x=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var N=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);N&&this._linkAtPosition(M.link,N)&&(this._currentLink=M,this._currentLink.state={decorations:{underline:void 0===M.link.decorations||M.link.decorations.underline,pointerCursor:void 0===M.link.decorations||M.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,M.link,this._lastMouseEvent),M.link.decorations={},Object.defineProperties(M.link.decorations,{pointerCursor:{get:function(){var X,$;return null===($=null===(X=x._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.pointerCursor},set:function(X){var $,Y;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&x._currentLink.state.decorations.pointerCursor!==X&&(x._currentLink.state.decorations.pointerCursor=X,x._currentLink.state.isHovered&&(null===(Y=x._element)||void 0===Y||Y.classList.toggle("xterm-cursor-pointer",X)))}},underline:{get:function(){var X,$;return null===($=null===(X=x._currentLink)||void 0===X?void 0:X.state)||void 0===$?void 0:$.decorations.underline},set:function(X){var $,Y,Q;(null===($=x._currentLink)||void 0===$?void 0:$.state)&&(null===(Q=null===(Y=x._currentLink)||void 0===Y?void 0:Y.state)||void 0===Q?void 0:Q.decorations.underline)!==X&&(x._currentLink.state.decorations.underline=X,x._currentLink.state.isHovered&&x._fireUnderlineEvent(M.link,X))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(function(F){var X=0===F.start?0:F.start+1+x._bufferService.buffer.ydisp;x._clearCurrentLink(X,F.end+1+x._bufferService.buffer.ydisp)})))}},T.prototype._linkHover=function(M,x,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!0),this._currentLink.state.decorations.pointerCursor&&M.classList.add("xterm-cursor-pointer")),x.hover&&x.hover(N,x.text)},T.prototype._fireUnderlineEvent=function(M,x){var N=M.range,F=this._bufferService.buffer.ydisp,X=this._createLinkUnderlineEvent(N.start.x-1,N.start.y-F-1,N.end.x,N.end.y-F-1,void 0);(x?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(X)},T.prototype._linkLeave=function(M,x,N){var F;!(null===(F=this._currentLink)||void 0===F)&&F.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(x,!1),this._currentLink.state.decorations.pointerCursor&&M.classList.remove("xterm-cursor-pointer")),x.leave&&x.leave(N,x.text)},T.prototype._linkAtPosition=function(M,x){var N=M.range.start.y===M.range.end.y,F=M.range.start.y<x.y,X=M.range.end.y>x.y;return(N&&M.range.start.x<=x.x&&M.range.end.x>=x.x||F&&M.range.end.x>=x.x||X&&M.range.start.x<=x.x||F&&X)&&M.range.start.y<=x.y&&M.range.end.y>=x.y},T.prototype._positionFromMouseEvent=function(M,x,N){var F=N.getCoords(M,x,this._bufferService.cols,this._bufferService.rows);if(F)return{x:F[0],y:F[1]+this._bufferService.buffer.ydisp}},T.prototype._createLinkUnderlineEvent=function(M,x,N,F,X){return{x1:M,y1:x,x2:N,y2:F,cols:this._bufferService.cols,fg:X}},E([D(0,v.IBufferService)],T)}(b.Disposable);A.Linkifier2=S},9042:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.tooMuchOutput=A.promptLabel=void 0,A.promptLabel="Terminal input",A.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseZoneManager=void 0;var j=U(844),L=U(3656),v=U(4725),k=U(2585),b=function(O){function S(y,T,M,x,N,F){var X=O.call(this)||this;return X._element=y,X._screenElement=T,X._bufferService=M,X._mouseService=x,X._selectionService=N,X._optionsService=F,X._zones=[],X._areZonesActive=!1,X._lastHoverCoords=[void 0,void 0],X._initialSelectionLength=0,X.register((0,L.addDisposableDomListener)(X._element,"mousedown",function($){return X._onMouseDown($)})),X._mouseMoveListener=function($){return X._onMouseMove($)},X._mouseLeaveListener=function($){return X._onMouseLeave($)},X._clickListener=function($){return X._onClick($)},X}return P(S,O),S.prototype.dispose=function(){O.prototype.dispose.call(this),this._deactivate()},S.prototype.add=function(y){this._zones.push(y),1===this._zones.length&&this._activate()},S.prototype.clearAll=function(y,T){if(0!==this._zones.length){y&&T||(y=0,T=this._bufferService.rows-1);for(var M=0;M<this._zones.length;M++){var x=this._zones[M];(x.y1>y&&x.y1<=T+1||x.y2>y&&x.y2<=T+1||x.y1<y&&x.y2>T+1)&&(this._currentZone&&this._currentZone===x&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(M--,1))}0===this._zones.length&&this._deactivate()}},S.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))},S.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))},S.prototype._onMouseMove=function(y){this._lastHoverCoords[0]===y.pageX&&this._lastHoverCoords[1]===y.pageY||(this._onHover(y),this._lastHoverCoords=[y.pageX,y.pageY])},S.prototype._onHover=function(y){var T=this,M=this._findZoneEventAt(y);M!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),M&&(this._currentZone=M,M.hoverCallback&&M.hoverCallback(y),this._tooltipTimeout=window.setTimeout(function(){return T._onTooltip(y)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},S.prototype._onTooltip=function(y){this._tooltipTimeout=void 0;var T=this._findZoneEventAt(y);null==T||T.tooltipCallback(y)},S.prototype._onMouseDown=function(y){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var T=this._findZoneEventAt(y);null!=T&&T.willLinkActivate(y)&&(y.preventDefault(),y.stopImmediatePropagation())}},S.prototype._onMouseLeave=function(y){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},S.prototype._onClick=function(y){var T=this._findZoneEventAt(y),M=this._getSelectionLength();T&&M===this._initialSelectionLength&&(T.clickCallback(y),y.preventDefault(),y.stopImmediatePropagation())},S.prototype._getSelectionLength=function(){var y=this._selectionService.selectionText;return y?y.length:0},S.prototype._findZoneEventAt=function(y){var T=this._mouseService.getCoords(y,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(T)for(var M=T[0],x=T[1],N=0;N<this._zones.length;N++){var F=this._zones[N];if(F.y1===F.y2){if(x===F.y1&&M>=F.x1&&M<F.x2)return F}else if(x===F.y1&&M>=F.x1||x===F.y2&&M<F.x2||x>F.y1&&x<F.y2)return F}},E([D(2,k.IBufferService),D(3,v.IMouseService),D(4,v.ISelectionService),D(5,k.IOptionsService)],S)}(j.Disposable);A.MouseZoneManager=b},6193:function(W,A){var U=this&&this.__values||function(P){var E="function"==typeof Symbol&&Symbol.iterator,D=E&&P[E],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderDebouncer=void 0;var R=function(){function P(E){this._renderCallback=E,this._refreshCallbacks=[]}return P.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},P.prototype.addRefreshCallback=function(E){var D=this;return this._refreshCallbacks.push(E),this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return D._innerRefresh()})),this._animationFrame},P.prototype.refresh=function(E,D,j){var L=this;this._rowCount=j,E=void 0!==E?E:0,D=void 0!==D?D:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,E):E,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,D):D,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return L._innerRefresh()}))},P.prototype._innerRefresh=function(){if(this._animationFrame=void 0,void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var E=Math.max(this._rowStart,0),D=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(E,D),this._runRefreshCallbacks()}else this._runRefreshCallbacks()},P.prototype._runRefreshCallbacks=function(){var E,D;try{for(var j=U(this._refreshCallbacks),L=j.next();!L.done;L=j.next())(0,L.value)(0)}catch(v){E={error:v}}finally{try{L&&!L.done&&(D=j.return)&&D.call(j)}finally{if(E)throw E.error}}this._refreshCallbacks=[]},P}();A.RenderDebouncer=R},5596:function(W,A,U){var R,P=this&&this.__extends||(R=function(j,L){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,k){v.__proto__=k}||function(v,k){for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(v[b]=k[b])})(j,L)},function(D,j){if("function"!=typeof j&&null!==j)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");function L(){this.constructor=D}R(D,j),D.prototype=null===j?Object.create(j):(L.prototype=j.prototype,new L)});Object.defineProperty(A,"__esModule",{value:!0}),A.ScreenDprMonitor=void 0;var E=function(D){function j(){var L=null!==D&&D.apply(this,arguments)||this;return L._currentDevicePixelRatio=window.devicePixelRatio,L}return P(j,D),j.prototype.setListener=function(L){var v=this;this._listener&&this.clearListener(),this._listener=L,this._outerListener=function(){v._listener&&(v._listener(window.devicePixelRatio,v._currentDevicePixelRatio),v._updateDpr())},this._updateDpr()},j.prototype.dispose=function(){D.prototype.dispose.call(this),this.clearListener()},j.prototype._updateDpr=function(){var L;this._outerListener&&(null===(L=this._resolutionMediaMatchList)||void 0===L||L.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},j.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)},j}(U(844).Disposable);A.ScreenDprMonitor=E},3236:function(W,A,U){var R,P=this&&this.__extends||(R=function(Ct,We){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(lt,dt){lt.__proto__=dt}||function(lt,dt){for(var Ut in dt)Object.prototype.hasOwnProperty.call(dt,Ut)&&(lt[Ut]=dt[Ut])})(Ct,We)},function(_t,Ct){if("function"!=typeof Ct&&null!==Ct)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function We(){this.constructor=_t}R(_t,Ct),_t.prototype=null===Ct?Object.create(Ct):(We.prototype=Ct.prototype,new We)}),E=this&&this.__values||function(_t){var Ct="function"==typeof Symbol&&Symbol.iterator,We=Ct&&_t[Ct],lt=0;if(We)return We.call(_t);if(_t&&"number"==typeof _t.length)return{next:function(){return _t&<>=_t.length&&(_t=void 0),{value:_t&&_t[lt++],done:!_t}}};throw new TypeError(Ct?"Object is not iterable.":"Symbol.iterator is not defined.")},D=this&&this.__read||function(_t,Ct){var We="function"==typeof Symbol&&_t[Symbol.iterator];if(!We)return _t;var lt,dt,Ut=We.call(_t),B=[];try{for(;(void 0===Ct||Ct-- >0)&&!(lt=Ut.next()).done;)B.push(lt.value)}catch(H){dt={error:H}}finally{try{lt&&!lt.done&&(We=Ut.return)&&We.call(Ut)}finally{if(dt)throw dt.error}}return B},j=this&&this.__spreadArray||function(_t,Ct,We){if(We||2===arguments.length)for(var lt,dt=0,Ut=Ct.length;dt<Ut;dt++)!lt&&dt in Ct||(lt||(lt=Array.prototype.slice.call(Ct,0,dt)),lt[dt]=Ct[dt]);return _t.concat(lt||Array.prototype.slice.call(Ct))};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var L=U(2950),v=U(1680),k=U(3614),b=U(2584),O=U(5435),S=U(3525),y=U(3551),T=U(9312),M=U(6114),x=U(3656),N=U(9042),F=U(357),X=U(6954),$=U(4567),Y=U(1296),Q=U(7399),ne=U(8460),be=U(8437),pe=U(5680),de=U(3230),le=U(4725),ce=U(428),me=U(8934),je=U(6465),at=U(5114),Mt=U(8969),Tt=U(8055),xt=U(4269),Lt=U(5941),Ze=U(3107),$t=U(5744),Ft=U(9074),fn=U(2585),nt="undefined"!=typeof window?window.document:null,Ot=function(_t){function Ct(We){void 0===We&&(We={});var lt=_t.call(this,We)||this;return lt.browser=M,lt._keyDownHandled=!1,lt._keyDownSeen=!1,lt._keyPressHandled=!1,lt._unprocessedDeadKey=!1,lt._onCursorMove=new ne.EventEmitter,lt._onKey=new ne.EventEmitter,lt._onRender=new ne.EventEmitter,lt._onSelectionChange=new ne.EventEmitter,lt._onTitleChange=new ne.EventEmitter,lt._onBell=new ne.EventEmitter,lt._onFocus=new ne.EventEmitter,lt._onBlur=new ne.EventEmitter,lt._onA11yCharEmitter=new ne.EventEmitter,lt._onA11yTabEmitter=new ne.EventEmitter,lt._setup(),lt.linkifier=lt._instantiationService.createInstance(y.Linkifier),lt.linkifier2=lt.register(lt._instantiationService.createInstance(je.Linkifier2)),lt._decorationService=lt._instantiationService.createInstance(Ft.DecorationService),lt._instantiationService.setService(fn.IDecorationService,lt._decorationService),lt.register(lt._inputHandler.onRequestBell(function(){return lt.bell()})),lt.register(lt._inputHandler.onRequestRefreshRows(function(dt,Ut){return lt.refresh(dt,Ut)})),lt.register(lt._inputHandler.onRequestSendFocus(function(){return lt._reportFocus()})),lt.register(lt._inputHandler.onRequestReset(function(){return lt.reset()})),lt.register(lt._inputHandler.onRequestWindowsOptionsReport(function(dt){return lt._reportWindowsOptions(dt)})),lt.register(lt._inputHandler.onColor(function(dt){return lt._handleColorEvent(dt)})),lt.register((0,ne.forwardEvent)(lt._inputHandler.onCursorMove,lt._onCursorMove)),lt.register((0,ne.forwardEvent)(lt._inputHandler.onTitleChange,lt._onTitleChange)),lt.register((0,ne.forwardEvent)(lt._inputHandler.onA11yChar,lt._onA11yCharEmitter)),lt.register((0,ne.forwardEvent)(lt._inputHandler.onA11yTab,lt._onA11yTabEmitter)),lt.register(lt._bufferService.onResize(function(dt){return lt._afterResize(dt.cols,dt.rows)})),lt}return P(Ct,_t),Object.defineProperty(Ct.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ct.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ct.prototype._handleColorEvent=function(We){var lt,dt,Ut,B;if(this._colorManager){try{for(var H=E(We),tt=H.next();!tt.done;tt=H.next()){var Ye=tt.value,ge=void 0,t="";switch(Ye.index){case 256:ge="foreground",t="10";break;case 257:ge="background",t="11";break;case 258:ge="cursor",t="12";break;default:ge="ansi",t="4;"+Ye.index}if(ge)switch(Ye.type){case 0:var Dt=Tt.color.toColorRGB("ansi"===ge?this._colorManager.colors.ansi[Ye.index]:this._colorManager.colors[ge]);this.coreService.triggerDataEvent(b.C0.ESC+"]"+t+";"+(0,Lt.toRgbString)(Dt)+b.C1_ESCAPED.ST);break;case 1:"ansi"===ge?this._colorManager.colors.ansi[Ye.index]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(Ye.color),!1)):this._colorManager.colors[ge]=Tt.rgba.toColor.apply(Tt.rgba,j([],D(Ye.color),!1));break;case 2:this._colorManager.restoreColor(Ye.index)}}}catch(Zt){lt={error:Zt}}finally{try{tt&&!tt.done&&(dt=H.return)&&dt.call(H)}finally{if(lt)throw lt.error}}null===(Ut=this._renderService)||void 0===Ut||Ut.setColors(this._colorManager.colors),null===(B=this.viewport)||void 0===B||B.onThemeChange(this._colorManager.colors)}},Ct.prototype.dispose=function(){var We,lt,dt;this._isDisposed||(_t.prototype.dispose.call(this),null===(We=this._renderService)||void 0===We||We.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(dt=null===(lt=this.element)||void 0===lt?void 0:lt.parentNode)||void 0===dt||dt.removeChild(this.element))},Ct.prototype._setup=function(){_t.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ct.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ct.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ct.prototype._updateOptions=function(We){var lt,dt,Ut,B;switch(_t.prototype._updateOptions.call(this,We),We){case"fontFamily":case"fontSize":null===(lt=this._renderService)||void 0===lt||lt.clear(),null===(dt=this._charSizeService)||void 0===dt||dt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)):(null===(B=this._accessibilityManager)||void 0===B||B.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},Ct.prototype._onTextAreaFocus=function(We){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(b.C0.ESC+"[I"),this.updateCursorStyle(We),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ct.prototype.blur=function(){var We;return null===(We=this.textarea)||void 0===We?void 0:We.blur()},Ct.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(b.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ct.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var We=this.buffer.ybase+this.buffer.y,lt=this.buffer.lines.get(We);if(lt){var dt=Math.min(this.buffer.x,this.cols-1),Ut=this._renderService.dimensions.actualCellHeight,B=lt.getWidth(dt),H=this._renderService.dimensions.actualCellWidth*B,tt=this.buffer.y*this._renderService.dimensions.actualCellHeight,Ye=dt*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=Ye+"px",this.textarea.style.top=tt+"px",this.textarea.style.width=H+"px",this.textarea.style.height=Ut+"px",this.textarea.style.lineHeight=Ut+"px",this.textarea.style.zIndex="-5"}}},Ct.prototype._initGlobal=function(){var We=this;this._bindKeys(),this.register((0,x.addDisposableDomListener)(this.element,"copy",function(dt){We.hasSelection()&&(0,k.copyHandler)(dt,We._selectionService)}));var lt=function(Ut){return(0,k.handlePasteEvent)(Ut,We.textarea,We.coreService)};this.register((0,x.addDisposableDomListener)(this.textarea,"paste",lt)),this.register((0,x.addDisposableDomListener)(this.element,"paste",lt)),M.isFirefox?this.register((0,x.addDisposableDomListener)(this.element,"mousedown",function(dt){2===dt.button&&(0,k.rightClickHandler)(dt,We.textarea,We.screenElement,We._selectionService,We.options.rightClickSelectsWord)})):this.register((0,x.addDisposableDomListener)(this.element,"contextmenu",function(dt){(0,k.rightClickHandler)(dt,We.textarea,We.screenElement,We._selectionService,We.options.rightClickSelectsWord)})),M.isLinux&&this.register((0,x.addDisposableDomListener)(this.element,"auxclick",function(dt){1===dt.button&&(0,k.moveTextAreaUnderMouseCursor)(dt,We.textarea,We.screenElement)}))},Ct.prototype._bindKeys=function(){var We=this;this.register((0,x.addDisposableDomListener)(this.textarea,"keyup",function(lt){return We._keyUp(lt)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"keydown",function(lt){return We._keyDown(lt)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"keypress",function(lt){return We._keyPress(lt)},!0)),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionstart",function(){return We._compositionHelper.compositionstart()})),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionupdate",function(lt){return We._compositionHelper.compositionupdate(lt)})),this.register((0,x.addDisposableDomListener)(this.textarea,"compositionend",function(){return We._compositionHelper.compositionend()})),this.register((0,x.addDisposableDomListener)(this.textarea,"input",function(lt){return We._inputEvent(lt)},!0)),this.register(this.onRender(function(){return We._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(lt){return We._queueLinkification(lt.start,lt.end)}))},Ct.prototype.open=function(We){var lt=this;if(!We)throw new Error("Terminal requires a parent element.");We.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=We.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"),We.appendChild(this.element);var dt=nt.createDocumentFragment();this._viewportElement=nt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),dt.appendChild(this._viewportElement),this._viewportScrollArea=nt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=nt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=nt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),dt.appendChild(this.screenElement),this.textarea=nt.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",N.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,x.addDisposableDomListener)(this.textarea,"focus",function(H){return lt._onTextAreaFocus(H)})),this.register((0,x.addDisposableDomListener)(this.textarea,"blur",function(){return lt._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ut=this._instantiationService.createInstance(at.CoreBrowserService,this.textarea);this._instantiationService.setService(le.ICoreBrowserService,Ut),this._charSizeService=this._instantiationService.createInstance(ce.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(le.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new pe.ColorManager(nt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(H){return lt._colorManager.onOptionsChange(H)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(xt.CharacterJoinerService),this._instantiationService.setService(le.ICharacterJoinerService,this._characterJoinerService);var B=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(de.RenderService,B,this.rows,this.screenElement)),this._instantiationService.setService(le.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(function(H){return lt._onRender.fire(H)})),this.onResize(function(H){return lt._renderService.resize(H.cols,H.rows)}),this._compositionView=nt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(L.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(dt),this._soundService=this._instantiationService.createInstance(F.SoundService),this._instantiationService.setService(le.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(me.MouseService),this._instantiationService.setService(le.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(v.Viewport,function(H){return lt.scrollLines(H,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return lt.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){lt._renderService.onCursorMove(),lt._syncTextArea()})),this.register(this.onResize(function(){return lt._renderService.onResize(lt.cols,lt.rows)})),this.register(this.onBlur(function(){return lt._renderService.onBlur()})),this.register(this.onFocus(function(){return lt._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return lt.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(T.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(le.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(H){return lt.scrollLines(H.amount,H.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return lt._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(H){return lt._renderService.onSelectionChanged(H.start,H.end,H.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(H){lt.textarea.value=H,lt.textarea.focus(),lt.textarea.select()})),this.register(this._onScroll.event(function(H){lt.viewport.syncScrollArea(),lt._selectionService.refresh()})),this.register((0,x.addDisposableDomListener)(this._viewportElement,"scroll",function(){return lt._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(X.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return lt._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(Ze.BufferDecorationRenderer,this.screenElement)),this.register((0,x.addDisposableDomListener)(this.element,"mousedown",function(H){return lt._selectionService.onMouseDown(H)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new $.AccessibilityManager(this,this._renderService)),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this._instantiationService.createInstance($t.OverviewRulerRenderer,this._viewportElement,this.screenElement)),this.optionsService.onOptionChange(function(){!lt._overviewRulerRenderer&<.options.overviewRulerWidth&<._viewportElement&<.screenElement&&(lt._overviewRulerRenderer=lt._instantiationService.createInstance($t.OverviewRulerRenderer,lt._viewportElement,lt.screenElement))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ct.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(S.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(Y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ct.prototype._setTheme=function(We){var lt,dt,Ut;this._theme=We,null===(lt=this._colorManager)||void 0===lt||lt.setTheme(We),null===(dt=this._renderService)||void 0===dt||dt.setColors(this._colorManager.colors),null===(Ut=this.viewport)||void 0===Ut||Ut.onThemeChange(this._colorManager.colors)},Ct.prototype.bindMouse=function(){var We=this,lt=this,dt=this.element;function Ut(t){var Dt,Zt,zt=lt._mouseService.getRawByteCoords(t,lt.screenElement,lt.cols,lt.rows);if(!zt)return!1;switch(t.overrideType||t.type){case"mousemove":Zt=32,void 0===t.buttons?(Dt=3,void 0!==t.button&&(Dt=t.button<3?t.button:3)):Dt=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":Zt=0,Dt=t.button<3?t.button:3;break;case"mousedown":Zt=1,Dt=t.button<3?t.button:3;break;case"wheel":if(0===lt.viewport.getLinesScrolled(t))return!1;Zt=t.deltaY<0?0:1,Dt=4;break;default:return!1}return!(void 0===Zt||void 0===Dt||Dt>4)&<.coreMouseService.triggerMouseEvent({col:zt.x-33,row:zt.y-33,button:Dt,action:Zt,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}var B={mouseup:null,wheel:null,mousedrag:null,mousemove:null},H=function(Dt){return Ut(Dt),Dt.buttons||(We._document.removeEventListener("mouseup",B.mouseup),B.mousedrag&&We._document.removeEventListener("mousemove",B.mousedrag)),We.cancel(Dt)},tt=function(Dt){return Ut(Dt),We.cancel(Dt,!0)},Ye=function(Dt){Dt.buttons&&Ut(Dt)},ge=function(Dt){Dt.buttons||Ut(Dt)};this.register(this.coreMouseService.onProtocolChange(function(t){t?("debug"===We.optionsService.rawOptions.logLevel&&We._logService.debug("Binding to mouse events:",We.coreMouseService.explainEvents(t)),We.element.classList.add("enable-mouse-events"),We._selectionService.disable()):(We._logService.debug("Unbinding from mouse events."),We.element.classList.remove("enable-mouse-events"),We._selectionService.enable()),8&t?B.mousemove||(dt.addEventListener("mousemove",ge),B.mousemove=ge):(dt.removeEventListener("mousemove",B.mousemove),B.mousemove=null),16&t?B.wheel||(dt.addEventListener("wheel",tt,{passive:!1}),B.wheel=tt):(dt.removeEventListener("wheel",B.wheel),B.wheel=null),2&t?B.mouseup||(B.mouseup=H):(We._document.removeEventListener("mouseup",B.mouseup),B.mouseup=null),4&t?B.mousedrag||(B.mousedrag=Ye):(We._document.removeEventListener("mousemove",B.mousedrag),B.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,x.addDisposableDomListener)(dt,"mousedown",function(t){if(t.preventDefault(),We.focus(),We.coreMouseService.areMouseEventsActive&&!We._selectionService.shouldForceSelection(t))return Ut(t),B.mouseup&&We._document.addEventListener("mouseup",B.mouseup),B.mousedrag&&We._document.addEventListener("mousemove",B.mousedrag),We.cancel(t)})),this.register((0,x.addDisposableDomListener)(dt,"wheel",function(t){if(!B.wheel){if(!We.buffer.hasScrollback){var Dt=We.viewport.getLinesScrolled(t);if(0===Dt)return;for(var Zt=b.C0.ESC+(We.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),zt="",sn=0;sn<Math.abs(Dt);sn++)zt+=Zt;return We.coreService.triggerDataEvent(zt,!0),We.cancel(t,!0)}return We.viewport.onWheel(t)?We.cancel(t):void 0}},{passive:!1})),this.register((0,x.addDisposableDomListener)(dt,"touchstart",function(t){if(!We.coreMouseService.areMouseEventsActive)return We.viewport.onTouchStart(t),We.cancel(t)},{passive:!0})),this.register((0,x.addDisposableDomListener)(dt,"touchmove",function(t){if(!We.coreMouseService.areMouseEventsActive)return We.viewport.onTouchMove(t)?void 0:We.cancel(t)},{passive:!1}))},Ct.prototype.refresh=function(We,lt){var dt;null===(dt=this._renderService)||void 0===dt||dt.refreshRows(We,lt)},Ct.prototype._queueLinkification=function(We,lt){var dt;null===(dt=this.linkifier)||void 0===dt||dt.linkifyRows(We,lt)},Ct.prototype.updateCursorStyle=function(We){var lt;null!==(lt=this._selectionService)&&void 0!==lt&<.shouldColumnSelect(We)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ct.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ct.prototype.scrollLines=function(We,lt,dt){void 0===dt&&(dt=0),_t.prototype.scrollLines.call(this,We,lt,dt),this.refresh(0,this.rows-1)},Ct.prototype.paste=function(We){(0,k.paste)(We,this.textarea,this.coreService)},Ct.prototype.attachCustomKeyEventHandler=function(We){this._customKeyEventHandler=We},Ct.prototype.registerLinkMatcher=function(We,lt,dt){var Ut=this.linkifier.registerLinkMatcher(We,lt,dt);return this.refresh(0,this.rows-1),Ut},Ct.prototype.deregisterLinkMatcher=function(We){this.linkifier.deregisterLinkMatcher(We)&&this.refresh(0,this.rows-1)},Ct.prototype.registerLinkProvider=function(We){return this.linkifier2.registerLinkProvider(We)},Ct.prototype.registerCharacterJoiner=function(We){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var lt=this._characterJoinerService.register(We);return this.refresh(0,this.rows-1),lt},Ct.prototype.deregisterCharacterJoiner=function(We){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(We)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ct.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ct.prototype.addMarker=function(We){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+We)},Ct.prototype.registerDecoration=function(We){return this._decorationService.registerDecoration(We)},Ct.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ct.prototype.select=function(We,lt,dt){this._selectionService.setSelection(We,lt,dt)},Ct.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ct.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ct.prototype.clearSelection=function(){var We;null===(We=this._selectionService)||void 0===We||We.clearSelection()},Ct.prototype.selectAll=function(){var We;null===(We=this._selectionService)||void 0===We||We.selectAll()},Ct.prototype.selectLines=function(We,lt){var dt;null===(dt=this._selectionService)||void 0===dt||dt.selectLines(We,lt)},Ct.prototype._keyDown=function(We){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(We))return!1;var lt=this.browser.isMac&&this.options.macOptionIsMeta&&We.altKey;if(!lt&&!this._compositionHelper.keydown(We))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;lt||"Dead"!==We.key&&"AltGraph"!==We.key||(this._unprocessedDeadKey=!0);var dt=(0,Q.evaluateKeyboardEvent)(We,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(We),3===dt.type||2===dt.type){var Ut=this.rows-1;return this.scrollLines(2===dt.type?-Ut:Ut),this.cancel(We,!0)}return 1===dt.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,We)||(dt.cancel&&this.cancel(We,!0),!dt.key||!!(We.key&&!We.ctrlKey&&!We.altKey&&!We.metaKey&&1===We.key.length&&We.key.charCodeAt(0)>=65&&We.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(dt.key!==b.C0.ETX&&dt.key!==b.C0.CR||(this.textarea.value=""),this._onKey.fire({key:dt.key,domEvent:We}),this._showCursor(),this.coreService.triggerDataEvent(dt.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(We,!0))))},Ct.prototype._isThirdLevelShift=function(We,lt){var dt=We.isMac&&!this.options.macOptionIsMeta&<.altKey&&!lt.ctrlKey&&!lt.metaKey||We.isWindows&<.altKey&<.ctrlKey&&!lt.metaKey||We.isWindows&<.getModifierState("AltGraph");return"keypress"===lt.type?dt:dt&&(!lt.keyCode||lt.keyCode>47)},Ct.prototype._keyUp=function(We){var lt;this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(We)||(16===(lt=We).keyCode||17===lt.keyCode||18===lt.keyCode||this.focus(),this.updateCursorStyle(We),this._keyPressHandled=!1)},Ct.prototype._keyPress=function(We){var lt;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(We))return!1;if(this.cancel(We),We.charCode)lt=We.charCode;else if(null===We.which||void 0===We.which)lt=We.keyCode;else{if(0===We.which||0===We.charCode)return!1;lt=We.which}return!(!lt||(We.altKey||We.ctrlKey||We.metaKey)&&!this._isThirdLevelShift(this.browser,We)||(lt=String.fromCharCode(lt),this._onKey.fire({key:lt,domEvent:We}),this._showCursor(),this.coreService.triggerDataEvent(lt,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},Ct.prototype._inputEvent=function(We){if(We.data&&"insertText"===We.inputType&&(!We.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var lt=We.data;return this.coreService.triggerDataEvent(lt,!0),this.cancel(We),!0}return!1},Ct.prototype.bell=function(){var We;this._soundBell()&&(null===(We=this._soundService)||void 0===We||We.playBellSound()),this._onBell.fire()},Ct.prototype.resize=function(We,lt){We!==this.cols||lt!==this.rows?_t.prototype.resize.call(this,We,lt):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ct.prototype._afterResize=function(We,lt){var dt,Ut;null===(dt=this._charSizeService)||void 0===dt||dt.measure(),null===(Ut=this.viewport)||void 0===Ut||Ut.syncScrollArea(!0)},Ct.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var We=1;We<this.rows;We++)this.buffer.lines.push(this.buffer.getBlankLine(be.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},Ct.prototype.reset=function(){var We,lt;this.options.rows=this.rows,this.options.cols=this.cols;var dt=this._customKeyEventHandler;this._setup(),_t.prototype.reset.call(this),null===(We=this._selectionService)||void 0===We||We.reset(),this._decorationService.reset(),this._customKeyEventHandler=dt,this.refresh(0,this.rows-1),null===(lt=this.viewport)||void 0===lt||lt.syncScrollArea()},Ct.prototype.clearTextureAtlas=function(){var We;null===(We=this._renderService)||void 0===We||We.clearTextureAtlas()},Ct.prototype._reportFocus=function(){var We;null!==(We=this.element)&&void 0!==We&&We.classList.contains("focus")?this.coreService.triggerDataEvent(b.C0.ESC+"[I"):this.coreService.triggerDataEvent(b.C0.ESC+"[O")},Ct.prototype._reportWindowsOptions=function(We){if(this._renderService)switch(We){case O.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var lt=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),dt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(b.C0.ESC+"[4;"+dt+";"+lt+"t");break;case O.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ut=this._renderService.dimensions.scaledCellWidth.toFixed(0),B=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(b.C0.ESC+"[6;"+B+";"+Ut+"t")}},Ct.prototype.cancel=function(We,lt){if(this.options.cancelEvents||lt)return We.preventDefault(),We.stopPropagation(),!1},Ct.prototype._visualBell=function(){return!1},Ct.prototype._soundBell=function(){return"sound"===this.options.bellStyle},Ct}(Mt.CoreTerminal);A.Terminal=Ot},9924:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.TimeBasedDebouncer=void 0;var U=function(){function R(P,E){void 0===E&&(E=1e3),this._renderCallback=P,this._debounceThresholdMS=E,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return R.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},R.prototype.refresh=function(P,E,D){var j=this;this._rowCount=D,P=void 0!==P?P:0,E=void 0!==E?E: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,E):E;var L=Date.now();if(L-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=L,this._innerRefresh();else if(!this._additionalRefreshRequested){var v=L-this._lastRefreshMs,k=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){j._lastRefreshMs=Date.now(),j._innerRefresh(),j._additionalRefreshRequested=!1,j._refreshTimeoutID=void 0},k)}},R.prototype._innerRefresh=function(){if(void 0!==this._rowStart&&void 0!==this._rowEnd&&void 0!==this._rowCount){var P=Math.max(this._rowStart,0),E=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(P,E)}},R}();A.TimeBasedDebouncer=U},1680:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.Viewport=void 0;var j=U(844),L=U(3656),v=U(4725),k=U(2585),b=function(O){function S(y,T,M,x,N,F,X,$){var Y=O.call(this)||this;return Y._scrollLines=y,Y._viewportElement=T,Y._scrollArea=M,Y._element=x,Y._bufferService=N,Y._optionsService=F,Y._charSizeService=X,Y._renderService=$,Y.scrollBarWidth=0,Y._currentRowHeight=0,Y._currentScaledCellHeight=0,Y._lastRecordedBufferLength=0,Y._lastRecordedViewportHeight=0,Y._lastRecordedBufferHeight=0,Y._lastTouchY=0,Y._lastScrollTop=0,Y._wheelPartialScroll=0,Y._refreshAnimationFrame=null,Y._ignoreNextScrollEvent=!1,Y.scrollBarWidth=Y._viewportElement.offsetWidth-Y._scrollArea.offsetWidth||15,Y.register((0,L.addDisposableDomListener)(Y._viewportElement,"scroll",Y._onScroll.bind(Y))),Y._activeBuffer=Y._bufferService.buffer,Y.register(Y._bufferService.buffers.onBufferActivate(function(Q){return Y._activeBuffer=Q.activeBuffer})),Y._renderDimensions=Y._renderService.dimensions,Y.register(Y._renderService.onDimensionsChange(function(Q){return Y._renderDimensions=Q})),setTimeout(function(){return Y.syncScrollArea()},0),Y}return P(S,O),S.prototype.onThemeChange=function(y){this._viewportElement.style.backgroundColor=y.background.css},S.prototype._refresh=function(y){var T=this;if(y)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return T._innerRefresh()}))},S.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 y=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==y&&(this._lastRecordedBufferHeight=y,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var T=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==T&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=T),this._refreshAnimationFrame=null},S.prototype.syncScrollArea=function(y){if(void 0===y&&(y=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(y);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight||this._refresh(y)},S.prototype._onScroll=function(y){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var T=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(T)}},S.prototype._bubbleScroll=function(y,T){var M=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(T<0&&0!==this._viewportElement.scrollTop||T>0&&M<this._lastRecordedBufferHeight)||(y.cancelable&&y.preventDefault(),!1)},S.prototype.onWheel=function(y){var T=this._getPixelsScrolled(y);return 0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},S.prototype._getPixelsScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_LINE?T*=this._currentRowHeight:y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._currentRowHeight*this._bufferService.rows),T},S.prototype.getLinesScrolled=function(y){if(0===y.deltaY||y.shiftKey)return 0;var T=this._applyScrollModifier(y.deltaY,y);return y.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(T/=this._currentRowHeight+0,this._wheelPartialScroll+=T,T=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):y.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(T*=this._bufferService.rows),T},S.prototype._applyScrollModifier=function(y,T){var M=this._optionsService.rawOptions.fastScrollModifier;return"alt"===M&&T.altKey||"ctrl"===M&&T.ctrlKey||"shift"===M&&T.shiftKey?y*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:y*this._optionsService.rawOptions.scrollSensitivity},S.prototype.onTouchStart=function(y){this._lastTouchY=y.touches[0].pageY},S.prototype.onTouchMove=function(y){var T=this._lastTouchY-y.touches[0].pageY;return this._lastTouchY=y.touches[0].pageY,0!==T&&(this._viewportElement.scrollTop+=T,this._bubbleScroll(y,T))},E([D(4,k.IBufferService),D(5,k.IOptionsService),D(6,v.ICharSizeService),D(7,v.IRenderService)],S)}(j.Disposable);A.Viewport=b},3107:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(F=(N<3?x(F):N>3?x(y,T,F):x(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},j=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferDecorationRenderer=void 0;var L=U(3656),v=U(4725),k=U(844),b=U(2585),O=function(S){function y(T,M,x,N){var F=S.call(this)||this;return F._screenElement=T,F._bufferService=M,F._decorationService=x,F._renderService=N,F._decorationElements=new Map,F._altBufferIsActive=!1,F._dimensionsChanged=!1,F._container=document.createElement("div"),F._container.classList.add("xterm-decoration-container"),F._screenElement.appendChild(F._container),F.register(F._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),F.register(F._renderService.onDimensionsChange(function(){F._dimensionsChanged=!0,F._queueRefresh()})),F.register((0,L.addDisposableDomListener)(window,"resize",function(){return F._queueRefresh()})),F.register(F._bufferService.buffers.onBufferActivate(function(){F._altBufferIsActive=F._bufferService.buffer===F._bufferService.buffers.alt})),F.register(F._decorationService.onDecorationRegistered(function(){return F._queueRefresh()})),F.register(F._decorationService.onDecorationRemoved(function(X){return F._removeDecoration(X)})),F}return P(y,S),y.prototype.dispose=function(){this._container.remove(),this._decorationElements.clear(),S.prototype.dispose.call(this)},y.prototype._queueRefresh=function(){var T=this;void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(function(){T.refreshDecorations(),T._animationFrame=void 0}))},y.prototype.refreshDecorations=function(){var T,M;try{for(var x=j(this._decorationService.decorations),N=x.next();!N.done;N=x.next()){var F=N.value;this._renderDecoration(F)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this._dimensionsChanged=!1},y.prototype._renderDecoration=function(T){this._refreshStyle(T),this._dimensionsChanged&&this._refreshXPosition(T)},y.prototype._createElement=function(T){var M,x=document.createElement("div");x.classList.add("xterm-decoration"),x.style.width=Math.round((T.options.width||1)*this._renderService.dimensions.actualCellWidth)+"px",x.style.height=(T.options.height||1)*this._renderService.dimensions.actualCellHeight+"px",x.style.top=(T.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.actualCellHeight+"px",x.style.lineHeight=this._renderService.dimensions.actualCellHeight+"px";var N=null!==(M=T.options.x)&&void 0!==M?M:0;return N&&N>this._bufferService.cols&&(x.style.display="none"),this._refreshXPosition(T,x),x},y.prototype._refreshStyle=function(T){var M=this,x=T.marker.line-this._bufferService.buffers.active.ydisp;if(x<0||x>=this._bufferService.rows)T.element&&(T.element.style.display="none",T.onRenderEmitter.fire(T.element));else{var N=this._decorationElements.get(T);N||(T.onDispose(function(){return M._removeDecoration(T)}),N=this._createElement(T),T.element=N,this._decorationElements.set(T,N),this._container.appendChild(N)),N.style.top=x*this._renderService.dimensions.actualCellHeight+"px",N.style.display=this._altBufferIsActive?"none":"block",T.onRenderEmitter.fire(N)}},y.prototype._refreshXPosition=function(T,M){var x;if(void 0===M&&(M=T.element),M){var N=null!==(x=T.options.x)&&void 0!==x?x:0;"right"===(T.options.anchor||"left")?M.style.right=N?N*this._renderService.dimensions.actualCellWidth+"px":"":M.style.left=N?N*this._renderService.dimensions.actualCellWidth+"px":""}},y.prototype._removeDecoration=function(T){var M;null===(M=this._decorationElements.get(T))||void 0===M||M.remove(),this._decorationElements.delete(T)},E([D(1,b.IBufferService),D(2,b.IDecorationService),D(3,v.IRenderService)],y)}(k.Disposable);A.BufferDecorationRenderer=O},5871:function(W,A){var U=this&&this.__values||function(P){var E="function"==typeof Symbol&&Symbol.iterator,D=E&&P[E],j=0;if(D)return D.call(P);if(P&&"number"==typeof P.length)return{next:function(){return P&&j>=P.length&&(P=void 0),{value:P&&P[j++],done:!P}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorZoneStore=void 0;var R=function(){function P(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}return Object.defineProperty(P.prototype,"zones",{get:function(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones},enumerable:!1,configurable:!0}),P.prototype.clear=function(){this._zones.length=0,this._zonePoolIndex=0},P.prototype.addDecoration=function(E){var D,j;if(E.options.overviewRulerOptions){try{for(var L=U(this._zones),v=L.next();!v.done;v=L.next()){var k=v.value;if(k.color===E.options.overviewRulerOptions.color&&k.position===E.options.overviewRulerOptions.position){if(this._lineIntersectsZone(k,E.marker.line))return;if(this._lineAdjacentToZone(k,E.marker.line,E.options.overviewRulerOptions.position))return void this._addLineToZone(k,E.marker.line)}}}catch(b){D={error:b}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=E.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=E.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=E.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=E.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:E.options.overviewRulerOptions.color,position:E.options.overviewRulerOptions.position,startBufferLine:E.marker.line,endBufferLine:E.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}},P.prototype.setPadding=function(E){this._linePadding=E},P.prototype._lineIntersectsZone=function(E,D){return D>=E.startBufferLine&&D<=E.endBufferLine},P.prototype._lineAdjacentToZone=function(E,D,j){return D>=E.startBufferLine-this._linePadding[j||"full"]&&D<=E.endBufferLine+this._linePadding[j||"full"]},P.prototype._addLineToZone=function(E,D){E.startBufferLine=Math.min(E.startBufferLine,D),E.endBufferLine=Math.max(E.endBufferLine,D)},P}();A.ColorZoneStore=R},5744:function(W,A,U){var R,P=this&&this.__extends||(R=function(N,F){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var Y in $)Object.prototype.hasOwnProperty.call($,Y)&&(X[Y]=$[Y])})(N,F)},function(x,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=x}R(x,N),x.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),E=this&&this.__decorate||function(x,N,F,X){var $,Y=arguments.length,Q=Y<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(x,N,F,X);else for(var ne=x.length-1;ne>=0;ne--)($=x[ne])&&(Q=(Y<3?$(Q):Y>3?$(N,F,Q):$(N,F))||Q);return Y>3&&Q&&Object.defineProperty(N,F,Q),Q},D=this&&this.__param||function(x,N){return function(F,X){N(F,X,x)}},j=this&&this.__values||function(x){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&x[N],X=0;if(F)return F.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&X>=x.length&&(x=void 0),{value:x&&x[X++],done:!x}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.OverviewRulerRenderer=void 0;var L=U(5871),v=U(3656),k=U(4725),b=U(844),O=U(2585),S={full:0,left:0,center:0,right:0},y={full:0,left:0,center:0,right:0},T={full:0,left:0,center:0,right:0},M=function(x){function N(F,X,$,Y,Q,ne){var be,pe=x.call(this)||this;pe._viewportElement=F,pe._screenElement=X,pe._bufferService=$,pe._decorationService=Y,pe._renderService=Q,pe._optionsService=ne,pe._colorZoneStore=new L.ColorZoneStore,pe._shouldUpdateDimensions=!0,pe._shouldUpdateAnchor=!0,pe._lastKnownBufferLength=0,pe._canvas=document.createElement("canvas"),pe._canvas.classList.add("xterm-decoration-overview-ruler"),pe._refreshCanvasDimensions(),null===(be=pe._viewportElement.parentElement)||void 0===be||be.insertBefore(pe._canvas,pe._viewportElement);var de=pe._canvas.getContext("2d");if(!de)throw new Error("Ctx cannot be null");return pe._ctx=de,pe._registerDecorationListeners(),pe._registerBufferChangeListeners(),pe._registerDimensionChangeListeners(),pe}return P(N,x),Object.defineProperty(N.prototype,"_width",{get:function(){return this._optionsService.options.overviewRulerWidth||0},enumerable:!1,configurable:!0}),N.prototype._registerDecorationListeners=function(){var F=this;this.register(this._decorationService.onDecorationRegistered(function(){return F._queueRefresh(void 0,!0)})),this.register(this._decorationService.onDecorationRemoved(function(){return F._queueRefresh(void 0,!0)}))},N.prototype._registerBufferChangeListeners=function(){var F=this;this.register(this._renderService.onRenderedViewportChange(function(){return F._queueRefresh()})),this.register(this._bufferService.buffers.onBufferActivate(function(){F._canvas.style.display=F._bufferService.buffer===F._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(function(){F._lastKnownBufferLength!==F._bufferService.buffers.normal.lines.length&&(F._refreshDrawHeightConstants(),F._refreshColorZonePadding())}))},N.prototype._registerDimensionChangeListeners=function(){var F=this;this.register(this._renderService.onRender(function(){F._containerHeight&&F._containerHeight===F._screenElement.clientHeight||(F._queueRefresh(!0),F._containerHeight=F._screenElement.clientHeight)})),this.register(this._optionsService.onOptionChange(function(X){"overviewRulerWidth"===X&&F._queueRefresh(!0)})),this.register((0,v.addDisposableDomListener)(window,"resize",function(){F._queueRefresh(!0)})),this._queueRefresh(!0)},N.prototype.dispose=function(){var F;null===(F=this._canvas)||void 0===F||F.remove(),x.prototype.dispose.call(this)},N.prototype._refreshDrawConstants=function(){var F=Math.floor(this._canvas.width/3),X=Math.ceil(this._canvas.width/3);y.full=this._canvas.width,y.left=F,y.center=X,y.right=F,this._refreshDrawHeightConstants(),T.full=0,T.left=0,T.center=y.left,T.right=y.left+y.center},N.prototype._refreshDrawHeightConstants=function(){S.full=Math.round(2*window.devicePixelRatio);var F=this._canvas.height/this._bufferService.buffer.lines.length,X=Math.round(Math.max(Math.min(F,12),6)*window.devicePixelRatio);S.left=X,S.center=X,S.right=X},N.prototype._refreshColorZonePadding=function(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*S.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length},N.prototype._refreshCanvasDimensions=function(){this._canvas.style.width=this._width+"px",this._canvas.width=Math.round(this._width*window.devicePixelRatio),this._canvas.style.height=this._screenElement.clientHeight+"px",this._canvas.height=Math.round(this._screenElement.clientHeight*window.devicePixelRatio),this._refreshDrawConstants(),this._refreshColorZonePadding()},N.prototype._refreshDecorations=function(){var F,X,$,Y,Q,ne;this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();try{for(var be=j(this._decorationService.decorations),pe=be.next();!pe.done;pe=be.next()){var de=pe.value;this._colorZoneStore.addDecoration(de)}}catch(Tt){F={error:Tt}}finally{try{pe&&!pe.done&&(X=be.return)&&X.call(be)}finally{if(F)throw F.error}}this._ctx.lineWidth=1;var le=this._colorZoneStore.zones;try{for(var ce=j(le),me=ce.next();!me.done;me=ce.next())"full"!==(Mt=me.value).position&&this._renderColorZone(Mt)}catch(Tt){$={error:Tt}}finally{try{me&&!me.done&&(Y=ce.return)&&Y.call(ce)}finally{if($)throw $.error}}try{for(var je=j(le),at=je.next();!at.done;at=je.next()){var Mt;"full"===(Mt=at.value).position&&this._renderColorZone(Mt)}}catch(Tt){Q={error:Tt}}finally{try{at&&!at.done&&(ne=je.return)&&ne.call(je)}finally{if(Q)throw Q.error}}this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1},N.prototype._renderColorZone=function(F){this._ctx.fillStyle=F.color,this._ctx.fillRect(T[F.position||"full"],Math.round((this._canvas.height-1)*(F.startBufferLine/this._bufferService.buffers.active.lines.length)-S[F.position||"full"]/2),y[F.position||"full"],Math.round((this._canvas.height-1)*((F.endBufferLine-F.startBufferLine)/this._bufferService.buffers.active.lines.length)+S[F.position||"full"]))},N.prototype._queueRefresh=function(F,X){var $=this;this._shouldUpdateDimensions=F||this._shouldUpdateDimensions,this._shouldUpdateAnchor=X||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=window.requestAnimationFrame(function(){$._refreshDecorations(),$._animationFrame=void 0}))},E([D(2,O.IBufferService),D(3,O.IDecorationService),D(4,k.IRenderService),D(5,O.IOptionsService)],N)}(b.Disposable);A.OverviewRulerRenderer=M},2950:function(W,A,U){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CompositionHelper=void 0;var E=U(4725),D=U(2585),j=function(){function L(v,k,b,O,S,y){this._textarea=v,this._compositionView=k,this._bufferService=b,this._optionsService=O,this._coreService=S,this._renderService=y,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(L.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),L.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},L.prototype.compositionupdate=function(v){var k=this;this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout(function(){k._compositionPosition.end=k._textarea.value.length},0)},L.prototype.compositionend=function(){this._finalizeComposition(!0)},L.prototype.keydown=function(v){if(this._isComposing||this._isSendingComposition){if(229===v.keyCode||16===v.keyCode||17===v.keyCode||18===v.keyCode)return!1;this._finalizeComposition(!1)}return 229!==v.keyCode||(this._handleAnyTextareaChanges(),!1)},L.prototype._finalizeComposition=function(v){var k=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){var b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){var S;k._isSendingComposition&&(k._isSendingComposition=!1,b.start+=k._dataAlreadySent.length,(S=k._isComposing?k._textarea.value.substring(b.start,b.end):k._textarea.value.substring(b.start)).length>0&&k._coreService.triggerDataEvent(S,!0))},0)}else{this._isSendingComposition=!1;var O=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(O,!0)}},L.prototype._handleAnyTextareaChanges=function(){var v=this,k=this._textarea.value;setTimeout(function(){if(!v._isComposing){var b=v._textarea.value.replace(k,"");b.length>0&&(v._dataAlreadySent=b,v._coreService.triggerDataEvent(b,!0))}},0)},L.prototype.updateCompositionElements=function(v){var k=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),O=this._renderService.dimensions.actualCellHeight,S=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,y=b*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=y+"px",this._compositionView.style.top=S+"px",this._compositionView.style.height=O+"px",this._compositionView.style.lineHeight=O+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var T=this._compositionView.getBoundingClientRect();this._textarea.style.left=y+"px",this._textarea.style.top=S+"px",this._textarea.style.width=Math.max(T.width,1)+"px",this._textarea.style.height=Math.max(T.height,1)+"px",this._textarea.style.lineHeight=T.height+"px"}v||setTimeout(function(){return k.updateCompositionElements(!0)},0)}},R([P(2,D.IBufferService),P(3,D.IOptionsService),P(4,D.ICoreService),P(5,E.IRenderService)],L)}();A.CompositionHelper=j},9806:function(W,A){function U(R,P,E){var D=E.getBoundingClientRect(),j=R.getComputedStyle(E),L=parseInt(j.getPropertyValue("padding-left")),v=parseInt(j.getPropertyValue("padding-top"));return[P.clientX-D.left-L,P.clientY-D.top-v]}Object.defineProperty(A,"__esModule",{value:!0}),A.getRawByteCoords=A.getCoords=A.getCoordsRelativeToElement=void 0,A.getCoordsRelativeToElement=U,A.getCoords=function(R,P,E,D,j,L,v,k,b){if(L){var O=U(R,P,E);if(O)return O[0]=Math.ceil((O[0]+(b?v/2:0))/v),O[1]=Math.ceil(O[1]/k),O[0]=Math.min(Math.max(O[0],1),D+(b?1:0)),O[1]=Math.min(Math.max(O[1],1),j),O}},A.getRawByteCoords=function(R){if(R)return{x:R[0]+32,y:R[1]+32}}},9504:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.moveToCellSequence=void 0;var R=U(2584);function P(k,b,O,S){var y=k-E(O,k),T=b-E(O,b);return v(Math.abs(y-T)-function(x,N,F){for(var X=0,$=x-E(F,x),Y=N-E(F,N),Q=0;Q<Math.abs($-Y);Q++){var ne="A"===D(x,N)?-1:1,be=F.buffer.lines.get($+ne*Q);null!=be&&be.isWrapped&&X++}return X}(k,b,O),L(D(k,b),S))}function E(k,b){for(var O=0,S=k.buffer.lines.get(b),y=null==S?void 0:S.isWrapped;y&&b>=0&&b<k.rows;)O++,y=null==(S=k.buffer.lines.get(--b))?void 0:S.isWrapped;return O}function D(k,b){return k>b?"A":"B"}function j(k,b,O,S,y,T){for(var M=k,x=b,N="";M!==O||x!==S;)M+=y?1:-1,y&&M>T.cols-1?(N+=T.buffer.translateBufferLineToString(x,!1,k,M),M=0,k=0,x++):!y&&M<0&&(N+=T.buffer.translateBufferLineToString(x,!1,0,k+1),k=M=T.cols-1,x--);return N+T.buffer.translateBufferLineToString(x,!1,k,M)}function L(k,b){var O=b?"O":"[";return R.C0.ESC+O+k}function v(k,b){k=Math.floor(k);for(var O="",S=0;S<k;S++)O+=b;return O}A.moveToCellSequence=function(k,b,O,S){var y,N,F,Y,Q,T=O.buffer.x,M=O.buffer.y;if(!O.buffer.hasScrollback)return N=T,(0===P(F=M,b,Y=O,Q=S).length?"":v(j(N,F,N,F-E(Y,F),!1,Y).length,L("D",Q)))+P(M,b,O,S)+function(N,F,X,$,Y,Q){var ne;ne=P(F,$,Y,Q).length>0?$-E(Y,$):F;var de,le,ce,me,je,Mt,be=$,pe=(de=N,le=F,Mt=P(ce=X,me=$,je=Y,Q).length>0?me-E(je,me):le,de<ce&&Mt<=me||de>=ce&&Mt<me?"C":"D");return v(j(N,ne,X,be,"C"===pe,Y).length,L(pe,Q))}(T,M,k,b,O,S);if(M===b)return y=T>k?"D":"C",v(Math.abs(T-k),L(y,S));y=M>b?"D":"C";var x=Math.abs(M-b);return v(function(N,F){return F.cols-N}(M>b?k:T,O)+(x-1)*O.cols+1+((M>b?T:k)-1),L(y,S))}},4389:function(W,A,U){var R=this&&this.__assign||function(){return R=Object.assign||function(S){for(var y,T=1,M=arguments.length;T<M;T++)for(var x in y=arguments[T])Object.prototype.hasOwnProperty.call(y,x)&&(S[x]=y[x]);return S},R.apply(this,arguments)},P=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Terminal=void 0;var E=U(3236),D=U(9042),j=U(7975),L=U(7090),v=U(5741),k=U(8285),b=["cols","rows"],O=function(){function S(y){var T=this;this._core=new E.Terminal(y),this._addonManager=new v.AddonManager,this._publicOptions=R({},this._core.options);var M=function($){return T._core.options[$]},x=function($,Y){T._checkReadonlyOptions($),T._core.options[$]=Y};for(var N in this._core.options){var F={get:M.bind(this,N),set:x.bind(this,N)};Object.defineProperty(this._publicOptions,N,F)}}return S.prototype._checkReadonlyOptions=function(y){if(b.includes(y))throw new Error('Option "'+y+'" can only be set in the constructor')},S.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(S.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onWriteParsed",{get:function(){return this._core.onWriteParsed},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new j.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"unicode",{get:function(){return this._checkProposedApi(),new L.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new k.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"modes",{get:function(){var T=this._core.coreService.decPrivateModes,M="none";switch(this._core.coreMouseService.activeProtocol){case"X10":M="x10";break;case"VT200":M="vt200";break;case"DRAG":M="drag";break;case"ANY":M="any"}return{applicationCursorKeysMode:T.applicationCursorKeys,applicationKeypadMode:T.applicationKeypad,bracketedPasteMode:T.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:M,originMode:T.origin,reverseWraparoundMode:T.reverseWraparound,sendFocusMode:T.sendFocus,wraparoundMode:T.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"options",{get:function(){return this._publicOptions},set:function(T){for(var M in T)this._publicOptions[M]=T[M]},enumerable:!1,configurable:!0}),S.prototype.blur=function(){this._core.blur()},S.prototype.focus=function(){this._core.focus()},S.prototype.resize=function(y,T){this._verifyIntegers(y,T),this._core.resize(y,T)},S.prototype.open=function(y){this._core.open(y)},S.prototype.attachCustomKeyEventHandler=function(y){this._core.attachCustomKeyEventHandler(y)},S.prototype.registerLinkMatcher=function(y,T,M){return this._checkProposedApi(),this._core.registerLinkMatcher(y,T,M)},S.prototype.deregisterLinkMatcher=function(y){this._checkProposedApi(),this._core.deregisterLinkMatcher(y)},S.prototype.registerLinkProvider=function(y){return this._checkProposedApi(),this._core.registerLinkProvider(y)},S.prototype.registerCharacterJoiner=function(y){return this._checkProposedApi(),this._core.registerCharacterJoiner(y)},S.prototype.deregisterCharacterJoiner=function(y){this._checkProposedApi(),this._core.deregisterCharacterJoiner(y)},S.prototype.registerMarker=function(y){return void 0===y&&(y=0),this._checkProposedApi(),this._verifyIntegers(y),this._core.addMarker(y)},S.prototype.registerDecoration=function(y){var T,M,x;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(T=y.x)&&void 0!==T?T:0,null!==(M=y.width)&&void 0!==M?M:0,null!==(x=y.height)&&void 0!==x?x:0),this._core.registerDecoration(y)},S.prototype.addMarker=function(y){return this.registerMarker(y)},S.prototype.hasSelection=function(){return this._core.hasSelection()},S.prototype.select=function(y,T,M){this._verifyIntegers(y,T,M),this._core.select(y,T,M)},S.prototype.getSelection=function(){return this._core.getSelection()},S.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},S.prototype.clearSelection=function(){this._core.clearSelection()},S.prototype.selectAll=function(){this._core.selectAll()},S.prototype.selectLines=function(y,T){this._verifyIntegers(y,T),this._core.selectLines(y,T)},S.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},S.prototype.scrollLines=function(y){this._verifyIntegers(y),this._core.scrollLines(y)},S.prototype.scrollPages=function(y){this._verifyIntegers(y),this._core.scrollPages(y)},S.prototype.scrollToTop=function(){this._core.scrollToTop()},S.prototype.scrollToBottom=function(){this._core.scrollToBottom()},S.prototype.scrollToLine=function(y){this._verifyIntegers(y),this._core.scrollToLine(y)},S.prototype.clear=function(){this._core.clear()},S.prototype.write=function(y,T){this._core.write(y,T)},S.prototype.writeUtf8=function(y,T){this._core.write(y,T)},S.prototype.writeln=function(y,T){this._core.write(y),this._core.write("\r\n",T)},S.prototype.paste=function(y){this._core.paste(y)},S.prototype.getOption=function(y){return this._core.optionsService.getOption(y)},S.prototype.setOption=function(y,T){this._checkReadonlyOptions(y),this._core.optionsService.setOption(y,T)},S.prototype.refresh=function(y,T){this._verifyIntegers(y,T),this._core.refresh(y,T)},S.prototype.reset=function(){this._core.reset()},S.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},S.prototype.loadAddon=function(y){return this._addonManager.loadAddon(this,y)},Object.defineProperty(S,"strings",{get:function(){return D},enumerable:!1,configurable:!0}),S.prototype._verifyIntegers=function(){for(var y,T,M=[],x=0;x<arguments.length;x++)M[x]=arguments[x];try{for(var N=P(M),F=N.next();!F.done;F=N.next()){var X=F.value;if(X===1/0||isNaN(X)||X%1!=0)throw new Error("This API only accepts integers")}}catch($){y={error:$}}finally{try{F&&!F.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S.prototype._verifyPositiveIntegers=function(){for(var y,T,M=[],x=0;x<arguments.length;x++)M[x]=arguments[x];try{for(var N=P(M),F=N.next();!F.done;F=N.next()){var X=F.value;if(X&&(X===1/0||isNaN(X)||X%1!=0||X<0))throw new Error("This API only accepts positive integers")}}catch($){y={error:$}}finally{try{F&&!F.done&&(T=N.return)&&T.call(N)}finally{if(y)throw y.error}}},S}();A.Terminal=O},1546:function(W,A,U){var R=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.BaseRenderLayer=void 0;var P=U(643),E=U(8803),D=U(1420),j=U(3734),L=U(1752),v=U(8055),k=U(9631),b=U(8978),O=function(){function S(y,T,M,x,N,F,X,$,Y){this._container=y,this._alpha=x,this._colors=N,this._rendererId=F,this._bufferService=X,this._optionsService=$,this._decorationService=Y,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._columnSelectMode=!1,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+T+"-layer"),this._canvas.style.zIndex=M.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return S.prototype.dispose=function(){var y;(0,k.removeElementFromParent)(this._canvas),null===(y=this._charAtlas)||void 0===y||y.dispose()},S.prototype._initCanvas=function(){this._ctx=(0,L.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},S.prototype.onOptionsChanged=function(){},S.prototype.onBlur=function(){},S.prototype.onFocus=function(){},S.prototype.onCursorMove=function(){},S.prototype.onGridChanged=function(y,T){},S.prototype.onSelectionChanged=function(y,T,M){void 0===M&&(M=!1),this._selectionStart=y,this._selectionEnd=T,this._columnSelectMode=M},S.prototype.setColors=function(y){this._refreshCharAtlas(y)},S.prototype._setTransparency=function(y){if(y!==this._alpha){var T=this._canvas;this._alpha=y,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,T),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},S.prototype._refreshCharAtlas=function(y){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,D.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,y,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},S.prototype.resize=function(y){this._scaledCellWidth=y.scaledCellWidth,this._scaledCellHeight=y.scaledCellHeight,this._scaledCharWidth=y.scaledCharWidth,this._scaledCharHeight=y.scaledCharHeight,this._scaledCharLeft=y.scaledCharLeft,this._scaledCharTop=y.scaledCharTop,this._canvas.width=y.scaledCanvasWidth,this._canvas.height=y.scaledCanvasHeight,this._canvas.style.width=y.canvasWidth+"px",this._canvas.style.height=y.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},S.prototype.clearTextureAtlas=function(){var y;null===(y=this._charAtlas)||void 0===y||y.clear()},S.prototype._fillCells=function(y,T,M,x){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight)},S.prototype._fillMiddleLineAtCells=function(y,T,M){void 0===M&&(M=1);var x=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-x-window.devicePixelRatio,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillBottomLineAtCells=function(y,T,M){void 0===M&&(M=1),this._ctx.fillRect(y*this._scaledCellWidth,(T+1)*this._scaledCellHeight-window.devicePixelRatio-1,M*this._scaledCellWidth,window.devicePixelRatio)},S.prototype._fillLeftLineAtCell=function(y,T,M){this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,window.devicePixelRatio*M,this._scaledCellHeight)},S.prototype._strokeRectAtCell=function(y,T,M,x){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(y*this._scaledCellWidth+window.devicePixelRatio/2,T*this._scaledCellHeight+window.devicePixelRatio/2,M*this._scaledCellWidth-window.devicePixelRatio,x*this._scaledCellHeight-window.devicePixelRatio)},S.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))},S.prototype._clearCells=function(y,T,M,x){this._alpha?this._ctx.clearRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(y*this._scaledCellWidth,T*this._scaledCellHeight,M*this._scaledCellWidth,x*this._scaledCellHeight))},S.prototype._fillCharTrueColor=function(y,T,M){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=E.TEXT_BASELINE,this._clipRow(M);var x=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(x=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),x||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},S.prototype._drawChars=function(y,T,M){var x,N,F,X=this._getContrastColor(y,T,M);if(X||y.isFgRGB()||y.isBgRGB())this._drawUncachedChars(y,T,M,X);else{var $,Y;y.isInverse()?($=y.isBgDefault()?E.INVERTED_DEFAULT_COLOR:y.getBgColor(),Y=y.isFgDefault()?E.INVERTED_DEFAULT_COLOR:y.getFgColor()):(Y=y.isBgDefault()?P.DEFAULT_COLOR:y.getBgColor(),$=y.isFgDefault()?P.DEFAULT_COLOR:y.getFgColor()),$+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&$<8?8:0,this._currentGlyphIdentifier.chars=y.getChars()||P.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=y.getCode()||P.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=Y,this._currentGlyphIdentifier.fg=$,this._currentGlyphIdentifier.bold=!!y.isBold(),this._currentGlyphIdentifier.dim=!!y.isDim(),this._currentGlyphIdentifier.italic=!!y.isItalic();var Q=!1;try{for(var ne=R(this._decorationService.getDecorationsAtCell(T,M)),be=ne.next();!be.done;be=ne.next()){var pe=be.value;if(pe.backgroundColorRGB||pe.foregroundColorRGB){Q=!0;break}}}catch(de){x={error:de}}finally{try{be&&!be.done&&(N=ne.return)&&N.call(ne)}finally{if(x)throw x.error}}!Q&&(null===(F=this._charAtlas)||void 0===F?void 0:F.draw(this._ctx,this._currentGlyphIdentifier,T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop))||this._drawUncachedChars(y,T,M)}},S.prototype._drawUncachedChars=function(y,T,M,x){if(this._ctx.save(),this._ctx.font=this._getFont(!!y.isBold(),!!y.isItalic()),this._ctx.textBaseline=E.TEXT_BASELINE,y.isInverse())if(x)this._ctx.fillStyle=x.css;else if(y.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(y.isBgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var N=y.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&N<8&&(N+=8),this._ctx.fillStyle=this._colors.ansi[N].css}else if(x)this._ctx.fillStyle=x.css;else if(y.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(y.isFgRGB())this._ctx.fillStyle="rgb("+j.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var F=y.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&y.isBold()&&F<8&&(F+=8),this._ctx.fillStyle=this._colors.ansi[F].css}this._clipRow(M),y.isDim()&&(this._ctx.globalAlpha=E.DIM_OPACITY);var X=!1;!1!==this._optionsService.rawOptions.customGlyphs&&(X=(0,b.tryDrawCustomChar)(this._ctx,y.getChars(),T*this._scaledCellWidth,M*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),X||this._ctx.fillText(y.getChars(),T*this._scaledCellWidth+this._scaledCharLeft,M*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},S.prototype._clipRow=function(y){this._ctx.beginPath(),this._ctx.rect(0,y*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},S.prototype._getFont=function(y,T){return(T?"italic":"")+" "+(y?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},S.prototype._getContrastColor=function(y,T,M){var x,N,F,X,$=!1;try{for(var Y=R(this._decorationService.getDecorationsAtCell(T,M)),Q=Y.next();!Q.done;Q=Y.next()){var ne=Q.value;"top"!==ne.options.layer&&$||(ne.backgroundColorRGB&&(F=ne.backgroundColorRGB.rgba),ne.foregroundColorRGB&&(X=ne.foregroundColorRGB.rgba),$="top"===ne.options.layer)}}catch($t){x={error:$t}}finally{try{Q&&!Q.done&&(N=Y.return)&&N.call(Y)}finally{if(x)throw x.error}}if($||this._colors.selectionForeground&&this._isCellInSelection(T,M)&&(X=this._colors.selectionForeground.rgba),F||X||1!==this._optionsService.rawOptions.minimumContrastRatio&&!(0,L.excludeFromContrastRatioDemands)(y.getCode())){if(!F&&!X){var be=this._colors.contrastCache.getColor(y.bg,y.fg);if(void 0!==be)return be||void 0}var pe=y.getFgColor(),de=y.getFgColorMode(),le=y.getBgColor(),ce=y.getBgColorMode(),me=!!y.isInverse(),je=!!y.isInverse();if(me){var at=pe;pe=le,le=at;var Mt=de;de=ce,ce=Mt}var Tt=this._resolveBackgroundRgba(void 0!==F?50331648:ce,null!=F?F:le,me),xt=this._resolveForegroundRgba(de,pe,me,je),Lt=v.rgba.ensureContrastRatio(null!=F?F:Tt,null!=X?X:xt,this._optionsService.rawOptions.minimumContrastRatio);if(!Lt){if(!X)return void this._colors.contrastCache.setColor(y.bg,y.fg,null);Lt=X}var Ze={css:v.channels.toCss(Lt>>24&255,Lt>>16&255,Lt>>8&255),rgba:Lt};return F||X||this._colors.contrastCache.setColor(y.bg,y.fg,Ze),Ze}},S.prototype._resolveBackgroundRgba=function(y,T,M){switch(y){case 16777216:case 33554432:return this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.foreground.rgba:this._colors.background.rgba}},S.prototype._resolveForegroundRgba=function(y,T,M,x){switch(y){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&x&&T<8&&(T+=8),this._colors.ansi[T].rgba;case 50331648:return T<<8;default:return M?this._colors.background.rgba:this._colors.foreground.rgba}},S.prototype._isCellInSelection=function(y,T){var M=this._selectionStart,x=this._selectionEnd;return!(!M||!x)&&(this._columnSelectMode?y>=M[0]&&T>=M[1]&&y<x[0]&&T<x[1]:T>M[1]&&T<x[1]||M[1]===x[1]&&T===M[1]&&y>=M[0]&&y<x[0]||M[1]<x[1]&&T===x[1]&&y<x[0]||M[1]<x[1]&&T===M[1]&&y>=M[0])},S}();A.BaseRenderLayer=O},2512:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(x[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,F=arguments.length,X=F<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorRenderLayer=void 0;var j=U(1546),L=U(511),v=U(2585),k=U(4725),b=600,O=function(y){function T(M,x,N,F,X,$,Y,Q,ne,be){var pe=y.call(this,M,"cursor",x,!0,N,F,$,Y,be)||this;return pe._onRequestRedraw=X,pe._coreService=Q,pe._coreBrowserService=ne,pe._cell=new L.CellData,pe._state={x:0,y:0,isFocused:!1,style:"",width:0},pe._cursorRenderers={bar:pe._renderBarCursor.bind(pe),block:pe._renderBlockCursor.bind(pe),underline:pe._renderUnderlineCursor.bind(pe)},pe}return P(T,y),T.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),y.prototype.dispose.call(this)},T.prototype.resize=function(M){y.prototype.resize.call(this,M),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},T.prototype.reset=function(){var M;this._clearCursor(),null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation(),this.onOptionsChanged()},T.prototype.onBlur=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onFocus=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onOptionsChanged=function(){var M,x=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new S(this._coreBrowserService.isFocused,function(){x._render(!0)})):(null===(M=this._cursorBlinkStateManager)||void 0===M||M.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},T.prototype.onCursorMove=function(){var M;null===(M=this._cursorBlinkStateManager)||void 0===M||M.restartBlinkAnimation()},T.prototype.onGridChanged=function(M,x){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},T.prototype._render=function(M){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var x=this._bufferService.buffer.ybase+this._bufferService.buffer.y,N=x-this._bufferService.buffer.ydisp;if(N<0||N>=this._bufferService.rows)this._clearCursor();else{var F=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(x).loadCell(F,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var X=this._optionsService.rawOptions.cursorStyle;return X&&"block"!==X?this._cursorRenderers[X](F,N,this._cell):this._renderBlurCursor(F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=X,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===F&&this._state.y===N&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](F,N,this._cell),this._ctx.restore(),this._state.x=F,this._state.y=N,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},T.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})},T.prototype._renderBarCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(M,x,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},T.prototype._renderBlockCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(M,x,N.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(N,M,x),this._ctx.restore()},T.prototype._renderUnderlineCursor=function(M,x,N){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(M,x),this._ctx.restore()},T.prototype._renderBlurCursor=function(M,x,N){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(M,x,N.getWidth(),1),this._ctx.restore()},E([D(5,v.IBufferService),D(6,v.IOptionsService),D(7,v.ICoreService),D(8,k.ICoreBrowserService),D(9,v.IDecorationService)],T)}(j.BaseRenderLayer);A.CursorRenderLayer=O;var S=function(){function y(T,M){this._renderCallback=M,this.isCursorVisible=!0,T&&this._restartInterval()}return Object.defineProperty(y.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),y.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)},y.prototype.restartBlinkAnimation=function(){var T=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){T._renderCallback(),T._animationFrame=void 0})))},y.prototype._restartInterval=function(T){var M=this;void 0===T&&(T=b),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(M._animationTimeRestarted){var x=b-(Date.now()-M._animationTimeRestarted);if(M._animationTimeRestarted=void 0,x>0)return void M._restartInterval(x)}M.isCursorVisible=!1,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0}),M._blinkInterval=window.setInterval(function(){if(M._animationTimeRestarted){var N=b-(Date.now()-M._animationTimeRestarted);return M._animationTimeRestarted=void 0,void M._restartInterval(N)}M.isCursorVisible=!M.isCursorVisible,M._animationFrame=window.requestAnimationFrame(function(){M._renderCallback(),M._animationFrame=void 0})},b)},T)},y.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)},y.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},y}()},8978:function(W,A,U){var R,P,E,D,j,L,v,k,b,O,S,y,T,M,x,N,F,X,$,Y,Q,ne,be,pe,de,le,ce,me,je,at,Mt,Tt,xt,Lt,Ze,$t,Ft,fn,nt,Ot,_t,Ct,We,lt,dt,Ut,B,H,tt,Ye,ge,t,Dt,Zt,zt,sn,qt,yn,Kt,Xt,Je,Be,te,ye,fe,Ne,st,ct,Bt,jt,on,vn,ln,En,hn,mn,At,Et,et,St,ze,Ke,Re,qe,vt,dn,Hn,Yt,kt,$e,gt,yt,nn,Gn,Vn,Wn,ar,Or,hi,Gi,Pa,Ra,ua,ss,ta,ri,Vs,zi,Yn,yr,Hr,Ni,Ms,ki,Ko,qr,Bi,ba,Ar,Fi,Uo,Ca,ca,co,na,ls,Ai,fo,La=this&&this.__read||function(tn,Jt){var Jr="function"==typeof Symbol&&tn[Symbol.iterator];if(!Jr)return tn;var Mi,Jo,Ho=Jr.call(tn),bi=[];try{for(;(void 0===Jt||Jt-- >0)&&!(Mi=Ho.next()).done;)bi.push(Mi.value)}catch(Rn){Jo={error:Rn}}finally{try{Mi&&!Mi.done&&(Jr=Ho.return)&&Jr.call(Ho)}finally{if(Jo)throw Jo.error}}return bi},Ti=this&&this.__values||function(tn){var Jt="function"==typeof Symbol&&Symbol.iterator,Jr=Jt&&tn[Jt],Mi=0;if(Jr)return Jr.call(tn);if(tn&&"number"==typeof tn.length)return{next:function(){return tn&&Mi>=tn.length&&(tn=void 0),{value:tn&&tn[Mi++],done:!tn}}};throw new TypeError(Jt?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.tryDrawCustomChar=A.powerlineDefinitions=A.boxDrawingDefinitions=A.blockElementDefinitions=void 0;var qo=U(1752);A.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258a":[{x:0,y:0,w:6,h:8}],"\u258b":[{x:0,y:0,w:5,h:8}],"\u258c":[{x:0,y:0,w:4,h:8}],"\u258d":[{x:0,y:0,w:3,h:8}],"\u258e":[{x:0,y:0,w:2,h:8}],"\u258f":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259a":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259b":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259c":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259d":[{x:4,y:0,w:4,h:4}],"\u259e":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259f":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\ud83e\udf70":[{x:1,y:0,w:1,h:8}],"\ud83e\udf71":[{x:2,y:0,w:1,h:8}],"\ud83e\udf72":[{x:3,y:0,w:1,h:8}],"\ud83e\udf73":[{x:4,y:0,w:1,h:8}],"\ud83e\udf74":[{x:5,y:0,w:1,h:8}],"\ud83e\udf75":[{x:6,y:0,w:1,h:8}],"\ud83e\udf76":[{x:0,y:1,w:8,h:1}],"\ud83e\udf77":[{x:0,y:2,w:8,h:1}],"\ud83e\udf78":[{x:0,y:3,w:8,h:1}],"\ud83e\udf79":[{x:0,y:4,w:8,h:1}],"\ud83e\udf7a":[{x:0,y:5,w:8,h:1}],"\ud83e\udf7b":[{x:0,y:6,w:8,h:1}],"\ud83e\udf7c":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf7d":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7e":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\ud83e\udf7f":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\ud83e\udf80":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf81":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\ud83e\udf82":[{x:0,y:0,w:8,h:2}],"\ud83e\udf83":[{x:0,y:0,w:8,h:3}],"\ud83e\udf84":[{x:0,y:0,w:8,h:5}],"\ud83e\udf85":[{x:0,y:0,w:8,h:6}],"\ud83e\udf86":[{x:0,y:0,w:8,h:7}],"\ud83e\udf87":[{x:6,y:0,w:2,h:8}],"\ud83e\udf88":[{x:5,y:0,w:3,h:8}],"\ud83e\udf89":[{x:3,y:0,w:5,h:8}],"\ud83e\udf8a":[{x:2,y:0,w:6,h:8}],"\ud83e\udf8b":[{x:1,y:0,w:7,h:8}],"\ud83e\udf95":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\ud83e\udf96":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\ud83e\udf97":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var gu={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};A.boxDrawingDefinitions={"\u2500":(R={},R[1]="M0,.5 L1,.5",R),"\u2501":(P={},P[3]="M0,.5 L1,.5",P),"\u2502":(E={},E[1]="M.5,0 L.5,1",E),"\u2503":(D={},D[3]="M.5,0 L.5,1",D),"\u250c":(j={},j[1]="M0.5,1 L.5,.5 L1,.5",j),"\u250f":(L={},L[3]="M0.5,1 L.5,.5 L1,.5",L),"\u2510":(v={},v[1]="M0,.5 L.5,.5 L.5,1",v),"\u2513":(k={},k[3]="M0,.5 L.5,.5 L.5,1",k),"\u2514":(b={},b[1]="M.5,0 L.5,.5 L1,.5",b),"\u2517":(O={},O[3]="M.5,0 L.5,.5 L1,.5",O),"\u2518":(S={},S[1]="M.5,0 L.5,.5 L0,.5",S),"\u251b":(y={},y[3]="M.5,0 L.5,.5 L0,.5",y),"\u251c":(T={},T[1]="M.5,0 L.5,1 M.5,.5 L1,.5",T),"\u2523":(M={},M[3]="M.5,0 L.5,1 M.5,.5 L1,.5",M),"\u2524":(x={},x[1]="M.5,0 L.5,1 M.5,.5 L0,.5",x),"\u252b":(N={},N[3]="M.5,0 L.5,1 M.5,.5 L0,.5",N),"\u252c":(F={},F[1]="M0,.5 L1,.5 M.5,.5 L.5,1",F),"\u2533":(X={},X[3]="M0,.5 L1,.5 M.5,.5 L.5,1",X),"\u2534":($={},$[1]="M0,.5 L1,.5 M.5,.5 L.5,0",$),"\u253b":(Y={},Y[3]="M0,.5 L1,.5 M.5,.5 L.5,0",Y),"\u253c":(Q={},Q[1]="M0,.5 L1,.5 M.5,0 L.5,1",Q),"\u254b":(ne={},ne[3]="M0,.5 L1,.5 M.5,0 L.5,1",ne),"\u2574":(be={},be[1]="M.5,.5 L0,.5",be),"\u2578":(pe={},pe[3]="M.5,.5 L0,.5",pe),"\u2575":(de={},de[1]="M.5,.5 L.5,0",de),"\u2579":(le={},le[3]="M.5,.5 L.5,0",le),"\u2576":(ce={},ce[1]="M.5,.5 L1,.5",ce),"\u257a":(me={},me[3]="M.5,.5 L1,.5",me),"\u2577":(je={},je[1]="M.5,.5 L.5,1",je),"\u257b":(at={},at[3]="M.5,.5 L.5,1",at),"\u2550":(Mt={},Mt[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},Mt),"\u2551":(Tt={},Tt[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},Tt),"\u2552":(xt={},xt[1]=function(tn,Jt){return"M.5,1 L.5,"+(.5-Jt)+" L1,"+(.5-Jt)+" M.5,"+(.5+Jt)+" L1,"+(.5+Jt)},xt),"\u2553":(Lt={},Lt[1]=function(tn,Jt){return"M"+(.5-tn)+",1 L"+(.5-tn)+",.5 L1,.5 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},Lt),"\u2554":(Ze={},Ze[1]=function(tn,Jt){return"M1,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1"},Ze),"\u2555":($t={},$t[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L.5,"+(.5-Jt)+" L.5,1 M0,"+(.5+Jt)+" L.5,"+(.5+Jt)},$t),"\u2556":(Ft={},Ft[1]=function(tn,Jt){return"M"+(.5+tn)+",1 L"+(.5+tn)+",.5 L0,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1"},Ft),"\u2557":(fn={},fn[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M0,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",1"},fn),"\u2558":(nt={},nt[1]=function(tn,Jt){return"M.5,0 L.5,"+(.5+Jt)+" L1,"+(.5+Jt)+" M.5,"+(.5-Jt)+" L1,"+(.5-Jt)},nt),"\u2559":(Ot={},Ot[1]=function(tn,Jt){return"M1,.5 L"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},Ot),"\u255a":(_t={},_t[1]=function(tn,Jt){return"M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0 M1,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",0"},_t),"\u255b":(Ct={},Ct[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L.5,"+(.5+Jt)+" L.5,0 M0,"+(.5-Jt)+" L.5,"+(.5-Jt)},Ct),"\u255c":(We={},We[1]=function(tn,Jt){return"M0,.5 L"+(.5+tn)+",.5 L"+(.5+tn)+",0 M"+(.5-tn)+",.5 L"+(.5-tn)+",0"},We),"\u255d":(lt={},lt[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M0,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",0"},lt),"\u255e":(dt={},dt[1]=function(tn,Jt){return"M.5,0 L.5,1 M.5,"+(.5-Jt)+" L1,"+(.5-Jt)+" M.5,"+(.5+Jt)+" L1,"+(.5+Jt)},dt),"\u255f":(Ut={},Ut[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1 M"+(.5+tn)+",.5 L1,.5"},Ut),"\u2560":(B={},B[1]=function(tn,Jt){return"M"+(.5-tn)+",0 L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},B),"\u2561":(H={},H[1]=function(tn,Jt){return"M.5,0 L.5,1 M0,"+(.5-Jt)+" L.5,"+(.5-Jt)+" M0,"+(.5+Jt)+" L.5,"+(.5+Jt)},H),"\u2562":(tt={},tt[1]=function(tn,Jt){return"M0,.5 L"+(.5-tn)+",.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},tt),"\u2563":(Ye={},Ye[1]=function(tn,Jt){return"M"+(.5+tn)+",0 L"+(.5+tn)+",1 M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0"},Ye),"\u2564":(ge={},ge[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)+" M.5,"+(.5+Jt)+" L.5,1"},ge),"\u2565":(t={},t[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",1 M"+(.5+tn)+",.5 L"+(.5+tn)+",1"},t),"\u2566":(Dt={},Dt[1]=function(tn,Jt){return"M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1"},Dt),"\u2567":(Zt={},Zt[1]=function(tn,Jt){return"M.5,0 L.5,"+(.5-Jt)+" M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},Zt),"\u2568":(zt={},zt[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",.5 L"+(.5-tn)+",0 M"+(.5+tn)+",.5 L"+(.5+tn)+",0"},zt),"\u2569":(sn={},sn[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L1,"+(.5+Jt)+" M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},sn),"\u256a":(qt={},qt[1]=function(tn,Jt){return"M.5,0 L.5,1 M0,"+(.5-Jt)+" L1,"+(.5-Jt)+" M0,"+(.5+Jt)+" L1,"+(.5+Jt)},qt),"\u256b":(yn={},yn[1]=function(tn,Jt){return"M0,.5 L1,.5 M"+(.5-tn)+",0 L"+(.5-tn)+",1 M"+(.5+tn)+",0 L"+(.5+tn)+",1"},yn),"\u256c":(Kt={},Kt[1]=function(tn,Jt){return"M0,"+(.5+Jt)+" L"+(.5-tn)+","+(.5+Jt)+" L"+(.5-tn)+",1 M1,"+(.5+Jt)+" L"+(.5+tn)+","+(.5+Jt)+" L"+(.5+tn)+",1 M0,"+(.5-Jt)+" L"+(.5-tn)+","+(.5-Jt)+" L"+(.5-tn)+",0 M1,"+(.5-Jt)+" L"+(.5+tn)+","+(.5-Jt)+" L"+(.5+tn)+",0"},Kt),"\u2571":(Xt={},Xt[1]="M1,0 L0,1",Xt),"\u2572":(Je={},Je[1]="M0,0 L1,1",Je),"\u2573":(Be={},Be[1]="M1,0 L0,1 M0,0 L1,1",Be),"\u257c":(te={},te[1]="M.5,.5 L0,.5",te[3]="M.5,.5 L1,.5",te),"\u257d":(ye={},ye[1]="M.5,.5 L.5,0",ye[3]="M.5,.5 L.5,1",ye),"\u257e":(fe={},fe[1]="M.5,.5 L1,.5",fe[3]="M.5,.5 L0,.5",fe),"\u257f":(Ne={},Ne[1]="M.5,.5 L.5,1",Ne[3]="M.5,.5 L.5,0",Ne),"\u250d":(st={},st[1]="M.5,.5 L.5,1",st[3]="M.5,.5 L1,.5",st),"\u250e":(ct={},ct[1]="M.5,.5 L1,.5",ct[3]="M.5,.5 L.5,1",ct),"\u2511":(Bt={},Bt[1]="M.5,.5 L.5,1",Bt[3]="M.5,.5 L0,.5",Bt),"\u2512":(jt={},jt[1]="M.5,.5 L0,.5",jt[3]="M.5,.5 L.5,1",jt),"\u2515":(on={},on[1]="M.5,.5 L.5,0",on[3]="M.5,.5 L1,.5",on),"\u2516":(vn={},vn[1]="M.5,.5 L1,.5",vn[3]="M.5,.5 L.5,0",vn),"\u2519":(ln={},ln[1]="M.5,.5 L.5,0",ln[3]="M.5,.5 L0,.5",ln),"\u251a":(En={},En[1]="M.5,.5 L0,.5",En[3]="M.5,.5 L.5,0",En),"\u251d":(hn={},hn[1]="M.5,0 L.5,1",hn[3]="M.5,.5 L1,.5",hn),"\u251e":(mn={},mn[1]="M0.5,1 L.5,.5 L1,.5",mn[3]="M.5,.5 L.5,0",mn),"\u251f":(At={},At[1]="M.5,0 L.5,.5 L1,.5",At[3]="M.5,.5 L.5,1",At),"\u2520":(Et={},Et[1]="M.5,.5 L1,.5",Et[3]="M.5,0 L.5,1",Et),"\u2521":(et={},et[1]="M.5,.5 L.5,1",et[3]="M.5,0 L.5,.5 L1,.5",et),"\u2522":(St={},St[1]="M.5,.5 L.5,0",St[3]="M0.5,1 L.5,.5 L1,.5",St),"\u2525":(ze={},ze[1]="M.5,0 L.5,1",ze[3]="M.5,.5 L0,.5",ze),"\u2526":(Ke={},Ke[1]="M0,.5 L.5,.5 L.5,1",Ke[3]="M.5,.5 L.5,0",Ke),"\u2527":(Re={},Re[1]="M.5,0 L.5,.5 L0,.5",Re[3]="M.5,.5 L.5,1",Re),"\u2528":(qe={},qe[1]="M.5,.5 L0,.5",qe[3]="M.5,0 L.5,1",qe),"\u2529":(vt={},vt[1]="M.5,.5 L.5,1",vt[3]="M.5,0 L.5,.5 L0,.5",vt),"\u252a":(dn={},dn[1]="M.5,.5 L.5,0",dn[3]="M0,.5 L.5,.5 L.5,1",dn),"\u252d":(Hn={},Hn[1]="M0.5,1 L.5,.5 L1,.5",Hn[3]="M.5,.5 L0,.5",Hn),"\u252e":(Yt={},Yt[1]="M0,.5 L.5,.5 L.5,1",Yt[3]="M.5,.5 L1,.5",Yt),"\u252f":(kt={},kt[1]="M.5,.5 L.5,1",kt[3]="M0,.5 L1,.5",kt),"\u2530":($e={},$e[1]="M0,.5 L1,.5",$e[3]="M.5,.5 L.5,1",$e),"\u2531":(gt={},gt[1]="M.5,.5 L1,.5",gt[3]="M0,.5 L.5,.5 L.5,1",gt),"\u2532":(yt={},yt[1]="M.5,.5 L0,.5",yt[3]="M0.5,1 L.5,.5 L1,.5",yt),"\u2535":(nn={},nn[1]="M.5,0 L.5,.5 L1,.5",nn[3]="M.5,.5 L0,.5",nn),"\u2536":(Gn={},Gn[1]="M.5,0 L.5,.5 L0,.5",Gn[3]="M.5,.5 L1,.5",Gn),"\u2537":(Vn={},Vn[1]="M.5,.5 L.5,0",Vn[3]="M0,.5 L1,.5",Vn),"\u2538":(Wn={},Wn[1]="M0,.5 L1,.5",Wn[3]="M.5,.5 L.5,0",Wn),"\u2539":(ar={},ar[1]="M.5,.5 L1,.5",ar[3]="M.5,0 L.5,.5 L0,.5",ar),"\u253a":(Or={},Or[1]="M.5,.5 L0,.5",Or[3]="M.5,0 L.5,.5 L1,.5",Or),"\u253d":(hi={},hi[1]="M.5,0 L.5,1 M.5,.5 L1,.5",hi[3]="M.5,.5 L0,.5",hi),"\u253e":(Gi={},Gi[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Gi[3]="M.5,.5 L1,.5",Gi),"\u253f":(Pa={},Pa[1]="M.5,0 L.5,1",Pa[3]="M0,.5 L1,.5",Pa),"\u2540":(Ra={},Ra[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Ra[3]="M.5,.5 L.5,0",Ra),"\u2541":(ua={},ua[1]="M.5,.5 L.5,0 M0,.5 L1,.5",ua[3]="M.5,.5 L.5,1",ua),"\u2542":(ss={},ss[1]="M0,.5 L1,.5",ss[3]="M.5,0 L.5,1",ss),"\u2543":(ta={},ta[1]="M0.5,1 L.5,.5 L1,.5",ta[3]="M.5,0 L.5,.5 L0,.5",ta),"\u2544":(ri={},ri[1]="M0,.5 L.5,.5 L.5,1",ri[3]="M.5,0 L.5,.5 L1,.5",ri),"\u2545":(Vs={},Vs[1]="M.5,0 L.5,.5 L1,.5",Vs[3]="M0,.5 L.5,.5 L.5,1",Vs),"\u2546":(zi={},zi[1]="M.5,0 L.5,.5 L0,.5",zi[3]="M0.5,1 L.5,.5 L1,.5",zi),"\u2547":(Yn={},Yn[1]="M.5,.5 L.5,1",Yn[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Yn),"\u2548":(yr={},yr[1]="M.5,.5 L.5,0",yr[3]="M0,.5 L1,.5 M.5,.5 L.5,1",yr),"\u2549":(Hr={},Hr[1]="M.5,.5 L1,.5",Hr[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Hr),"\u254a":(Ni={},Ni[1]="M.5,.5 L0,.5",Ni[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Ni),"\u254c":(Ms={},Ms[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Ms),"\u254d":(ki={},ki[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",ki),"\u2504":(Ko={},Ko[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Ko),"\u2505":(qr={},qr[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",qr),"\u2508":(Bi={},Bi[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",Bi),"\u2509":(ba={},ba[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",ba),"\u254e":(Ar={},Ar[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Ar),"\u254f":(Fi={},Fi[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Fi),"\u2506":(Uo={},Uo[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Uo),"\u2507":(Ca={},Ca[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Ca),"\u250a":(ca={},ca[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",ca),"\u250b":(co={},co[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",co),"\u256d":(na={},na[1]="C.5,1,.5,.5,1,.5",na),"\u256e":(ls={},ls[1]="C.5,1,.5,.5,0,.5",ls),"\u256f":(Ai={},Ai[1]="C.5,0,.5,.5,0,.5",Ai),"\u2570":(fo={},fo[1]="C.5,0,.5,.5,1,.5",fo)},A.powerlineDefinitions={"\ue0b0":{d:"M0,0 L1,.5 L0,1",type:0},"\ue0b1":{d:"M0,0 L1,.5 L0,1",type:1,horizontalPadding:.5},"\ue0b2":{d:"M1,0 L0,.5 L1,1",type:0},"\ue0b3":{d:"M1,0 L0,.5 L1,1",type:1,horizontalPadding:.5}},A.tryDrawCustomChar=function(tn,Jt,Jr,Mi,Jo,Ho){var bi=A.blockElementDefinitions[Jt];if(bi)return function(Nn,xn,pn,mi,Ji,jo){for(var Qi=0;Qi<xn.length;Qi++){var Vi=xn[Qi],ei=Ji/8,_i=jo/8;Nn.fillRect(pn+Vi.x*ei,mi+Vi.y*_i,Vi.w*ei,Vi.h*_i)}}(tn,bi,Jr,Mi,Jo,Ho),!0;var Rn=gu[Jt];if(Rn)return function(Nn,xn,pn,mi,Ji,jo){var Qi,Vi=Wi.get(xn);Vi||(Vi=new Map,Wi.set(xn,Vi));var ei=Nn.fillStyle;if("string"!=typeof ei)throw new Error('Unexpected fillStyle type "'+ei+'"');var _i=Vi.get(ei);if(!_i){var ir=xn[0].length,Do=xn.length,Xi=document.createElement("canvas");Xi.width=ir,Xi.height=Do;var wa=(0,qo.throwIfFalsy)(Xi.getContext("2d")),Za=new ImageData(ir,Do),oo=void 0,Qo=void 0,ra=void 0,dl=void 0;if(ei.startsWith("#"))oo=parseInt(ei.slice(1,3),16),Qo=parseInt(ei.slice(3,5),16),ra=parseInt(ei.slice(5,7),16),dl=ei.length>7&&parseInt(ei.slice(7,9),16)||1;else{if(!ei.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ei+'" when drawing pattern glyph');oo=(Qi=La(ei.substring(5,ei.length-1).split(",").map(function(qa){return parseFloat(qa)}),4))[0],Qo=Qi[1],ra=Qi[2],dl=Qi[3]}for(var Na=0;Na<Do;Na++)for(var ao=0;ao<ir;ao++)Za.data[4*(Na*ir+ao)]=oo,Za.data[4*(Na*ir+ao)+1]=Qo,Za.data[4*(Na*ir+ao)+2]=ra,Za.data[4*(Na*ir+ao)+3]=xn[Na][ao]*(255*dl);wa.putImageData(Za,0,0),_i=(0,qo.throwIfFalsy)(Nn.createPattern(Xi,null)),Vi.set(ei,_i)}Nn.fillStyle=_i,Nn.fillRect(pn,mi,Ji,jo)}(tn,Rn,Jr,Mi,Jo,Ho),!0;var go=A.boxDrawingDefinitions[Jt];if(go)return function(Nn,xn,pn,mi,Ji,jo){var Qi,Vi,ei,_i;Nn.strokeStyle=Nn.fillStyle;try{for(var ir=Ti(Object.entries(xn)),Do=ir.next();!Do.done;Do=ir.next()){var Xi=La(Do.value,2),wa=Xi[0],Za=Xi[1];Nn.beginPath(),Nn.lineWidth=window.devicePixelRatio*Number.parseInt(wa);var oo=void 0;oo="function"==typeof Za?Za(.15,.15/jo*Ji):Za;try{for(var Qo=(ei=void 0,Ti(oo.split(" "))),ra=Qo.next();!ra.done;ra=Qo.next()){var dl=ra.value,Na=dl[0],ao=Ss[Na];if(ao){var qa=dl.substring(1).split(",");qa[0]&&qa[1]&&ao(Nn,qi(qa,Ji,jo,pn,mi))}else console.error('Could not find drawing instructions for "'+Na+'"')}}catch(ka){ei={error:ka}}finally{try{ra&&!ra.done&&(_i=Qo.return)&&_i.call(Qo)}finally{if(ei)throw ei.error}}Nn.stroke(),Nn.closePath()}}catch(ka){Qi={error:ka}}finally{try{Do&&!Do.done&&(Vi=ir.return)&&Vi.call(ir)}finally{if(Qi)throw Qi.error}}}(tn,go,Jr,Mi,Jo,Ho),!0;var Bl=A.powerlineDefinitions[Jt];return!!Bl&&(function(Nn,xn,pn,mi,Ji,jo){var Qi,Vi;Nn.beginPath(),Nn.lineWidth=window.devicePixelRatio;try{for(var ei=Ti(xn.d.split(" ")),_i=ei.next();!_i.done;_i=ei.next()){var ir=_i.value,Do=ir[0],Xi=Ss[Do];if(Xi){var wa=ir.substring(1).split(",");wa[0]&&wa[1]&&Xi(Nn,qi(wa,Ji,jo,pn,mi,xn.horizontalPadding))}else console.error('Could not find drawing instructions for "'+Do+'"')}}catch(Za){Qi={error:Za}}finally{try{_i&&!_i.done&&(Vi=ei.return)&&Vi.call(ei)}finally{if(Qi)throw Qi.error}}1===xn.type?(Nn.strokeStyle=Nn.fillStyle,Nn.stroke()):Nn.fill(),Nn.closePath()}(tn,Bl,Jr,Mi,Jo,Ho),!0)};var Wi=new Map;function Ui(tn,Jt,Jr){return void 0===Jr&&(Jr=0),Math.max(Math.min(tn,Jt),Jr)}var Ss={C:function(Jt,Jr){return Jt.bezierCurveTo(Jr[0],Jr[1],Jr[2],Jr[3],Jr[4],Jr[5])},L:function(Jt,Jr){return Jt.lineTo(Jr[0],Jr[1])},M:function(Jt,Jr){return Jt.moveTo(Jr[0],Jr[1])}};function qi(tn,Jt,Jr,Mi,Jo,Ho){void 0===Ho&&(Ho=0);var bi=tn.map(function(Bl){return parseFloat(Bl)||parseInt(Bl)});if(bi.length<2)throw new Error("Too few arguments for instruction");for(var Rn=0;Rn<bi.length;Rn+=2)bi[Rn]*=Jt-2*Ho*window.devicePixelRatio,0!==bi[Rn]&&(bi[Rn]=Ui(Math.round(bi[Rn]+.5)-.5,Jt,0)),bi[Rn]+=Mi+Ho*window.devicePixelRatio;for(var go=1;go<bi.length;go+=2)bi[go]*=Jr,0!==bi[go]&&(bi[go]=Ui(Math.round(bi[go]+.5)-.5,Jr,0)),bi[go]+=Jo;return bi}},3700:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.GridCache=void 0;var U=function(){function R(){this.cache=[]}return R.prototype.resize=function(P,E){for(var D=0;D<P;D++){this.cache.length<=D&&this.cache.push([]);for(var j=this.cache[D].length;j<E;j++)this.cache[D].push(void 0);this.cache[D].length=E}this.cache.length=P},R.prototype.clear=function(){for(var P=0;P<this.cache.length;P++)for(var E=0;E<this.cache[P].length;E++)this.cache[P][E]=void 0},R}();A.GridCache=U},5098:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.LinkRenderLayer=void 0;var j=U(1546),L=U(8803),v=U(2040),k=U(2585),b=function(O){function S(y,T,M,x,N,F,X,$,Y){var Q=O.call(this,y,"link",T,!0,M,x,X,$,Y)||this;return N.onShowLinkUnderline(function(ne){return Q._onShowLinkUnderline(ne)}),N.onHideLinkUnderline(function(ne){return Q._onHideLinkUnderline(ne)}),F.onShowLinkUnderline(function(ne){return Q._onShowLinkUnderline(ne)}),F.onHideLinkUnderline(function(ne){return Q._onHideLinkUnderline(ne)}),Q}return P(S,O),S.prototype.resize=function(y){O.prototype.resize.call(this,y),this._state=void 0},S.prototype.reset=function(){this._clearCurrentLink()},S.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var y=this._state.y2-this._state.y1-1;y>0&&this._clearCells(0,this._state.y1+1,this._state.cols,y),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},S.prototype._onShowLinkUnderline=function(y){if(y.fg===L.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:y.fg&&(0,v.is256Color)(y.fg)?this._ctx.fillStyle=this._colors.ansi[y.fg].css:this._ctx.fillStyle=this._colors.foreground.css,y.y1===y.y2)this._fillBottomLineAtCells(y.x1,y.y1,y.x2-y.x1);else{this._fillBottomLineAtCells(y.x1,y.y1,y.cols-y.x1);for(var T=y.y1+1;T<y.y2;T++)this._fillBottomLineAtCells(0,T,y.cols);this._fillBottomLineAtCells(0,y.y2,y.x2)}this._state=y},S.prototype._onHideLinkUnderline=function(y){this._clearCurrentLink()},E([D(6,k.IBufferService),D(7,k.IOptionsService),D(8,k.IDecorationService)],S)}(j.BaseRenderLayer);A.LinkRenderLayer=b},3525:function(W,A,U){var R,P=this&&this.__extends||(R=function(X,$){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var ne in Q)Object.prototype.hasOwnProperty.call(Q,ne)&&(Y[ne]=Q[ne])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}R(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)}),E=this&&this.__decorate||function(F,X,$,Y){var Q,ne=arguments.length,be=ne<3?X:null===Y?Y=Object.getOwnPropertyDescriptor(X,$):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)be=Reflect.decorate(F,X,$,Y);else for(var pe=F.length-1;pe>=0;pe--)(Q=F[pe])&&(be=(ne<3?Q(be):ne>3?Q(X,$,be):Q(X,$))||be);return ne>3&&be&&Object.defineProperty(X,$,be),be},D=this&&this.__param||function(F,X){return function($,Y){X($,Y,F)}},j=this&&this.__values||function(F){var X="function"==typeof Symbol&&Symbol.iterator,$=X&&F[X],Y=0;if($)return $.call(F);if(F&&"number"==typeof F.length)return{next:function(){return F&&Y>=F.length&&(F=void 0),{value:F&&F[Y++],done:!F}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.Renderer=void 0;var L=U(9596),v=U(4149),k=U(2512),b=U(5098),O=U(844),S=U(4725),y=U(2585),T=U(1420),M=U(8460),x=1,N=function(F){function X($,Y,Q,ne,be,pe,de,le){var ce=F.call(this)||this;ce._colors=$,ce._screenElement=Y,ce._bufferService=pe,ce._charSizeService=de,ce._optionsService=le,ce._id=x++,ce._onRequestRedraw=new M.EventEmitter;var me=ce._optionsService.rawOptions.allowTransparency;return ce._renderLayers=[be.createInstance(L.TextRenderLayer,ce._screenElement,0,ce._colors,me,ce._id),be.createInstance(v.SelectionRenderLayer,ce._screenElement,1,ce._colors,ce._id),be.createInstance(b.LinkRenderLayer,ce._screenElement,2,ce._colors,ce._id,Q,ne),be.createInstance(k.CursorRenderLayer,ce._screenElement,3,ce._colors,ce._id,ce._onRequestRedraw)],ce.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},ce._devicePixelRatio=window.devicePixelRatio,ce._updateDimensions(),ce.onOptionsChanged(),ce}return P(X,F),Object.defineProperty(X.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),X.prototype.dispose=function(){var $,Y;try{for(var Q=j(this._renderLayers),ne=Q.next();!ne.done;ne=Q.next())ne.value.dispose()}catch(be){$={error:be}}finally{try{ne&&!ne.done&&(Y=Q.return)&&Y.call(Q)}finally{if($)throw $.error}}F.prototype.dispose.call(this),(0,T.removeTerminalFromCache)(this._id)},X.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},X.prototype.setColors=function($){var Y,Q;this._colors=$;try{for(var ne=j(this._renderLayers),be=ne.next();!be.done;be=ne.next()){var pe=be.value;pe.setColors(this._colors),pe.reset()}}catch(de){Y={error:de}}finally{try{be&&!be.done&&(Q=ne.return)&&Q.call(ne)}finally{if(Y)throw Y.error}}},X.prototype.onResize=function($,Y){var Q,ne;this._updateDimensions();try{for(var be=j(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.resize(this.dimensions)}catch(de){Q={error:de}}finally{try{pe&&!pe.done&&(ne=be.return)&&ne.call(be)}finally{if(Q)throw Q.error}}this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},X.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},X.prototype.onBlur=function(){this._runOperation(function($){return $.onBlur()})},X.prototype.onFocus=function(){this._runOperation(function($){return $.onFocus()})},X.prototype.onSelectionChanged=function($,Y,Q){void 0===Q&&(Q=!1),this._runOperation(function(ne){return ne.onSelectionChanged($,Y,Q)}),this._colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})},X.prototype.onCursorMove=function(){this._runOperation(function($){return $.onCursorMove()})},X.prototype.onOptionsChanged=function(){this._runOperation(function($){return $.onOptionsChanged()})},X.prototype.clear=function(){this._runOperation(function($){return $.reset()})},X.prototype._runOperation=function($){var Y,Q;try{for(var ne=j(this._renderLayers),be=ne.next();!be.done;be=ne.next())$(be.value)}catch(pe){Y={error:pe}}finally{try{be&&!be.done&&(Q=ne.return)&&Q.call(ne)}finally{if(Y)throw Y.error}}},X.prototype.renderRows=function($,Y){var Q,ne;try{for(var be=j(this._renderLayers),pe=be.next();!pe.done;pe=be.next())pe.value.onGridChanged($,Y)}catch(de){Q={error:de}}finally{try{pe&&!pe.done&&(ne=be.return)&&ne.call(be)}finally{if(Q)throw Q.error}}},X.prototype.clearTextureAtlas=function(){var $,Y;try{for(var Q=j(this._renderLayers),ne=Q.next();!ne.done;ne=Q.next())ne.value.clearTextureAtlas()}catch(be){$={error:be}}finally{try{ne&&!ne.done&&(Y=Q.return)&&Y.call(Q)}finally{if($)throw $.error}}},X.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},E([D(4,y.IInstantiationService),D(5,y.IBufferService),D(6,S.ICharSizeService),D(7,y.IOptionsService)],X)}(O.Disposable);A.Renderer=N},1752:function(W,A){function U(R){return 57508<=R&&R<=57558}Object.defineProperty(A,"__esModule",{value:!0}),A.excludeFromContrastRatioDemands=A.isPowerlineGlyph=A.throwIfFalsy=void 0,A.throwIfFalsy=function(R){if(!R)throw new Error("value must not be falsy");return R},A.isPowerlineGlyph=U,A.excludeFromContrastRatioDemands=function(R){return U(R)||9472<=(P=R)&&P<=9631;var P}},4149:function(W,A,U){var R,P=this&&this.__extends||(R=function(b,O){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,y){S.__proto__=y}||function(S,y){for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&(S[T]=y[T])})(b,O)},function(k,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function O(){this.constructor=k}R(k,b),k.prototype=null===b?Object.create(b):(O.prototype=b.prototype,new O)}),E=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var x=k.length-1;x>=0;x--)(y=k[x])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},D=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionRenderLayer=void 0;var j=U(1546),L=U(2585),v=function(k){function b(O,S,y,T,M,x,N){var F=k.call(this,O,"selection",S,!0,y,T,M,x,N)||this;return F._clearState(),F}return P(b,k),b.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},b.prototype.resize=function(O){k.prototype.resize.call(this,O),this._clearState()},b.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},b.prototype.onSelectionChanged=function(O,S,y){if(k.prototype.onSelectionChanged.call(this,O,S,y),this._didStateChange(O,S,y,this._bufferService.buffer.ydisp))if(this._clearAll(),O&&S){var T=O[1]-this._bufferService.buffer.ydisp,M=S[1]-this._bufferService.buffer.ydisp,x=Math.max(T,0),N=Math.min(M,this._bufferService.rows-1);if(x>=this._bufferService.rows||N<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,y){var F=O[0],X=S[0]-F,$=N-x+1;this._fillCells(F,x,X,$)}else{F=T===x?O[0]:0;var Y=x===M?S[0]:this._bufferService.cols;this._fillCells(F,x,Y-F,1);var Q=Math.max(N-x-1,0);if(this._fillCells(0,x+1,this._bufferService.cols,Q),x!==N){var ne=M===N?S[0]:this._bufferService.cols;this._fillCells(0,N,ne,1)}}this._state.start=[O[0],O[1]],this._state.end=[S[0],S[1]],this._state.columnSelectMode=y,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},b.prototype._didStateChange=function(O,S,y,T){return!this._areCoordinatesEqual(O,this._state.start)||!this._areCoordinatesEqual(S,this._state.end)||y!==this._state.columnSelectMode||T!==this._state.ydisp},b.prototype._areCoordinatesEqual=function(O,S){return!(!O||!S)&&O[0]===S[0]&&O[1]===S[1]},E([D(4,L.IBufferService),D(5,L.IOptionsService),D(6,L.IDecorationService)],b)}(j.BaseRenderLayer);A.SelectionRenderLayer=v},9596:function(W,A,U){var R,P=this&&this.__extends||(R=function(N,F){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,$){X.__proto__=$}||function(X,$){for(var Y in $)Object.prototype.hasOwnProperty.call($,Y)&&(X[Y]=$[Y])})(N,F)},function(x,N){if("function"!=typeof N&&null!==N)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=x}R(x,N),x.prototype=null===N?Object.create(N):(F.prototype=N.prototype,new F)}),E=this&&this.__decorate||function(x,N,F,X){var $,Y=arguments.length,Q=Y<3?N:null===X?X=Object.getOwnPropertyDescriptor(N,F):X;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(x,N,F,X);else for(var ne=x.length-1;ne>=0;ne--)($=x[ne])&&(Q=(Y<3?$(Q):Y>3?$(N,F,Q):$(N,F))||Q);return Y>3&&Q&&Object.defineProperty(N,F,Q),Q},D=this&&this.__param||function(x,N){return function(F,X){N(F,X,x)}},j=this&&this.__values||function(x){var N="function"==typeof Symbol&&Symbol.iterator,F=N&&x[N],X=0;if(F)return F.call(x);if(x&&"number"==typeof x.length)return{next:function(){return x&&X>=x.length&&(x=void 0),{value:x&&x[X++],done:!x}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.TextRenderLayer=void 0;var L=U(3700),v=U(1546),k=U(3734),b=U(643),O=U(511),S=U(2585),y=U(4725),T=U(4269),M=function(x){function N(F,X,$,Y,Q,ne,be,pe,de){var le=x.call(this,F,"text",X,Y,$,Q,ne,be,de)||this;return le._characterJoinerService=pe,le._characterWidth=0,le._characterFont="",le._characterOverlapCache={},le._workCell=new O.CellData,le._state=new L.GridCache,le}return P(N,x),N.prototype.resize=function(F){x.prototype.resize.call(this,F);var X=this._getFont(!1,!1);this._characterWidth===F.scaledCharWidth&&this._characterFont===X||(this._characterWidth=F.scaledCharWidth,this._characterFont=X,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},N.prototype.reset=function(){this._state.clear(),this._clearAll()},N.prototype._forEachCell=function(F,X,$){for(var Y=F;Y<=X;Y++)for(var Q=Y+this._bufferService.buffer.ydisp,ne=this._bufferService.buffer.lines.get(Q),be=this._characterJoinerService.getJoinedCharacters(Q),pe=0;pe<this._bufferService.cols;pe++){ne.loadCell(pe,this._workCell);var de=this._workCell,le=!1,ce=pe;if(0!==de.getWidth()){if(be.length>0&&pe===be[0][0]){le=!0;var me=be.shift();de=new T.JoinedCellData(this._workCell,ne.translateToString(!0,me[0],me[1]),me[1]-me[0]),ce=me[1]-1}!le&&this._isOverlapping(de)&&ce<ne.length-1&&ne.getCodePoint(ce+1)===b.NULL_CELL_CODE&&(de.content&=-12582913,de.content|=2<<22),$(de,pe,Y),pe=ce}}},N.prototype._drawBackground=function(F,X){var $=this,Y=this._ctx,Q=this._bufferService.cols,ne=0,be=0,pe=null;Y.save(),this._forEachCell(F,X,function(de,le,ce){var me,je,at=null;de.isInverse()?at=de.isFgDefault()?$._colors.foreground.css:de.isFgRGB()?"rgb("+k.AttributeData.toColorRGB(de.getFgColor()).join(",")+")":$._colors.ansi[de.getFgColor()].css:de.isBgRGB()?at="rgb("+k.AttributeData.toColorRGB(de.getBgColor()).join(",")+")":de.isBgPalette()&&(at=$._colors.ansi[de.getBgColor()].css);var Mt=!1;try{for(var Tt=j($._decorationService.getDecorationsAtCell(le,$._bufferService.buffer.ydisp+ce)),xt=Tt.next();!xt.done;xt=Tt.next()){var Lt=xt.value;"top"!==Lt.options.layer&&Mt||(Lt.backgroundColorRGB&&(at=Lt.backgroundColorRGB.css),Mt="top"===Lt.options.layer)}}catch(Ze){me={error:Ze}}finally{try{xt&&!xt.done&&(je=Tt.return)&&je.call(Tt)}finally{if(me)throw me.error}}null===pe&&(ne=le,be=ce),ce!==be?(Y.fillStyle=pe||"",$._fillCells(ne,be,Q-ne,1),ne=le,be=ce):pe!==at&&(Y.fillStyle=pe||"",$._fillCells(ne,be,le-ne,1),ne=le,be=ce),pe=at}),null!==pe&&(Y.fillStyle=pe,this._fillCells(ne,be,Q-ne,1)),Y.restore()},N.prototype._drawForeground=function(F,X){var $=this;this._forEachCell(F,X,function(Y,Q,ne){if(!Y.isInvisible()&&($._drawChars(Y,Q,ne),Y.isUnderline()||Y.isStrikethrough())){if($._ctx.save(),Y.isInverse())if(Y.isBgDefault())$._ctx.fillStyle=$._colors.background.css;else if(Y.isBgRGB())$._ctx.fillStyle="rgb("+k.AttributeData.toColorRGB(Y.getBgColor()).join(",")+")";else{var be=Y.getBgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&Y.isBold()&&be<8&&(be+=8),$._ctx.fillStyle=$._colors.ansi[be].css}else if(Y.isFgDefault())$._ctx.fillStyle=$._colors.foreground.css;else if(Y.isFgRGB())$._ctx.fillStyle="rgb("+k.AttributeData.toColorRGB(Y.getFgColor()).join(",")+")";else{var pe=Y.getFgColor();$._optionsService.rawOptions.drawBoldTextInBrightColors&&Y.isBold()&&pe<8&&(pe+=8),$._ctx.fillStyle=$._colors.ansi[pe].css}Y.isStrikethrough()&&$._fillMiddleLineAtCells(Q,ne,Y.getWidth()),Y.isUnderline()&&$._fillBottomLineAtCells(Q,ne,Y.getWidth()),$._ctx.restore()}})},N.prototype.onGridChanged=function(F,X){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,F,this._bufferService.cols,X-F+1),this._drawBackground(F,X),this._drawForeground(F,X))},N.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},N.prototype._isOverlapping=function(F){if(1!==F.getWidth()||F.getCode()<256)return!1;var X=F.getChars();if(this._characterOverlapCache.hasOwnProperty(X))return this._characterOverlapCache[X];this._ctx.save(),this._ctx.font=this._characterFont;var $=Math.floor(this._ctx.measureText(X).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[X]=$,$},E([D(5,S.IBufferService),D(6,S.IOptionsService),D(7,y.ICharacterJoinerService),D(8,S.IDecorationService)],N)}(v.BaseRenderLayer);A.TextRenderLayer=M},9616:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.BaseCharAtlas=void 0;var U=function(){function R(){this._didWarmUp=!1}return R.prototype.dispose=function(){},R.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},R.prototype._doWarmUp=function(){},R.prototype.clear=function(){},R.prototype.beginFrame=function(){},R}();A.BaseCharAtlas=U},1420:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.removeTerminalFromCache=A.acquireCharAtlas=void 0;var R=U(2040),P=U(1906),E=[];A.acquireCharAtlas=function(D,j,L,v,k){for(var b=(0,R.generateConfig)(v,k,D,L),O=0;O<E.length;O++){var S=(y=E[O]).ownedBy.indexOf(j);if(S>=0){if((0,R.configEquals)(y.config,b))return y.atlas;1===y.ownedBy.length?(y.atlas.dispose(),E.splice(O,1)):y.ownedBy.splice(S,1);break}}for(O=0;O<E.length;O++){var y=E[O];if((0,R.configEquals)(y.config,b))return y.ownedBy.push(j),y.atlas}var T={atlas:new P.DynamicCharAtlas(document,b),config:b,ownedBy:[j]};return E.push(T),T.atlas},A.removeTerminalFromCache=function(D){for(var j=0;j<E.length;j++){var L=E[j].ownedBy.indexOf(D);if(-1!==L){1===E[j].ownedBy.length?(E[j].atlas.dispose(),E.splice(j,1)):E[j].ownedBy.splice(L,1);break}}}},2040:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.is256Color=A.configEquals=A.generateConfig=void 0;var R=U(643);A.generateConfig=function(P,E,D,j){var L={foreground:j.foreground,background:j.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:j.ansi.slice()};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:P,scaledCharHeight:E,fontFamily:D.fontFamily,fontSize:D.fontSize,fontWeight:D.fontWeight,fontWeightBold:D.fontWeightBold,allowTransparency:D.allowTransparency,colors:L}},A.configEquals=function(P,E){for(var D=0;D<P.colors.ansi.length;D++)if(P.colors.ansi[D].rgba!==E.colors.ansi[D].rgba)return!1;return P.devicePixelRatio===E.devicePixelRatio&&P.fontFamily===E.fontFamily&&P.fontSize===E.fontSize&&P.fontWeight===E.fontWeight&&P.fontWeightBold===E.fontWeightBold&&P.allowTransparency===E.allowTransparency&&P.scaledCharWidth===E.scaledCharWidth&&P.scaledCharHeight===E.scaledCharHeight&&P.colors.foreground===E.colors.foreground&&P.colors.background===E.colors.background},A.is256Color=function(P){return P<R.DEFAULT_COLOR}},8803:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.CHAR_ATLAS_CELL_SPACING=A.TEXT_BASELINE=A.DIM_OPACITY=A.INVERTED_DEFAULT_COLOR=void 0;var R=U(6114);A.INVERTED_DEFAULT_COLOR=257,A.DIM_OPACITY=.5,A.TEXT_BASELINE=R.isFirefox||R.isLegacyEdge?"bottom":"ideographic",A.CHAR_ATLAS_CELL_SPACING=1},1906:function(W,A,U){var R,P=this&&this.__extends||(R=function(X,$){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var ne in Q)Object.prototype.hasOwnProperty.call(Q,ne)&&(Y[ne]=Q[ne])})(X,$)},function(F,X){if("function"!=typeof X&&null!==X)throw new TypeError("Class extends value "+String(X)+" is not a constructor or null");function $(){this.constructor=F}R(F,X),F.prototype=null===X?Object.create(X):($.prototype=X.prototype,new $)});Object.defineProperty(A,"__esModule",{value:!0}),A.NoneCharAtlas=A.DynamicCharAtlas=A.getGlyphCacheKey=void 0;var E=U(8803),D=U(9616),j=U(5680),L=U(7001),v=U(6114),k=U(1752),b=U(8055),O=1024,S=1024,y={css:"rgba(0, 0, 0, 0)",rgba:0};function T(F){return F.code<<21|F.bg<<12|F.fg<<3|(F.bold?0:4)+(F.dim?0:2)+(F.italic?0:1)}A.getGlyphCacheKey=T;var M=function(F){function X($,Y){var Q=F.call(this)||this;Q._config=Y,Q._drawToCacheCount=0,Q._glyphsWaitingOnBitmap=[],Q._bitmapCommitTimeout=null,Q._bitmap=null,Q._cacheCanvas=$.createElement("canvas"),Q._cacheCanvas.width=O,Q._cacheCanvas.height=S,Q._cacheCtx=(0,k.throwIfFalsy)(Q._cacheCanvas.getContext("2d",{alpha:!0}));var ne=$.createElement("canvas");ne.width=Q._config.scaledCharWidth,ne.height=Q._config.scaledCharHeight,Q._tmpCtx=(0,k.throwIfFalsy)(ne.getContext("2d",{alpha:Q._config.allowTransparency})),Q._width=Math.floor(O/Q._config.scaledCharWidth),Q._height=Math.floor(S/Q._config.scaledCharHeight);var be=Q._width*Q._height;return Q._cacheMap=new L.LRUMap(be),Q._cacheMap.prealloc(be),Q}return P(X,F),X.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},X.prototype.beginFrame=function(){this._drawToCacheCount=0},X.prototype.clear=function(){if(this._cacheMap.size>0){var $=this._width*this._height;this._cacheMap=new L.LRUMap($),this._cacheMap.prealloc($)}this._cacheCtx.clearRect(0,0,O,S),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},X.prototype.draw=function($,Y,Q,ne){if(32===Y.code)return!0;if(!this._canCache(Y))return!1;var be=T(Y),pe=this._cacheMap.get(be);if(null!=pe)return this._drawFromCache($,pe,Q,ne),!0;if(this._drawToCacheCount<100){var de;de=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var le=this._drawToCache(Y,de);return this._cacheMap.set(be,le),this._drawFromCache($,le,Q,ne),!0}return!1},X.prototype._canCache=function($){return $.code<256},X.prototype._toCoordinateX=function($){return $%this._width*this._config.scaledCharWidth},X.prototype._toCoordinateY=function($){return Math.floor($/this._width)*this._config.scaledCharHeight},X.prototype._drawFromCache=function($,Y,Q,ne){if(!Y.isEmpty){var be=this._toCoordinateX(Y.index),pe=this._toCoordinateY(Y.index);$.drawImage(Y.inBitmap?this._bitmap:this._cacheCanvas,be,pe,this._config.scaledCharWidth,this._config.scaledCharHeight,Q,ne,this._config.scaledCharWidth,this._config.scaledCharHeight)}},X.prototype._getColorFromAnsiIndex=function($){return $<this._config.colors.ansi.length?this._config.colors.ansi[$]:j.DEFAULT_ANSI_COLORS[$]},X.prototype._getBackgroundColor=function($){return this._config.allowTransparency?y:$.bg===E.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:$.bg<256?this._getColorFromAnsiIndex($.bg):this._config.colors.background},X.prototype._getForegroundColor=function($){return $.fg===E.INVERTED_DEFAULT_COLOR?b.color.opaque(this._config.colors.background):$.fg<256?this._getColorFromAnsiIndex($.fg):this._config.colors.foreground},X.prototype._drawToCache=function($,Y){this._drawToCacheCount++,this._tmpCtx.save();var Q=this._getBackgroundColor($);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=Q.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ne=$.bold?this._config.fontWeightBold:this._config.fontWeight,be=$.italic?"italic":"";this._tmpCtx.font=be+" "+ne+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=E.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor($).css,$.dim&&(this._tmpCtx.globalAlpha=E.DIM_OPACITY),this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight);var pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),de=!1;if(this._config.allowTransparency||(de=N(pe,Q)),de&&"_"===$.chars&&!this._config.allowTransparency)for(var le=1;le<=5&&(this._tmpCtx.fillText($.chars,0,this._config.scaledCharHeight-le),de=N(pe=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),Q));le++);this._tmpCtx.restore();var ce=this._toCoordinateX(Y),me=this._toCoordinateY(Y);this._cacheCtx.putImageData(pe,ce,me);var je={index:Y,isEmpty:de,inBitmap:!1};return this._addGlyphToBitmap(je),je},X.prototype._addGlyphToBitmap=function($){var Y=this;!("createImageBitmap"in window)||v.isFirefox||v.isSafari||(this._glyphsWaitingOnBitmap.push($),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return Y._generateBitmap()},100)))},X.prototype._generateBitmap=function(){var $=this,Y=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(Q){$._bitmap=Q;for(var ne=0;ne<Y.length;ne++)Y[ne].inBitmap=!0}),this._bitmapCommitTimeout=null},X}(D.BaseCharAtlas);A.DynamicCharAtlas=M;var x=function(F){function X($,Y){return F.call(this)||this}return P(X,F),X.prototype.draw=function($,Y,Q,ne){return!1},X}(D.BaseCharAtlas);function N(F,X){for(var $=!0,Y=X.rgba>>>24,Q=X.rgba>>>16&255,ne=X.rgba>>>8&255,be=0;be<F.data.length;be+=4)F.data[be]===Y&&F.data[be+1]===Q&&F.data[be+2]===ne?F.data[be+3]=0:$=!1;return $}A.NoneCharAtlas=x},7001:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.LRUMap=void 0;var U=function(){function R(P){this.capacity=P,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return R.prototype._unlinkNode=function(P){var E=P.prev,D=P.next;P===this._head&&(this._head=D),P===this._tail&&(this._tail=E),null!==E&&(E.next=D),null!==D&&(D.prev=E)},R.prototype._appendNode=function(P){var E=this._tail;null!==E&&(E.next=P),P.prev=E,P.next=null,this._tail=P,null===this._head&&(this._head=P)},R.prototype.prealloc=function(P){for(var E=this._nodePool,D=0;D<P;D++)E.push({prev:null,next:null,key:null,value:null})},R.prototype.get=function(P){var E=this._map[P];return void 0!==E?(this._unlinkNode(E),this._appendNode(E),E.value):null},R.prototype.peekValue=function(P){var E=this._map[P];return void 0!==E?E.value:null},R.prototype.peek=function(){var P=this._head;return null===P?null:P.value},R.prototype.set=function(P,E){var D=this._map[P];if(void 0!==D)D=this._map[P],this._unlinkNode(D),D.value=E;else if(this.size>=this.capacity)D=this._head,this._unlinkNode(D),delete this._map[D.key],D.key=P,D.value=E,this._map[P]=D;else{var j=this._nodePool;j.length>0?((D=j.pop()).key=P,D.value=E):D={prev:null,next:null,key:P,value:E},this._map[P]=D,this.size++}this._appendNode(D)},R}();A.LRUMap=U},1296:function(W,A,U){var R,P=this&&this.__extends||(R=function(Q,ne){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(be,pe){be.__proto__=pe}||function(be,pe){for(var de in pe)Object.prototype.hasOwnProperty.call(pe,de)&&(be[de]=pe[de])})(Q,ne)},function(Y,Q){if("function"!=typeof Q&&null!==Q)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");function ne(){this.constructor=Y}R(Y,Q),Y.prototype=null===Q?Object.create(Q):(ne.prototype=Q.prototype,new ne)}),E=this&&this.__decorate||function(Y,Q,ne,be){var pe,de=arguments.length,le=de<3?Q:null===be?be=Object.getOwnPropertyDescriptor(Q,ne):be;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(Y,Q,ne,be);else for(var ce=Y.length-1;ce>=0;ce--)(pe=Y[ce])&&(le=(de<3?pe(le):de>3?pe(Q,ne,le):pe(Q,ne))||le);return de>3&&le&&Object.defineProperty(Q,ne,le),le},D=this&&this.__param||function(Y,Q){return function(ne,be){Q(ne,be,Y)}},j=this&&this.__values||function(Y){var Q="function"==typeof Symbol&&Symbol.iterator,ne=Q&&Y[Q],be=0;if(ne)return ne.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&be>=Y.length&&(Y=void 0),{value:Y&&Y[be++],done:!Y}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRenderer=void 0;var L=U(3787),v=U(8803),k=U(844),b=U(4725),O=U(2585),S=U(8460),y=U(8055),T=U(9631),M="xterm-dom-renderer-owner-",x="xterm-fg-",N="xterm-bg-",F="xterm-focus",X=1,$=function(Y){function Q(ne,be,pe,de,le,ce,me,je,at,Mt){var Tt=Y.call(this)||this;return Tt._colors=ne,Tt._element=be,Tt._screenElement=pe,Tt._viewportElement=de,Tt._linkifier=le,Tt._linkifier2=ce,Tt._charSizeService=je,Tt._optionsService=at,Tt._bufferService=Mt,Tt._terminalClass=X++,Tt._rowElements=[],Tt._rowContainer=document.createElement("div"),Tt._rowContainer.classList.add("xterm-rows"),Tt._rowContainer.style.lineHeight="normal",Tt._rowContainer.setAttribute("aria-hidden","true"),Tt._refreshRowElements(Tt._bufferService.cols,Tt._bufferService.rows),Tt._selectionContainer=document.createElement("div"),Tt._selectionContainer.classList.add("xterm-selection"),Tt._selectionContainer.setAttribute("aria-hidden","true"),Tt.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Tt._updateDimensions(),Tt._injectCss(),Tt._rowFactory=me.createInstance(L.DomRendererRowFactory,document,Tt._colors),Tt._element.classList.add(M+Tt._terminalClass),Tt._screenElement.appendChild(Tt._rowContainer),Tt._screenElement.appendChild(Tt._selectionContainer),Tt.register(Tt._linkifier.onShowLinkUnderline(function(xt){return Tt._onLinkHover(xt)})),Tt.register(Tt._linkifier.onHideLinkUnderline(function(xt){return Tt._onLinkLeave(xt)})),Tt.register(Tt._linkifier2.onShowLinkUnderline(function(xt){return Tt._onLinkHover(xt)})),Tt.register(Tt._linkifier2.onHideLinkUnderline(function(xt){return Tt._onLinkLeave(xt)})),Tt}return P(Q,Y),Object.defineProperty(Q.prototype,"onRequestRedraw",{get:function(){return(new S.EventEmitter).event},enumerable:!1,configurable:!0}),Q.prototype.dispose=function(){this._element.classList.remove(M+this._terminalClass),(0,T.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),Y.prototype.dispose.call(this)},Q.prototype._updateDimensions=function(){var ne,be;this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;try{for(var pe=j(this._rowElements),de=pe.next();!de.done;de=pe.next()){var le=de.value;le.style.width=this.dimensions.canvasWidth+"px",le.style.height=this.dimensions.actualCellHeight+"px",le.style.lineHeight=this.dimensions.actualCellHeight+"px",le.style.overflow="hidden"}}catch(me){ne={error:me}}finally{try{de&&!de.done&&(be=pe.return)&&be.call(pe)}finally{if(ne)throw ne.error}}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var ce=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=ce,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},Q.prototype.setColors=function(ne){this._colors=ne,this._injectCss()},Q.prototype._injectCss=function(){var ne=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var be=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";be+=this._terminalSelector+" span:not(."+L.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+L.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+L.ITALIC_CLASS+" { font-style: italic;}",be+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",be+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",be+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+":not(."+L.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_BLINK_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+L.CURSOR_CLASS+"."+L.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",be+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionOpaque.css+";}",this._colors.ansi.forEach(function(pe,de){be+=ne._terminalSelector+" ."+x+de+" { color: "+pe.css+"; }"+ne._terminalSelector+" ."+N+de+" { background-color: "+pe.css+"; }"}),be+=this._terminalSelector+" ."+x+v.INVERTED_DEFAULT_COLOR+" { color: "+y.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+N+v.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=be},Q.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},Q.prototype._refreshRowElements=function(ne,be){for(var pe=this._rowElements.length;pe<=be;pe++){var de=document.createElement("div");this._rowContainer.appendChild(de),this._rowElements.push(de)}for(;this._rowElements.length>be;)this._rowContainer.removeChild(this._rowElements.pop())},Q.prototype.onResize=function(ne,be){this._refreshRowElements(ne,be),this._updateDimensions()},Q.prototype.onCharSizeChanged=function(){this._updateDimensions()},Q.prototype.onBlur=function(){this._rowContainer.classList.remove(F)},Q.prototype.onFocus=function(){this._rowContainer.classList.add(F)},Q.prototype.onSelectionChanged=function(ne,be,pe){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.onSelectionChanged(ne,be,pe),this.renderRows(0,this._bufferService.rows-1),ne&&be){var de=ne[1]-this._bufferService.buffer.ydisp,le=be[1]-this._bufferService.buffer.ydisp,ce=Math.max(de,0),me=Math.min(le,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||me<0)){var je=document.createDocumentFragment();if(pe){var at=ne[0]>be[0];je.appendChild(this._createSelectionElement(ce,at?be[0]:ne[0],at?ne[0]:be[0],me-ce+1))}else{var Mt=de===ce?ne[0]:0,Tt=ce===le?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(ce,Mt,Tt));var xt=me-ce-1;if(je.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,xt)),ce!==me){var Lt=le===me?be[0]:this._bufferService.cols;je.appendChild(this._createSelectionElement(me,0,Lt))}}this._selectionContainer.appendChild(je)}}},Q.prototype._createSelectionElement=function(ne,be,pe,de){void 0===de&&(de=1);var le=document.createElement("div");return le.style.height=de*this.dimensions.actualCellHeight+"px",le.style.top=ne*this.dimensions.actualCellHeight+"px",le.style.left=be*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(pe-be)+"px",le},Q.prototype.onCursorMove=function(){},Q.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},Q.prototype.clear=function(){var ne,be;try{for(var pe=j(this._rowElements),de=pe.next();!de.done;de=pe.next())de.value.innerText=""}catch(le){ne={error:le}}finally{try{de&&!de.done&&(be=pe.return)&&be.call(pe)}finally{if(ne)throw ne.error}}},Q.prototype.renderRows=function(ne,be){for(var pe=this._bufferService.buffer.ybase+this._bufferService.buffer.y,de=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),le=this._optionsService.rawOptions.cursorBlink,ce=ne;ce<=be;ce++){var me=this._rowElements[ce];me.innerText="";var je=ce+this._bufferService.buffer.ydisp,at=this._bufferService.buffer.lines.get(je),Mt=this._optionsService.rawOptions.cursorStyle;me.appendChild(this._rowFactory.createRow(at,je,je===pe,Mt,de,le,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(Q.prototype,"_terminalSelector",{get:function(){return"."+M+this._terminalClass},enumerable:!1,configurable:!0}),Q.prototype._onLinkHover=function(ne){this._setCellUnderline(ne.x1,ne.x2,ne.y1,ne.y2,ne.cols,!0)},Q.prototype._onLinkLeave=function(ne){this._setCellUnderline(ne.x1,ne.x2,ne.y1,ne.y2,ne.cols,!1)},Q.prototype._setCellUnderline=function(ne,be,pe,de,le,ce){for(;ne!==be||pe!==de;){var me=this._rowElements[pe];if(!me)return;var je=me.children[ne];je&&(je.style.textDecoration=ce?"underline":"none"),++ne>=le&&(ne=0,pe++)}},E([D(6,O.IInstantiationService),D(7,b.ICharSizeService),D(8,O.IOptionsService),D(9,O.IBufferService)],Q)}(k.Disposable);A.DomRenderer=$},3787:function(W,A,U){var R=this&&this.__decorate||function(M,x,N,F){var X,$=arguments.length,Y=$<3?x:null===F?F=Object.getOwnPropertyDescriptor(x,N):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Y=Reflect.decorate(M,x,N,F);else for(var Q=M.length-1;Q>=0;Q--)(X=M[Q])&&(Y=($<3?X(Y):$>3?X(x,N,Y):X(x,N))||Y);return $>3&&Y&&Object.defineProperty(x,N,Y),Y},P=this&&this.__param||function(M,x){return function(N,F){x(N,F,M)}},E=this&&this.__values||function(M){var x="function"==typeof Symbol&&Symbol.iterator,N=x&&M[x],F=0;if(N)return N.call(M);if(M&&"number"==typeof M.length)return{next:function(){return M&&F>=M.length&&(M=void 0),{value:M&&M[F++],done:!M}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DomRendererRowFactory=A.CURSOR_STYLE_UNDERLINE_CLASS=A.CURSOR_STYLE_BAR_CLASS=A.CURSOR_STYLE_BLOCK_CLASS=A.CURSOR_BLINK_CLASS=A.CURSOR_CLASS=A.STRIKETHROUGH_CLASS=A.UNDERLINE_CLASS=A.ITALIC_CLASS=A.DIM_CLASS=A.BOLD_CLASS=void 0;var D=U(8803),j=U(643),L=U(511),v=U(2585),k=U(8055),b=U(4725),O=U(4269),S=U(1752);A.BOLD_CLASS="xterm-bold",A.DIM_CLASS="xterm-dim",A.ITALIC_CLASS="xterm-italic",A.UNDERLINE_CLASS="xterm-underline",A.STRIKETHROUGH_CLASS="xterm-strikethrough",A.CURSOR_CLASS="xterm-cursor",A.CURSOR_BLINK_CLASS="xterm-cursor-blink",A.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",A.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",A.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var y=function(){function M(x,N,F,X,$,Y){this._document=x,this._colors=N,this._characterJoinerService=F,this._optionsService=X,this._coreService=$,this._decorationService=Y,this._workCell=new L.CellData,this._columnSelectMode=!1}return M.prototype.setColors=function(x){this._colors=x},M.prototype.onSelectionChanged=function(x,N,F){this._selectionStart=x,this._selectionEnd=N,this._columnSelectMode=F},M.prototype.createRow=function(x,N,F,X,$,Y,Q,ne){for(var be,pe,de=this._document.createDocumentFragment(),le=this._characterJoinerService.getJoinedCharacters(N),ce=0,me=Math.min(x.length,ne)-1;me>=0;me--)if(x.loadCell(me,this._workCell).getCode()!==j.NULL_CELL_CODE||F&&me===$){ce=me+1;break}for(me=0;me<ce;me++){x.loadCell(me,this._workCell);var je=this._workCell.getWidth();if(0!==je){var at=!1,Mt=me,Tt=this._workCell;if(le.length>0&&me===le[0][0]){at=!0;var xt=le.shift();Tt=new O.JoinedCellData(this._workCell,x.translateToString(!0,xt[0],xt[1]),xt[1]-xt[0]),Mt=xt[1]-1,je=Tt.getWidth()}var Lt=this._document.createElement("span");if(je>1&&(Lt.style.width=Q*je+"px"),at&&(Lt.style.display="inline",$>=me&&$<=Mt&&($=me)),!this._coreService.isCursorHidden&&F&&me===$)switch(Lt.classList.add(A.CURSOR_CLASS),Y&&Lt.classList.add(A.CURSOR_BLINK_CLASS),X){case"bar":Lt.classList.add(A.CURSOR_STYLE_BAR_CLASS);break;case"underline":Lt.classList.add(A.CURSOR_STYLE_UNDERLINE_CLASS);break;default:Lt.classList.add(A.CURSOR_STYLE_BLOCK_CLASS)}Tt.isBold()&&Lt.classList.add(A.BOLD_CLASS),Tt.isItalic()&&Lt.classList.add(A.ITALIC_CLASS),Tt.isDim()&&Lt.classList.add(A.DIM_CLASS),Tt.isUnderline()&&Lt.classList.add(A.UNDERLINE_CLASS),Tt.isInvisible()?Lt.textContent=j.WHITESPACE_CELL_CHAR:Lt.textContent=Tt.getChars()||j.WHITESPACE_CELL_CHAR,Tt.isStrikethrough()&&Lt.classList.add(A.STRIKETHROUGH_CLASS);var Ze=Tt.getFgColor(),$t=Tt.getFgColorMode(),Ft=Tt.getBgColor(),fn=Tt.getBgColorMode(),nt=!!Tt.isInverse();if(nt){var Ot=Ze;Ze=Ft,Ft=Ot;var _t=$t;$t=fn,fn=_t}var Ct=void 0,We=void 0,lt=!1;try{for(var dt=(be=void 0,E(this._decorationService.getDecorationsAtCell(me,N))),Ut=dt.next();!Ut.done;Ut=dt.next()){var B=Ut.value;"top"!==B.options.layer&<||(B.backgroundColorRGB&&(fn=50331648,Ft=B.backgroundColorRGB.rgba>>8&16777215,Ct=B.backgroundColorRGB),B.foregroundColorRGB&&($t=50331648,Ze=B.foregroundColorRGB.rgba>>8&16777215,We=B.foregroundColorRGB),lt="top"===B.options.layer)}}catch(ge){be={error:ge}}finally{try{Ut&&!Ut.done&&(pe=dt.return)&&pe.call(dt)}finally{if(be)throw be.error}}var H=this._isCellInSelection(me,N);lt||this._colors.selectionForeground&&H&&($t=50331648,Ze=this._colors.selectionForeground.rgba>>8&16777215,We=this._colors.selectionForeground),H&&(Ct=this._colors.selectionOpaque,lt=!0),lt&&Lt.classList.add("xterm-decoration-top");var tt=void 0;switch(fn){case 16777216:case 33554432:tt=this._colors.ansi[Ft],Lt.classList.add("xterm-bg-"+Ft);break;case 50331648:tt=k.rgba.toColor(Ft>>16,Ft>>8&255,255&Ft),this._addStyle(Lt,"background-color:#"+T((Ft>>>0).toString(16),"0",6));break;default:nt?(tt=this._colors.foreground,Lt.classList.add("xterm-bg-"+D.INVERTED_DEFAULT_COLOR)):tt=this._colors.background}switch($t){case 16777216:case 33554432:Tt.isBold()&&Ze<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Ze+=8),this._applyMinimumContrast(Lt,tt,this._colors.ansi[Ze],Tt,Ct,void 0)||Lt.classList.add("xterm-fg-"+Ze);break;case 50331648:var Ye=k.rgba.toColor(Ze>>16&255,Ze>>8&255,255&Ze);this._applyMinimumContrast(Lt,tt,Ye,Tt,Ct,We)||this._addStyle(Lt,"color:#"+T(Ze.toString(16),"0",6));break;default:this._applyMinimumContrast(Lt,tt,this._colors.foreground,Tt,Ct,void 0)||nt&&Lt.classList.add("xterm-fg-"+D.INVERTED_DEFAULT_COLOR)}de.appendChild(Lt),me=Mt}}return de},M.prototype._applyMinimumContrast=function(x,N,F,X,$,Y){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,S.excludeFromContrastRatioDemands)(X.getCode()))return!1;var Q=void 0;return $||Y||(Q=this._colors.contrastCache.getColor(N.rgba,F.rgba)),void 0===Q&&(Q=k.color.ensureContrastRatio($||N,Y||F,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(($||N).rgba,(Y||F).rgba,null!=Q?Q:null)),!!Q&&(this._addStyle(x,"color:"+Q.css),!0)},M.prototype._addStyle=function(x,N){x.setAttribute("style",""+(x.getAttribute("style")||"")+N+";")},M.prototype._isCellInSelection=function(x,N){var F=this._selectionStart,X=this._selectionEnd;return!(!F||!X)&&(this._columnSelectMode?F[0]<=X[0]?x>=F[0]&&N>=F[1]&&x<X[0]&&N<=X[1]:x<F[0]&&N>=F[1]&&x>=X[0]&&N<=X[1]:N>F[1]&&N<X[1]||F[1]===X[1]&&N===F[1]&&x>=F[0]&&x<X[0]||F[1]<X[1]&&N===X[1]&&x<X[0]||F[1]<X[1]&&N===F[1]&&x>=F[0])},R([P(2,b.ICharacterJoinerService),P(3,v.IOptionsService),P(4,v.ICoreService),P(5,v.IDecorationService)],M)}();function T(M,x,N){for(;M.length<N;)M=x+M;return M}A.DomRendererRowFactory=y},456:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionModel=void 0;var U=function(){function R(P){this._bufferService=P,this.isSelectAllActive=!1,this.selectionStartLength=0}return R.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(R.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(R.prototype,"finalSelectionEnd",{get:function(){return this.isSelectAllActive?[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1]:this.selectionStart?!this.selectionEnd||this.areSelectionValuesReversed()?(E=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?E%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)-1]:[E%this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)]:[E,this.selectionStart[1]]:this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?(E=this.selectionStart[0]+this.selectionStartLength)>this._bufferService.cols?[E%this._bufferService.cols,this.selectionStart[1]+Math.floor(E/this._bufferService.cols)]:[Math.max(E,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd:void 0;var E},enumerable:!1,configurable:!0}),R.prototype.areSelectionValuesReversed=function(){var P=this.selectionStart,E=this.selectionEnd;return!(!P||!E)&&(P[1]>E[1]||P[1]===E[1]&&P[0]>E[0])},R.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)},R}();A.SelectionModel=U},428:function(W,A,U){var R=this&&this.__decorate||function(v,k,b,O){var S,y=arguments.length,T=y<3?k:null===O?O=Object.getOwnPropertyDescriptor(k,b):O;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(v,k,b,O);else for(var M=v.length-1;M>=0;M--)(S=v[M])&&(T=(y<3?S(T):y>3?S(k,b,T):S(k,b))||T);return y>3&&T&&Object.defineProperty(k,b,T),T},P=this&&this.__param||function(v,k){return function(b,O){k(b,O,v)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharSizeService=void 0;var E=U(2585),D=U(8460),j=function(){function v(k,b,O){this._optionsService=O,this.width=0,this.height=0,this._onCharSizeChange=new D.EventEmitter,this._measureStrategy=new L(k,b,this._optionsService)}return Object.defineProperty(v.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),v.prototype.measure=function(){var k=this._measureStrategy.measure();k.width===this.width&&k.height===this.height||(this.width=k.width,this.height=k.height,this._onCharSizeChange.fire())},R([P(2,E.IOptionsService)],v)}();A.CharSizeService=j;var L=function(){function v(k,b,O){this._document=k,this._parentElement=b,this._optionsService=O,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return v.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var k=this._measureElement.getBoundingClientRect();return 0!==k.width&&0!==k.height&&(this._result.width=k.width,this._result.height=Math.ceil(k.height)),this._result},v}()},4269:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(F=(N<3?x(F):N>3?x(y,T,F):x(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},D=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CharacterJoinerService=A.JoinedCellData=void 0;var j=U(3734),L=U(643),v=U(511),k=U(2585),b=function(S){function y(T,M,x){var N=S.call(this)||this;return N.content=0,N.combinedData="",N.fg=T.fg,N.bg=T.bg,N.combinedData=M,N._width=x,N}return P(y,S),y.prototype.isCombined=function(){return 2097152},y.prototype.getWidth=function(){return this._width},y.prototype.getChars=function(){return this.combinedData},y.prototype.getCode=function(){return 2097151},y.prototype.setFromCharData=function(T){throw new Error("not implemented")},y.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},y}(j.AttributeData);A.JoinedCellData=b;var O=function(){function S(y){this._bufferService=y,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new v.CellData}return S.prototype.register=function(y){var T={id:this._nextCharacterJoinerId++,handler:y};return this._characterJoiners.push(T),T.id},S.prototype.deregister=function(y){for(var T=0;T<this._characterJoiners.length;T++)if(this._characterJoiners[T].id===y)return this._characterJoiners.splice(T,1),!0;return!1},S.prototype.getJoinedCharacters=function(y){if(0===this._characterJoiners.length)return[];var T=this._bufferService.buffer.lines.get(y);if(!T||0===T.length)return[];for(var M=[],x=T.translateToString(!0),N=0,F=0,X=0,$=T.getFg(0),Y=T.getBg(0),Q=0;Q<T.getTrimmedLength();Q++)if(T.loadCell(Q,this._workCell),0!==this._workCell.getWidth()){if(this._workCell.fg!==$||this._workCell.bg!==Y){if(Q-N>1)for(var ne=this._getJoinedRanges(x,X,F,T,N),be=0;be<ne.length;be++)M.push(ne[be]);N=Q,X=F,$=this._workCell.fg,Y=this._workCell.bg}F+=this._workCell.getChars().length||L.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-N>1)for(ne=this._getJoinedRanges(x,X,F,T,N),be=0;be<ne.length;be++)M.push(ne[be]);return M},S.prototype._getJoinedRanges=function(y,T,M,x,N){var F=y.substring(T,M),X=[];try{X=this._characterJoiners[0].handler(F)}catch(ne){console.error(ne)}for(var $=1;$<this._characterJoiners.length;$++)try{for(var Y=this._characterJoiners[$].handler(F),Q=0;Q<Y.length;Q++)S._mergeRanges(X,Y[Q])}catch(ne){console.error(ne)}return this._stringRangesToCellRanges(X,x,N),X},S.prototype._stringRangesToCellRanges=function(y,T,M){var x=0,N=!1,F=0,X=y[x];if(X){for(var $=M;$<this._bufferService.cols;$++){var Y=T.getWidth($),Q=T.getString($).length||L.WHITESPACE_CELL_CHAR.length;if(0!==Y){if(!N&&X[0]<=F&&(X[0]=$,N=!0),X[1]<=F){if(X[1]=$,!(X=y[++x]))break;X[0]<=F?(X[0]=$,N=!0):N=!1}F+=Q}}X&&(X[1]=this._bufferService.cols)}},S._mergeRanges=function(y,T){for(var M=!1,x=0;x<y.length;x++){var N=y[x];if(M){if(T[1]<=N[0])return y[x-1][1]=T[1],y;if(T[1]<=N[1])return y[x-1][1]=Math.max(T[1],N[1]),y.splice(x,1),y;y.splice(x,1),x--}else{if(T[1]<=N[0])return y.splice(x,0,T),y;if(T[1]<=N[1])return N[0]=Math.min(T[0],N[0]),y;T[0]<N[1]&&(N[0]=Math.min(T[0],N[0]),M=!0)}}return M?y[y.length-1][1]=T[1]:y.push(T),y},S=E([D(0,k.IBufferService)],S)}();A.CharacterJoinerService=O},5114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CoreBrowserService=void 0;var U=function(){function R(P){this._textarea=P}return Object.defineProperty(R.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),R}();A.CoreBrowserService=U},8934:function(W,A,U){var R=this&&this.__decorate||function(L,v,k,b){var O,S=arguments.length,y=S<3?v:null===b?b=Object.getOwnPropertyDescriptor(v,k):b;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)y=Reflect.decorate(L,v,k,b);else for(var T=L.length-1;T>=0;T--)(O=L[T])&&(y=(S<3?O(y):S>3?O(v,k,y):O(v,k))||y);return S>3&&y&&Object.defineProperty(v,k,y),y},P=this&&this.__param||function(L,v){return function(k,b){v(k,b,L)}};Object.defineProperty(A,"__esModule",{value:!0}),A.MouseService=void 0;var E=U(4725),D=U(9806),j=function(){function L(v,k){this._renderService=v,this._charSizeService=k}return L.prototype.getCoords=function(v,k,b,O,S){return(0,D.getCoords)(window,v,k,b,O,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,S)},L.prototype.getRawByteCoords=function(v,k,b,O){var S=this.getCoords(v,k,b,O);return(0,D.getRawByteCoords)(S)},R([P(0,E.IRenderService),P(1,E.ICharSizeService)],L)}();A.MouseService=j},3230:function(W,A,U){var R,P=this&&this.__extends||(R=function(M,x){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,F){N.__proto__=F}||function(N,F){for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&(N[X]=F[X])})(M,x)},function(T,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function x(){this.constructor=T}R(T,M),T.prototype=null===M?Object.create(M):(x.prototype=M.prototype,new x)}),E=this&&this.__decorate||function(T,M,x,N){var F,X=arguments.length,$=X<3?M:null===N?N=Object.getOwnPropertyDescriptor(M,x):N;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(T,M,x,N);else for(var Y=T.length-1;Y>=0;Y--)(F=T[Y])&&($=(X<3?F($):X>3?F(M,x,$):F(M,x))||$);return X>3&&$&&Object.defineProperty(M,x,$),$},D=this&&this.__param||function(T,M){return function(x,N){M(x,N,T)}};Object.defineProperty(A,"__esModule",{value:!0}),A.RenderService=void 0;var j=U(6193),L=U(8460),v=U(844),k=U(5596),b=U(3656),O=U(2585),S=U(4725),y=function(T){function M(x,N,F,X,$,Y,Q){var ne=T.call(this)||this;if(ne._renderer=x,ne._rowCount=N,ne._charSizeService=$,ne._isPaused=!1,ne._needsFullRefresh=!1,ne._isNextRenderRedrawOnly=!0,ne._needsSelectionRefresh=!1,ne._canvasWidth=0,ne._canvasHeight=0,ne._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ne._onDimensionsChange=new L.EventEmitter,ne._onRenderedViewportChange=new L.EventEmitter,ne._onRender=new L.EventEmitter,ne._onRefreshRequest=new L.EventEmitter,ne.register({dispose:function(){return ne._renderer.dispose()}}),ne._renderDebouncer=new j.RenderDebouncer(function(pe,de){return ne._renderRows(pe,de)}),ne.register(ne._renderDebouncer),ne._screenDprMonitor=new k.ScreenDprMonitor,ne._screenDprMonitor.setListener(function(){return ne.onDevicePixelRatioChange()}),ne.register(ne._screenDprMonitor),ne.register(Q.onResize(function(){return ne._fullRefresh()})),ne.register(Q.buffers.onBufferActivate(function(){var pe;return null===(pe=ne._renderer)||void 0===pe?void 0:pe.clear()})),ne.register(X.onOptionChange(function(){return ne._handleOptionsChanged()})),ne.register(ne._charSizeService.onCharSizeChange(function(){return ne.onCharSizeChanged()})),ne.register(Y.onDecorationRegistered(function(){return ne._fullRefresh()})),ne.register(Y.onDecorationRemoved(function(){return ne._fullRefresh()})),ne._renderer.onRequestRedraw(function(pe){return ne.refreshRows(pe.start,pe.end,!0)}),ne.register((0,b.addDisposableDomListener)(window,"resize",function(){return ne.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var be=new IntersectionObserver(function(pe){return ne._onIntersectionChange(pe[pe.length-1])},{threshold:0});be.observe(F),ne.register({dispose:function(){return be.disconnect()}})}return ne}return P(M,T),Object.defineProperty(M.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRenderedViewportChange",{get:function(){return this._onRenderedViewportChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),M.prototype._onIntersectionChange=function(x){this._isPaused=void 0===x.isIntersecting?0===x.intersectionRatio:!x.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},M.prototype.refreshRows=function(x,N,F){void 0===F&&(F=!1),this._isPaused?this._needsFullRefresh=!0:(F||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(x,N,this._rowCount))},M.prototype._renderRows=function(x,N){this._renderer.renderRows(x,N),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:x,end:N}),this._onRender.fire({start:x,end:N}),this._isNextRenderRedrawOnly=!0},M.prototype.resize=function(x,N){this._rowCount=N,this._fireOnCanvasResize()},M.prototype._handleOptionsChanged=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},M.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},M.prototype.dispose=function(){T.prototype.dispose.call(this)},M.prototype.setRenderer=function(x){var N=this;this._renderer.dispose(),this._renderer=x,this._renderer.onRequestRedraw(function(F){return N.refreshRows(F.start,F.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},M.prototype.addRefreshCallback=function(x){return this._renderDebouncer.addRefreshCallback(x)},M.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},M.prototype.clearTextureAtlas=function(){var x,N;null===(N=null===(x=this._renderer)||void 0===x?void 0:x.clearTextureAtlas)||void 0===N||N.call(x),this._fullRefresh()},M.prototype.setColors=function(x){this._renderer.setColors(x),this._fullRefresh()},M.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},M.prototype.onResize=function(x,N){this._renderer.onResize(x,N),this._fullRefresh()},M.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},M.prototype.onBlur=function(){this._renderer.onBlur()},M.prototype.onFocus=function(){this._renderer.onFocus()},M.prototype.onSelectionChanged=function(x,N,F){this._selectionState.start=x,this._selectionState.end=N,this._selectionState.columnSelectMode=F,this._renderer.onSelectionChanged(x,N,F)},M.prototype.onCursorMove=function(){this._renderer.onCursorMove()},M.prototype.clear=function(){this._renderer.clear()},E([D(3,O.IOptionsService),D(4,S.ICharSizeService),D(5,O.IDecorationService),D(6,O.IBufferService)],M)}(v.Disposable);A.RenderService=y},9312:function(W,A,U){var R,P=this&&this.__extends||(R=function($,Y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,ne){Q.__proto__=ne}||function(Q,ne){for(var be in ne)Object.prototype.hasOwnProperty.call(ne,be)&&(Q[be]=ne[be])})($,Y)},function(X,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function Y(){this.constructor=X}R(X,$),X.prototype=null===$?Object.create($):(Y.prototype=$.prototype,new Y)}),E=this&&this.__decorate||function(X,$,Y,Q){var ne,be=arguments.length,pe=be<3?$:null===Q?Q=Object.getOwnPropertyDescriptor($,Y):Q;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)pe=Reflect.decorate(X,$,Y,Q);else for(var de=X.length-1;de>=0;de--)(ne=X[de])&&(pe=(be<3?ne(pe):be>3?ne($,Y,pe):ne($,Y))||pe);return be>3&&pe&&Object.defineProperty($,Y,pe),pe},D=this&&this.__param||function(X,$){return function(Y,Q){$(Y,Q,X)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SelectionService=void 0;var j=U(6114),L=U(456),v=U(511),k=U(8460),b=U(4725),O=U(2585),S=U(9806),y=U(9504),T=U(844),M=U(4841),x=String.fromCharCode(160),N=new RegExp(x,"g"),F=function(X){function $(Y,Q,ne,be,pe,de,le,ce){var me=X.call(this)||this;return me._element=Y,me._screenElement=Q,me._linkifier=ne,me._bufferService=be,me._coreService=pe,me._mouseService=de,me._optionsService=le,me._renderService=ce,me._dragScrollAmount=0,me._enabled=!0,me._workCell=new v.CellData,me._mouseDownTimeStamp=0,me._oldHasSelection=!1,me._oldSelectionStart=void 0,me._oldSelectionEnd=void 0,me._onLinuxMouseSelection=me.register(new k.EventEmitter),me._onRedrawRequest=me.register(new k.EventEmitter),me._onSelectionChange=me.register(new k.EventEmitter),me._onRequestScrollLines=me.register(new k.EventEmitter),me._mouseMoveListener=function(je){return me._onMouseMove(je)},me._mouseUpListener=function(je){return me._onMouseUp(je)},me._coreService.onUserInput(function(){me.hasSelection&&me.clearSelection()}),me._trimListener=me._bufferService.buffer.lines.onTrim(function(je){return me._onTrim(je)}),me.register(me._bufferService.buffers.onBufferActivate(function(je){return me._onBufferActivate(je)})),me.enable(),me._model=new L.SelectionModel(me._bufferService),me._activeSelectionMode=0,me}return P($,X),Object.defineProperty($.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),$.prototype.dispose=function(){this._removeMouseDownListeners()},$.prototype.reset=function(){this.clearSelection()},$.prototype.disable=function(){this.clearSelection(),this._enabled=!1},$.prototype.enable=function(){this._enabled=!0},Object.defineProperty($.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"hasSelection",{get:function(){var Q=this._model.finalSelectionStart,ne=this._model.finalSelectionEnd;return!(!Q||!ne||Q[0]===ne[0]&&Q[1]===ne[1])},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"selectionText",{get:function(){var Q=this._model.finalSelectionStart,ne=this._model.finalSelectionEnd;if(!Q||!ne)return"";var be=this._bufferService.buffer,pe=[];if(3===this._activeSelectionMode){if(Q[0]===ne[0])return"";for(var de=Q[0]<ne[0]?Q[0]:ne[0],le=Q[0]<ne[0]?ne[0]:Q[0],ce=Q[1];ce<=ne[1];ce++){var me=be.translateBufferLineToString(ce,!0,de,le);pe.push(me)}}else{var je=Q[1]===ne[1]?ne[0]:void 0;for(pe.push(be.translateBufferLineToString(Q[1],!0,Q[0],je)),ce=Q[1]+1;ce<=ne[1]-1;ce++){var at=be.lines.get(ce);me=be.translateBufferLineToString(ce,!0),null!=at&&at.isWrapped?pe[pe.length-1]+=me:pe.push(me)}Q[1]!==ne[1]&&(at=be.lines.get(ne[1]),me=be.translateBufferLineToString(ne[1],!0,0,ne[0]),at&&at.isWrapped?pe[pe.length-1]+=me:pe.push(me))}return pe.map(function(Mt){return Mt.replace(N," ")}).join(j.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),$.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},$.prototype.refresh=function(Y){var Q=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return Q._refresh()})),j.isLinux&&Y&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},$.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},$.prototype._isClickInSelection=function(Y){var Q=this._getMouseBufferCoords(Y),ne=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!!(ne&&be&&Q)&&this._areCoordsInSelection(Q,ne,be)},$.prototype.isCellInSelection=function(Y,Q){var ne=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!(!ne||!be)&&this._areCoordsInSelection([Y,Q],ne,be)},$.prototype._areCoordsInSelection=function(Y,Q,ne){return Y[1]>Q[1]&&Y[1]<ne[1]||Q[1]===ne[1]&&Y[1]===Q[1]&&Y[0]>=Q[0]&&Y[0]<ne[0]||Q[1]<ne[1]&&Y[1]===ne[1]&&Y[0]<ne[0]||Q[1]<ne[1]&&Y[1]===Q[1]&&Y[0]>=Q[0]},$.prototype._selectWordAtCursor=function(Y,Q){var ne,be,pe=null===(be=null===(ne=this._linkifier.currentLink)||void 0===ne?void 0:ne.link)||void 0===be?void 0:be.range;if(pe)return this._model.selectionStart=[pe.start.x-1,pe.start.y-1],this._model.selectionStartLength=(0,M.getRangeLength)(pe,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var de=this._getMouseBufferCoords(Y);return!!de&&(this._selectWordAt(de,Q),this._model.selectionEnd=void 0,!0)},$.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},$.prototype.selectLines=function(Y,Q){this._model.clearSelection(),Y=Math.max(Y,0),Q=Math.min(Q,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,Y],this._model.selectionEnd=[this._bufferService.cols,Q],this.refresh(),this._onSelectionChange.fire()},$.prototype._onTrim=function(Y){this._model.onTrim(Y)&&this.refresh()},$.prototype._getMouseBufferCoords=function(Y){var Q=this._mouseService.getCoords(Y,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(Q)return Q[0]--,Q[1]--,Q[1]+=this._bufferService.buffer.ydisp,Q},$.prototype._getMouseEventScrollAmount=function(Y){var Q=(0,S.getCoordsRelativeToElement)(window,Y,this._screenElement)[1],ne=this._renderService.dimensions.canvasHeight;return Q>=0&&Q<=ne?0:(Q>ne&&(Q-=ne),Q=Math.min(Math.max(Q,-50),50),(Q/=50)/Math.abs(Q)+Math.round(14*Q))},$.prototype.shouldForceSelection=function(Y){return j.isMac?Y.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:Y.shiftKey},$.prototype.onMouseDown=function(Y){if(this._mouseDownTimeStamp=Y.timeStamp,(2!==Y.button||!this.hasSelection)&&0===Y.button){if(!this._enabled){if(!this.shouldForceSelection(Y))return;Y.stopPropagation()}Y.preventDefault(),this._dragScrollAmount=0,this._enabled&&Y.shiftKey?this._onIncrementalClick(Y):1===Y.detail?this._onSingleClick(Y):2===Y.detail?this._onDoubleClick(Y):3===Y.detail&&this._onTripleClick(Y),this._addMouseDownListeners(),this.refresh(!0)}},$.prototype._addMouseDownListeners=function(){var Y=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return Y._dragScroll()},50)},$.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},$.prototype._onIncrementalClick=function(Y){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(Y))},$.prototype._onSingleClick=function(Y){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(Y)?3:0,this._model.selectionStart=this._getMouseBufferCoords(Y),this._model.selectionStart){this._model.selectionEnd=void 0;var Q=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);Q&&Q.length!==this._model.selectionStart[0]&&0===Q.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},$.prototype._onDoubleClick=function(Y){this._selectWordAtCursor(Y,!0)&&(this._activeSelectionMode=1)},$.prototype._onTripleClick=function(Y){var Q=this._getMouseBufferCoords(Y);Q&&(this._activeSelectionMode=2,this._selectLineAt(Q[1]))},$.prototype.shouldColumnSelect=function(Y){return Y.altKey&&!(j.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},$.prototype._onMouseMove=function(Y){if(Y.stopImmediatePropagation(),this._model.selectionStart){var Q=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(Y),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(Y),3!==this._activeSelectionMode&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ne=this._bufferService.buffer;if(this._model.selectionEnd[1]<ne.lines.length){var be=ne.lines.get(this._model.selectionEnd[1]);be&&0===be.hasWidth(this._model.selectionEnd[0])&&this._model.selectionEnd[0]++}Q&&Q[0]===this._model.selectionEnd[0]&&Q[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},$.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var Y=this._bufferService.buffer;this._dragScrollAmount>0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(Y.ydisp+this._bufferService.rows,Y.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=Y.ydisp),this.refresh()}},$.prototype._onMouseUp=function(Y){var Q=Y.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&Q<500&&Y.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ne=this._mouseService.getCoords(Y,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ne&&void 0!==ne[0]&&void 0!==ne[1]){var be=(0,y.moveToCellSequence)(ne[0]-1,ne[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(be,!0)}}}else this._fireEventIfSelectionChanged()},$.prototype._fireEventIfSelectionChanged=function(){var Y=this._model.finalSelectionStart,Q=this._model.finalSelectionEnd,ne=!(!Y||!Q||Y[0]===Q[0]&&Y[1]===Q[1]);ne?Y&&Q&&(this._oldSelectionStart&&this._oldSelectionEnd&&Y[0]===this._oldSelectionStart[0]&&Y[1]===this._oldSelectionStart[1]&&Q[0]===this._oldSelectionEnd[0]&&Q[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(Y,Q,ne)):this._oldHasSelection&&this._fireOnSelectionChange(Y,Q,ne)},$.prototype._fireOnSelectionChange=function(Y,Q,ne){this._oldSelectionStart=Y,this._oldSelectionEnd=Q,this._oldHasSelection=ne,this._onSelectionChange.fire()},$.prototype._onBufferActivate=function(Y){var Q=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=Y.activeBuffer.lines.onTrim(function(ne){return Q._onTrim(ne)})},$.prototype._convertViewportColToCharacterIndex=function(Y,Q){for(var ne=Q[0],be=0;Q[0]>=be;be++){var pe=Y.loadCell(be,this._workCell).getChars().length;0===this._workCell.getWidth()?ne--:pe>1&&Q[0]!==be&&(ne+=pe-1)}return ne},$.prototype.setSelection=function(Y,Q,ne){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[Y,Q],this._model.selectionStartLength=ne,this.refresh(),this._fireEventIfSelectionChanged()},$.prototype.rightClickSelect=function(Y){this._isClickInSelection(Y)||(this._selectWordAtCursor(Y,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},$.prototype._getWordAt=function(Y,Q,ne,be){if(void 0===ne&&(ne=!0),void 0===be&&(be=!0),!(Y[0]>=this._bufferService.cols)){var pe=this._bufferService.buffer,de=pe.lines.get(Y[1]);if(de){var le=pe.translateBufferLineToString(Y[1],!1),ce=this._convertViewportColToCharacterIndex(de,Y),me=ce,je=Y[0]-ce,at=0,Mt=0,Tt=0,xt=0;if(" "===le.charAt(ce)){for(;ce>0&&" "===le.charAt(ce-1);)ce--;for(;me<le.length&&" "===le.charAt(me+1);)me++}else{var Lt=Y[0],Ze=Y[0];0===de.getWidth(Lt)&&(at++,Lt--),2===de.getWidth(Ze)&&(Mt++,Ze++);var $t=de.getString(Ze).length;for($t>1&&(xt+=$t-1,me+=$t-1);Lt>0&&ce>0&&!this._isCharWordSeparator(de.loadCell(Lt-1,this._workCell));){de.loadCell(Lt-1,this._workCell);var Ft=this._workCell.getChars().length;0===this._workCell.getWidth()?(at++,Lt--):Ft>1&&(Tt+=Ft-1,ce-=Ft-1),ce--,Lt--}for(;Ze<de.length&&me+1<le.length&&!this._isCharWordSeparator(de.loadCell(Ze+1,this._workCell));){de.loadCell(Ze+1,this._workCell);var fn=this._workCell.getChars().length;2===this._workCell.getWidth()?(Mt++,Ze++):fn>1&&(xt+=fn-1,me+=fn-1),me++,Ze++}}me++;var nt=ce+je-at+Tt,Ot=Math.min(this._bufferService.cols,me-ce+at+Mt-Tt-xt);if(Q||""!==le.slice(ce,me).trim()){if(ne&&0===nt&&32!==de.getCodePoint(0)){var _t=pe.lines.get(Y[1]-1);if(_t&&de.isWrapped&&32!==_t.getCodePoint(this._bufferService.cols-1)){var Ct=this._getWordAt([this._bufferService.cols-1,Y[1]-1],!1,!0,!1);if(Ct){var We=this._bufferService.cols-Ct.start;nt-=We,Ot+=We}}}if(be&&nt+Ot===this._bufferService.cols&&32!==de.getCodePoint(this._bufferService.cols-1)){var lt=pe.lines.get(Y[1]+1);if((null==lt?void 0:lt.isWrapped)&&32!==lt.getCodePoint(0)){var dt=this._getWordAt([0,Y[1]+1],!1,!1,!0);dt&&(Ot+=dt.length)}}return{start:nt,length:Ot}}}}},$.prototype._selectWordAt=function(Y,Q){var ne=this._getWordAt(Y,Q);if(ne){for(;ne.start<0;)ne.start+=this._bufferService.cols,Y[1]--;this._model.selectionStart=[ne.start,Y[1]],this._model.selectionStartLength=ne.length}},$.prototype._selectToWordAt=function(Y){var Q=this._getWordAt(Y,!0);if(Q){for(var ne=Y[1];Q.start<0;)Q.start+=this._bufferService.cols,ne--;if(!this._model.areSelectionValuesReversed())for(;Q.start+Q.length>this._bufferService.cols;)Q.length-=this._bufferService.cols,ne++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?Q.start:Q.start+Q.length,ne]}},$.prototype._isCharWordSeparator=function(Y){return 0!==Y.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(Y.getChars())>=0},$.prototype._selectLineAt=function(Y){var Q=this._bufferService.buffer.getWrappedRangeForLine(Y),ne={start:{x:0,y:Q.first},end:{x:this._bufferService.cols-1,y:Q.last}};this._model.selectionStart=[0,Q.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,M.getRangeLength)(ne,this._bufferService.cols)},E([D(3,O.IBufferService),D(4,O.ICoreService),D(5,b.IMouseService),D(6,O.IOptionsService),D(7,b.IRenderService)],$)}(T.Disposable);A.SelectionService=F},4725:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.ICharacterJoinerService=A.ISoundService=A.ISelectionService=A.IRenderService=A.IMouseService=A.ICoreBrowserService=A.ICharSizeService=void 0;var R=U(8343);A.ICharSizeService=(0,R.createDecorator)("CharSizeService"),A.ICoreBrowserService=(0,R.createDecorator)("CoreBrowserService"),A.IMouseService=(0,R.createDecorator)("MouseService"),A.IRenderService=(0,R.createDecorator)("RenderService"),A.ISelectionService=(0,R.createDecorator)("SelectionService"),A.ISoundService=(0,R.createDecorator)("SoundService"),A.ICharacterJoinerService=(0,R.createDecorator)("CharacterJoinerService")},357:function(W,A,U){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.SoundService=void 0;var E=U(2585),D=function(){function j(L){this._optionsService=L}return Object.defineProperty(j,"audioContext",{get:function(){if(!j._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;j._audioContext=new v}return j._audioContext},enumerable:!1,configurable:!0}),j.prototype.playBellSound=function(){var L=j.audioContext;if(L){var v=L.createBufferSource();L.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(k){v.buffer=k,v.connect(L.destination),v.start(0)})}},j.prototype._base64ToArrayBuffer=function(L){for(var v=window.atob(L),k=v.length,b=new Uint8Array(k),O=0;O<k;O++)b[O]=v.charCodeAt(O);return b.buffer},j.prototype._removeMimeType=function(L){return L.split(",")[1]},j=R([P(0,E.IOptionsService)],j)}();A.SoundService=D},6349:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.CircularList=void 0;var R=U(8460),P=function(){function E(D){this._maxLength=D,this.onDeleteEmitter=new R.EventEmitter,this.onInsertEmitter=new R.EventEmitter,this.onTrimEmitter=new R.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(E.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"maxLength",{get:function(){return this._maxLength},set:function(j){if(this._maxLength!==j){for(var L=new Array(j),v=0;v<Math.min(j,this.length);v++)L[v]=this._array[this._getCyclicIndex(v)];this._array=L,this._maxLength=j,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._length},set:function(j){if(j>this._length)for(var L=this._length;L<j;L++)this._array[L]=void 0;this._length=j},enumerable:!1,configurable:!0}),E.prototype.get=function(D){return this._array[this._getCyclicIndex(D)]},E.prototype.set=function(D,j){this._array[this._getCyclicIndex(D)]=j},E.prototype.push=function(D){this._array[this._getCyclicIndex(this._length)]=D,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},E.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(E.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),E.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},E.prototype.splice=function(D,j){for(var L=[],v=2;v<arguments.length;v++)L[v-2]=arguments[v];if(j){for(var k=D;k<this._length-j;k++)this._array[this._getCyclicIndex(k)]=this._array[this._getCyclicIndex(k+j)];this._length-=j,this.onDeleteEmitter.fire({index:D,amount:j})}for(k=this._length-1;k>=D;k--)this._array[this._getCyclicIndex(k+L.length)]=this._array[this._getCyclicIndex(k)];for(k=0;k<L.length;k++)this._array[this._getCyclicIndex(D+k)]=L[k];if(L.length&&this.onInsertEmitter.fire({index:D,amount:L.length}),this._length+L.length>this._maxLength){var b=this._length+L.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=L.length},E.prototype.trimStart=function(D){D>this._length&&(D=this._length),this._startIndex+=D,this._length-=D,this.onTrimEmitter.fire(D)},E.prototype.shiftElements=function(D,j,L){if(!(j<=0)){if(D<0||D>=this._length)throw new Error("start argument out of range");if(D+L<0)throw new Error("Cannot shift elements in list beyond index 0");if(L>0){for(var v=j-1;v>=0;v--)this.set(D+v+L,this.get(D+v));var k=D+j+L-this._length;if(k>0)for(this._length+=k;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(v=0;v<j;v++)this.set(D+v+L,this.get(D+v))}},E.prototype._getCyclicIndex=function(D){return(this._startIndex+D)%this._maxLength},E}();A.CircularList=P},1439:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.clone=void 0,A.clone=function U(R,P){if(void 0===P&&(P=5),"object"!=typeof R)return R;var E=Array.isArray(R)?[]:{};for(var D in R)E[D]=P<=1?R[D]:R[D]&&U(R[D],P-1);return E}},8055:function(W,A){var U,R,P,E,v,D=this&&this.__read||function(v,k){var b="function"==typeof Symbol&&v[Symbol.iterator];if(!b)return v;var O,S,y=b.call(v),T=[];try{for(;(void 0===k||k-- >0)&&!(O=y.next()).done;)T.push(O.value)}catch(M){S={error:M}}finally{try{O&&!O.done&&(b=y.return)&&b.call(y)}finally{if(S)throw S.error}}return T};function j(v){var k=v.toString(16);return k.length<2?"0"+k:k}function L(v,k){return v<k?(k+.05)/(v+.05):(v+.05)/(k+.05)}Object.defineProperty(A,"__esModule",{value:!0}),A.contrastRatio=A.toPaddedHex=A.rgba=A.rgb=A.css=A.color=A.channels=void 0,(v=U=A.channels||(A.channels={})).toCss=function(k,b,O,S){return void 0!==S?"#"+j(k)+j(b)+j(O)+j(S):"#"+j(k)+j(b)+j(O)},v.toRgba=function(k,b,O,S){return void 0===S&&(S=255),(k<<24|b<<16|O<<8|S)>>>0},(R=A.color||(A.color={})).blend=function(v,k){var b=(255&k.rgba)/255;if(1===b)return{css:k.css,rgba:k.rgba};var O=k.rgba>>24&255,S=k.rgba>>16&255,y=k.rgba>>8&255,T=v.rgba>>24&255,M=v.rgba>>16&255,x=v.rgba>>8&255,N=T+Math.round((O-T)*b),F=M+Math.round((S-M)*b),X=x+Math.round((y-x)*b);return{css:U.toCss(N,F,X),rgba:U.toRgba(N,F,X)}},R.isOpaque=function(v){return 255==(255&v.rgba)},R.ensureContrastRatio=function(v,k,b){var O=E.ensureContrastRatio(v.rgba,k.rgba,b);if(O)return E.toColor(O>>24&255,O>>16&255,O>>8&255)},R.opaque=function(v){var k=(255|v.rgba)>>>0,b=D(E.toChannels(k),3),O=b[0],S=b[1],y=b[2];return{css:U.toCss(O,S,y),rgba:k}},R.opacity=function(v,k){var b=Math.round(255*k),O=D(E.toChannels(v.rgba),3),S=O[0],y=O[1],T=O[2];return{css:U.toCss(S,y,T,b),rgba:U.toRgba(S,y,T,b)}},R.toColorRGB=function(v){return[v.rgba>>24&255,v.rgba>>16&255,v.rgba>>8&255]},(A.css||(A.css={})).toColor=function(v){if(v.match(/#[0-9a-f]{3,8}/i))switch(v.length){case 4:var k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);return E.toColor(k,b,O);case 5:k=parseInt(v.slice(1,2).repeat(2),16),b=parseInt(v.slice(2,3).repeat(2),16),O=parseInt(v.slice(3,4).repeat(2),16);var S=parseInt(v.slice(4,5).repeat(2),16);return E.toColor(k,b,O,S);case 7:return{css:v,rgba:(parseInt(v.slice(1),16)<<8|255)>>>0};case 9:return{css:v,rgba:parseInt(v.slice(1),16)>>>0}}var y=v.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(y)return k=parseInt(y[1]),b=parseInt(y[2]),O=parseInt(y[3]),S=Math.round(255*(void 0===y[5]?1:parseFloat(y[5]))),E.toColor(k,b,O,S);throw new Error("css.toColor: Unsupported css format")},function(v){function k(b,O,S){var y=b/255,T=O/255,M=S/255;return.2126*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))+.7152*(T<=.03928?T/12.92:Math.pow((T+.055)/1.055,2.4))+.0722*(M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4))}v.relativeLuminance=function(b){return k(b>>16&255,b>>8&255,255&b)},v.relativeLuminance2=k}(P=A.rgb||(A.rgb={})),function(v){function k(O,S,y){for(var T=O>>24&255,M=O>>16&255,x=O>>8&255,N=S>>24&255,F=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,x));$<y&&(N>0||F>0||X>0);)N-=Math.max(0,Math.ceil(.1*N)),F-=Math.max(0,Math.ceil(.1*F)),X-=Math.max(0,Math.ceil(.1*X)),$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,x));return(N<<24|F<<16|X<<8|255)>>>0}function b(O,S,y){for(var T=O>>24&255,M=O>>16&255,x=O>>8&255,N=S>>24&255,F=S>>16&255,X=S>>8&255,$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,x));$<y&&(N<255||F<255||X<255);)N=Math.min(255,N+Math.ceil(.1*(255-N))),F=Math.min(255,F+Math.ceil(.1*(255-F))),X=Math.min(255,X+Math.ceil(.1*(255-X))),$=L(P.relativeLuminance2(N,F,X),P.relativeLuminance2(T,M,x));return(N<<24|F<<16|X<<8|255)>>>0}v.ensureContrastRatio=function(O,S,y){var T=P.relativeLuminance(O>>8),M=P.relativeLuminance(S>>8);if(L(T,M)<y){if(M<T){var x=k(O,S,y),N=L(T,P.relativeLuminance(x>>8));if(N<y){var F=b(O,O,y);return N>L(T,P.relativeLuminance(F>>8))?x:F}return x}var X=b(O,S,y),$=L(T,P.relativeLuminance(X>>8));return $<y?(F=k(O,O,y),$>L(T,P.relativeLuminance(F>>8))?X:F):X}},v.reduceLuminance=k,v.increaseLuminance=b,v.toChannels=function(O){return[O>>24&255,O>>16&255,O>>8&255,255&O]},v.toColor=function(O,S,y,T){return{css:U.toCss(O,S,y,T),rgba:U.toRgba(O,S,y,T)}}}(E=A.rgba||(A.rgba={})),A.toPaddedHex=j,A.contrastRatio=L},8969:function(W,A,U){var R,P=this&&this.__extends||(R=function(ne,be){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,de){pe.__proto__=de}||function(pe,de){for(var le in de)Object.prototype.hasOwnProperty.call(de,le)&&(pe[le]=de[le])})(ne,be)},function(Q,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function be(){this.constructor=Q}R(Q,ne),Q.prototype=null===ne?Object.create(ne):(be.prototype=ne.prototype,new be)}),E=this&&this.__values||function(Q){var ne="function"==typeof Symbol&&Symbol.iterator,be=ne&&Q[ne],pe=0;if(be)return be.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&pe>=Q.length&&(Q=void 0),{value:Q&&Q[pe++],done:!Q}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreTerminal=void 0;var D=U(844),j=U(2585),L=U(4348),v=U(7866),k=U(744),b=U(7302),O=U(6975),S=U(8460),y=U(1753),T=U(3730),M=U(1480),x=U(7994),N=U(9282),F=U(5435),X=U(5981),$=!1,Y=function(Q){function ne(be){var pe=Q.call(this)||this;return pe._onBinary=new S.EventEmitter,pe._onData=new S.EventEmitter,pe._onLineFeed=new S.EventEmitter,pe._onResize=new S.EventEmitter,pe._onScroll=new S.EventEmitter,pe._onWriteParsed=new S.EventEmitter,pe._instantiationService=new L.InstantiationService,pe.optionsService=new b.OptionsService(be),pe._instantiationService.setService(j.IOptionsService,pe.optionsService),pe._bufferService=pe.register(pe._instantiationService.createInstance(k.BufferService)),pe._instantiationService.setService(j.IBufferService,pe._bufferService),pe._logService=pe._instantiationService.createInstance(v.LogService),pe._instantiationService.setService(j.ILogService,pe._logService),pe.coreService=pe.register(pe._instantiationService.createInstance(O.CoreService,function(){return pe.scrollToBottom()})),pe._instantiationService.setService(j.ICoreService,pe.coreService),pe.coreMouseService=pe._instantiationService.createInstance(y.CoreMouseService),pe._instantiationService.setService(j.ICoreMouseService,pe.coreMouseService),pe._dirtyRowService=pe._instantiationService.createInstance(T.DirtyRowService),pe._instantiationService.setService(j.IDirtyRowService,pe._dirtyRowService),pe.unicodeService=pe._instantiationService.createInstance(M.UnicodeService),pe._instantiationService.setService(j.IUnicodeService,pe.unicodeService),pe._charsetService=pe._instantiationService.createInstance(x.CharsetService),pe._instantiationService.setService(j.ICharsetService,pe._charsetService),pe._inputHandler=new F.InputHandler(pe._bufferService,pe._charsetService,pe.coreService,pe._dirtyRowService,pe._logService,pe.optionsService,pe.coreMouseService,pe.unicodeService),pe.register((0,S.forwardEvent)(pe._inputHandler.onLineFeed,pe._onLineFeed)),pe.register(pe._inputHandler),pe.register((0,S.forwardEvent)(pe._bufferService.onResize,pe._onResize)),pe.register((0,S.forwardEvent)(pe.coreService.onData,pe._onData)),pe.register((0,S.forwardEvent)(pe.coreService.onBinary,pe._onBinary)),pe.register(pe.optionsService.onOptionChange(function(de){return pe._updateOptions(de)})),pe.register(pe._bufferService.onScroll(function(de){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe.register(pe._inputHandler.onScroll(function(de){pe._onScroll.fire({position:pe._bufferService.buffer.ydisp,source:0}),pe._dirtyRowService.markRangeDirty(pe._bufferService.buffer.scrollTop,pe._bufferService.buffer.scrollBottom)})),pe._writeBuffer=new X.WriteBuffer(function(de,le){return pe._inputHandler.parse(de,le)}),pe.register((0,S.forwardEvent)(pe._writeBuffer.onWriteParsed,pe._onWriteParsed)),pe}return P(ne,Q),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onScroll",{get:function(){var pe=this;return this._onScrollApi||(this._onScrollApi=new S.EventEmitter,this.register(this._onScroll.event(function(de){var le;null===(le=pe._onScrollApi)||void 0===le||le.fire(de.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"options",{get:function(){return this.optionsService.options},set:function(pe){for(var de in pe)this.optionsService.options[de]=pe[de]},enumerable:!1,configurable:!0}),ne.prototype.dispose=function(){var be;this._isDisposed||(Q.prototype.dispose.call(this),null===(be=this._windowsMode)||void 0===be||be.dispose(),this._windowsMode=void 0)},ne.prototype.write=function(be,pe){this._writeBuffer.write(be,pe)},ne.prototype.writeSync=function(be,pe){this._logService.logLevel<=j.LogLevelEnum.WARN&&!$&&(this._logService.warn("writeSync is unreliable and will be removed soon."),$=!0),this._writeBuffer.writeSync(be,pe)},ne.prototype.resize=function(be,pe){isNaN(be)||isNaN(pe)||(be=Math.max(be,k.MINIMUM_COLS),pe=Math.max(pe,k.MINIMUM_ROWS),this._bufferService.resize(be,pe))},ne.prototype.scroll=function(be,pe){void 0===pe&&(pe=!1),this._bufferService.scroll(be,pe)},ne.prototype.scrollLines=function(be,pe,de){this._bufferService.scrollLines(be,pe,de)},ne.prototype.scrollPages=function(be){this._bufferService.scrollPages(be)},ne.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},ne.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},ne.prototype.scrollToLine=function(be){this._bufferService.scrollToLine(be)},ne.prototype.registerEscHandler=function(be,pe){return this._inputHandler.registerEscHandler(be,pe)},ne.prototype.registerDcsHandler=function(be,pe){return this._inputHandler.registerDcsHandler(be,pe)},ne.prototype.registerCsiHandler=function(be,pe){return this._inputHandler.registerCsiHandler(be,pe)},ne.prototype.registerOscHandler=function(be,pe){return this._inputHandler.registerOscHandler(be,pe)},ne.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},ne.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},ne.prototype._updateOptions=function(be){var pe;switch(be){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():(null===(pe=this._windowsMode)||void 0===pe||pe.dispose(),this._windowsMode=void 0)}},ne.prototype._enableWindowsMode=function(){var be=this;if(!this._windowsMode){var pe=[];pe.push(this.onLineFeed(N.updateWindowsModeWrappedState.bind(null,this._bufferService))),pe.push(this.registerCsiHandler({final:"H"},function(){return(0,N.updateWindowsModeWrappedState)(be._bufferService),!1})),this._windowsMode={dispose:function(){var le,ce;try{for(var me=E(pe),je=me.next();!je.done;je=me.next())je.value.dispose()}catch(at){le={error:at}}finally{try{je&&!je.done&&(ce=me.return)&&ce.call(me)}finally{if(le)throw le.error}}}}}},ne}(D.Disposable);A.CoreTerminal=Y},8460:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.forwardEvent=A.EventEmitter=void 0;var U=function(){function R(){this._listeners=[],this._disposed=!1}return Object.defineProperty(R.prototype,"event",{get:function(){var E=this;return this._event||(this._event=function(D){return E._listeners.push(D),{dispose:function(){if(!E._disposed)for(var L=0;L<E._listeners.length;L++)if(E._listeners[L]===D)return void E._listeners.splice(L,1)}}}),this._event},enumerable:!1,configurable:!0}),R.prototype.fire=function(P,E){for(var D=[],j=0;j<this._listeners.length;j++)D.push(this._listeners[j]);for(j=0;j<D.length;j++)D[j].call(void 0,P,E)},R.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},R}();A.EventEmitter=U,A.forwardEvent=function(R,P){return R(function(E){return P.fire(E)})}},5435:function(W,A,U){var R,P=this&&this.__extends||(R=function(de,le){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,me){ce.__proto__=me}||function(ce,me){for(var je in me)Object.prototype.hasOwnProperty.call(me,je)&&(ce[je]=me[je])})(de,le)},function(pe,de){if("function"!=typeof de&&null!==de)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");function le(){this.constructor=pe}R(pe,de),pe.prototype=null===de?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(A,"__esModule",{value:!0}),A.InputHandler=A.WindowsOptionsReportType=void 0;var E,pe,D=U(2584),j=U(7116),L=U(2015),v=U(844),k=U(8273),b=U(482),O=U(8437),S=U(8460),y=U(643),T=U(511),M=U(3734),x=U(2585),N=U(6242),F=U(6351),X=U(5941),$={"(":0,")":1,"*":2,"+":3,"-":1,".":2},Y=131072;function Q(pe,de){if(pe>24)return de.setWinLines||!1;switch(pe){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(pe=E=A.WindowsOptionsReportType||(A.WindowsOptionsReportType={}))[pe.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",pe[pe.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";var ne=function(){function pe(de,le,ce,me){this._bufferService=de,this._coreService=le,this._logService=ce,this._optionsService=me,this._data=new Uint32Array(0)}return pe.prototype.hook=function(de){this._data=new Uint32Array(0)},pe.prototype.put=function(de,le,ce){this._data=(0,k.concat)(this._data,de.subarray(le,ce))},pe.prototype.unhook=function(de){if(!de)return this._data=new Uint32Array(0),!0;var le=(0,b.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),le){case'"q':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r0"q'+D.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(D.C0.ESC+'P1$r61;1"p'+D.C0.ESC+"\\");break;case"r":var ce=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+ce+D.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(D.C0.ESC+"P1$r0m"+D.C0.ESC+"\\");break;case" q":var me={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];me-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(D.C0.ESC+"P1$r"+me+" q"+D.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",le),this._coreService.triggerDataEvent(D.C0.ESC+"P0$r"+D.C0.ESC+"\\")}return!0},pe}(),be=function(pe){function de(le,ce,me,je,at,Mt,Tt,xt,Lt){void 0===Lt&&(Lt=new L.EscapeSequenceParser);var Ze=pe.call(this)||this;Ze._bufferService=le,Ze._charsetService=ce,Ze._coreService=me,Ze._dirtyRowService=je,Ze._logService=at,Ze._optionsService=Mt,Ze._coreMouseService=Tt,Ze._unicodeService=xt,Ze._parser=Lt,Ze._parseBuffer=new Uint32Array(4096),Ze._stringDecoder=new b.StringToUtf32,Ze._utf8Decoder=new b.Utf8ToUtf32,Ze._workCell=new T.CellData,Ze._windowTitle="",Ze._iconName="",Ze._windowTitleStack=[],Ze._iconNameStack=[],Ze._curAttrData=O.DEFAULT_ATTR_DATA.clone(),Ze._eraseAttrDataInternal=O.DEFAULT_ATTR_DATA.clone(),Ze._onRequestBell=new S.EventEmitter,Ze._onRequestRefreshRows=new S.EventEmitter,Ze._onRequestReset=new S.EventEmitter,Ze._onRequestSendFocus=new S.EventEmitter,Ze._onRequestSyncScrollBar=new S.EventEmitter,Ze._onRequestWindowsOptionsReport=new S.EventEmitter,Ze._onA11yChar=new S.EventEmitter,Ze._onA11yTab=new S.EventEmitter,Ze._onCursorMove=new S.EventEmitter,Ze._onLineFeed=new S.EventEmitter,Ze._onScroll=new S.EventEmitter,Ze._onTitleChange=new S.EventEmitter,Ze._onColor=new S.EventEmitter,Ze._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},Ze._specialColors=[256,257,258],Ze.register(Ze._parser),Ze._activeBuffer=Ze._bufferService.buffer,Ze.register(Ze._bufferService.buffers.onBufferActivate(function(nt){return Ze._activeBuffer=nt.activeBuffer})),Ze._parser.setCsiHandlerFallback(function(nt,Ot){Ze._logService.debug("Unknown CSI code: ",{identifier:Ze._parser.identToString(nt),params:Ot.toArray()})}),Ze._parser.setEscHandlerFallback(function(nt){Ze._logService.debug("Unknown ESC code: ",{identifier:Ze._parser.identToString(nt)})}),Ze._parser.setExecuteHandlerFallback(function(nt){Ze._logService.debug("Unknown EXECUTE code: ",{code:nt})}),Ze._parser.setOscHandlerFallback(function(nt,Ot,_t){Ze._logService.debug("Unknown OSC code: ",{identifier:nt,action:Ot,data:_t})}),Ze._parser.setDcsHandlerFallback(function(nt,Ot,_t){"HOOK"===Ot&&(_t=_t.toArray()),Ze._logService.debug("Unknown DCS code: ",{identifier:Ze._parser.identToString(nt),action:Ot,payload:_t})}),Ze._parser.setPrintHandler(function(nt,Ot,_t){return Ze.print(nt,Ot,_t)}),Ze._parser.registerCsiHandler({final:"@"},function(nt){return Ze.insertChars(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"@"},function(nt){return Ze.scrollLeft(nt)}),Ze._parser.registerCsiHandler({final:"A"},function(nt){return Ze.cursorUp(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"A"},function(nt){return Ze.scrollRight(nt)}),Ze._parser.registerCsiHandler({final:"B"},function(nt){return Ze.cursorDown(nt)}),Ze._parser.registerCsiHandler({final:"C"},function(nt){return Ze.cursorForward(nt)}),Ze._parser.registerCsiHandler({final:"D"},function(nt){return Ze.cursorBackward(nt)}),Ze._parser.registerCsiHandler({final:"E"},function(nt){return Ze.cursorNextLine(nt)}),Ze._parser.registerCsiHandler({final:"F"},function(nt){return Ze.cursorPrecedingLine(nt)}),Ze._parser.registerCsiHandler({final:"G"},function(nt){return Ze.cursorCharAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"H"},function(nt){return Ze.cursorPosition(nt)}),Ze._parser.registerCsiHandler({final:"I"},function(nt){return Ze.cursorForwardTab(nt)}),Ze._parser.registerCsiHandler({final:"J"},function(nt){return Ze.eraseInDisplay(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"J"},function(nt){return Ze.eraseInDisplay(nt)}),Ze._parser.registerCsiHandler({final:"K"},function(nt){return Ze.eraseInLine(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"K"},function(nt){return Ze.eraseInLine(nt)}),Ze._parser.registerCsiHandler({final:"L"},function(nt){return Ze.insertLines(nt)}),Ze._parser.registerCsiHandler({final:"M"},function(nt){return Ze.deleteLines(nt)}),Ze._parser.registerCsiHandler({final:"P"},function(nt){return Ze.deleteChars(nt)}),Ze._parser.registerCsiHandler({final:"S"},function(nt){return Ze.scrollUp(nt)}),Ze._parser.registerCsiHandler({final:"T"},function(nt){return Ze.scrollDown(nt)}),Ze._parser.registerCsiHandler({final:"X"},function(nt){return Ze.eraseChars(nt)}),Ze._parser.registerCsiHandler({final:"Z"},function(nt){return Ze.cursorBackwardTab(nt)}),Ze._parser.registerCsiHandler({final:"`"},function(nt){return Ze.charPosAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"a"},function(nt){return Ze.hPositionRelative(nt)}),Ze._parser.registerCsiHandler({final:"b"},function(nt){return Ze.repeatPrecedingCharacter(nt)}),Ze._parser.registerCsiHandler({final:"c"},function(nt){return Ze.sendDeviceAttributesPrimary(nt)}),Ze._parser.registerCsiHandler({prefix:">",final:"c"},function(nt){return Ze.sendDeviceAttributesSecondary(nt)}),Ze._parser.registerCsiHandler({final:"d"},function(nt){return Ze.linePosAbsolute(nt)}),Ze._parser.registerCsiHandler({final:"e"},function(nt){return Ze.vPositionRelative(nt)}),Ze._parser.registerCsiHandler({final:"f"},function(nt){return Ze.hVPosition(nt)}),Ze._parser.registerCsiHandler({final:"g"},function(nt){return Ze.tabClear(nt)}),Ze._parser.registerCsiHandler({final:"h"},function(nt){return Ze.setMode(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"h"},function(nt){return Ze.setModePrivate(nt)}),Ze._parser.registerCsiHandler({final:"l"},function(nt){return Ze.resetMode(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"l"},function(nt){return Ze.resetModePrivate(nt)}),Ze._parser.registerCsiHandler({final:"m"},function(nt){return Ze.charAttributes(nt)}),Ze._parser.registerCsiHandler({final:"n"},function(nt){return Ze.deviceStatus(nt)}),Ze._parser.registerCsiHandler({prefix:"?",final:"n"},function(nt){return Ze.deviceStatusPrivate(nt)}),Ze._parser.registerCsiHandler({intermediates:"!",final:"p"},function(nt){return Ze.softReset(nt)}),Ze._parser.registerCsiHandler({intermediates:" ",final:"q"},function(nt){return Ze.setCursorStyle(nt)}),Ze._parser.registerCsiHandler({final:"r"},function(nt){return Ze.setScrollRegion(nt)}),Ze._parser.registerCsiHandler({final:"s"},function(nt){return Ze.saveCursor(nt)}),Ze._parser.registerCsiHandler({final:"t"},function(nt){return Ze.windowOptions(nt)}),Ze._parser.registerCsiHandler({final:"u"},function(nt){return Ze.restoreCursor(nt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"}"},function(nt){return Ze.insertColumns(nt)}),Ze._parser.registerCsiHandler({intermediates:"'",final:"~"},function(nt){return Ze.deleteColumns(nt)}),Ze._parser.setExecuteHandler(D.C0.BEL,function(){return Ze.bell()}),Ze._parser.setExecuteHandler(D.C0.LF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.VT,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.FF,function(){return Ze.lineFeed()}),Ze._parser.setExecuteHandler(D.C0.CR,function(){return Ze.carriageReturn()}),Ze._parser.setExecuteHandler(D.C0.BS,function(){return Ze.backspace()}),Ze._parser.setExecuteHandler(D.C0.HT,function(){return Ze.tab()}),Ze._parser.setExecuteHandler(D.C0.SO,function(){return Ze.shiftOut()}),Ze._parser.setExecuteHandler(D.C0.SI,function(){return Ze.shiftIn()}),Ze._parser.setExecuteHandler(D.C1.IND,function(){return Ze.index()}),Ze._parser.setExecuteHandler(D.C1.NEL,function(){return Ze.nextLine()}),Ze._parser.setExecuteHandler(D.C1.HTS,function(){return Ze.tabSet()}),Ze._parser.registerOscHandler(0,new N.OscHandler(function(nt){return Ze.setTitle(nt),Ze.setIconName(nt),!0})),Ze._parser.registerOscHandler(1,new N.OscHandler(function(nt){return Ze.setIconName(nt)})),Ze._parser.registerOscHandler(2,new N.OscHandler(function(nt){return Ze.setTitle(nt)})),Ze._parser.registerOscHandler(4,new N.OscHandler(function(nt){return Ze.setOrReportIndexedColor(nt)})),Ze._parser.registerOscHandler(10,new N.OscHandler(function(nt){return Ze.setOrReportFgColor(nt)})),Ze._parser.registerOscHandler(11,new N.OscHandler(function(nt){return Ze.setOrReportBgColor(nt)})),Ze._parser.registerOscHandler(12,new N.OscHandler(function(nt){return Ze.setOrReportCursorColor(nt)})),Ze._parser.registerOscHandler(104,new N.OscHandler(function(nt){return Ze.restoreIndexedColor(nt)})),Ze._parser.registerOscHandler(110,new N.OscHandler(function(nt){return Ze.restoreFgColor(nt)})),Ze._parser.registerOscHandler(111,new N.OscHandler(function(nt){return Ze.restoreBgColor(nt)})),Ze._parser.registerOscHandler(112,new N.OscHandler(function(nt){return Ze.restoreCursorColor(nt)})),Ze._parser.registerEscHandler({final:"7"},function(){return Ze.saveCursor()}),Ze._parser.registerEscHandler({final:"8"},function(){return Ze.restoreCursor()}),Ze._parser.registerEscHandler({final:"D"},function(){return Ze.index()}),Ze._parser.registerEscHandler({final:"E"},function(){return Ze.nextLine()}),Ze._parser.registerEscHandler({final:"H"},function(){return Ze.tabSet()}),Ze._parser.registerEscHandler({final:"M"},function(){return Ze.reverseIndex()}),Ze._parser.registerEscHandler({final:"="},function(){return Ze.keypadApplicationMode()}),Ze._parser.registerEscHandler({final:">"},function(){return Ze.keypadNumericMode()}),Ze._parser.registerEscHandler({final:"c"},function(){return Ze.fullReset()}),Ze._parser.registerEscHandler({final:"n"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"o"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"|"},function(){return Ze.setgLevel(3)}),Ze._parser.registerEscHandler({final:"}"},function(){return Ze.setgLevel(2)}),Ze._parser.registerEscHandler({final:"~"},function(){return Ze.setgLevel(1)}),Ze._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return Ze.selectDefaultCharset()}),Ze._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return Ze.selectDefaultCharset()});var $t=function(Ot){Ft._parser.registerEscHandler({intermediates:"(",final:Ot},function(){return Ze.selectCharset("("+Ot)}),Ft._parser.registerEscHandler({intermediates:")",final:Ot},function(){return Ze.selectCharset(")"+Ot)}),Ft._parser.registerEscHandler({intermediates:"*",final:Ot},function(){return Ze.selectCharset("*"+Ot)}),Ft._parser.registerEscHandler({intermediates:"+",final:Ot},function(){return Ze.selectCharset("+"+Ot)}),Ft._parser.registerEscHandler({intermediates:"-",final:Ot},function(){return Ze.selectCharset("-"+Ot)}),Ft._parser.registerEscHandler({intermediates:".",final:Ot},function(){return Ze.selectCharset("."+Ot)}),Ft._parser.registerEscHandler({intermediates:"/",final:Ot},function(){return Ze.selectCharset("/"+Ot)})},Ft=this;for(var fn in j.CHARSETS)$t(fn);return Ze._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return Ze.screenAlignmentPattern()}),Ze._parser.setErrorHandler(function(nt){return Ze._logService.error("Parsing error: ",nt),nt}),Ze._parser.registerDcsHandler({intermediates:"$",final:"q"},new ne(Ze._bufferService,Ze._coreService,Ze._logService,Ze._optionsService)),Ze}return P(de,pe),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){pe.prototype.dispose.call(this)},de.prototype._preserveStack=function(le,ce,me,je){this._parseStack.paused=!0,this._parseStack.cursorStartX=le,this._parseStack.cursorStartY=ce,this._parseStack.decodedLength=me,this._parseStack.position=je},de.prototype._logSlowResolvingAsync=function(le){this._logService.logLevel<=x.LogLevelEnum.WARN&&Promise.race([le,new Promise(function(ce,me){return setTimeout(function(){return me("#SLOW_TIMEOUT")},5e3)})]).catch(function(ce){if("#SLOW_TIMEOUT"!==ce)throw ce;console.warn("async parser handler taking longer than 5000 ms")})},de.prototype.parse=function(le,ce){var me,je=this._activeBuffer.x,at=this._activeBuffer.y,Mt=0,Tt=this._parseStack.paused;if(Tt){if(me=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,ce))return this._logSlowResolvingAsync(me),me;je=this._parseStack.cursorStartX,at=this._parseStack.cursorStartY,this._parseStack.paused=!1,le.length>Y&&(Mt=this._parseStack.position+Y)}if(this._logService.logLevel<=x.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof le?' "'+le+'"':' "'+Array.prototype.map.call(le,function($t){return String.fromCharCode($t)}).join("")+'"'),"string"==typeof le?le.split("").map(function($t){return $t.charCodeAt(0)}):le),this._parseBuffer.length<le.length&&this._parseBuffer.length<Y&&(this._parseBuffer=new Uint32Array(Math.min(le.length,Y))),Tt||this._dirtyRowService.clearRange(),le.length>Y)for(var xt=Mt;xt<le.length;xt+=Y){var Lt=xt+Y<le.length?xt+Y:le.length,Ze="string"==typeof le?this._stringDecoder.decode(le.substring(xt,Lt),this._parseBuffer):this._utf8Decoder.decode(le.subarray(xt,Lt),this._parseBuffer);if(me=this._parser.parse(this._parseBuffer,Ze))return this._preserveStack(je,at,Ze,xt),this._logSlowResolvingAsync(me),me}else if(!Tt&&(Ze="string"==typeof le?this._stringDecoder.decode(le,this._parseBuffer):this._utf8Decoder.decode(le,this._parseBuffer),me=this._parser.parse(this._parseBuffer,Ze)))return this._preserveStack(je,at,Ze,0),this._logSlowResolvingAsync(me),me;this._activeBuffer.x===je&&this._activeBuffer.y===at||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(le,ce,me){var je,at,Mt=this._charsetService.charset,Tt=this._optionsService.rawOptions.screenReaderMode,xt=this._bufferService.cols,Lt=this._coreService.decPrivateModes.wraparound,Ze=this._coreService.modes.insertMode,$t=this._curAttrData,Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&me-ce>0&&2===Ft.getWidth(this._activeBuffer.x-1)&&Ft.setCellFromCodePoint(this._activeBuffer.x-1,0,1,$t.fg,$t.bg,$t.extended);for(var fn=ce;fn<me;++fn){if(je=le[fn],at=this._unicodeService.wcwidth(je),je<127&&Mt){var nt=Mt[String.fromCharCode(je)];nt&&(je=nt.charCodeAt(0))}if(Tt&&this._onA11yChar.fire((0,b.stringFromCodePoint)(je)),at||!this._activeBuffer.x){if(this._activeBuffer.x+at-1>=xt)if(Lt){for(;this._activeBuffer.x<xt;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,1,$t.fg,$t.bg,$t.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ft=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=xt-1,2===at)continue;if(Ze&&(Ft.insertCells(this._activeBuffer.x,at,this._activeBuffer.getNullCell($t),$t),2===Ft.getWidth(xt-1)&&Ft.setCellFromCodePoint(xt-1,y.NULL_CELL_CODE,y.NULL_CELL_WIDTH,$t.fg,$t.bg,$t.extended)),Ft.setCellFromCodePoint(this._activeBuffer.x++,je,at,$t.fg,$t.bg,$t.extended),at>0)for(;--at;)Ft.setCellFromCodePoint(this._activeBuffer.x++,0,0,$t.fg,$t.bg,$t.extended)}else Ft.getWidth(this._activeBuffer.x-1)?Ft.addCodepointToCell(this._activeBuffer.x-1,je):Ft.addCodepointToCell(this._activeBuffer.x-2,je)}me-ce>0&&(Ft.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<xt&&me-ce>0&&0===Ft.getWidth(this._activeBuffer.x)&&!Ft.hasContent(this._activeBuffer.x)&&Ft.setCellFromCodePoint(this._activeBuffer.x,0,1,$t.fg,$t.bg,$t.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype.registerCsiHandler=function(le,ce){var me=this;return"t"!==le.final||le.prefix||le.intermediates?this._parser.registerCsiHandler(le,ce):this._parser.registerCsiHandler(le,function(je){return!Q(je.params[0],me._optionsService.rawOptions.windowOptions)||ce(je)})},de.prototype.registerDcsHandler=function(le,ce){return this._parser.registerDcsHandler(le,new F.DcsHandler(ce))},de.prototype.registerEscHandler=function(le,ce){return this._parser.registerEscHandler(le,ce)},de.prototype.registerOscHandler=function(le,ce){return this._parser.registerOscHandler(le,new N.OscHandler(ce))},de.prototype.bell=function(){return this._onRequestBell.fire(),!0},de.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},de.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},de.prototype.backspace=function(){var le;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===(le=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===le?void 0:le.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);ce.hasWidth(this._activeBuffer.x)&&!ce.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},de.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var le=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-le),!0},de.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},de.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},de.prototype._restrictCursor=function(le){void 0===le&&(le=this._bufferService.cols-1),this._activeBuffer.x=Math.min(le,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)},de.prototype._setCursor=function(le,ce){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=le,this._activeBuffer.y=this._activeBuffer.scrollTop+ce):(this._activeBuffer.x=le,this._activeBuffer.y=ce),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},de.prototype._moveCursor=function(le,ce){this._restrictCursor(),this._setCursor(this._activeBuffer.x+le,this._activeBuffer.y+ce)},de.prototype.cursorUp=function(le){var ce=this._activeBuffer.y-this._activeBuffer.scrollTop;return ce>=0?this._moveCursor(0,-Math.min(ce,le.params[0]||1)):this._moveCursor(0,-(le.params[0]||1)),!0},de.prototype.cursorDown=function(le){var ce=this._activeBuffer.scrollBottom-this._activeBuffer.y;return ce>=0?this._moveCursor(0,Math.min(ce,le.params[0]||1)):this._moveCursor(0,le.params[0]||1),!0},de.prototype.cursorForward=function(le){return this._moveCursor(le.params[0]||1,0),!0},de.prototype.cursorBackward=function(le){return this._moveCursor(-(le.params[0]||1),0),!0},de.prototype.cursorNextLine=function(le){return this.cursorDown(le),this._activeBuffer.x=0,!0},de.prototype.cursorPrecedingLine=function(le){return this.cursorUp(le),this._activeBuffer.x=0,!0},de.prototype.cursorCharAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.cursorPosition=function(le){return this._setCursor(le.length>=2?(le.params[1]||1)-1:0,(le.params[0]||1)-1),!0},de.prototype.charPosAbsolute=function(le){return this._setCursor((le.params[0]||1)-1,this._activeBuffer.y),!0},de.prototype.hPositionRelative=function(le){return this._moveCursor(le.params[0]||1,0),!0},de.prototype.linePosAbsolute=function(le){return this._setCursor(this._activeBuffer.x,(le.params[0]||1)-1),!0},de.prototype.vPositionRelative=function(le){return this._moveCursor(0,le.params[0]||1),!0},de.prototype.hVPosition=function(le){return this.cursorPosition(le),!0},de.prototype.tabClear=function(le){var ce=le.params[0];return 0===ce?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===ce&&(this._activeBuffer.tabs={}),!0},de.prototype.cursorForwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ce=le.params[0]||1;ce--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},de.prototype.cursorBackwardTab=function(le){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var ce=le.params[0]||1;ce--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},de.prototype._eraseInBufferLine=function(le,ce,me,je){void 0===je&&(je=!1);var at=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);at.replaceCells(ce,me,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je&&(at.isWrapped=!1)},de.prototype._resetBufferLine=function(le){var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+le);ce.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+le),ce.isWrapped=!1},de.prototype.eraseInDisplay=function(le){var ce;switch(this._restrictCursor(this._bufferService.cols),le.params[0]){case 0:for(ce=this._activeBuffer.y,this._dirtyRowService.markDirty(ce),this._eraseInBufferLine(ce++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x);ce<this._bufferService.rows;ce++)this._resetBufferLine(ce);this._dirtyRowService.markDirty(ce);break;case 1:for(ce=this._activeBuffer.y,this._dirtyRowService.markDirty(ce),this._eraseInBufferLine(ce,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(ce+1).isWrapped=!1);ce--;)this._resetBufferLine(ce);this._dirtyRowService.markDirty(0);break;case 2:for(ce=this._bufferService.rows,this._dirtyRowService.markDirty(ce-1);ce--;)this._resetBufferLine(ce);this._dirtyRowService.markDirty(0);break;case 3:var me=this._activeBuffer.lines.length-this._bufferService.rows;me>0&&(this._activeBuffer.lines.trimStart(me),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-me,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-me,0),this._onScroll.fire(0))}return!0},de.prototype.eraseInLine=function(le){switch(this._restrictCursor(this._bufferService.cols),le.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},de.prototype.insertLines=function(le){this._restrictCursor();var ce=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var me=this._activeBuffer.ybase+this._activeBuffer.y,je=this._bufferService.rows-1-this._activeBuffer.scrollBottom,at=this._bufferService.rows-1+this._activeBuffer.ybase-je+1;ce--;)this._activeBuffer.lines.splice(at-1,1),this._activeBuffer.lines.splice(me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.deleteLines=function(le){this._restrictCursor();var ce=le.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var me,je=this._activeBuffer.ybase+this._activeBuffer.y;for(me=this._bufferService.rows-1-this._activeBuffer.scrollBottom,me=this._bufferService.rows-1+this._activeBuffer.ybase-me;ce--;)this._activeBuffer.lines.splice(je,1),this._activeBuffer.lines.splice(me,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},de.prototype.insertChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.insertCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.deleteChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.deleteCells(this._activeBuffer.x,le.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.scrollUp=function(le){for(var ce=le.params[0]||1;ce--;)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},de.prototype.scrollDown=function(le){for(var ce=le.params[0]||1;ce--;)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(O.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollLeft=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.deleteCells(0,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.scrollRight=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.insertCells(0,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.insertColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.insertCells(this._activeBuffer.x,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.deleteColumns=function(le){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var ce=le.params[0]||1,me=this._activeBuffer.scrollTop;me<=this._activeBuffer.scrollBottom;++me){var je=this._activeBuffer.lines.get(this._activeBuffer.ybase+me);je.deleteCells(this._activeBuffer.x,ce,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},de.prototype.eraseChars=function(le){this._restrictCursor();var ce=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return ce&&(ce.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(le.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},de.prototype.repeatPrecedingCharacter=function(le){if(!this._parser.precedingCodepoint)return!0;for(var ce=le.params[0]||1,me=new Uint32Array(ce),je=0;je<ce;++je)me[je]=this._parser.precedingCodepoint;return this.print(me,0,me.length),!0},de.prototype.sendDeviceAttributesPrimary=function(le){return le.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(D.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(D.C0.ESC+"[?6c")),!0},de.prototype.sendDeviceAttributesSecondary=function(le){return le.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(D.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(D.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(le.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(D.C0.ESC+"[>83;40003;0c")),!0},de.prototype._is=function(le){return 0===(this._optionsService.rawOptions.termName+"").indexOf(le)},de.prototype.setMode=function(le){for(var ce=0;ce<le.length;ce++)4===le.params[ce]&&(this._coreService.modes.insertMode=!0);return!0},de.prototype.setModePrivate=function(le){for(var ce=0;ce<le.length;ce++)switch(le.params[ce]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),this._charsetService.setgCharset(1,j.DEFAULT_CHARSET),this._charsetService.setgCharset(2,j.DEFAULT_CHARSET),this._charsetService.setgCharset(3,j.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},de.prototype.resetMode=function(le){for(var ce=0;ce<le.length;ce++)4===le.params[ce]&&(this._coreService.modes.insertMode=!1);return!0},de.prototype.resetModePrivate=function(le){for(var ce=0;ce<le.length;ce++)switch(le.params[ce]){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===le.params[ce]&&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},de.prototype._updateAttrColor=function(le,ce,me,je,at){return 2===ce?(le|=50331648,le&=-16777216,le|=M.AttributeData.fromColorRGB([me,je,at])):5===ce&&(le&=-50331904,le|=33554432|255&me),le},de.prototype._extractColor=function(le,ce,me){var je=[0,0,-1,0,0,0],at=0,Mt=0;do{if(je[Mt+at]=le.params[ce+Mt],le.hasSubParams(ce+Mt)){var Tt=le.getSubParams(ce+Mt),xt=0;do{5===je[1]&&(at=1),je[Mt+xt+1+at]=Tt[xt]}while(++xt<Tt.length&&xt+Mt+1+at<je.length);break}if(5===je[1]&&Mt+at>=2||2===je[1]&&Mt+at>=5)break;je[1]&&(at=1)}while(++Mt+ce<le.length&&Mt+at<je.length);for(xt=2;xt<je.length;++xt)-1===je[xt]&&(je[xt]=0);switch(je[0]){case 38:me.fg=this._updateAttrColor(me.fg,je[1],je[3],je[4],je[5]);break;case 48:me.bg=this._updateAttrColor(me.bg,je[1],je[3],je[4],je[5]);break;case 58:me.extended=me.extended.clone(),me.extended.underlineColor=this._updateAttrColor(me.extended.underlineColor,je[1],je[3],je[4],je[5])}return Mt},de.prototype._processUnderline=function(le,ce){ce.extended=ce.extended.clone(),(!~le||le>5)&&(le=1),ce.extended.underlineStyle=le,ce.fg|=268435456,0===le&&(ce.fg&=-268435457),ce.updateExtended()},de.prototype.charAttributes=function(le){if(1===le.length&&0===le.params[0])return this._curAttrData.fg=O.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=O.DEFAULT_ATTR_DATA.bg,!0;for(var ce,me=le.length,je=this._curAttrData,at=0;at<me;at++)(ce=le.params[at])>=30&&ce<=37?(je.fg&=-50331904,je.fg|=16777216|ce-30):ce>=40&&ce<=47?(je.bg&=-50331904,je.bg|=16777216|ce-40):ce>=90&&ce<=97?(je.fg&=-50331904,je.fg|=16777224|ce-90):ce>=100&&ce<=107?(je.bg&=-50331904,je.bg|=16777224|ce-100):0===ce?(je.fg=O.DEFAULT_ATTR_DATA.fg,je.bg=O.DEFAULT_ATTR_DATA.bg):1===ce?je.fg|=134217728:3===ce?je.bg|=67108864:4===ce?(je.fg|=268435456,this._processUnderline(le.hasSubParams(at)?le.getSubParams(at)[0]:1,je)):5===ce?je.fg|=536870912:7===ce?je.fg|=67108864:8===ce?je.fg|=1073741824:9===ce?je.fg|=2147483648:2===ce?je.bg|=134217728:21===ce?this._processUnderline(2,je):22===ce?(je.fg&=-134217729,je.bg&=-134217729):23===ce?je.bg&=-67108865:24===ce?je.fg&=-268435457:25===ce?je.fg&=-536870913:27===ce?je.fg&=-67108865:28===ce?je.fg&=-1073741825:29===ce?je.fg&=2147483647:39===ce?(je.fg&=-67108864,je.fg|=16777215&O.DEFAULT_ATTR_DATA.fg):49===ce?(je.bg&=-67108864,je.bg|=16777215&O.DEFAULT_ATTR_DATA.bg):38===ce||48===ce||58===ce?at+=this._extractColor(le,at,je):59===ce?(je.extended=je.extended.clone(),je.extended.underlineColor=-1,je.updateExtended()):100===ce?(je.fg&=-67108864,je.fg|=16777215&O.DEFAULT_ATTR_DATA.fg,je.bg&=-67108864,je.bg|=16777215&O.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",ce);return!0},de.prototype.deviceStatus=function(le){switch(le.params[0]){case 5:this._coreService.triggerDataEvent(D.C0.ESC+"[0n");break;case 6:var ce=this._activeBuffer.y+1,me=this._activeBuffer.x+1;this._coreService.triggerDataEvent(D.C0.ESC+"["+ce+";"+me+"R")}return!0},de.prototype.deviceStatusPrivate=function(le){if(6===le.params[0]){var ce=this._activeBuffer.y+1,me=this._activeBuffer.x+1;this._coreService.triggerDataEvent(D.C0.ESC+"[?"+ce+";"+me+"R")}return!0},de.prototype.softReset=function(le){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=O.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},de.prototype.setCursorStyle=function(le){var ce=le.params[0]||1;switch(ce){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 me=ce%2==1;return this._optionsService.options.cursorBlink=me,!0},de.prototype.setScrollRegion=function(le){var ce,me=le.params[0]||1;return(le.length<2||(ce=le.params[1])>this._bufferService.rows||0===ce)&&(ce=this._bufferService.rows),ce>me&&(this._activeBuffer.scrollTop=me-1,this._activeBuffer.scrollBottom=ce-1,this._setCursor(0,0)),!0},de.prototype.windowOptions=function(le){if(!Q(le.params[0],this._optionsService.rawOptions.windowOptions))return!0;var ce=le.length>1?le.params[1]:0;switch(le.params[0]){case 14:2!==ce&&this._onRequestWindowsOptionsReport.fire(E.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(E.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(D.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==ce&&2!==ce||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==ce&&1!==ce||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==ce&&2!==ce||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==ce&&1!==ce||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},de.prototype.saveCursor=function(le){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},de.prototype.restoreCursor=function(le){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},de.prototype.setTitle=function(le){return this._windowTitle=le,this._onTitleChange.fire(le),!0},de.prototype.setIconName=function(le){return this._iconName=le,!0},de.prototype.setOrReportIndexedColor=function(le){for(var ce=[],me=le.split(";");me.length>1;){var je=me.shift(),at=me.shift();if(/^\d+$/.exec(je)){var Mt=parseInt(je);if(0<=Mt&&Mt<256)if("?"===at)ce.push({type:0,index:Mt});else{var Tt=(0,X.parseColor)(at);Tt&&ce.push({type:1,index:Mt,color:Tt})}}}return ce.length&&this._onColor.fire(ce),!0},de.prototype._setOrReportSpecialColor=function(le,ce){for(var me=le.split(";"),je=0;je<me.length&&!(ce>=this._specialColors.length);++je,++ce)if("?"===me[je])this._onColor.fire([{type:0,index:this._specialColors[ce]}]);else{var at=(0,X.parseColor)(me[je]);at&&this._onColor.fire([{type:1,index:this._specialColors[ce],color:at}])}return!0},de.prototype.setOrReportFgColor=function(le){return this._setOrReportSpecialColor(le,0)},de.prototype.setOrReportBgColor=function(le){return this._setOrReportSpecialColor(le,1)},de.prototype.setOrReportCursorColor=function(le){return this._setOrReportSpecialColor(le,2)},de.prototype.restoreIndexedColor=function(le){if(!le)return this._onColor.fire([{type:2}]),!0;for(var ce=[],me=le.split(";"),je=0;je<me.length;++je)if(/^\d+$/.exec(me[je])){var at=parseInt(me[je]);0<=at&&at<256&&ce.push({type:2,index:at})}return ce.length&&this._onColor.fire(ce),!0},de.prototype.restoreFgColor=function(le){return this._onColor.fire([{type:2,index:256}]),!0},de.prototype.restoreBgColor=function(le){return this._onColor.fire([{type:2,index:257}]),!0},de.prototype.restoreCursorColor=function(le){return this._onColor.fire([{type:2,index:258}]),!0},de.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},de.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},de.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},de.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,j.DEFAULT_CHARSET),!0},de.prototype.selectCharset=function(le){return 2!==le.length?(this.selectDefaultCharset(),!0):("/"===le[0]||this._charsetService.setgCharset($[le[0]],j.CHARSETS[le[1]]||j.DEFAULT_CHARSET),!0)},de.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},de.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},de.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var le=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,le,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},de.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},de.prototype.reset=function(){this._curAttrData=O.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=O.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(le){return this._charsetService.setgLevel(le),!0},de.prototype.screenAlignmentPattern=function(){var le=new T.CellData;le.content=1<<22|"E".charCodeAt(0),le.fg=this._curAttrData.fg,le.bg=this._curAttrData.bg,this._setCursor(0,0);for(var ce=0;ce<this._bufferService.rows;++ce){var me=this._activeBuffer.ybase+this._activeBuffer.y+ce,je=this._activeBuffer.lines.get(me);je&&(je.fill(le),je.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},de}(v.Disposable);A.InputHandler=be},844:function(W,A){var U=this&&this.__values||function(E){var D="function"==typeof Symbol&&Symbol.iterator,j=D&&E[D],L=0;if(j)return j.call(E);if(E&&"number"==typeof E.length)return{next:function(){return E&&L>=E.length&&(E=void 0),{value:E&&E[L++],done:!E}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.getDisposeArrayDisposable=A.disposeArray=A.Disposable=void 0;var R=function(){function E(){this._disposables=[],this._isDisposed=!1}return E.prototype.dispose=function(){var D,j;this._isDisposed=!0;try{for(var L=U(this._disposables),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}this._disposables.length=0},E.prototype.register=function(D){return this._disposables.push(D),D},E.prototype.unregister=function(D){var j=this._disposables.indexOf(D);-1!==j&&this._disposables.splice(j,1)},E}();function P(E){var D,j;try{for(var L=U(E),v=L.next();!v.done;v=L.next())v.value.dispose()}catch(k){D={error:k}}finally{try{v&&!v.done&&(j=L.return)&&j.call(L)}finally{if(D)throw D.error}}E.length=0}A.Disposable=R,A.disposeArray=P,A.getDisposeArrayDisposable=function(E){return{dispose:function(){return P(E)}}}},6114:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.isLinux=A.isWindows=A.isIphone=A.isIpad=A.isMac=A.isSafari=A.isLegacyEdge=A.isFirefox=void 0;var U="undefined"==typeof navigator,R=U?"node":navigator.userAgent,P=U?"node":navigator.platform;A.isFirefox=R.includes("Firefox"),A.isLegacyEdge=R.includes("Edge"),A.isSafari=/^((?!chrome|android).)*safari/i.test(R),A.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(P),A.isIpad="iPad"===P,A.isIphone="iPhone"===P,A.isWindows=["Windows","Win16","Win32","WinCE"].includes(P),A.isLinux=P.indexOf("Linux")>=0},6106:function(W,A){var U=this&&this.__generator||function(P,E){var D,j,L,v,k={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return v={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function b(O){return function(S){return function(y){if(D)throw new TypeError("Generator is already executing.");for(;k;)try{if(D=1,j&&(L=2&y[0]?j.return:y[0]?j.throw||((L=j.return)&&L.call(j),0):j.next)&&!(L=L.call(j,y[1])).done)return L;switch(j=0,L&&(y=[2&y[0],L.value]),y[0]){case 0:case 1:L=y;break;case 4:return k.label++,{value:y[1],done:!1};case 5:k.label++,j=y[1],y=[0];continue;case 7:y=k.ops.pop(),k.trys.pop();continue;default:if(!((L=(L=k.trys).length>0&&L[L.length-1])||6!==y[0]&&2!==y[0])){k=0;continue}if(3===y[0]&&(!L||y[1]>L[0]&&y[1]<L[3])){k.label=y[1];break}if(6===y[0]&&k.label<L[1]){k.label=L[1],L=y;break}if(L&&k.label<L[2]){k.label=L[2],k.ops.push(y);break}L[2]&&k.ops.pop(),k.trys.pop();continue}y=E.call(P,k)}catch(T){y=[6,T],j=0}finally{D=L=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([O,S])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.SortedList=void 0;var R=function(){function P(E){this._getKey=E,this._array=[]}return P.prototype.clear=function(){this._array.length=0},P.prototype.insert=function(E){if(0!==this._array.length){var D=this._search(this._getKey(E),0,this._array.length-1);this._array.splice(D,0,E)}else this._array.push(E)},P.prototype.delete=function(E){if(0===this._array.length)return!1;var D=this._getKey(E),j=this._search(D,0,this._array.length-1);if(this._getKey(this._array[j])!==D)return!1;do{if(this._array[j]===E)return this._array.splice(j,1),!0}while(++j<this._array.length&&this._getKey(this._array[j])===D);return!1},P.prototype.getKeyIterator=function(E){var D;return U(this,function(j){switch(j.label){case 0:if(0===this._array.length)return[2];if((D=this._search(E,0,this._array.length-1))<0||D>=this._array.length)return[2];if(this._getKey(this._array[D])!==E)return[2];j.label=1;case 1:return[4,this._array[D]];case 2:j.sent(),j.label=3;case 3:if(++D<this._array.length&&this._getKey(this._array[D])===E)return[3,1];j.label=4;case 4:return[2]}})},P.prototype.values=function(){return this._array.values()},P.prototype._search=function(E,D,j){if(j<D)return D;var L=Math.floor((D+j)/2);if(this._getKey(this._array[L])>E)return this._search(E,D,L-1);if(this._getKey(this._array[L])<E)return this._search(E,L+1,j);for(;L>0&&this._getKey(this._array[L-1])===E;)L--;return L},P}();A.SortedList=R},8273:function(W,A){function U(R,P,E,D){if(void 0===E&&(E=0),void 0===D&&(D=R.length),E>=R.length)return R;E=(R.length+E)%R.length,D=D>=R.length?R.length:(R.length+D)%R.length;for(var j=E;j<D;++j)R[j]=P;return R}Object.defineProperty(A,"__esModule",{value:!0}),A.concat=A.fillFallback=A.fill=void 0,A.fill=function(R,P,E,D){return R.fill?R.fill(P,E,D):U(R,P,E,D)},A.fillFallback=U,A.concat=function(R,P){var E=new R.constructor(R.length+P.length);return E.set(R),E.set(P,R.length),E}},9282:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.updateWindowsModeWrappedState=void 0;var R=U(643);A.updateWindowsModeWrappedState=function(P){var E=P.buffer.lines.get(P.buffer.ybase+P.buffer.y-1),D=null==E?void 0:E.get(P.cols-1),j=P.buffer.lines.get(P.buffer.ybase+P.buffer.y);j&&D&&(j.isWrapped=D[R.CHAR_DATA_CODE_INDEX]!==R.NULL_CELL_CODE&&D[R.CHAR_DATA_CODE_INDEX]!==R.WHITESPACE_CELL_CODE)}},3734:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ExtendedAttrs=A.AttributeData=void 0;var U=function(){function P(){this.fg=0,this.bg=0,this.extended=new R}return P.toColorRGB=function(E){return[E>>>16&255,E>>>8&255,255&E]},P.fromColorRGB=function(E){return(255&E[0])<<16|(255&E[1])<<8|255&E[2]},P.prototype.clone=function(){var E=new P;return E.fg=this.fg,E.bg=this.bg,E.extended=this.extended.clone(),E},P.prototype.isInverse=function(){return 67108864&this.fg},P.prototype.isBold=function(){return 134217728&this.fg},P.prototype.isUnderline=function(){return 268435456&this.fg},P.prototype.isBlink=function(){return 536870912&this.fg},P.prototype.isInvisible=function(){return 1073741824&this.fg},P.prototype.isItalic=function(){return 67108864&this.bg},P.prototype.isDim=function(){return 134217728&this.bg},P.prototype.isStrikethrough=function(){return 2147483648&this.fg},P.prototype.getFgColorMode=function(){return 50331648&this.fg},P.prototype.getBgColorMode=function(){return 50331648&this.bg},P.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},P.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},P.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},P.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},P.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},P.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},P.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},P.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},P.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},P.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},P.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},P.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},P.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},P.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},P.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},P.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},P.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},P}();A.AttributeData=U;var R=function(){function P(E,D){void 0===E&&(E=0),void 0===D&&(D=-1),this.underlineStyle=E,this.underlineColor=D}return P.prototype.clone=function(){return new P(this.underlineStyle,this.underlineColor)},P.prototype.isEmpty=function(){return 0===this.underlineStyle},P}();A.ExtendedAttrs=R},9092:function(W,A,U){var R=this&&this.__read||function(T,M){var x="function"==typeof Symbol&&T[Symbol.iterator];if(!x)return T;var N,F,X=x.call(T),$=[];try{for(;(void 0===M||M-- >0)&&!(N=X.next()).done;)$.push(N.value)}catch(Y){F={error:Y}}finally{try{N&&!N.done&&(x=X.return)&&x.call(X)}finally{if(F)throw F.error}}return $},P=this&&this.__spreadArray||function(T,M,x){if(x||2===arguments.length)for(var N,F=0,X=M.length;F<X;F++)!N&&F in M||(N||(N=Array.prototype.slice.call(M,0,F)),N[F]=M[F]);return T.concat(N||Array.prototype.slice.call(M))};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferStringIterator=A.Buffer=A.MAX_BUFFER_SIZE=void 0;var E=U(6349),D=U(8437),j=U(511),L=U(643),v=U(4634),k=U(4863),b=U(7116),O=U(3734);A.MAX_BUFFER_SIZE=4294967295;var S=function(){function T(M,x,N){this._hasScrollback=M,this._optionsService=x,this._bufferService=N,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=D.DEFAULT_ATTR_DATA.clone(),this.savedCharset=b.DEFAULT_CHARSET,this.markers=[],this._nullCell=j.CellData.fromCharData([0,L.NULL_CELL_CHAR,L.NULL_CELL_WIDTH,L.NULL_CELL_CODE]),this._whitespaceCell=j.CellData.fromCharData([0,L.WHITESPACE_CELL_CHAR,L.WHITESPACE_CELL_WIDTH,L.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return T.prototype.getNullCell=function(M){return M?(this._nullCell.fg=M.fg,this._nullCell.bg=M.bg,this._nullCell.extended=M.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new O.ExtendedAttrs),this._nullCell},T.prototype.getWhitespaceCell=function(M){return M?(this._whitespaceCell.fg=M.fg,this._whitespaceCell.bg=M.bg,this._whitespaceCell.extended=M.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new O.ExtendedAttrs),this._whitespaceCell},T.prototype.getBlankLine=function(M,x){return new D.BufferLine(this._bufferService.cols,this.getNullCell(M),x)},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 x=this.ybase+this.y-this.ydisp;return x>=0&&x<this._rows},enumerable:!1,configurable:!0}),T.prototype._getCorrectBufferLength=function(M){if(!this._hasScrollback)return M;var x=M+this._optionsService.rawOptions.scrollback;return x>A.MAX_BUFFER_SIZE?A.MAX_BUFFER_SIZE:x},T.prototype.fillViewportRows=function(M){if(0===this.lines.length){void 0===M&&(M=D.DEFAULT_ATTR_DATA);for(var x=this._rows;x--;)this.lines.push(this.getBlankLine(M))}},T.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new E.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},T.prototype.resize=function(M,x){var N=this.getNullCell(D.DEFAULT_ATTR_DATA),F=this._getCorrectBufferLength(x);if(F>this.lines.maxLength&&(this.lines.maxLength=F),this.lines.length>0){if(this._cols<M)for(var X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);var $=0;if(this._rows<x)for(var Y=this._rows;Y<x;Y++)this.lines.length<x+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new D.BufferLine(M,N)):this.ybase>0&&this.lines.length<=this.ybase+this.y+$+1?(this.ybase--,$++,this.ydisp>0&&this.ydisp--):this.lines.push(new D.BufferLine(M,N)));else for(Y=this._rows;Y>x;Y--)this.lines.length>x+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(F<this.lines.maxLength){var Q=this.lines.length-F;Q>0&&(this.lines.trimStart(Q),this.ybase=Math.max(this.ybase-Q,0),this.ydisp=Math.max(this.ydisp-Q,0),this.savedY=Math.max(this.savedY-Q,0)),this.lines.maxLength=F}this.x=Math.min(this.x,M-1),this.y=Math.min(this.y,x-1),$&&(this.y+=$),this.savedX=Math.min(this.savedX,M-1),this.scrollTop=0}if(this.scrollBottom=x-1,this._isReflowEnabled&&(this._reflow(M,x),this._cols>M))for(X=0;X<this.lines.length;X++)this.lines.get(X).resize(M,N);this._cols=M,this._rows=x},Object.defineProperty(T.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),T.prototype._reflow=function(M,x){this._cols!==M&&(M>this._cols?this._reflowLarger(M,x):this._reflowSmaller(M,x))},T.prototype._reflowLarger=function(M,x){var N=(0,v.reflowLargerGetLinesToRemove)(this.lines,this._cols,M,this.ybase+this.y,this.getNullCell(D.DEFAULT_ATTR_DATA));if(N.length>0){var F=(0,v.reflowLargerCreateNewLayout)(this.lines,N);(0,v.reflowLargerApplyNewLayout)(this.lines,F.layout),this._reflowLargerAdjustViewport(M,x,F.countRemoved)}},T.prototype._reflowLargerAdjustViewport=function(M,x,N){for(var F=this.getNullCell(D.DEFAULT_ATTR_DATA),X=N;X-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length<x&&this.lines.push(new D.BufferLine(M,F))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-N,0)},T.prototype._reflowSmaller=function(M,x){for(var N=this.getNullCell(D.DEFAULT_ATTR_DATA),F=[],X=0,$=this.lines.length-1;$>=0;$--){var Y=this.lines.get($);if(!(!Y||!Y.isWrapped&&Y.getTrimmedLength()<=M)){for(var Q=[Y];Y.isWrapped&&$>0;)Y=this.lines.get(--$),Q.unshift(Y);var ne=this.ybase+this.y;if(!(ne>=$&&ne<$+Q.length)){var be,pe=Q[Q.length-1].getTrimmedLength(),de=(0,v.reflowSmallerGetNewLineLengths)(Q,this._cols,M),le=de.length-Q.length;be=0===this.ybase&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+le):Math.max(0,this.lines.length-this.lines.maxLength+le);for(var ce=[],me=0;me<le;me++){var je=this.getBlankLine(D.DEFAULT_ATTR_DATA,!0);ce.push(je)}ce.length>0&&(F.push({start:$+Q.length+X,newLines:ce}),X+=ce.length),Q.push.apply(Q,P([],R(ce),!1));var at=de.length-1,Mt=de[at];0===Mt&&(Mt=de[--at]);for(var Tt=Q.length-le-1,xt=pe;Tt>=0;){var Lt=Math.min(xt,Mt);if(void 0===Q[at])break;if(Q[at].copyCellsFrom(Q[Tt],xt-Lt,Mt-Lt,Lt,!0),0==(Mt-=Lt)&&(Mt=de[--at]),0==(xt-=Lt)){Tt--;var Ze=Math.max(Tt,0);xt=(0,v.getWrappedLineTrimmedLength)(Q,Ze,this._cols)}}for(me=0;me<Q.length;me++)de[me]<M&&Q[me].setCell(de[me],N);for(var $t=le-be;$t-- >0;)0===this.ybase?this.y<x-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+X)-x&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+le,this.ybase+x-1)}}}if(F.length>0){var Ft=[],fn=[];for(me=0;me<this.lines.length;me++)fn.push(this.lines.get(me));var nt=this.lines.length,Ot=nt-1,_t=0,Ct=F[_t];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+X);var We=0;for(me=Math.min(this.lines.maxLength-1,nt+X-1);me>=0;me--)if(Ct&&Ct.start>Ot+We){for(var lt=Ct.newLines.length-1;lt>=0;lt--)this.lines.set(me--,Ct.newLines[lt]);me++,Ft.push({index:Ot+1,amount:Ct.newLines.length}),We+=Ct.newLines.length,Ct=F[++_t]}else this.lines.set(me,fn[Ot--]);var dt=0;for(me=Ft.length-1;me>=0;me--)Ft[me].index+=dt,this.lines.onInsertEmitter.fire(Ft[me]),dt+=Ft[me].amount;var Ut=Math.max(0,nt+X-this.lines.maxLength);Ut>0&&this.lines.onTrimEmitter.fire(Ut)}},T.prototype.stringIndexToBufferIndex=function(M,x,N){for(void 0===N&&(N=!1);x;){var F=this.lines.get(M);if(!F)return[-1,-1];for(var X=N?F.getTrimmedLength():F.length,$=0;$<X;++$)if(F.get($)[L.CHAR_DATA_WIDTH_INDEX]&&(x-=F.get($)[L.CHAR_DATA_CHAR_INDEX].length||1),x<0)return[M,$];M++}return[M,0]},T.prototype.translateBufferLineToString=function(M,x,N,F){void 0===N&&(N=0);var X=this.lines.get(M);return X?X.translateToString(x,N,F):""},T.prototype.getWrappedRangeForLine=function(M){for(var x=M,N=M;x>0&&this.lines.get(x).isWrapped;)x--;for(;N+1<this.lines.length&&this.lines.get(N+1).isWrapped;)N++;return{first:x,last:N}},T.prototype.setupTabStops=function(M){for(null!=M?this.tabs[M]||(M=this.prevStop(M)):(this.tabs={},M=0);M<this._cols;M+=this._optionsService.rawOptions.tabStopWidth)this.tabs[M]=!0},T.prototype.prevStop=function(M){for(null==M&&(M=this.x);!this.tabs[--M]&&M>0;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.nextStop=function(M){for(null==M&&(M=this.x);!this.tabs[++M]&&M<this._cols;);return M>=this._cols?this._cols-1:M<0?0:M},T.prototype.clearMarkers=function(M){this._isClearing=!0;for(var x=0;x<this.markers.length;x++)this.markers[x].line===M&&(this.markers[x].dispose(),this.markers.splice(x--,1));this._isClearing=!1},T.prototype.clearAllMarkers=function(){this._isClearing=!0;for(var M=0;M<this.markers.length;M++)this.markers[M].dispose(),this.markers.splice(M--,1);this._isClearing=!1},T.prototype.addMarker=function(M){var x=this,N=new k.Marker(M);return this.markers.push(N),N.register(this.lines.onTrim(function(F){N.line-=F,N.line<0&&N.dispose()})),N.register(this.lines.onInsert(function(F){N.line>=F.index&&(N.line+=F.amount)})),N.register(this.lines.onDelete(function(F){N.line>=F.index&&N.line<F.index+F.amount&&N.dispose(),N.line>F.index&&(N.line-=F.amount)})),N.register(N.onDispose(function(){return x._removeMarker(N)})),N},T.prototype._removeMarker=function(M){this._isClearing||this.markers.splice(this.markers.indexOf(M),1)},T.prototype.iterator=function(M,x,N,F,X){return new y(this,M,x,N,F,X)},T}();A.Buffer=S;var y=function(){function T(M,x,N,F,X,$){void 0===N&&(N=0),void 0===F&&(F=M.lines.length),void 0===X&&(X=0),void 0===$&&($=0),this._buffer=M,this._trimRight=x,this._startIndex=N,this._endIndex=F,this._startOverscan=X,this._endOverscan=$,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return T.prototype.hasNext=function(){return this._current<this._endIndex},T.prototype.next=function(){var M=this._buffer.getWrappedRangeForLine(this._current);M.first<this._startIndex-this._startOverscan&&(M.first=this._startIndex-this._startOverscan),M.last>this._endIndex+this._endOverscan&&(M.last=this._endIndex+this._endOverscan),M.first=Math.max(M.first,0),M.last=Math.min(M.last,this._buffer.lines.length);for(var x="",N=M.first;N<=M.last;++N)x+=this._buffer.translateBufferLineToString(N,this._trimRight);return this._current=M.last+1,{range:M,content:x}},T}();A.BufferStringIterator=y},8437:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLine=A.DEFAULT_ATTR_DATA=void 0;var R=U(482),P=U(643),E=U(511),D=U(3734);A.DEFAULT_ATTR_DATA=Object.freeze(new D.AttributeData);var j=function(){function L(v,k,b){void 0===b&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*v);for(var O=k||E.CellData.fromCharData([0,P.NULL_CELL_CHAR,P.NULL_CELL_WIDTH,P.NULL_CELL_CODE]),S=0;S<v;++S)this.setCell(S,O);this.length=v}return L.prototype.get=function(v){var k=this._data[3*v+0],b=2097151&k;return[this._data[3*v+1],2097152&k?this._combined[v]:b?(0,R.stringFromCodePoint)(b):"",k>>22,2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):b]},L.prototype.set=function(v,k){this._data[3*v+1]=k[P.CHAR_DATA_ATTR_INDEX],k[P.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[v]=k[1],this._data[3*v+0]=2097152|v|k[P.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*v+0]=k[P.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|k[P.CHAR_DATA_WIDTH_INDEX]<<22},L.prototype.getWidth=function(v){return this._data[3*v+0]>>22},L.prototype.hasWidth=function(v){return 12582912&this._data[3*v+0]},L.prototype.getFg=function(v){return this._data[3*v+1]},L.prototype.getBg=function(v){return this._data[3*v+2]},L.prototype.hasContent=function(v){return 4194303&this._data[3*v+0]},L.prototype.getCodePoint=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v].charCodeAt(this._combined[v].length-1):2097151&k},L.prototype.isCombined=function(v){return 2097152&this._data[3*v+0]},L.prototype.getString=function(v){var k=this._data[3*v+0];return 2097152&k?this._combined[v]:2097151&k?(0,R.stringFromCodePoint)(2097151&k):""},L.prototype.loadCell=function(v,k){var b=3*v;return k.content=this._data[b+0],k.fg=this._data[b+1],k.bg=this._data[b+2],2097152&k.content&&(k.combinedData=this._combined[v]),268435456&k.bg&&(k.extended=this._extendedAttrs[v]),k},L.prototype.setCell=function(v,k){2097152&k.content&&(this._combined[v]=k.combinedData),268435456&k.bg&&(this._extendedAttrs[v]=k.extended),this._data[3*v+0]=k.content,this._data[3*v+1]=k.fg,this._data[3*v+2]=k.bg},L.prototype.setCellFromCodePoint=function(v,k,b,O,S,y){268435456&S&&(this._extendedAttrs[v]=y),this._data[3*v+0]=k|b<<22,this._data[3*v+1]=O,this._data[3*v+2]=S},L.prototype.addCodepointToCell=function(v,k){var b=this._data[3*v+0];2097152&b?this._combined[v]+=(0,R.stringFromCodePoint)(k):(2097151&b?(this._combined[v]=(0,R.stringFromCodePoint)(2097151&b)+(0,R.stringFromCodePoint)(k),b&=-2097152,b|=2097152):b=k|1<<22,this._data[3*v+0]=b)},L.prototype.insertCells=function(v,k,b,O){if((v%=this.length)&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length-v){for(var S=new E.CellData,y=this.length-v-k-1;y>=0;--y)this.setCell(v+k+y,this.loadCell(v+y,S));for(y=0;y<k;++y)this.setCell(v+y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);2===this.getWidth(this.length-1)&&this.setCellFromCodePoint(this.length-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.deleteCells=function(v,k,b,O){if(v%=this.length,k<this.length-v){for(var S=new E.CellData,y=0;y<this.length-v-k;++y)this.setCell(v+y,this.loadCell(v+k+y,S));for(y=this.length-k;y<this.length;++y)this.setCell(y,b)}else for(y=v;y<this.length;++y)this.setCell(y,b);v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),0!==this.getWidth(v)||this.hasContent(v)||this.setCellFromCodePoint(v,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs)},L.prototype.replaceCells=function(v,k,b,O){for(v&&2===this.getWidth(v-1)&&this.setCellFromCodePoint(v-1,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs),k<this.length&&2===this.getWidth(k-1)&&this.setCellFromCodePoint(k,0,1,(null==O?void 0:O.fg)||0,(null==O?void 0:O.bg)||0,(null==O?void 0:O.extended)||new D.ExtendedAttrs);v<k&&v<this.length;)this.setCell(v++,b)},L.prototype.resize=function(v,k){if(v!==this.length){if(v>this.length){var b=new Uint32Array(3*v);this.length&&(3*v<this._data.length?b.set(this._data.subarray(0,3*v)):b.set(this._data)),this._data=b;for(var O=this.length;O<v;++O)this.setCell(O,k)}else if(v){(b=new Uint32Array(3*v)).set(this._data.subarray(0,3*v)),this._data=b;var S=Object.keys(this._combined);for(O=0;O<S.length;O++){var y=parseInt(S[O],10);y>=v&&delete this._combined[y]}}else this._data=new Uint32Array(0),this._combined={};this.length=v}},L.prototype.fill=function(v){this._combined={},this._extendedAttrs={};for(var k=0;k<this.length;++k)this.setCell(k,v)},L.prototype.copyFrom=function(v){for(var k in this.length!==v.length?this._data=new Uint32Array(v._data):this._data.set(v._data),this.length=v.length,this._combined={},v._combined)this._combined[k]=v._combined[k];for(var k in this._extendedAttrs={},v._extendedAttrs)this._extendedAttrs[k]=v._extendedAttrs[k];this.isWrapped=v.isWrapped},L.prototype.clone=function(){var v=new L(0);for(var k in v._data=new Uint32Array(this._data),v.length=this.length,this._combined)v._combined[k]=this._combined[k];for(var k in this._extendedAttrs)v._extendedAttrs[k]=this._extendedAttrs[k];return v.isWrapped=this.isWrapped,v},L.prototype.getTrimmedLength=function(){for(var v=this.length-1;v>=0;--v)if(4194303&this._data[3*v+0])return v+(this._data[3*v+0]>>22);return 0},L.prototype.copyCellsFrom=function(v,k,b,O,S){var y=v._data;if(S)for(var T=O-1;T>=0;T--)for(var M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];else for(T=0;T<O;T++)for(M=0;M<3;M++)this._data[3*(b+T)+M]=y[3*(k+T)+M];var x=Object.keys(v._combined);for(M=0;M<x.length;M++){var N=parseInt(x[M],10);N>=k&&(this._combined[N-k+b]=v._combined[N])}},L.prototype.translateToString=function(v,k,b){void 0===v&&(v=!1),void 0===k&&(k=0),void 0===b&&(b=this.length),v&&(b=Math.min(b,this.getTrimmedLength()));for(var O="";k<b;){var S=this._data[3*k+0],y=2097151&S;O+=2097152&S?this._combined[k]:y?(0,R.stringFromCodePoint)(y):P.WHITESPACE_CELL_CHAR,k+=S>>22||1}return O},L}();A.BufferLine=j},4841:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.getRangeLength=void 0,A.getRangeLength=function(U,R){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 R*(U.end.y-U.start.y)+(U.end.x-U.start.x+1)}},4634:function(W,A){function U(R,P,E){if(P===R.length-1)return R[P].getTrimmedLength();var D=!R[P].hasContent(E-1)&&1===R[P].getWidth(E-1),j=2===R[P+1].getWidth(0);return D&&j?E-1:E}Object.defineProperty(A,"__esModule",{value:!0}),A.getWrappedLineTrimmedLength=A.reflowSmallerGetNewLineLengths=A.reflowLargerApplyNewLayout=A.reflowLargerCreateNewLayout=A.reflowLargerGetLinesToRemove=void 0,A.reflowLargerGetLinesToRemove=function(R,P,E,D,j){for(var L=[],v=0;v<R.length-1;v++){var k=v,b=R.get(++k);if(b.isWrapped){for(var O=[R.get(v)];k<R.length&&b.isWrapped;)O.push(b),b=R.get(++k);if(D>=v&&D<k)v+=O.length-1;else{for(var S=0,y=U(O,S,P),T=1,M=0;T<O.length;){var x=U(O,T,P),N=x-M,F=E-y,X=Math.min(N,F);O[S].copyCellsFrom(O[T],M,y,X,!1),(y+=X)===E&&(S++,y=0),(M+=X)===x&&(T++,M=0),0===y&&0!==S&&2===O[S-1].getWidth(E-1)&&(O[S].copyCellsFrom(O[S-1],E-1,y++,1,!1),O[S-1].setCell(E-1,j))}O[S].replaceCells(y,E,j);for(var $=0,Y=O.length-1;Y>0&&(Y>S||0===O[Y].getTrimmedLength());Y--)$++;$>0&&(L.push(v+O.length-$),L.push($)),v+=O.length-1}}}return L},A.reflowLargerCreateNewLayout=function(R,P){for(var E=[],D=0,j=P[D],L=0,v=0;v<R.length;v++)if(j===v){var k=P[++D];R.onDeleteEmitter.fire({index:v-L,amount:k}),v+=k-1,L+=k,j=P[++D]}else E.push(v);return{layout:E,countRemoved:L}},A.reflowLargerApplyNewLayout=function(R,P){for(var E=[],D=0;D<P.length;D++)E.push(R.get(P[D]));for(D=0;D<E.length;D++)R.set(D,E[D]);R.length=P.length},A.reflowSmallerGetNewLineLengths=function(R,P,E){for(var D=[],j=R.map(function(y,T){return U(R,T,P)}).reduce(function(y,T){return y+T}),L=0,v=0,k=0;k<j;){if(j-k<E){D.push(j-k);break}L+=E;var b=U(R,v,P);L>b&&(L-=b,v++);var O=2===R[v].getWidth(L-1);O&&L--;var S=O?E-1:E;D.push(S),k+=S}return D},A.getWrappedLineTrimmedLength=U},5295:function(W,A,U){var R,P=this&&this.__extends||(R=function(v,k){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var S in O)Object.prototype.hasOwnProperty.call(O,S)&&(b[S]=O[S])})(v,k)},function(L,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function k(){this.constructor=L}R(L,v),L.prototype=null===v?Object.create(v):(k.prototype=v.prototype,new k)});Object.defineProperty(A,"__esModule",{value:!0}),A.BufferSet=void 0;var E=U(9092),D=U(8460),j=function(L){function v(k,b){var O=L.call(this)||this;return O._optionsService=k,O._bufferService=b,O._onBufferActivate=O.register(new D.EventEmitter),O.reset(),O}return P(v,L),Object.defineProperty(v.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),v.prototype.reset=function(){this._normal=new E.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new E.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(v.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),v.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},v.prototype.activateAltBuffer=function(k){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(k),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},v.prototype.resize=function(k,b){this._normal.resize(k,b),this._alt.resize(k,b)},v.prototype.setupTabStops=function(k){this._normal.setupTabStops(k),this._alt.setupTabStops(k)},v}(U(844).Disposable);A.BufferSet=j},511:function(W,A,U){var R,P=this&&this.__extends||(R=function(k,b){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,S){O.__proto__=S}||function(O,S){for(var y in S)Object.prototype.hasOwnProperty.call(S,y)&&(O[y]=S[y])})(k,b)},function(v,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function b(){this.constructor=v}R(v,k),v.prototype=null===k?Object.create(k):(b.prototype=k.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.CellData=void 0;var E=U(482),D=U(643),j=U(3734),L=function(v){function k(){var b=null!==v&&v.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new j.ExtendedAttrs,b.combinedData="",b}return P(k,v),k.fromCharData=function(b){var O=new k;return O.setFromCharData(b),O},k.prototype.isCombined=function(){return 2097152&this.content},k.prototype.getWidth=function(){return this.content>>22},k.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,E.stringFromCodePoint)(2097151&this.content):""},k.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},k.prototype.setFromCharData=function(b){this.fg=b[D.CHAR_DATA_ATTR_INDEX],this.bg=0;var O=!1;if(b[D.CHAR_DATA_CHAR_INDEX].length>2)O=!0;else if(2===b[D.CHAR_DATA_CHAR_INDEX].length){var S=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=S&&S<=56319){var y=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=y&&y<=57343?this.content=1024*(S-55296)+y-56320+65536|b[D.CHAR_DATA_WIDTH_INDEX]<<22:O=!0}else O=!0}else this.content=b[D.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[D.CHAR_DATA_WIDTH_INDEX]<<22;O&&(this.combinedData=b[D.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[D.CHAR_DATA_WIDTH_INDEX]<<22)},k.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},k}(j.AttributeData);A.CellData=L},643:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.WHITESPACE_CELL_CODE=A.WHITESPACE_CELL_WIDTH=A.WHITESPACE_CELL_CHAR=A.NULL_CELL_CODE=A.NULL_CELL_WIDTH=A.NULL_CELL_CHAR=A.CHAR_DATA_CODE_INDEX=A.CHAR_DATA_WIDTH_INDEX=A.CHAR_DATA_CHAR_INDEX=A.CHAR_DATA_ATTR_INDEX=A.DEFAULT_ATTR=A.DEFAULT_COLOR=void 0,A.DEFAULT_COLOR=256,A.DEFAULT_ATTR=256|A.DEFAULT_COLOR<<9,A.CHAR_DATA_ATTR_INDEX=0,A.CHAR_DATA_CHAR_INDEX=1,A.CHAR_DATA_WIDTH_INDEX=2,A.CHAR_DATA_CODE_INDEX=3,A.NULL_CELL_CHAR="",A.NULL_CELL_WIDTH=1,A.NULL_CELL_CODE=0,A.WHITESPACE_CELL_CHAR=" ",A.WHITESPACE_CELL_WIDTH=1,A.WHITESPACE_CELL_CODE=32},4863:function(W,A,U){var R,P=this&&this.__extends||(R=function(L,v){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,b){k.__proto__=b}||function(k,b){for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(k[O]=b[O])})(L,v)},function(j,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function v(){this.constructor=j}R(j,L),j.prototype=null===L?Object.create(L):(v.prototype=L.prototype,new v)});Object.defineProperty(A,"__esModule",{value:!0}),A.Marker=void 0;var E=U(8460),D=function(j){function L(v){var k=j.call(this)||this;return k.line=v,k._id=L._nextId++,k.isDisposed=!1,k._onDispose=new E.EventEmitter,k}return P(L,j),Object.defineProperty(L.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),j.prototype.dispose.call(this))},L._nextId=1,L}(U(844).Disposable);A.Marker=D},7116:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.DEFAULT_CHARSET=A.CHARSETS=void 0,A.CHARSETS={},A.DEFAULT_CHARSET=A.CHARSETS.B,A.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},A.CHARSETS.A={"#":"\xa3"},A.CHARSETS.B=void 0,A.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},A.CHARSETS.C=A.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},A.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},A.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},A.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},A.CHARSETS.E=A.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},A.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},A.CHARSETS.H=A.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},A.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:function(W,A){var U,R,P;Object.defineProperty(A,"__esModule",{value:!0}),A.C1_ESCAPED=A.C1=A.C0=void 0,(P=U=A.C0||(A.C0={})).NUL="\0",P.SOH="\x01",P.STX="\x02",P.ETX="\x03",P.EOT="\x04",P.ENQ="\x05",P.ACK="\x06",P.BEL="\x07",P.BS="\b",P.HT="\t",P.LF="\n",P.VT="\v",P.FF="\f",P.CR="\r",P.SO="\x0e",P.SI="\x0f",P.DLE="\x10",P.DC1="\x11",P.DC2="\x12",P.DC3="\x13",P.DC4="\x14",P.NAK="\x15",P.SYN="\x16",P.ETB="\x17",P.CAN="\x18",P.EM="\x19",P.SUB="\x1a",P.ESC="\x1b",P.FS="\x1c",P.GS="\x1d",P.RS="\x1e",P.US="\x1f",P.SP=" ",P.DEL="\x7f",(R=A.C1||(A.C1={})).PAD="\x80",R.HOP="\x81",R.BPH="\x82",R.NBH="\x83",R.IND="\x84",R.NEL="\x85",R.SSA="\x86",R.ESA="\x87",R.HTS="\x88",R.HTJ="\x89",R.VTS="\x8a",R.PLD="\x8b",R.PLU="\x8c",R.RI="\x8d",R.SS2="\x8e",R.SS3="\x8f",R.DCS="\x90",R.PU1="\x91",R.PU2="\x92",R.STS="\x93",R.CCH="\x94",R.MW="\x95",R.SPA="\x96",R.EPA="\x97",R.SOS="\x98",R.SGCI="\x99",R.SCI="\x9a",R.CSI="\x9b",R.ST="\x9c",R.OSC="\x9d",R.PM="\x9e",R.APC="\x9f",(A.C1_ESCAPED||(A.C1_ESCAPED={})).ST=U.ESC+"\\"},7399:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.evaluateKeyboardEvent=void 0;var R=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:["'",'"']};A.evaluateKeyboardEvent=function(E,D,j,L){var v={type:0,cancel:!1,key:void 0},k=(E.shiftKey?1:0)|(E.altKey?2:0)|(E.ctrlKey?4:0)|(E.metaKey?8:0);switch(E.keyCode){case 0:"UIKeyInputUpArrow"===E.key?v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A":"UIKeyInputLeftArrow"===E.key?v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D":"UIKeyInputRightArrow"===E.key?v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C":"UIKeyInputDownArrow"===E.key&&(v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B");break;case 8:if(E.shiftKey){v.key=R.C0.BS;break}if(E.altKey){v.key=R.C0.ESC+R.C0.DEL;break}v.key=R.C0.DEL;break;case 9:if(E.shiftKey){v.key=R.C0.ESC+"[Z";break}v.key=R.C0.HT,v.cancel=!0;break;case 13:v.key=E.altKey?R.C0.ESC+R.C0.CR:R.C0.CR,v.cancel=!0;break;case 27:v.key=R.C0.ESC,E.altKey&&(v.key=R.C0.ESC+R.C0.ESC),v.cancel=!0;break;case 37:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"D",v.key===R.C0.ESC+"[1;3D"&&(v.key=R.C0.ESC+(j?"b":"[1;5D"))):v.key=D?R.C0.ESC+"OD":R.C0.ESC+"[D";break;case 39:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"C",v.key===R.C0.ESC+"[1;3C"&&(v.key=R.C0.ESC+(j?"f":"[1;5C"))):v.key=D?R.C0.ESC+"OC":R.C0.ESC+"[C";break;case 38:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"A",j||v.key!==R.C0.ESC+"[1;3A"||(v.key=R.C0.ESC+"[1;5A")):v.key=D?R.C0.ESC+"OA":R.C0.ESC+"[A";break;case 40:if(E.metaKey)break;k?(v.key=R.C0.ESC+"[1;"+(k+1)+"B",j||v.key!==R.C0.ESC+"[1;3B"||(v.key=R.C0.ESC+"[1;5B")):v.key=D?R.C0.ESC+"OB":R.C0.ESC+"[B";break;case 45:E.shiftKey||E.ctrlKey||(v.key=R.C0.ESC+"[2~");break;case 46:v.key=k?R.C0.ESC+"[3;"+(k+1)+"~":R.C0.ESC+"[3~";break;case 36:v.key=k?R.C0.ESC+"[1;"+(k+1)+"H":D?R.C0.ESC+"OH":R.C0.ESC+"[H";break;case 35:v.key=k?R.C0.ESC+"[1;"+(k+1)+"F":D?R.C0.ESC+"OF":R.C0.ESC+"[F";break;case 33:E.shiftKey?v.type=2:E.ctrlKey?v.key=R.C0.ESC+"[5;"+(k+1)+"~":v.key=R.C0.ESC+"[5~";break;case 34:E.shiftKey?v.type=3:E.ctrlKey?v.key=R.C0.ESC+"[6;"+(k+1)+"~":v.key=R.C0.ESC+"[6~";break;case 112:v.key=k?R.C0.ESC+"[1;"+(k+1)+"P":R.C0.ESC+"OP";break;case 113:v.key=k?R.C0.ESC+"[1;"+(k+1)+"Q":R.C0.ESC+"OQ";break;case 114:v.key=k?R.C0.ESC+"[1;"+(k+1)+"R":R.C0.ESC+"OR";break;case 115:v.key=k?R.C0.ESC+"[1;"+(k+1)+"S":R.C0.ESC+"OS";break;case 116:v.key=k?R.C0.ESC+"[15;"+(k+1)+"~":R.C0.ESC+"[15~";break;case 117:v.key=k?R.C0.ESC+"[17;"+(k+1)+"~":R.C0.ESC+"[17~";break;case 118:v.key=k?R.C0.ESC+"[18;"+(k+1)+"~":R.C0.ESC+"[18~";break;case 119:v.key=k?R.C0.ESC+"[19;"+(k+1)+"~":R.C0.ESC+"[19~";break;case 120:v.key=k?R.C0.ESC+"[20;"+(k+1)+"~":R.C0.ESC+"[20~";break;case 121:v.key=k?R.C0.ESC+"[21;"+(k+1)+"~":R.C0.ESC+"[21~";break;case 122:v.key=k?R.C0.ESC+"[23;"+(k+1)+"~":R.C0.ESC+"[23~";break;case 123:v.key=k?R.C0.ESC+"[24;"+(k+1)+"~":R.C0.ESC+"[24~";break;default:if(!E.ctrlKey||E.shiftKey||E.altKey||E.metaKey)if(j&&!L||!E.altKey||E.metaKey)!j||E.altKey||E.ctrlKey||E.shiftKey||!E.metaKey?E.key&&!E.ctrlKey&&!E.altKey&&!E.metaKey&&E.keyCode>=48&&1===E.key.length?v.key=E.key:E.key&&E.ctrlKey&&("_"===E.key&&(v.key=R.C0.US),"@"===E.key&&(v.key=R.C0.NUL)):65===E.keyCode&&(v.type=1);else{var b=P[E.keyCode],O=null==b?void 0:b[E.shiftKey?1:0];if(O)v.key=R.C0.ESC+O;else if(E.keyCode>=65&&E.keyCode<=90){var S=E.ctrlKey?E.keyCode-64:E.keyCode+32,y=String.fromCharCode(S);E.shiftKey&&(y=y.toUpperCase()),v.key=R.C0.ESC+y}else"Dead"===E.key&&E.code.startsWith("Key")&&(y=E.code.slice(3,4),E.shiftKey||(y=y.toLowerCase()),v.key=R.C0.ESC+y,v.cancel=!0)}else E.keyCode>=65&&E.keyCode<=90?v.key=String.fromCharCode(E.keyCode-64):32===E.keyCode?v.key=R.C0.NUL:E.keyCode>=51&&E.keyCode<=55?v.key=String.fromCharCode(E.keyCode-51+27):56===E.keyCode?v.key=R.C0.DEL:219===E.keyCode?v.key=R.C0.ESC:220===E.keyCode?v.key=R.C0.FS:221===E.keyCode&&(v.key=R.C0.GS)}return v}},482:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Utf8ToUtf32=A.StringToUtf32=A.utf32ToString=A.stringFromCodePoint=void 0,A.stringFromCodePoint=function(P){return P>65535?(P-=65536,String.fromCharCode(55296+(P>>10))+String.fromCharCode(P%1024+56320)):String.fromCharCode(P)},A.utf32ToString=function(P,E,D){void 0===E&&(E=0),void 0===D&&(D=P.length);for(var j="",L=E;L<D;++L){var v=P[L];v>65535?(v-=65536,j+=String.fromCharCode(55296+(v>>10))+String.fromCharCode(v%1024+56320)):j+=String.fromCharCode(v)}return j};var U=function(){function P(){this._interim=0}return P.prototype.clear=function(){this._interim=0},P.prototype.decode=function(E,D){var j=E.length;if(!j)return 0;var L=0,v=0;this._interim&&(56320<=(O=E.charCodeAt(v++))&&O<=57343?D[L++]=1024*(this._interim-55296)+O-56320+65536:(D[L++]=this._interim,D[L++]=O),this._interim=0);for(var k=v;k<j;++k){var b=E.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=j)return this._interim=b,L;var O;56320<=(O=E.charCodeAt(k))&&O<=57343?D[L++]=1024*(b-55296)+O-56320+65536:(D[L++]=b,D[L++]=O)}else 65279!==b&&(D[L++]=b)}return L},P}();A.StringToUtf32=U;var R=function(){function P(){this.interim=new Uint8Array(3)}return P.prototype.clear=function(){this.interim.fill(0)},P.prototype.decode=function(E,D){var j=E.length;if(!j)return 0;var L,v,k,b,O=0,S=0,y=0;if(this.interim[0]){var T=!1,M=this.interim[0];M&=192==(224&M)?31:224==(240&M)?15:7;for(var x=0,N=void 0;(N=63&this.interim[++x])&&x<4;)M<<=6,M|=N;for(var F=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,X=F-x;y<X;){if(y>=j)return 0;if(128!=(192&(N=E[y++]))){y--,T=!0;break}this.interim[x++]=N,M<<=6,M|=63&N}T||(2===F?M<128?y--:D[O++]=M:3===F?M<2048||M>=55296&&M<=57343||65279===M||(D[O++]=M):M<65536||M>1114111||(D[O++]=M)),this.interim.fill(0)}for(var $=j-4,Y=y;Y<j;){for(;!(!(Y<$)||128&(L=E[Y])||128&(v=E[Y+1])||128&(k=E[Y+2])||128&(b=E[Y+3]));)D[O++]=L,D[O++]=v,D[O++]=k,D[O++]=b,Y+=4;if((L=E[Y++])<128)D[O++]=L;else if(192==(224&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[Y++]))){Y--;continue}if((S=(31&L)<<6|63&v)<128){Y--;continue}D[O++]=S}else if(224==(240&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=E[Y++]))){Y--;continue}if((S=(15&L)<<12|(63&v)<<6|63&k)<2048||S>=55296&&S<=57343||65279===S)continue;D[O++]=S}else if(240==(248&L)){if(Y>=j)return this.interim[0]=L,O;if(128!=(192&(v=E[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,O;if(128!=(192&(k=E[Y++]))){Y--;continue}if(Y>=j)return this.interim[0]=L,this.interim[1]=v,this.interim[2]=k,O;if(128!=(192&(b=E[Y++]))){Y--;continue}if((S=(7&L)<<18|(63&v)<<12|(63&k)<<6|63&b)<65536||S>1114111)continue;D[O++]=S}}return O},P}();A.Utf8ToUtf32=R},225:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeV6=void 0;var R,P=U(8273),E=[[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]],D=[[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]],j=function(){function L(){if(this.version="6",!R){R=new Uint8Array(65536),(0,P.fill)(R,1),R[0]=0,(0,P.fill)(R,0,1,32),(0,P.fill)(R,0,127,160),(0,P.fill)(R,2,4352,4448),R[9001]=2,R[9002]=2,(0,P.fill)(R,2,11904,42192),R[12351]=1,(0,P.fill)(R,2,44032,55204),(0,P.fill)(R,2,63744,64256),(0,P.fill)(R,2,65040,65050),(0,P.fill)(R,2,65072,65136),(0,P.fill)(R,2,65280,65377),(0,P.fill)(R,2,65504,65511);for(var v=0;v<E.length;++v)(0,P.fill)(R,0,E[v][0],E[v][1]+1)}}return L.prototype.wcwidth=function(v){return v<32?0:v<127?1:v<65536?R[v]:function(k,b){var O,S=0,y=b.length-1;if(k<b[0][0]||k>b[y][1])return!1;for(;y>=S;)if(k>b[O=S+y>>1][1])S=O+1;else{if(!(k<b[O][0]))return!0;y=O-1}return!1}(v,D)?0:v>=131072&&v<=196605||v>=196608&&v<=262141?2:1},L}();A.UnicodeV6=j},5981:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.WriteBuffer=void 0;var R=U(8460),P="undefined"==typeof queueMicrotask?function(D){Promise.resolve().then(D)}:queueMicrotask,E=function(){function D(j){this._action=j,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._onWriteParsed=new R.EventEmitter}return Object.defineProperty(D.prototype,"onWriteParsed",{get:function(){return this._onWriteParsed.event},enumerable:!1,configurable:!0}),D.prototype.writeSync=function(j,L){if(void 0!==L&&this._syncCalls>L)this._syncCalls=0;else if(this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);var k=this._callbacks.shift();k&&k()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},D.prototype.write=function(j,L){var v=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return v._innerWrite()})),this._pendingData+=j.length,this._writeBuffer.push(j),this._callbacks.push(L)},D.prototype._innerWrite=function(j,L){var v=this;void 0===j&&(j=0),void 0===L&&(L=!0);for(var k=j||Date.now();this._writeBuffer.length>this._bufferOffset;){var b=this._writeBuffer[this._bufferOffset],O=this._action(b,L);if(O)return void O.catch(function(y){return P(function(){throw y}),Promise.resolve(!1)}).then(function(y){return Date.now()-k>=12?setTimeout(function(){return v._innerWrite(0,y)}):v._innerWrite(k,y)});var S=this._callbacks[this._bufferOffset];if(S&&S(),this._bufferOffset++,this._pendingData-=b.length,Date.now()-k>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return v._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()},D}();A.WriteBuffer=E},5941:function(W,A){var U=this&&this.__read||function(D,j){var L="function"==typeof Symbol&&D[Symbol.iterator];if(!L)return D;var v,k,b=L.call(D),O=[];try{for(;(void 0===j||j-- >0)&&!(v=b.next()).done;)O.push(v.value)}catch(S){k={error:S}}finally{try{v&&!v.done&&(L=b.return)&&L.call(b)}finally{if(k)throw k.error}}return O};Object.defineProperty(A,"__esModule",{value:!0}),A.toRgbString=A.parseColor=void 0;var R=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,P=/^[\da-f]+$/;function E(D,j){var L=D.toString(16),v=L.length<2?"0"+L:L;switch(j){case 4:return L[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}A.parseColor=function(D){if(D){var j=D.toLowerCase();if(0===j.indexOf("rgb:")){j=j.slice(4);var L=R.exec(j);if(L){var v=L[1]?15:L[4]?255:L[7]?4095:65535;return[Math.round(parseInt(L[1]||L[4]||L[7]||L[10],16)/v*255),Math.round(parseInt(L[2]||L[5]||L[8]||L[11],16)/v*255),Math.round(parseInt(L[3]||L[6]||L[9]||L[12],16)/v*255)]}}else if(0===j.indexOf("#")&&(j=j.slice(1),P.exec(j)&&[3,6,9,12].includes(j.length))){for(var k=j.length/3,b=[0,0,0],O=0;O<3;++O){var S=parseInt(j.slice(k*O,k*O+k),16);b[O]=1===k?S<<4:2===k?S:3===k?S>>4:S>>8}return b}}},A.toRgbString=function(D,j){void 0===j&&(j=16);var L=U(D,3),v=L[0],k=L[1],b=L[2];return"rgb:"+E(v,j)+"/"+E(k,j)+"/"+E(b,j)}},5770:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.PAYLOAD_LIMIT=void 0,A.PAYLOAD_LIMIT=1e7},6351:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.DcsHandler=A.DcsParser=void 0;var R=U(482),P=U(8742),E=U(5770),D=[],j=function(){function k(){this._handlers=Object.create(null),this._active=D,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return k.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=D},k.prototype.registerHandler=function(b,O){void 0===this._handlers[b]&&(this._handlers[b]=[]);var S=this._handlers[b];return S.push(O),{dispose:function(){var T=S.indexOf(O);-1!==T&&S.splice(T,1)}}},k.prototype.clearHandler=function(b){this._handlers[b]&&delete this._handlers[b]},k.prototype.setHandlerFallback=function(b){this._handlerFb=b},k.prototype.reset=function(){if(this._active.length)for(var b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].unhook(!1);this._stack.paused=!1,this._active=D,this._ident=0},k.prototype.hook=function(b,O){if(this.reset(),this._ident=b,this._active=this._handlers[b]||D,this._active.length)for(var S=this._active.length-1;S>=0;S--)this._active[S].hook(O);else this._handlerFb(this._ident,"HOOK",O)},k.prototype.put=function(b,O,S){if(this._active.length)for(var y=this._active.length-1;y>=0;y--)this._active[y].put(b,O,S);else this._handlerFb(this._ident,"PUT",(0,R.utf32ToString)(b,O,S))},k.prototype.unhook=function(b,O){if(void 0===O&&(O=!0),this._active.length){var S=!1,y=this._active.length-1,T=!1;if(this._stack.paused&&(y=this._stack.loopPosition-1,S=O,T=this._stack.fallThrough,this._stack.paused=!1),!T&&!1===S){for(;y>=0&&!0!==(S=this._active[y].unhook(b));y--)if(S instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!1,S;y--}for(;y>=0;y--)if((S=this._active[y].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=y,this._stack.fallThrough=!0,S}else this._handlerFb(this._ident,"UNHOOK",b);this._active=D,this._ident=0},k}();A.DcsParser=j;var L=new P.Params;L.addParam(0);var v=function(){function k(b){this._handler=b,this._data="",this._params=L,this._hitLimit=!1}return k.prototype.hook=function(b){this._params=b.length>1||b.params[0]?b.clone():L,this._data="",this._hitLimit=!1},k.prototype.put=function(b,O,S){this._hitLimit||(this._data+=(0,R.utf32ToString)(b,O,S),this._data.length>E.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},k.prototype.unhook=function(b){var O=this,S=!1;if(this._hitLimit)S=!1;else if(b&&(S=this._handler(this._data,this._params))instanceof Promise)return S.then(function(y){return O._params=L,O._data="",O._hitLimit=!1,y});return this._params=L,this._data="",this._hitLimit=!1,S},k}();A.DcsHandler=v},2015:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)});Object.defineProperty(A,"__esModule",{value:!0}),A.EscapeSequenceParser=A.VT500_TRANSITION_TABLE=A.TransitionTable=void 0;var E=U(844),D=U(8273),j=U(8742),L=U(6242),v=U(6351),k=function(){function S(y){this.table=new Uint8Array(y)}return S.prototype.setDefault=function(y,T){(0,D.fill)(this.table,y<<4|T)},S.prototype.add=function(y,T,M,x){this.table[T<<8|y]=M<<4|x},S.prototype.addMany=function(y,T,M,x){for(var N=0;N<y.length;N++)this.table[T<<8|y[N]]=M<<4|x},S}();A.TransitionTable=k;var b=160;A.VT500_TRANSITION_TABLE=function(){var S=new k(4095),y=Array.apply(null,Array(256)).map(function(X,$){return $}),T=function($,Y){return y.slice($,Y)},M=T(32,127),x=T(0,24);x.push(25),x.push.apply(x,T(28,32));var N,F=T(0,14);for(N in S.setDefault(1,0),S.addMany(M,0,2,0),F)S.addMany([24,26,153,154],N,3,0),S.addMany(T(128,144),N,3,0),S.addMany(T(144,152),N,3,0),S.add(156,N,0,0),S.add(27,N,11,1),S.add(157,N,4,8),S.addMany([152,158,159],N,0,7),S.add(155,N,11,3),S.add(144,N,11,9);return S.addMany(x,0,3,0),S.addMany(x,1,3,1),S.add(127,1,0,1),S.addMany(x,8,0,8),S.addMany(x,3,3,3),S.add(127,3,0,3),S.addMany(x,4,3,4),S.add(127,4,0,4),S.addMany(x,6,3,6),S.addMany(x,5,3,5),S.add(127,5,0,5),S.addMany(x,2,3,2),S.add(127,2,0,2),S.add(93,1,4,8),S.addMany(M,8,5,8),S.add(127,8,5,8),S.addMany([156,27,24,26,7],8,6,0),S.addMany(T(28,32),8,0,8),S.addMany([88,94,95],1,0,7),S.addMany(M,7,0,7),S.addMany(x,7,0,7),S.add(156,7,0,0),S.add(127,7,0,7),S.add(91,1,11,3),S.addMany(T(64,127),3,7,0),S.addMany(T(48,60),3,8,4),S.addMany([60,61,62,63],3,9,4),S.addMany(T(48,60),4,8,4),S.addMany(T(64,127),4,7,0),S.addMany([60,61,62,63],4,0,6),S.addMany(T(32,64),6,0,6),S.add(127,6,0,6),S.addMany(T(64,127),6,0,0),S.addMany(T(32,48),3,9,5),S.addMany(T(32,48),5,9,5),S.addMany(T(48,64),5,0,6),S.addMany(T(64,127),5,7,0),S.addMany(T(32,48),4,9,5),S.addMany(T(32,48),1,9,2),S.addMany(T(32,48),2,9,2),S.addMany(T(48,127),2,10,0),S.addMany(T(48,80),1,10,0),S.addMany(T(81,88),1,10,0),S.addMany([89,90,92],1,10,0),S.addMany(T(96,127),1,10,0),S.add(80,1,11,9),S.addMany(x,9,0,9),S.add(127,9,0,9),S.addMany(T(28,32),9,0,9),S.addMany(T(32,48),9,9,12),S.addMany(T(48,60),9,8,10),S.addMany([60,61,62,63],9,9,10),S.addMany(x,11,0,11),S.addMany(T(32,128),11,0,11),S.addMany(T(28,32),11,0,11),S.addMany(x,10,0,10),S.add(127,10,0,10),S.addMany(T(28,32),10,0,10),S.addMany(T(48,60),10,8,10),S.addMany([60,61,62,63],10,0,11),S.addMany(T(32,48),10,9,12),S.addMany(x,12,0,12),S.add(127,12,0,12),S.addMany(T(28,32),12,0,12),S.addMany(T(32,48),12,9,12),S.addMany(T(48,64),12,0,11),S.addMany(T(64,127),12,12,13),S.addMany(T(64,127),10,12,13),S.addMany(T(64,127),9,12,13),S.addMany(x,13,13,13),S.addMany(M,13,13,13),S.add(127,13,0,13),S.addMany([27,156,24,26],13,14,0),S.add(b,0,2,0),S.add(b,8,5,8),S.add(b,6,0,6),S.add(b,11,0,11),S.add(b,13,13,13),S}();var O=function(S){function y(T){void 0===T&&(T=A.VT500_TRANSITION_TABLE);var M=S.call(this)||this;return M._transitions=T,M._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},M.initialState=0,M.currentState=M.initialState,M._params=new j.Params,M._params.addParam(0),M._collect=0,M.precedingCodepoint=0,M._printHandlerFb=function(x,N,F){},M._executeHandlerFb=function(x){},M._csiHandlerFb=function(x,N){},M._escHandlerFb=function(x){},M._errorHandlerFb=function(x){return x},M._printHandler=M._printHandlerFb,M._executeHandlers=Object.create(null),M._csiHandlers=Object.create(null),M._escHandlers=Object.create(null),M._oscParser=new L.OscParser,M._dcsParser=new v.DcsParser,M._errorHandler=M._errorHandlerFb,M.registerEscHandler({final:"\\"},function(){return!0}),M}return P(y,S),y.prototype._identifier=function(T,M){void 0===M&&(M=[64,126]);var x=0;if(T.prefix){if(T.prefix.length>1)throw new Error("only one byte as prefix supported");if((x=T.prefix.charCodeAt(0))&&60>x||x>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(T.intermediates){if(T.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var N=0;N<T.intermediates.length;++N){var F=T.intermediates.charCodeAt(N);if(32>F||F>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");x<<=8,x|=F}}if(1!==T.final.length)throw new Error("final must be a single byte");var X=T.final.charCodeAt(0);if(M[0]>X||X>M[1])throw new Error("final must be in range "+M[0]+" .. "+M[1]);return(x<<=8)|X},y.prototype.identToString=function(T){for(var M=[];T;)M.push(String.fromCharCode(255&T)),T>>=8;return M.reverse().join("")},y.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},y.prototype.setPrintHandler=function(T){this._printHandler=T},y.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},y.prototype.registerEscHandler=function(T,M){var x=this._identifier(T,[48,126]);void 0===this._escHandlers[x]&&(this._escHandlers[x]=[]);var N=this._escHandlers[x];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearEscHandler=function(T){this._escHandlers[this._identifier(T,[48,126])]&&delete this._escHandlers[this._identifier(T,[48,126])]},y.prototype.setEscHandlerFallback=function(T){this._escHandlerFb=T},y.prototype.setExecuteHandler=function(T,M){this._executeHandlers[T.charCodeAt(0)]=M},y.prototype.clearExecuteHandler=function(T){this._executeHandlers[T.charCodeAt(0)]&&delete this._executeHandlers[T.charCodeAt(0)]},y.prototype.setExecuteHandlerFallback=function(T){this._executeHandlerFb=T},y.prototype.registerCsiHandler=function(T,M){var x=this._identifier(T);void 0===this._csiHandlers[x]&&(this._csiHandlers[x]=[]);var N=this._csiHandlers[x];return N.push(M),{dispose:function(){var X=N.indexOf(M);-1!==X&&N.splice(X,1)}}},y.prototype.clearCsiHandler=function(T){this._csiHandlers[this._identifier(T)]&&delete this._csiHandlers[this._identifier(T)]},y.prototype.setCsiHandlerFallback=function(T){this._csiHandlerFb=T},y.prototype.registerDcsHandler=function(T,M){return this._dcsParser.registerHandler(this._identifier(T),M)},y.prototype.clearDcsHandler=function(T){this._dcsParser.clearHandler(this._identifier(T))},y.prototype.setDcsHandlerFallback=function(T){this._dcsParser.setHandlerFallback(T)},y.prototype.registerOscHandler=function(T,M){return this._oscParser.registerHandler(T,M)},y.prototype.clearOscHandler=function(T){this._oscParser.clearHandler(T)},y.prototype.setOscHandlerFallback=function(T){this._oscParser.setHandlerFallback(T)},y.prototype.setErrorHandler=function(T){this._errorHandler=T},y.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},y.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=[])},y.prototype._preserveStack=function(T,M,x,N,F){this._parseStack.state=T,this._parseStack.handlers=M,this._parseStack.handlerPos=x,this._parseStack.transition=N,this._parseStack.chunkPos=F},y.prototype.parse=function(T,M,x){var N,F=0,X=0,$=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,$=this._parseStack.chunkPos+1;else{if(void 0===x||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var Y=this._parseStack.handlers,Q=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===x&&Q>-1)for(;Q>=0&&!0!==(N=Y[Q](this._params));Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 4:if(!1===x&&Q>-1)for(;Q>=0&&!0!==(N=Y[Q]());Q--)if(N instanceof Promise)return this._parseStack.handlerPos=Q,N;this._parseStack.handlers=[];break;case 6:if(F=T[this._parseStack.chunkPos],N=this._dcsParser.unhook(24!==F&&26!==F,x))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(F=T[this._parseStack.chunkPos],N=this._oscParser.end(24!==F&&26!==F,x))return N;27===F&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,$=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var ne=$;ne<M;++ne){switch(F=T[ne],(X=this._transitions.table[this.currentState<<8|(F<160?F:b)])>>4){case 2:for(var be=ne+1;;++be){if(be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}if(++be>=M||(F=T[be])<32||F>126&&F<b){this._printHandler(T,ne,be),ne=be-1;break}}break;case 3:this._executeHandlers[F]?this._executeHandlers[F]():this._executeHandlerFb(F),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ne,code:F,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var pe=(Y=this._csiHandlers[this._collect<<8|F])?Y.length-1:-1;pe>=0&&!0!==(N=Y[pe](this._params));pe--)if(N instanceof Promise)return this._preserveStack(3,Y,pe,X,ne),N;pe<0&&this._csiHandlerFb(this._collect<<8|F,this._params),this.precedingCodepoint=0;break;case 8:do{switch(F){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(F-48)}}while(++ne<M&&(F=T[ne])>47&&F<60);ne--;break;case 9:this._collect<<=8,this._collect|=F;break;case 10:for(var de=this._escHandlers[this._collect<<8|F],le=de?de.length-1:-1;le>=0&&!0!==(N=de[le]());le--)if(N instanceof Promise)return this._preserveStack(4,de,le,X,ne),N;le<0&&this._escHandlerFb(this._collect<<8|F),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|F,this._params);break;case 13:for(var ce=ne+1;;++ce)if(ce>=M||24===(F=T[ce])||26===F||27===F||F>127&&F<b){this._dcsParser.put(T,ne,ce),ne=ce-1;break}break;case 14:if(N=this._dcsParser.unhook(24!==F&&26!==F))return this._preserveStack(6,[],0,X,ne),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var me=ne+1;;me++)if(me>=M||(F=T[me])<32||F>127&&F<b){this._oscParser.put(T,ne,me),ne=me-1;break}break;case 6:if(N=this._oscParser.end(24!==F&&26!==F))return this._preserveStack(5,[],0,X,ne),N;27===F&&(X|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&X}},y}(E.Disposable);A.EscapeSequenceParser=O},6242:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.OscHandler=A.OscParser=void 0;var R=U(5770),P=U(482),E=[],D=function(){function L(){this._state=0,this._active=E,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return L.prototype.registerHandler=function(v,k){void 0===this._handlers[v]&&(this._handlers[v]=[]);var b=this._handlers[v];return b.push(k),{dispose:function(){var S=b.indexOf(k);-1!==S&&b.splice(S,1)}}},L.prototype.clearHandler=function(v){this._handlers[v]&&delete this._handlers[v]},L.prototype.setHandlerFallback=function(v){this._handlerFb=v},L.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=E},L.prototype.reset=function(){if(2===this._state)for(var v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=E,this._id=-1,this._state=0},L.prototype._start=function(){if(this._active=this._handlers[this._id]||E,this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")},L.prototype._put=function(v,k,b){if(this._active.length)for(var O=this._active.length-1;O>=0;O--)this._active[O].put(v,k,b);else this._handlerFb(this._id,"PUT",(0,P.utf32ToString)(v,k,b))},L.prototype.start=function(){this.reset(),this._state=1},L.prototype.put=function(v,k,b){if(3!==this._state){if(1===this._state)for(;k<b;){var O=v[k++];if(59===O){this._state=2,this._start();break}if(O<48||57<O)return void(this._state=3);-1===this._id&&(this._id=0),this._id=10*this._id+O-48}2===this._state&&b-k>0&&this._put(v,k,b)}},L.prototype.end=function(v,k){if(void 0===k&&(k=!0),0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){var b=!1,O=this._active.length-1,S=!1;if(this._stack.paused&&(O=this._stack.loopPosition-1,b=k,S=this._stack.fallThrough,this._stack.paused=!1),!S&&!1===b){for(;O>=0&&!0!==(b=this._active[O].end(v));O--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!1,b;O--}for(;O>=0;O--)if((b=this._active[O].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=O,this._stack.fallThrough=!0,b}else this._handlerFb(this._id,"END",v);this._active=E,this._id=-1,this._state=0}},L}();A.OscParser=D;var j=function(){function L(v){this._handler=v,this._data="",this._hitLimit=!1}return L.prototype.start=function(){this._data="",this._hitLimit=!1},L.prototype.put=function(v,k,b){this._hitLimit||(this._data+=(0,P.utf32ToString)(v,k,b),this._data.length>R.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},L.prototype.end=function(v){var k=this,b=!1;if(this._hitLimit)b=!1;else if(v&&(b=this._handler(this._data))instanceof Promise)return b.then(function(O){return k._data="",k._hitLimit=!1,O});return this._data="",this._hitLimit=!1,b},L}();A.OscHandler=j},8742:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.Params=void 0;var U=2147483647,R=function(){function P(E,D){if(void 0===E&&(E=32),void 0===D&&(D=32),this.maxLength=E,this.maxSubParamsLength=D,D>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(E),this.length=0,this._subParams=new Int32Array(D),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(E),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return P.fromArray=function(E){var D=new P;if(!E.length)return D;for(var j=Array.isArray(E[0])?1:0;j<E.length;++j){var L=E[j];if(Array.isArray(L))for(var v=0;v<L.length;++v)D.addSubParam(L[v]);else D.addParam(L)}return D},P.prototype.clone=function(){var E=new P(this.maxLength,this.maxSubParamsLength);return E.params.set(this.params),E.length=this.length,E._subParams.set(this._subParams),E._subParamsLength=this._subParamsLength,E._subParamsIdx.set(this._subParamsIdx),E._rejectDigits=this._rejectDigits,E._rejectSubDigits=this._rejectSubDigits,E._digitIsSub=this._digitIsSub,E},P.prototype.toArray=function(){for(var E=[],D=0;D<this.length;++D){E.push(this.params[D]);var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&E.push(Array.prototype.slice.call(this._subParams,j,L))}return E},P.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},P.prototype.addParam=function(E){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=E>U?U:E}},P.prototype.addSubParam=function(E){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(E<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=E>U?U:E,this._subParamsIdx[this.length-1]++}},P.prototype.hasSubParams=function(E){return(255&this._subParamsIdx[E])-(this._subParamsIdx[E]>>8)>0},P.prototype.getSubParams=function(E){var D=this._subParamsIdx[E]>>8,j=255&this._subParamsIdx[E];return j-D>0?this._subParams.subarray(D,j):null},P.prototype.getSubParamsAll=function(){for(var E={},D=0;D<this.length;++D){var j=this._subParamsIdx[D]>>8,L=255&this._subParamsIdx[D];L-j>0&&(E[D]=this._subParams.slice(j,L))}return E},P.prototype.addDigit=function(E){var D;if(!(this._rejectDigits||!(D=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var j=this._digitIsSub?this._subParams:this.params,L=j[D-1];j[D-1]=~L?Math.min(10*L+E,U):E}},P}();A.Params=R},5741:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.AddonManager=void 0;var U=function(){function R(){this._addons=[]}return R.prototype.dispose=function(){for(var P=this._addons.length-1;P>=0;P--)this._addons[P].instance.dispose()},R.prototype.loadAddon=function(P,E){var D=this,j={instance:E,dispose:E.dispose,isDisposed:!1};this._addons.push(j),E.dispose=function(){return D._wrappedAddonDispose(j)},E.activate(P)},R.prototype._wrappedAddonDispose=function(P){if(!P.isDisposed){for(var E=-1,D=0;D<this._addons.length;D++)if(this._addons[D]===P){E=D;break}if(-1===E)throw new Error("Could not dispose an addon that has not been loaded");P.isDisposed=!0,P.dispose.apply(P.instance),this._addons.splice(E,1)}},R}();A.AddonManager=U},8771:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferApiView=void 0;var R=U(3785),P=U(511),E=function(){function D(j,L){this._buffer=j,this.type=L}return D.prototype.init=function(j){return this._buffer=j,this},Object.defineProperty(D.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),D.prototype.getLine=function(j){var L=this._buffer.lines.get(j);if(L)return new R.BufferLineApiView(L)},D.prototype.getNullCell=function(){return new P.CellData},D}();A.BufferApiView=E},3785:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferLineApiView=void 0;var R=U(511),P=function(){function E(D){this._line=D}return Object.defineProperty(E.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),E.prototype.getCell=function(D,j){if(!(D<0||D>=this._line.length))return j?(this._line.loadCell(D,j),j):this._line.loadCell(D,new R.CellData)},E.prototype.translateToString=function(D,j,L){return this._line.translateToString(D,j,L)},E}();A.BufferLineApiView=P},8285:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.BufferNamespaceApi=void 0;var R=U(8771),P=U(8460),E=function(){function D(j){var L=this;this._core=j,this._onBufferChange=new P.EventEmitter,this._normal=new R.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new R.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return L._onBufferChange.fire(L.active)})}return Object.defineProperty(D.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.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(D.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),D}();A.BufferNamespaceApi=E},7975:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.ParserApi=void 0;var U=function(){function R(P){this._core=P}return R.prototype.registerCsiHandler=function(P,E){return this._core.registerCsiHandler(P,function(D){return E(D.toArray())})},R.prototype.addCsiHandler=function(P,E){return this.registerCsiHandler(P,E)},R.prototype.registerDcsHandler=function(P,E){return this._core.registerDcsHandler(P,function(D,j){return E(D,j.toArray())})},R.prototype.addDcsHandler=function(P,E){return this.registerDcsHandler(P,E)},R.prototype.registerEscHandler=function(P,E){return this._core.registerEscHandler(P,E)},R.prototype.addEscHandler=function(P,E){return this.registerEscHandler(P,E)},R.prototype.registerOscHandler=function(P,E){return this._core.registerOscHandler(P,E)},R.prototype.addOscHandler=function(P,E){return this.registerOscHandler(P,E)},R}();A.ParserApi=U},7090:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeApi=void 0;var U=function(){function R(P){this._core=P}return R.prototype.register=function(P){this._core.unicodeService.register(P)},Object.defineProperty(R.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(R.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(E){this._core.unicodeService.activeVersion=E},enumerable:!1,configurable:!0}),R}();A.UnicodeApi=U},744:function(W,A,U){var R,P=this&&this.__extends||(R=function(S,y){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(T[x]=M[x])})(S,y)},function(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function y(){this.constructor=O}R(O,S),O.prototype=null===S?Object.create(S):(y.prototype=S.prototype,new y)}),E=this&&this.__decorate||function(O,S,y,T){var M,x=arguments.length,N=x<3?S:null===T?T=Object.getOwnPropertyDescriptor(S,y):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(O,S,y,T);else for(var F=O.length-1;F>=0;F--)(M=O[F])&&(N=(x<3?M(N):x>3?M(S,y,N):M(S,y))||N);return x>3&&N&&Object.defineProperty(S,y,N),N},D=this&&this.__param||function(O,S){return function(y,T){S(y,T,O)}};Object.defineProperty(A,"__esModule",{value:!0}),A.BufferService=A.MINIMUM_ROWS=A.MINIMUM_COLS=void 0;var j=U(2585),L=U(5295),v=U(8460),k=U(844);A.MINIMUM_COLS=2,A.MINIMUM_ROWS=1;var b=function(O){function S(y){var T=O.call(this)||this;return T._optionsService=y,T.isUserScrolling=!1,T._onResize=new v.EventEmitter,T._onScroll=new v.EventEmitter,T.cols=Math.max(y.rawOptions.cols||0,A.MINIMUM_COLS),T.rows=Math.max(y.rawOptions.rows||0,A.MINIMUM_ROWS),T.buffers=new L.BufferSet(y,T),T}return P(S,O),Object.defineProperty(S.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){O.prototype.dispose.call(this),this.buffers.dispose()},S.prototype.resize=function(y,T){this.cols=y,this.rows=T,this.buffers.resize(y,T),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:y,rows:T})},S.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},S.prototype.scroll=function(y,T){void 0===T&&(T=!1);var M,x=this.buffer;(M=this._cachedBlankLine)&&M.length===this.cols&&M.getFg(0)===y.fg&&M.getBg(0)===y.bg||(M=x.getBlankLine(y,T),this._cachedBlankLine=M),M.isWrapped=T;var N=x.ybase+x.scrollTop,F=x.ybase+x.scrollBottom;if(0===x.scrollTop){var X=x.lines.isFull;F===x.lines.length-1?X?x.lines.recycle().copyFrom(M):x.lines.push(M.clone()):x.lines.splice(F+1,0,M.clone()),X?this.isUserScrolling&&(x.ydisp=Math.max(x.ydisp-1,0)):(x.ybase++,this.isUserScrolling||x.ydisp++)}else{var $=F-N+1;x.lines.shiftElements(N+1,$-1,-1),x.lines.set(F,M.clone())}this.isUserScrolling||(x.ydisp=x.ybase),this._onScroll.fire(x.ydisp)},S.prototype.scrollLines=function(y,T,M){var x=this.buffer;if(y<0){if(0===x.ydisp)return;this.isUserScrolling=!0}else y+x.ydisp>=x.ybase&&(this.isUserScrolling=!1);var N=x.ydisp;x.ydisp=Math.max(Math.min(x.ydisp+y,x.ybase),0),N!==x.ydisp&&(T||this._onScroll.fire(x.ydisp))},S.prototype.scrollPages=function(y){this.scrollLines(y*(this.rows-1))},S.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},S.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},S.prototype.scrollToLine=function(y){var T=y-this.buffer.ydisp;0!==T&&this.scrollLines(T)},E([D(0,j.IOptionsService)],S)}(k.Disposable);A.BufferService=b},7994:function(W,A){Object.defineProperty(A,"__esModule",{value:!0}),A.CharsetService=void 0;var U=function(){function R(){this.glevel=0,this._charsets=[]}return R.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},R.prototype.setgLevel=function(P){this.glevel=P,this.charset=this._charsets[P]},R.prototype.setgCharset=function(P,E){this._charsets[P]=E,this.glevel===P&&(this.charset=E)},R}();A.CharsetService=U},1753:function(W,A,U){var R=this&&this.__decorate||function(S,y,T,M){var x,N=arguments.length,F=N<3?y:null===M?M=Object.getOwnPropertyDescriptor(y,T):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(S,y,T,M);else for(var X=S.length-1;X>=0;X--)(x=S[X])&&(F=(N<3?x(F):N>3?x(y,T,F):x(y,T))||F);return N>3&&F&&Object.defineProperty(y,T,F),F},P=this&&this.__param||function(S,y){return function(T,M){y(T,M,S)}},E=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreMouseService=void 0;var D=U(2585),j=U(8460),L={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(y){return 4!==y.button&&1===y.action&&(y.ctrl=!1,y.alt=!1,y.shift=!1,!0)}},VT200:{events:19,restrict:function(y){return 32!==y.action}},DRAG:{events:23,restrict:function(y){return 32!==y.action||3!==y.button}},ANY:{events:31,restrict:function(y){return!0}}};function v(S,y){var T=(S.ctrl?16:0)|(S.shift?4:0)|(S.alt?8:0);return 4===S.button?(T|=64,T|=S.action):(T|=3&S.button,4&S.button&&(T|=64),8&S.button&&(T|=128),32===S.action?T|=32:0!==S.action||y||(T|=3)),T}var k=String.fromCharCode,b={DEFAULT:function(y){var T=[v(y,!1)+32,y.col+32,y.row+32];return T[0]>255||T[1]>255||T[2]>255?"":"\x1b[M"+k(T[0])+k(T[1])+k(T[2])},SGR:function(y){var T=0===y.action&&4!==y.button?"m":"M";return"\x1b[<"+v(y,!0)+";"+y.col+";"+y.row+T}},O=function(){function S(y,T){var M,x,N,F;this._bufferService=y,this._coreService=T,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new j.EventEmitter,this._lastEvent=null;try{for(var X=E(Object.keys(L)),$=X.next();!$.done;$=X.next()){var Y=$.value;this.addProtocol(Y,L[Y])}}catch(pe){M={error:pe}}finally{try{$&&!$.done&&(x=X.return)&&x.call(X)}finally{if(M)throw M.error}}try{for(var Q=E(Object.keys(b)),ne=Q.next();!ne.done;ne=Q.next()){var be=ne.value;this.addEncoding(be,b[be])}}catch(pe){N={error:pe}}finally{try{ne&&!ne.done&&(F=Q.return)&&F.call(Q)}finally{if(N)throw N.error}}this.reset()}return S.prototype.addProtocol=function(y,T){this._protocols[y]=T},S.prototype.addEncoding=function(y,T){this._encodings[y]=T},Object.defineProperty(S.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(T){if(!this._protocols[T])throw new Error('unknown protocol "'+T+'"');this._activeProtocol=T,this._onProtocolChange.fire(this._protocols[T].events)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"areMouseEventsActive",{get:function(){return 0!==this._protocols[this._activeProtocol].events},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(T){if(!this._encodings[T])throw new Error('unknown encoding "'+T+'"');this._activeEncoding=T},enumerable:!1,configurable:!0}),S.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(S.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),S.prototype.triggerMouseEvent=function(y){if(y.col<0||y.col>=this._bufferService.cols||y.row<0||y.row>=this._bufferService.rows||4===y.button&&32===y.action||3===y.button&&32!==y.action||4!==y.button&&(2===y.action||3===y.action)||(y.col++,y.row++,32===y.action&&this._lastEvent&&this._compareEvents(this._lastEvent,y))||!this._protocols[this._activeProtocol].restrict(y))return!1;var T=this._encodings[this._activeEncoding](y);return T&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(T):this._coreService.triggerDataEvent(T,!0)),this._lastEvent=y,!0},S.prototype.explainEvents=function(y){return{down:!!(1&y),up:!!(2&y),drag:!!(4&y),move:!!(8&y),wheel:!!(16&y)}},S.prototype._compareEvents=function(y,T){return y.col===T.col&&y.row===T.row&&y.button===T.button&&y.action===T.action&&y.ctrl===T.ctrl&&y.alt===T.alt&&y.shift===T.shift},R([P(0,D.IBufferService),P(1,D.ICoreService)],S)}();A.CoreMouseService=O},6975:function(W,A,U){var R,P=this&&this.__extends||(R=function(T,M){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,N){x.__proto__=N}||function(x,N){for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&(x[F]=N[F])})(T,M)},function(y,T){if("function"!=typeof T&&null!==T)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function M(){this.constructor=y}R(y,T),y.prototype=null===T?Object.create(T):(M.prototype=T.prototype,new M)}),E=this&&this.__decorate||function(y,T,M,x){var N,F=arguments.length,X=F<3?T:null===x?x=Object.getOwnPropertyDescriptor(T,M):x;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)X=Reflect.decorate(y,T,M,x);else for(var $=y.length-1;$>=0;$--)(N=y[$])&&(X=(F<3?N(X):F>3?N(T,M,X):N(T,M))||X);return F>3&&X&&Object.defineProperty(T,M,X),X},D=this&&this.__param||function(y,T){return function(M,x){T(M,x,y)}};Object.defineProperty(A,"__esModule",{value:!0}),A.CoreService=void 0;var j=U(2585),L=U(8460),v=U(1439),k=U(844),b=Object.freeze({insertMode:!1}),O=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),S=function(y){function T(M,x,N,F){var X=y.call(this)||this;return X._bufferService=x,X._logService=N,X._optionsService=F,X.isCursorInitialized=!1,X.isCursorHidden=!1,X._onData=X.register(new L.EventEmitter),X._onUserInput=X.register(new L.EventEmitter),X._onBinary=X.register(new L.EventEmitter),X._scrollToBottom=M,X.register({dispose:function(){return X._scrollToBottom=void 0}}),X.modes=(0,v.clone)(b),X.decPrivateModes=(0,v.clone)(O),X}return P(T,y),Object.defineProperty(T.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),T.prototype.reset=function(){this.modes=(0,v.clone)(b),this.decPrivateModes=(0,v.clone)(O)},T.prototype.triggerDataEvent=function(M,x){if(void 0===x&&(x=!1),!this._optionsService.rawOptions.disableStdin){var N=this._bufferService.buffer;N.ybase!==N.ydisp&&this._scrollToBottom(),x&&this._onUserInput.fire(),this._logService.debug('sending data "'+M+'"',function(){return M.split("").map(function(F){return F.charCodeAt(0)})}),this._onData.fire(M)}},T.prototype.triggerBinaryEvent=function(M){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+M+'"',function(){return M.split("").map(function(x){return x.charCodeAt(0)})}),this._onBinary.fire(M))},E([D(1,j.IBufferService),D(2,j.ILogService),D(3,j.IOptionsService)],T)}(k.Disposable);A.CoreService=S},9074:function(W,A,U){var R,P=this&&this.__extends||(R=function(y,T){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,x){M.__proto__=x}||function(M,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(M[N]=x[N])})(y,T)},function(S,y){if("function"!=typeof y&&null!==y)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function T(){this.constructor=S}R(S,y),S.prototype=null===y?Object.create(y):(T.prototype=y.prototype,new T)}),E=this&&this.__generator||function(S,y){var T,M,x,N,F={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return N={next:X(0),throw:X(1),return:X(2)},"function"==typeof Symbol&&(N[Symbol.iterator]=function(){return this}),N;function X($){return function(Y){return function(Q){if(T)throw new TypeError("Generator is already executing.");for(;F;)try{if(T=1,M&&(x=2&Q[0]?M.return:Q[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,Q[1])).done)return x;switch(M=0,x&&(Q=[2&Q[0],x.value]),Q[0]){case 0:case 1:x=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,M=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((x=(x=F.trys).length>0&&x[x.length-1])||6!==Q[0]&&2!==Q[0])){F=0;continue}if(3===Q[0]&&(!x||Q[1]>x[0]&&Q[1]<x[3])){F.label=Q[1];break}if(6===Q[0]&&F.label<x[1]){F.label=x[1],x=Q;break}if(x&&F.label<x[2]){F.label=x[2],F.ops.push(Q);break}x[2]&&F.ops.pop(),F.trys.pop();continue}Q=y.call(S,F)}catch(ne){Q=[6,ne],M=0}finally{T=x=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([$,Y])}}},D=this&&this.__values||function(S){var y="function"==typeof Symbol&&Symbol.iterator,T=y&&S[y],M=0;if(T)return T.call(S);if(S&&"number"==typeof S.length)return{next:function(){return S&&M>=S.length&&(S=void 0),{value:S&&S[M++],done:!S}}};throw new TypeError(y?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.DecorationService=void 0;var j=U(8055),L=U(8460),v=U(844),k=U(6106),b=function(S){function y(){var T=S.call(this)||this;return T._decorations=new k.SortedList(function(M){return M.marker.line}),T._onDecorationRegistered=T.register(new L.EventEmitter),T._onDecorationRemoved=T.register(new L.EventEmitter),T}return P(y,S),Object.defineProperty(y.prototype,"onDecorationRegistered",{get:function(){return this._onDecorationRegistered.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onDecorationRemoved",{get:function(){return this._onDecorationRemoved.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"decorations",{get:function(){return this._decorations.values()},enumerable:!1,configurable:!0}),y.prototype.registerDecoration=function(T){var M=this;if(!T.marker.isDisposed){var x=new O(T);if(x){var N=x.marker.onDispose(function(){return x.dispose()});x.onDispose(function(){x&&(M._decorations.delete(x)&&M._onDecorationRemoved.fire(x),N.dispose())}),this._decorations.insert(x),this._onDecorationRegistered.fire(x)}return x}},y.prototype.reset=function(){var T,M;try{for(var x=D(this._decorations.values()),N=x.next();!N.done;N=x.next())N.value.dispose()}catch(F){T={error:F}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this._decorations.clear()},y.prototype.getDecorationsAtLine=function(T){return E(this,function(M){return[2,this._decorations.getKeyIterator(T)]})},y.prototype.getDecorationsAtCell=function(T,M,x){var N,F,X,$,Y,Q,ne,be,pe,de,le;return E(this,function(ce){switch(ce.label){case 0:N=0,F=0,ce.label=1;case 1:ce.trys.push([1,6,7,8]),X=D(this._decorations.getKeyIterator(M)),$=X.next(),ce.label=2;case 2:return $.done?[3,5]:(Y=$.value,N=null!==(pe=Y.options.x)&&void 0!==pe?pe:0,F=N+(null!==(de=Y.options.width)&&void 0!==de?de:1),!(T>=N&&T<F)||x&&(null!==(le=Y.options.layer)&&void 0!==le?le:"bottom")!==x?[3,4]:[4,Y]);case 3:ce.sent(),ce.label=4;case 4:return $=X.next(),[3,2];case 5:return[3,8];case 6:return Q=ce.sent(),ne={error:Q},[3,8];case 7:try{$&&!$.done&&(be=X.return)&&be.call(X)}finally{if(ne)throw ne.error}return[7];case 8:return[2]}})},y.prototype.dispose=function(){var T,M;try{for(var x=D(this._decorations.values()),N=x.next();!N.done;N=x.next()){var F=N.value;this._onDecorationRemoved.fire(F)}}catch(X){T={error:X}}finally{try{N&&!N.done&&(M=x.return)&&M.call(x)}finally{if(T)throw T.error}}this.reset()},y}(v.Disposable);A.DecorationService=b;var O=function(S){function y(T){var M=S.call(this)||this;return M.options=T,M.isDisposed=!1,M.onRenderEmitter=M.register(new L.EventEmitter),M.onRender=M.onRenderEmitter.event,M._onDispose=M.register(new L.EventEmitter),M.onDispose=M._onDispose.event,M._cachedBg=null,M._cachedFg=null,M.marker=T.marker,M.options.overviewRulerOptions&&!M.options.overviewRulerOptions.position&&(M.options.overviewRulerOptions.position="full"),M}return P(y,S),Object.defineProperty(y.prototype,"backgroundColorRGB",{get:function(){return null===this._cachedBg&&(this.options.backgroundColor?this._cachedBg=j.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"foregroundColorRGB",{get:function(){return null===this._cachedFg&&(this.options.foregroundColor?this._cachedFg=j.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDispose.fire(),S.prototype.dispose.call(this))},y}(v.Disposable)},3730:function(W,A,U){var R=this&&this.__decorate||function(j,L,v,k){var b,O=arguments.length,S=O<3?L:null===k?k=Object.getOwnPropertyDescriptor(L,v):k;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)S=Reflect.decorate(j,L,v,k);else for(var y=j.length-1;y>=0;y--)(b=j[y])&&(S=(O<3?b(S):O>3?b(L,v,S):b(L,v))||S);return O>3&&S&&Object.defineProperty(L,v,S),S},P=this&&this.__param||function(j,L){return function(v,k){L(v,k,j)}};Object.defineProperty(A,"__esModule",{value:!0}),A.DirtyRowService=void 0;var E=U(2585),D=function(){function j(L){this._bufferService=L,this.clearRange()}return Object.defineProperty(j.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),j.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},j.prototype.markDirty=function(L){L<this._start?this._start=L:L>this._end&&(this._end=L)},j.prototype.markRangeDirty=function(L,v){if(L>v){var k=L;L=v,v=k}L<this._start&&(this._start=L),v>this._end&&(this._end=v)},j.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},R([P(0,E.IBufferService)],j)}();A.DirtyRowService=D},4348:function(W,A,U){var R=this&&this.__values||function(k){var b="function"==typeof Symbol&&Symbol.iterator,O=b&&k[b],S=0;if(O)return O.call(k);if(k&&"number"==typeof k.length)return{next:function(){return k&&S>=k.length&&(k=void 0),{value:k&&k[S++],done:!k}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")},P=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(x){y={error:x}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},E=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.InstantiationService=A.ServiceCollection=void 0;var D=U(2585),j=U(8343),L=function(){function k(){for(var b,O,S=[],y=0;y<arguments.length;y++)S[y]=arguments[y];this._entries=new Map;try{for(var T=R(S),M=T.next();!M.done;M=T.next()){var x=P(M.value,2),N=x[0],F=x[1];this.set(N,F)}}catch(X){b={error:X}}finally{try{M&&!M.done&&(O=T.return)&&O.call(T)}finally{if(b)throw b.error}}}return k.prototype.set=function(b,O){var S=this._entries.get(b);return this._entries.set(b,O),S},k.prototype.forEach=function(b){this._entries.forEach(function(O,S){return b(S,O)})},k.prototype.has=function(b){return this._entries.has(b)},k.prototype.get=function(b){return this._entries.get(b)},k}();A.ServiceCollection=L;var v=function(){function k(){this._services=new L,this._services.set(D.IInstantiationService,this)}return k.prototype.setService=function(b,O){this._services.set(b,O)},k.prototype.getService=function(b){return this._services.get(b)},k.prototype.createInstance=function(b){for(var O,S,y=[],T=1;T<arguments.length;T++)y[T-1]=arguments[T];var M=(0,j.getServiceDependencies)(b).sort(function(Q,ne){return Q.index-ne.index}),x=[];try{for(var N=R(M),F=N.next();!F.done;F=N.next()){var X=F.value,$=this._services.get(X.id);if(!$)throw new Error("[createInstance] "+b.name+" depends on UNKNOWN service "+X.id+".");x.push($)}}catch(Q){O={error:Q}}finally{try{F&&!F.done&&(S=N.return)&&S.call(N)}finally{if(O)throw O.error}}var Y=M.length>0?M[0].index:y.length;if(y.length!==Y)throw new Error("[createInstance] First service dependency of "+b.name+" at position "+(Y+1)+" conflicts with "+y.length+" static arguments");return new(b.bind.apply(b,E([void 0],P(E(E([],P(y),!1),P(x),!1)),!1)))},k}();A.InstantiationService=v},7866:function(W,A,U){var R=this&&this.__decorate||function(k,b,O,S){var y,T=arguments.length,M=T<3?b:null===S?S=Object.getOwnPropertyDescriptor(b,O):S;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)M=Reflect.decorate(k,b,O,S);else for(var x=k.length-1;x>=0;x--)(y=k[x])&&(M=(T<3?y(M):T>3?y(b,O,M):y(b,O))||M);return T>3&&M&&Object.defineProperty(b,O,M),M},P=this&&this.__param||function(k,b){return function(O,S){b(O,S,k)}},E=this&&this.__read||function(k,b){var O="function"==typeof Symbol&&k[Symbol.iterator];if(!O)return k;var S,y,T=O.call(k),M=[];try{for(;(void 0===b||b-- >0)&&!(S=T.next()).done;)M.push(S.value)}catch(x){y={error:x}}finally{try{S&&!S.done&&(O=T.return)&&O.call(T)}finally{if(y)throw y.error}}return M},D=this&&this.__spreadArray||function(k,b,O){if(O||2===arguments.length)for(var S,y=0,T=b.length;y<T;y++)!S&&y in b||(S||(S=Array.prototype.slice.call(b,0,y)),S[y]=b[y]);return k.concat(S||Array.prototype.slice.call(b))};Object.defineProperty(A,"__esModule",{value:!0}),A.LogService=void 0;var j=U(2585),L={debug:j.LogLevelEnum.DEBUG,info:j.LogLevelEnum.INFO,warn:j.LogLevelEnum.WARN,error:j.LogLevelEnum.ERROR,off:j.LogLevelEnum.OFF},v=function(){function k(b){var O=this;this._optionsService=b,this.logLevel=j.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(S){"logLevel"===S&&O._updateLogLevel()})}return k.prototype._updateLogLevel=function(){this.logLevel=L[this._optionsService.rawOptions.logLevel]},k.prototype._evalLazyOptionalParams=function(b){for(var O=0;O<b.length;O++)"function"==typeof b[O]&&(b[O]=b[O]())},k.prototype._log=function(b,O,S){this._evalLazyOptionalParams(S),b.call.apply(b,D([console,"xterm.js: "+O],E(S),!1))},k.prototype.debug=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.DEBUG&&this._log(console.log,b,O)},k.prototype.info=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.INFO&&this._log(console.info,b,O)},k.prototype.warn=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.WARN&&this._log(console.warn,b,O)},k.prototype.error=function(b){for(var O=[],S=1;S<arguments.length;S++)O[S-1]=arguments[S];this.logLevel<=j.LogLevelEnum.ERROR&&this._log(console.error,b,O)},R([P(0,j.IOptionsService)],k)}();A.LogService=v},7302:function(W,A,U){var R=this&&this.__assign||function(){return R=Object.assign||function(L){for(var v,k=1,b=arguments.length;k<b;k++)for(var O in v=arguments[k])Object.prototype.hasOwnProperty.call(v,O)&&(L[O]=v[O]);return L},R.apply(this,arguments)};Object.defineProperty(A,"__esModule",{value:!0}),A.OptionsService=A.DEFAULT_OPTIONS=A.DEFAULT_BELL_SOUND=void 0;var P=U(8460),E=U(6114);A.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",A.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:A.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:E.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:void 0};var D=["normal","bold","100","200","300","400","500","600","700","800","900"],j=function(){function L(v){this._onOptionChange=new P.EventEmitter;var k=R({},A.DEFAULT_OPTIONS);for(var b in v)if(b in k)try{var O=v[b];k[b]=this._sanitizeAndValidateOption(b,O)}catch(S){console.error(S)}this.rawOptions=k,this.options=R({},k),this._setupOptions()}return Object.defineProperty(L.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),L.prototype._setupOptions=function(){var v=this,k=function(T){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');return v.rawOptions[T]},b=function(T,M){if(!(T in A.DEFAULT_OPTIONS))throw new Error('No option with key "'+T+'"');M=v._sanitizeAndValidateOption(T,M),v.rawOptions[T]!==M&&(v.rawOptions[T]=M,v._onOptionChange.fire(T))};for(var O in this.rawOptions){var S={get:k.bind(this,O),set:b.bind(this,O)};Object.defineProperty(this.options,O,S)}},L.prototype.setOption=function(v,k){this.options[v]=k},L.prototype._sanitizeAndValidateOption=function(v,k){switch(v){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":k||(k=A.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof k&&1<=k&&k<=1e3)break;k=D.includes(k)?k:A.DEFAULT_OPTIONS[v];break;case"cursorWidth":k=Math.floor(k);case"lineHeight":case"tabStopWidth":if(k<1)throw new Error(v+" cannot be less than 1, value: "+k);break;case"minimumContrastRatio":k=Math.max(1,Math.min(21,Math.round(10*k)/10));break;case"scrollback":if((k=Math.min(k,4294967295))<0)throw new Error(v+" cannot be less than 0, value: "+k);break;case"fastScrollSensitivity":case"scrollSensitivity":if(k<=0)throw new Error(v+" cannot be less than or equal to 0, value: "+k);case"rows":case"cols":if(!k&&0!==k)throw new Error(v+" must be numeric, value: "+k)}return k},L.prototype.getOption=function(v){return this.options[v]},L}();A.OptionsService=j},8343:function(W,A){function U(R,P,E){P.di$target===P?P.di$dependencies.push({id:R,index:E}):(P.di$dependencies=[{id:R,index:E}],P.di$target=P)}Object.defineProperty(A,"__esModule",{value:!0}),A.createDecorator=A.getServiceDependencies=A.serviceRegistry=void 0,A.serviceRegistry=new Map,A.getServiceDependencies=function(R){return R.di$dependencies||[]},A.createDecorator=function(R){if(A.serviceRegistry.has(R))return A.serviceRegistry.get(R);var P=function E(D,j,L){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");U(E,D,L)};return P.toString=function(){return R},A.serviceRegistry.set(R,P),P}},2585:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.IDecorationService=A.IUnicodeService=A.IOptionsService=A.ILogService=A.LogLevelEnum=A.IInstantiationService=A.IDirtyRowService=A.ICharsetService=A.ICoreService=A.ICoreMouseService=A.IBufferService=void 0;var R,P=U(8343);A.IBufferService=(0,P.createDecorator)("BufferService"),A.ICoreMouseService=(0,P.createDecorator)("CoreMouseService"),A.ICoreService=(0,P.createDecorator)("CoreService"),A.ICharsetService=(0,P.createDecorator)("CharsetService"),A.IDirtyRowService=(0,P.createDecorator)("DirtyRowService"),A.IInstantiationService=(0,P.createDecorator)("InstantiationService"),(R=A.LogLevelEnum||(A.LogLevelEnum={}))[R.DEBUG=0]="DEBUG",R[R.INFO=1]="INFO",R[R.WARN=2]="WARN",R[R.ERROR=3]="ERROR",R[R.OFF=4]="OFF",A.ILogService=(0,P.createDecorator)("LogService"),A.IOptionsService=(0,P.createDecorator)("OptionsService"),A.IUnicodeService=(0,P.createDecorator)("UnicodeService"),A.IDecorationService=(0,P.createDecorator)("DecorationService")},1480:function(W,A,U){Object.defineProperty(A,"__esModule",{value:!0}),A.UnicodeService=void 0;var R=U(8460),P=U(225),E=function(){function D(){this._providers=Object.create(null),this._active="",this._onChange=new R.EventEmitter;var j=new P.UnicodeV6;this.register(j),this._active=j.version,this._activeProvider=j}return Object.defineProperty(D.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"activeVersion",{get:function(){return this._active},set:function(L){if(!this._providers[L])throw new Error('unknown Unicode version "'+L+'"');this._active=L,this._activeProvider=this._providers[L],this._onChange.fire(L)},enumerable:!1,configurable:!0}),D.prototype.register=function(j){this._providers[j.version]=j},D.prototype.wcwidth=function(j){return this._activeProvider.wcwidth(j)},D.prototype.getStringCellWidth=function(j){for(var L=0,v=j.length,k=0;k<v;++k){var b=j.charCodeAt(k);if(55296<=b&&b<=56319){if(++k>=v)return L+this.wcwidth(b);var O=j.charCodeAt(k);56320<=O&&O<=57343?b=1024*(b-55296)+O-56320+65536:L+=this.wcwidth(O)}L+=this.wcwidth(b)}return L},D}();A.UnicodeService=E}},m={};return function G(W){var A=m[W];if(void 0!==A)return A.exports;var U=m[W]={exports:{}};return K[W].call(U.exports,U,U.exports,G),U.exports}(4389)}()},1777:function(De,K,m){"use strict";m.d(K,{F4:function(){return k},IO:function(){return T},LC:function(){return U},SB:function(){return v},X$:function(){return P},ZE:function(){return F},ZN:function(){return N},_j:function(){return A},eR:function(){return b},jt:function(){return E},k1:function(){return X},l3:function(){return R},oB:function(){return L},pV:function(){return S},ru:function(){return D},vP:function(){return j}});var G=m(3144),W=m(5671),A=(0,G.Z)(function $(){(0,W.Z)(this,$)}),U=(0,G.Z)(function $(){(0,W.Z)(this,$)}),R="*";function P($,Y){return{type:7,name:$,definitions:Y,options:{}}}function E($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:Y,timings:$}}function D($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:$,options:Y}}function j($){var Y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:$,options:Y}}function L($){return{type:6,styles:$,offset:null}}function v($,Y,Q){return{type:0,name:$,styles:Y,options:Q}}function k($){return{type:5,steps:$}}function b($,Y){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:$,animation:Y,options:Q}}function S(){var $=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:$}}function T($,Y){var Q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:$,animation:Y,options:Q}}function x($){Promise.resolve().then($)}var N=function(){function $(){var Y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Y+Q}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"onStart",value:function(Q){this._originalOnStartFns.push(Q),this._onStartFns.push(Q)}},{key:"onDone",value:function(Q){this._originalOnDoneFns.push(Q),this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var Q=this;x(function(){return Q._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}},{key:"setPosition",value:function(Q){this._position=this.totalTime?Q*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(be){return be()}),ne.length=0}}]),$}(),F=function(){function $(Y){var Q=this;(0,W.Z)(this,$),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Y;var ne=0,be=0,pe=0,de=this.players.length;0==de?x(function(){return Q._onFinish()}):this.players.forEach(function(le){le.onDone(function(){++ne==de&&Q._onFinish()}),le.onDestroy(function(){++be==de&&Q._onDestroy()}),le.onStart(function(){++pe==de&&Q._onStart()})}),this.totalTime=this.players.reduce(function(le,ce){return Math.max(le,ce.totalTime)},0)}return(0,G.Z)($,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(Q){return Q()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(Q){return Q.init()})}},{key:"onStart",value:function(Q){this._onStartFns.push(Q)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(Q){return Q()}),this._onStartFns=[])}},{key:"onDone",value:function(Q){this._onDoneFns.push(Q)}},{key:"onDestroy",value:function(Q){this._onDestroyFns.push(Q)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(Q){return Q.play()})}},{key:"pause",value:function(){this.players.forEach(function(Q){return Q.pause()})}},{key:"restart",value:function(){this.players.forEach(function(Q){return Q.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(Q){return Q.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(Q){return Q.destroy()}),this._onDestroyFns.forEach(function(Q){return Q()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(Q){return Q.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(Q){var ne=Q*this.totalTime;this.players.forEach(function(be){var pe=be.totalTime?Math.min(1,ne/be.totalTime):1;be.setPosition(pe)})}},{key:"getPosition",value:function(){var Q=this.players.reduce(function(ne,be){return null===ne||be.totalTime>ne.totalTime?be:ne},null);return null!=Q?Q.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(Q){Q.beforeDestroy&&Q.beforeDestroy()})}},{key:"triggerCallback",value:function(Q){var ne="start"==Q?this._onStartFns:this._onDoneFns;ne.forEach(function(be){return be()}),ne.length=0}}]),$}(),X="!"},5664:function(De,K,m){"use strict";m.d(K,{$s:function(){return Tt},Em:function(){return Ft},Kd:function(){return jt},X6:function(){return Xt},ic:function(){return nt},kH:function(){return hn},qV:function(){return Dt},qm:function(){return et},rt:function(){return St},s1:function(){return $t},tE:function(){return En},yG:function(){return Je}});var G=m(7685),W=m(7326),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(5671),D=m(3144),j=m(9808),L=m(5e3),v=m(925),k=m(8929),b=m(4096),O=m(591),S=m(1086),y=m(1159),T=m(2994),M=m(13),x=m(9664),N=m(4850),F=m(2986),X=m(1307),$=m(5778),Y=m(7625),Q=m(3191),ne=m(7144),be=m(5113);function ce(ze,Ke){return(ze.getAttribute(Ke)||"").match(/\S+/g)||[]}var je="cdk-describedby-message",at="cdk-describedby-host",Mt=0,Tt=function(){function ze(Ke,Re){(0,E.Z)(this,ze),this._platform=Re,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(Mt++),this._document=Ke,this._id=(0,L.f3M)(L.AFp)+"-"+Mt++}return(0,D.Z)(ze,[{key:"describe",value:function(Re,qe,vt){if(this._canBeDescribed(Re,qe)){var dn=xt(qe,vt);"string"!=typeof qe?(Lt(qe,this._id),this._messageRegistry.set(dn,{messageElement:qe,referenceCount:0})):this._messageRegistry.has(dn)||this._createMessageElement(qe,vt),this._isElementDescribedByMessage(Re,dn)||this._addMessageReference(Re,dn)}}},{key:"removeDescription",value:function(Re,qe,vt){var dn;if(qe&&this._isElementNode(Re)){var Hn=xt(qe,vt);if(this._isElementDescribedByMessage(Re,Hn)&&this._removeMessageReference(Re,Hn),"string"==typeof qe){var Yt=this._messageRegistry.get(Hn);Yt&&0===Yt.referenceCount&&this._deleteMessageElement(Hn)}0===(null===(dn=this._messagesContainer)||void 0===dn?void 0:dn.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var Re,qe=this._document.querySelectorAll("[".concat(at,'="').concat(this._id,'"]')),vt=0;vt<qe.length;vt++)this._removeCdkDescribedByReferenceIds(qe[vt]),qe[vt].removeAttribute(at);null===(Re=this._messagesContainer)||void 0===Re||Re.remove(),this._messagesContainer=null,this._messageRegistry.clear()}},{key:"_createMessageElement",value:function(Re,qe){var vt=this._document.createElement("div");Lt(vt,this._id),vt.textContent=Re,qe&&vt.setAttribute("role",qe),this._createMessagesContainer(),this._messagesContainer.appendChild(vt),this._messageRegistry.set(xt(Re,qe),{messageElement:vt,referenceCount:0})}},{key:"_deleteMessageElement",value:function(Re){var qe,vt;null===(vt=null===(qe=this._messageRegistry.get(Re))||void 0===qe?void 0:qe.messageElement)||void 0===vt||vt.remove(),this._messageRegistry.delete(Re)}},{key:"_createMessagesContainer",value:function(){if(!this._messagesContainer){for(var Re="cdk-describedby-message-container",qe=this._document.querySelectorAll(".".concat(Re,'[platform="server"]')),vt=0;vt<qe.length;vt++)qe[vt].remove();var dn=this._document.createElement("div");dn.style.visibility="hidden",dn.classList.add(Re),dn.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&dn.setAttribute("platform","server"),this._document.body.appendChild(dn),this._messagesContainer=dn}}},{key:"_removeCdkDescribedByReferenceIds",value:function(Re){var qe=ce(Re,"aria-describedby").filter(function(vt){return 0!=vt.indexOf(je)});Re.setAttribute("aria-describedby",qe.join(" "))}},{key:"_addMessageReference",value:function(Re,qe){var vt=this._messageRegistry.get(qe);(function de(ze,Ke,Re){var qe=ce(ze,Ke);qe.some(function(vt){return vt.trim()==Re.trim()})||(qe.push(Re.trim()),ze.setAttribute(Ke,qe.join(" ")))})(Re,"aria-describedby",vt.messageElement.id),Re.setAttribute(at,this._id),vt.referenceCount++}},{key:"_removeMessageReference",value:function(Re,qe){var vt=this._messageRegistry.get(qe);vt.referenceCount--,function le(ze,Ke,Re){var vt=ce(ze,Ke).filter(function(dn){return dn!=Re.trim()});vt.length?ze.setAttribute(Ke,vt.join(" ")):ze.removeAttribute(Ke)}(Re,"aria-describedby",vt.messageElement.id),Re.removeAttribute(at)}},{key:"_isElementDescribedByMessage",value:function(Re,qe){var vt=ce(Re,"aria-describedby"),dn=this._messageRegistry.get(qe),Hn=dn&&dn.messageElement.id;return!!Hn&&-1!=vt.indexOf(Hn)}},{key:"_canBeDescribed",value:function(Re,qe){if(!this._isElementNode(Re))return!1;if(qe&&"object"==typeof qe)return!0;var vt=null==qe?"":"".concat(qe).trim(),dn=Re.getAttribute("aria-label");return!!vt&&(!dn||dn.trim()!==vt)}},{key:"_isElementNode",value:function(Re){return Re.nodeType===this._document.ELEMENT_NODE}}]),ze}();function xt(ze,Ke){return"string"==typeof ze?"".concat(Ke||"","/").concat(ze):ze}function Lt(ze,Ke){ze.id||(ze.id="".concat(je,"-").concat(Ke,"-").concat(Mt++))}Tt.\u0275fac=function(Ke){return new(Ke||Tt)(L.LFG(j.K0),L.LFG(v.t4))},Tt.\u0275prov=L.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"});var Ze=function(){function ze(Ke){var Re=this;(0,E.Z)(this,ze),this._items=Ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new k.xQ,this._typeaheadSubscription=b.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(qe){return qe.disabled},this._pressedLetters=[],this.tabOut=new k.xQ,this.change=new k.xQ,Ke instanceof L.n_E&&Ke.changes.subscribe(function(qe){if(Re._activeItem){var dn=qe.toArray().indexOf(Re._activeItem);dn>-1&&dn!==Re._activeItemIndex&&(Re._activeItemIndex=dn)}})}return(0,D.Z)(ze,[{key:"skipPredicate",value:function(Re){return this._skipPredicateFn=Re,this}},{key:"withWrap",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=Re,this}},{key:"withVerticalOrientation",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=Re,this}},{key:"withHorizontalOrientation",value:function(Re){return this._horizontal=Re,this}},{key:"withAllowedModifierKeys",value:function(Re){return this._allowedModifierKeys=Re,this}},{key:"withTypeAhead",value:function(){var Re=this,qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,T.b)(function(vt){return Re._pressedLetters.push(vt)}),(0,M.b)(qe),(0,x.h)(function(){return Re._pressedLetters.length>0}),(0,N.U)(function(){return Re._pressedLetters.join("")})).subscribe(function(vt){for(var dn=Re._getItemsArray(),Hn=1;Hn<dn.length+1;Hn++){var Yt=(Re._activeItemIndex+Hn)%dn.length,kt=dn[Yt];if(!Re._skipPredicateFn(kt)&&0===kt.getLabel().toUpperCase().trim().indexOf(vt)){Re.setActiveItem(Yt);break}}Re._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var Re=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=Re,this}},{key:"setActiveItem",value:function(Re){var qe=this._activeItem;this.updateActiveItem(Re),this._activeItem!==qe&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(Re){var qe=this,vt=Re.keyCode,Hn=["altKey","ctrlKey","metaKey","shiftKey"].every(function(Yt){return!Re[Yt]||qe._allowedModifierKeys.indexOf(Yt)>-1});switch(vt){case y.Mf:return void this.tabOut.next();case y.JH:if(this._vertical&&Hn){this.setNextItemActive();break}return;case y.LH:if(this._vertical&&Hn){this.setPreviousItemActive();break}return;case y.SV:if(this._horizontal&&Hn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case y.oh:if(this._horizontal&&Hn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case y.Sd:if(this._homeAndEnd&&Hn){this.setFirstItemActive();break}return;case y.uR:if(this._homeAndEnd&&Hn){this.setLastItemActive();break}return;default:return void((Hn||(0,y.Vb)(Re,"shiftKey"))&&(Re.key&&1===Re.key.length?this._letterKeyStream.next(Re.key.toLocaleUpperCase()):(vt>=y.A&&vt<=y.Z||vt>=y.xE&&vt<=y.aO)&&this._letterKeyStream.next(String.fromCharCode(vt))))}this._pressedLetters=[],Re.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(Re){var qe=this._getItemsArray(),vt="number"==typeof Re?Re:qe.indexOf(Re),dn=qe[vt];this._activeItem=null==dn?null:dn,this._activeItemIndex=vt}},{key:"_setActiveItemByDelta",value:function(Re){this._wrap?this._setActiveInWrapMode(Re):this._setActiveInDefaultMode(Re)}},{key:"_setActiveInWrapMode",value:function(Re){for(var qe=this._getItemsArray(),vt=1;vt<=qe.length;vt++){var dn=(this._activeItemIndex+Re*vt+qe.length)%qe.length,Hn=qe[dn];if(!this._skipPredicateFn(Hn))return void this.setActiveItem(dn)}}},{key:"_setActiveInDefaultMode",value:function(Re){this._setActiveItemByIndex(this._activeItemIndex+Re,Re)}},{key:"_setActiveItemByIndex",value:function(Re,qe){var vt=this._getItemsArray();if(vt[Re]){for(;this._skipPredicateFn(vt[Re]);)if(!vt[Re+=qe])return;this.setActiveItem(Re)}}},{key:"_getItemsArray",value:function(){return this._items instanceof L.n_E?this._items.toArray():this._items}}]),ze}(),$t=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(){return(0,E.Z)(this,Re),Ke.apply(this,arguments)}return(0,D.Z)(Re,[{key:"setActiveItem",value:function(vt){this.activeItem&&this.activeItem.setInactiveStyles(),(0,A.Z)((0,U.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.setActiveStyles()}}]),Re}(Ze),Ft=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(){var qe;return(0,E.Z)(this,Re),(qe=Ke.apply(this,arguments))._origin="program",qe}return(0,D.Z)(Re,[{key:"setFocusOrigin",value:function(vt){return this._origin=vt,this}},{key:"setActiveItem",value:function(vt){(0,A.Z)((0,U.Z)(Re.prototype),"setActiveItem",this).call(this,vt),this.activeItem&&this.activeItem.focus(this._origin)}}]),Re}(Ze),nt=function(){function ze(Ke){(0,E.Z)(this,ze),this._platform=Ke}return(0,D.Z)(ze,[{key:"isDisabled",value:function(Re){return Re.hasAttribute("disabled")}},{key:"isVisible",value:function(Re){return function _t(ze){return!!(ze.offsetWidth||ze.offsetHeight||"function"==typeof ze.getClientRects&&ze.getClientRects().length)}(Re)&&"visible"===getComputedStyle(Re).visibility}},{key:"isTabbable",value:function(Re){if(!this._platform.isBrowser)return!1;var qe=function Ot(ze){try{return ze.frameElement}catch(Ke){return null}}(function ge(ze){return ze.ownerDocument&&ze.ownerDocument.defaultView||window}(Re));if(qe&&(-1===H(qe)||!this.isVisible(qe)))return!1;var vt=Re.nodeName.toLowerCase(),dn=H(Re);return Re.hasAttribute("contenteditable")?-1!==dn:!("iframe"===vt||"object"===vt||this._platform.WEBKIT&&this._platform.IOS&&!function tt(ze){var Ke=ze.nodeName.toLowerCase(),Re="input"===Ke&&ze.type;return"text"===Re||"password"===Re||"select"===Ke||"textarea"===Ke}(Re))&&("audio"===vt?!!Re.hasAttribute("controls")&&-1!==dn:"video"===vt?-1!==dn&&(null!==dn||(this._platform.FIREFOX||Re.hasAttribute("controls"))):Re.tabIndex>=0)}},{key:"isFocusable",value:function(Re,qe){return function Ye(ze){return!function We(ze){return function dt(ze){return"input"==ze.nodeName.toLowerCase()}(ze)&&"hidden"==ze.type}(ze)&&(function Ct(ze){var Ke=ze.nodeName.toLowerCase();return"input"===Ke||"select"===Ke||"button"===Ke||"textarea"===Ke}(ze)||function lt(ze){return function Ut(ze){return"a"==ze.nodeName.toLowerCase()}(ze)&&ze.hasAttribute("href")}(ze)||ze.hasAttribute("contenteditable")||B(ze))}(Re)&&!this.isDisabled(Re)&&((null==qe?void 0:qe.ignoreVisibility)||this.isVisible(Re))}}]),ze}();function B(ze){if(!ze.hasAttribute("tabindex")||void 0===ze.tabIndex)return!1;var Ke=ze.getAttribute("tabindex");return!(!Ke||isNaN(parseInt(Ke,10)))}function H(ze){if(!B(ze))return null;var Ke=parseInt(ze.getAttribute("tabindex")||"",10);return isNaN(Ke)?-1:Ke}nt.\u0275fac=function(Ke){return new(Ke||nt)(L.LFG(v.t4))},nt.\u0275prov=L.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"});var t=function(){function ze(Ke,Re,qe,vt){var dn=this,Hn=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,E.Z)(this,ze),this._element=Ke,this._checker=Re,this._ngZone=qe,this._document=vt,this._hasAttached=!1,this.startAnchorListener=function(){return dn.focusLastTabbableElement()},this.endAnchorListener=function(){return dn.focusFirstTabbableElement()},this._enabled=!0,Hn||this.attachAnchors()}return(0,D.Z)(ze,[{key:"enabled",get:function(){return this._enabled},set:function(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"destroy",value:function(){var Re=this._startAnchor,qe=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),qe&&(qe.removeEventListener("focus",this.endAnchorListener),qe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var Re=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){Re._startAnchor||(Re._startAnchor=Re._createAnchor(),Re._startAnchor.addEventListener("focus",Re.startAnchorListener)),Re._endAnchor||(Re._endAnchor=Re._createAnchor(),Re._endAnchor.addEventListener("focus",Re.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusInitialElement(Re))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusFirstTabbableElement(Re))})})}},{key:"focusLastTabbableElementWhenReady",value:function(Re){var qe=this;return new Promise(function(vt){qe._executeOnStable(function(){return vt(qe.focusLastTabbableElement(Re))})})}},{key:"_getRegionBoundary",value:function(Re){var qe=this._element.querySelectorAll("[cdk-focus-region-".concat(Re,"], ")+"[cdkFocusRegion".concat(Re,"], ")+"[cdk-focus-".concat(Re,"]"));return"start"==Re?qe.length?qe[0]:this._getFirstTabbableElement(this._element):qe.length?qe[qe.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(Re){var qe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(qe){if(!this._checker.isFocusable(qe)){var vt=this._getFirstTabbableElement(qe);return null==vt||vt.focus(Re),!!vt}return qe.focus(Re),!0}return this.focusFirstTabbableElement(Re)}},{key:"focusFirstTabbableElement",value:function(Re){var qe=this._getRegionBoundary("start");return qe&&qe.focus(Re),!!qe}},{key:"focusLastTabbableElement",value:function(Re){var qe=this._getRegionBoundary("end");return qe&&qe.focus(Re),!!qe}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var qe=Re.children,vt=0;vt<qe.length;vt++){var dn=qe[vt].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(qe[vt]):null;if(dn)return dn}return null}},{key:"_getLastTabbableElement",value:function(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;for(var qe=Re.children,vt=qe.length-1;vt>=0;vt--){var dn=qe[vt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(qe[vt]):null;if(dn)return dn}return null}},{key:"_createAnchor",value:function(){var Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}},{key:"_toggleAnchorTabIndex",value:function(Re,qe){Re?qe.setAttribute("tabindex","0"):qe.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}},{key:"_executeOnStable",value:function(Re){this._ngZone.isStable?Re():this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(Re)}}]),ze}(),Dt=function(){function ze(Ke,Re,qe){(0,E.Z)(this,ze),this._checker=Ke,this._ngZone=Re,this._document=qe}return(0,D.Z)(ze,[{key:"create",value:function(Re){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new t(Re,this._checker,this._ngZone,this._document,qe)}}]),ze}();Dt.\u0275fac=function(Ke){return new(Ke||Dt)(L.LFG(nt),L.LFG(L.R0b),L.LFG(j.K0))},Dt.\u0275prov=L.Yz7({token:Dt,factory:Dt.\u0275fac,providedIn:"root"});var Zt=function(){function ze(Ke,Re,qe){(0,E.Z)(this,ze),this._elementRef=Ke,this._focusTrapFactory=Re,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return(0,D.Z)(ze,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(Re){this.focusTrap.enabled=(0,Q.Ig)(Re)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(Re){this._autoCapture=(0,Q.Ig)(Re)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(Re){var qe=Re.autoCapture;qe&&!qe.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}]),ze}();Zt.\u0275fac=function(Ke){return new(Ke||Zt)(L.Y36(L.SBq),L.Y36(Dt),L.Y36(j.K0))},Zt.\u0275dir=L.lG2({type:Zt,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[L.TTD]});var zt=function(ze){(0,R.Z)(Re,ze);var Ke=(0,P.Z)(Re);function Re(qe,vt,dn,Hn,Yt,kt,$e){var gt;return(0,E.Z)(this,Re),(gt=Ke.call(this,qe,vt,dn,Hn,$e.defer))._focusTrapManager=Yt,gt._inertStrategy=kt,gt._focusTrapManager.register((0,W.Z)(gt)),gt}return(0,D.Z)(Re,[{key:"enabled",get:function(){return this._enabled},set:function(vt){this._enabled=vt,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}},{key:"destroy",value:function(){this._focusTrapManager.deregister(this),(0,A.Z)((0,U.Z)(Re.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}]),Re}(t),sn=new L.OlP("FOCUS_TRAP_INERT_STRATEGY"),qt=function(){function ze(){(0,E.Z)(this,ze),this._listener=null}return(0,D.Z)(ze,[{key:"preventFocus",value:function(Re){var qe=this;this._listener&&Re._document.removeEventListener("focus",this._listener,!0),this._listener=function(vt){return qe._trapFocus(Re,vt)},Re._ngZone.runOutsideAngular(function(){Re._document.addEventListener("focus",qe._listener,!0)})}},{key:"allowFocus",value:function(Re){!this._listener||(Re._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(Re,qe){var vt,dn=qe.target,Hn=Re._element;dn&&!Hn.contains(dn)&&(null===(vt=dn.closest)||void 0===vt||!vt.call(dn,"div.cdk-overlay-pane"))&&setTimeout(function(){Re.enabled&&!Hn.contains(Re._document.activeElement)&&Re.focusFirstTabbableElement()})}}]),ze}(),yn=function(){function ze(){(0,E.Z)(this,ze),this._focusTrapStack=[]}return(0,D.Z)(ze,[{key:"register",value:function(Re){this._focusTrapStack=this._focusTrapStack.filter(function(vt){return vt!==Re});var qe=this._focusTrapStack;qe.length&&qe[qe.length-1]._disable(),qe.push(Re),Re._enable()}},{key:"deregister",value:function(Re){Re._disable();var qe=this._focusTrapStack,vt=qe.indexOf(Re);-1!==vt&&(qe.splice(vt,1),qe.length&&qe[qe.length-1]._enable())}}]),ze}();yn.\u0275fac=function(Ke){return new(Ke||yn)},yn.\u0275prov=L.Yz7({token:yn,factory:yn.\u0275fac,providedIn:"root"});var Kt=function(){function ze(Ke,Re,qe,vt,dn){(0,E.Z)(this,ze),this._checker=Ke,this._ngZone=Re,this._focusTrapManager=qe,this._document=vt,this._inertStrategy=dn||new qt}return(0,D.Z)(ze,[{key:"create",value:function(Re){var vt,qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{defer:!1};return vt="boolean"==typeof qe?{defer:qe}:qe,new zt(Re,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,vt)}}]),ze}();function Xt(ze){return 0===ze.buttons||0===ze.offsetX&&0===ze.offsetY}function Je(ze){var Ke=ze.touches&&ze.touches[0]||ze.changedTouches&&ze.changedTouches[0];return!(!Ke||-1!==Ke.identifier||null!=Ke.radiusX&&1!==Ke.radiusX||null!=Ke.radiusY&&1!==Ke.radiusY)}Kt.\u0275fac=function(Ke){return new(Ke||Kt)(L.LFG(nt),L.LFG(L.R0b),L.LFG(yn),L.LFG(j.K0),L.LFG(sn,8))},Kt.\u0275prov=L.Yz7({token:Kt,factory:Kt.\u0275fac,providedIn:"root"});var Be=new L.OlP("cdk-input-modality-detector-options"),te={ignoreKeys:[y.zL,y.jx,y.b2,y.MW,y.JU]},fe=(0,v.i$)({passive:!0,capture:!0}),Ne=function(){function ze(Ke,Re,qe,vt){var dn=this;(0,E.Z)(this,ze),this._platform=Ke,this._mostRecentTarget=null,this._modality=new O.X(null),this._lastTouchMs=0,this._onKeydown=function(Hn){var Yt,kt;null!==(kt=null===(Yt=dn._options)||void 0===Yt?void 0:Yt.ignoreKeys)&&void 0!==kt&&kt.some(function($e){return $e===Hn.keyCode})||(dn._modality.next("keyboard"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._onMousedown=function(Hn){Date.now()-dn._lastTouchMs<650||(dn._modality.next(Xt(Hn)?"keyboard":"mouse"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._onTouchstart=function(Hn){Je(Hn)?dn._modality.next("keyboard"):(dn._lastTouchMs=Date.now(),dn._modality.next("touch"),dn._mostRecentTarget=(0,v.sA)(Hn))},this._options=Object.assign(Object.assign({},te),vt),this.modalityDetected=this._modality.pipe((0,X.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,$.x)()),Ke.isBrowser&&Re.runOutsideAngular(function(){qe.addEventListener("keydown",dn._onKeydown,fe),qe.addEventListener("mousedown",dn._onMousedown,fe),qe.addEventListener("touchstart",dn._onTouchstart,fe)})}return(0,D.Z)(ze,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fe),document.removeEventListener("mousedown",this._onMousedown,fe),document.removeEventListener("touchstart",this._onTouchstart,fe))}}]),ze}();Ne.\u0275fac=function(Ke){return new(Ke||Ne)(L.LFG(v.t4),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Be,8))},Ne.\u0275prov=L.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"});var st=new L.OlP("liveAnnouncerElement",{providedIn:"root",factory:function ct(){return null}});var Bt=new L.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jt=function(){function ze(Ke,Re,qe,vt){(0,E.Z)(this,ze),this._ngZone=Re,this._defaultOptions=vt,this._document=qe,this._liveElement=Ke||this._createLiveElement()}return(0,D.Z)(ze,[{key:"announce",value:function(Re){for(var dn,Hn,qe=this,vt=this._defaultOptions,Yt=arguments.length,kt=new Array(Yt>1?Yt-1:0),$e=1;$e<Yt;$e++)kt[$e-1]=arguments[$e];return 1===kt.length&&"number"==typeof kt[0]?Hn=kt[0]:(dn=kt[0],Hn=kt[1]),this.clear(),clearTimeout(this._previousTimeout),dn||(dn=vt&&vt.politeness?vt.politeness:"polite"),null==Hn&&vt&&(Hn=vt.duration),this._liveElement.setAttribute("aria-live",dn),this._ngZone.runOutsideAngular(function(){return qe._currentPromise||(qe._currentPromise=new Promise(function(gt){return qe._currentResolve=gt})),clearTimeout(qe._previousTimeout),qe._previousTimeout=setTimeout(function(){qe._liveElement.textContent=Re,"number"==typeof Hn&&(qe._previousTimeout=setTimeout(function(){return qe.clear()},Hn)),qe._currentResolve(),qe._currentPromise=qe._currentResolve=void 0},100),qe._currentPromise})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){var Re,qe;clearTimeout(this._previousTimeout),null===(Re=this._liveElement)||void 0===Re||Re.remove(),this._liveElement=null,null===(qe=this._currentResolve)||void 0===qe||qe.call(this),this._currentPromise=this._currentResolve=void 0}},{key:"_createLiveElement",value:function(){for(var Re="cdk-live-announcer-element",qe=this._document.getElementsByClassName(Re),vt=this._document.createElement("div"),dn=0;dn<qe.length;dn++)qe[dn].remove();return vt.classList.add(Re),vt.classList.add("cdk-visually-hidden"),vt.setAttribute("aria-atomic","true"),vt.setAttribute("aria-live","polite"),this._document.body.appendChild(vt),vt}}]),ze}();jt.\u0275fac=function(Ke){return new(Ke||jt)(L.LFG(st,8),L.LFG(L.R0b),L.LFG(j.K0),L.LFG(Bt,8))},jt.\u0275prov=L.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"});var on=function(){function ze(Ke,Re,qe,vt){(0,E.Z)(this,ze),this._elementRef=Ke,this._liveAnnouncer=Re,this._contentObserver=qe,this._ngZone=vt,this._politeness="polite"}return(0,D.Z)(ze,[{key:"politeness",get:function(){return this._politeness},set:function(Re){var qe=this;this._politeness="off"===Re||"assertive"===Re?Re:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(function(){return qe._contentObserver.observe(qe._elementRef).subscribe(function(){var vt=qe._elementRef.nativeElement.textContent;vt!==qe._previousAnnouncedText&&(qe._liveAnnouncer.announce(vt,qe._politeness,qe.duration),qe._previousAnnouncedText=vt)})}))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}]),ze}();on.\u0275fac=function(Ke){return new(Ke||on)(L.Y36(L.SBq),L.Y36(jt),L.Y36(ne.yq),L.Y36(L.R0b))},on.\u0275dir=L.lG2({type:on,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"],duration:["cdkAriaLiveDuration","duration"]},exportAs:["cdkAriaLive"]});var vn=new L.OlP("cdk-focus-monitor-default-options"),ln=(0,v.i$)({passive:!0,capture:!0}),En=function(){function ze(Ke,Re,qe,vt,dn){var Hn=this;(0,E.Z)(this,ze),this._ngZone=Ke,this._platform=Re,this._inputModalityDetector=qe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){Hn._windowFocused=!0,Hn._windowFocusTimeoutId=window.setTimeout(function(){return Hn._windowFocused=!1})},this._stopInputModalityDetector=new k.xQ,this._rootNodeFocusAndBlurListener=function(Yt){for(var $e=(0,v.sA)(Yt);$e;$e=$e.parentElement)"focus"===Yt.type?Hn._onFocus(Yt,$e):Hn._onBlur(Yt,$e)},this._document=vt,this._detectionMode=(null==dn?void 0:dn.detectionMode)||0}return(0,D.Z)(ze,[{key:"monitor",value:function(Re){var qe=arguments.length>1&&void 0!==arguments[1]&&arguments[1],vt=(0,Q.fI)(Re);if(!this._platform.isBrowser||1!==vt.nodeType)return(0,S.of)(null);var dn=(0,v.kV)(vt)||this._getDocument(),Hn=this._elementInfo.get(vt);if(Hn)return qe&&(Hn.checkChildren=!0),Hn.subject;var Yt={checkChildren:qe,subject:new k.xQ,rootNode:dn};return this._elementInfo.set(vt,Yt),this._registerGlobalListeners(Yt),Yt.subject}},{key:"stopMonitoring",value:function(Re){var qe=(0,Q.fI)(Re),vt=this._elementInfo.get(qe);vt&&(vt.subject.complete(),this._setClasses(qe),this._elementInfo.delete(qe),this._removeGlobalListeners(vt))}},{key:"focusVia",value:function(Re,qe,vt){var dn=this,Hn=(0,Q.fI)(Re);Hn===this._getDocument().activeElement?this._getClosestElementsInfo(Hn).forEach(function(kt){var $e=(0,G.Z)(kt,2),gt=$e[0],yt=$e[1];return dn._originChanged(gt,qe,yt)}):(this._setOrigin(qe),"function"==typeof Hn.focus&&Hn.focus(vt))}},{key:"ngOnDestroy",value:function(){var Re=this;this._elementInfo.forEach(function(qe,vt){return Re.stopMonitoring(vt)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(Re){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Re)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Re&&this._isLastInteractionFromInputLabel(Re)?"mouse":"program"}},{key:"_shouldBeAttributedToTouch",value:function(Re){return 1===this._detectionMode||!(null==Re||!Re.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(Re,qe){Re.classList.toggle("cdk-focused",!!qe),Re.classList.toggle("cdk-touch-focused","touch"===qe),Re.classList.toggle("cdk-keyboard-focused","keyboard"===qe),Re.classList.toggle("cdk-mouse-focused","mouse"===qe),Re.classList.toggle("cdk-program-focused","program"===qe)}},{key:"_setOrigin",value:function(Re){var qe=this,vt=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){if(qe._origin=Re,qe._originFromTouchInteraction="touch"===Re&&vt,0===qe._detectionMode){clearTimeout(qe._originTimeoutId);var dn=qe._originFromTouchInteraction?650:1;qe._originTimeoutId=setTimeout(function(){return qe._origin=null},dn)}})}},{key:"_onFocus",value:function(Re,qe){var vt=this._elementInfo.get(qe),dn=(0,v.sA)(Re);!vt||!vt.checkChildren&&qe!==dn||this._originChanged(qe,this._getFocusOrigin(dn),vt)}},{key:"_onBlur",value:function(Re,qe){var vt=this._elementInfo.get(qe);!vt||vt.checkChildren&&Re.relatedTarget instanceof Node&&qe.contains(Re.relatedTarget)||(this._setClasses(qe),this._emitOrigin(vt,null))}},{key:"_emitOrigin",value:function(Re,qe){Re.subject.observers.length&&this._ngZone.run(function(){return Re.subject.next(qe)})}},{key:"_registerGlobalListeners",value:function(Re){var qe=this;if(this._platform.isBrowser){var vt=Re.rootNode,dn=this._rootNodeFocusListenerCount.get(vt)||0;dn||this._ngZone.runOutsideAngular(function(){vt.addEventListener("focus",qe._rootNodeFocusAndBlurListener,ln),vt.addEventListener("blur",qe._rootNodeFocusAndBlurListener,ln)}),this._rootNodeFocusListenerCount.set(vt,dn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){qe._getWindow().addEventListener("focus",qe._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Y.R)(this._stopInputModalityDetector)).subscribe(function(Hn){qe._setOrigin(Hn,!0)}))}}},{key:"_removeGlobalListeners",value:function(Re){var qe=Re.rootNode;if(this._rootNodeFocusListenerCount.has(qe)){var vt=this._rootNodeFocusListenerCount.get(qe);vt>1?this._rootNodeFocusListenerCount.set(qe,vt-1):(qe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ln),qe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ln),this._rootNodeFocusListenerCount.delete(qe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(Re,qe,vt){this._setClasses(Re,qe),this._emitOrigin(vt,qe),this._lastFocusOrigin=qe}},{key:"_getClosestElementsInfo",value:function(Re){var qe=[];return this._elementInfo.forEach(function(vt,dn){(dn===Re||vt.checkChildren&&dn.contains(Re))&&qe.push([dn,vt])}),qe}},{key:"_isLastInteractionFromInputLabel",value:function(Re){var qe=this._inputModalityDetector,vt=qe._mostRecentTarget;if("mouse"!==qe.mostRecentModality||!vt||vt===Re||"INPUT"!==Re.nodeName&&"TEXTAREA"!==Re.nodeName||Re.disabled)return!1;var Hn=Re.labels;if(Hn)for(var Yt=0;Yt<Hn.length;Yt++)if(Hn[Yt].contains(vt))return!0;return!1}}]),ze}();En.\u0275fac=function(Ke){return new(Ke||En)(L.LFG(L.R0b),L.LFG(v.t4),L.LFG(Ne),L.LFG(j.K0,8),L.LFG(vn,8))},En.\u0275prov=L.Yz7({token:En,factory:En.\u0275fac,providedIn:"root"});var hn=function(){function ze(Ke,Re){(0,E.Z)(this,ze),this._elementRef=Ke,this._focusMonitor=Re,this._focusOrigin=null,this.cdkFocusChange=new L.vpe}return(0,D.Z)(ze,[{key:"focusOrigin",get:function(){return this._focusOrigin}},{key:"ngAfterViewInit",value:function(){var Re=this,qe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(qe,1===qe.nodeType&&qe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(vt){Re._focusOrigin=vt,Re.cdkFocusChange.emit(vt)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),ze}();hn.\u0275fac=function(Ke){return new(Ke||hn)(L.Y36(L.SBq),L.Y36(En))},hn.\u0275dir=L.lG2({type:hn,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var mn="cdk-high-contrast-black-on-white",At="cdk-high-contrast-white-on-black",Et="cdk-high-contrast-active",et=function(){function ze(Ke,Re){var qe=this;(0,E.Z)(this,ze),this._platform=Ke,this._document=Re,this._breakpointSubscription=(0,L.f3M)(be.Yg).observe("(forced-colors: active)").subscribe(function(){qe._hasCheckedHighContrastMode&&(qe._hasCheckedHighContrastMode=!1,qe._applyBodyHighContrastModeCssClasses())})}return(0,D.Z)(ze,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var Re=this._document.createElement("div");Re.style.backgroundColor="rgb(1,2,3)",Re.style.position="absolute",this._document.body.appendChild(Re);var qe=this._document.defaultView||window,vt=qe&&qe.getComputedStyle?qe.getComputedStyle(Re):null,dn=(vt&&vt.backgroundColor||"").replace(/ /g,"");switch(Re.remove(),dn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}},{key:"ngOnDestroy",value:function(){this._breakpointSubscription.unsubscribe()}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var Re=this._document.body.classList;Re.remove(Et,mn,At),this._hasCheckedHighContrastMode=!0;var qe=this.getHighContrastMode();1===qe?Re.add(Et,mn):2===qe&&Re.add(Et,At)}}}]),ze}();et.\u0275fac=function(Ke){return new(Ke||et)(L.LFG(v.t4),L.LFG(j.K0))},et.\u0275prov=L.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"});var St=(0,D.Z)(function ze(Ke){(0,E.Z)(this,ze),Ke._applyBodyHighContrastModeCssClasses()});St.\u0275fac=function(Ke){return new(Ke||St)(L.LFG(et))},St.\u0275mod=L.oAB({type:St}),St.\u0275inj=L.cJS({imports:[ne.Q8]})},226:function(De,K,m){"use strict";m.d(K,{Is:function(){return j},vT:function(){return v}});var G=m(5671),W=m(3144),A=m(5e3),U=m(9808),R=new A.OlP("cdk-dir-doc",{providedIn:"root",factory:function P(){return(0,A.f3M)(U.K0)}});var E=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(k){var b=(null==k?void 0:k.toLowerCase())||"";return"auto"===b&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?E.test(navigator.language)?"rtl":"ltr":"rtl"===b?"rtl":"ltr"}var j=function(){function k(b){if((0,G.Z)(this,k),this.value="ltr",this.change=new A.vpe,b){var O=b.body?b.body.dir:null,S=b.documentElement?b.documentElement.dir:null;this.value=D(O||S||"ltr")}}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),k}();j.\u0275fac=function(b){return new(b||j)(A.LFG(R,8))},j.\u0275prov=A.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(){(0,G.Z)(this,k),this._dir="ltr",this._isInitialized=!1,this.change=new A.vpe}return(0,W.Z)(k,[{key:"dir",get:function(){return this._dir},set:function(O){var S=this._dir;this._dir=D(O),this._rawDir=O,S!==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()}}]),k}();L.\u0275fac=function(b){return new(b||L)},L.\u0275dir=A.lG2({type:L,selectors:[["","dir",""]],hostVars:1,hostBindings:function(b,O){2&b&&A.uIk("dir",O._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[A._Bn([{provide:j,useExisting:L}])]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=A.oAB({type:v}),v.\u0275inj=A.cJS({})},3191:function(De,K,m){"use strict";m.d(K,{Eq:function(){return P},HM:function(){return E},Ig:function(){return A},du:function(){return j},fI:function(){return D},su:function(){return U},t6:function(){return R}});var G=m(7762),W=m(5e3);function A(L){return null!=L&&"false"!=="".concat(L)}function U(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return R(L)?Number(L):v}function R(L){return!isNaN(parseFloat(L))&&!isNaN(Number(L))}function P(L){return Array.isArray(L)?L:[L]}function E(L){return null==L?"":"string"==typeof L?L:"".concat(L,"px")}function D(L){return L instanceof W.SBq?L.nativeElement:L}function j(L){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,k=[];if(null!=L){var S,b=Array.isArray(L)?L:"".concat(L).split(v),O=(0,G.Z)(b);try{for(O.s();!(S=O.n()).done;){var y=S.value,T="".concat(y).trim();T&&k.push(T)}}catch(M){O.e(M)}finally{O.f()}}return k}},449:function(De,K,m){"use strict";m.d(K,{A8:function(){return M},Ov:function(){return y},P3:function(){return b},Z9:function(){return k},eX:function(){return S},k:function(){return x},o2:function(){return v},yy:function(){return O}});var G=m(7762),W=m(136),A=m(9388),U=m(3144),R=m(5671),P=m(1762),E=m(4715),D=m(1086),j=m(8929),L=m(5e3),v=(0,U.Z)(function N(){(0,R.Z)(this,N)});function k(N){return N&&"function"==typeof N.connect&&!(N instanceof P.c)}var b=function(N){(0,W.Z)(X,N);var F=(0,A.Z)(X);function X($){var Y;return(0,R.Z)(this,X),(Y=F.call(this))._data=$,Y}return(0,U.Z)(X,[{key:"connect",value:function(){return(0,E.b)(this._data)?this._data:(0,D.of)(this._data)}},{key:"disconnect",value:function(){}}]),X}(v),O=function(){function N(){(0,R.Z)(this,N)}return(0,U.Z)(N,[{key:"applyChanges",value:function(X,$,Y,Q,ne){X.forEachOperation(function(be,pe,de){var le,ce;if(null==be.previousIndex){var me=Y(be,pe,de);le=$.createEmbeddedView(me.templateRef,me.context,me.index),ce=1}else null==de?($.remove(pe),ce=3):(le=$.get(pe),$.move(le,de),ce=2);ne&&ne({context:null==le?void 0:le.context,operation:ce,record:be})})}},{key:"detach",value:function(){}}]),N}(),S=function(){function N(){(0,R.Z)(this,N),this.viewCacheSize=20,this._viewCache=[]}return(0,U.Z)(N,[{key:"applyChanges",value:function(X,$,Y,Q,ne){var be=this;X.forEachOperation(function(pe,de,le){var ce,me;if(null==pe.previousIndex){me=(ce=be._insertView(function(){return Y(pe,de,le)},le,$,Q(pe)))?1:0}else null==le?(be._detachAndCacheView(de,$),me=3):(ce=be._moveView(de,le,$,Q(pe)),me=2);ne&&ne({context:null==ce?void 0:ce.context,operation:me,record:pe})})}},{key:"detach",value:function(){var $,X=(0,G.Z)(this._viewCache);try{for(X.s();!($=X.n()).done;){$.value.destroy()}}catch(Q){X.e(Q)}finally{X.f()}this._viewCache=[]}},{key:"_insertView",value:function(X,$,Y,Q){var ne=this._insertViewFromCache($,Y);if(!ne){var be=X();return Y.createEmbeddedView(be.templateRef,be.context,be.index)}ne.context.$implicit=Q}},{key:"_detachAndCacheView",value:function(X,$){var Y=$.detach(X);this._maybeCacheView(Y,$)}},{key:"_moveView",value:function(X,$,Y,Q){var ne=Y.get(X);return Y.move(ne,$),ne.context.$implicit=Q,ne}},{key:"_maybeCacheView",value:function(X,$){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(X);else{var Y=$.indexOf(X);-1===Y?X.destroy():$.remove(Y)}}},{key:"_insertViewFromCache",value:function(X,$){var Y=this._viewCache.pop();return Y&&$.insert(Y,X),Y||null}}]),N}(),y=function(){function N(){var F=this,X=arguments.length>0&&void 0!==arguments[0]&&arguments[0],$=arguments.length>1?arguments[1]:void 0,Y=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],Q=arguments.length>3?arguments[3]:void 0;(0,R.Z)(this,N),this._multiple=X,this._emitChanges=Y,this.compareWith=Q,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new j.xQ,$&&$.length&&(X?$.forEach(function(ne){return F._markSelected(ne)}):this._markSelected($[0]),this._selectedToEmit.length=0)}return(0,U.Z)(N,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y),Y.forEach(function(be){return X._markSelected(be)});var ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}},{key:"deselect",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y),Y.forEach(function(be){return X._unmarkSelected(be)});var ne=this._hasQueuedChanges();return this._emitChangeEvent(),ne}},{key:"setSelection",value:function(){for(var X=this,$=arguments.length,Y=new Array($),Q=0;Q<$;Q++)Y[Q]=arguments[Q];this._verifyValueAssignment(Y);var ne=this.selected,be=new Set(Y);Y.forEach(function(de){return X._markSelected(de)}),ne.filter(function(de){return!be.has(de)}).forEach(function(de){return X._unmarkSelected(de)});var pe=this._hasQueuedChanges();return this._emitChangeEvent(),pe}},{key:"toggle",value:function(X){return this.isSelected(X)?this.deselect(X):this.select(X)}},{key:"clear",value:function(){var X=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._unmarkAll();var $=this._hasQueuedChanges();return X&&this._emitChangeEvent(),$}},{key:"isSelected",value:function(X){if(this.compareWith){var Y,$=(0,G.Z)(this._selection);try{for($.s();!(Y=$.n()).done;){var Q=Y.value;if(this.compareWith(Q,X))return!0}}catch(ne){$.e(ne)}finally{$.f()}return!1}return this._selection.has(X)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(X){this._multiple&&this.selected&&this._selected.sort(X)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this.isSelected(X)||this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}},{key:"_unmarkSelected",value:function(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}},{key:"_unmarkAll",value:function(){var X=this;this.isEmpty()||this._selection.forEach(function($){return X._unmarkSelected($)})}},{key:"_verifyValueAssignment",value:function(X){X.length>1&&this._multiple}},{key:"_hasQueuedChanges",value:function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}]),N}();var M=function(){function N(){(0,R.Z)(this,N),this._listeners=[]}return(0,U.Z)(N,[{key:"notify",value:function(X,$){var Q,Y=(0,G.Z)(this._listeners);try{for(Y.s();!(Q=Y.n()).done;){(0,Q.value)(X,$)}}catch(be){Y.e(be)}finally{Y.f()}}},{key:"listen",value:function(X){var $=this;return this._listeners.push(X),function(){$._listeners=$._listeners.filter(function(Y){return X!==Y})}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),N}();M.\u0275fac=function(F){return new(F||M)},M.\u0275prov=L.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"});var x=new L.OlP("_ViewRepeater")},1159:function(De,K,m){"use strict";m.d(K,{A:function(){return Ze},JH:function(){return N},JU:function(){return P},K5:function(){return R},LH:function(){return M},L_:function(){return k},MW:function(){return Je},Mf:function(){return A},SV:function(){return x},Sd:function(){return y},Vb:function(){return qr},Z:function(){return Xt},ZH:function(){return W},aO:function(){return at},b2:function(){return Ko},hY:function(){return v},jx:function(){return E},oh:function(){return T},uR:function(){return S},xE:function(){return Q},yY:function(){return Y},zL:function(){return D}});var W=8,A=9,R=13,P=16,E=17,D=18,v=27,k=32,S=35,y=36,T=37,M=38,x=39,N=40,Y=46,Q=48,at=57,Ze=65,Xt=90,Je=91,Ko=224;function qr(Bi){for(var ba=arguments.length,Ar=new Array(ba>1?ba-1:0),Fi=1;Fi<ba;Fi++)Ar[Fi-1]=arguments[Fi];return Ar.length?Ar.some(function(Uo){return Bi[Uo]}):Bi.altKey||Bi.shiftKey||Bi.ctrlKey||Bi.metaKey}},5113:function(De,K,m){"use strict";m.d(K,{Yg:function(){return X},u3:function(){return Y}});var G=m(3144),W=m(5671),A=m(5e3),U=m(3191),R=m(8929),P=m(6053),E=m(1961),D=m(7451),j=m(2986),L=m(1307),v=m(13),k=m(4850),b=m(1059),O=m(7625),S=m(925),y=(0,G.Z)(function Q(){(0,W.Z)(this,Q)});y.\u0275fac=function(ne){return new(ne||y)},y.\u0275mod=A.oAB({type:y}),y.\u0275inj=A.cJS({});var M,T=new Set,x=function(){function Q(ne){(0,W.Z)(this,Q),this._platform=ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):F}return(0,G.Z)(Q,[{key:"matchMedia",value:function(be){return(this._platform.WEBKIT||this._platform.BLINK)&&function N(Q){if(!T.has(Q))try{M||((M=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(M)),M.sheet&&(M.sheet.insertRule("@media ".concat(Q," {body{ }}"),0),T.add(Q))}catch(ne){console.error(ne)}}(be),this._matchMedia(be)}}]),Q}();function F(Q){return{matches:"all"===Q||""===Q,media:Q,addListener:function(){},removeListener:function(){}}}x.\u0275fac=function(ne){return new(ne||x)(A.LFG(S.t4))},x.\u0275prov=A.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"});var X=function(){function Q(ne,be){(0,W.Z)(this,Q),this._mediaMatcher=ne,this._zone=be,this._queries=new Map,this._destroySubject=new R.xQ}return(0,G.Z)(Q,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(be){var pe=this;return $((0,U.Eq)(be)).some(function(le){return pe._registerQuery(le).mql.matches})}},{key:"observe",value:function(be){var pe=this,le=$((0,U.Eq)(be)).map(function(me){return pe._registerQuery(me).observable}),ce=(0,P.aj)(le);return(ce=(0,E.z)(ce.pipe((0,j.q)(1)),ce.pipe((0,L.T)(1),(0,v.b)(0)))).pipe((0,k.U)(function(me){var je={matches:!1,breakpoints:{}};return me.forEach(function(at){var Mt=at.matches,Tt=at.query;je.matches=je.matches||Mt,je.breakpoints[Tt]=Mt}),je}))}},{key:"_registerQuery",value:function(be){var pe=this;if(this._queries.has(be))return this._queries.get(be);var de=this._mediaMatcher.matchMedia(be),ce={observable:new D.y(function(me){var je=function(Mt){return pe._zone.run(function(){return me.next(Mt)})};return de.addListener(je),function(){de.removeListener(je)}}).pipe((0,b.O)(de),(0,k.U)(function(me){var je=me.matches;return{query:be,matches:je}}),(0,O.R)(this._destroySubject)),mql:de};return this._queries.set(be,ce),ce}}]),Q}();function $(Q){return Q.map(function(ne){return ne.split(",")}).reduce(function(ne,be){return ne.concat(be)}).map(function(ne){return ne.trim()})}X.\u0275fac=function(ne){return new(ne||X)(A.LFG(x),A.LFG(A.R0b))},X.\u0275prov=A.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"});var Y={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:function(De,K,m){"use strict";m.d(K,{Q8:function(){return v},wD:function(){return L},yq:function(){return j}});var G=m(5671),W=m(3144),A=m(3191),U=m(5e3),R=m(7451),P=m(8929),E=m(13),D=function(){function k(){(0,G.Z)(this,k)}return(0,W.Z)(k,[{key:"create",value:function(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}]),k}();D.\u0275fac=function(b){return new(b||D)},D.\u0275prov=U.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"});var j=function(){function k(b){(0,G.Z)(this,k),this._mutationObserverFactory=b,this._observedElements=new Map}return(0,W.Z)(k,[{key:"ngOnDestroy",value:function(){var O=this;this._observedElements.forEach(function(S,y){return O._cleanupObserver(y)})}},{key:"observe",value:function(O){var S=this,y=(0,A.fI)(O);return new R.y(function(T){var x=S._observeElement(y).subscribe(T);return function(){x.unsubscribe(),S._unobserveElement(y)}})}},{key:"_observeElement",value:function(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{var S=new P.xQ,y=this._mutationObserverFactory.create(function(T){return S.next(T)});y&&y.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:y,stream:S,count:1})}return this._observedElements.get(O).stream}},{key:"_unobserveElement",value:function(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}},{key:"_cleanupObserver",value:function(O){if(this._observedElements.has(O)){var S=this._observedElements.get(O),y=S.observer,T=S.stream;y&&y.disconnect(),T.complete(),this._observedElements.delete(O)}}}]),k}();j.\u0275fac=function(b){return new(b||j)(U.LFG(D))},j.\u0275prov=U.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"});var L=function(){function k(b,O,S){(0,G.Z)(this,k),this._contentObserver=b,this._elementRef=O,this._ngZone=S,this.event=new U.vpe,this._disabled=!1,this._currentSubscription=null}return(0,W.Z)(k,[{key:"disabled",get:function(){return this._disabled},set:function(O){this._disabled=(0,A.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(O){this._debounce=(0,A.su)(O),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var O=this;this._unsubscribe();var S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){O._currentSubscription=(O.debounce?S.pipe((0,E.b)(O.debounce)):S).subscribe(O.event)})}},{key:"_unsubscribe",value:function(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}]),k}();L.\u0275fac=function(b){return new(b||L)(U.Y36(j),U.Y36(U.SBq),U.Y36(U.R0b))},L.\u0275dir=U.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var v=(0,W.Z)(function k(){(0,G.Z)(this,k)});v.\u0275fac=function(b){return new(b||v)},v.\u0275mod=U.oAB({type:v}),v.\u0275inj=U.cJS({providers:[D]})},1314:function(De,K,m){"use strict";m.d(K,{Iu:function(){return Ze},U8:function(){return Kt},X_:function(){return je},Xj:function(){return $t},aV:function(){return t},pI:function(){return sn},xu:function(){return zt}});var G=m(3237),W=m(1120),A=m(136),U=m(9388),R=m(7685),P=m(7762),E=m(4902),D=m(5671),j=m(3144),L=m(9071),v=m(9808),k=m(5e3),b=m(3191),O=m(925),S=m(226),y=m(7429),T=m(8929),M=m(4096),x=m(6787),N=m(2986),F=m(7625),X=m(4290),$=m(1159),Y=(0,O.Mq)(),Q=function(){function Je(Be,te){(0,D.Z)(this,Je),this._viewportRuler=Be,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=te}return(0,j.Z)(Je,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var te=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=te.style.left||"",this._previousHTMLStyles.top=te.style.top||"",te.style.left=(0,b.HM)(-this._previousScrollPosition.left),te.style.top=(0,b.HM)(-this._previousScrollPosition.top),te.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var te=this._document.documentElement,ye=this._document.body,fe=te.style,Ne=ye.style,st=fe.scrollBehavior||"",ct=Ne.scrollBehavior||"";this._isEnabled=!1,fe.left=this._previousHTMLStyles.left,fe.top=this._previousHTMLStyles.top,te.classList.remove("cdk-global-scrollblock"),Y&&(fe.scrollBehavior=Ne.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Y&&(fe.scrollBehavior=st,Ne.scrollBehavior=ct)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var ye=this._document.body,fe=this._viewportRuler.getViewportSize();return ye.scrollHeight>fe.height||ye.scrollWidth>fe.width}}]),Je}();var be=function(){function Je(Be,te,ye,fe){var Ne=this;(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._ngZone=te,this._viewportRuler=ye,this._config=fe,this._scrollSubscription=null,this._detach=function(){Ne.disable(),Ne._overlayRef.hasAttached()&&Ne._ngZone.run(function(){return Ne._overlayRef.detach()})}}return(0,j.Z)(Je,[{key:"attach",value:function(te){this._overlayRef,this._overlayRef=te}},{key:"enable",value:function(){var te=this;if(!this._scrollSubscription){var ye=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ye.subscribe(function(){var fe=te._viewportRuler.getViewportScrollPosition().top;Math.abs(fe-te._initialScrollPosition)>te._config.threshold?te._detach():te._overlayRef.updatePosition()})):this._scrollSubscription=ye.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Je}(),pe=function(){function Je(){(0,D.Z)(this,Je)}return(0,j.Z)(Je,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),Je}();function de(Je,Be){return Be.some(function(te){var ye=Je.bottom<te.top,fe=Je.top>te.bottom,Ne=Je.right<te.left,st=Je.left>te.right;return ye||fe||Ne||st})}function le(Je,Be){return Be.some(function(te){var ye=Je.top<te.top,fe=Je.bottom>te.bottom,Ne=Je.left<te.left,st=Je.right>te.right;return ye||fe||Ne||st})}var ce=function(){function Je(Be,te,ye,fe){(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._viewportRuler=te,this._ngZone=ye,this._config=fe,this._scrollSubscription=null}return(0,j.Z)(Je,[{key:"attach",value:function(te){this._overlayRef,this._overlayRef=te}},{key:"enable",value:function(){var te=this;if(!this._scrollSubscription){var ye=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(ye).subscribe(function(){if(te._overlayRef.updatePosition(),te._config&&te._config.autoClose){var fe=te._overlayRef.overlayElement.getBoundingClientRect(),Ne=te._viewportRuler.getViewportSize(),st=Ne.width,ct=Ne.height;de(fe,[{width:st,height:ct,bottom:ct,right:st,top:0,left:0}])&&(te.disable(),te._ngZone.run(function(){return te._overlayRef.detach()}))}})}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),Je}(),me=(0,j.Z)(function Je(Be,te,ye,fe){var Ne=this;(0,D.Z)(this,Je),this._scrollDispatcher=Be,this._viewportRuler=te,this._ngZone=ye,this.noop=function(){return new pe},this.close=function(st){return new be(Ne._scrollDispatcher,Ne._ngZone,Ne._viewportRuler,st)},this.block=function(){return new Q(Ne._viewportRuler,Ne._document)},this.reposition=function(st){return new ce(Ne._scrollDispatcher,Ne._viewportRuler,Ne._ngZone,st)},this._document=fe});me.\u0275fac=function(Be){return new(Be||me)(k.LFG(L.mF),k.LFG(L.rL),k.LFG(k.R0b),k.LFG(v.K0))},me.\u0275prov=k.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"});var je=(0,j.Z)(function Je(Be){if((0,D.Z)(this,Je),this.scrollStrategy=new pe,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,Be)for(var ye=0,fe=Object.keys(Be);ye<fe.length;ye++){var Ne=fe[ye];void 0!==Be[Ne]&&(this[Ne]=Be[Ne])}}),Tt=(0,j.Z)(function Je(Be,te){(0,D.Z)(this,Je),this.connectionPair=Be,this.scrollableViewProperties=te});var Ze=function(){function Je(Be,te,ye,fe,Ne,st,ct,Bt,jt){var on=this,vn=arguments.length>9&&void 0!==arguments[9]&&arguments[9];(0,D.Z)(this,Je),this._portalOutlet=Be,this._host=te,this._pane=ye,this._config=fe,this._ngZone=Ne,this._keyboardDispatcher=st,this._document=ct,this._location=Bt,this._outsideClickDispatcher=jt,this._animationsDisabled=vn,this._backdropElement=null,this._backdropClick=new T.xQ,this._attachments=new T.xQ,this._detachments=new T.xQ,this._locationChanges=M.w.EMPTY,this._backdropClickHandler=function(ln){return on._backdropClick.next(ln)},this._backdropTransitionendHandler=function(ln){on._disposeBackdrop(ln.target)},this._keydownEvents=new T.xQ,this._outsidePointerEvents=new T.xQ,fe.scrollStrategy&&(this._scrollStrategy=fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=fe.positionStrategy}return(0,j.Z)(Je,[{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(te){var ye=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);var fe=this._portalOutlet.attach(te);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,N.q)(1)).subscribe(function(){ye.hasAttached()&&ye.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(function(){return ye.dispose()})),this._outsideClickDispatcher.add(this),"function"==typeof(null==fe?void 0:fe.onDestroy)&&fe.onDestroy(function(){ye.hasAttached()&&ye._ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){return ye.detach()})})}),fe}},{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 te=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),te}}},{key:"dispose",value:function(){var te,ye=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(te=this._host)||void 0===te||te.remove(),this._previousHostParent=this._pane=this._host=null,ye&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(te){te!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=te,this.hasAttached()&&(te.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(te){this._config=Object.assign(Object.assign({},this._config),te),this._updateElementSize()}},{key:"setDirection",value:function(te){this._config=Object.assign(Object.assign({},this._config),{direction:te}),this._updateElementDirection()}},{key:"addPanelClass",value:function(te){this._pane&&this._toggleClasses(this._pane,te,!0)}},{key:"removePanelClass",value:function(te){this._pane&&this._toggleClasses(this._pane,te,!1)}},{key:"getDirection",value:function(){var te=this._config.direction;return te?"string"==typeof te?te:te.value:"ltr"}},{key:"updateScrollStrategy",value:function(te){te!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=te,this.hasAttached()&&(te.attach(this),te.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var te=this._pane.style;te.width=(0,b.HM)(this._config.width),te.height=(0,b.HM)(this._config.height),te.minWidth=(0,b.HM)(this._config.minWidth),te.minHeight=(0,b.HM)(this._config.minHeight),te.maxWidth=(0,b.HM)(this._config.maxWidth),te.maxHeight=(0,b.HM)(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(te){this._pane.style.pointerEvents=te?"":"none"}},{key:"_attachBackdrop",value:function(){var te=this,ye="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(ye):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){te._backdropElement&&te._backdropElement.classList.add(ye)})})}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var te=this,ye=this._backdropElement;if(ye){if(this._animationsDisabled)return void this._disposeBackdrop(ye);ye.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){ye.addEventListener("transitionend",te._backdropTransitionendHandler)}),ye.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){te._disposeBackdrop(ye)},500)})}}},{key:"_toggleClasses",value:function(te,ye,fe){var st,ct,Ne=(0,b.Eq)(ye||[]).filter(function(Bt){return!!Bt});Ne.length&&(fe?(st=te.classList).add.apply(st,(0,E.Z)(Ne)):(ct=te.classList).remove.apply(ct,(0,E.Z)(Ne)))}},{key:"_detachContentWhenStable",value:function(){var te=this;this._ngZone.runOutsideAngular(function(){var ye=te._ngZone.onStable.pipe((0,F.R)((0,x.T)(te._attachments,te._detachments))).subscribe(function(){(!te._pane||!te._host||0===te._pane.children.length)&&(te._pane&&te._config.panelClass&&te._toggleClasses(te._pane,te._config.panelClass,!1),te._host&&te._host.parentElement&&(te._previousHostParent=te._host.parentElement,te._host.remove()),ye.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var te=this._scrollStrategy;te&&(te.disable(),te.detach&&te.detach())}},{key:"_disposeBackdrop",value:function(te){te&&(te.removeEventListener("click",this._backdropClickHandler),te.removeEventListener("transitionend",this._backdropTransitionendHandler),te.remove(),this._backdropElement===te&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}]),Je}(),$t=function(){function Je(Be,te){(0,D.Z)(this,Je),this._platform=te,this._document=Be}return(0,j.Z)(Je,[{key:"ngOnDestroy",value:function(){var te;null===(te=this._containerElement)||void 0===te||te.remove()}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var te="cdk-overlay-container";if(this._platform.isBrowser||(0,O.Oy)())for(var ye=this._document.querySelectorAll(".".concat(te,'[platform="server"], ')+".".concat(te,'[platform="test"]')),fe=0;fe<ye.length;fe++)ye[fe].remove();var Ne=this._document.createElement("div");Ne.classList.add(te),(0,O.Oy)()?Ne.setAttribute("platform","test"):this._platform.isBrowser||Ne.setAttribute("platform","server"),this._document.body.appendChild(Ne),this._containerElement=Ne}}]),Je}();$t.\u0275fac=function(Be){return new(Be||$t)(k.LFG(v.K0),k.LFG(O.t4))},$t.\u0275prov=k.Yz7({token:$t,factory:$t.\u0275fac,providedIn:"root"});var Ft="cdk-overlay-connected-position-bounding-box",fn=/([A-Za-z%]+)$/,nt=function(){function Je(Be,te,ye,fe,Ne){(0,D.Z)(this,Je),this._viewportRuler=te,this._document=ye,this._platform=fe,this._overlayContainer=Ne,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 T.xQ,this._resizeSubscription=M.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(Be)}return(0,j.Z)(Je,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(te){var ye=this;this._overlayRef&&this._overlayRef,this._validatePositions(),te.hostElement.classList.add(Ft),this._overlayRef=te,this._boundingBox=te.hostElement,this._pane=te.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){ye._isInitialRender=!0,ye.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser){if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ct,jt,te=this._originRect,ye=this._overlayRect,fe=this._viewportRect,Ne=this._containerRect,st=[],Bt=(0,P.Z)(this._preferredPositions);try{for(Bt.s();!(jt=Bt.n()).done;){var on=jt.value,vn=this._getOriginPoint(te,Ne,on),ln=this._getOverlayPoint(vn,ye,on),En=this._getOverlayFit(ln,ye,fe,on);if(En.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(on,vn);this._canFitWithFlexibleDimensions(En,ln,fe)?st.push({position:on,origin:vn,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(vn,on)}):(!ct||ct.overlayFit.visibleArea<En.visibleArea)&&(ct={overlayFit:En,overlayPoint:ln,originPoint:vn,position:on,overlayRect:ye})}}catch(ze){Bt.e(ze)}finally{Bt.f()}if(st.length){var Et,hn=null,mn=-1,At=(0,P.Z)(st);try{for(At.s();!(Et=At.n()).done;){var et=Et.value,St=et.boundingBoxRect.width*et.boundingBoxRect.height*(et.position.weight||1);St>mn&&(mn=St,hn=et)}}catch(ze){At.e(ze)}finally{At.f()}return this._isPushed=!1,void this._applyPosition(hn.position,hn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ct.position,ct.originPoint);this._applyPosition(ct.position,ct.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Ot(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ft),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var te=this._lastPosition;if(te){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var ye=this._getOriginPoint(this._originRect,this._containerRect,te);this._applyPosition(te,ye)}else this.apply()}}},{key:"withScrollableContainers",value:function(te){return this._scrollables=te,this}},{key:"withPositions",value:function(te){return this._preferredPositions=te,-1===te.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(te){return this._viewportMargin=te,this}},{key:"withFlexibleDimensions",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=te,this}},{key:"withGrowAfterOpen",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=te,this}},{key:"withPush",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=te,this}},{key:"withLockedPosition",value:function(){var te=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=te,this}},{key:"setOrigin",value:function(te){return this._origin=te,this}},{key:"withDefaultOffsetX",value:function(te){return this._offsetX=te,this}},{key:"withDefaultOffsetY",value:function(te){return this._offsetY=te,this}},{key:"withTransformOriginOn",value:function(te){return this._transformOriginSelector=te,this}},{key:"_getOriginPoint",value:function(te,ye,fe){var Ne,Bt;if("center"==fe.originX)Ne=te.left+te.width/2;else{var st=this._isRtl()?te.right:te.left,ct=this._isRtl()?te.left:te.right;Ne="start"==fe.originX?st:ct}return ye.left<0&&(Ne-=ye.left),Bt="center"==fe.originY?te.top+te.height/2:"top"==fe.originY?te.top:te.bottom,ye.top<0&&(Bt-=ye.top),{x:Ne,y:Bt}}},{key:"_getOverlayPoint",value:function(te,ye,fe){var Ne,st;return Ne="center"==fe.overlayX?-ye.width/2:"start"===fe.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,st="center"==fe.overlayY?-ye.height/2:"top"==fe.overlayY?0:-ye.height,{x:te.x+Ne,y:te.y+st}}},{key:"_getOverlayFit",value:function(te,ye,fe,Ne){var st=Ct(ye),ct=te.x,Bt=te.y,jt=this._getOffset(Ne,"x"),on=this._getOffset(Ne,"y");jt&&(ct+=jt),on&&(Bt+=on);var vn=0-ct,ln=ct+st.width-fe.width,En=0-Bt,hn=Bt+st.height-fe.height,mn=this._subtractOverflows(st.width,vn,ln),At=this._subtractOverflows(st.height,En,hn),Et=mn*At;return{visibleArea:Et,isCompletelyWithinViewport:st.width*st.height===Et,fitsInViewportVertically:At===st.height,fitsInViewportHorizontally:mn==st.width}}},{key:"_canFitWithFlexibleDimensions",value:function(te,ye,fe){if(this._hasFlexibleDimensions){var Ne=fe.bottom-ye.y,st=fe.right-ye.x,ct=_t(this._overlayRef.getConfig().minHeight),Bt=_t(this._overlayRef.getConfig().minWidth),jt=te.fitsInViewportVertically||null!=ct&&ct<=Ne,on=te.fitsInViewportHorizontally||null!=Bt&&Bt<=st;return jt&&on}return!1}},{key:"_pushOverlayOnScreen",value:function(te,ye,fe){if(this._previousPushAmount&&this._positionLocked)return{x:te.x+this._previousPushAmount.x,y:te.y+this._previousPushAmount.y};var Ne=Ct(ye),st=this._viewportRect,ct=Math.max(te.x+Ne.width-st.width,0),Bt=Math.max(te.y+Ne.height-st.height,0),jt=Math.max(st.top-fe.top-te.y,0),on=Math.max(st.left-fe.left-te.x,0),vn=0,ln=0;return vn=Ne.width<=st.width?on||-ct:te.x<this._viewportMargin?st.left-fe.left-te.x:0,ln=Ne.height<=st.height?jt||-Bt:te.y<this._viewportMargin?st.top-fe.top-te.y:0,this._previousPushAmount={x:vn,y:ln},{x:te.x+vn,y:te.y+ln}}},{key:"_applyPosition",value:function(te,ye){if(this._setTransformOrigin(te),this._setOverlayElementStyles(ye,te),this._setBoundingBoxStyles(ye,te),te.panelClass&&this._addPanelClasses(te.panelClass),this._lastPosition=te,this._positionChanges.observers.length){var fe=this._getScrollVisibility(),Ne=new Tt(te,fe);this._positionChanges.next(Ne)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(te){if(this._transformOriginSelector){var fe,ye=this._boundingBox.querySelectorAll(this._transformOriginSelector),Ne=te.overlayY;fe="center"===te.overlayX?"center":this._isRtl()?"start"===te.overlayX?"right":"left":"start"===te.overlayX?"left":"right";for(var st=0;st<ye.length;st++)ye[st].style.transformOrigin="".concat(fe," ").concat(Ne)}}},{key:"_calculateBoundingBoxRect",value:function(te,ye){var st,ct,Bt,fe=this._viewportRect,Ne=this._isRtl();if("top"===ye.overlayY)ct=te.y,st=fe.height-ct+this._viewportMargin;else if("bottom"===ye.overlayY)Bt=fe.height-te.y+2*this._viewportMargin,st=fe.height-Bt+this._viewportMargin;else{var jt=Math.min(fe.bottom-te.y+fe.top,te.y),on=this._lastBoundingBoxSize.height;st=2*jt,ct=te.y-jt,st>on&&!this._isInitialRender&&!this._growAfterOpen&&(ct=te.y-on/2)}var En,hn,mn,vn="start"===ye.overlayX&&!Ne||"end"===ye.overlayX&&Ne;if("end"===ye.overlayX&&!Ne||"start"===ye.overlayX&&Ne)mn=fe.width-te.x+this._viewportMargin,En=te.x-this._viewportMargin;else if(vn)hn=te.x,En=fe.right-te.x;else{var At=Math.min(fe.right-te.x+fe.left,te.x),Et=this._lastBoundingBoxSize.width;En=2*At,hn=te.x-At,En>Et&&!this._isInitialRender&&!this._growAfterOpen&&(hn=te.x-Et/2)}return{top:ct,left:hn,bottom:Bt,right:mn,width:En,height:st}}},{key:"_setBoundingBoxStyles",value:function(te,ye){var fe=this._calculateBoundingBoxRect(te,ye);!this._isInitialRender&&!this._growAfterOpen&&(fe.height=Math.min(fe.height,this._lastBoundingBoxSize.height),fe.width=Math.min(fe.width,this._lastBoundingBoxSize.width));var Ne={};if(this._hasExactPosition())Ne.top=Ne.left="0",Ne.bottom=Ne.right=Ne.maxHeight=Ne.maxWidth="",Ne.width=Ne.height="100%";else{var st=this._overlayRef.getConfig().maxHeight,ct=this._overlayRef.getConfig().maxWidth;Ne.height=(0,b.HM)(fe.height),Ne.top=(0,b.HM)(fe.top),Ne.bottom=(0,b.HM)(fe.bottom),Ne.width=(0,b.HM)(fe.width),Ne.left=(0,b.HM)(fe.left),Ne.right=(0,b.HM)(fe.right),"center"===ye.overlayX?Ne.alignItems="center":Ne.alignItems="end"===ye.overlayX?"flex-end":"flex-start","center"===ye.overlayY?Ne.justifyContent="center":Ne.justifyContent="bottom"===ye.overlayY?"flex-end":"flex-start",st&&(Ne.maxHeight=(0,b.HM)(st)),ct&&(Ne.maxWidth=(0,b.HM)(ct))}this._lastBoundingBoxSize=fe,Ot(this._boundingBox.style,Ne)}},{key:"_resetBoundingBoxStyles",value:function(){Ot(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Ot(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(te,ye){var fe={},Ne=this._hasExactPosition(),st=this._hasFlexibleDimensions,ct=this._overlayRef.getConfig();if(Ne){var Bt=this._viewportRuler.getViewportScrollPosition();Ot(fe,this._getExactOverlayY(ye,te,Bt)),Ot(fe,this._getExactOverlayX(ye,te,Bt))}else fe.position="static";var jt="",on=this._getOffset(ye,"x"),vn=this._getOffset(ye,"y");on&&(jt+="translateX(".concat(on,"px) ")),vn&&(jt+="translateY(".concat(vn,"px)")),fe.transform=jt.trim(),ct.maxHeight&&(Ne?fe.maxHeight=(0,b.HM)(ct.maxHeight):st&&(fe.maxHeight="")),ct.maxWidth&&(Ne?fe.maxWidth=(0,b.HM)(ct.maxWidth):st&&(fe.maxWidth="")),Ot(this._pane.style,fe)}},{key:"_getExactOverlayY",value:function(te,ye,fe){var Ne={top:"",bottom:""},st=this._getOverlayPoint(ye,this._overlayRect,te);if(this._isPushed&&(st=this._pushOverlayOnScreen(st,this._overlayRect,fe)),"bottom"===te.overlayY){var ct=this._document.documentElement.clientHeight;Ne.bottom="".concat(ct-(st.y+this._overlayRect.height),"px")}else Ne.top=(0,b.HM)(st.y);return Ne}},{key:"_getExactOverlayX",value:function(te,ye,fe){var Ne={left:"",right:""},st=this._getOverlayPoint(ye,this._overlayRect,te);if(this._isPushed&&(st=this._pushOverlayOnScreen(st,this._overlayRect,fe)),"right"===(this._isRtl()?"end"===te.overlayX?"left":"right":"end"===te.overlayX?"right":"left")){var Bt=this._document.documentElement.clientWidth;Ne.right="".concat(Bt-(st.x+this._overlayRect.width),"px")}else Ne.left=(0,b.HM)(st.x);return Ne}},{key:"_getScrollVisibility",value:function(){var te=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),fe=this._scrollables.map(function(Ne){return Ne.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:le(te,fe),isOriginOutsideView:de(te,fe),isOverlayClipped:le(ye,fe),isOverlayOutsideView:de(ye,fe)}}},{key:"_subtractOverflows",value:function(te){for(var ye=arguments.length,fe=new Array(ye>1?ye-1:0),Ne=1;Ne<ye;Ne++)fe[Ne-1]=arguments[Ne];return fe.reduce(function(st,ct){return st-Math.max(ct,0)},te)}},{key:"_getNarrowedViewportRect",value:function(){var te=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,fe=this._viewportRuler.getViewportScrollPosition();return{top:fe.top+this._viewportMargin,left:fe.left+this._viewportMargin,right:fe.left+te-this._viewportMargin,bottom:fe.top+ye-this._viewportMargin,width:te-2*this._viewportMargin,height:ye-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(te,ye){return"x"===ye?null==te.offsetX?this._offsetX:te.offsetX:null==te.offsetY?this._offsetY:te.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(te){var ye=this;this._pane&&(0,b.Eq)(te).forEach(function(fe){""!==fe&&-1===ye._appliedPanelClasses.indexOf(fe)&&(ye._appliedPanelClasses.push(fe),ye._pane.classList.add(fe))})}},{key:"_clearPanelClasses",value:function(){var te=this;this._pane&&(this._appliedPanelClasses.forEach(function(ye){te._pane.classList.remove(ye)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var te=this._origin;if(te instanceof k.SBq)return te.nativeElement.getBoundingClientRect();if(te instanceof Element)return te.getBoundingClientRect();var ye=te.width||0,fe=te.height||0;return{top:te.y,bottom:te.y+fe,left:te.x,right:te.x+ye,height:fe,width:ye}}}]),Je}();function Ot(Je,Be){for(var te in Be)Be.hasOwnProperty(te)&&(Je[te]=Be[te]);return Je}function _t(Je){if("number"!=typeof Je&&null!=Je){var Be=Je.split(fn),te=(0,R.Z)(Be,2),ye=te[0],fe=te[1];return fe&&"px"!==fe?null:parseFloat(ye)}return Je||null}function Ct(Je){return{top:Math.floor(Je.top),right:Math.floor(Je.right),bottom:Math.floor(Je.bottom),left:Math.floor(Je.left),width:Math.floor(Je.width),height:Math.floor(Je.height)}}var dt="cdk-global-overlay-wrapper",Ut=function(){function Je(){(0,D.Z)(this,Je),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}return(0,j.Z)(Je,[{key:"attach",value:function(te){var ye=te.getConfig();this._overlayRef=te,this._width&&!ye.width&&te.updateSize({width:this._width}),this._height&&!ye.height&&te.updateSize({height:this._height}),te.hostElement.classList.add(dt),this._isDisposed=!1}},{key:"top",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=te,this._alignItems="flex-start",this}},{key:"left",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="left",this}},{key:"bottom",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=te,this._alignItems="flex-end",this}},{key:"right",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="right",this}},{key:"start",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="start",this}},{key:"end",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._xOffset=te,this._xPosition="end",this}},{key:"width",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:te}):this._width=te,this}},{key:"height",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:te}):this._height=te,this}},{key:"centerHorizontally",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(te),this._xPosition="center",this}},{key:"centerVertically",value:function(){var te=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(te),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,fe=this._overlayRef.getConfig(),Ne=fe.width,st=fe.height,ct=fe.maxWidth,Bt=fe.maxHeight,jt=!("100%"!==Ne&&"100vw"!==Ne||ct&&"100%"!==ct&&"100vw"!==ct),on=!("100%"!==st&&"100vh"!==st||Bt&&"100%"!==Bt&&"100vh"!==Bt),vn=this._xPosition,ln=this._xOffset,En="rtl"===this._overlayRef.getConfig().direction,hn="",mn="",At="";jt?At="flex-start":"center"===vn?(At="center",En?mn=ln:hn=ln):En?"left"===vn||"end"===vn?(At="flex-end",hn=ln):("right"===vn||"start"===vn)&&(At="flex-start",mn=ln):"left"===vn||"start"===vn?(At="flex-start",hn=ln):("right"===vn||"end"===vn)&&(At="flex-end",mn=ln),te.position=this._cssPosition,te.marginLeft=jt?"0":hn,te.marginTop=on?"0":this._topOffset,te.marginBottom=this._bottomOffset,te.marginRight=jt?"0":mn,ye.justifyContent=At,ye.alignItems=on?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,fe=ye.style;ye.classList.remove(dt),fe.justifyContent=fe.alignItems=te.marginTop=te.marginBottom=te.marginLeft=te.marginRight=te.position="",this._overlayRef=null,this._isDisposed=!0}}}]),Je}(),B=function(){function Je(Be,te,ye,fe){(0,D.Z)(this,Je),this._viewportRuler=Be,this._document=te,this._platform=ye,this._overlayContainer=fe}return(0,j.Z)(Je,[{key:"global",value:function(){return new Ut}},{key:"flexibleConnectedTo",value:function(te){return new nt(te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),Je}();B.\u0275fac=function(Be){return new(Be||B)(k.LFG(L.rL),k.LFG(v.K0),k.LFG(O.t4),k.LFG($t))},B.\u0275prov=k.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"});var H=function(){function Je(Be){(0,D.Z)(this,Je),this._attachedOverlays=[],this._document=Be}return(0,j.Z)(Je,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(te){this.remove(te),this._attachedOverlays.push(te)}},{key:"remove",value:function(te){var ye=this._attachedOverlays.indexOf(te);ye>-1&&this._attachedOverlays.splice(ye,1),0===this._attachedOverlays.length&&this.detach()}}]),Je}();H.\u0275fac=function(Be){return new(Be||H)(k.LFG(v.K0))},H.\u0275prov=k.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"});var tt=function(Je){(0,A.Z)(te,Je);var Be=(0,U.Z)(te);function te(ye,fe){var Ne;return(0,D.Z)(this,te),(Ne=Be.call(this,ye))._ngZone=fe,Ne._keydownListener=function(st){for(var ct=Ne._attachedOverlays,Bt=function(){if(ct[jt]._keydownEvents.observers.length>0){var vn=ct[jt]._keydownEvents;return Ne._ngZone?Ne._ngZone.run(function(){return vn.next(st)}):vn.next(st),1}},jt=ct.length-1;jt>-1&&!Bt();jt--);},Ne}return(0,j.Z)(te,[{key:"add",value:function(fe){var Ne=this;(0,G.Z)((0,W.Z)(te.prototype),"add",this).call(this,fe),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return Ne._document.body.addEventListener("keydown",Ne._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)}}]),te}(H);tt.\u0275fac=function(Be){return new(Be||tt)(k.LFG(v.K0),k.LFG(k.R0b,8))},tt.\u0275prov=k.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"});var Ye=function(Je){(0,A.Z)(te,Je);var Be=(0,U.Z)(te);function te(ye,fe,Ne){var st;return(0,D.Z)(this,te),(st=Be.call(this,ye))._platform=fe,st._ngZone=Ne,st._cursorStyleIsSet=!1,st._pointerDownListener=function(ct){st._pointerDownEventTarget=(0,O.sA)(ct)},st._clickListener=function(ct){var Bt=(0,O.sA)(ct),jt="click"===ct.type&&st._pointerDownEventTarget?st._pointerDownEventTarget:Bt;st._pointerDownEventTarget=null;for(var ln,on=st._attachedOverlays.slice(),vn=function(){var mn=on[En];if(mn._outsidePointerEvents.observers.length<1||!mn.hasAttached())return 0;if(mn.overlayElement.contains(Bt)||mn.overlayElement.contains(jt))return 1;var At=mn._outsidePointerEvents;st._ngZone?st._ngZone.run(function(){return At.next(ct)}):At.next(ct)},En=on.length-1;En>-1&&(0===(ln=vn())||1!==ln);En--);},st}return(0,j.Z)(te,[{key:"add",value:function(fe){var Ne=this;if((0,G.Z)((0,W.Z)(te.prototype),"add",this).call(this,fe),!this._isAttached){var st=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return Ne._addEventListeners(st)}):this._addEventListeners(st),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=st.style.cursor,st.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var fe=this._document.body;fe.removeEventListener("pointerdown",this._pointerDownListener,!0),fe.removeEventListener("click",this._clickListener,!0),fe.removeEventListener("auxclick",this._clickListener,!0),fe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(fe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(fe){fe.addEventListener("pointerdown",this._pointerDownListener,!0),fe.addEventListener("click",this._clickListener,!0),fe.addEventListener("auxclick",this._clickListener,!0),fe.addEventListener("contextmenu",this._clickListener,!0)}}]),te}(H);Ye.\u0275fac=function(Be){return new(Be||Ye)(k.LFG(v.K0),k.LFG(O.t4),k.LFG(k.R0b,8))},Ye.\u0275prov=k.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"});var ge=0,t=function(){function Je(Be,te,ye,fe,Ne,st,ct,Bt,jt,on,vn,ln){(0,D.Z)(this,Je),this.scrollStrategies=Be,this._overlayContainer=te,this._componentFactoryResolver=ye,this._positionBuilder=fe,this._keyboardDispatcher=Ne,this._injector=st,this._ngZone=ct,this._document=Bt,this._directionality=jt,this._location=on,this._outsideClickDispatcher=vn,this._animationsModuleType=ln}return(0,j.Z)(Je,[{key:"create",value:function(te){var ye=this._createHostElement(),fe=this._createPaneElement(ye),Ne=this._createPortalOutlet(fe),st=new je(te);return st.direction=st.direction||this._directionality.value,new Ze(Ne,ye,fe,st,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(te){var ye=this._document.createElement("div");return ye.id="cdk-overlay-".concat(ge++),ye.classList.add("cdk-overlay-pane"),te.appendChild(ye),ye}},{key:"_createHostElement",value:function(){var te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(te),te}},{key:"_createPortalOutlet",value:function(te){return this._appRef||(this._appRef=this._injector.get(k.z2F)),new y.u0(te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),Je}();t.\u0275fac=function(Be){return new(Be||t)(k.LFG(me),k.LFG($t),k.LFG(k._Vd),k.LFG(B),k.LFG(tt),k.LFG(k.zs3),k.LFG(k.R0b),k.LFG(v.K0),k.LFG(S.Is),k.LFG(v.Ye),k.LFG(Ye),k.LFG(k.QbO,8))},t.\u0275prov=k.Yz7({token:t,factory:t.\u0275fac});var Dt=[{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"}],Zt=new k.OlP("cdk-connected-overlay-scroll-strategy"),zt=(0,j.Z)(function Je(Be){(0,D.Z)(this,Je),this.elementRef=Be});zt.\u0275fac=function(Be){return new(Be||zt)(k.Y36(k.SBq))},zt.\u0275dir=k.lG2({type:zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});var sn=function(){function Je(Be,te,ye,fe,Ne){(0,D.Z)(this,Je),this._overlay=Be,this._dir=Ne,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=M.w.EMPTY,this._attachSubscription=M.w.EMPTY,this._detachSubscription=M.w.EMPTY,this._positionSubscription=M.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new k.vpe,this.positionChange=new k.vpe,this.attach=new k.vpe,this.detach=new k.vpe,this.overlayKeydown=new k.vpe,this.overlayOutsideClick=new k.vpe,this._templatePortal=new y.UE(te,ye),this._scrollStrategyFactory=fe,this.scrollStrategy=this._scrollStrategyFactory()}return(0,j.Z)(Je,[{key:"offsetX",get:function(){return this._offsetX},set:function(te){this._offsetX=te,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(te){this._offsetY=te,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(te){this._hasBackdrop=(0,b.Ig)(te)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(te){this._lockPosition=(0,b.Ig)(te)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(te){this._flexibleDimensions=(0,b.Ig)(te)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(te){this._growAfterOpen=(0,b.Ig)(te)}},{key:"push",get:function(){return this._push},set:function(te){this._push=(0,b.Ig)(te)}},{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(te){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),te.origin&&this.open&&this._position.apply()),te.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var te=this;(!this.positions||!this.positions.length)&&(this.positions=Dt);var ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(function(){return te.attach.emit()}),this._detachSubscription=ye.detachments().subscribe(function(){return te.detach.emit()}),ye.keydownEvents().subscribe(function(fe){te.overlayKeydown.next(fe),fe.keyCode===$.hY&&!te.disableClose&&!(0,$.Vb)(fe)&&(fe.preventDefault(),te._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(fe){te.overlayOutsideClick.next(fe)})}},{key:"_buildConfig",value:function(){var te=this._position=this.positionStrategy||this._createPositionStrategy(),ye=new je({direction:this._dir,positionStrategy:te,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(ye.width=this.width),(this.height||0===this.height)&&(ye.height=this.height),(this.minWidth||0===this.minWidth)&&(ye.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ye.minHeight=this.minHeight),this.backdropClass&&(ye.backdropClass=this.backdropClass),this.panelClass&&(ye.panelClass=this.panelClass),ye}},{key:"_updatePositionStrategy",value:function(te){var ye=this,fe=this.positions.map(function(Ne){return{originX:Ne.originX,originY:Ne.originY,overlayX:Ne.overlayX,overlayY:Ne.overlayY,offsetX:Ne.offsetX||ye.offsetX,offsetY:Ne.offsetY||ye.offsetY,panelClass:Ne.panelClass||void 0}});return te.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(fe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var te=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(te),te}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof zt?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var te=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(ye){te.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,X.o)(function(){return te.positionChange.observers.length>0})).subscribe(function(ye){te.positionChange.emit(ye),0===te.positionChange.observers.length&&te._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),Je}();sn.\u0275fac=function(Be){return new(Be||sn)(k.Y36(t),k.Y36(k.Rgc),k.Y36(k.s_b),k.Y36(Zt),k.Y36(S.Is,8))},sn.\u0275dir=k.lG2({type:sn,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:[k.TTD]});var yn={provide:Zt,deps:[t],useFactory:function qt(Je){return function(){return Je.scrollStrategies.reposition()}}},Kt=(0,j.Z)(function Je(){(0,D.Z)(this,Je)});Kt.\u0275fac=function(Be){return new(Be||Kt)},Kt.\u0275mod=k.oAB({type:Kt}),Kt.\u0275inj=k.cJS({providers:[t,yn],imports:[S.vT,y.eL,L.Cl,L.Cl]});var Xt=function(Je){(0,A.Z)(te,Je);var Be=(0,U.Z)(te);function te(ye,fe){return(0,D.Z)(this,te),Be.call(this,ye,fe)}return(0,j.Z)(te,[{key:"ngOnDestroy",value:function(){(0,G.Z)((0,W.Z)(te.prototype),"ngOnDestroy",this).call(this),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}},{key:"_createContainer",value:function(){var fe=this;(0,G.Z)((0,W.Z)(te.prototype),"_createContainer",this).call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return fe._adjustParentForFullscreenChange()})}},{key:"_adjustParentForFullscreenChange",value:function(){this._containerElement&&(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}},{key:"_addFullscreenChangeListener",value:function(fe){var Ne=this._getEventName();Ne&&(this._fullScreenListener&&this._document.removeEventListener(Ne,this._fullScreenListener),this._document.addEventListener(Ne,fe),this._fullScreenListener=fe)}},{key:"_getEventName",value:function(){if(!this._fullScreenEventName){var fe=this._document;fe.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":fe.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":fe.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":fe.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}},{key:"getFullscreenElement",value:function(){var fe=this._document;return fe.fullscreenElement||fe.webkitFullscreenElement||fe.mozFullScreenElement||fe.msFullscreenElement||null}}]),te}($t);Xt.\u0275fac=function(Be){return new(Be||Xt)(k.LFG(v.K0),k.LFG(O.t4))},Xt.\u0275prov=k.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"})},925:function(De,K,m){"use strict";m.d(K,{Mq:function(){return y},Oy:function(){return $},_i:function(){return T},ht:function(){return F},i$:function(){return b},kV:function(){return N},qK:function(){return L},sA:function(){return X},t4:function(){return P}});var R,G=m(3144),W=m(5671),A=m(5e3),U=m(9808);try{R="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Y){R=!1}var P=(0,G.Z)(function Y(Q){(0,W.Z)(this,Y),this._platformId=Q,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&&!R)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT});P.\u0275fac=function(Q){return new(Q||P)(A.LFG(A.Lbi))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"});var E=(0,G.Z)(function Y(){(0,W.Z)(this,Y)});E.\u0275fac=function(Q){return new(Q||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({});var D,v,O,S,M,j=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function L(){if(D)return D;if("object"!=typeof document||!document)return D=new Set(j);var Y=document.createElement("input");return D=new Set(j.filter(function(Q){return Y.setAttribute("type",Q),Y.type===Q}))}function b(Y){return function k(){if(null==v&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return v=!0}}))}finally{v=v||!1}return v}()?Y:!!Y.capture}function y(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1;if("scrollBehavior"in document.documentElement.style)S=!0;else{var Y=Element.prototype.scrollTo;S=!!Y&&!/\{\s*\[native code\]\s*\}/.test(Y.toString())}}return S}function T(){if("object"!=typeof document||!document)return 0;if(null==O){var Y=document.createElement("div"),Q=Y.style;Y.dir="rtl",Q.width="1px",Q.overflow="auto",Q.visibility="hidden",Q.pointerEvents="none",Q.position="absolute";var ne=document.createElement("div"),be=ne.style;be.width="2px",be.height="1px",Y.appendChild(ne),document.body.appendChild(Y),O=0,0===Y.scrollLeft&&(Y.scrollLeft=1,O=0===Y.scrollLeft?1:2),Y.remove()}return O}function N(Y){if(function x(){if(null==M){var Y="undefined"!=typeof document?document.head:null;M=!(!Y||!Y.createShadowRoot&&!Y.attachShadow)}return M}()){var Q=Y.getRootNode?Y.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function F(){for(var Y="undefined"!=typeof document&&document?document.activeElement:null;Y&&Y.shadowRoot;){var Q=Y.shadowRoot.activeElement;if(Q===Y)break;Y=Q}return Y}function X(Y){return Y.composedPath?Y.composedPath()[0]:Y.target}function $(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:function(De,K,m){"use strict";m.d(K,{C5:function(){return T},Pl:function(){return ne},UE:function(){return M},eL:function(){return pe},en:function(){return N},ig:function(){return Y},u0:function(){return X}});var G=m(7326),W=m(3237),A=m(1120),U=m(136),R=m(9388),P=m(5671),E=m(3144),D=m(5e3),j=m(9808);var y=function(){function le(){(0,P.Z)(this,le)}return(0,E.Z)(le,[{key:"attach",value:function(me){return this._attachedHost=me,me.attach(this)}},{key:"detach",value:function(){var me=this._attachedHost;null!=me&&(this._attachedHost=null,me.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(me){this._attachedHost=me}}]),le}(),T=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je,at,Mt,Tt){var xt;return(0,P.Z)(this,me),(xt=ce.call(this)).component=je,xt.viewContainerRef=at,xt.injector=Mt,xt.componentFactoryResolver=Tt,xt}return(0,E.Z)(me)}(y),M=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je,at,Mt,Tt){var xt;return(0,P.Z)(this,me),(xt=ce.call(this)).templateRef=je,xt.viewContainerRef=at,xt.context=Mt,xt.injector=Tt,xt}return(0,E.Z)(me,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(at){var Mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=Mt,(0,W.Z)((0,A.Z)(me.prototype),"attach",this).call(this,at)}},{key:"detach",value:function(){return this.context=void 0,(0,W.Z)((0,A.Z)(me.prototype),"detach",this).call(this)}}]),me}(y),x=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je){var at;return(0,P.Z)(this,me),(at=ce.call(this)).element=je instanceof D.SBq?je.nativeElement:je,at}return(0,E.Z)(me)}(y),N=function(){function le(){(0,P.Z)(this,le),this._isDisposed=!1,this.attachDomPortal=null}return(0,E.Z)(le,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(me){return me instanceof T?(this._attachedPortal=me,this.attachComponentPortal(me)):me instanceof M?(this._attachedPortal=me,this.attachTemplatePortal(me)):this.attachDomPortal&&me instanceof x?(this._attachedPortal=me,this.attachDomPortal(me)):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(me){this._disposeFn=me}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),le}(),X=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je,at,Mt,Tt,xt){var Lt,Ze;return(0,P.Z)(this,me),(Ze=ce.call(this)).outletElement=je,Ze._componentFactoryResolver=at,Ze._appRef=Mt,Ze._defaultInjector=Tt,Ze.attachDomPortal=function($t){Ze._document;var Ft=$t.element;Ft.parentNode;var fn=Ze._document.createComment("dom-portal");Ft.parentNode.insertBefore(fn,Ft),Ze.outletElement.appendChild(Ft),Ze._attachedPortal=$t,(0,W.Z)((Lt=(0,G.Z)(Ze),(0,A.Z)(me.prototype)),"setDisposeFn",Lt).call(Lt,function(){fn.parentNode&&fn.parentNode.replaceChild(Ft,fn)})},Ze._document=xt,Ze}return(0,E.Z)(me,[{key:"attachComponentPortal",value:function(at){var Lt,Mt=this,xt=(at.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(at.component);return at.viewContainerRef?(Lt=at.viewContainerRef.createComponent(xt,at.viewContainerRef.length,at.injector||at.viewContainerRef.injector),this.setDisposeFn(function(){return Lt.destroy()})):(Lt=xt.create(at.injector||this._defaultInjector||D.zs3.NULL),this._appRef.attachView(Lt.hostView),this.setDisposeFn(function(){Mt._appRef.viewCount>0&&Mt._appRef.detachView(Lt.hostView),Lt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Lt)),this._attachedPortal=at,Lt}},{key:"attachTemplatePortal",value:function(at){var Mt=this,Tt=at.viewContainerRef,xt=Tt.createEmbeddedView(at.templateRef,at.context,{injector:at.injector});return xt.rootNodes.forEach(function(Lt){return Mt.outletElement.appendChild(Lt)}),xt.detectChanges(),this.setDisposeFn(function(){var Lt=Tt.indexOf(xt);-1!==Lt&&Tt.remove(Lt)}),this._attachedPortal=at,xt}},{key:"dispose",value:function(){(0,W.Z)((0,A.Z)(me.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(at){return at.hostView.rootNodes[0]}}]),me}(N),Y=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je,at){return(0,P.Z)(this,me),ce.call(this,je,at)}return(0,E.Z)(me)}(M);Y.\u0275fac=function(ce){return new(ce||Y)(D.Y36(D.Rgc),D.Y36(D.s_b))},Y.\u0275dir=D.lG2({type:Y,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[D.qOj]});var Q=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(){return(0,P.Z)(this,me),ce.apply(this,arguments)}return(0,E.Z)(me)}(Y);Q.\u0275fac=function(){var le;return function(me){return(le||(le=D.n5z(Q)))(me||Q)}}(),Q.\u0275dir=D.lG2({type:Q,selectors:[["","cdk-portal",""],["","portal",""]],exportAs:["cdkPortal"],features:[D._Bn([{provide:Y,useExisting:Q}]),D.qOj]});var ne=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(je,at,Mt){var Tt,xt;return(0,P.Z)(this,me),(xt=ce.call(this))._componentFactoryResolver=je,xt._viewContainerRef=at,xt._isInitialized=!1,xt.attached=new D.vpe,xt.attachDomPortal=function(Lt){xt._document;var Ze=Lt.element;Ze.parentNode;var $t=xt._document.createComment("dom-portal");Lt.setAttachedHost((0,G.Z)(xt)),Ze.parentNode.insertBefore($t,Ze),xt._getRootNode().appendChild(Ze),xt._attachedPortal=Lt,(0,W.Z)((Tt=(0,G.Z)(xt),(0,A.Z)(me.prototype)),"setDisposeFn",Tt).call(Tt,function(){$t.parentNode&&$t.parentNode.replaceChild(Ze,$t)})},xt._document=Mt,xt}return(0,E.Z)(me,[{key:"portal",get:function(){return this._attachedPortal},set:function(at){this.hasAttached()&&!at&&!this._isInitialized||(this.hasAttached()&&(0,W.Z)((0,A.Z)(me.prototype),"detach",this).call(this),at&&(0,W.Z)((0,A.Z)(me.prototype),"attach",this).call(this,at),this._attachedPortal=at||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){(0,W.Z)((0,A.Z)(me.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(at){at.setAttachedHost(this);var Mt=null!=at.viewContainerRef?at.viewContainerRef:this._viewContainerRef,xt=(at.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(at.component),Lt=Mt.createComponent(xt,Mt.length,at.injector||Mt.injector);return Mt!==this._viewContainerRef&&this._getRootNode().appendChild(Lt.hostView.rootNodes[0]),(0,W.Z)((0,A.Z)(me.prototype),"setDisposeFn",this).call(this,function(){return Lt.destroy()}),this._attachedPortal=at,this._attachedRef=Lt,this.attached.emit(Lt),Lt}},{key:"attachTemplatePortal",value:function(at){var Mt=this;at.setAttachedHost(this);var Tt=this._viewContainerRef.createEmbeddedView(at.templateRef,at.context,{injector:at.injector});return(0,W.Z)((0,A.Z)(me.prototype),"setDisposeFn",this).call(this,function(){return Mt._viewContainerRef.clear()}),this._attachedPortal=at,this._attachedRef=Tt,this.attached.emit(Tt),Tt}},{key:"_getRootNode",value:function(){var at=this._viewContainerRef.element.nativeElement;return at.nodeType===at.ELEMENT_NODE?at:at.parentNode}}]),me}(N);ne.\u0275fac=function(ce){return new(ce||ne)(D.Y36(D._Vd),D.Y36(D.s_b),D.Y36(j.K0))},ne.\u0275dir=D.lG2({type:ne,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[D.qOj]});var be=function(le){(0,U.Z)(me,le);var ce=(0,R.Z)(me);function me(){return(0,P.Z)(this,me),ce.apply(this,arguments)}return(0,E.Z)(me)}(ne);be.\u0275fac=function(){var le;return function(me){return(le||(le=D.n5z(be)))(me||be)}}(),be.\u0275dir=D.lG2({type:be,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[D._Bn([{provide:ne,useExisting:be}]),D.qOj]});var pe=(0,E.Z)(function le(){(0,P.Z)(this,le)});pe.\u0275fac=function(ce){return new(ce||pe)},pe.\u0275mod=D.oAB({type:pe}),pe.\u0275inj=D.cJS({})},9071:function(De,K,m){"use strict";m.d(K,{Cl:function(){return tt},PQ:function(){return $t},ZD:function(){return H},mF:function(){return Ze},rL:function(){return Ot}});var G=m(7685),W=m(7762),A=m(7326),U=m(3237),R=m(1120),P=m(136),E=m(9388),D=m(5671),j=m(3144),L=m(3191),v=m(5e3),k=m(8929),b=m(1086),O=m(7451),S=m(3753),y=m(352),T=m(9931),M=m(4096),x=m(4715),N=m(5778),F=m(7568),X=m(9664),$=m(7625),Y=m(1059),Q=m(519),ne=m(7545),be=m(5154),pe=m(9808),de=m(925),le=m(226),ce=m(449),me=["contentWrapper"],at=new v.OlP("VIRTUAL_SCROLL_STRATEGY"),Mt=function(){function Ye(ge,t,Dt){(0,D.Z)(this,Ye),this._scrolledIndexChange=new k.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,N.x)()),this._viewport=null,this._itemSize=ge,this._minBufferPx=t,this._maxBufferPx=Dt}return(0,j.Z)(Ye,[{key:"attach",value:function(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}},{key:"detach",value:function(){this._scrolledIndexChange.complete(),this._viewport=null}},{key:"updateItemAndBufferSize",value:function(t,Dt,Zt){this._itemSize=t,this._minBufferPx=Dt,this._maxBufferPx=Zt,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(t,Dt){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,Dt)}},{key:"_updateTotalContentSize",value:function(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}},{key:"_updateRenderedRange",value:function(){if(this._viewport){var t=this._viewport.getRenderedRange(),Dt={start:t.start,end:t.end},Zt=this._viewport.getViewportSize(),zt=this._viewport.getDataLength(),sn=this._viewport.measureScrollOffset(),qt=this._itemSize>0?sn/this._itemSize:0;if(Dt.end>zt){var yn=Math.ceil(Zt/this._itemSize),Kt=Math.max(0,Math.min(qt,zt-yn));qt!=Kt&&(qt=Kt,sn=Kt*this._itemSize,Dt.start=Math.floor(qt)),Dt.end=Math.max(0,Math.min(zt,Dt.start+yn))}var Xt=sn-Dt.start*this._itemSize;if(Xt<this._minBufferPx&&0!=Dt.start){var Je=Math.ceil((this._maxBufferPx-Xt)/this._itemSize);Dt.start=Math.max(0,Dt.start-Je),Dt.end=Math.min(zt,Math.ceil(qt+(Zt+this._minBufferPx)/this._itemSize))}else{var Be=Dt.end*this._itemSize-(sn+Zt);if(Be<this._minBufferPx&&Dt.end!=zt){var te=Math.ceil((this._maxBufferPx-Be)/this._itemSize);te>0&&(Dt.end=Math.min(zt,Dt.end+te),Dt.start=Math.max(0,Math.floor(qt-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Dt),this._viewport.setRenderedContentOffset(this._itemSize*Dt.start),this._scrolledIndexChange.next(Math.floor(qt))}}}]),Ye}();var xt=function(){function Ye(){(0,D.Z)(this,Ye),this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Mt(this.itemSize,this.minBufferPx,this.maxBufferPx)}return(0,j.Z)(Ye,[{key:"itemSize",get:function(){return this._itemSize},set:function(t){this._itemSize=(0,L.su)(t)}},{key:"minBufferPx",get:function(){return this._minBufferPx},set:function(t){this._minBufferPx=(0,L.su)(t)}},{key:"maxBufferPx",get:function(){return this._maxBufferPx},set:function(t){this._maxBufferPx=(0,L.su)(t)}},{key:"ngOnChanges",value:function(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}]),Ye}();xt.\u0275fac=function(ge){return new(ge||xt)},xt.\u0275dir=v.lG2({type:xt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[v._Bn([{provide:at,useFactory:function Tt(Ye){return Ye._scrollStrategy},deps:[(0,v.Gpc)(function(){return xt})]}]),v.TTD]});var Ze=function(){function Ye(ge,t,Dt){(0,D.Z)(this,Ye),this._ngZone=ge,this._platform=t,this._scrolled=new k.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Dt}return(0,j.Z)(Ye,[{key:"register",value:function(t){var Dt=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return Dt._scrolled.next(t)}))}},{key:"deregister",value:function(t){var Dt=this.scrollContainers.get(t);Dt&&(Dt.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,Dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new O.y(function(Zt){t._globalSubscription||t._addGlobalListener();var zt=Dt>0?t._scrolled.pipe((0,F.e)(Dt)).subscribe(Zt):t._scrolled.subscribe(Zt);return t._scrolledCount++,function(){zt.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):(0,b.of)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(Dt,Zt){return t.deregister(Zt)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,Dt){var Zt=this.getAncestorScrollContainers(t);return this.scrolled(Dt).pipe((0,X.h)(function(zt){return!zt||Zt.indexOf(zt)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var Dt=this,Zt=[];return this.scrollContainers.forEach(function(zt,sn){Dt._scrollableContainsElement(sn,t)&&Zt.push(sn)}),Zt}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,Dt){var Zt=(0,L.fI)(Dt),zt=t.getElementRef().nativeElement;do{if(Zt==zt)return!0}while(Zt=Zt.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var Dt=t._getWindow();return(0,S.R)(Dt.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),Ye}();Ze.\u0275fac=function(ge){return new(ge||Ze)(v.LFG(v.R0b),v.LFG(de.t4),v.LFG(pe.K0,8))},Ze.\u0275prov=v.Yz7({token:Ze,factory:Ze.\u0275fac,providedIn:"root"});var $t=function(){function Ye(ge,t,Dt,Zt){var zt=this;(0,D.Z)(this,Ye),this.elementRef=ge,this.scrollDispatcher=t,this.ngZone=Dt,this.dir=Zt,this._destroyed=new k.xQ,this._elementScrolled=new O.y(function(sn){return zt.ngZone.runOutsideAngular(function(){return(0,S.R)(zt.elementRef.nativeElement,"scroll").pipe((0,$.R)(zt._destroyed)).subscribe(sn)})})}return(0,j.Z)(Ye,[{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(t){var Dt=this.elementRef.nativeElement,Zt=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=Zt?t.end:t.start),null==t.right&&(t.right=Zt?t.start:t.end),null!=t.bottom&&(t.top=Dt.scrollHeight-Dt.clientHeight-t.bottom),Zt&&0!=(0,de._i)()?(null!=t.left&&(t.right=Dt.scrollWidth-Dt.clientWidth-t.left),2==(0,de._i)()?t.left=t.right:1==(0,de._i)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=Dt.scrollWidth-Dt.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var Dt=this.elementRef.nativeElement;(0,de.Mq)()?Dt.scrollTo(t):(null!=t.top&&(Dt.scrollTop=t.top),null!=t.left&&(Dt.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var Dt="left",zt=this.elementRef.nativeElement;if("top"==t)return zt.scrollTop;if("bottom"==t)return zt.scrollHeight-zt.clientHeight-zt.scrollTop;var sn=this.dir&&"rtl"==this.dir.value;return"start"==t?t=sn?"right":Dt:"end"==t&&(t=sn?Dt:"right"),sn&&2==(0,de._i)()?t==Dt?zt.scrollWidth-zt.clientWidth-zt.scrollLeft:zt.scrollLeft:sn&&1==(0,de._i)()?t==Dt?zt.scrollLeft+zt.scrollWidth-zt.clientWidth:-zt.scrollLeft:t==Dt?zt.scrollLeft:zt.scrollWidth-zt.clientWidth-zt.scrollLeft}}]),Ye}();$t.\u0275fac=function(ge){return new(ge||$t)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},$t.\u0275dir=v.lG2({type:$t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var Ft=new v.OlP("VIRTUAL_SCROLLABLE"),fn=function(Ye){(0,P.Z)(t,Ye);var ge=(0,E.Z)(t);function t(Dt,Zt,zt,sn){return(0,D.Z)(this,t),ge.call(this,Dt,Zt,zt,sn)}return(0,j.Z)(t,[{key:"measureViewportSize",value:function(Zt){var zt=this.elementRef.nativeElement;return"horizontal"===Zt?zt.clientWidth:zt.clientHeight}}]),t}($t);fn.\u0275fac=function(ge){return new(ge||fn)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},fn.\u0275dir=v.lG2({type:fn,features:[v.qOj]});var Ot=function(){function Ye(ge,t,Dt){var Zt=this;(0,D.Z)(this,Ye),this._platform=ge,this._change=new k.xQ,this._changeListener=function(zt){Zt._change.next(zt)},this._document=Dt,t.runOutsideAngular(function(){if(ge.isBrowser){var zt=Zt._getWindow();zt.addEventListener("resize",Zt._changeListener),zt.addEventListener("orientationchange",Zt._changeListener)}Zt.change().subscribe(function(){return Zt._viewportSize=null})})}return(0,j.Z)(Ye,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),Dt=this.getViewportSize(),Zt=Dt.width,zt=Dt.height;return{top:t.top,left:t.left,bottom:t.top+zt,right:t.left+Zt,height:zt,width:Zt}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,Dt=this._getWindow(),Zt=t.documentElement,zt=Zt.getBoundingClientRect();return{top:-zt.top||t.body.scrollTop||Dt.scrollY||Zt.scrollTop||0,left:-zt.left||t.body.scrollLeft||Dt.scrollX||Zt.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe((0,F.e)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),Ye}();Ot.\u0275fac=function(ge){return new(ge||Ot)(v.LFG(de.t4),v.LFG(v.R0b),v.LFG(pe.K0,8))},Ot.\u0275prov=v.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"});var Ct="undefined"!=typeof requestAnimationFrame?y.Z:T.E,We=function(Ye){(0,P.Z)(t,Ye);var ge=(0,E.Z)(t);function t(Dt,Zt,zt,sn,qt,yn,Kt,Xt){var Je;return(0,D.Z)(this,t),(Je=ge.call(this,Dt,yn,zt,qt)).elementRef=Dt,Je._changeDetectorRef=Zt,Je._scrollStrategy=sn,Je.scrollable=Xt,Je._platform=(0,v.f3M)(de.t4),Je._detachedSubject=new k.xQ,Je._renderedRangeSubject=new k.xQ,Je._orientation="vertical",Je._appendOnly=!1,Je.scrolledIndexChange=new O.y(function(Be){return Je._scrollStrategy.scrolledIndexChange.subscribe(function(te){return Promise.resolve().then(function(){return Je.ngZone.run(function(){return Be.next(te)})})})}),Je.renderedRangeStream=Je._renderedRangeSubject,Je._totalContentSize=0,Je._totalContentWidth="",Je._totalContentHeight="",Je._renderedRange={start:0,end:0},Je._dataLength=0,Je._viewportSize=0,Je._renderedContentOffset=0,Je._renderedContentOffsetNeedsRewrite=!1,Je._isChangeDetectionPending=!1,Je._runAfterChangeDetection=[],Je._viewportChanges=M.w.EMPTY,Je._viewportChanges=Kt.change().subscribe(function(){Je.checkViewportSize()}),Je.scrollable||(Je.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),Je.scrollable=(0,A.Z)(Je)),Je}return(0,j.Z)(t,[{key:"orientation",get:function(){return this._orientation},set:function(Zt){this._orientation!==Zt&&(this._orientation=Zt,this._calculateSpacerSize())}},{key:"appendOnly",get:function(){return this._appendOnly},set:function(Zt){this._appendOnly=(0,L.Ig)(Zt)}},{key:"ngOnInit",value:function(){var Zt=this;!this._platform.isBrowser||(this.scrollable===this&&(0,U.Z)((0,R.Z)(t.prototype),"ngOnInit",this).call(this),this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){Zt._measureViewportSize(),Zt._scrollStrategy.attach(Zt),Zt.scrollable.elementScrolled().pipe((0,Y.O)(null),(0,F.e)(0,Ct)).subscribe(function(){return Zt._scrollStrategy.onContentScrolled()}),Zt._markChangeDetectionNeeded()})}))}},{key:"ngOnDestroy",value:function(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),(0,U.Z)((0,R.Z)(t.prototype),"ngOnDestroy",this).call(this)}},{key:"attach",value:function(Zt){var zt=this;this._forOf,this.ngZone.runOutsideAngular(function(){zt._forOf=Zt,zt._forOf.dataStream.pipe((0,$.R)(zt._detachedSubject)).subscribe(function(sn){var qt=sn.length;qt!==zt._dataLength&&(zt._dataLength=qt,zt._scrollStrategy.onDataLengthChanged()),zt._doChangeDetection()})})}},{key:"detach",value:function(){this._forOf=null,this._detachedSubject.next()}},{key:"getDataLength",value:function(){return this._dataLength}},{key:"getViewportSize",value:function(){return this._viewportSize}},{key:"getRenderedRange",value:function(){return this._renderedRange}},{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]}},{key:"setTotalContentSize",value:function(Zt){this._totalContentSize!==Zt&&(this._totalContentSize=Zt,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}},{key:"setRenderedRange",value:function(Zt){var zt=this;(function _t(Ye,ge){return Ye.start==ge.start&&Ye.end==ge.end})(this._renderedRange,Zt)||(this.appendOnly&&(Zt={start:0,end:Math.max(this._renderedRange.end,Zt.end)}),this._renderedRangeSubject.next(this._renderedRange=Zt),this._markChangeDetectionNeeded(function(){return zt._scrollStrategy.onContentRendered()}))}},{key:"getOffsetToRenderedContentStart",value:function(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}},{key:"setRenderedContentOffset",value:function(Zt){var zt=this,sn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"to-start";Zt=this.appendOnly&&"to-start"===sn?0:Zt;var qt=this.dir&&"rtl"==this.dir.value,yn="horizontal"==this.orientation,Kt=yn?"X":"Y",Xt=yn&&qt?-1:1,Je="translate".concat(Kt,"(").concat(Number(Xt*Zt),"px)");this._renderedContentOffset=Zt,"to-end"===sn&&(Je+=" translate".concat(Kt,"(-100%)"),this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Je&&(this._renderedContentTransform=Je,this._markChangeDetectionNeeded(function(){zt._renderedContentOffsetNeedsRewrite?(zt._renderedContentOffset-=zt.measureRenderedContentSize(),zt._renderedContentOffsetNeedsRewrite=!1,zt.setRenderedContentOffset(zt._renderedContentOffset)):zt._scrollStrategy.onRenderedOffsetChanged()}))}},{key:"scrollToOffset",value:function(Zt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",sn={behavior:zt};"horizontal"===this.orientation?sn.start=Zt:sn.top=Zt,this.scrollable.scrollTo(sn)}},{key:"scrollToIndex",value:function(Zt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";this._scrollStrategy.scrollToIndex(Zt,zt)}},{key:"measureScrollOffset",value:function(Zt){var sn,zt=this;return sn=this.scrollable==this?function(yn){return(0,U.Z)((0,R.Z)(t.prototype),"measureScrollOffset",zt).call(zt,yn)}:function(yn){return zt.scrollable.measureScrollOffset(yn)},Math.max(0,sn(null!=Zt?Zt:"horizontal"===this.orientation?"start":"top")-this.measureViewportOffset())}},{key:"measureViewportOffset",value:function(Zt){var zt,sn,Kt="rtl"==(null===(zt=this.dir)||void 0===zt?void 0:zt.value);sn="start"==Zt?Kt?"right":"left":"end"==Zt?Kt?"left":"right":Zt||("horizontal"===this.orientation?"left":"top");var Xt=this.scrollable.measureBoundingClientRectWithScrollOffset(sn);return this.elementRef.nativeElement.getBoundingClientRect()[sn]-Xt}},{key:"measureRenderedContentSize",value:function(){var Zt=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Zt.offsetWidth:Zt.offsetHeight}},{key:"measureRangeSize",value:function(Zt){return this._forOf?this._forOf.measureRangeSize(Zt,this.orientation):0}},{key:"checkViewportSize",value:function(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}},{key:"_measureViewportSize",value:function(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}},{key:"_markChangeDetectionNeeded",value:function(Zt){var zt=this;Zt&&this._runAfterChangeDetection.push(Zt),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(function(){return Promise.resolve().then(function(){zt._doChangeDetection()})}))}},{key:"_doChangeDetection",value:function(){var Zt=this;this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(function(){return Zt._changeDetectorRef.markForCheck()});var zt=this._runAfterChangeDetection;this._runAfterChangeDetection=[];var qt,sn=(0,W.Z)(zt);try{for(sn.s();!(qt=sn.n()).done;){(0,qt.value)()}}catch(Kt){sn.e(Kt)}finally{sn.f()}}},{key:"_calculateSpacerSize",value:function(){this._totalContentHeight="horizontal"===this.orientation?"":"".concat(this._totalContentSize,"px"),this._totalContentWidth="horizontal"===this.orientation?"".concat(this._totalContentSize,"px"):""}}]),t}(fn);function lt(Ye,ge,t){var Dt=t;if(!Dt.getBoundingClientRect)return 0;var Zt=Dt.getBoundingClientRect();return"horizontal"===Ye?"start"===ge?Zt.left:Zt.right:"start"===ge?Zt.top:Zt.bottom}We.\u0275fac=function(ge){return new(ge||We)(v.Y36(v.SBq),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(at,8),v.Y36(le.Is,8),v.Y36(Ze),v.Y36(Ot),v.Y36(Ft,8))},We.\u0275cmp=v.Xpm({type:We,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(ge,t){var Dt;(1&ge&&v.Gf(me,7),2&ge)&&(v.iGM(Dt=v.CRH())&&(t._contentWrapper=Dt.first))},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(ge,t){2&ge&&v.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===t.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==t.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[v._Bn([{provide:$t,useFactory:function(ge,t){return ge||t},deps:[[new v.FiY,new v.tBr(Ft)],We]}]),v.qOj],ngContentSelectors:["*"],decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(ge,t){1&ge&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA(),v._UZ(3,"div",2)),2&ge&&(v.xp6(3),v.Udp("width",t._totalContentWidth)("height",t._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0});var dt=function(){function Ye(ge,t,Dt,Zt,zt,sn){var qt=this;(0,D.Z)(this,Ye),this._viewContainerRef=ge,this._template=t,this._differs=Dt,this._viewRepeater=Zt,this._viewport=zt,this.viewChange=new k.xQ,this._dataSourceChanges=new k.xQ,this.dataStream=this._dataSourceChanges.pipe((0,Y.O)(null),(0,Q.G)(),(0,ne.w)(function(yn){var Kt=(0,G.Z)(yn,2),Xt=Kt[0],Je=Kt[1];return qt._changeDataSource(Xt,Je)}),(0,be.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new k.xQ,this.dataStream.subscribe(function(yn){qt._data=yn,qt._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,$.R)(this._destroyed)).subscribe(function(yn){qt._renderedRange=yn,qt.viewChange.observers.length&&sn.run(function(){return qt.viewChange.next(qt._renderedRange)}),qt._onRenderedDataChange()}),this._viewport.attach(this)}return(0,j.Z)(Ye,[{key:"cdkVirtualForOf",get:function(){return this._cdkVirtualForOf},set:function(t){this._cdkVirtualForOf=t,(0,ce.Z9)(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new ce.P3((0,x.b)(t)?t:Array.from(t||[])))}},{key:"cdkVirtualForTrackBy",get:function(){return this._cdkVirtualForTrackBy},set:function(t){var Dt=this;this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?function(Zt,zt){return t(Zt+(Dt._renderedRange?Dt._renderedRange.start:0),zt)}:void 0}},{key:"cdkVirtualForTemplate",set:function(t){t&&(this._needsUpdate=!0,this._template=t)}},{key:"cdkVirtualForTemplateCacheSize",get:function(){return this._viewRepeater.viewCacheSize},set:function(t){this._viewRepeater.viewCacheSize=(0,L.su)(t)}},{key:"measureRangeSize",value:function(t,Dt){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||(t.end,this._renderedRange.end);for(var sn,qt,Zt=t.start-this._renderedRange.start,zt=t.end-t.start,yn=0;yn<zt;yn++){var Kt=this._viewContainerRef.get(yn+Zt);if(Kt&&Kt.rootNodes.length){sn=qt=Kt.rootNodes[0];break}}for(var Xt=zt-1;Xt>-1;Xt--){var Je=this._viewContainerRef.get(Xt+Zt);if(Je&&Je.rootNodes.length){qt=Je.rootNodes[Je.rootNodes.length-1];break}}return sn&&qt?lt(Dt,"end",qt)-lt(Dt,"start",sn):0}},{key:"ngDoCheck",value:function(){if(this._differ&&this._needsUpdate){var t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):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 t=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(Dt,Zt){return t.cdkVirtualForTrackBy?t.cdkVirtualForTrackBy(Dt,Zt):Zt})),this._needsUpdate=!0)}},{key:"_changeDataSource",value:function(t,Dt){return t&&t.disconnect(this),this._needsUpdate=!0,Dt?Dt.connect(this):(0,b.of)()}},{key:"_updateContext",value:function(){for(var t=this._data.length,Dt=this._viewContainerRef.length;Dt--;){var Zt=this._viewContainerRef.get(Dt);Zt.context.index=this._renderedRange.start+Dt,Zt.context.count=t,this._updateComputedContextProperties(Zt.context),Zt.detectChanges()}}},{key:"_applyChanges",value:function(t){var Dt=this;this._viewRepeater.applyChanges(t,this._viewContainerRef,function(qt,yn,Kt){return Dt._getEmbeddedViewArgs(qt,Kt)},function(qt){return qt.item}),t.forEachIdentityChange(function(qt){Dt._viewContainerRef.get(qt.currentIndex).context.$implicit=qt.item});for(var Zt=this._data.length,zt=this._viewContainerRef.length;zt--;){var sn=this._viewContainerRef.get(zt);sn.context.index=this._renderedRange.start+zt,sn.context.count=Zt,this._updateComputedContextProperties(sn.context)}}},{key:"_updateComputedContextProperties",value:function(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}},{key:"_getEmbeddedViewArgs",value:function(t,Dt){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Dt}}}]),Ye}();dt.\u0275fac=function(ge){return new(ge||dt)(v.Y36(v.s_b),v.Y36(v.Rgc),v.Y36(v.ZZ4),v.Y36(ce.k),v.Y36(We,4),v.Y36(v.R0b))},dt.\u0275dir=v.lG2({type:dt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[v._Bn([{provide:ce.k,useClass:ce.eX}])]});var Ut=function(Ye){(0,P.Z)(t,Ye);var ge=(0,E.Z)(t);function t(Dt,Zt,zt,sn){return(0,D.Z)(this,t),ge.call(this,Dt,Zt,zt,sn)}return(0,j.Z)(t,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]-this.measureScrollOffset(Zt)}}]),t}(fn);Ut.\u0275fac=function(ge){return new(ge||Ut)(v.Y36(v.SBq),v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},Ut.\u0275dir=v.lG2({type:Ut,selectors:[["","cdkVirtualScrollingElement",""]],hostAttrs:[1,"cdk-virtual-scrollable"],features:[v._Bn([{provide:Ft,useExisting:Ut}]),v.qOj]});var B=function(Ye){(0,P.Z)(t,Ye);var ge=(0,E.Z)(t);function t(Dt,Zt,zt){var sn;return(0,D.Z)(this,t),(sn=ge.call(this,new v.SBq(document.documentElement),Dt,Zt,zt))._elementScrolled=new O.y(function(qt){return sn.ngZone.runOutsideAngular(function(){return(0,S.R)(document,"scroll").pipe((0,$.R)(sn._destroyed)).subscribe(qt)})}),sn}return(0,j.Z)(t,[{key:"measureBoundingClientRectWithScrollOffset",value:function(Zt){return this.getElementRef().nativeElement.getBoundingClientRect()[Zt]}}]),t}(fn);B.\u0275fac=function(ge){return new(ge||B)(v.Y36(Ze),v.Y36(v.R0b),v.Y36(le.Is,8))},B.\u0275dir=v.lG2({type:B,selectors:[["cdk-virtual-scroll-viewport","scrollWindow",""]],features:[v._Bn([{provide:Ft,useExisting:B}]),v.qOj]});var H=(0,j.Z)(function Ye(){(0,D.Z)(this,Ye)});H.\u0275fac=function(ge){return new(ge||H)},H.\u0275mod=v.oAB({type:H}),H.\u0275inj=v.cJS({});var tt=(0,j.Z)(function Ye(){(0,D.Z)(this,Ye)});tt.\u0275fac=function(ge){return new(ge||tt)},tt.\u0275mod=v.oAB({type:tt}),tt.\u0275inj=v.cJS({imports:[le.vT,H,le.vT,H]})},9808:function(De,K,m){"use strict";m.d(K,{Do:function(){return ne},ED:function(){return La},EM:function(){return Hi},HT:function(){return v},JF:function(){return us},K0:function(){return b},Mx:function(){return ki},NF:function(){return ao},O5:function(){return ca},Ov:function(){return Jo},PC:function(){return Wi},RF:function(){return Ai},S$:function(){return $},V_:function(){return y},Ye:function(){return be},b0:function(){return Q},bD:function(){return Qo},ez:function(){return oo},mk:function(){return Ko},n9:function(){return fo},q:function(){return j},sg:function(){return Fi},tP:function(){return Ui},w_:function(){return k}});var G=m(7762),W=m(7685),A=m(136),U=m(9388),R=m(3144),P=m(5671),E=m(5e3),D=null;function j(){return D}function v(ie){D||(D=ie)}var k=(0,R.Z)(function ie(){(0,P.Z)(this,ie)}),b=new E.OlP("DocumentToken"),O=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(he){throw new Error("Not implemented")}}]),ie}();O.\u0275fac=function(ue){return new(ue||O)},O.\u0275prov=E.Yz7({token:O,factory:function(){return function S(){return(0,E.LFG)(T)}()},providedIn:"platform"});var y=new E.OlP("Location Initialized"),T=function(ie){(0,A.Z)(he,ie);var ue=(0,U.Z)(he);function he(Fe){var Qe;return(0,P.Z)(this,he),(Qe=ue.call(this))._doc=Fe,Qe._init(),Qe}return(0,R.Z)(he,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return j().getBaseHref(this._doc)}},{key:"onPopState",value:function(Qe){var Pt=j().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("popstate",Qe,!1),function(){return Pt.removeEventListener("popstate",Qe)}}},{key:"onHashChange",value:function(Qe){var Pt=j().getGlobalEventTarget(this._doc,"window");return Pt.addEventListener("hashchange",Qe,!1),function(){return Pt.removeEventListener("hashchange",Qe)}}},{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(Qe){this.location.pathname=Qe}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(Qe,Pt,an){M()?this._history.pushState(Qe,Pt,an):this.location.hash=an}},{key:"replaceState",value:function(Qe,Pt,an){M()?this._history.replaceState(Qe,Pt,an):this.location.hash=an}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(Qe)}},{key:"getState",value:function(){return this._history.state}}]),he}(O);function M(){return!!window.history.pushState}function N(ie,ue){if(0==ie.length)return ue;if(0==ue.length)return ie;var he=0;return ie.endsWith("/")&&he++,ue.startsWith("/")&&he++,2==he?ie+ue.substring(1):1==he?ie+ue:ie+"/"+ue}function F(ie){var ue=ie.match(/#|\?|$/),he=ue&&ue.index||ie.length,Fe=he-("/"===ie[he-1]?1:0);return ie.slice(0,Fe)+ie.slice(he)}function X(ie){return ie&&"?"!==ie[0]?"?"+ie:ie}T.\u0275fac=function(ue){return new(ue||T)(E.LFG(b))},T.\u0275prov=E.Yz7({token:T,factory:function(){return function x(){return new T((0,E.LFG)(b))}()},providedIn:"platform"});var $=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"historyGo",value:function(he){throw new Error("Not implemented")}}]),ie}();$.\u0275fac=function(ue){return new(ue||$)},$.\u0275prov=E.Yz7({token:$,factory:function(){return(0,E.f3M)(Q)},providedIn:"root"});var Y=new E.OlP("appBaseHref"),Q=function(ie){(0,A.Z)(he,ie);var ue=(0,U.Z)(he);function he(Fe,Qe){var Pt,an,Fn,fr;return(0,P.Z)(this,he),(Pt=ue.call(this))._platformLocation=Fe,Pt._removeListenerFns=[],Pt._baseHref=null!==(fr=null!==(an=null!=Qe?Qe:Pt._platformLocation.getBaseHrefFromDOM())&&void 0!==an?an:null===(Fn=(0,E.f3M)(b).location)||void 0===Fn?void 0:Fn.origin)&&void 0!==fr?fr:"",Pt}return(0,R.Z)(he,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Qe){this._removeListenerFns.push(this._platformLocation.onPopState(Qe),this._platformLocation.onHashChange(Qe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(Qe){return N(this._baseHref,Qe)}},{key:"path",value:function(){var Qe=arguments.length>0&&void 0!==arguments[0]&&arguments[0],Pt=this._platformLocation.pathname+X(this._platformLocation.search),an=this._platformLocation.hash;return an&&Qe?"".concat(Pt).concat(an):Pt}},{key:"pushState",value:function(Qe,Pt,an,Fn){var fr=this.prepareExternalUrl(an+X(Fn));this._platformLocation.pushState(Qe,Pt,fr)}},{key:"replaceState",value:function(Qe,Pt,an,Fn){var fr=this.prepareExternalUrl(an+X(Fn));this._platformLocation.replaceState(Qe,Pt,fr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,an,Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(an=(Pt=this._platformLocation).historyGo)||void 0===an||an.call(Pt,Qe)}}]),he}($);Q.\u0275fac=function(ue){return new(ue||Q)(E.LFG(O),E.LFG(Y,8))},Q.\u0275prov=E.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"});var ne=function(ie){(0,A.Z)(he,ie);var ue=(0,U.Z)(he);function he(Fe,Qe){var Pt;return(0,P.Z)(this,he),(Pt=ue.call(this))._platformLocation=Fe,Pt._baseHref="",Pt._removeListenerFns=[],null!=Qe&&(Pt._baseHref=Qe),Pt}return(0,R.Z)(he,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(Qe){this._removeListenerFns.push(this._platformLocation.onPopState(Qe),this._platformLocation.onHashChange(Qe))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var Pt=this._platformLocation.hash;return null==Pt&&(Pt="#"),Pt.length>0?Pt.substring(1):Pt}},{key:"prepareExternalUrl",value:function(Qe){var Pt=N(this._baseHref,Qe);return Pt.length>0?"#"+Pt:Pt}},{key:"pushState",value:function(Qe,Pt,an,Fn){var fr=this.prepareExternalUrl(an+X(Fn));0==fr.length&&(fr=this._platformLocation.pathname),this._platformLocation.pushState(Qe,Pt,fr)}},{key:"replaceState",value:function(Qe,Pt,an,Fn){var fr=this.prepareExternalUrl(an+X(Fn));0==fr.length&&(fr=this._platformLocation.pathname),this._platformLocation.replaceState(Qe,Pt,fr)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"historyGo",value:function(){var Pt,an,Qe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(an=(Pt=this._platformLocation).historyGo)||void 0===an||an.call(Pt,Qe)}}]),he}($);ne.\u0275fac=function(ue){return new(ue||ne)(E.LFG(O),E.LFG(Y,8))},ne.\u0275prov=E.Yz7({token:ne,factory:ne.\u0275fac});var be=function(){function ie(ue){var he=this;(0,P.Z)(this,ie),this._subject=new E.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ue;var Fe=this._locationStrategy.getBaseHref();this._baseHref=F(le(Fe)),this._locationStrategy.onPopState(function(Qe){he._subject.emit({url:he.path(!0),pop:!0,state:Qe.state,type:Qe.type})})}return(0,R.Z)(ie,[{key:"ngOnDestroy",value:function(){var he;null===(he=this._urlChangeSubscription)||void 0===he||he.unsubscribe(),this._urlChangeListeners=[]}},{key:"path",value:function(){var he=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._locationStrategy.path(he))}},{key:"getState",value:function(){return this._locationStrategy.getState()}},{key:"isCurrentPathEqualTo",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(he+X(Fe))}},{key:"normalize",value:function(he){return ie.stripTrailingSlash(function de(ie,ue){return ie&&ue.startsWith(ie)?ue.substring(ie.length):ue}(this._baseHref,le(he)))}},{key:"prepareExternalUrl",value:function(he){return he&&"/"!==he[0]&&(he="/"+he),this._locationStrategy.prepareExternalUrl(he)}},{key:"go",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.pushState(Qe,"",he,Fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+X(Fe)),Qe)}},{key:"replaceState",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._locationStrategy.replaceState(Qe,"",he,Fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+X(Fe)),Qe)}},{key:"forward",value:function(){this._locationStrategy.forward()}},{key:"back",value:function(){this._locationStrategy.back()}},{key:"historyGo",value:function(){var Fe,Qe,he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(Qe=(Fe=this._locationStrategy).historyGo)||void 0===Qe||Qe.call(Fe,he)}},{key:"onUrlChange",value:function(he){var Fe=this;return this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(Qe){Fe._notifyUrlChangeListeners(Qe.url,Qe.state)})),function(){var Qe,Pt=Fe._urlChangeListeners.indexOf(he);Fe._urlChangeListeners.splice(Pt,1),0===Fe._urlChangeListeners.length&&(null===(Qe=Fe._urlChangeSubscription)||void 0===Qe||Qe.unsubscribe(),Fe._urlChangeSubscription=null)}}},{key:"_notifyUrlChangeListeners",value:function(){var he=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Fe=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(Qe){return Qe(he,Fe)})}},{key:"subscribe",value:function(he,Fe,Qe){return this._subject.subscribe({next:he,error:Fe,complete:Qe})}}]),ie}();function le(ie){return ie.replace(/\/index.html$/,"")}be.normalizeQueryParams=X,be.joinWithSlash=N,be.stripTrailingSlash=F,be.\u0275fac=function(ue){return new(ue||be)(E.LFG($))},be.\u0275prov=E.Yz7({token:be,factory:function(){return function pe(){return new be((0,E.LFG)($))}()},providedIn:"root"});var me,ie,je,at,Mt,Tt,xt,Lt,ce={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};function Ct(ie,ue){return sn((0,E.cg1)(ie)[E.wAp.DateFormat],ue)}function We(ie,ue){return sn((0,E.cg1)(ie)[E.wAp.TimeFormat],ue)}function lt(ie,ue){return sn((0,E.cg1)(ie)[E.wAp.DateTimeFormat],ue)}function dt(ie,ue){var he=(0,E.cg1)(ie),Fe=he[E.wAp.NumberSymbols][ue];if(void 0===Fe){if(ue===xt.CurrencyDecimal)return he[E.wAp.NumberSymbols][xt.Decimal];if(ue===xt.CurrencyGroup)return he[E.wAp.NumberSymbols][xt.Group]}return Fe}function Ut(ie,ue){return(0,E.cg1)(ie)[E.wAp.NumberFormats][ue]}function Ye(ie){return(0,E.cg1)(ie)[E.wAp.Currencies]}(ie=me||(me={}))[ie.Decimal=0]="Decimal",ie[ie.Percent=1]="Percent",ie[ie.Currency=2]="Currency",ie[ie.Scientific=3]="Scientific",function(ie){ie[ie.Zero=0]="Zero",ie[ie.One=1]="One",ie[ie.Two=2]="Two",ie[ie.Few=3]="Few",ie[ie.Many=4]="Many",ie[ie.Other=5]="Other"}(je||(je={})),function(ie){ie[ie.Format=0]="Format",ie[ie.Standalone=1]="Standalone"}(at||(at={})),function(ie){ie[ie.Narrow=0]="Narrow",ie[ie.Abbreviated=1]="Abbreviated",ie[ie.Wide=2]="Wide",ie[ie.Short=3]="Short"}(Mt||(Mt={})),function(ie){ie[ie.Short=0]="Short",ie[ie.Medium=1]="Medium",ie[ie.Long=2]="Long",ie[ie.Full=3]="Full"}(Tt||(Tt={})),function(ie){ie[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup"}(xt||(xt={})),function(ie){ie[ie.Sunday=0]="Sunday",ie[ie.Monday=1]="Monday",ie[ie.Tuesday=2]="Tuesday",ie[ie.Wednesday=3]="Wednesday",ie[ie.Thursday=4]="Thursday",ie[ie.Friday=5]="Friday",ie[ie.Saturday=6]="Saturday"}(Lt||(Lt={}));var ge=E.kL8;function t(ie){if(!ie[E.wAp.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(ie[E.wAp.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function sn(ie,ue){for(var he=ue;he>-1;he--)if(void 0!==ie[he])return ie[he];throw new Error("Locale data API: locale data undefined")}function qt(ie){var ue=ie.split(":"),he=(0,W.Z)(ue,2);return{hours:+he[0],minutes:+he[1]}}function yn(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",Fe=Ye(he)[ie]||ce[ie]||[],Qe=Fe[1];return"narrow"===ue&&"string"==typeof Qe?Qe:Fe[0]||ie}var ye,fe,Ne,Je=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Be={},te=/((?:[^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 st(ie,ue,he,Fe){var Qe=function kt(ie){if(gt(ie))return ie;if("number"==typeof ie&&!isNaN(ie))return new Date(ie);if("string"==typeof ie){if(ie=ie.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ie)){var ue=ie.split("-").map(function(si){return+si}),he=(0,W.Z)(ue,3),Fe=he[0],Qe=he[1],Pt=void 0===Qe?1:Qe,an=he[2];return ct(Fe,Pt-1,void 0===an?1:an)}var kr,fr=parseFloat(ie);if(!isNaN(ie-fr))return new Date(fr);if(kr=ie.match(Je))return function $e(ie){var ue=new Date(0),he=0,Fe=0,Qe=ie[8]?ue.setUTCFullYear:ue.setFullYear,Pt=ie[8]?ue.setUTCHours:ue.setHours;ie[9]&&(he=Number(ie[9]+ie[10]),Fe=Number(ie[9]+ie[11])),Qe.call(ue,Number(ie[1]),Number(ie[2])-1,Number(ie[3]));var an=Number(ie[4]||0)-he,Fn=Number(ie[5]||0)-Fe,fr=Number(ie[6]||0),kr=Math.floor(1e3*parseFloat("0."+(ie[7]||0)));return Pt.call(ue,an,Fn,fr,kr),ue}(kr)}var Qr=new Date(ie);if(!gt(Qr))throw new Error('Unable to convert "'.concat(ie,'" into a date'));return Qr}(ie);ue=Bt(he,ue)||ue;for(var Fn,an=[];ue;){if(!(Fn=te.exec(ue))){an.push(ue);break}var fr=(an=an.concat(Fn.slice(1))).pop();if(!fr)break;ue=fr}var kr=Qe.getTimezoneOffset();Fe&&(kr=dn(Fe,kr),Qe=function Yt(ie,ue,he){var Fe=he?-1:1,Qe=ie.getTimezoneOffset(),Pt=dn(ue,Qe);return function Hn(ie,ue){return(ie=new Date(ie.getTime())).setMinutes(ie.getMinutes()+ue),ie}(ie,Fe*(Pt-Qe))}(Qe,Fe,!0));var Qr="";return an.forEach(function(si){var Ao=function vt(ie){if(qe[ie])return qe[ie];var ue;switch(ie){case"G":case"GG":case"GGG":ue=hn(Ne.Eras,Mt.Abbreviated);break;case"GGGG":ue=hn(Ne.Eras,Mt.Wide);break;case"GGGGG":ue=hn(Ne.Eras,Mt.Narrow);break;case"y":ue=ln(fe.FullYear,1,0,!1,!0);break;case"yy":ue=ln(fe.FullYear,2,0,!0,!0);break;case"yyy":ue=ln(fe.FullYear,3,0,!1,!0);break;case"yyyy":ue=ln(fe.FullYear,4,0,!1,!0);break;case"Y":ue=Re(1);break;case"YY":ue=Re(2,!0);break;case"YYY":ue=Re(3);break;case"YYYY":ue=Re(4);break;case"M":case"L":ue=ln(fe.Month,1,1);break;case"MM":case"LL":ue=ln(fe.Month,2,1);break;case"MMM":ue=hn(Ne.Months,Mt.Abbreviated);break;case"MMMM":ue=hn(Ne.Months,Mt.Wide);break;case"MMMMM":ue=hn(Ne.Months,Mt.Narrow);break;case"LLL":ue=hn(Ne.Months,Mt.Abbreviated,at.Standalone);break;case"LLLL":ue=hn(Ne.Months,Mt.Wide,at.Standalone);break;case"LLLLL":ue=hn(Ne.Months,Mt.Narrow,at.Standalone);break;case"w":ue=Ke(1);break;case"ww":ue=Ke(2);break;case"W":ue=Ke(1,!0);break;case"d":ue=ln(fe.Date,1);break;case"dd":ue=ln(fe.Date,2);break;case"c":case"cc":ue=ln(fe.Day,1);break;case"ccc":ue=hn(Ne.Days,Mt.Abbreviated,at.Standalone);break;case"cccc":ue=hn(Ne.Days,Mt.Wide,at.Standalone);break;case"ccccc":ue=hn(Ne.Days,Mt.Narrow,at.Standalone);break;case"cccccc":ue=hn(Ne.Days,Mt.Short,at.Standalone);break;case"E":case"EE":case"EEE":ue=hn(Ne.Days,Mt.Abbreviated);break;case"EEEE":ue=hn(Ne.Days,Mt.Wide);break;case"EEEEE":ue=hn(Ne.Days,Mt.Narrow);break;case"EEEEEE":ue=hn(Ne.Days,Mt.Short);break;case"a":case"aa":case"aaa":ue=hn(Ne.DayPeriods,Mt.Abbreviated);break;case"aaaa":ue=hn(Ne.DayPeriods,Mt.Wide);break;case"aaaaa":ue=hn(Ne.DayPeriods,Mt.Narrow);break;case"b":case"bb":case"bbb":ue=hn(Ne.DayPeriods,Mt.Abbreviated,at.Standalone,!0);break;case"bbbb":ue=hn(Ne.DayPeriods,Mt.Wide,at.Standalone,!0);break;case"bbbbb":ue=hn(Ne.DayPeriods,Mt.Narrow,at.Standalone,!0);break;case"B":case"BB":case"BBB":ue=hn(Ne.DayPeriods,Mt.Abbreviated,at.Format,!0);break;case"BBBB":ue=hn(Ne.DayPeriods,Mt.Wide,at.Format,!0);break;case"BBBBB":ue=hn(Ne.DayPeriods,Mt.Narrow,at.Format,!0);break;case"h":ue=ln(fe.Hours,1,-12);break;case"hh":ue=ln(fe.Hours,2,-12);break;case"H":ue=ln(fe.Hours,1);break;case"HH":ue=ln(fe.Hours,2);break;case"m":ue=ln(fe.Minutes,1);break;case"mm":ue=ln(fe.Minutes,2);break;case"s":ue=ln(fe.Seconds,1);break;case"ss":ue=ln(fe.Seconds,2);break;case"S":ue=ln(fe.FractionalSeconds,1);break;case"SS":ue=ln(fe.FractionalSeconds,2);break;case"SSS":ue=ln(fe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ue=At(ye.Short);break;case"ZZZZZ":ue=At(ye.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ue=At(ye.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ue=At(ye.Long);break;default:return null}return qe[ie]=ue,ue}(si);Qr+=Ao?Ao(Qe,he,kr):"''"===si?"'":si.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Qr}function ct(ie,ue,he){var Fe=new Date(0);return Fe.setFullYear(ie,ue,he),Fe.setHours(0,0,0),Fe}function Bt(ie,ue){var he=function Ze(ie){return(0,E.cg1)(ie)[E.wAp.LocaleId]}(ie);if(Be[he]=Be[he]||{},Be[he][ue])return Be[he][ue];var Fe="";switch(ue){case"shortDate":Fe=Ct(ie,Tt.Short);break;case"mediumDate":Fe=Ct(ie,Tt.Medium);break;case"longDate":Fe=Ct(ie,Tt.Long);break;case"fullDate":Fe=Ct(ie,Tt.Full);break;case"shortTime":Fe=We(ie,Tt.Short);break;case"mediumTime":Fe=We(ie,Tt.Medium);break;case"longTime":Fe=We(ie,Tt.Long);break;case"fullTime":Fe=We(ie,Tt.Full);break;case"short":var Qe=Bt(ie,"shortTime"),Pt=Bt(ie,"shortDate");Fe=jt(lt(ie,Tt.Short),[Qe,Pt]);break;case"medium":var an=Bt(ie,"mediumTime"),Fn=Bt(ie,"mediumDate");Fe=jt(lt(ie,Tt.Medium),[an,Fn]);break;case"long":var fr=Bt(ie,"longTime"),kr=Bt(ie,"longDate");Fe=jt(lt(ie,Tt.Long),[fr,kr]);break;case"full":var Qr=Bt(ie,"fullTime"),si=Bt(ie,"fullDate");Fe=jt(lt(ie,Tt.Full),[Qr,si])}return Fe&&(Be[he][ue]=Fe),Fe}function jt(ie,ue){return ue&&(ie=ie.replace(/\{([^}]+)}/g,function(he,Fe){return null!=ue&&Fe in ue?ue[Fe]:he})),ie}function on(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",Fe=arguments.length>3?arguments[3]:void 0,Qe=arguments.length>4?arguments[4]:void 0,Pt="";(ie<0||Qe&&ie<=0)&&(Qe?ie=1-ie:(ie=-ie,Pt=he));for(var an=String(ie);an.length<ue;)an="0"+an;return Fe&&(an=an.slice(an.length-ue)),Pt+an}function vn(ie,ue){return on(ie,3).substring(0,ue)}function ln(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,Fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3],Qe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(Pt,an){var Fn=En(ie,Pt);if((he>0||Fn>-he)&&(Fn+=he),ie===fe.Hours)0===Fn&&-12===he&&(Fn=12);else if(ie===fe.FractionalSeconds)return vn(Fn,ue);var fr=dt(an,xt.MinusSign);return on(Fn,ue,fr,Fe,Qe)}}function En(ie,ue){switch(ie){case fe.FullYear:return ue.getFullYear();case fe.Month:return ue.getMonth();case fe.Date:return ue.getDate();case fe.Hours:return ue.getHours();case fe.Minutes:return ue.getMinutes();case fe.Seconds:return ue.getSeconds();case fe.FractionalSeconds:return ue.getMilliseconds();case fe.Day:return ue.getDay();default:throw new Error('Unknown DateType value "'.concat(ie,'".'))}}function hn(ie,ue){var he=arguments.length>2&&void 0!==arguments[2]?arguments[2]:at.Format,Fe=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(Qe,Pt){return mn(Qe,Pt,ie,ue,he,Fe)}}function mn(ie,ue,he,Fe,Qe,Pt){switch(he){case Ne.Months:return function fn(ie,ue,he){var Fe=(0,E.cg1)(ie),Pt=sn([Fe[E.wAp.MonthsFormat],Fe[E.wAp.MonthsStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[ie.getMonth()];case Ne.Days:return function Ft(ie,ue,he){var Fe=(0,E.cg1)(ie),Pt=sn([Fe[E.wAp.DaysFormat],Fe[E.wAp.DaysStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[ie.getDay()];case Ne.DayPeriods:var an=ie.getHours(),Fn=ie.getMinutes();if(Pt){var fr=function Dt(ie){var ue=(0,E.cg1)(ie);return t(ue),(ue[E.wAp.ExtraData][2]||[]).map(function(Fe){return"string"==typeof Fe?qt(Fe):[qt(Fe[0]),qt(Fe[1])]})}(ue),kr=function Zt(ie,ue,he){var Fe=(0,E.cg1)(ie);t(Fe);var Pt=sn([Fe[E.wAp.ExtraData][0],Fe[E.wAp.ExtraData][1]],ue)||[];return sn(Pt,he)||[]}(ue,Qe,Fe),Qr=fr.findIndex(function(Ao){if(Array.isArray(Ao)){var da=(0,W.Z)(Ao,2),As=da[0],oa=da[1],Js=an>=As.hours&&Fn>=As.minutes,Si=an<oa.hours||an===oa.hours&&Fn<oa.minutes;if(As.hours<oa.hours){if(Js&&Si)return!0}else if(Js||Si)return!0}else if(Ao.hours===an&&Ao.minutes===Fn)return!0;return!1});if(-1!==Qr)return kr[Qr]}return function $t(ie,ue,he){var Fe=(0,E.cg1)(ie),Pt=sn([Fe[E.wAp.DayPeriodsFormat],Fe[E.wAp.DayPeriodsStandalone]],ue);return sn(Pt,he)}(ue,Qe,Fe)[an<12?0:1];case Ne.Eras:return function nt(ie,ue){return sn((0,E.cg1)(ie)[E.wAp.Eras],ue)}(ue,Fe)[ie.getFullYear()<=0?0:1];default:var si=he;throw new Error("unexpected translation type ".concat(si))}}function At(ie){return function(ue,he,Fe){var Qe=-1*Fe,Pt=dt(he,xt.MinusSign),an=Qe>0?Math.floor(Qe/60):Math.ceil(Qe/60);switch(ie){case ye.Short:return(Qe>=0?"+":"")+on(an,2,Pt)+on(Math.abs(Qe%60),2,Pt);case ye.ShortGMT:return"GMT"+(Qe>=0?"+":"")+on(an,1,Pt);case ye.Long:return"GMT"+(Qe>=0?"+":"")+on(an,2,Pt)+":"+on(Math.abs(Qe%60),2,Pt);case ye.Extended:return 0===Fe?"Z":(Qe>=0?"+":"")+on(an,2,Pt)+":"+on(Math.abs(Qe%60),2,Pt);default:throw new Error('Unknown zone width "'.concat(ie,'"'))}}}!function(ie){ie[ie.Short=0]="Short",ie[ie.ShortGMT=1]="ShortGMT",ie[ie.Long=2]="Long",ie[ie.Extended=3]="Extended"}(ye||(ye={})),function(ie){ie[ie.FullYear=0]="FullYear",ie[ie.Month=1]="Month",ie[ie.Date=2]="Date",ie[ie.Hours=3]="Hours",ie[ie.Minutes=4]="Minutes",ie[ie.Seconds=5]="Seconds",ie[ie.FractionalSeconds=6]="FractionalSeconds",ie[ie.Day=7]="Day"}(fe||(fe={})),function(ie){ie[ie.DayPeriods=0]="DayPeriods",ie[ie.Days=1]="Days",ie[ie.Months=2]="Months",ie[ie.Eras=3]="Eras"}(Ne||(Ne={}));function St(ie){var ue=ct(ie,0,1).getDay();return ct(ie,0,1+(ue<=4?4:11)-ue)}function ze(ie){return ct(ie.getFullYear(),ie.getMonth(),ie.getDate()+(4-ie.getDay()))}function Ke(ie){var ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(he,Fe){var Qe;if(ue){var Pt=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,an=he.getDate();Qe=1+Math.floor((an+Pt)/7)}else{var Fn=ze(he),fr=St(Fn.getFullYear()),kr=Fn.getTime()-fr.getTime();Qe=1+Math.round(kr/6048e5)}return on(Qe,ie,dt(Fe,xt.MinusSign))}}function Re(ie){var ue=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(he,Fe){return on(ze(he).getFullYear(),ie,dt(Fe,xt.MinusSign),ue)}}var qe={};function dn(ie,ue){ie=ie.replace(/:/g,"");var he=Date.parse("Jan 01, 1970 00:00:00 "+ie)/6e4;return isNaN(he)?ue:he}function gt(ie){return ie instanceof Date&&!isNaN(ie.valueOf())}var yt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Vn="0";function Pa(ie,ue,he,Fe,Qe,Pt){var an=arguments.length>6&&void 0!==arguments[6]&&arguments[6],Fn="",fr=!1;if(isFinite(ie)){var kr=Vs(ie);an&&(kr=ri(kr));var Qr=ue.minInt,si=ue.minFrac,Ao=ue.maxFrac;if(Pt){var da=Pt.match(yt);if(null===da)throw new Error("".concat(Pt," is not a valid digit info"));var As=da[1],oa=da[3],Js=da[5];null!=As&&(Qr=Yn(As)),null!=oa&&(si=Yn(oa)),null!=Js?Ao=Yn(Js):null!=oa&&si>Ao&&(Ao=si)}zi(kr,si,Ao);var Si=kr.digits,Qu=kr.integerLen,Go=kr.exponent,Xu=[];for(fr=Si.every(function(yo){return!yo});Qu<Qr;Qu++)Si.unshift(0);for(;Qu<0;Qu++)Si.unshift(0);Qu>0?Xu=Si.splice(Qu,Si.length):(Xu=Si,Si=[0]);var $u=[];for(Si.length>=ue.lgSize&&$u.unshift(Si.splice(-ue.lgSize,Si.length).join(""));Si.length>ue.gSize;)$u.unshift(Si.splice(-ue.gSize,Si.length).join(""));Si.length&&$u.unshift(Si.join("")),Fn=$u.join(dt(he,Fe)),Xu.length&&(Fn+=dt(he,Qe)+Xu.join("")),Go&&(Fn+=dt(he,xt.Exponential)+"+"+Go)}else Fn=dt(he,xt.Infinity);return Fn=ie<0&&!fr?ue.negPre+Fn+ue.negSuf:ue.posPre+Fn+ue.posSuf}function Ra(ie,ue,he,Fe,Qe){var an=ta(Ut(ue,me.Currency),dt(ue,xt.MinusSign));return an.minFrac=function Xt(ie){var ue,he=ce[ie];return he&&(ue=he[2]),"number"==typeof ue?ue:2}(Fe),an.maxFrac=an.minFrac,Pa(ie,an,ue,xt.CurrencyGroup,xt.CurrencyDecimal,Qe).replace("\xa4",he).replace("\xa4","").trim()}function ta(ie){var ue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",he={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Fe=ie.split(";"),Qe=Fe[0],Pt=Fe[1],an=-1!==Qe.indexOf(".")?Qe.split("."):[Qe.substring(0,Qe.lastIndexOf(Vn)+1),Qe.substring(Qe.lastIndexOf(Vn)+1)],Fn=an[0],fr=an[1]||"";he.posPre=Fn.substring(0,Fn.indexOf("#"));for(var kr=0;kr<fr.length;kr++){var Qr=fr.charAt(kr);Qr===Vn?he.minFrac=he.maxFrac=kr+1:"#"===Qr?he.maxFrac=kr+1:he.posSuf+=Qr}var si=Fn.split(",");if(he.gSize=si[1]?si[1].length:0,he.lgSize=si[2]||si[1]?(si[2]||si[1]).length:0,Pt){var Ao=Qe.length-he.posPre.length-he.posSuf.length,da=Pt.indexOf("#");he.negPre=Pt.substring(0,da).replace(/'/g,""),he.negSuf=Pt.slice(da+Ao).replace(/'/g,"")}else he.negPre=ue+he.posPre,he.negSuf=he.posSuf;return he}function ri(ie){if(0===ie.digits[0])return ie;var ue=ie.digits.length-ie.integerLen;return ie.exponent?ie.exponent+=2:(0===ue?ie.digits.push(0,0):1===ue&&ie.digits.push(0),ie.integerLen+=2),ie}function Vs(ie){var Fe,Qe,Pt,an,Fn,ue=Math.abs(ie)+"",he=0;for((Qe=ue.indexOf("."))>-1&&(ue=ue.replace(".","")),(Pt=ue.search(/e/i))>0?(Qe<0&&(Qe=Pt),Qe+=+ue.slice(Pt+1),ue=ue.substring(0,Pt)):Qe<0&&(Qe=ue.length),Pt=0;ue.charAt(Pt)===Vn;Pt++);if(Pt===(Fn=ue.length))Fe=[0],Qe=1;else{for(Fn--;ue.charAt(Fn)===Vn;)Fn--;for(Qe-=Pt,Fe=[],an=0;Pt<=Fn;Pt++,an++)Fe[an]=Number(ue.charAt(Pt))}return Qe>22&&(Fe=Fe.splice(0,21),he=Qe-1,Qe=1),{digits:Fe,exponent:he,integerLen:Qe}}function zi(ie,ue,he){if(ue>he)throw new Error("The minimum number of digits after fraction (".concat(ue,") is higher than the maximum (").concat(he,")."));var Fe=ie.digits,Qe=Fe.length-ie.integerLen,Pt=Math.min(Math.max(ue,Qe),he),an=Pt+ie.integerLen,Fn=Fe[an];if(an>0){Fe.splice(Math.max(ie.integerLen,an));for(var fr=an;fr<Fe.length;fr++)Fe[fr]=0}else{Qe=Math.max(0,Qe),ie.integerLen=1,Fe.length=Math.max(1,an=Pt+1),Fe[0]=0;for(var kr=1;kr<an;kr++)Fe[kr]=0}if(Fn>=5)if(an-1<0){for(var Qr=0;Qr>an;Qr--)Fe.unshift(0),ie.integerLen++;Fe.unshift(1),ie.integerLen++}else Fe[an-1]++;for(;Qe<Math.max(0,Pt);Qe++)Fe.push(0);var si=0!==Pt,Ao=ue+ie.integerLen,da=Fe.reduceRight(function(As,oa,Js,Si){return oa+=As,Si[Js]=oa<10?oa:oa-10,si&&(0===Si[Js]&&Js>=Ao?Si.pop():si=!1),oa>=10?1:0},0);da&&(Fe.unshift(da),ie.integerLen++)}function Yn(ie){var ue=parseInt(ie);if(isNaN(ue))throw new Error("Invalid integer literal when parsing "+ie);return ue}var yr=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});function Hr(ie,ue,he,Fe){var Qe="=".concat(ie);if(ue.indexOf(Qe)>-1||(Qe=he.getPluralCategory(ie,Fe),ue.indexOf(Qe)>-1))return Qe;if(ue.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(ie,'"'))}yr.\u0275fac=function(ue){return new(ue||yr)},yr.\u0275prov=E.Yz7({token:yr,factory:function(ue){var Fe,he=null;return ue?he=new ue:(Fe=E.LFG(E.soG),he=new Ni(Fe)),he},providedIn:"root"});var Ni=function(ie){(0,A.Z)(he,ie);var ue=(0,U.Z)(he);function he(Fe){var Qe;return(0,P.Z)(this,he),(Qe=ue.call(this)).locale=Fe,Qe}return(0,R.Z)(he,[{key:"getPluralCategory",value:function(Qe,Pt){switch(ge(Pt||this.locale)(Qe)){case je.Zero:return"zero";case je.One:return"one";case je.Two:return"two";case je.Few:return"few";case je.Many:return"many";default:return"other"}}}]),he}(yr);function ki(ie,ue){ue=encodeURIComponent(ue);var Fe,he=(0,G.Z)(ie.split(";"));try{for(he.s();!(Fe=he.n()).done;){var Qe=Fe.value,Pt=Qe.indexOf("="),an=-1==Pt?[Qe,""]:[Qe.slice(0,Pt),Qe.slice(Pt+1)],Fn=(0,W.Z)(an,2),fr=Fn[0],kr=Fn[1];if(fr.trim()===ue)return decodeURIComponent(kr)}}catch(Qr){he.e(Qr)}finally{he.f()}return null}Ni.\u0275fac=function(ue){return new(ue||Ni)(E.LFG(E.soG))},Ni.\u0275prov=E.Yz7({token:Ni,factory:Ni.\u0275fac});var Ko=function(){function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this._iterableDiffers=ue,this._keyValueDiffers=he,this._ngEl=Fe,this._renderer=Qe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return(0,R.Z)(ie,[{key:"klass",set:function(he){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof he?he.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(he){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof he?he.split(/\s+/):he,this._rawClass&&((0,E.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 he=this._iterableDiffer.diff(this._rawClass);he&&this._applyIterableChanges(he)}else if(this._keyValueDiffer){var Fe=this._keyValueDiffer.diff(this._rawClass);Fe&&this._applyKeyValueChanges(Fe)}}},{key:"_applyKeyValueChanges",value:function(he){var Fe=this;he.forEachAddedItem(function(Qe){return Fe._toggleClass(Qe.key,Qe.currentValue)}),he.forEachChangedItem(function(Qe){return Fe._toggleClass(Qe.key,Qe.currentValue)}),he.forEachRemovedItem(function(Qe){Qe.previousValue&&Fe._toggleClass(Qe.key,!1)})}},{key:"_applyIterableChanges",value:function(he){var Fe=this;he.forEachAddedItem(function(Qe){if("string"!=typeof Qe.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat((0,E.AaK)(Qe.item)));Fe._toggleClass(Qe.item,!0)}),he.forEachRemovedItem(function(Qe){return Fe._toggleClass(Qe.item,!1)})}},{key:"_applyClasses",value:function(he){var Fe=this;he&&(Array.isArray(he)||he instanceof Set?he.forEach(function(Qe){return Fe._toggleClass(Qe,!0)}):Object.keys(he).forEach(function(Qe){return Fe._toggleClass(Qe,!!he[Qe])}))}},{key:"_removeClasses",value:function(he){var Fe=this;he&&(Array.isArray(he)||he instanceof Set?he.forEach(function(Qe){return Fe._toggleClass(Qe,!1)}):Object.keys(he).forEach(function(Qe){return Fe._toggleClass(Qe,!1)}))}},{key:"_toggleClass",value:function(he,Fe){var Qe=this;(he=he.trim())&&he.split(/\s+/g).forEach(function(Pt){Fe?Qe._renderer.addClass(Qe._ngEl.nativeElement,Pt):Qe._renderer.removeClass(Qe._ngEl.nativeElement,Pt)})}}]),ie}();Ko.\u0275fac=function(ue){return new(ue||Ko)(E.Y36(E.ZZ4),E.Y36(E.aQg),E.Y36(E.SBq),E.Y36(E.Qsj))},Ko.\u0275dir=E.lG2({type:Ko,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0});var qr=function(){function ie(ue){(0,P.Z)(this,ie),this._viewContainerRef=ue,this.ngComponentOutlet=null}return(0,R.Z)(ie,[{key:"ngOnChanges",value:function(he){var Fe=this._viewContainerRef,Qe=this.ngComponentOutletNgModule,Pt=this.ngComponentOutletNgModuleFactory;if(Fe.clear(),this._componentRef=void 0,this.ngComponentOutlet){var an=this.ngComponentOutletInjector||Fe.parentInjector;(he.ngComponentOutletNgModule||he.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Qe?(0,E.Lck)(Qe,Bi(an)):Pt?Pt.create(Bi(an)):void 0),this._componentRef=Fe.createComponent(this.ngComponentOutlet,{index:Fe.length,injector:an,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),ie}();function Bi(ie){return ie.get(E.h0i).injector}qr.\u0275fac=function(ue){return new(ue||qr)(E.Y36(E.s_b))},qr.\u0275dir=E.lG2({type:qr,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[E.TTD]});var Ar=function(){function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this.$implicit=ue,this.ngForOf=he,this.index=Fe,this.count=Qe}return(0,R.Z)(ie,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),ie}(),Fi=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this._viewContainer=ue,this._template=he,this._differs=Fe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return(0,R.Z)(ie,[{key:"ngForOf",set:function(he){this._ngForOf=he,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(he){this._trackByFn=he}},{key:"ngForTemplate",set:function(he){he&&(this._template=he)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var he=this._ngForOf;if(!this._differ&&he)this._differ=this._differs.find(he).create(this.ngForTrackBy)}if(this._differ){var Qe=this._differ.diff(this._ngForOf);Qe&&this._applyChanges(Qe)}}},{key:"_applyChanges",value:function(he){var Fe=this,Qe=this._viewContainer;he.forEachOperation(function(kr,Qr,si){if(null==kr.previousIndex)Qe.createEmbeddedView(Fe._template,new Ar(kr.item,Fe._ngForOf,-1,-1),null===si?void 0:si);else if(null==si)Qe.remove(null===Qr?void 0:Qr);else if(null!==Qr){var Ao=Qe.get(Qr);Qe.move(Ao,si),Uo(Ao,kr)}});for(var Pt=0,an=Qe.length;Pt<an;Pt++){var fr=Qe.get(Pt).context;fr.index=Pt,fr.count=an,fr.ngForOf=this._ngForOf}he.forEachIdentityChange(function(kr){Uo(Qe.get(kr.currentIndex),kr)})}}],[{key:"ngTemplateContextGuard",value:function(he,Fe){return!0}}]),ie}();function Uo(ie,ue){ie.context.$implicit=ue.item}Fi.\u0275fac=function(ue){return new(ue||Fi)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(E.ZZ4))},Fi.\u0275dir=E.lG2({type:Fi,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});var ca=function(){function ie(ue,he){(0,P.Z)(this,ie),this._viewContainer=ue,this._context=new co,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=he}return(0,R.Z)(ie,[{key:"ngIf",set:function(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}},{key:"ngIfThen",set:function(he){na("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(he){na("ngIfElse",he),this._elseTemplateRef=he,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(he,Fe){return!0}}]),ie}();ca.\u0275fac=function(ue){return new(ue||ca)(E.Y36(E.s_b),E.Y36(E.Rgc))},ca.\u0275dir=E.lG2({type:ca,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});var co=(0,R.Z)(function ie(){(0,P.Z)(this,ie),this.$implicit=null,this.ngIf=null});function na(ie,ue){if(!!(ue&&!ue.createEmbeddedView))throw new Error("".concat(ie," must be a TemplateRef, but received '").concat((0,E.AaK)(ue),"'."))}var ls=function(){function ie(ue,he){(0,P.Z)(this,ie),this._viewContainerRef=ue,this._templateRef=he,this._created=!1}return(0,R.Z)(ie,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(he){he&&!this._created?this.create():!he&&this._created&&this.destroy()}}]),ie}(),Ai=function(){function ie(){(0,P.Z)(this,ie),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return(0,R.Z)(ie,[{key:"ngSwitch",set:function(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(he){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(he)}},{key:"_matchCase",value:function(he){var Fe=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Fe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Fe}},{key:"_updateDefaultCases",value:function(he){if(this._defaultViews&&he!==this._defaultUsed){this._defaultUsed=he;for(var Fe=0;Fe<this._defaultViews.length;Fe++){this._defaultViews[Fe].enforceState(he)}}}}]),ie}();Ai.\u0275fac=function(ue){return new(ue||Ai)},Ai.\u0275dir=E.lG2({type:Ai,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});var fo=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this.ngSwitch=Fe,Fe._addCase(),this._view=new ls(ue,he)}return(0,R.Z)(ie,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),ie}();fo.\u0275fac=function(ue){return new(ue||fo)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(Ai,9))},fo.\u0275dir=E.lG2({type:fo,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});var La=(0,R.Z)(function ie(ue,he,Fe){(0,P.Z)(this,ie),Fe._addDefault(new ls(ue,he))});La.\u0275fac=function(ue){return new(ue||La)(E.Y36(E.s_b),E.Y36(E.Rgc),E.Y36(Ai,9))},La.\u0275dir=E.lG2({type:La,selectors:[["","ngSwitchDefault",""]],standalone:!0});var qo=function(){function ie(ue){(0,P.Z)(this,ie),this._localization=ue,this._caseViews={}}return(0,R.Z)(ie,[{key:"ngPlural",set:function(he){this._switchValue=he,this._updateView()}},{key:"addCase",value:function(he,Fe){this._caseViews[he]=Fe}},{key:"_updateView",value:function(){this._clearViews();var he=Object.keys(this._caseViews),Fe=Hr(this._switchValue,he,this._localization);this._activateView(this._caseViews[Fe])}},{key:"_clearViews",value:function(){this._activeView&&this._activeView.destroy()}},{key:"_activateView",value:function(he){he&&(this._activeView=he,this._activeView.create())}}]),ie}();qo.\u0275fac=function(ue){return new(ue||qo)(E.Y36(yr))},qo.\u0275dir=E.lG2({type:qo,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0});var gu=(0,R.Z)(function ie(ue,he,Fe,Qe){(0,P.Z)(this,ie),this.value=ue;var Pt=!isNaN(Number(ue));Qe.addCase(Pt?"=".concat(ue):ue,new ls(Fe,he))});gu.\u0275fac=function(ue){return new(ue||gu)(E.$8M("ngPluralCase"),E.Y36(E.Rgc),E.Y36(E.s_b),E.Y36(qo,1))},gu.\u0275dir=E.lG2({type:gu,selectors:[["","ngPluralCase",""]],standalone:!0});var Wi=function(){function ie(ue,he,Fe){(0,P.Z)(this,ie),this._ngEl=ue,this._differs=he,this._renderer=Fe,this._ngStyle=null,this._differ=null}return(0,R.Z)(ie,[{key:"ngStyle",set:function(he){this._ngStyle=he,!this._differ&&he&&(this._differ=this._differs.find(he).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var he=this._differ.diff(this._ngStyle);he&&this._applyChanges(he)}}},{key:"_setStyle",value:function(he,Fe){var Qe=he.split("."),Pt=(0,W.Z)(Qe,2),an=Pt[0],Fn=Pt[1],fr=-1===an.indexOf("-")?void 0:E.JOm.DashCase;null!=Fe?this._renderer.setStyle(this._ngEl.nativeElement,an,Fn?"".concat(Fe).concat(Fn):Fe,fr):this._renderer.removeStyle(this._ngEl.nativeElement,an,fr)}},{key:"_applyChanges",value:function(he){var Fe=this;he.forEachRemovedItem(function(Qe){return Fe._setStyle(Qe.key,null)}),he.forEachAddedItem(function(Qe){return Fe._setStyle(Qe.key,Qe.currentValue)}),he.forEachChangedItem(function(Qe){return Fe._setStyle(Qe.key,Qe.currentValue)})}}]),ie}();Wi.\u0275fac=function(ue){return new(ue||Wi)(E.Y36(E.SBq),E.Y36(E.aQg),E.Y36(E.Qsj))},Wi.\u0275dir=E.lG2({type:Wi,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});var Ui=function(){function ie(ue){(0,P.Z)(this,ie),this._viewContainerRef=ue,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}return(0,R.Z)(ie,[{key:"ngOnChanges",value:function(he){if(he.ngTemplateOutlet||he.ngTemplateOutletInjector){var Fe=this._viewContainerRef;if(this._viewRef&&Fe.remove(Fe.indexOf(this._viewRef)),this.ngTemplateOutlet){var Qe=this.ngTemplateOutlet,Pt=this.ngTemplateOutletContext,an=this.ngTemplateOutletInjector;this._viewRef=Fe.createEmbeddedView(Qe,Pt,an?{injector:an}:void 0)}else this._viewRef=null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),ie}();Ui.\u0275fac=function(ue){return new(ue||Ui)(E.Y36(E.s_b))},Ui.\u0275dir=E.lG2({type:Ui,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[E.TTD]});function qi(ie,ue){return new E.vHH(2100,!1)}var tn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"createSubscription",value:function(he,Fe){return he.subscribe({next:Fe,error:function(Pt){throw Pt}})}},{key:"dispose",value:function(he){he.unsubscribe()}}]),ie}(),Jt=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"createSubscription",value:function(he,Fe){return he.then(Fe,function(Qe){throw Qe})}},{key:"dispose",value:function(he){}}]),ie}(),Jr=new Jt,Mi=new tn,Jo=function(){function ie(ue){(0,P.Z)(this,ie),this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ue}return(0,R.Z)(ie,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose(),this._ref=null}},{key:"transform",value:function(he){return this._obj?he!==this._obj?(this._dispose(),this.transform(he)):this._latestValue:(he&&this._subscribe(he),this._latestValue)}},{key:"_subscribe",value:function(he){var Fe=this;this._obj=he,this._strategy=this._selectStrategy(he),this._subscription=this._strategy.createSubscription(he,function(Qe){return Fe._updateLatestValue(he,Qe)})}},{key:"_selectStrategy",value:function(he){if((0,E.QGY)(he))return Jr;if((0,E.F4k)(he))return Mi;throw qi()}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(he,Fe){he===this._obj&&(this._latestValue=Fe,this._ref.markForCheck())}}]),ie}();Jo.\u0275fac=function(ue){return new(ue||Jo)(E.Y36(E.sBO,16))},Jo.\u0275pipe=E.Yjl({name:"async",type:Jo,pure:!1,standalone:!0});var Ho=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.toLowerCase()}}]),ie}();Ho.\u0275fac=function(ue){return new(ue||Ho)},Ho.\u0275pipe=E.Yjl({name:"lowercase",type:Ho,pure:!0,standalone:!0});var bi=/(?:[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,Rn=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.replace(bi,function(Fe){return Fe[0].toUpperCase()+Fe.slice(1).toLowerCase()})}}]),ie}();Rn.\u0275fac=function(ue){return new(ue||Rn)},Rn.\u0275pipe=E.Yjl({name:"titlecase",type:Rn,pure:!0,standalone:!0});var go=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){if(null==he)return null;if("string"!=typeof he)throw qi();return he.toUpperCase()}}]),ie}();go.\u0275fac=function(ue){return new(ue||go)},go.\u0275pipe=E.Yjl({name:"uppercase",type:go,pure:!0,standalone:!0});var Bl=new E.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Nn=function(){function ie(ue,he){(0,P.Z)(this,ie),this.locale=ue,this.defaultTimezone=he}return(0,R.Z)(ie,[{key:"transform",value:function(he){var an,Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",Qe=arguments.length>2?arguments[2]:void 0,Pt=arguments.length>3?arguments[3]:void 0;if(null==he||""===he||he!=he)return null;try{return st(he,Fe,Pt||this.locale,null!==(an=null!=Qe?Qe:this.defaultTimezone)&&void 0!==an?an:void 0)}catch(Fn){throw qi(0,Fn.message)}}}]),ie}();Nn.\u0275fac=function(ue){return new(ue||Nn)(E.Y36(E.soG,16),E.Y36(Bl,24))},Nn.\u0275pipe=E.Yjl({name:"date",type:Nn,pure:!0,standalone:!0});var xn=/#/g,pn=function(){function ie(ue){(0,P.Z)(this,ie),this._localization=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(null==he)return"";if("object"!=typeof Fe||null===Fe)throw qi();return Fe[Hr(he,Object.keys(Fe),this._localization,Qe)].replace(xn,he.toString())}}]),ie}();pn.\u0275fac=function(ue){return new(ue||pn)(E.Y36(yr,16))},pn.\u0275pipe=E.Yjl({name:"i18nPlural",type:pn,pure:!0,standalone:!0});var mi=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe){if(null==he)return"";if("object"!=typeof Fe||"string"!=typeof he)throw qi();return Fe.hasOwnProperty(he)?Fe[he]:Fe.hasOwnProperty("other")?Fe.other:""}}]),ie}();mi.\u0275fac=function(ue){return new(ue||mi)},mi.\u0275pipe=E.Yjl({name:"i18nSelect",type:mi,pure:!0,standalone:!0});var Ji=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he){return JSON.stringify(he,null,2)}}]),ie}();function jo(ie,ue){return{key:ie,value:ue}}Ji.\u0275fac=function(ue){return new(ue||Ji)},Ji.\u0275pipe=E.Yjl({name:"json",type:Ji,pure:!1,standalone:!0});var Qi=function(){function ie(ue){(0,P.Z)(this,ie),this.differs=ue,this.keyValues=[],this.compareFn=Vi}return(0,R.Z)(ie,[{key:"transform",value:function(he){var Fe=this,Qe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vi;if(!he||!(he instanceof Map)&&"object"!=typeof he)return null;this.differ||(this.differ=this.differs.find(he).create());var Pt=this.differ.diff(he),an=Qe!==this.compareFn;return Pt&&(this.keyValues=[],Pt.forEachItem(function(Fn){Fe.keyValues.push(jo(Fn.key,Fn.currentValue))})),(Pt||an)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}]),ie}();function Vi(ie,ue){var he=ie.key,Fe=ue.key;if(he===Fe)return 0;if(void 0===he)return 1;if(void 0===Fe)return-1;if(null===he)return 1;if(null===Fe)return-1;if("string"==typeof he&&"string"==typeof Fe)return he<Fe?-1:1;if("number"==typeof he&&"number"==typeof Fe)return he-Fe;if("boolean"==typeof he&&"boolean"==typeof Fe)return he<Fe?-1:1;var Qe=String(he),Pt=String(Fe);return Qe==Pt?0:Qe<Pt?-1:1}Qi.\u0275fac=function(ue){return new(ue||Qi)(E.Y36(E.aQg,16))},Qi.\u0275pipe=E.Yjl({name:"keyvalue",type:Qi,pure:!1,standalone:!0});var ei=function(){function ie(ue){(0,P.Z)(this,ie),this._locale=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(!Do(he))return null;Qe=Qe||this._locale;try{return function ss(ie,ue,he){return Pa(ie,ta(Ut(ue,me.Decimal),dt(ue,xt.MinusSign)),ue,xt.Group,xt.Decimal,he)}(Xi(he),Qe,Fe)}catch(an){throw qi(0,an.message)}}}]),ie}();ei.\u0275fac=function(ue){return new(ue||ei)(E.Y36(E.soG,16))},ei.\u0275pipe=E.Yjl({name:"number",type:ei,pure:!0,standalone:!0});var _i=function(){function ie(ue){(0,P.Z)(this,ie),this._locale=ue}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(!Do(he))return null;Qe=Qe||this._locale;try{return function ua(ie,ue,he){return Pa(ie,ta(Ut(ue,me.Percent),dt(ue,xt.MinusSign)),ue,xt.Group,xt.Decimal,he,!0).replace(new RegExp("%","g"),dt(ue,xt.PercentSign))}(Xi(he),Qe,Fe)}catch(an){throw qi(0,an.message)}}}]),ie}();_i.\u0275fac=function(ue){return new(ue||_i)(E.Y36(E.soG,16))},_i.\u0275pipe=E.Yjl({name:"percent",type:_i,pure:!0,standalone:!0});var ir=function(){function ie(ue){var he=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";(0,P.Z)(this,ie),this._locale=ue,this._defaultCurrencyCode=he}return(0,R.Z)(ie,[{key:"transform",value:function(he){var Fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._defaultCurrencyCode,Qe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",Pt=arguments.length>3?arguments[3]:void 0,an=arguments.length>4?arguments[4]:void 0;if(!Do(he))return null;an=an||this._locale,"boolean"==typeof Qe&&(Qe=Qe?"symbol":"code");var Fn=Fe||this._defaultCurrencyCode;"code"!==Qe&&(Fn="symbol"===Qe||"symbol-narrow"===Qe?yn(Fn,"symbol"===Qe?"wide":"narrow",an):Qe);try{var fr=Xi(he);return Ra(fr,an,Fn,Fe,Pt)}catch(kr){throw qi(0,kr.message)}}}]),ie}();function Do(ie){return!(null==ie||""===ie||ie!=ie)}function Xi(ie){if("string"==typeof ie&&!isNaN(Number(ie)-parseFloat(ie)))return Number(ie);if("number"!=typeof ie)throw new Error("".concat(ie," is not a number"));return ie}ir.\u0275fac=function(ue){return new(ue||ir)(E.Y36(E.soG,16),E.Y36(E.EJc,16))},ir.\u0275pipe=E.Yjl({name:"currency",type:ir,pure:!0,standalone:!0});var wa=function(){function ie(){(0,P.Z)(this,ie)}return(0,R.Z)(ie,[{key:"transform",value:function(he,Fe,Qe){if(null==he)return null;if(!this.supports(he))throw qi();return he.slice(Fe,Qe)}},{key:"supports",value:function(he){return"string"==typeof he||Array.isArray(he)}}]),ie}();wa.\u0275fac=function(ue){return new(ue||wa)},wa.\u0275pipe=E.Yjl({name:"slice",type:wa,pure:!1,standalone:!0});var oo=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});oo.\u0275fac=function(ue){return new(ue||oo)},oo.\u0275mod=E.oAB({type:oo}),oo.\u0275inj=E.cJS({});var Qo="browser";function ao(ie){return ie===Qo}new E.GfV("14.3.0");var Hi=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});Hi.\u0275prov=(0,E.Yz7)({token:Hi,providedIn:"root",factory:function(){return new Yi((0,E.LFG)(b),window)}});var Yi=function(){function ie(ue,he){(0,P.Z)(this,ie),this.document=ue,this.window=he,this.offset=function(){return[0,0]}}return(0,R.Z)(ie,[{key:"setOffset",value:function(he){Array.isArray(he)?this.offset=function(){return he}:this.offset=he}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(he){this.supportsScrolling()&&this.window.scrollTo(he[0],he[1])}},{key:"scrollToAnchor",value:function(he){if(this.supportsScrolling()){var Fe=function fl(ie,ue){var he=ie.getElementById(ue)||ie.getElementsByName(ue)[0];if(he)return he;if("function"==typeof ie.createTreeWalker&&ie.body&&(ie.body.createShadowRoot||ie.body.attachShadow))for(var Fe=ie.createTreeWalker(ie.body,NodeFilter.SHOW_ELEMENT),Qe=Fe.currentNode;Qe;){var Pt=Qe.shadowRoot;if(Pt){var an=Pt.getElementById(ue)||Pt.querySelector('[name="'.concat(ue,'"]'));if(an)return an}Qe=Fe.nextNode()}return null}(this.document,he);Fe&&(this.scrollToElement(Fe),Fe.focus())}}},{key:"setHistoryScrollRestoration",value:function(he){if(this.supportScrollRestoration()){var Fe=this.window.history;Fe&&Fe.scrollRestoration&&(Fe.scrollRestoration=he)}}},{key:"scrollToElement",value:function(he){var Fe=he.getBoundingClientRect(),Qe=Fe.left+this.window.pageXOffset,Pt=Fe.top+this.window.pageYOffset,an=this.offset();this.window.scrollTo(Qe-an[0],Pt-an[1])}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var he=Ec(this.window.history)||Ec(Object.getPrototypeOf(this.window.history));return!(!he||!he.writable&&!he.set)}catch(Fe){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(he){return!1}}}]),ie}();function Ec(ie){return Object.getOwnPropertyDescriptor(ie,"scrollRestoration")}var us=(0,R.Z)(function ie(){(0,P.Z)(this,ie)});function Mf(ie,ue){return so(ie)?new URL(ie):new URL(ie,ue.location.href)}function so(ie){return/^https?:\/\//.test(ie)}function Es(ie){return so(ie)?new URL(ie).hostname:ie}function vo(ie){return ie.startsWith("/")?ie.slice(1):ie}var Dc=function(ue){return ue.src},Ba=new E.OlP("ImageLoader",{providedIn:"root",factory:function(){return Dc}});function cs(ie,ue){return function(Fe){(function Fl(ie){if("string"!=typeof ie||""===ie.trim())return!1;try{return new URL(ie),!0}catch(Fe){return!1}})(Fe)||function po(ie,ue){throw new E.vHH(2959,!1)}(),Fe=function xc(ie){return ie.endsWith("/")?ie.slice(0,-1):ie}(Fe);return[{provide:Ba,useValue:function(Fn){return so(Fn.src)&&function Sf(ie,ue){throw new E.vHH(2959,!1)}(0,Fn.src),ie(Fe,Object.assign(Object.assign({},Fn),{src:vo(Fn.src)}))}}]}}cs(function Ku(ie,ue){var he="format=auto";return ue.width&&(he+=",width=".concat(ue.width)),"".concat(ie,"/cdn-cgi/image/").concat(he,"/").concat(ue.src)});cs(function xs(ie,ue){var he="f_auto,q_auto";return ue.width&&(he+=",w_".concat(ue.width)),"".concat(ie,"/image/upload/").concat(he,"/").concat(ue.src)});cs(function Ds(ie,ue){var he="tr:q-auto";return ue.width&&(he+=",w-".concat(ue.width)),"".concat(ie,"/").concat(he,"/").concat(ue.src)});cs(function Te(ie,ue){var he=new URL("".concat(ie,"/").concat(ue.src));return he.searchParams.set("auto","format"),ue.width&&he.searchParams.set("w",ue.width.toString()),he.href});function se(ie){var ue=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],he=ue?'(activated on an <img> element with the `ngSrc="'.concat(ie,'"`) '):"";return"The NgOptimizedImage directive ".concat(he,"has detected that")}function Me(ie){throw new E.vHH(2958,"Unexpected invocation of the ".concat(ie," in the prod mode. ")+"Please make sure that the prod mode is enabled for production builds.")}var Oe=function(){function ie(){(0,P.Z)(this,ie),this.images=new Map,this.alreadyWarned=new Set,this.window=null,this.observer=null,Me("LCP checker");var ue=(0,E.f3M)(b).defaultView;void 0!==ue&&"undefined"!=typeof PerformanceObserver&&(this.window=ue,this.observer=this.initPerformanceObserver())}return(0,R.Z)(ie,[{key:"initPerformanceObserver",value:function(){var he=this,Fe=new PerformanceObserver(function(Qe){var Pt,an,Fn=Qe.getEntries();if(0!==Fn.length){var kr=null!==(an=null===(Pt=Fn[Fn.length-1].element)||void 0===Pt?void 0:Pt.src)&&void 0!==an?an:"";if(!kr.startsWith("data:")&&!kr.startsWith("blob:"))he.images.get(kr)&&!he.alreadyWarned.has(kr)&&(he.alreadyWarned.add(kr),function mt(ie){var ue=se(ie);console.warn((0,E.kuF)(2955,"".concat(ue," this image is the Largest Contentful Paint (LCP) ")+'element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.'))}(kr))}});return Fe.observe({type:"largest-contentful-paint",buffered:!0}),Fe}},{key:"registerImage",value:function(he,Fe){!this.observer||this.images.set(Mf(he,this.window).href,Fe)}},{key:"unregisterImage",value:function(he){!this.observer||this.images.delete(Mf(he,this.window).href)}},{key:"ngOnDestroy",value:function(){!this.observer||(this.observer.disconnect(),this.images.clear(),this.alreadyWarned.clear())}}]),ie}();Oe.\u0275fac=function(ue){return new(ue||Oe)},Oe.\u0275prov=E.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"});var Ht=new Set(["localhost","127.0.0.1","0.0.0.0"]),On=new E.OlP("PRECONNECT_CHECK_BLOCKLIST"),sr=function(){function ie(){(0,P.Z)(this,ie),this.document=(0,E.f3M)(b),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(Ht),Me("preconnect link checker");var ue=this.document.defaultView;void 0!==ue&&(this.window=ue);var he=(0,E.f3M)(On,{optional:!0});he&&this.populateBlocklist(he)}return(0,R.Z)(ie,[{key:"populateBlocklist",value:function(he){var Fe=this;Array.isArray(he)?pl(he,function(Qe){Fe.blocklist.add(Es(Qe))}):this.blocklist.add(Es(he))}},{key:"assertPreconnect",value:function(he,Fe){if(this.window){var Qe=Mf(he,this.window);this.blocklist.has(Qe.hostname)||this.alreadySeen.has(Qe.origin)||(this.alreadySeen.add(Qe.origin),this.preconnectLinks||(this.preconnectLinks=this.queryPreconnectLinks()),this.preconnectLinks.has(Qe.origin)||console.warn((0,E.kuF)(2956,"".concat(se(Fe)," there is no preconnect tag present for this ")+"image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n"+' <link rel="preconnect" href="'.concat(Qe.origin,'">'))))}}},{key:"queryPreconnectLinks",value:function(){for(var he=new Set,Pt=0,an=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));Pt<an.length;Pt++){var fr=Mf(an[Pt].href,this.window);he.add(fr.origin)}return he}},{key:"ngOnDestroy",value:function(){var he;null===(he=this.preconnectLinks)||void 0===he||he.clear(),this.alreadySeen.clear()}}]),ie}();function pl(ie,ue){var Fe,he=(0,G.Z)(ie);try{for(he.s();!(Fe=he.n()).done;){var Qe=Fe.value;Array.isArray(Qe)?pl(Qe,ue):ue(Qe)}}catch(Pt){he.e(Pt)}finally{he.f()}}sr.\u0275fac=function(ue){return new(ue||sr)},sr.\u0275prov=E.Yz7({token:sr,factory:sr.\u0275fac,providedIn:"root"});var yd=new E.OlP("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:function(){return new Set}}),jl=function(){function ie(){(0,P.Z)(this,ie),this.preloadedImages=(0,E.f3M)(yd),this.document=(0,E.f3M)(b)}return(0,R.Z)(ie,[{key:"createPreloadLinkTag",value:function(he,Fe,Qe,Pt){if(!this.preloadedImages.has(Fe)){this.preloadedImages.add(Fe);var an=he.createElement("link");he.setAttribute(an,"as","image"),he.setAttribute(an,"href",Fe),he.setAttribute(an,"rel","preload"),he.setAttribute(an,"fetchpriority","high"),Pt&&he.setAttribute(an,"imageSizes",Pt),Qe&&he.setAttribute(an,"imageSrcset",Qe),he.appendChild(this.document.head,an)}}}]),ie}();jl.\u0275fac=function(ue){return new(ue||jl)},jl.\u0275prov=E.Yz7({token:jl,factory:jl.\u0275fac,providedIn:"root"});var Ta=/^((\s*\d+w\s*(,|$)){1,})$/,Xm=[1,2],hs={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840]},Ev=new E.OlP("ImageConfig",{providedIn:"root",factory:function(){return hs}}),Cd=function(){function ie(){(0,P.Z)(this,ie),this.imageLoader=(0,E.f3M)(Ba),this.config=function ah(ie){var ue={};return ie.breakpoints&&(ue.breakpoints=ie.breakpoints.sort(function(he,Fe){return he-Fe})),Object.assign({},hs,ie,ue)}((0,E.f3M)(Ev)),this.renderer=(0,E.f3M)(E.Qsj),this.imgElement=(0,E.f3M)(E.SBq).nativeElement,this.injector=(0,E.f3M)(E.zs3),this.isServer=function qa(ie){return"server"===ie}((0,E.f3M)(E.Lbi)),this.preloadLinkChecker=(0,E.f3M)(jl),this.lcpObserver=null,this._renderedSrc=null,this._priority=!1,this._disableOptimizedSrcset=!1,this._fill=!1}return(0,R.Z)(ie,[{key:"width",get:function(){return this._width},set:function(he){this._width=qs(he)}},{key:"height",get:function(){return this._height},set:function(he){this._height=qs(he)}},{key:"priority",get:function(){return this._priority},set:function(he){this._priority=ia(he)}},{key:"disableOptimizedSrcset",get:function(){return this._disableOptimizedSrcset},set:function(he){this._disableOptimizedSrcset=ia(he)}},{key:"fill",get:function(){return this._fill},set:function(he){this._fill=ia(he)}},{key:"ngOnInit",value:function(){this.setHostAttributes()}},{key:"setHostAttributes",value:function(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");var he=this.getRewrittenSrc();this.setHostAttribute("src",he);var Fe=void 0;this.sizes&&this.setHostAttribute("sizes",this.sizes),this.ngSrcset?Fe=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(Fe=this.getAutomaticSrcset()),Fe&&this.setHostAttribute("srcset",Fe),this.isServer&&this.priority&&this.preloadLinkChecker.createPreloadLinkTag(this.renderer,he,Fe,this.sizes)}},{key:"ngOnChanges",value:function(he){}},{key:"callImageLoader",value:function(he){var Fe=he;return this.loaderParams&&(Fe.loaderParams=this.loaderParams),this.imageLoader(Fe)}},{key:"getLoadingBehavior",value:function(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}},{key:"getFetchPriority",value:function(){return this.priority?"high":"auto"}},{key:"getRewrittenSrc",value:function(){if(!this._renderedSrc){var he={src:this.ngSrc};this._renderedSrc=this.callImageLoader(he)}return this._renderedSrc}},{key:"getRewrittenSrcset",value:function(){var he=this,Fe=Ta.test(this.ngSrcset);return this.ngSrcset.split(",").filter(function(Pt){return""!==Pt}).map(function(Pt){Pt=Pt.trim();var an=Fe?parseFloat(Pt):parseFloat(Pt)*he.width;return"".concat(he.callImageLoader({src:he.ngSrc,width:an})," ").concat(Pt)}).join(", ")}},{key:"getAutomaticSrcset",value:function(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}},{key:"getResponsiveSrcset",value:function(){var Fe,he=this,Qe=this.config.breakpoints,Pt=Qe;return"100vw"===(null===(Fe=this.sizes)||void 0===Fe?void 0:Fe.trim())&&(Pt=Qe.filter(function(Fn){return Fn>=640})),Pt.map(function(Fn){return"".concat(he.callImageLoader({src:he.ngSrc,width:Fn})," ").concat(Fn,"w")}).join(", ")}},{key:"getFixedSrcset",value:function(){var he=this;return Xm.map(function(Qe){var Pt=he.callImageLoader({src:he.ngSrc,width:he.width*Qe});return"".concat(Pt," ").concat(Qe,"x")}).join(", ")}},{key:"shouldGenerateAutomaticSrcset",value:function(){return!this._disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==Dc&&!(this.width>1920||this.height>1080)}},{key:"ngOnDestroy",value:function(){}},{key:"setHostAttribute",value:function(he,Fe){this.renderer.setAttribute(this.imgElement,he,Fe)}}]),ie}();function qs(ie){return"string"==typeof ie?parseInt(ie,10):ie}function ia(ie){return null!=ie&&"false"!=="".concat(ie)}Cd.\u0275fac=function(ue){return new(ue||Cd)},Cd.\u0275dir=E.lG2({type:Cd,selectors:[["img","ngSrc",""]],hostVars:8,hostBindings:function(ue,he){2&ue&&E.Udp("position",he.fill?"absolute":null)("width",he.fill?"100%":null)("height",he.fill?"100%":null)("inset",he.fill?"0px":null)},inputs:{ngSrc:"ngSrc",ngSrcset:"ngSrcset",sizes:"sizes",width:"width",height:"height",loading:"loading",priority:"priority",loaderParams:"loaderParams",disableOptimizedSrcset:"disableOptimizedSrcset",fill:"fill",src:"src",srcset:"srcset"},standalone:!0,features:[E.TTD]})},520:function(De,K,m){"use strict";m.d(K,{JF:function(){return Xt},LE:function(){return Y},TP:function(){return Ft},UA:function(){return xt},WM:function(){return y},eN:function(){return Ze}});var G=m(136),W=m(9388),A=m(7685),U=m(4902),R=m(3144),P=m(5671),E=m(9808),D=m(5e3),j=m(1086),L=m(7451),v=m(1406),k=m(9664),b=m(4850),O=(0,R.Z)(function te(){(0,P.Z)(this,te)}),S=(0,R.Z)(function te(){(0,P.Z)(this,te)}),y=function(){function te(ye){var fe=this;(0,P.Z)(this,te),this.normalizedNames=new Map,this.lazyUpdate=null,ye?this.lazyInit="string"==typeof ye?function(){fe.headers=new Map,ye.split("\n").forEach(function(Ne){var st=Ne.indexOf(":");if(st>0){var ct=Ne.slice(0,st),Bt=ct.toLowerCase(),jt=Ne.slice(st+1).trim();fe.maybeSetNormalizedName(ct,Bt),fe.headers.has(Bt)?fe.headers.get(Bt).push(jt):fe.headers.set(Bt,[jt])}})}:function(){fe.headers=new Map,Object.keys(ye).forEach(function(Ne){var st=ye[Ne],ct=Ne.toLowerCase();"string"==typeof st&&(st=[st]),st.length>0&&(fe.headers.set(ct,st),fe.maybeSetNormalizedName(Ne,ct))})}:this.headers=new Map}return(0,R.Z)(te,[{key:"has",value:function(fe){return this.init(),this.headers.has(fe.toLowerCase())}},{key:"get",value:function(fe){this.init();var Ne=this.headers.get(fe.toLowerCase());return Ne&&Ne.length>0?Ne[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(fe){return this.init(),this.headers.get(fe.toLowerCase())||null}},{key:"append",value:function(fe,Ne){return this.clone({name:fe,value:Ne,op:"a"})}},{key:"set",value:function(fe,Ne){return this.clone({name:fe,value:Ne,op:"s"})}},{key:"delete",value:function(fe,Ne){return this.clone({name:fe,value:Ne,op:"d"})}},{key:"maybeSetNormalizedName",value:function(fe,Ne){this.normalizedNames.has(Ne)||this.normalizedNames.set(Ne,fe)}},{key:"init",value:function(){var fe=this;this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(Ne){return fe.applyUpdate(Ne)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(fe){var Ne=this;fe.init(),Array.from(fe.headers.keys()).forEach(function(st){Ne.headers.set(st,fe.headers.get(st)),Ne.normalizedNames.set(st,fe.normalizedNames.get(st))})}},{key:"clone",value:function(fe){var Ne=new te;return Ne.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,Ne.lazyUpdate=(this.lazyUpdate||[]).concat([fe]),Ne}},{key:"applyUpdate",value:function(fe){var Ne=fe.name.toLowerCase();switch(fe.op){case"a":case"s":var st=fe.value;if("string"==typeof st&&(st=[st]),0===st.length)return;this.maybeSetNormalizedName(fe.name,Ne);var ct=("a"===fe.op?this.headers.get(Ne):void 0)||[];ct.push.apply(ct,(0,U.Z)(st)),this.headers.set(Ne,ct);break;case"d":var Bt=fe.value;if(Bt){var jt=this.headers.get(Ne);if(!jt)return;0===(jt=jt.filter(function(on){return-1===Bt.indexOf(on)})).length?(this.headers.delete(Ne),this.normalizedNames.delete(Ne)):this.headers.set(Ne,jt)}else this.headers.delete(Ne),this.normalizedNames.delete(Ne)}}},{key:"forEach",value:function(fe){var Ne=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(st){return fe(Ne.normalizedNames.get(st),Ne.headers.get(st))})}}]),te}();var M=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,[{key:"encodeKey",value:function(fe){return X(fe)}},{key:"encodeValue",value:function(fe){return X(fe)}},{key:"decodeKey",value:function(fe){return decodeURIComponent(fe)}},{key:"decodeValue",value:function(fe){return decodeURIComponent(fe)}}]),te}();function x(te,ye){var fe=new Map;te.length>0&&te.replace(/^\?/,"").split("&").forEach(function(st){var ct=st.indexOf("="),Bt=-1==ct?[ye.decodeKey(st),""]:[ye.decodeKey(st.slice(0,ct)),ye.decodeValue(st.slice(ct+1))],jt=(0,A.Z)(Bt,2),on=jt[0],vn=jt[1],ln=fe.get(on)||[];ln.push(vn),fe.set(on,ln)});return fe}var N=/%(\d[a-f0-9])/gi,F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function X(te){return encodeURIComponent(te).replace(N,function(ye,fe){var Ne;return null!==(Ne=F[fe])&&void 0!==Ne?Ne:ye})}function $(te){return"".concat(te)}var Y=function(){function te(){var ye=this,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,P.Z)(this,te),this.updates=null,this.cloneFrom=null,this.encoder=fe.encoder||new M,fe.fromString){if(fe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=x(fe.fromString,this.encoder)}else fe.fromObject?(this.map=new Map,Object.keys(fe.fromObject).forEach(function(Ne){var st=fe.fromObject[Ne],ct=Array.isArray(st)?st.map($):[$(st)];ye.map.set(Ne,ct)})):this.map=null}return(0,R.Z)(te,[{key:"has",value:function(fe){return this.init(),this.map.has(fe)}},{key:"get",value:function(fe){this.init();var Ne=this.map.get(fe);return Ne?Ne[0]:null}},{key:"getAll",value:function(fe){return this.init(),this.map.get(fe)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(fe,Ne){return this.clone({param:fe,value:Ne,op:"a"})}},{key:"appendAll",value:function(fe){var Ne=[];return Object.keys(fe).forEach(function(st){var ct=fe[st];Array.isArray(ct)?ct.forEach(function(Bt){Ne.push({param:st,value:Bt,op:"a"})}):Ne.push({param:st,value:ct,op:"a"})}),this.clone(Ne)}},{key:"set",value:function(fe,Ne){return this.clone({param:fe,value:Ne,op:"s"})}},{key:"delete",value:function(fe,Ne){return this.clone({param:fe,value:Ne,op:"d"})}},{key:"toString",value:function(){var fe=this;return this.init(),this.keys().map(function(Ne){var st=fe.encoder.encodeKey(Ne);return fe.map.get(Ne).map(function(ct){return st+"="+fe.encoder.encodeValue(ct)}).join("&")}).filter(function(Ne){return""!==Ne}).join("&")}},{key:"clone",value:function(fe){var Ne=new te({encoder:this.encoder});return Ne.cloneFrom=this.cloneFrom||this,Ne.updates=(this.updates||[]).concat(fe),Ne}},{key:"init",value:function(){var fe=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(Ne){return fe.map.set(Ne,fe.cloneFrom.map.get(Ne))}),this.updates.forEach(function(Ne){switch(Ne.op){case"a":case"s":var st=("a"===Ne.op?fe.map.get(Ne.param):void 0)||[];st.push($(Ne.value)),fe.map.set(Ne.param,st);break;case"d":if(void 0===Ne.value){fe.map.delete(Ne.param);break}var ct=fe.map.get(Ne.param)||[],Bt=ct.indexOf($(Ne.value));-1!==Bt&&ct.splice(Bt,1),ct.length>0?fe.map.set(Ne.param,ct):fe.map.delete(Ne.param)}}),this.cloneFrom=this.updates=null)}}]),te}(),ne=function(){function te(){(0,P.Z)(this,te),this.map=new Map}return(0,R.Z)(te,[{key:"set",value:function(fe,Ne){return this.map.set(fe,Ne),this}},{key:"get",value:function(fe){return this.map.has(fe)||this.map.set(fe,fe.defaultValue()),this.map.get(fe)}},{key:"delete",value:function(fe){return this.map.delete(fe),this}},{key:"has",value:function(fe){return this.map.has(fe)}},{key:"keys",value:function(){return this.map.keys()}}]),te}();function pe(te){return"undefined"!=typeof ArrayBuffer&&te instanceof ArrayBuffer}function de(te){return"undefined"!=typeof Blob&&te instanceof Blob}function le(te){return"undefined"!=typeof FormData&&te instanceof FormData}var je,te,me=function(){function te(ye,fe,Ne,st){var ct;if((0,P.Z)(this,te),this.url=fe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ye.toUpperCase(),function be(te){switch(te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||st?(this.body=void 0!==Ne?Ne:null,ct=st):ct=Ne,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params)),this.headers||(this.headers=new y),this.context||(this.context=new ne),this.params){var Bt=this.params.toString();if(0===Bt.length)this.urlWithParams=fe;else{var jt=fe.indexOf("?"),on=-1===jt?"?":jt<fe.length-1?"&":"";this.urlWithParams=fe+on+Bt}}else this.params=new Y,this.urlWithParams=fe}return(0,R.Z)(te,[{key:"serializeBody",value:function(){return null===this.body?null:pe(this.body)||de(this.body)||le(this.body)||function ce(te){return"undefined"!=typeof URLSearchParams&&te instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Y?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||le(this.body)?null:de(this.body)?this.body.type||null:pe(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Y?"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 Ne,fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},st=fe.method||this.method,ct=fe.url||this.url,Bt=fe.responseType||this.responseType,jt=void 0!==fe.body?fe.body:this.body,on=void 0!==fe.withCredentials?fe.withCredentials:this.withCredentials,vn=void 0!==fe.reportProgress?fe.reportProgress:this.reportProgress,ln=fe.headers||this.headers,En=fe.params||this.params,hn=null!==(Ne=fe.context)&&void 0!==Ne?Ne:this.context;return void 0!==fe.setHeaders&&(ln=Object.keys(fe.setHeaders).reduce(function(mn,At){return mn.set(At,fe.setHeaders[At])},ln)),fe.setParams&&(En=Object.keys(fe.setParams).reduce(function(mn,At){return mn.set(At,fe.setParams[At])},En)),new te(st,ct,jt,{params:En,headers:ln,context:hn,reportProgress:vn,responseType:Bt,withCredentials:on})}}]),te}();(te=je||(je={}))[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User";var at=(0,R.Z)(function te(ye){var fe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,Ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";(0,P.Z)(this,te),this.headers=ye.headers||new y,this.status=void 0!==ye.status?ye.status:fe,this.statusText=ye.statusText||Ne,this.url=ye.url||null,this.ok=this.status>=200&&this.status<300}),Mt=function(te){(0,G.Z)(fe,te);var ye=(0,W.Z)(fe);function fe(){var Ne,st=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,fe),(Ne=ye.call(this,st)).type=je.ResponseHeader,Ne}return(0,R.Z)(fe,[{key:"clone",value:function(){var st=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new fe({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}]),fe}(at),Tt=function(te){(0,G.Z)(fe,te);var ye=(0,W.Z)(fe);function fe(){var Ne,st=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.Z)(this,fe),(Ne=ye.call(this,st)).type=je.Response,Ne.body=void 0!==st.body?st.body:null,Ne}return(0,R.Z)(fe,[{key:"clone",value:function(){var st=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new fe({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}]),fe}(at),xt=function(te){(0,G.Z)(fe,te);var ye=(0,W.Z)(fe);function fe(Ne){var st;return(0,P.Z)(this,fe),(st=ye.call(this,Ne,0,"Unknown Error")).name="HttpErrorResponse",st.ok=!1,st.status>=200&&st.status<300?st.message="Http failure during parsing for ".concat(Ne.url||"(unknown url)"):st.message="Http failure response for ".concat(Ne.url||"(unknown url)",": ").concat(Ne.status," ").concat(Ne.statusText),st.error=Ne.error||null,st}return(0,R.Z)(fe)}(at);function Lt(te,ye){return{body:ye,headers:te.headers,context:te.context,observe:te.observe,params:te.params,reportProgress:te.reportProgress,responseType:te.responseType,withCredentials:te.withCredentials}}var Ze=function(){function te(ye){(0,P.Z)(this,te),this.handler=ye}return(0,R.Z)(te,[{key:"request",value:function(fe,Ne){var Bt,st=this,ct=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(fe instanceof me)Bt=fe;else{var jt=void 0;jt=ct.headers instanceof y?ct.headers:new y(ct.headers);var on=void 0;ct.params&&(on=ct.params instanceof Y?ct.params:new Y({fromObject:ct.params})),Bt=new me(fe,Ne,void 0!==ct.body?ct.body:null,{headers:jt,context:ct.context,params:on,reportProgress:ct.reportProgress,responseType:ct.responseType||"json",withCredentials:ct.withCredentials})}var vn=(0,j.of)(Bt).pipe((0,v.b)(function(En){return st.handler.handle(En)}));if(fe instanceof me||"events"===ct.observe)return vn;var ln=vn.pipe((0,k.h)(function(En){return En instanceof Tt}));switch(ct.observe||"body"){case"body":switch(Bt.responseType){case"arraybuffer":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&!(En.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return En.body}));case"blob":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&!(En.body instanceof Blob))throw new Error("Response is not a Blob.");return En.body}));case"text":return ln.pipe((0,b.U)(function(En){if(null!==En.body&&"string"!=typeof En.body)throw new Error("Response is not a string.");return En.body}));default:return ln.pipe((0,b.U)(function(En){return En.body}))}case"response":return ln;default:throw new Error("Unreachable: unhandled observe type ".concat(ct.observe,"}"))}}},{key:"delete",value:function(fe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",fe,Ne)}},{key:"get",value:function(fe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",fe,Ne)}},{key:"head",value:function(fe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",fe,Ne)}},{key:"jsonp",value:function(fe,Ne){return this.request("JSONP",fe,{params:(new Y).append(Ne,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(fe){var Ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",fe,Ne)}},{key:"patch",value:function(fe,Ne){var st=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",fe,Lt(st,Ne))}},{key:"post",value:function(fe,Ne){var st=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",fe,Lt(st,Ne))}},{key:"put",value:function(fe,Ne){var st=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",fe,Lt(st,Ne))}}]),te}();Ze.\u0275fac=function(ye){return new(ye||Ze)(D.LFG(O))},Ze.\u0275prov=D.Yz7({token:Ze,factory:Ze.\u0275fac});var $t=function(){function te(ye,fe){(0,P.Z)(this,te),this.next=ye,this.interceptor=fe}return(0,R.Z)(te,[{key:"handle",value:function(fe){return this.interceptor.intercept(fe,this.next)}}]),te}(),Ft=new D.OlP("HTTP_INTERCEPTORS"),fn=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,[{key:"intercept",value:function(fe,Ne){return Ne.handle(fe)}}]),te}();fn.\u0275fac=function(ye){return new(ye||fn)},fn.\u0275prov=D.Yz7({token:fn,factory:fn.\u0275fac});var Ot,nt=0,dt=(0,R.Z)(function te(){(0,P.Z)(this,te)}),Ut=function(){function te(ye,fe){(0,P.Z)(this,te),this.callbackMap=ye,this.document=fe,this.resolvedPromise=Promise.resolve()}return(0,R.Z)(te,[{key:"nextCallback",value:function(){return"ng_jsonp_callback_".concat(nt++)}},{key:"handle",value:function(fe){var Ne=this;if("JSONP"!==fe.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==fe.responseType)throw new Error("JSONP requests must use Json response type.");if(fe.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new L.y(function(st){var ct=Ne.nextCallback(),Bt=fe.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"=".concat(ct,"$1")),jt=Ne.document.createElement("script");jt.src=Bt;var on=null,vn=!1;Ne.callbackMap[ct]=function(mn){delete Ne.callbackMap[ct],on=mn,vn=!0};var ln=function(){jt.parentNode&&jt.parentNode.removeChild(jt),delete Ne.callbackMap[ct]};return jt.addEventListener("load",function(At){Ne.resolvedPromise.then(function(){ln(),vn?(st.next(new Tt({body:on,status:200,statusText:"OK",url:Bt})),st.complete()):st.error(new xt({url:Bt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),jt.addEventListener("error",function(At){ln(),st.error(new xt({error:At,status:0,statusText:"JSONP Error",url:Bt}))}),Ne.document.body.appendChild(jt),st.next({type:je.Sent}),function(){vn||Ne.removeListeners(jt),ln()}})}},{key:"removeListeners",value:function(fe){Ot||(Ot=this.document.implementation.createHTMLDocument()),Ot.adoptNode(fe)}}]),te}();Ut.\u0275fac=function(ye){return new(ye||Ut)(D.LFG(dt),D.LFG(E.K0))},Ut.\u0275prov=D.Yz7({token:Ut,factory:Ut.\u0275fac});var B=function(){function te(ye){(0,P.Z)(this,te),this.jsonp=ye}return(0,R.Z)(te,[{key:"intercept",value:function(fe,Ne){return"JSONP"===fe.method?this.jsonp.handle(fe):Ne.handle(fe)}}]),te}();B.\u0275fac=function(ye){return new(ye||B)(D.LFG(Ut))},B.\u0275prov=D.Yz7({token:B,factory:B.\u0275fac});var H=/^\)\]\}',?\n/;var Ye=function(){function te(ye){(0,P.Z)(this,te),this.xhrFactory=ye}return(0,R.Z)(te,[{key:"handle",value:function(fe){var Ne=this;if("JSONP"===fe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new L.y(function(st){var ct=Ne.xhrFactory.build();if(ct.open(fe.method,fe.urlWithParams),fe.withCredentials&&(ct.withCredentials=!0),fe.headers.forEach(function(et,St){return ct.setRequestHeader(et,St.join(","))}),fe.headers.has("Accept")||ct.setRequestHeader("Accept","application/json, text/plain, */*"),!fe.headers.has("Content-Type")){var Bt=fe.detectContentTypeHeader();null!==Bt&&ct.setRequestHeader("Content-Type",Bt)}if(fe.responseType){var jt=fe.responseType.toLowerCase();ct.responseType="json"!==jt?jt:"text"}var on=fe.serializeBody(),vn=null,ln=function(){if(null!==vn)return vn;var St=ct.statusText||"OK",ze=new y(ct.getAllResponseHeaders()),Ke=function tt(te){return"responseURL"in te&&te.responseURL?te.responseURL:/^X-Request-URL:/m.test(te.getAllResponseHeaders())?te.getResponseHeader("X-Request-URL"):null}(ct)||fe.url;return vn=new Mt({headers:ze,status:ct.status,statusText:St,url:Ke})},En=function(){var St=ln(),ze=St.headers,Ke=St.status,Re=St.statusText,qe=St.url,vt=null;204!==Ke&&(vt=void 0===ct.response?ct.responseText:ct.response),0===Ke&&(Ke=vt?200:0);var dn=Ke>=200&&Ke<300;if("json"===fe.responseType&&"string"==typeof vt){var Hn=vt;vt=vt.replace(H,"");try{vt=""!==vt?JSON.parse(vt):null}catch(Yt){vt=Hn,dn&&(dn=!1,vt={error:Yt,text:vt})}}dn?(st.next(new Tt({body:vt,headers:ze,status:Ke,statusText:Re,url:qe||void 0})),st.complete()):st.error(new xt({error:vt,headers:ze,status:Ke,statusText:Re,url:qe||void 0}))},hn=function(St){var Ke=ln().url,Re=new xt({error:St,status:ct.status||0,statusText:ct.statusText||"Unknown Error",url:Ke||void 0});st.error(Re)},mn=!1,At=function(St){mn||(st.next(ln()),mn=!0);var ze={type:je.DownloadProgress,loaded:St.loaded};St.lengthComputable&&(ze.total=St.total),"text"===fe.responseType&&!!ct.responseText&&(ze.partialText=ct.responseText),st.next(ze)},Et=function(St){var ze={type:je.UploadProgress,loaded:St.loaded};St.lengthComputable&&(ze.total=St.total),st.next(ze)};return ct.addEventListener("load",En),ct.addEventListener("error",hn),ct.addEventListener("timeout",hn),ct.addEventListener("abort",hn),fe.reportProgress&&(ct.addEventListener("progress",At),null!==on&&ct.upload&&ct.upload.addEventListener("progress",Et)),ct.send(on),st.next({type:je.Sent}),function(){ct.removeEventListener("error",hn),ct.removeEventListener("abort",hn),ct.removeEventListener("load",En),ct.removeEventListener("timeout",hn),fe.reportProgress&&(ct.removeEventListener("progress",At),null!==on&&ct.upload&&ct.upload.removeEventListener("progress",Et)),ct.readyState!==ct.DONE&&ct.abort()}})}}]),te}();Ye.\u0275fac=function(ye){return new(ye||Ye)(D.LFG(E.JF))},Ye.\u0275prov=D.Yz7({token:Ye,factory:Ye.\u0275fac});var ge=new D.OlP("XSRF_COOKIE_NAME"),t=new D.OlP("XSRF_HEADER_NAME"),Dt=(0,R.Z)(function te(){(0,P.Z)(this,te)}),Zt=function(){function te(ye,fe,Ne){(0,P.Z)(this,te),this.doc=ye,this.platform=fe,this.cookieName=Ne,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return(0,R.Z)(te,[{key:"getToken",value:function(){if("server"===this.platform)return null;var fe=this.doc.cookie||"";return fe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,E.Mx)(fe,this.cookieName),this.lastCookieString=fe),this.lastToken}}]),te}();Zt.\u0275fac=function(ye){return new(ye||Zt)(D.LFG(E.K0),D.LFG(D.Lbi),D.LFG(ge))},Zt.\u0275prov=D.Yz7({token:Zt,factory:Zt.\u0275fac});var zt=function(){function te(ye,fe){(0,P.Z)(this,te),this.tokenService=ye,this.headerName=fe}return(0,R.Z)(te,[{key:"intercept",value:function(fe,Ne){var st=fe.url.toLowerCase();if("GET"===fe.method||"HEAD"===fe.method||st.startsWith("http://")||st.startsWith("https://"))return Ne.handle(fe);var ct=this.tokenService.getToken();return null!==ct&&!fe.headers.has(this.headerName)&&(fe=fe.clone({headers:fe.headers.set(this.headerName,ct)})),Ne.handle(fe)}}]),te}();zt.\u0275fac=function(ye){return new(ye||zt)(D.LFG(Dt),D.LFG(t))},zt.\u0275prov=D.Yz7({token:zt,factory:zt.\u0275fac});var sn=function(){function te(ye,fe){(0,P.Z)(this,te),this.backend=ye,this.injector=fe,this.chain=null}return(0,R.Z)(te,[{key:"handle",value:function(fe){if(null===this.chain){var Ne=this.injector.get(Ft,[]);this.chain=Ne.reduceRight(function(st,ct){return new $t(st,ct)},this.backend)}return this.chain.handle(fe)}}]),te}();sn.\u0275fac=function(ye){return new(ye||sn)(D.LFG(S),D.LFG(D.zs3))},sn.\u0275prov=D.Yz7({token:sn,factory:sn.\u0275fac});var Kt=function(){function te(){(0,P.Z)(this,te)}return(0,R.Z)(te,null,[{key:"disable",value:function(){return{ngModule:te,providers:[{provide:zt,useClass:fn}]}}},{key:"withOptions",value:function(){var fe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:te,providers:[fe.cookieName?{provide:ge,useValue:fe.cookieName}:[],fe.headerName?{provide:t,useValue:fe.headerName}:[]]}}}]),te}();Kt.\u0275fac=function(ye){return new(ye||Kt)},Kt.\u0275mod=D.oAB({type:Kt}),Kt.\u0275inj=D.cJS({providers:[zt,{provide:Ft,useExisting:zt,multi:!0},{provide:Dt,useClass:Zt},{provide:ge,useValue:"XSRF-TOKEN"},{provide:t,useValue:"X-XSRF-TOKEN"}]});var Xt=(0,R.Z)(function te(){(0,P.Z)(this,te)});Xt.\u0275fac=function(ye){return new(ye||Xt)},Xt.\u0275mod=D.oAB({type:Xt}),Xt.\u0275inj=D.cJS({providers:[Ze,{provide:O,useClass:sn},Ye,{provide:S,useExisting:Ye}],imports:[Kt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]});var Je=(0,R.Z)(function te(){(0,P.Z)(this,te)});Je.\u0275fac=function(ye){return new(ye||Je)},Je.\u0275mod=D.oAB({type:Je}),Je.\u0275inj=D.cJS({providers:[Ut,{provide:dt,useFactory:function yn(){return"object"==typeof window?window:{}}},{provide:Ft,useClass:B,multi:!0}]});E.JF},5e3:function(De,K,m){"use strict";m.d(K,{$8M:function(){return lM},$Z:function(){return hS},AA_:function(){return gM},AFp:function(){return A1},ALo:function(){return Nh},AaK:function(){return X},AcB:function(){return PP},Akn:function(){return Au},AsE:function(){return tR},B6R:function(){return Yt},BQk:function(){return c1},CHM:function(){return Te},CRH:function(){return J},CZH:function(){return Wd},Ckj:function(){return y_},CqO:function(){return D6},D6c:function(){return v7},DdM:function(){return qn},Dn7:function(){return hU},DyG:function(){return Qt},E6H:function(){return ZU},EJc:function(){return zU},EiD:function(){return y3},EpF:function(){return VS},F$t:function(){return L6},F4k:function(){return KS},FYo:function(){return E3},FiY:function(){return Rf},G48:function(){return cL},GSi:function(){return s4},Gf:function(){return rp},GfV:function(){return Oi},GkF:function(){return WS},Gpc:function(){return Q},Gre:function(){return rR},HOy:function(){return _1},Hsn:function(){return Z6},IIB:function(){return NU},Ikx:function(){return iR},JOm:function(){return Zv},JVY:function(){return g3},Jf7:function(){return ny},KtG:function(){return se},L6J:function(){return UU},L6k:function(){return Lc},LAX:function(){return fV},LFG:function(){return fa},LSH:function(){return jM},LVF:function(){return HU},Lbi:function(){return OE},Lck:function(){return T1},MAs:function(){return _y},MGl:function(){return f1},MMx:function(){return Dy},NdJ:function(){return qS},O4$:function(){return Cn},OlP:function(){return ho},Oqu:function(){return eR},PXZ:function(){return jy},PiD:function(){return hh},Q6J:function(){return a1},QGY:function(){return YS},QP$:function(){return hi},QbO:function(){return IE},Qsj:function(){return HC},R0b:function(){return uc},RDi:function(){return RM},Rgc:function(){return Ga},SBq:function(){return Th},Sil:function(){return Uy},Suo:function(){return sc},TTD:function(){return ra},TgZ:function(){return s1},Tol:function(){return Y6},Udp:function(){return m1},VKq:function(){return xR},W1O:function(){return Ly},WFA:function(){return d1},WLB:function(){return DR},XFs:function(){return ye},Xek:function(){return JR},Xpm:function(){return Hn},Xts:function(){return Ch},Y36:function(){return E_},YKP:function(){return TR},YNc:function(){return E6},Yjl:function(){return Vn},Yz7:function(){return ge},Z0I:function(){return zt},ZZ4:function(){return Wy},_Bn:function(){return CE},_UZ:function(){return gy},_Vd:function(){return C_},_c5:function(){return WE},_uU:function(){return $6},a5r:function(){return s7},aQ5:function(){return t5},aQg:function(){return rg},ahi:function(){return uM},c2e:function(){return Vh},cJS:function(){return Dt},cg1:function(){return aR},d8E:function(){return oR},dDg:function(){return Q_},dqk:function(){return hn},eBb:function(){return v3},eFA:function(){return oL},ekj:function(){return Kf},eoX:function(){return X_},evT:function(){return XM},f3M:function(){return GP},g9A:function(){return O1},h0i:function(){return Lh},hGG:function(){return ig},hYB:function(){return p1},hij:function(){return sE},i9L:function(){return LP},iGM:function(){return bU},ifc:function(){return En},ip1:function(){return QR},jDz:function(){return kE},kL8:function(){return R8},kYT:function(){return yt},kcU:function(){return Pr},kuF:function(){return le},lG2:function(){return Gn},lcZ:function(){return E1},lnq:function(){return nR},lqb:function(){return Mu},lri:function(){return J_},mCW:function(){return OC},n4l:function(){return on},n5z:function(){return Is},n_E:function(){return Fd},oAB:function(){return gt},oJD:function(){return C3},oxw:function(){return P6},pB0:function(){return pV},pfw:function(){return FU},q3G:function(){return Ad},qLn:function(){return k_},qOj:function(){return BS},qZA:function(){return l1},qzn:function(){return Rc},rWj:function(){return NE},r_U:function(){return BU},s9C:function(){return QS},sBO:function(){return Z1},sIi:function(){return fy},s_b:function(){return W_},soG:function(){return Y_},tBr:function(){return Rv},tb:function(){return bl},tp0:function(){return o_},uIk:function(){return hy},vHH:function(){return de},vR:function(){return RP},vpe:function(){return Gc},wA2:function(){return LU},wAp:function(){return U_},xi3:function(){return Xf},xp6:function(){return N3},ynx:function(){return vy},z2F:function(){return ap},z3N:function(){return Pc},zSh:function(){return Xs},zWS:function(){return my},zlt:function(){return Oy},zs3:function(){return Kl}});var G=m(3237),W=m(1120),A=m(7685),P=(m(4942),m(4506),m(7326)),E=m(7762),D=m(4902),j=m(5647),L=m(3144),v=m(5671),k=m(136),b=m(9388),O=m(5724),S=m(4096),y=m(8929),T=m(7451),M=m(6787),x=m(8117);function N(c){for(var f in c)if(c[f]===N)return f;throw Error("Could not find renamed property on target object.")}function F(c,f){for(var p in f)f.hasOwnProperty(p)&&!c.hasOwnProperty(p)&&(c[p]=f[p])}function X(c){if("string"==typeof c)return c;if(Array.isArray(c))return"["+c.map(X).join(", ")+"]";if(null==c)return""+c;if(c.overriddenName)return"".concat(c.overriddenName);if(c.name)return"".concat(c.name);var f=c.toString();if(null==f)return""+f;var p=f.indexOf("\n");return-1===p?f:f.substring(0,p)}function $(c,f){return null==c||""===c?null===f?"":f:null==f||""===f?c:c+" "+f}var Y=N({__forward_ref__:N});function Q(c){return c.__forward_ref__=Q,c.toString=function(){return X(this())},c}function ne(c){return be(c)?c():c}function be(c){return"function"==typeof c&&c.hasOwnProperty(Y)&&c.__forward_ref__===Q}var de=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;return(0,v.Z)(this,p),(I=f.call(this,le(_,w))).code=_,I}return(0,L.Z)(p)}((0,O.Z)(Error));function le(c,f){var p="NG0".concat(Math.abs(c));return"".concat(p).concat(f?": "+f.trim():"")}function ce(c){return"string"==typeof c?c:null==c?"":String(c)}function me(c){return"function"==typeof c?c.name||c.toString():"object"==typeof c&&null!=c&&"function"==typeof c.type?c.type.name||c.type.toString():ce(c)}function Tt(c,f){f&&" in ".concat(f);throw new de(-201,!1)}function Ft(c,f,p){c!=f&&B(p,c,f,"==")}function Ut(c,f){null==c&&B(f,c,null,"!=")}function B(c,f,p,_){throw new Error("ASSERTION ERROR: ".concat(c)+(null==_?"":" [Expected=> ".concat(p," ").concat(_," ").concat(f," <=Actual]")))}function ge(c){return{token:c.token,providedIn:c.providedIn||null,factory:c.factory,value:void 0}}function Dt(c){return{providers:c.providers||[],imports:c.imports||[]}}function Zt(c){return sn(c,Xt)||sn(c,Be)}function zt(c){return null!==Zt(c)}function sn(c,f){return c.hasOwnProperty(f)?c[f]:null}function Kt(c){return c&&(c.hasOwnProperty(Je)||c.hasOwnProperty(te))?c[Je]:null}var ye,c,fe,on,vn,En,Xt=N({"\u0275prov":N}),Je=N({"\u0275inj":N}),Be=N({ngInjectableDef:N}),te=N({ngInjectorDef:N});function Ne(){return fe}function st(c){var f=fe;return fe=c,f}function ct(c,f,p){var _=Zt(c);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:p&ye.Optional?null:void 0!==f?f:void Tt(X(c),"Injector")}function jt(c){return{toString:c}.toString()}(c=ye||(ye={}))[c.Default=0]="Default",c[c.Host=1]="Host",c[c.Self=2]="Self",c[c.SkipSelf=4]="SkipSelf",c[c.Optional=8]="Optional",function(c){c[c.OnPush=0]="OnPush",c[c.Default=1]="Default"}(on||(on={})),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"}(vn||(vn={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(En||(En={}));var hn=function(){return"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self}();var Et={},et=[],St=N({"\u0275cmp":N}),ze=N({"\u0275dir":N}),Ke=N({"\u0275pipe":N}),Re=N({"\u0275mod":N}),qe=N({"\u0275fac":N}),vt=N({__NG_ELEMENT_ID__:N}),dn=0;function Hn(c){return jt(function(){var f=c.type,p=!0===c.standalone,_={},w={type:f,providersResolver:null,decls:c.decls,vars:c.vars,factory:null,template:c.template||null,consts:c.consts||null,ngContentSelectors:c.ngContentSelectors,hostBindings:c.hostBindings||null,hostVars:c.hostVars||0,hostAttrs:c.hostAttrs||null,contentQueries:c.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:c.exportAs||null,onPush:c.changeDetection===on.OnPush,directiveDefs:null,pipeDefs:null,standalone:p,dependencies:p&&c.dependencies||null,getStandaloneInjector:null,selectors:c.selectors||et,viewQuery:c.viewQuery||null,features:c.features||null,data:c.data||{},encapsulation:c.encapsulation||En.Emulated,id:"c".concat(dn++),styles:c.styles||et,_:null,setInput:null,schemas:c.schemas||null,tView:null},I=c.dependencies,V=c.features;return w.inputs=nn(c.inputs,_),w.outputs=nn(c.outputs),V&&V.forEach(function(ee){return ee(w)}),w.directiveDefs=I?function(){return("function"==typeof I?I():I).map(kt).filter($e)}:null,w.pipeDefs=I?function(){return("function"==typeof I?I():I).map(Or).filter($e)}:null,w})}function Yt(c,f,p){var _=c.\u0275cmp;_.directiveDefs=function(){return("function"==typeof f?f():f).map(kt)},_.pipeDefs=function(){return("function"==typeof p?p():p).map(Or)}}function kt(c){return Wn(c)||ar(c)}function $e(c){return null!==c}function gt(c){return jt(function(){return{type:c.type,bootstrap:c.bootstrap||et,declarations:c.declarations||et,imports:c.imports||et,exports:c.exports||et,transitiveCompileScopes:null,schemas:c.schemas||null,id:c.id||null}})}function yt(c,f){return jt(function(){var p=Gi(c,!0);p.declarations=f.declarations||et,p.imports=f.imports||et,p.exports=f.exports||et})}function nn(c,f){if(null==c)return Et;var p={};for(var _ in c)if(c.hasOwnProperty(_)){var w=c[_],I=w;Array.isArray(w)&&(I=w[1],w=w[0]),p[w]=_,f&&(f[w]=I)}return p}var Gn=Hn;function Vn(c){return{type:c.type,name:c.name,factory:null,pure:!1!==c.pure,standalone:!0===c.standalone,onDestroy:c.type.prototype.ngOnDestroy||null}}function Wn(c){return c[St]||null}function ar(c){return c[ze]||null}function Or(c){return c[Ke]||null}function hi(c){var f=Wn(c)||ar(c)||Or(c);return null!==f&&f.standalone}function Gi(c,f){var p=c[Re]||null;if(!p&&!0===f)throw new Error("Type ".concat(X(c)," does not have '\u0275mod' property."));return p}function Wi(c){return Array.isArray(c)&&"object"==typeof c[1]}function Ui(c){return Array.isArray(c)&&!0===c[1]}function Ss(c){return 0!=(8&c.flags)}function qi(c){return 2==(2&c.flags)}function tn(c){return 1==(1&c.flags)}function Jt(c){return null!==c.template}function Jr(c){return 0!=(256&c[2])}function oo(c,f){return c.hasOwnProperty(qe)?c[qe]:null}var Qo=function(){function c(f,p,_){(0,v.Z)(this,c),this.previousValue=f,this.currentValue=p,this.firstChange=_}return(0,L.Z)(c,[{key:"isFirstChange",value:function(){return this.firstChange}}]),c}();function ra(){return dl}function dl(c){return c.type.prototype.ngOnChanges&&(c.setInput=ao),Na}function Na(){var c=ka(this),f=null==c?void 0:c.current;if(f){var p=c.previous;if(p===Et)c.previous=f;else for(var _ in f)p[_]=f[_];c.current=null,this.ngOnChanges(f)}}function ao(c,f,p,_){var w=ka(c)||function vu(c,f){return c[qa]=f}(c,{previous:Et,current:null}),I=w.current||(w.current={}),V=w.previous,ee=this.declaredInputs[p],oe=V[ee];I[ee]=new Qo(oe&&oe.currentValue,f,V===Et),c[_]=f}ra.ngInherit=!0;var qa="__ngSimpleChanges__";function ka(c){return c[qa]||null}var vd=null,Yi=function(f,p,_){null!=vd&&vd(f,p,_)},Tf="math";function so(c){for(;Array.isArray(c);)c=c[0];return c}function xc(c,f){return so(f[c])}function vo(c,f){return so(f[c.index])}function Ba(c,f){return c.data[f]}function cs(c,f){return c[f]}function po(c,f){var p=f[c];return Wi(p)?p:p[0]}function Ys(c){return 64==(64&c[2])}function Ul(c,f){return null==f?null:c[f]}function nh(c){c[18]=0}function ds(c,f){c[5]+=f;for(var p=c,_=c[3];null!==_&&(1===f&&1===p[5]||-1===f&&0===p[5]);)_[5]+=f,p=_,_=_[3]}var Tr={lFrame:ah(null),bindingsEnabled:!0};function Ds(){return Tr.bindingsEnabled}function qu(){Tr.bindingsEnabled=!0}function Hl(){Tr.bindingsEnabled=!1}function An(){return Tr.lFrame.lView}function we(){return Tr.lFrame.tView}function Te(c){return Tr.lFrame.contextLView=c,c[8]}function se(c){return Tr.lFrame.contextLView=null,c}function Me(){for(var c=Oe();null!==c&&64===c.type;)c=c.parent;return c}function Oe(){return Tr.lFrame.currentTNode}function mt(){var c=Tr.lFrame,f=c.currentTNode;return c.isParent?f:f.parent}function Ht(c,f){var p=Tr.lFrame;p.currentTNode=c,p.isParent=f}function On(){return Tr.lFrame.isParent}function sr(){Tr.lFrame.isParent=!1}function Xo(){var c=Tr.lFrame,f=c.bindingRootIndex;return-1===f&&(f=c.bindingRootIndex=c.tView.bindingStartIndex),f}function Ta(){return Tr.lFrame.bindingIndex}function Ks(c){return Tr.lFrame.bindingIndex=c}function hl(){return Tr.lFrame.bindingIndex++}function fs(c){var f=Tr.lFrame,p=f.bindingIndex;return f.bindingIndex=f.bindingIndex+c,p}function oh(c){Tr.lFrame.inI18n=c}function $m(c,f){var p=Tr.lFrame;p.bindingIndex=p.bindingRootIndex=c,Ju(f)}function Ju(c){Tr.lFrame.currentDirectiveIndex=c}function ps(c){var f=Tr.lFrame.currentDirectiveIndex;return-1===f?null:c[f]}function ml(){return Tr.lFrame.currentQueryIndex}function hs(c){Tr.lFrame.currentQueryIndex=c}function Ev(c){var f=c[1];return 2===f.type?f.declTNode:1===f.type?c[6]:null}function Cd(c,f,p){if(p&ye.SkipSelf){for(var _=f,w=c;null===(_=_.parent)&&!(p&ye.Host)&&!(null===(_=Ev(w))||(w=w[15],10&_.type)););if(null===_)return!1;f=_,c=w}var I=Tr.lFrame=ia();return I.currentTNode=f,I.lView=c,!0}function qs(c){var f=ia(),p=c[1];Tr.lFrame=f,f.currentTNode=p.firstChild,f.lView=c,f.tView=p,f.contextLView=c,f.bindingIndex=p.bindingStartIndex,f.inI18n=!1}function ia(){var c=Tr.lFrame,f=null===c?null:c.child;return null===f?ah(c):f}function ah(c){var f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:c,child:null,inI18n:!1};return null!==c&&(c.child=f),f}function Ie(){var c=Tr.lFrame;return Tr.lFrame=c.parent,c.currentTNode=null,c.lView=null,c}var Ue=Ie;function _e(){var c=Ie();c.isParent=!0,c.tView=null,c.selectedIndex=-1,c.contextLView=null,c.elementDepthCount=0,c.currentDirectiveIndex=-1,c.currentNamespace=null,c.bindingRootIndex=-1,c.bindingIndex=-1,c.currentQueryIndex=0}function xe(c){var f=Tr.lFrame.contextLView=function ke(c,f){for(;c>0;)f=f[15],c--;return f}(c,Tr.lFrame.contextLView);return f[8]}function Ge(){return Tr.lFrame.selectedIndex}function it(c){Tr.lFrame.selectedIndex=c}function Wt(){var c=Tr.lFrame;return Ba(c.tView,c.selectedIndex)}function Cn(){Tr.lFrame.currentNamespace="svg"}function gr(){Tr.lFrame.currentNamespace=Tf}function Pr(){!function ms(){Tr.lFrame.currentNamespace=null}()}function Ac(c,f){for(var p=f.directiveStart,_=f.directiveEnd;p<_;p++){var I=c.data[p].type.prototype,V=I.ngAfterContentInit,ee=I.ngAfterContentChecked,oe=I.ngAfterViewInit,ve=I.ngAfterViewChecked,He=I.ngOnDestroy;V&&(c.contentHooks||(c.contentHooks=[])).push(-p,V),ee&&((c.contentHooks||(c.contentHooks=[])).push(p,ee),(c.contentCheckHooks||(c.contentCheckHooks=[])).push(p,ee)),oe&&(c.viewHooks||(c.viewHooks=[])).push(-p,oe),ve&&((c.viewHooks||(c.viewHooks=[])).push(p,ve),(c.viewCheckHooks||(c.viewCheckHooks=[])).push(p,ve)),null!=He&&(c.destroyHooks||(c.destroyHooks=[])).push(p,He)}}function xf(c,f,p){lC(c,f,3,p)}function e_(c,f,p,_){(3&c[2])===p&&lC(c,f,p,_)}function Df(c,f){var p=c[2];(3&p)===f&&(p&=2047,p+=1,c[2]=p)}function lC(c,f,p,_){for(var w=void 0!==_?65535&c[18]:0,I=null!=_?_:-1,V=f.length-1,ee=0,oe=w;oe<V;oe++){if("number"==typeof f[oe+1]){if(ee=f[oe],null!=_&&ee>=_)break}else f[oe]<0&&(c[18]+=65536),(ee<I||-1==I)&&(ie(c,p,f,oe),c[18]=(4294901760&c[18])+oe+2),oe++}}function ie(c,f,p,_){var w=p[_]<0,I=p[_+1],ee=c[w?-p[_]:p[_]];if(w){if(c[2]>>11<c[18]>>16&&(3&c[2])===f){c[2]+=2048,Yi(4,ee,I);try{I.call(ee)}finally{Yi(5,ee,I)}}}else{Yi(4,ee,I);try{I.call(ee)}finally{Yi(5,ee,I)}}}var he=(0,L.Z)(function c(f,p,_){(0,v.Z)(this,c),this.factory=f,this.resolving=!1,this.canSeeViewProviders=p,this.injectImpl=_});function si(c,f,p){for(var _=0;_<p.length;){var w=p[_];if("number"==typeof w){if(0!==w)break;_++;var I=p[_++],V=p[_++],ee=p[_++];c.setAttribute(f,V,ee,I)}else{var oe=w,ve=p[++_];da(oe)?c.setProperty(f,oe,ve):c.setAttribute(f,oe,ve),_++}}return _}function Ao(c){return 3===c||4===c||6===c}function da(c){return 64===c.charCodeAt(0)}function As(c,f){if(null!==f&&0!==f.length)if(null===c||0===c.length)c=f.slice();else for(var p=-1,_=0;_<f.length;_++){var w=f[_];"number"==typeof w?p=w:0===p||oa(c,p,w,null,-1===p||2===p?f[++_]:null)}return c}function oa(c,f,p,_,w){var I=0,V=c.length;if(-1===f)V=-1;else for(;I<c.length;){var ee=c[I++];if("number"==typeof ee){if(ee===f){V=-1;break}if(ee>f){V=I-1;break}}}for(;I<c.length;){var oe=c[I];if("number"==typeof oe)break;if(oe===p){if(null===_)return void(null!==w&&(c[I+1]=w));if(_===c[I+1])return void(c[I+2]=w)}I++,null!==_&&I++,null!==w&&I++}-1!==V&&(c.splice(V,0,f),I=V+1),c.splice(I++,0,p),null!==_&&c.splice(I++,0,_),null!==w&&c.splice(I++,0,w)}function Js(c){return-1!==c}function Si(c){return 32767&c}function Go(c,f){for(var p=function Qu(c){return c>>16}(c),_=f;p>0;)_=_[15],p--;return _}var Xu=!0;function $u(c){var f=Xu;return Xu=c,f}var cC=0,yu={};function xv(c,f){var p=sh(c,f);if(-1!==p)return p;var _=f[1];_.firstCreatePass&&(c.injectorIndex=f.length,t_(_.data,c),t_(f,null),t_(_.blueprint,null));var w=Os(c,f),I=c.injectorIndex;if(Js(w))for(var V=Si(w),ee=Go(w,f),oe=ee[1].data,ve=0;ve<8;ve++)f[I+ve]=ee[V+ve]|oe[V+ve];return f[I+8]=w,I}function t_(c,f){c.push(0,0,0,0,0,0,0,0,f)}function sh(c,f){return-1===c.injectorIndex||c.parent&&c.parent.injectorIndex===c.injectorIndex||null===f[c.injectorIndex+8]?-1:c.injectorIndex}function Os(c,f){if(c.parent&&-1!==c.parent.injectorIndex)return c.parent.injectorIndex;for(var p=0,_=null,w=f;null!==w;){if(null===(_=Qs(w)))return-1;if(p++,w=w[15],-1!==_.injectorIndex)return _.injectorIndex|p<<16}return-1}function n_(c,f,p){!function iM(c,f,p){var _;"string"==typeof p?_=p.charCodeAt(0)||0:p.hasOwnProperty(vt)&&(_=p[vt]),null==_&&(_=p[vt]=cC++);var w=255&_,I=1<<w;f.data[c+(w>>5)]|=I}(c,f,p)}function lh(c,f,p){if(p&ye.Optional||void 0!==c)return c;Tt(0,"NodeInjector")}function Af(c,f,p,_){if(p&ye.Optional&&void 0===_&&(_=null),0==(p&(ye.Self|ye.Host))){var w=c[9],I=st(void 0);try{return w?w.get(f,_,p&ye.Optional):ct(f,_,p&ye.Optional)}finally{st(I)}}return lh(_,0,p)}function aM(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye.Default,w=arguments.length>4?arguments[4]:void 0;if(null!==c){if(1024&f[2]){var I=di(c,f,p,_,yu);if(I!==yu)return I}var V=Of(c,f,p,_,yu);if(V!==yu)return V}return Af(f,p,_,w)}function Of(c,f,p,_,w){var I=function $F(c){if("string"==typeof c)return c.charCodeAt(0)||0;var f=c.hasOwnProperty(vt)?c[vt]:void 0;return"number"==typeof f?f>=0?255&f:e5:f}(p);if("function"==typeof I){if(!Cd(f,c,_))return _&ye.Host?lh(w,0,_):Af(f,p,_,w);try{var V=I(_);if(null!=V||_&ye.Optional)return V;Tt()}finally{Ue()}}else if("number"==typeof I){var ee=null,oe=sh(c,f),ve=-1,He=_&ye.Host?f[16][6]:null;for((-1===oe||_&ye.SkipSelf)&&(-1!==(ve=-1===oe?Os(c,f):f[oe+8])&&ii(_,!1)?(ee=f[1],oe=Si(ve),f=Go(ve,f)):oe=-1);-1!==oe;){var rt=f[1];if(sM(I,oe,rt.data)){var pt=_s(oe,f,p,ee,_,He);if(pt!==yu)return pt}-1!==(ve=f[oe+8])&&ii(_,f[1].data[oe+8]===He)&&sM(I,oe,f)?(ee=rt,oe=Si(ve),f=Go(ve,f)):oe=-1}}return w}function _s(c,f,p,_,w,I){var V=f[1],ee=V.data[c+8],He=Dv(ee,V,p,null==_?qi(ee)&&Xu:_!=V&&0!=(3&ee.type),w&ye.Host&&I===ee);return null!==He?Av(f,V,He,ee):yu}function Dv(c,f,p,_,w){for(var I=c.providerIndexes,V=f.data,ee=1048575&I,oe=c.directiveStart,ve=c.directiveEnd,He=I>>20,pt=w?ee+He:ve,wt=_?ee:ee+He;wt<pt;wt++){var en=V[wt];if(wt<oe&&p===en||wt>=oe&&en.type===p)return wt}if(w){var _n=V[oe];if(_n&&Jt(_n)&&_n.type===p)return oe}return null}function Av(c,f,p,_){var w=c[p],I=f.data;if(function Fe(c){return c instanceof he}(w)){var V=w;V.resolving&&function je(c,f){var p=f?". Dependency path: ".concat(f.join(" > ")," > ").concat(c):"";throw new de(-200,"Circular dependency in DI detected for ".concat(c).concat(p))}(me(I[p]));var ee=$u(V.canSeeViewProviders);V.resolving=!0;var oe=V.injectImpl?st(V.injectImpl):null;Cd(c,_,ye.Default);try{w=c[p]=V.factory(void 0,I,c,_),f.firstCreatePass&&p>=_.directiveStart&&function Ir(c,f,p){var _=f.type.prototype,w=_.ngOnChanges,I=_.ngOnInit,V=_.ngDoCheck;if(w){var ee=dl(f);(p.preOrderHooks||(p.preOrderHooks=[])).push(c,ee),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,ee)}I&&(p.preOrderHooks||(p.preOrderHooks=[])).push(0-c,I),V&&((p.preOrderHooks||(p.preOrderHooks=[])).push(c,V),(p.preOrderCheckHooks||(p.preOrderCheckHooks=[])).push(c,V))}(p,I[p],f)}finally{null!==oe&&st(oe),$u(ee),V.resolving=!1,Ue()}}return w}function sM(c,f,p){var _=1<<c;return!!(p[f+(c>>5)]&_)}function ii(c,f){return!(c&ye.Self||c&ye.Host&&f)}var Jn=function(){function c(f,p){(0,v.Z)(this,c),this._tNode=f,this._lView=p}return(0,L.Z)(c,[{key:"get",value:function(p,_,w){return aM(this._tNode,this._lView,p,w,_)}}]),c}();function e5(){return new Jn(Me(),An())}function Is(c){return jt(function(){for(var f=c.prototype.constructor,p=f[qe]||r_(f),_=Object.prototype,w=Object.getPrototypeOf(c.prototype).constructor;w&&w!==_;){var I=w[qe]||r_(w);if(I&&I!==p)return I;w=Object.getPrototypeOf(w)}return function(V){return new V}})}function r_(c){return be(c)?function(){var f=r_(ne(c));return f&&f()}:oo(c)}function di(c,f,p,_,w){for(var I=c,V=f;null!==I&&null!==V&&1024&V[2]&&!(256&V[2]);){var ee=Of(I,V,p,_|ye.Self,yu);if(ee!==yu)return ee;var oe=I.parent;if(!oe){var ve=V[21];if(ve){var He=ve.get(p,yu,_);if(He!==yu)return He}oe=Qs(V),V=V[15]}I=oe}return w}function Qs(c){var f=c[1],p=f.type;return 2===p?f.declTNode:1===p?c[6]:null}function lM(c){return function oM(c,f){if("class"===f)return c.classes;if("style"===f)return c.styles;var p=c.attrs;if(p)for(var _=p.length,w=0;w<_;){var I=p[w];if(Ao(I))break;if(0===I)w+=2;else if("number"==typeof I)for(w++;w<_&&"string"==typeof p[w];)w++;else{if(I===f)return p[w+1];w+=2}}return null}(Me(),c)}var uh="__annotations__",aa="__parameters__",wd="__prop__metadata__";function ch(c,f,p,_,w){return jt(function(){var I=rn(f);function V(){for(var ee=arguments.length,oe=new Array(ee),ve=0;ve<ee;ve++)oe[ve]=arguments[ve];if(this instanceof V)return I.call.apply(I,[this].concat(oe)),this;var He=(0,j.Z)(V,oe);return function(pt){return w&&w.apply(void 0,[pt].concat(oe)),(pt.hasOwnProperty(uh)?pt[uh]:Object.defineProperty(pt,uh,{value:[]})[uh]).push(He),_&&_(pt),pt}}return p&&(V.prototype=Object.create(p.prototype)),V.prototype.ngMetadataName=c,V.annotationCls=V,V})}function rn(c){return function(){if(c){var p=c.apply(void 0,arguments);for(var _ in p)this[_]=p[_]}}}function dh(c,f,p){return jt(function(){var _=rn(f);function w(){for(var I=arguments.length,V=new Array(I),ee=0;ee<I;ee++)V[ee]=arguments[ee];if(this instanceof w)return _.apply(this,V),this;var oe=(0,j.Z)(w,V);return ve.annotation=oe,ve;function ve(He,rt,pt){for(var wt=He.hasOwnProperty(aa)?He[aa]:Object.defineProperty(He,aa,{value:[]})[aa];wt.length<=pt;)wt.push(null);return(wt[pt]=wt[pt]||[]).push(oe),He}}return p&&(w.prototype=Object.create(p.prototype)),w.prototype.ngMetadataName=c,w.annotationCls=w,w})}function Oc(c,f,p,_){return jt(function(){var w=rn(f);function I(){for(var V=arguments.length,ee=new Array(V),oe=0;oe<V;oe++)ee[oe]=arguments[oe];if(this instanceof I)return w.apply(this,ee),this;var ve=(0,j.Z)(I,ee);function He(rt,pt){var wt=rt.constructor,en=wt.hasOwnProperty(wd)?wt[wd]:Object.defineProperty(wt,wd,{value:{}})[wd];en[pt]=en.hasOwnProperty(pt)&&en[pt]||[],en[pt].unshift(ve),_&&_.apply(void 0,[rt,pt].concat(ee))}return He}return p&&(I.prototype=Object.create(p.prototype)),I.prototype.ngMetadataName=c,I.annotationCls=I,I})}var fh,Fa,ZP,uM=dh("Attribute",function(c){return{attributeName:c,__NG_ELEMENT_ID__:function(){return lM(c)}}}),ho=function(){function c(f,p){(0,v.Z)(this,c),this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof p?this.__NG_ELEMENT_ID__=p:void 0!==p&&(this.\u0275prov=ge({token:this,providedIn:p.providedIn||"root",factory:p.factory}))}return(0,L.Z)(c,[{key:"multi",get:function(){return this}},{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),c}(),Ov=(new ho("AnalyzeForEntryComponents"),(0,L.Z)(function c(){(0,v.Z)(this,c)})),PP=Oc("ContentChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:true},f)},Ov),t5=Oc("ContentChild",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!0,isViewQuery:!1,descendants:!0},f)},Ov),RP=Oc("ViewChildren",function(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:c,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:true},f)},Ov),LP=Oc("ViewChild",function(c,f){return Object.assign({selector:c,first:!0,isViewQuery:!0,descendants:!0},f)},Ov);function Ma(c){var f=hn.ng;if(f&&f.\u0275compilerFacade)return f.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}!function(c){c[c.Directive=0]="Directive",c[c.Component=1]="Component",c[c.Injectable=2]="Injectable",c[c.Pipe=3]="Pipe",c[c.NgModule=4]="NgModule"}(fh||(fh={})),function(c){c[c.Directive=0]="Directive",c[c.Pipe=1]="Pipe",c[c.NgModule=2]="NgModule"}(Fa||(Fa={})),function(c){c[c.Emulated=0]="Emulated",c[c.None=2]="None",c[c.ShadowDom=3]="ShadowDom"}(ZP||(ZP={}));var Qt=Function;function Le(c){return"function"==typeof c}function Gl(c,f){void 0===f&&(f=c);for(var p=0;p<c.length;p++){var _=c[p];Array.isArray(_)?(f===c&&(f=c.slice(0,p)),Gl(_,f)):f!==c&&f.push(_)}return f}function kd(c,f){c.forEach(function(p){return Array.isArray(p)?kd(p,f):f(p)})}function Iv(c,f,p){f>=c.length?c.push(p):c.splice(f,0,p)}function dC(c,f){return f>=c.length-1?c.pop():c.splice(f,1)[0]}function Td(c,f){for(var p=[],_=0;_<c;_++)p.push(f);return p}function Ua(c,f,p){var _=Md(c,f);return _>=0?c[1|_]=p:function cM(c,f,p,_){var w=c.length;if(w==f)c.push(p,_);else if(1===w)c.push(_,c[0]),c[0]=p;else{for(w--,c.push(c[w-1],c[w]);w>f;){var I=w-2;c[w]=c[I],w--}c[f]=p,c[f+1]=_}}(c,_=~_,f,p),_}function fC(c,f){var p=Md(c,f);if(p>=0)return c[1|p]}function Md(c,f){return dM(c,f,1)}function dM(c,f,p){for(var _=0,w=c.length>>p;w!==_;){var I=_+(w-_>>1),V=c[I<<p];if(f===V)return I<<p;V>f?w=I:_=I+1}return~(w<<p)}var a5=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,s5=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,FP=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,l5=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;var UP=function(){function c(f){(0,v.Z)(this,c),this._reflect=f||hn.Reflect}return(0,L.Z)(c,[{key:"factory",value:function(p){return function(){for(var _=arguments.length,w=new Array(_),I=0;I<_;I++)w[I]=arguments[I];return(0,j.Z)(p,w)}}},{key:"_zipTypesAndAnnotations",value:function(p,_){var w;w=Td(void 0===p?_.length:p.length);for(var I=0;I<w.length;I++)void 0===p?w[I]=[]:p[I]&&p[I]!=Object?w[I]=[p[I]]:w[I]=[],_&&null!=_[I]&&(w[I]=w[I].concat(_[I]));return w}},{key:"_ownParameters",value:function(p,_){if(function u5(c){return a5.test(c)||l5.test(c)||s5.test(c)&&!FP.test(c)}(p.toString()))return null;if(p.parameters&&p.parameters!==_.parameters)return p.parameters;var I=p.ctorParameters;if(I&&I!==_.ctorParameters){var V="function"==typeof I?I():I,ee=V.map(function(rt){return rt&&rt.type}),oe=V.map(function(rt){return rt&&Ja(rt.decorators)});return this._zipTypesAndAnnotations(ee,oe)}var ve=p.hasOwnProperty(aa)&&p[aa],He=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",p);return He||ve?this._zipTypesAndAnnotations(He,ve):Td(p.length)}},{key:"parameters",value:function(p){if(!Le(p))return[];var _=gl(p),w=this._ownParameters(p,_);return!w&&_!==Object&&(w=this.parameters(_)),w||[]}},{key:"_ownAnnotations",value:function(p,_){if(p.annotations&&p.annotations!==_.annotations){var w=p.annotations;return"function"==typeof w&&w.annotations&&(w=w.annotations),w}return p.decorators&&p.decorators!==_.decorators?Ja(p.decorators):p.hasOwnProperty(uh)?p[uh]:null}},{key:"annotations",value:function(p){if(!Le(p))return[];var _=gl(p),w=this._ownAnnotations(p,_)||[];return(_!==Object?this.annotations(_):[]).concat(w)}},{key:"_ownPropMetadata",value:function(p,_){if(p.propMetadata&&p.propMetadata!==_.propMetadata){var w=p.propMetadata;return"function"==typeof w&&w.propMetadata&&(w=w.propMetadata),w}if(p.propDecorators&&p.propDecorators!==_.propDecorators){var I=p.propDecorators,V={};return Object.keys(I).forEach(function(ee){V[ee]=Ja(I[ee])}),V}return p.hasOwnProperty(wd)?p[wd]:null}},{key:"propMetadata",value:function(p){if(!Le(p))return{};var _=gl(p),w={};if(_!==Object){var I=this.propMetadata(_);Object.keys(I).forEach(function(ee){w[ee]=I[ee]})}var V=this._ownPropMetadata(p,_);return V&&Object.keys(V).forEach(function(ee){var oe=[];w.hasOwnProperty(ee)&&oe.push.apply(oe,(0,D.Z)(w[ee])),oe.push.apply(oe,(0,D.Z)(V[ee])),w[ee]=oe}),w}},{key:"ownPropMetadata",value:function(p){return Le(p)&&this._ownPropMetadata(p,gl(p))||{}}},{key:"hasLifecycleHook",value:function(p,_){return p instanceof Qt&&_ in p.prototype}}]),c}();function Ja(c){return c?c.map(function(f){var _=f.type.annotationCls,w=f.args?f.args:[];return(0,j.Z)(_,(0,D.Z)(w))}):[]}function gl(c){var f=c.prototype?Object.getPrototypeOf(c.prototype):null;return(f?f.constructor:null)||Object}var zl={},pC="__NG_DI_FLAG__",If="ngTempTokenPath",ph=/\n/gm,pM="__source",Pv=void 0;function i_(c){var f=Pv;return Pv=c,f}function c5(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;if(void 0===Pv)throw new de(-203,!1);return null===Pv?ct(c,void 0,f):Pv.get(c,f&ye.Optional?null:void 0,f)}function fa(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return(Ne()||c5)(ne(c),f)}function jP(c){throw new de(202,!1)}function GP(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default;return"number"!=typeof f&&(f=0|(f.optional&&8)|(f.host&&1)|(f.self&&2)|(f.skipSelf&&4)),fa(c,f)}function hM(c){for(var f=[],p=0;p<c.length;p++){var _=ne(c[p]);if(Array.isArray(_)){if(0===_.length)throw new de(900,!1);for(var w=void 0,I=ye.Default,V=0;V<_.length;V++){var ee=_[V],oe=mM(ee);"number"==typeof oe?-1===oe?w=ee.token:I|=oe:w=ee}f.push(fa(w,I))}else f.push(fa(_))}return f}function Pf(c,f){return c[pC]=f,c.prototype[pC]=f,c}function mM(c){return c[pC]}function _M(c,f,p,_){var w=c[If];throw f[pM]&&w.unshift(f[pM]),c.message=function zP(c,f,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c=c&&"\n"===c.charAt(0)&&"\u0275"==c.charAt(1)?c.slice(2):c;var w=X(f);if(Array.isArray(f))w=f.map(X).join(" -> ");else if("object"==typeof f){var I=[];for(var V in f)if(f.hasOwnProperty(V)){var ee=f[V];I.push(V+":"+("string"==typeof ee?JSON.stringify(ee):X(ee)))}w="{".concat(I.join(", "),"}")}return"".concat(p).concat(_?"("+_+")":"","[").concat(w,"]: ").concat(c.replace(ph,"\n "))}("\n"+c.message,w,p,_),c.ngTokenPath=w,c[If]=null,c}var Rv=Pf(dh("Inject",function(c){return{token:c}}),-1),Rf=Pf(dh("Optional"),8),hh=Pf(dh("Self"),2),o_=Pf(dh("SkipSelf"),4),gM=Pf(dh("Host"),1),WP=null;function a_(){return WP=WP||new UP}function vM(c){return d5(a_().parameters(c))}function d5(c){return c.map(function(f){return function tV(c){var f={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(c)&&c.length>0)for(var p=0;p<c.length;p++){var _=c[p];if(void 0!==_){var w=Object.getPrototypeOf(_);if(_ instanceof Rf||"Optional"===w.ngMetadataName)f.optional=!0;else if(_ instanceof o_||"SkipSelf"===w.ngMetadataName)f.skipSelf=!0;else if(_ instanceof hh||"Self"===w.ngMetadataName)f.self=!0;else if(_ instanceof gM||"Host"===w.ngMetadataName)f.host=!0;else if(_ instanceof Rv)f.token=_.token;else if(_ instanceof uM){if(void 0===_.attributeName)throw new de(204,!1);f.attribute=_.attributeName}else f.token=_}}else void 0===c||Array.isArray(c)&&0===c.length?f.token=null:f.token=c;return f}(f)})}var Lv=new Map,bu=new Set;function yM(c){return!!(c.templateUrl&&!c.hasOwnProperty("template")||c.styleUrls&&c.styleUrls.length)}var gC=new Map,YP=!0;function h5(c,f){(function iV(c,f,p){if(f&&f!==p&&YP)throw new Error("Duplicate module registered for ".concat(c," - ").concat(X(f)," vs ").concat(X(f.name)))})(f,gC.get(f)||null,c),gC.set(f,c)}var Zv;!function(c){c[c.Important=1]="Important",c[c.DashCase=2]="DashCase"}(Zv||(Zv={}));var y5=/^>|^->|<!--|-->|--!>|<!-$/g,b5=/(<|>)/;function vC(c){return c.replace(y5,function(f){return f.replace(b5,"\u200b$1\u200b")})}var wM=new Map,C5=0;var MM,kM="__ngContext__";function Ps(c,f){Wi(f)?(c[kM]=f[20],function XP(c){wM.set(c[20],c)}(f)):c[kM]=f}function SM(c,f){return MM(c,f)}function Uv(c){var f=c[3];return Ui(f)?f[3]:f}function _h(c){return Hv(c[13])}function vl(c){return Hv(c[4])}function Hv(c){for(;null!==c&&!Ui(c);)c=c[4];return c}function Lf(c,f,p,_,w){if(null!=_){var I,V=!1;Ui(_)?I=_:Wi(_)&&(V=!0,_=_[0]);var ee=so(_);0===c&&null!==p?null==w?TC(f,p,ee):Nf(f,p,ee,w||null,!0):1===c&&null!==p?Nf(f,p,ee,w||null,!0):2===c?Bf(f,ee,V):3===c&&f.destroyNode(ee),null!=I&&function h_(c,f,p,_,w){var I=p[7],V=so(p);I!==V&&Lf(f,c,_,I,w);for(var ee=10;ee<p.length;ee++){var oe=p[ee];ku(oe[1],oe,c,f,_,I)}}(f,c,I,p,w)}}function xM(c,f){return c.createText(f)}function Sa(c,f,p){c.setValue(f,p)}function cV(c,f){return c.createComment(vC(f))}function Sd(c,f,p){return c.createElement(f,p)}function a3(c,f,p,_){var w=10+_,I=p.length;_>0&&(p[w-1][4]=f),_<I-10?(f[4]=p[w],Iv(p,10+_,f)):(p.push(f),f[4]=null),f[3]=p;var V=f[17];null!==V&&p!==V&&function S5(c,f){var p=c[9],w=f[3][3][16];f[16]!==w&&(c[2]=!0),null===p?c[9]=[f]:p.push(f)}(V,f);var ee=f[19];null!==ee&&ee.insertView(c),f[2]|=64}function s3(c,f){var p=c[9],_=p.indexOf(f),w=f[3];512&f[2]&&(f[2]&=-513,ds(w,-1)),p.splice(_,1)}function kC(c,f){if(!(c.length<=10)){var p=10+f,_=c[p];if(_){var w=_[17];null!==w&&w!==c&&s3(w,_),f>0&&(c[p-1][4]=_[4]);var I=dC(c,10+f);!function wC(c,f){ku(c,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);var V=I[19];null!==V&&V.detachView(I[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}}function wu(c,f){if(!(128&f[2])){var p=f[11];p.destroyNode&&ku(c,f,p,3,null,null),function o3(c){var f=c[13];if(!f)return Rs(c[1],c);for(;f;){var p=null;if(Wi(f))p=f[13];else{var _=f[10];_&&(p=_)}if(!p){for(;f&&!f[4]&&f!==c;)Wi(f)&&Rs(f[1],f),f=f[3];null===f&&(f=c),Wi(f)&&Rs(f[1],f),p=f&&f[4]}f=p}}(f)}}function Rs(c,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function DM(c,f){var p;if(null!=c&&null!=(p=c.destroyHooks))for(var _=0;_<p.length;_+=2){var w=f[p[_]];if(!(w instanceof he)){var I=p[_+1];if(Array.isArray(I))for(var V=0;V<I.length;V+=2){var ee=w[I[V]],oe=I[V+1];Yi(4,ee,oe);try{oe.call(ee)}finally{Yi(5,ee,oe)}}else{Yi(4,w,I);try{I.call(w)}finally{Yi(5,w,I)}}}}}(c,f),function E5(c,f){var p=c.cleanup,_=f[7],w=-1;if(null!==p)for(var I=0;I<p.length-1;I+=2)if("string"==typeof p[I]){var V=p[I+1],ee="function"==typeof V?V(f):so(f[V]),oe=_[w=p[I+2]],ve=p[I+3];"boolean"==typeof ve?ee.removeEventListener(p[I],oe,ve):ve>=0?_[w=ve]():_[w=-ve].unsubscribe(),I+=2}else{var He=_[w=p[I+1]];p[I].call(He)}if(null!==_){for(var rt=w+1;rt<_.length;rt++){(0,_[rt])()}f[7]=null}}(c,f),1===f[1].type&&f[11].destroy();var p=f[17];if(null!==p&&Ui(f[3])){p!==f[3]&&s3(p,f);var _=f[19];null!==_&&_.detachView(c)}!function yC(c){wM.delete(c[20])}(f)}}function Zf(c,f,p){return AM(c,f.parent,p)}function AM(c,f,p){for(var _=f;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return p[0];if(2&_.flags){var w=c.data[_.directiveStart].encapsulation;if(w===En.None||w===En.Emulated)return null}return vo(_,p)}function Nf(c,f,p,_,w){c.insertBefore(f,p,_,w)}function TC(c,f,p){c.appendChild(f,p)}function OM(c,f,p,_,w){null!==_?Nf(c,f,p,_,w):TC(c,f,p)}function jv(c,f){return c.parentNode(f)}function u3(c,f,p){return c_(c,f,p)}function Gv(c,f,p){return 40&c.type?vo(c,p):null}var d_,EC,c_=Gv;function f_(c,f){c_=c,d_=f}function SC(c,f,p,_){var w=Zf(c,_,f),I=f[11],ee=u3(_.parent||f[6],_,f);if(null!=w)if(Array.isArray(p))for(var oe=0;oe<p.length;oe++)OM(I,w,p[oe],ee,!1);else OM(I,w,p,ee,!1);void 0!==d_&&d_(I,_,f,p,w)}function zv(c,f){if(null!==f){var p=f.type;if(3&p)return vo(f,c);if(4&p)return p_(-1,c[f.index]);if(8&p){var _=f.child;if(null!==_)return zv(c,_);var w=c[f.index];return Ui(w)?p_(-1,w):so(w)}if(32&p)return SM(f,c)()||so(c[f.index]);var ee=Ic(c,f);return null!==ee?Array.isArray(ee)?ee[0]:zv(Uv(c[16]),ee):zv(c,f.next)}return null}function Ic(c,f){if(null!==f){var _=c[16][6],w=f.projection;return _.projection[w]}return null}function p_(c,f){var p=10+c+1;if(p<f.length){var _=f[p],w=_[1].firstChild;if(null!==w)return zv(_,w)}return f[7]}function Bf(c,f,p){var _=jv(c,f);_&&function IM(c,f,p,_){c.removeChild(f,p,_)}(c,_,f,p)}function nc(c,f,p,_,w,I,V){for(;null!=p;){var ee=_[p.index],oe=p.type;if(V&&0===f&&(ee&&Ps(so(ee),_),p.flags|=4),64!=(64&p.flags))if(8&oe)nc(c,f,p.child,_,w,I,!1),Lf(f,c,w,ee,I);else if(32&oe){for(var ve=SM(p,_),He=void 0;He=ve();)Lf(f,c,w,He,I);Lf(f,c,w,ee,I)}else 16&oe?gh(c,f,_,p,w,I):Lf(f,c,w,ee,I);p=V?p.projectionNext:p.next}}function ku(c,f,p,_,w,I){nc(p,_,c.firstChild,f,w,I,!1)}function Ed(c,f,p){gh(f[11],0,f,p,Zf(c,p,f),u3(p.parent||f[6],p,f))}function gh(c,f,p,_,w,I){var V=p[16],oe=V[6].projection[_.projection];if(Array.isArray(oe))for(var ve=0;ve<oe.length;ve++){Lf(f,c,w,oe[ve],I)}else nc(c,f,oe,V[3],w,I,!0)}function PM(c,f,p){c.setAttribute(f,"style",p)}function Wv(c,f,p){""===p?c.removeAttribute(f,"class"):c.setAttribute(f,"class",p)}function xC(){if(void 0===EC&&(EC=null,hn.trustedTypes))try{EC=hn.trustedTypes.createPolicy("angular",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return EC}function Tu(c){var f;return(null===(f=xC())||void 0===f?void 0:f.createHTML(c))||c}function DC(c,f,p){var _=An(),w=Wt(),I=vo(w,_);if(2===w.type&&"iframe"===f.toLowerCase()){var V=I;V.src="",V.srcdoc=Tu(""),Bf(_[11],V);throw new de(-910,!1)}return c}var AC,vh=void 0;function RM(c){vh=c}function m_(){return void 0!==vh?vh:"undefined"!=typeof document?document:void 0}function Vv(){if(void 0===AC&&(AC=null,hn.trustedTypes))try{AC=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(f){return f},createScript:function(f){return f},createScriptURL:function(f){return f}})}catch(c){}return AC}function Uf(c){var f;return(null===(f=Vv())||void 0===f?void 0:f.createHTML(c))||c}function c3(c){var f;return(null===(f=Vv())||void 0===f?void 0:f.createScript(c))||c}function d3(c){var f;return(null===(f=Vv())||void 0===f?void 0:f.createScriptURL(c))||c}var xd=function(){function c(f){(0,v.Z)(this,c),this.changingThisBreaksApplicationSecurity=f}return(0,L.Z)(c,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),c}(),f3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"HTML"}}]),p}(xd),p3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"Style"}}]),p}(xd),h3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"Script"}}]),p}(xd),m3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"URL"}}]),p}(xd),_3=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),p}(xd);function Pc(c){return c instanceof xd?c.changingThisBreaksApplicationSecurity:c}function Rc(c,f){var p=function Hf(c){return c instanceof xd&&c.getTypeName()||null}(c);if(null!=p&&p!==f){if("ResourceURL"===p&&"URL"===f)return!0;throw new Error("Required a safe ".concat(f,", got a ").concat(p," (see https://g.co/ng/security#xss)"))}return p===f}function g3(c){return new f3(c)}function Lc(c){return new p3(c)}function v3(c){return new h3(c)}function fV(c){return new m3(c)}function pV(c){return new _3(c)}function A5(c){var f=new LM(c);return function jf(){try{return!!(new window.DOMParser).parseFromString(Tu(""),"text/html")}catch(c){return!1}}()?new O5(f):f}var O5=function(){function c(f){(0,v.Z)(this,c),this.inertDocumentHelper=f}return(0,L.Z)(c,[{key:"getInertBodyElement",value:function(p){p="<body><remove></remove>"+p;try{var _=(new window.DOMParser).parseFromString(Tu(p),"text/html").body;return null===_?this.inertDocumentHelper.getInertBodyElement(p):(_.removeChild(_.firstChild),_)}catch(w){return null}}}]),c}(),LM=function(){function c(f){if((0,v.Z)(this,c),this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var p=this.inertDocument.createElement("html");this.inertDocument.appendChild(p);var _=this.inertDocument.createElement("body");p.appendChild(_)}}return(0,L.Z)(c,[{key:"getInertBodyElement",value:function(p){var _=this.inertDocument.createElement("template");if("content"in _)return _.innerHTML=Tu(p),_;var w=this.inertDocument.createElement("body");return w.innerHTML=Tu(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(w),w}},{key:"stripCustomNsAttrs",value:function(p){for(var _=p.attributes,w=_.length-1;0<w;w--){var V=_.item(w).name;("xmlns:ns1"===V||0===V.indexOf("ns1:"))&&p.removeAttribute(V)}for(var ee=p.firstChild;ee;)ee.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(ee),ee=ee.nextSibling}}]),c}();var ZM=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function OC(c){return(c=String(c)).match(ZM)?c:"unsafe:"+c}function Zc(c){var _,f={},p=(0,E.Z)(c.split(","));try{for(p.s();!(_=p.n()).done;){f[_.value]=!0}}catch(I){p.e(I)}finally{p.f()}return f}function __(){for(var c={},f=arguments.length,p=new Array(f),_=0;_<f;_++)p[_]=arguments[_];for(var w=0,I=p;w<I.length;w++){var V=I[w];for(var ee in V)V.hasOwnProperty(ee)&&(c[ee]=!0)}return c}var LC,Ad,IC=Zc("area,br,col,hr,img,wbr"),g_=Zc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),PC=Zc("rp,rt"),Qa=__(PC,g_),Dd=__(g_,Zc("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")),Yv=__(PC,Zc("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")),NM=__(IC,Dd,Yv,Qa),BM=Zc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),I5=Zc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),v_=Zc("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"),FM=__(BM,I5,v_),P5=Zc("script,style,template"),RC=function(){function c(){(0,v.Z)(this,c),this.sanitizedSomething=!1,this.buf=[]}return(0,L.Z)(c,[{key:"sanitizeChildren",value:function(p){for(var _=p.firstChild,w=!0;_;)if(_.nodeType===Node.ELEMENT_NODE?w=this.startElement(_):_.nodeType===Node.TEXT_NODE?this.chars(_.nodeValue):this.sanitizedSomething=!0,w&&_.firstChild)_=_.firstChild;else for(;_;){_.nodeType===Node.ELEMENT_NODE&&this.endElement(_);var I=this.checkClobberedElement(_,_.nextSibling);if(I){_=I;break}_=this.checkClobberedElement(_,_.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(p){var _=p.nodeName.toLowerCase();if(!NM.hasOwnProperty(_))return this.sanitizedSomething=!0,!P5.hasOwnProperty(_);this.buf.push("<"),this.buf.push(_);for(var w=p.attributes,I=0;I<w.length;I++){var V=w.item(I),ee=V.name,oe=ee.toLowerCase();if(FM.hasOwnProperty(oe)){var ve=V.value;BM[oe]&&(ve=OC(ve)),this.buf.push(" ",ee,'="',UM(ve),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(p){var _=p.nodeName.toLowerCase();NM.hasOwnProperty(_)&&!IC.hasOwnProperty(_)&&(this.buf.push("</"),this.buf.push(_),this.buf.push(">"))}},{key:"chars",value:function(p){this.buf.push(UM(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}(),R5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,L5=/([^\#-~ |!])/g;function UM(c){return c.replace(/&/g,"&").replace(R5,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(L5,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function y3(c,f){var p=null;try{LC=LC||A5(c);var _=f?String(f):"";p=LC.getInertBodyElement(_);var w=5,I=_;do{if(0===w)throw new Error("Failed to sanitize html because the input is unstable");w--,_=I,I=p.innerHTML,p=LC.getInertBodyElement(_)}while(_!==I);return Tu((new RC).sanitizeChildren(HM(p)||p))}finally{if(p)for(var oe=HM(p)||p;oe.firstChild;)oe.removeChild(oe.firstChild)}}function HM(c){return"content"in c&&function b3(c){return c.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===c.nodeName}(c)?c.content:null}function C3(c){var f=bh();return f?Uf(f.sanitize(Ad.HTML,c)||""):Rc(c,"HTML")?Uf(Pc(c)):y3(m_(),ce(c))}function y_(c){var f=bh();return f?f.sanitize(Ad.STYLE,c)||"":Rc(c,"Style")?Pc(c):ce(c)}function jM(c){var f=bh();return f?f.sanitize(Ad.URL,c)||"":Rc(c,"URL")?Pc(c):OC(ce(c))}function w3(c){var f=bh();if(f)return d3(f.sanitize(Ad.RESOURCE_URL,c)||"");if(Rc(c,"ResourceURL"))return d3(Pc(c));throw new de(904,!1)}function k3(c){var f=bh();if(f)return c3(f.sanitize(Ad.SCRIPT,c)||"");if(Rc(c,"Script"))return c3(Pc(c));throw new de(905,!1)}function Z5(c){return Tu(c[0])}function GM(c){return function D5(c){var f;return(null===(f=xC())||void 0===f?void 0:f.createScriptURL(c))||c}(c[0])}function T3(c,f,p){return function N5(c,f){return"src"===f&&("embed"===c||"frame"===c||"iframe"===c||"media"===c||"script"===c)||"href"===f&&("base"===c||"link"===c)?w3:jM}(f,p)(c)}function bh(){var c=An();return c&&c[12]}!function(c){c[c.NONE=0]="NONE",c[c.HTML=1]="HTML",c[c.STYLE=2]="STYLE",c[c.SCRIPT=3]="SCRIPT",c[c.URL=4]="URL",c[c.RESOURCE_URL=5]="RESOURCE_URL"}(Ad||(Ad={}));var Ch=new ho("ENVIRONMENT_INITIALIZER"),Ha=new ho("INJECTOR",-1),Kv=new ho("INJECTOR_DEF_TYPES"),Wl=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;if(_===zl){var w=new Error("NullInjectorError: No provider for ".concat(X(p),"!"));throw w.name="NullInjectorError",w}return _}}]),c}();function qv(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];return{"\u0275providers":ZC(!0,f)}}function ZC(c){for(var _,f=[],p=new Set,w=arguments.length,I=new Array(w>1?w-1:0),V=1;V<w;V++)I[V-1]=arguments[V];return kd(I,function(ee){var ve=ee;Jv(ve,f,[],p)&&(_||(_=[]),_.push(ve))}),void 0!==_&&NC(_,f),f}function NC(c,f){for(var p=function(){var I=c[_];I.ngModule;kd(I.providers,function(oe){f.push(oe)})},_=0;_<c.length;_++)p()}function Jv(c,f,p,_){if(!(c=ne(c)))return!1;var w=null,I=Kt(c),V=!I&&Wn(c);if(I||V){if(V&&!V.standalone)return!1;w=c}else{var ee=c.ngModule;if(!(I=Kt(ee)))return!1;w=ee}var He=_.has(w);if(V){if(He)return!1;if(_.add(w),V.dependencies){var wt,rt="function"==typeof V.dependencies?V.dependencies():V.dependencies,pt=(0,E.Z)(rt);try{for(pt.s();!(wt=pt.n()).done;){Jv(wt.value,f,p,_)}}catch(wn){pt.e(wn)}finally{pt.f()}}}else{if(!I)return!1;if(null!=I.imports&&!He){var _n;_.add(w);try{kd(I.imports,function(wn){Jv(wn,f,p,_)&&(_n||(_n=[]),_n.push(wn))})}finally{}void 0!==_n&&NC(_n,f)}if(!He){var Un=oo(w)||function(){return new w};f.push({provide:w,useFactory:Un,deps:et},{provide:Kv,useValue:w,multi:!0},{provide:Ch,useValue:function(){return fa(w)},multi:!0})}var Qn=I.providers;if(null!=Qn&&!He){kd(Qn,function(wn){f.push(wn)})}}return w!==c&&void 0!==c.providers}var zM=N({provide:String,useValue:N});function Qv(c){return null!==c&&"object"==typeof c&&zM in c}function Xv(c){return!(!c||!c.useExisting)}function $v(c){return!(!c||!c.useFactory)}function Od(c){return"function"==typeof c}var Xs=new ho("Set Injector scope."),kh={},WM={},gs=void 0;function Vl(){return void 0===gs&&(gs=new Wl),gs}var Mu=(0,L.Z)(function c(){(0,v.Z)(this,c)}),FC=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I,V){var ee;(0,v.Z)(this,p),(ee=f.call(this)).parent=w,ee.source=I,ee.scopes=V,ee.records=new Map,ee._ngOnDestroyHooks=new Set,ee._onDestroyHooks=[],ee._destroyed=!1,YM(_,function(ve){return ee.processProvider(ve)}),ee.records.set(Ha,Yl(void 0,(0,P.Z)(ee))),V.has("environment")&&ee.records.set(Mu,Yl(void 0,(0,P.Z)(ee)));var oe=ee.records.get(Xs);return null!=oe&&"string"==typeof oe.value&&ee.scopes.add(oe.value),ee.injectorDefTypes=new Set(ee.get(Kv.multi,et,ye.Self)),ee}return(0,L.Z)(p,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{var I,w=(0,E.Z)(this._ngOnDestroyHooks);try{for(w.s();!(I=w.n()).done;){I.value.ngOnDestroy()}}catch(He){w.e(He)}finally{w.f()}var oe,ee=(0,E.Z)(this._onDestroyHooks);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}},{key:"onDestroy",value:function(w){this._onDestroyHooks.push(w)}},{key:"runInContext",value:function(w){this.assertNotDestroyed();var I=i_(this),V=st(void 0);try{return w()}finally{i_(I),st(V)}}},{key:"get",value:function(w){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl,V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ye.Default;this.assertNotDestroyed();var ee=i_(this),oe=st(void 0);try{if(!(V&ye.SkipSelf)){var ve=this.records.get(w);if(void 0===ve){var He=U5(w)&&Zt(w);ve=He&&this.injectableDefInScope(He)?Yl(ey(w),kh):null,this.records.set(w,ve)}if(null!=ve)return this.hydrate(w,ve)}var rt=V&ye.Self?Vl():this.parent;return I=V&ye.Optional&&I===zl?null:I,rt.get(w,I)}catch(wt){if("NullInjectorError"===wt.name){var pt=wt[If]=wt[If]||[];if(pt.unshift(X(w)),ee)throw wt;return _M(wt,w,"R3InjectorError",this.source)}throw wt}finally{st(oe),i_(ee)}}},{key:"resolveInjectorInitializers",value:function(){var w=i_(this),I=st(void 0);try{var oe,V=this.get(Ch.multi,et,ye.Self),ee=(0,E.Z)(V);try{for(ee.s();!(oe=ee.n()).done;){(0,oe.value)()}}catch(He){ee.e(He)}finally{ee.f()}}finally{i_(w),st(I)}}},{key:"toString",value:function(){var ee,w=[],I=this.records,V=(0,E.Z)(I.keys());try{for(V.s();!(ee=V.n()).done;){var oe=ee.value;w.push(X(oe))}}catch(ve){V.e(ve)}finally{V.f()}return"R3Injector[".concat(w.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new de(205,!1)}},{key:"processProvider",value:function(w){var I=Od(w=ne(w))?w:ne(w&&w.provide),V=function UC(c){return Qv(c)?Yl(void 0,c.useValue):Yl(Su(c),kh)}(w);if(Od(w)||!0!==w.multi)this.records.get(I);else{var ee=this.records.get(I);ee||((ee=Yl(void 0,kh,!0)).factory=function(){return hM(ee.multi)},this.records.set(I,ee)),I=w,ee.multi.push(w)}this.records.set(I,V)}},{key:"hydrate",value:function(w,I){return I.value===kh&&(I.value=WM,I.value=I.factory()),"object"==typeof I.value&&I.value&&function F5(c){return null!==c&&"object"==typeof c&&"function"==typeof c.ngOnDestroy}(I.value)&&this._ngOnDestroyHooks.add(I.value),I.value}},{key:"injectableDefInScope",value:function(w){if(!w.providedIn)return!1;var I=ne(w.providedIn);return"string"==typeof I?"any"===I||this.scopes.has(I):this.injectorDefTypes.has(I)}}]),p}(Mu);function ey(c){var f=Zt(c),p=null!==f?f.factory:oo(c);if(null!==p)return p;if(c instanceof ho)throw new de(204,!1);if(c instanceof Function)return function b_(c){var f=c.length;if(f>0){Td(f,"?");throw new de(204,!1)}var _=function qt(c){var f=c&&(c[Xt]||c[Be]);if(f){var p=function yn(c){if(c.hasOwnProperty("name"))return c.name;var f=(""+c).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(c);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(p,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(p,'" class.')),f}return null}(c);return null!==_?function(){return _.factory(c)}:function(){return new c}}(c);throw new de(204,!1)}function Su(c,f,p){var _=void 0;if(Od(c)){var w=ne(c);return oo(w)||ey(w)}if(Qv(c))_=function(){return ne(c.useValue)};else if($v(c))_=function(){return c.useFactory.apply(c,(0,D.Z)(hM(c.deps||[])))};else if(Xv(c))_=function(){return fa(ne(c.useExisting))};else{var I=ne(c&&(c.useClass||c.provide));if(!function VM(c){return!!c.deps}(c))return oo(I)||ey(I);_=function(){return(0,j.Z)(I,(0,D.Z)(hM(c.deps)))}}return _}function Yl(c,f){var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:c,value:f,multi:p?[]:void 0}}function U5(c){return"function"==typeof c||"object"==typeof c&&c instanceof ho}function H5(c){return!!c.\u0275providers}function YM(c,f){var _,p=(0,E.Z)(c);try{for(p.s();!(_=p.n()).done;){var w=_.value;Array.isArray(w)?YM(w,f):H5(w)?YM(w.\u0275providers,f):f(w)}}catch(I){p.e(I)}finally{p.f()}}var KM=(0,L.Z)(function c(){(0,v.Z)(this,c)}),Gf=(0,L.Z)(function c(){(0,v.Z)(this,c)});var S3="ngComponent";var qM=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"resolveComponentFactory",value:function(p){throw function M3(c){var f=Error("No component factory found for ".concat(X(c),". Did you add it to @NgModule.entryComponents?"));return f[S3]=c,f}(p)}}]),c}(),C_=(0,L.Z)(function c(){(0,v.Z)(this,c)});function w_(c,f){return new Th(vo(c,f))}C_.NULL=new qM;var Th=(0,L.Z)(function c(f){(0,v.Z)(this,c),this.nativeElement=f});function z5(c){return c instanceof Th?c.nativeElement:c}Th.__NG_ELEMENT_ID__=function G5(){return w_(Me(),An())};new ho("Renderer2Interceptor");var E3=(0,L.Z)(function c(){(0,v.Z)(this,c)}),HC=(0,L.Z)(function c(){(0,v.Z)(this,c)});HC.__NG_ELEMENT_ID__=function(){return function x3(){var c=An(),p=po(Me().index,c);return(Wi(p)?p:c)[11]}()};var JM=(0,L.Z)(function c(){(0,v.Z)(this,c)});JM.\u0275prov=ge({token:JM,providedIn:"root",factory:function(){return null}});var Oi=(0,L.Z)(function c(f){(0,v.Z)(this,c),this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}),V5=new Oi("14.3.0"),jC={},vs="ngOriginalError";function ty(c){return c[vs]}var k_=function(){function c(){(0,v.Z)(this,c),this._console=console}return(0,L.Z)(c,[{key:"handleError",value:function(p){var _=this._findOriginalError(p);this._console.error("ERROR",p),_&&this._console.error("ORIGINAL ERROR",_)}},{key:"_findOriginalError",value:function(p){for(var _=p&&ty(p);_&&ty(_);)_=ty(_);return _||null}}]),c}();function ny(c){return c.ownerDocument.defaultView}function XM(c){return c.ownerDocument}function GC(c){return c.ownerDocument.body}function Nc(c){return c instanceof Function?c():c}function zC(c,f,p){for(var _=c.length;;){var w=c.indexOf(f,p);if(-1===w)return w;if(0===w||c.charCodeAt(w-1)<=32){var I=f.length;if(w+I===_||c.charCodeAt(w+I)<=32)return w}p=w+1}}var O3="ng-template";function Q5(c,f,p){for(var _=0;_<c.length;){var w=c[_++];if(p&&"class"===w){if(-1!==zC((w=c[_]).toLowerCase(),f,0))return!0}else if(1===w){for(;_<c.length&&"string"==typeof(w=c[_++]);)if(w.toLowerCase()===f)return!0;return!1}}return!1}function I3(c){return 4===c.type&&c.value!==O3}function Mh(c,f,p){return f===(4!==c.type||p?c.value:O3)}function P3(c,f,p){for(var _=4,w=c.attrs||[],I=function X5(c){for(var f=0;f<c.length;f++){if(Ao(c[f]))return f}return c.length}(w),V=!1,ee=0;ee<f.length;ee++){var oe=f[ee];if("number"!=typeof oe){if(!V)if(4&_){if(_=2|1&_,""!==oe&&!Mh(c,oe,p)||""===oe&&1===f.length){if(rc(_))return!1;V=!0}}else{var ve=8&_?oe:f[++ee];if(8&_&&null!==c.attrs){if(!Q5(c.attrs,ve,p)){if(rc(_))return!1;V=!0}continue}var rt=R3(8&_?"class":oe,w,I3(c),p);if(-1===rt){if(rc(_))return!1;V=!0;continue}if(""!==ve){var pt=void 0;pt=rt>I?"":w[rt+1].toLowerCase();var wt=8&_?pt:null;if(wt&&-1!==zC(wt,ve,0)||2&_&&ve!==pt){if(rc(_))return!1;V=!0}}}}else{if(!V&&!rc(_)&&!rc(oe))return!1;if(V&&rc(oe))continue;V=!1,_=oe|1&_}}return rc(_)||V}function rc(c){return 0==(1&c)}function R3(c,f,p,_){if(null===f)return-1;var w=0;if(_||!p){for(var I=!1;w<f.length;){var V=f[w];if(V===c)return w;if(3===V||6===V)I=!0;else{if(1===V||2===V){for(var ee=f[++w];"string"==typeof ee;)ee=f[++w];continue}if(4===V)break;if(0===V){w+=4;continue}}w+=I?1:2}return-1}return function $5(c,f){var p=c.indexOf(4);if(p>-1)for(p++;p<c.length;){var _=c[p];if("number"==typeof _)return-1;if(_===f)return p;p++}return-1}(f,c)}function L3(c,f){for(var p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=0;_<f.length;_++)if(P3(c,f[_],p))return!0;return!1}function e4(c,f){e:for(var p=0;p<f.length;p++){var _=f[p];if(c.length===_.length){for(var w=0;w<c.length;w++)if(c[w]!==_[w])continue e;return!0}}return!1}function Z3(c,f){return c?":not("+f.trim()+")":f}function t4(c){for(var f=c[0],p=1,_=2,w="",I=!1;p<c.length;){var V=c[p];if("string"==typeof V)if(2&_){var ee=c[++p];w+="["+V+(ee.length>0?'="'+ee+'"':"")+"]"}else 8&_?w+="."+V:4&_&&(w+=" "+V);else""!==w&&!rc(V)&&(f+=Z3(I,w),w=""),_=V,I=I||!rc(_);p++}return""!==w&&(f+=Z3(I,w)),f}var Wr={};function N3(c){B3(we(),An(),Ge()+c,!1)}function B3(c,f,p,_){if(!_)if(3==(3&f[2])){var I=c.preOrderCheckHooks;null!==I&&xf(f,I,p)}else{var V=c.preOrderHooks;null!==V&&e_(f,V,0,p)}it(p)}var F3={"\u0275\u0275defineInjectable":ge,"\u0275\u0275defineInjector":Dt,"\u0275\u0275inject":fa,"\u0275\u0275invalidFactoryDep":jP,resolveForwardRef:ne};function r4(c,f){var p=null,_=null;c.hasOwnProperty(Xt)||Object.defineProperty(c,Xt,{get:function(){if(null===p){var I=Ma();p=I.compileInjectable(F3,"ng:///".concat(c.name,"/\u0275prov.js"),function a4(c,f){var p=f||{providedIn:null},_={name:c.name,type:c,typeArgumentCount:0,providedIn:p.providedIn};return(rS(p)||iS(p))&&void 0!==p.deps&&(_.deps=d5(p.deps)),rS(p)?_.useClass=p.useClass:function i4(c){return nS in c}(p)?_.useValue=p.useValue:iS(p)?_.useFactory=p.useFactory:function o4(c){return void 0!==c.useExisting}(p)&&(_.useExisting=p.useExisting),_}(c,f))}return p}}),c.hasOwnProperty(qe)||Object.defineProperty(c,qe,{get:function(){if(null===_){var I=Ma();_=I.compileFactory(F3,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,typeArgumentCount:0,deps:vM(c),target:I.FactoryTarget.Injectable})}return _},configurable:!0})}var nS=N({provide:String,useValue:N});function rS(c){return void 0!==c.useClass}function iS(c){return void 0!==c.useFactory}var s4=ch("Injectable",void 0,void 0,void 0,function(c,f){return r4(c,f)});function oS(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,w=aS(c,f,p,_);return w.resolveInjectorInitializers(),w}function aS(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=arguments.length>3?arguments[3]:void 0,w=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new Set,I=[p||et,qv(c)];return _=_||("object"==typeof c?void 0:X(c)),new FC(I,f||Vl(),_||null,w)}var Kl=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"create",value:function(p,_){var w;if(Array.isArray(p))return oS({name:""},_,p,"");var I=null!==(w=p.name)&&void 0!==w?w:"";return oS({name:I},p.parent,p.providers,I)}}]),c}();function VC(c){if(c.length>1){var f=function WC(c){for(var f=[],p=0;p<c.length;++p){if(f.indexOf(c[p])>-1)return f.push(c[p]),f;f.push(c[p])}return f}(c.slice().reverse());return" ("+f.map(function(_){return X(_.token)}).join(" -> ")+")"}return""}function YC(c,f,p,_){var w=[f],I=p(w),V=_?function Y5(c,f){var p="".concat(c," caused by: ").concat(f instanceof Error?f.message:f),_=Error(p);return _[vs]=f,_}(I,_):Error(I);return V.addKey=U3,V.keys=w,V.injectors=[c],V.constructResolvingMessage=p,V[vs]=_,V}function U3(c,f){this.injectors.push(c),this.keys.push(f),this.message=this.constructResolvingMessage(this.keys)}function sS(c,f){for(var p=[],_=0,w=f.length;_<w;_++){var I=f[_];I&&0!=I.length?p.push(I.map(X).join(" ")):p.push("?")}return Error("Cannot resolve all parameters for '"+X(c)+"'("+p.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+X(c)+"' is decorated with Injectable.")}function f4(c,f){return Error("Cannot mix multi providers and regular providers, got: ".concat(c," ").concat(f))}Kl.THROW_IF_NOT_FOUND=zl,Kl.NULL=new Wl,Kl.\u0275prov=ge({token:Kl,providedIn:"any",factory:function(){return fa(Ha)}}),Kl.__NG_ELEMENT_ID__=-1;var Id=function(){function c(f,p){if((0,v.Z)(this,c),this.token=f,this.id=p,!f)throw new de(208,!1);this.displayName=X(this.token)}return(0,L.Z)(c,null,[{key:"get",value:function(p){return lS.get(ne(p))}},{key:"numberOfKeys",get:function(){return lS.numberOfKeys}}]),c}(),Pd=function(){function c(){(0,v.Z)(this,c),this._allKeys=new Map}return(0,L.Z)(c,[{key:"get",value:function(p){if(p instanceof Id)return p;if(this._allKeys.has(p))return this._allKeys.get(p);var _=new Id(p,Id.numberOfKeys);return this._allKeys.set(p,_),_}},{key:"numberOfKeys",get:function(){return this._allKeys.size}}]),c}(),lS=new Pd,H3=function(){function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.optional=p,this.visibility=_}return(0,L.Z)(c,null,[{key:"fromKey",value:function(p){return new c(p,!1,null)}}]),c}(),p4=[],j3=(0,L.Z)(function c(f,p,_){(0,v.Z)(this,c),this.key=f,this.resolvedFactories=p,this.multiProvider=_,this.resolvedFactory=this.resolvedFactories[0]}),uS=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.factory=f,this.dependencies=p});function h4(c){var f,p;if(c.useClass){var _=ne(c.useClass);f=a_().factory(_),p=g4(_)}else c.useExisting?(f=function(I){return I},p=[H3.fromKey(Id.get(c.useExisting))]):c.useFactory?(f=c.useFactory,p=function fS(c,f){if(f){var p=f.map(function(_){return[_]});return f.map(function(_){return KC(c,_,p)})}return g4(c)}(c.useFactory,c.deps)):(f=function(){return c.useValue},p=p4);return new uS(f,p)}function m4(c){return new j3(Id.get(c.provide),[h4(c)],c.multi||!1)}function _4(c){var _=function cS(c,f){for(var p=0;p<c.length;p++){var _=c[p],w=f.get(_.key.id);if(w){if(_.multiProvider!==w.multiProvider)throw f4(w,_);if(_.multiProvider)for(var I=0;I<_.resolvedFactories.length;I++)w.resolvedFactories.push(_.resolvedFactories[I]);else f.set(_.key.id,_)}else{var V=void 0;V=_.multiProvider?new j3(_.key,_.resolvedFactories.slice(),_.multiProvider):_,f.set(_.key.id,V)}}return f}(dS(c,[]).map(m4),new Map);return Array.from(_.values())}function dS(c,f){return c.forEach(function(p){if(p instanceof Qt)f.push({provide:p,useClass:p});else if(p&&"object"==typeof p&&void 0!==p.provide)f.push(p);else{if(!Array.isArray(p))throw function d4(c){return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(c))}(p);dS(p,f)}}),f}function g4(c){var f=a_().parameters(c);if(!f)return[];if(f.some(function(p){return null==p}))throw sS(c,f);return f.map(function(p){return KC(c,p,f)})}function KC(c,f,p){var _=null,w=!1;if(!Array.isArray(f))return pS(f instanceof Rv?f.token:f,w,null);for(var I=null,V=0;V<f.length;++V){var ee=f[V];ee instanceof Qt?_=ee:ee instanceof Rv?_=ee.token:ee instanceof Rf?w=!0:ee instanceof hh||ee instanceof o_?I=ee:ee instanceof ho&&(_=ee)}if(null!=(_=ne(_)))return pS(_,w,I);throw sS(c,p)}function pS(c,f,p){return new H3(Id.get(c),f,p)}var ry={},G3=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,null,[{key:"resolve",value:function(p){return _4(p)}},{key:"resolveAndCreate",value:function(p,_){var w=c.resolve(p);return c.fromResolvedProviders(w,_)}},{key:"fromResolvedProviders",value:function(p,_){return new z3(p,_)}}]),c}(),z3=function(){function c(f,p){(0,v.Z)(this,c),this._constructionCounter=0,this._providers=f,this.parent=p||null;var _=f.length;this.keyIds=[],this.objs=[];for(var w=0;w<_;w++)this.keyIds[w]=f[w].key.id,this.objs[w]=ry}return(0,L.Z)(c,[{key:"get",value:function(p){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;return this._getByKey(Id.get(p),null,_)}},{key:"resolveAndCreateChild",value:function(p){var _=G3.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(G3.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 Xr(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 u4(c,f){return YC(c,f,function(p){return"Cannot instantiate cyclic dependency!".concat(VC(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 _=[],w=0;w<p.resolvedFactories.length;++w)_[w]=this._instantiate(p,p.resolvedFactories[w]);return _}return this._instantiate(p,p.resolvedFactories[0])}},{key:"_instantiate",value:function(p,_){var V,ee,w=this,I=_.factory;try{V=_.dependencies.map(function(oe){return w._getByReflectiveDependency(oe)})}catch(oe){throw oe.addKey&&oe.addKey(this,p.key),oe}try{ee=I.apply(void 0,(0,D.Z)(V))}catch(oe){throw function c4(c,f,p,_){return YC(c,_,function(w){var I=X(w[0].token);return"".concat(f.message,": Error during instantiation of ").concat(I,"!").concat(VC(w),".")},f)}(this,oe,oe.stack,p.key)}return ee}},{key:"_getByReflectiveDependency",value:function(p){return this._getByKey(p.key,p.visibility,p.optional?null:zl)}},{key:"_getByKey",value:function(p,_,w){return p===c.INJECTOR_KEY?this:_ instanceof hh?this._getByKeySelf(p,w):this._getByKeyDefault(p,w,_)}},{key:"_getObjByKeyId",value:function(p){for(var _=0;_<this.keyIds.length;_++)if(this.keyIds[_]===p)return this.objs[_]===ry&&(this.objs[_]=this._new(this._providers[_])),this.objs[_];return ry}},{key:"_throwOrNull",value:function(p,_){if(_!==zl)return _;throw function l4(c,f){return YC(c,f,function(p){var _=X(p[0].token);return"No provider for ".concat(_,"!").concat(VC(p))})}(this,p)}},{key:"_getByKeySelf",value:function(p,_){var w=this._getObjByKeyId(p.id);return w!==ry?w:this._throwOrNull(p,_)}},{key:"_getByKeyDefault",value:function(p,_,w){var I;for(I=w instanceof o_?this.parent:this;I instanceof c;){var V=I,ee=V._getObjByKeyId(p.id);if(ee!==ry)return ee;I=V.parent}return null!==I?I.get(p.token,_):this._throwOrNull(p,_)}},{key:"displayName",get:function(){var p=function v4(c,f){for(var p=[],_=0;_<c._providers.length;++_)p[_]=f(c.getProviderAtIndex(_));return p}(this,function(_){return' "'+_.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: [".concat(p,"])")}},{key:"toString",value:function(){return this.displayName}}]),c}();function E_(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye.Default,p=An();if(null===p)return fa(c,f);var _=Me();return aM(_,p,ne(c),f)}function hS(){throw new Error("invalid")}function zf(c,f){return c<<17|f<<2}function ic(c){return c>>17&32767}function W3(c){return 2==(2&c)}function x_(c){return 2|c}function Eu(c){return(131068&c)>>2}function mS(c,f){return-131069&c|f<<2}function V3(c){return 1==(1&c)}function oy(c){return 1|c}z3.INJECTOR_KEY=Id.get(Kl);function MS(c,f){var p=c.contentQueries;if(null!==p)for(var _=0;_<p.length;_+=2){var w=p[_],I=p[_+1];if(-1!==I){var V=c.data[I];hs(w),V.contentQueries(2,f[I],I)}}}function SS(c,f,p,_,w,I,V,ee,oe,ve,He){var rt=f.blueprint.slice();return rt[0]=w,rt[2]=76|_,(null!==He||c&&1024&c[2])&&(rt[2]|=1024),nh(rt),rt[3]=rt[15]=c,rt[8]=p,rt[10]=V||c&&c[10],rt[11]=ee||c&&c[11],rt[12]=oe||c&&c[12]||null,rt[9]=ve||c&&c[9]||null,rt[6]=I,rt[20]=function QP(){return C5++}(),rt[21]=He,rt[16]=2==f.type?c[16]:rt,rt}function Ld(c,f,p,_,w){var I=c.data[f];if(null===I)I=ES(c,f,p,_,w),function Xm(){return Tr.lFrame.inI18n}()&&(I.flags|=64);else if(64&I.type){I.type=p,I.value=_,I.attrs=w;var V=mt();I.injectorIndex=null===V?-1:V.injectorIndex}return Ht(I,!0),I}function ES(c,f,p,_,w){var I=Oe(),V=On(),ee=V?I:I&&I.parent,oe=c.data[f]=function A4(c,f,p,_,w,I){var V=f?f.injectorIndex:-1;return{type:p,index:_,insertBeforeIndex:null,injectorIndex:V,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:w,attrs:I,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:f,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,ee,p,f,_,w);return null===c.firstChild&&(c.firstChild=oe),null!==I&&(V?null==I.child&&null!==oe.parent&&(I.child=oe):null===I.next&&(I.next=oe)),oe}function uy(c,f,p,_){if(0===p)return-1;for(var w=f.length,I=0;I<p;I++)f.push(_),c.blueprint.push(_),c.data.push(null);return w}function xS(c,f,p){qs(f);try{var _=c.viewQuery;null!==_&&ZS(1,_,p);var w=c.template;null!==w&&$3(c,f,w,1,p),c.firstCreatePass&&(c.firstCreatePass=!1),c.staticContentQueries&&MS(c,f),c.staticViewQueries&&ZS(2,c.viewQuery,p);var I=c.components;null!==I&&function E4(c,f){for(var p=0;p<f.length;p++)cy(c,f[p])}(f,I)}catch(V){throw c.firstCreatePass&&(c.incompleteFirstPass=!0,c.firstCreatePass=!1),V}finally{f[2]&=-5,_e()}}function XC(c,f,p,_){var w=f[2];if(128!=(128&w)){qs(f);try{nh(f),Ks(c.bindingStartIndex),null!==p&&$3(c,f,p,2,_);var V=3==(3&w);if(V){var ee=c.preOrderCheckHooks;null!==ee&&xf(f,ee,null)}else{var oe=c.preOrderHooks;null!==oe&&e_(f,oe,0,null),Df(f,0)}if(function h6(c){for(var f=_h(c);null!==f;f=vl(f))if(f[2])for(var p=f[9],_=0;_<p.length;_++){var w=p[_],I=w[3];0==(512&w[2])&&ds(I,1),w[2]|=512}}(f),function p6(c){for(var f=_h(c);null!==f;f=vl(f))for(var p=10;p<f.length;p++){var _=f[p],w=_[1];Ys(_)&&XC(w,_,w.template,_[8])}}(f),null!==c.contentQueries&&MS(c,f),V){var ve=c.contentCheckHooks;null!==ve&&xf(f,ve)}else{var He=c.contentHooks;null!==He&&e_(f,He,1),Df(f,1)}!function S4(c,f){var p=c.hostBindingOpCodes;if(null!==p)try{for(var _=0;_<p.length;_++){var w=p[_];if(w<0)it(~w);else{var I=w,V=p[++_],ee=p[++_];$m(V,I),ee(2,f[I])}}}finally{it(-1)}}(c,f);var rt=c.components;null!==rt&&function kV(c,f){for(var p=0;p<f.length;p++)m6(c,f[p])}(f,rt);var pt=c.viewQuery;if(null!==pt&&ZS(2,pt,_),V){var wt=c.viewCheckHooks;null!==wt&&xf(f,wt)}else{var en=c.viewHooks;null!==en&&e_(f,en,2),Df(f,2)}!0===c.firstUpdatePass&&(c.firstUpdatePass=!1),f[2]&=-41,512&f[2]&&(f[2]&=-513,ds(f[3],-1))}finally{_e()}}}function $3(c,f,p,_,w){var I=Ge(),V=2&_;try{it(-1),V&&f.length>22&&B3(c,f,22,!1),Yi(V?2:0,w),p(_,w)}finally{it(I),Yi(V?3:1,w)}}function e6(c,f,p){if(Ss(f))for(var _=f.directiveStart,w=f.directiveEnd,I=_;I<w;I++){var V=c.data[I];V.contentQueries&&V.contentQueries(1,p[I],I)}}function DS(c,f,p){!Ds()||(function P4(c,f,p,_){var w=p.directiveStart,I=p.directiveEnd;c.firstCreatePass||xv(p,f),Ps(_,f);for(var V=p.initialInputs,ee=w;ee<I;ee++){var oe=c.data[ee],ve=Jt(oe);ve&&f6(f,p,oe);var He=Av(f,c,ee,p);if(Ps(He,f),null!==V&&B4(f,ee-w,He,oe,p,V),ve)po(p.index,f)[8]=He}}(c,f,p,vo(p,f)),128==(128&p.flags)&&function R4(c,f,p){var _=p.directiveStart,w=p.directiveEnd,I=p.index,V=function bd(){return Tr.lFrame.currentDirectiveIndex}();try{it(I);for(var ee=_;ee<w;ee++){var oe=c.data[ee],ve=f[ee];Ju(ee),(null!==oe.hostBindings||0!==oe.hostVars||null!==oe.hostAttrs)&&l6(oe,ve)}}finally{it(-1),Ju(V)}}(c,f,p))}function $C(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vo,_=f.localNames;if(null!==_)for(var w=f.index+1,I=0;I<_.length;I+=2){var V=_[I+1],ee=-1===V?p(f,c):c[V];c[w++]=ee}}function t6(c){var f=c.tView;if(null===f||f.incompleteFirstPass){return c.tView=e1(1,null,c.template,c.decls,c.vars,c.directiveDefs,c.pipeDefs,c.viewQuery,c.schemas,c.consts)}return f}function e1(c,f,p,_,w,I,V,ee,oe,ve){var He=22+_,rt=He+w,pt=function x4(c,f){for(var p=[],_=0;_<f;_++)p.push(_<c?null:Wr);return p}(He,rt),wt="function"==typeof ve?ve():ve;return pt[1]={type:c,blueprint:pt,template:p,queries:null,viewQuery:ee,declTNode:f,data:pt.slice().fill(null,He),bindingStartIndex:He,expandoStartIndex:rt,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 I?I():I,pipeRegistry:"function"==typeof V?V():V,firstChild:null,schemas:oe,consts:wt,incompleteFirstPass:!1}}function AS(c,f,p,_){var w=n1(f);null===p?w.push(_):(w.push(p),c.firstCreatePass&&_6(c).push(_,w.length-1))}function r6(c,f,p){for(var _ in c)if(c.hasOwnProperty(_)){p=null===p?{}:p;var w=c[_];p.hasOwnProperty(_)?p[_].push(f,w):p[_]=[f,w]}return p}function i6(c,f){for(var p=f.directiveStart,_=f.directiveEnd,w=c.data,I=f.attrs,V=[],ee=null,oe=null,ve=p;ve<_;ve++){var He=w[ve],rt=He.inputs,pt=null===I||I3(f)?null:F4(rt,I);V.push(pt),ee=r6(rt,ve,ee),oe=r6(He.outputs,ve,oe)}null!==ee&&(ee.hasOwnProperty("class")&&(f.flags|=16),ee.hasOwnProperty("style")&&(f.flags|=32)),f.initialInputs=V,f.inputs=ee,f.outputs=oe}function $s(c,f,p,_,w,I,V,ee){var He,oe=vo(f,p),ve=f.inputs;!ee&&null!=ve&&(He=ve[_])?(Du(c,p,He,_,w),qi(f)&&o6(p,f.index)):3&f.type?(_=function O4(c){return"class"===c?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c}(_),w=null!=V?V(w,f.value||"",_):w,I.setProperty(oe,_,w)):f.type}function o6(c,f){var p=po(f,c);16&p[2]||(p[2]|=32)}function Bc(c,f,p,_){var w=!1;if(Ds()){var I=function L4(c,f,p){var _=c.directiveRegistry,w=null;if(_)for(var I=0;I<_.length;I++){var V=_[I];L3(p,V.selectors,!1)&&(w||(w=[]),n_(xv(p,f),c,V.type),Jt(V)?(u6(c,p),w.unshift(V)):w.push(V))}return w}(c,f,p),V=null===_?null:{"":-1};if(null!==I){w=!0,c6(p,c.data.length,I.length);for(var ee=0;ee<I.length;ee++){var oe=I[ee];oe.providersResolver&&oe.providersResolver(oe)}for(var ve=!1,He=!1,rt=uy(c,f,I.length,null),pt=0;pt<I.length;pt++){var wt=I[pt];p.mergedAttrs=As(p.mergedAttrs,wt.hostAttrs),d6(c,p,f,rt,wt),N4(rt,wt,V),null!==wt.contentQueries&&(p.flags|=8),(null!==wt.hostBindings||null!==wt.hostAttrs||0!==wt.hostVars)&&(p.flags|=128);var en=wt.type.prototype;!ve&&(en.ngOnChanges||en.ngOnInit||en.ngDoCheck)&&((c.preOrderHooks||(c.preOrderHooks=[])).push(p.index),ve=!0),!He&&(en.ngOnChanges||en.ngDoCheck)&&((c.preOrderCheckHooks||(c.preOrderCheckHooks=[])).push(p.index),He=!0),rt++}i6(c,p)}V&&function Z4(c,f,p){if(f)for(var _=c.localNames=[],w=0;w<f.length;w+=2){var I=p[f[w+1]];if(null==I)throw new de(-301,!1);_.push(f[w],I)}}(p,_,V)}return p.mergedAttrs=As(p.mergedAttrs,p.attrs),w}function s6(c,f,p,_,w,I){var V=I.hostBindings;if(V){var ee=c.hostBindingOpCodes;null===ee&&(ee=c.hostBindingOpCodes=[]);var oe=~f.index;(function I4(c){for(var f=c.length;f>0;){var p=c[--f];if("number"==typeof p&&p<0)return p}return 0})(ee)!=oe&&ee.push(oe),ee.push(_,w,V)}}function l6(c,f){null!==c.hostBindings&&c.hostBindings(1,f)}function u6(c,f){f.flags|=2,(c.components||(c.components=[])).push(f.index)}function N4(c,f,p){if(p){if(f.exportAs)for(var _=0;_<f.exportAs.length;_++)p[f.exportAs[_]]=c;Jt(f)&&(p[""]=c)}}function c6(c,f,p){c.flags|=1,c.directiveStart=f,c.directiveEnd=f+p,c.providerIndexes=f}function d6(c,f,p,_,w){c.data[_]=w;var I=w.factory||(w.factory=oo(w.type)),V=new he(I,Jt(w),E_);c.blueprint[_]=V,p[_]=V,s6(c,f,0,_,uy(c,p,w.hostVars,Wr),w)}function f6(c,f,p){var _=vo(f,c),w=t6(p),I=c[10],V=dy(c,SS(c,w,null,p.onPush?32:16,_,f,I,I.createRenderer(_,p),null,null,null));c[f.index]=V}function $o(c,f,p,_,w,I){var V=vo(c,f);IS(f[11],V,I,c.value,p,_,w)}function IS(c,f,p,_,w,I,V){if(null==I)c.removeAttribute(f,w,p);else{var ee=null==V?ce(I):V(I,_||"",w);c.setAttribute(f,w,ee,p)}}function B4(c,f,p,_,w,I){var V=I[f];if(null!==V)for(var ee=_.setInput,oe=0;oe<V.length;){var ve=V[oe++],He=V[oe++],rt=V[oe++];null!==ee?_.setInput(p,rt,ve,He):p[He]=rt}}function F4(c,f){for(var p=null,_=0;_<f.length;){var w=f[_];if(0!==w)if(5!==w){if("number"==typeof w)break;c.hasOwnProperty(w)&&(null===p&&(p=[]),p.push(w,c[w],f[_+1])),_+=2}else _+=2;else _+=4}return p}function PS(c,f,p,_){return new Array(c,!0,!1,f,null,0,_,p,null,null)}function m6(c,f){var p=po(f,c);if(Ys(p)){var _=p[1];48&p[2]?XC(_,p,_.template,p[8]):p[5]>0&&RS(p)}}function RS(c){for(var f=_h(c);null!==f;f=vl(f))for(var p=10;p<f.length;p++){var _=f[p];if(Ys(_))if(512&_[2]){var w=_[1];XC(w,_,w.template,_[8])}else _[5]>0&&RS(_)}var V=c[1].components;if(null!==V)for(var ee=0;ee<V.length;ee++){var oe=po(V[ee],c);Ys(oe)&&oe[5]>0&&RS(oe)}}function cy(c,f){var p=po(f,c),_=p[1];(function Yf(c,f){for(var p=f.length;p<c.blueprint.length;p++)f.push(c.blueprint[p])})(_,p),xS(_,p,p[8])}function dy(c,f){return c[13]?c[14][4]=f:c[13]=f,c[14]=f,f}function LS(c){for(;c;){c[2]|=32;var f=Uv(c);if(Jr(c)&&!f)return c;c=f}return null}function t1(c,f,p){var _=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],w=f[10],I=!1;!I&&w.begin&&w.begin();try{XC(c,f,c.template,p)}catch(V){throw _&&v6(f,V),V}finally{!I&&w.end&&w.end()}}function ZS(c,f,p){hs(0),f(c,p)}function n1(c){return c[7]||(c[7]=[])}function _6(c){return c.cleanup||(c.cleanup=[])}function g6(c,f,p){return(null===c||Jt(c))&&(p=function Es(c){for(;Array.isArray(c);){if("object"==typeof c[1])return c;c=c[0]}return null}(p[f.index])),p[11]}function v6(c,f){var p=c[9],_=p?p.get(k_,null):null;_&&_.handleError(f)}function Du(c,f,p,_,w){for(var I=0;I<p.length;){var V=p[I++],ee=p[I++],oe=f[V],ve=c.data[V];null!==ve.setInput?ve.setInput(oe,w,_,ee):oe[ee]=w}}function Zd(c,f,p){var _=xc(f,c);Sa(c[11],_,p)}function r1(c,f,p){var _=p?c.styles:null,w=p?c.classes:null,I=0;if(null!==f)for(var V=0;V<f.length;V++){var ee=f[V];if("number"==typeof ee)I=ee;else if(1==I)w=$(w,ee);else if(2==I){_=$(_,ee+": "+f[++V]+";")}}p?c.styles=_:c.stylesWithoutHost=_,p?c.classes=w:c.classesWithoutHost=w}function D_(c,f,p,_){for(var w=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==p;){var I=f[p.index];if(null!==I&&_.push(so(I)),Ui(I))for(var V=10;V<I.length;V++){var ee=I[V],oe=ee[1].firstChild;null!==oe&&D_(ee[1],ee,oe,_)}var ve=p.type;if(8&ve)D_(c,f,p.child,_);else if(32&ve)for(var He=SM(p,f),rt=void 0;rt=He();)_.push(rt);else if(16&ve){var pt=Ic(f,p);if(Array.isArray(pt))_.push.apply(_,(0,D.Z)(pt));else{var wt=Uv(f[16]);D_(wt[1],wt,pt,_,!0)}}p=w?p.projectionNext:p.next}return _}var xh=function(){function c(f,p){(0,v.Z)(this,c),this._lView=f,this._cdRefInjectingView=p,this._appRef=null,this._attachedToViewContainer=!1}return(0,L.Z)(c,[{key:"rootNodes",get:function(){var p=this._lView,_=p[1];return D_(_,p,_.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(p){this._lView[8]=p}},{key:"destroyed",get:function(){return 128==(128&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var p=this._lView[3];if(Ui(p)){var _=p[8],w=_?_.indexOf(this):-1;w>-1&&(kC(p,w),dC(_,w))}this._attachedToViewContainer=!1}wu(this._lView[1],this._lView)}},{key:"onDestroy",value:function(p){AS(this._lView[1],this._lView,null,p)}},{key:"markForCheck",value:function(){LS(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-65}},{key:"reattach",value:function(){this._lView[2]|=64}},{key:"detectChanges",value:function(){t1(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new de(902,!1);this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function i3(c,f){ku(c,f,f[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(p){if(this._attachedToViewContainer)throw new de(902,!1);this._appRef=p}}]),c}(),y6=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this,_))._view=_,w}return(0,L.Z)(p,[{key:"detectChanges",value:function(){var w=this._view;t1(w[1],w,w[8],!1)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),p}(xh),NS=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this)).ngModule=_,w}return(0,L.Z)(p,[{key:"resolveComponentFactory",value:function(w){var I=Wn(w);return new A_(I,this.ngModule)}}]),p}(C_);function b6(c){var f=[];for(var p in c)if(c.hasOwnProperty(p)){var _=c[p];f.push({propName:_,templateName:p})}return f}var C6=function(){function c(f,p){(0,v.Z)(this,c),this.injector=f,this.parentInjector=p}return(0,L.Z)(c,[{key:"get",value:function(p,_,w){var I=this.injector.get(p,jC,w);return I!==jC||_===jC?I:this.parentInjector.get(p,_,w)}}]),c}(),A_=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;return(0,v.Z)(this,p),(I=f.call(this)).componentDef=_,I.ngModule=w,I.componentType=_.type,I.selector=function n4(c){return c.map(t4).join(",")}(_.selectors),I.ngContentSelectors=_.ngContentSelectors?_.ngContentSelectors:[],I.isBoundToModule=!!w,I}return(0,L.Z)(p,[{key:"inputs",get:function(){return b6(this.componentDef.inputs)}},{key:"outputs",get:function(){return b6(this.componentDef.outputs)}},{key:"create",value:function(w,I,V,ee){var oe=(ee=ee||this.ngModule)instanceof Mu?ee:null==ee?void 0:ee.injector;oe&&null!==this.componentDef.getStandaloneInjector&&(oe=this.componentDef.getStandaloneInjector(oe)||oe);var ve=oe?new C6(w,oe):w,He=ve.get(E3,null);if(null===He)throw new de(407,!1);var Xn,wn,rt=ve.get(JM,null),pt=He.createRenderer(null,this.componentDef),wt=this.componentDef.selectors[0][0]||"div",en=V?function n6(c,f,p){var _=p===En.ShadowDom;return c.selectRootElement(f,_)}(pt,V,this.componentDef.encapsulation):Sd(pt,wt,function j4(c){var f=c.toLowerCase();return"svg"===f?"svg":"math"===f?Tf:null}(wt)),_n=this.componentDef.onPush?288:272,Un=e1(0,null,null,1,0,null,null,null,null,null),Qn=SS(null,Un,null,_n,null,null,He,pt,rt,ve,null);qs(Qn);try{var br=function W4(c,f,p,_,w,I){var V=p[1],ee=22;p[ee]=c;var oe=Ld(V,ee,2,"#host",null),ve=oe.mergedAttrs=f.hostAttrs;null!==ve&&(r1(oe,ve,!0),null!==c&&(si(w,c,ve),null!==oe.classes&&Wv(w,c,oe.classes),null!==oe.styles&&PM(w,c,oe.styles)));var He=_.createRenderer(c,f),rt=SS(p,t6(f),null,f.onPush?32:16,p[ee],oe,_,He,I||null,null,null);return V.firstCreatePass&&(n_(xv(oe,p),V,f.type),u6(V,oe),c6(oe,p.length,1)),dy(p,rt),p[ee]=rt}(en,this.componentDef,Qn,He,pt);if(en)if(V)si(pt,en,["ng-version",V5.full]);else{var gi=function tS(c){for(var f=[],p=[],_=1,w=2;_<c.length;){var I=c[_];if("string"==typeof I)2===w?""!==I&&f.push(I,c[++_]):8===w&&p.push(I);else{if(!rc(w))break;w=I}_++}return{attrs:f,classes:p}}(this.componentDef.selectors[0]),wi=gi.attrs,$a=gi.classes;wi&&si(pt,en,wi),$a&&$a.length>0&&Wv(pt,en,$a.join(" "))}if(wn=Ba(Un,22),void 0!==I)for(var es=wn.projection=[],wl=0;wl<this.ngContentSelectors.length;wl++){var $l=I[wl];es.push(null!=$l?Array.from($l):null)}Xn=function V4(c,f,p,_){var w=p[1],I=function OS(c,f,p){var _=Me();c.firstCreatePass&&(p.providersResolver&&p.providersResolver(p),d6(c,_,f,uy(c,f,1,null),p),i6(c,_));var I=Av(f,c,_.directiveStart,_);Ps(I,f);var V=vo(_,f);return V&&Ps(V,f),I}(w,p,f);if(c[8]=p[8]=I,null!==_){var ee,V=(0,E.Z)(_);try{for(V.s();!(ee=V.n()).done;){(0,ee.value)(I,f)}}catch(pt){V.e(pt)}finally{V.f()}}if(f.contentQueries){var ve=Me();f.contentQueries(1,I,ve.directiveStart)}var He=Me();if(w.firstCreatePass&&(null!==f.hostBindings||null!==f.hostAttrs)){it(He.index),s6(p[1],He,0,He.directiveStart,He.directiveEnd,f),l6(f,I)}return I}(br,this.componentDef,Qn,[Y4]),xS(Un,Qn,null)}finally{_e()}return new z4(this.componentType,Xn,w_(wn,Qn),Qn,wn)}}]),p}(Gf);new NS;var z4=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I,V,ee){var oe;return(0,v.Z)(this,p),(oe=f.call(this)).location=I,oe._rootLView=V,oe._tNode=ee,oe.instance=w,oe.hostView=oe.changeDetectorRef=new y6(V),oe.componentType=_,oe}return(0,L.Z)(p,[{key:"setInput",value:function(w,I){var ee,V=this._tNode.inputs;if(null!==V&&(ee=V[w])){var oe=this._rootLView;Du(oe[1],oe,ee,w,I),o6(oe,this._tNode.index)}else{}}},{key:"injector",get:function(){return new Jn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(w){this.hostView.onDestroy(w)}}]),p}(KM);function Y4(){var c=Me();Ac(An()[1],c)}function w6(c){return Object.getPrototypeOf(c.prototype).constructor}function BS(c){for(var f=w6(c.type),p=!0,_=[c];f;){var w=void 0;if(Jt(c))w=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new de(903,!1);w=f.\u0275dir}if(w){if(p){_.push(w);var I=c;I.inputs=FS(c.inputs),I.declaredInputs=FS(c.declaredInputs),I.outputs=FS(c.outputs);var V=w.hostBindings;V&&J4(c,V);var ee=w.viewQuery,oe=w.contentQueries;if(ee&&q4(c,ee),oe&&k6(c,oe),F(c.inputs,w.inputs),F(c.declaredInputs,w.declaredInputs),F(c.outputs,w.outputs),Jt(w)&&w.data.animation){var ve=c.data;ve.animation=(ve.animation||[]).concat(w.data.animation)}}var He=w.features;if(He)for(var rt=0;rt<He.length;rt++){var pt=He[rt];pt&&pt.ngInherit&&pt(c),pt===BS&&(p=!1)}}f=Object.getPrototypeOf(f)}!function K4(c){for(var f=0,p=null,_=c.length-1;_>=0;_--){var w=c[_];w.hostVars=f+=w.hostVars,w.hostAttrs=As(w.hostAttrs,p=As(p,w.hostAttrs))}}(_)}function FS(c){return c===Et?{}:c===et?[]:c}function q4(c,f){var p=c.viewQuery;c.viewQuery=p?function(_,w){f(_,w),p(_,w)}:f}function k6(c,f){var p=c.contentQueries;c.contentQueries=p?function(_,w,I){f(_,w,I),p(_,w,I)}:f}function J4(c,f){var p=c.hostBindings;c.hostBindings=p?function(_,w){f(_,w),p(_,w)}:f}var Q4=["providersResolver"],X4=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function $4(c){var f=w6(c.type),p=void 0;p=Jt(c)?f.\u0275cmp:f.\u0275dir;var I,_=c,w=(0,E.Z)(Q4);try{for(w.s();!(I=w.n()).done;){var V=I.value;_[V]=p[V]}}catch(He){w.e(He)}finally{w.f()}if(Jt(p)){var oe,ee=(0,E.Z)(X4);try{for(ee.s();!(oe=ee.n()).done;){var ve=oe.value;_[ve]=p[ve]}}catch(He){ee.e(He)}finally{ee.f()}}}var i1=null;function Dh(){if(!i1){var c=hn.Symbol;if(c&&c.iterator)i1=c.iterator;else for(var f=Object.getOwnPropertyNames(Map.prototype),p=0;p<f.length;++p){var _=f[p];"entries"!==_&&"size"!==_&&Map.prototype[_]===Map.prototype.entries&&(i1=_)}}return i1}function fy(c){return!!US(c)&&(Array.isArray(c)||!(c instanceof Map)&&Dh()in c)}function US(c){return null!==c&&("function"==typeof c||"object"==typeof c)}function Fc(c,f,p){return c[f]=p}function py(c,f){return c[f]}function Xa(c,f,p){var _=c[f];return!Object.is(_,p)&&(c[f]=p,!0)}function Ah(c,f,p,_){var w=Xa(c,f,p);return Xa(c,f+1,_)||w}function o1(c,f,p,_,w){var I=Ah(c,f,p,_);return Xa(c,f+2,w)||I}function Jl(c,f,p,_,w,I){var V=Ah(c,f,p,_);return Ah(c,f+2,w,I)||V}function hy(c,f,p,_){var w=An();if(Xa(w,hl(),f)){we();$o(Wt(),w,c,f,p,_)}return hy}function O_(c,f){for(var p=!1,_=Ta(),w=1;w<f.length;w+=2)p=Xa(c,_++,f[w])||p;if(Ks(_),!p)return Wr;for(var I=f[0],V=1;V<f.length;V+=2)I+=ce(f[V])+f[V+1];return I}function Ql(c,f,p,_){return Xa(c,hl(),p)?f+ce(p)+_:Wr}function Oh(c,f,p,_,w,I){var ee=Ah(c,Ta(),p,w);return fs(2),ee?f+ce(p)+_+ce(w)+I:Wr}function I_(c,f,p,_,w,I,V,ee){var ve=o1(c,Ta(),p,w,V);return fs(3),ve?f+ce(p)+_+ce(w)+I+ce(V)+ee:Wr}function P_(c,f,p,_,w,I,V,ee,oe,ve){var rt=Jl(c,Ta(),p,w,V,oe);return fs(4),rt?f+ce(p)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve:Wr}function Ih(c,f,p,_,w,I,V,ee,oe,ve,He,rt){var pt=Ta(),wt=Jl(c,pt,p,w,V,oe);return wt=Xa(c,pt+4,He)||wt,fs(5),wt?f+ce(p)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt:Wr}function R_(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt){var en=Ta(),_n=Jl(c,en,p,w,V,oe);return _n=Ah(c,en+4,He,pt)||_n,fs(6),_n?f+ce(p)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(pt)+wt:Wr}function L_(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n){var Un=Ta(),Qn=Jl(c,Un,p,w,V,oe);return Qn=o1(c,Un+4,He,pt,en)||Qn,fs(7),Qn?f+ce(p)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(pt)+wt+ce(en)+_n:Wr}function Z_(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn){var Xn=Ta(),wn=Jl(c,Xn,p,w,V,oe);return wn=Jl(c,Xn+4,He,pt,en,Un)||wn,fs(8),wn?f+ce(p)+_+ce(w)+I+ce(V)+ee+ce(oe)+ve+ce(He)+rt+ce(pt)+wt+ce(en)+_n+ce(Un)+Qn:Wr}function T6(c,f,p,_,w,I){var V=An(),ee=Ql(V,f,p,_);ee!==Wr&&$o(Wt(),V,c,ee,w,I);return T6}function my(c,f,p,_,w,I,V,ee){var oe=An(),ve=Oh(oe,f,p,_,w,I);ve!==Wr&&$o(Wt(),oe,c,ve,V,ee);return my}function HS(c,f,p,_,w,I,V,ee,oe,ve){var He=An(),rt=I_(He,f,p,_,w,I,V,ee);rt!==Wr&&$o(Wt(),He,c,rt,oe,ve);return HS}function jS(c,f,p,_,w,I,V,ee,oe,ve,He,rt){var pt=An(),wt=P_(pt,f,p,_,w,I,V,ee,oe,ve);wt!==Wr&&$o(Wt(),pt,c,wt,He,rt);return jS}function Ph(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt){var en=An(),_n=Ih(en,f,p,_,w,I,V,ee,oe,ve,He,rt);_n!==Wr&&$o(Wt(),en,c,_n,pt,wt);return Ph}function M6(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n){var Un=An(),Qn=R_(Un,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt);Qn!==Wr&&$o(Wt(),Un,c,Qn,en,_n);return M6}function r8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn){var Xn=An(),wn=L_(Xn,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n);wn!==Wr&&$o(Wt(),Xn,c,wn,Un,Qn);return r8}function S6(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn,Xn,wn){var br=An(),gi=Z_(br,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn);gi!==Wr&&$o(Wt(),br,c,gi,Xn,wn);return S6}function GS(c,f,p,_){var w=An(),I=O_(w,f);I!==Wr&&$o(Wt(),w,c,I,p,_);return GS}function E6(c,f,p,_,w,I,V,ee){var oe=An(),ve=we(),He=c+22,rt=ve.firstCreatePass?function o8(c,f,p,_,w,I,V,ee,oe){var ve=f.consts,He=Ld(f,c,4,V||null,Ul(ve,ee));Bc(f,p,He,Ul(ve,oe)),Ac(f,He);var rt=He.tViews=e1(2,He,_,w,I,f.directiveRegistry,f.pipeRegistry,null,f.schemas,ve);return null!==f.queries&&(f.queries.template(f,He),rt.queries=f.queries.embeddedTView(He)),He}(He,ve,oe,f,p,_,w,I,V):ve.data[He];Ht(rt,!1);var pt=oe[11].createComment("");SC(ve,oe,pt,rt),Ps(pt,oe),dy(oe,oe[He]=PS(pt,oe,pt,rt)),tn(rt)&&DS(ve,oe,rt),null!=V&&$C(oe,rt,ee)}function _y(c){return cs(function lo(){return Tr.lFrame.contextLView}(),22+c)}function a1(c,f,p){var _=An();Xa(_,hl(),f)&&$s(we(),Wt(),_,c,f,_[11],p,!1);return a1}function zS(c,f,p,_,w){var V=w?"class":"style";Du(c,p,f.inputs[V],V,_)}function s1(c,f,p,_){var w=An(),I=we(),V=22+c,ee=w[11],oe=w[V]=Sd(ee,f,function _l(){return Tr.lFrame.currentNamespace}()),ve=I.firstCreatePass?function a8(c,f,p,_,w,I,V){var ee=f.consts,ve=Ld(f,c,2,w,Ul(ee,I));return Bc(f,p,ve,Ul(ee,V)),null!==ve.attrs&&r1(ve,ve.attrs,!1),null!==ve.mergedAttrs&&r1(ve,ve.mergedAttrs,!0),null!==f.queries&&f.queries.elementStart(f,ve),ve}(V,I,w,0,f,p,_):I.data[V];Ht(ve,!0);var He=ve.mergedAttrs;null!==He&&si(ee,oe,He);var rt=ve.classes;null!==rt&&Wv(ee,oe,rt);var pt=ve.styles;return null!==pt&&PM(ee,oe,pt),64!=(64&ve.flags)&&SC(I,w,oe,ve),0===function rh(){return Tr.lFrame.elementDepthCount}()&&Ps(oe,w),function ih(){Tr.lFrame.elementDepthCount++}(),tn(ve)&&(DS(I,w,ve),e6(I,ve,w)),null!==_&&$C(w,ve),s1}function l1(){var c=Me();On()?sr():Ht(c=c.parent,!1);var f=c;!function Ef(){Tr.lFrame.elementDepthCount--}();var p=we();return p.firstCreatePass&&(Ac(p,c),Ss(c)&&p.queries.elementEnd(c)),null!=f.classesWithoutHost&&function Fn(c){return 0!=(16&c.flags)}(f)&&zS(p,f,An(),f.classesWithoutHost,!0),null!=f.stylesWithoutHost&&function fr(c){return 0!=(32&c.flags)}(f)&&zS(p,f,An(),f.stylesWithoutHost,!1),l1}function gy(c,f,p,_){return s1(c,f,p,_),l1(),gy}function vy(c,f,p){var _=An(),w=we(),I=c+22,V=w.firstCreatePass?function u1(c,f,p,_,w){var I=f.consts,V=Ul(I,_),ee=Ld(f,c,8,"ng-container",V);return null!==V&&r1(ee,V,!0),Bc(f,p,ee,Ul(I,w)),null!==f.queries&&f.queries.elementStart(f,ee),ee}(I,w,_,f,p):w.data[I];Ht(V,!0);var ee=_[I]=_[11].createComment("");return SC(w,_,ee,V),Ps(ee,_),tn(V)&&(DS(w,_,V),e6(w,V,_)),null!=p&&$C(_,V),vy}function c1(){var c=Me(),f=we();return On()?sr():Ht(c=c.parent,!1),f.firstCreatePass&&(Ac(f,c),Ss(c)&&f.queries.elementEnd(c)),c1}function WS(c,f,p){return vy(c,f,p),c1(),WS}function VS(){return An()}function YS(c){return!!c&&"function"==typeof c.then}function KS(c){return!!c&&"function"==typeof c.subscribe}var D6=KS;function qS(c,f,p,_){var w=An(),I=we(),V=Me();return O6(I,w,w[11],V,c,f,!!p,_),qS}function d1(c,f){var p=Me(),_=An(),w=we();return O6(w,_,g6(ps(w.data),p,_),p,c,f,!1),d1}function O6(c,f,p,_,w,I,V,ee){var oe=tn(_),He=c.firstCreatePass&&_6(c),rt=f[8],pt=n1(f),wt=!0;if(3&_.type||ee){var en=vo(_,f),_n=ee?ee(en):en,Un=pt.length,Qn=ee?function(Vc){return ee(so(Vc[_.index]))}:_.index,Xn=null;if(!ee&&oe&&(Xn=function A6(c,f,p,_){var w=c.cleanup;if(null!=w)for(var I=0;I<w.length-1;I+=2){var V=w[I];if(V===p&&w[I+1]===_){var ee=f[7],oe=w[I+2];return ee.length>oe?ee[oe]:null}"string"==typeof V&&(I+=2)}return null}(c,f,w,_.index)),null!==Xn){(Xn.__ngLastListenerFn__||Xn).__ngNextListenerFn__=I,Xn.__ngLastListenerFn__=I,wt=!1}else{I=JS(_,f,rt,I,!1);var br=p.listen(_n,w,I);pt.push(I,br),He&&He.push(w,Qn,Un,Un+1)}}else I=JS(_,f,rt,I,!1);var wi,gi=_.outputs;if(wt&&null!==gi&&(wi=gi[w])){var $a=wi.length;if($a)for(var es=0;es<$a;es+=2){var wl=wi[es],$l=wi[es+1],Yy=f[wl][$l].subscribe(I),ag=pt.length;pt.push(I,Yy),He&&He.push(w,_.index,ag,-(ag+1))}}}function I6(c,f,p,_){try{return Yi(6,f,p),!1!==p(_)}catch(w){return v6(c,w),!1}finally{Yi(7,f,p)}}function JS(c,f,p,_,w){return function I(V){if(V===Function)return _;LS(2&c.flags?po(c.index,f):f);for(var oe=I6(f,p,_,V),ve=I.__ngNextListenerFn__;ve;)oe=I6(f,p,ve,V)&&oe,ve=ve.__ngNextListenerFn__;return w&&!1===oe&&(V.preventDefault(),V.returnValue=!1),oe}}function P6(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return xe(c)}function R6(c,f){for(var p=null,_=function S_(c){var f=c.attrs;if(null!=f){var p=f.indexOf(5);if(0==(1&p))return f[p+1]}return null}(c),w=0;w<f.length;w++){var I=f[w];if("*"!==I){if(null===_?L3(c,I,!0):e4(_,I))return w}else p=w}return p}function L6(c){var f=An()[16][6];if(!f.projection)for(var p=c?c.length:1,_=f.projection=Td(p,null),w=_.slice(),I=f.child;null!==I;){var V=c?R6(I,c):0;null!==V&&(w[V]?w[V].projectionNext=I:_[V]=I,w[V]=I),I=I.next}}function Z6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=arguments.length>2?arguments[2]:void 0,_=An(),w=we(),I=Ld(w,22+c,16,null,p||null);null===I.projection&&(I.projection=f),sr(),64!=(64&I.flags)&&Ed(w,_,I)}function QS(c,f,p){return f1(c,"",f,"",p),QS}function f1(c,f,p,_,w){var I=An(),V=Ql(I,f,p,_);V!==Wr&&$s(we(),Wt(),I,c,V,I[11],w,!1);return f1}function p1(c,f,p,_,w,I,V){var ee=An(),oe=Oh(ee,f,p,_,w,I);oe!==Wr&&$s(we(),Wt(),ee,c,oe,ee[11],V,!1);return p1}function h1(c,f,p,_,w,I,V,ee,oe){var ve=An(),He=I_(ve,f,p,_,w,I,V,ee);He!==Wr&&$s(we(),Wt(),ve,c,He,ve[11],oe,!1);return h1}function XS(c,f,p,_,w,I,V,ee,oe,ve,He){var rt=An(),pt=P_(rt,f,p,_,w,I,V,ee,oe,ve);pt!==Wr&&$s(we(),Wt(),rt,c,pt,rt[11],He,!1);return XS}function $S(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt){var wt=An(),en=Ih(wt,f,p,_,w,I,V,ee,oe,ve,He,rt);en!==Wr&&$s(we(),Wt(),wt,c,en,wt[11],pt,!1);return $S}function N6(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en){var _n=An(),Un=R_(_n,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt);Un!==Wr&&$s(we(),Wt(),_n,c,Un,_n[11],en,!1);return N6}function B6(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un){var Qn=An(),Xn=L_(Qn,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n);Xn!==Wr&&$s(we(),Wt(),Qn,c,Xn,Qn[11],Un,!1);return B6}function eE(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn,Xn){var wn=An(),br=Z_(wn,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn);br!==Wr&&$s(we(),Wt(),wn,c,br,wn[11],Xn,!1);return eE}function F6(c,f,p){var _=An(),w=O_(_,f);w!==Wr&&$s(we(),Wt(),_,c,w,_[11],p,!1);return F6}function s8(c,f,p,_,w,I){var V=I?f.classBindings:f.styleBindings,ee=ic(V),oe=Eu(V);c[_]=p;var He,ve=!1;if(Array.isArray(p)){var rt=p;(null===(He=rt[1])||Md(rt,He)>0)&&(ve=!0)}else He=p;if(w)if(0!==oe){var wt=ic(c[ee+1]);c[_+1]=zf(wt,ee),0!==wt&&(c[wt+1]=mS(c[wt+1],_)),c[ee+1]=function iy(c,f){return 131071&c|f<<17}(c[ee+1],_)}else c[_+1]=zf(ee,0),0!==ee&&(c[ee+1]=mS(c[ee+1],_)),ee=_;else c[_+1]=zf(oe,0),0===ee?ee=_:c[oe+1]=mS(c[oe+1],_),oe=_;ve&&(c[_+1]=x_(c[_+1])),U6(c,He,_,!0,I),U6(c,He,_,!1,I),function l8(c,f,p,_,w){var I=w?c.residualClasses:c.residualStyles;null!=I&&"string"==typeof f&&Md(I,f)>=0&&(p[_+1]=oy(p[_+1]))}(f,He,c,_,I),V=zf(ee,oe),I?f.classBindings=V:f.styleBindings=V}function U6(c,f,p,_,w){for(var I=c[p+1],V=null===f,ee=_?ic(I):Eu(I),oe=!1;0!==ee&&(!1===oe||V);){var ve=c[ee],He=c[ee+1];u8(ve,f)&&(oe=!0,c[ee+1]=_?oy(He):x_(He)),ee=_?ic(He):Eu(He)}oe&&(c[p+1]=_?x_(I):oy(I))}function u8(c,f){return null===c||null==f||(Array.isArray(c)?c[1]:c)===f||!(!Array.isArray(c)||"string"!=typeof f)&&Md(c,f)>=0}var ja={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function H6(c){return c.substring(ja.key,ja.keyEnd)}function c8(c){return c.substring(ja.value,ja.valueEnd)}function tE(c,f){var p=ja.textEnd;return p===f?-1:(f=ja.keyEnd=function d8(c,f,p){for(;f<p&&c.charCodeAt(f)>32;)f++;return f}(c,ja.key=f,p),N_(c,f,p))}function nE(c,f){var p=ja.textEnd,_=ja.key=N_(c,f,p);return p===_?-1:(_=ja.keyEnd=function f8(c,f,p){for(var _;f<p&&(45===(_=c.charCodeAt(f))||95===_||(-33&_)>=65&&(-33&_)<=90||_>=48&&_<=57);)f++;return f}(c,_,p),_=z6(c,_,p,58),_=ja.value=N_(c,_,p),_=ja.valueEnd=function iE(c,f,p){for(var _=-1,w=-1,I=-1,V=f,ee=V;V<p;){var oe=c.charCodeAt(V++);if(59===oe)return ee;34===oe||39===oe?ee=V=W6(c,oe,V,p):f===V-4&&85===I&&82===w&&76===_&&40===oe?ee=V=W6(c,41,V,p):oe>32&&(ee=V),I=w,w=_,_=-33&oe}return ee}(c,_,p),z6(c,_,p,59))}function rE(c){ja.key=0,ja.keyEnd=0,ja.value=0,ja.valueEnd=0,ja.textEnd=c.length}function N_(c,f,p){for(;f<p&&c.charCodeAt(f)<=32;)f++;return f}function z6(c,f,p,_){return(f=N_(c,f,p))<p&&f++,f}function W6(c,f,p,_){for(var w=-1,I=p;I<_;){var V=c.charCodeAt(I++);if(V==f&&92!==w)return I;w=92==V&&92===w?0:V}throw new Error}function m1(c,f,p){return Ou(c,f,p,!1),m1}function Kf(c,f){return Ou(c,f,null,!0),Kf}function Au(c){Iu(g8,V6,c,!1)}function V6(c,f){for(var p=function G6(c){return rE(c),nE(c,N_(c,0,ja.textEnd))}(f);p>=0;p=nE(f,p))g8(c,H6(f),c8(f))}function Y6(c){Iu(Ua,oc,c,!0)}function oc(c,f){for(var p=function j6(c){return rE(c),tE(c,N_(c,0,ja.textEnd))}(f);p>=0;p=tE(f,p))Ua(c,H6(f),!0)}function Ou(c,f,p,_){var w=An(),I=we(),V=fs(2);(I.firstUpdatePass&&q6(I,c,V,_),f!==Wr&&Xa(w,V,f))&&v8(I,I.data[Ge()],w,w[11],c,w[V+1]=function IV(c,f){return null==c||("string"==typeof f?c+=f:"object"==typeof c&&(c=X(Pc(c)))),c}(f,p),_,V)}function Iu(c,f,p,_){var w=we(),I=fs(2);w.firstUpdatePass&&q6(w,null,I,_);var V=An();if(p!==Wr&&Xa(V,I,p)){var ee=w.data[Ge()];if(X6(ee,_)&&!K6(w,I)){var ve=_?ee.classesWithoutHost:ee.stylesWithoutHost;null!==ve&&(p=$(ve,p||"")),zS(w,ee,V,p,_)}else!function OV(c,f,p,_,w,I,V,ee){w===Wr&&(w=et);for(var oe=0,ve=0,He=0<w.length?w[0]:null,rt=0<I.length?I[0]:null;null!==He||null!==rt;){var pt=oe<w.length?w[oe+1]:void 0,wt=ve<I.length?I[ve+1]:void 0,en=null,_n=void 0;He===rt?(oe+=2,ve+=2,pt!==wt&&(en=rt,_n=wt)):null===rt||null!==He&&He<rt?(oe+=2,en=He):(ve+=2,en=rt,_n=wt),null!==en&&v8(c,f,p,_,en,_n,V,ee),He=oe<w.length?w[oe]:null,rt=ve<I.length?I[ve]:null}}(w,ee,V,V[11],V[I+1],V[I+1]=function _8(c,f,p){if(null==p||""===p)return et;var _=[],w=Pc(p);if(Array.isArray(w))for(var I=0;I<w.length;I++)c(_,w[I],!0);else if("object"==typeof w)for(var V in w)w.hasOwnProperty(V)&&c(_,V,w[V]);else"string"==typeof w&&f(_,w);return _}(c,f,p),_,I)}}function K6(c,f){return f>=c.expandoStartIndex}function q6(c,f,p,_){var w=c.data;if(null===w[p+1]){var I=w[Ge()],V=K6(c,p);X6(I,_)&&null===f&&!V&&(f=!1),f=function p8(c,f,p,_){var w=ps(c),I=_?f.residualClasses:f.residualStyles;if(null===w){0===(_?f.classBindings:f.styleBindings)&&(p=yy(p=oE(null,c,f,p,_),f.attrs,_),I=null)}else{var ee=f.directiveStylingLast;if(-1===ee||c[ee]!==w)if(p=oE(w,c,f,p,_),null===I){var ve=function h8(c,f,p){var _=p?f.classBindings:f.styleBindings;if(0!==Eu(_))return c[ic(_)]}(c,f,_);void 0!==ve&&Array.isArray(ve)&&function m8(c,f,p,_){var w=p?f.classBindings:f.styleBindings;c[ic(w)]=_}(c,f,_,ve=yy(ve=oE(null,c,f,ve[1],_),f.attrs,_))}else I=function J6(c,f,p){for(var _=void 0,w=f.directiveEnd,I=1+f.directiveStylingLast;I<w;I++){_=yy(_,c[I].hostAttrs,p)}return yy(_,f.attrs,p)}(c,f,_)}return void 0!==I&&(_?f.residualClasses=I:f.residualStyles=I),p}(w,I,f,_),s8(w,I,f,p,V,_)}}function oE(c,f,p,_,w){var I=null,V=p.directiveEnd,ee=p.directiveStylingLast;for(-1===ee?ee=p.directiveStart:ee++;ee<V&&(_=yy(_,(I=f[ee]).hostAttrs,w),I!==c);)ee++;return null!==c&&(p.directiveStylingLast=ee),_}function yy(c,f,p){var _=p?1:2,w=-1;if(null!==f)for(var I=0;I<f.length;I++){var V=f[I];"number"==typeof V?w=V:w===_&&(Array.isArray(c)||(c=void 0===c?[]:["",c]),Ua(c,V,!!p||f[++I]))}return void 0===c?null:c}function g8(c,f,p){Ua(c,f,Pc(p))}function v8(c,f,p,_,w,I,V,ee){if(3&f.type){var oe=c.data,ve=oe[ee+1];if(!aE(V3(ve)?Q6(oe,f,p,w,Eu(ve),V):void 0))aE(I)||W3(ve)&&(I=Q6(oe,null,p,w,ee,V)),function Ff(c,f,p,_,w){if(f)w?c.addClass(p,_):c.removeClass(p,_);else{var I=-1===_.indexOf("-")?void 0:Zv.DashCase;null==w?c.removeStyle(p,_,I):("string"==typeof w&&w.endsWith("!important")&&(w=w.slice(0,-10),I|=Zv.Important),c.setStyle(p,_,w,I))}}(_,V,xc(Ge(),p),w,I)}}function Q6(c,f,p,_,w,I){for(var V=null===f,ee=void 0;w>0;){var oe=c[w],ve=Array.isArray(oe),He=ve?oe[1]:oe,rt=null===He,pt=p[w+1];pt===Wr&&(pt=rt?et:void 0);var wt=rt?fC(pt,_):He===_?pt:void 0;if(ve&&!aE(wt)&&(wt=fC(oe,_)),aE(wt)&&(ee=wt,V))return ee;var en=c[w+1];w=V?ic(en):Eu(en)}if(null!==f){var _n=I?f.residualClasses:f.residualStyles;null!=_n&&(ee=fC(_n,_))}return ee}function aE(c){return void 0!==c}function X6(c,f){return 0!=(c.flags&(f?16:32))}function $6(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",p=An(),_=we(),w=c+22,I=_.firstCreatePass?Ld(_,w,1,f,null):_.data[w],V=p[w]=xM(p[11],f);SC(_,p,V,I),Ht(I,!1)}function eR(c){return sE("",c,""),eR}function sE(c,f,p){var _=An(),w=Ql(_,c,f,p);return w!==Wr&&Zd(_,Ge(),w),sE}function tR(c,f,p,_,w){var I=An(),V=Oh(I,c,f,p,_,w);return V!==Wr&&Zd(I,Ge(),V),tR}function nR(c,f,p,_,w,I,V){var ee=An(),oe=I_(ee,c,f,p,_,w,I,V);return oe!==Wr&&Zd(ee,Ge(),oe),nR}function _1(c,f,p,_,w,I,V,ee,oe){var ve=An(),He=P_(ve,c,f,p,_,w,I,V,ee,oe);return He!==Wr&&Zd(ve,Ge(),He),_1}function lE(c,f,p,_,w,I,V,ee,oe,ve,He){var rt=An(),pt=Ih(rt,c,f,p,_,w,I,V,ee,oe,ve,He);return pt!==Wr&&Zd(rt,Ge(),pt),lE}function y8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt){var wt=An(),en=R_(wt,c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt);return en!==Wr&&Zd(wt,Ge(),en),y8}function b8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en){var _n=An(),Un=L_(_n,c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en);return Un!==Wr&&Zd(_n,Ge(),Un),b8}function C8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un){var Qn=An(),Xn=Z_(Qn,c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un);return Xn!==Wr&&Zd(Qn,Ge(),Xn),C8}function w8(c){var f=An(),p=O_(f,c);return p!==Wr&&Zd(f,Ge(),p),w8}function rR(c,f,p){Iu(Ua,oc,Ql(An(),c,f,p),!0)}function k8(c,f,p,_,w){Iu(Ua,oc,Oh(An(),c,f,p,_,w),!0)}function PV(c,f,p,_,w,I,V){Iu(Ua,oc,I_(An(),c,f,p,_,w,I,V),!0)}function RV(c,f,p,_,w,I,V,ee,oe){Iu(Ua,oc,P_(An(),c,f,p,_,w,I,V,ee,oe),!0)}function LV(c,f,p,_,w,I,V,ee,oe,ve,He){Iu(Ua,oc,Ih(An(),c,f,p,_,w,I,V,ee,oe,ve,He),!0)}function ZV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt){Iu(Ua,oc,R_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt),!0)}function NV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en){Iu(Ua,oc,L_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en),!0)}function BV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un){Iu(Ua,oc,Z_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un),!0)}function FV(c){Iu(Ua,oc,O_(An(),c),!0)}function UV(c,f,p){Au(Ql(An(),c,f,p))}function HV(c,f,p,_,w){Au(Oh(An(),c,f,p,_,w))}function jV(c,f,p,_,w,I,V){Au(I_(An(),c,f,p,_,w,I,V))}function GV(c,f,p,_,w,I,V,ee,oe){Au(P_(An(),c,f,p,_,w,I,V,ee,oe))}function zV(c,f,p,_,w,I,V,ee,oe,ve,He){Au(Ih(An(),c,f,p,_,w,I,V,ee,oe,ve,He))}function WV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt){Au(R_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt))}function VV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en){Au(L_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en))}function YV(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un){Au(Z_(An(),c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un))}function T8(c){Au(O_(An(),c))}function M8(c,f,p,_,w){return Ou(c,Ql(An(),f,p,_),w,!1),M8}function S8(c,f,p,_,w,I,V){return Ou(c,Oh(An(),f,p,_,w,I),V,!1),S8}function E8(c,f,p,_,w,I,V,ee,oe){return Ou(c,I_(An(),f,p,_,w,I,V,ee),oe,!1),E8}function x8(c,f,p,_,w,I,V,ee,oe,ve,He){return Ou(c,P_(An(),f,p,_,w,I,V,ee,oe,ve),He,!1),x8}function D8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt){return Ou(c,Ih(An(),f,p,_,w,I,V,ee,oe,ve,He,rt),pt,!1),D8}function A8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en){return Ou(c,R_(An(),f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt),en,!1),A8}function O8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un){return Ou(c,L_(An(),f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n),Un,!1),O8}function I8(c,f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn,Xn){return Ou(c,Z_(An(),f,p,_,w,I,V,ee,oe,ve,He,rt,pt,wt,en,_n,Un,Qn),Xn,!1),I8}function P8(c,f,p){return Ou(c,O_(An(),f),p,!1),P8}function iR(c,f,p){var _=An();Xa(_,hl(),f)&&$s(we(),Wt(),_,c,f,_[11],p,!0);return iR}function oR(c,f,p){var _=An();if(Xa(_,hl(),f)){var I=we(),V=Wt();$s(I,V,_,c,f,g6(ps(I.data),V,_),p,!0)}return oR}var B_=void 0;var U_,qV=["en",[["a","p"],["AM","PM"],B_],[["AM","PM"],B_,B_],[["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"]],B_,[["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"]],B_,[["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}",B_,"{1} 'at' {0}",B_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function KV(c){var p=Math.floor(Math.abs(c)),_=c.toString().replace(/^[^.]*\.?/,"").length;return 1===p&&0===_?1:5}],F_={};function aR(c){var f=function Z8(c){return c.toLowerCase().replace(/_/g,"-")}(c),p=L8(f);if(p)return p;var _=f.split("-")[0];if(p=L8(_))return p;if("en"===_)return qV;throw new de(701,!1)}function R8(c){return aR(c)[U_.PluralCase]}function L8(c){return c in F_||(F_[c]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[c]),F_[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"}(U_||(U_={}));var JV=["zero","one","two","few","many"];var yl,by="en-US",uE={marker:"element"},cE={marker:"ICU"};!function(c){c[c.SHIFT=2]="SHIFT",c[c.APPEND_EAGERLY=1]="APPEND_EAGERLY",c[c.COMMENT=2]="COMMENT"}(yl||(yl={}));var N8=by;function dE(c){Ut(c,"Expected localeId to be defined"),"string"==typeof c&&(N8=c.toLowerCase().replace(/_/g,"-"))}function B8(c,f,p){var _=f.insertBeforeIndex,w=Array.isArray(_)?_[0]:_;return null===w?Gv(c,0,p):so(p[w])}function F8(c,f,p,_,w){var I=f.insertBeforeIndex;if(Array.isArray(I)){var V=_,ee=null;if(3&f.type||(ee=V,V=w),null!==V&&0==(2&f.flags))for(var oe=1;oe<I.length;oe++){Nf(c,V,p[I[oe]],ee,!1)}}}function U8(c,f){if(c.push(f),c.length>1)for(var p=c.length-2;p>=0;p--){var _=c[p];H8(_)||eY(_,f)&&null===tY(_)&&j8(_,f.index)}}function H8(c){return!(64&c.type)}function eY(c,f){return H8(f)||c.index>f.index}function tY(c){var f=c.insertBeforeIndex;return Array.isArray(f)?f[0]:f}function j8(c,f){var p=c.insertBeforeIndex;Array.isArray(p)?p[0]=f:(f_(B8,F8),c.insertBeforeIndex=f)}function g1(c,f){var p=c.data[f];return null===p||"string"==typeof p?null:p.hasOwnProperty("currentCaseLViewIndex")?p:p.value}function G8(c,f,p){var _=ES(c,p,64,null,null);return U8(f,_),_}function wy(c,f){var p=f[c.currentCaseLViewIndex];return null===p?p:p<0?~p:p}function sR(c){return c>>>17}function z8(c){return(131070&c)>>>1}var ky=0,v1=0;function Y8(c,f,p,_){for(var w=c[11],I=0;I<f.length;I++){var V=f[I++],ee=f[I],oe=(V&yl.COMMENT)===yl.COMMENT,ve=(V&yl.APPEND_EAGERLY)===yl.APPEND_EAGERLY,He=V>>>yl.SHIFT,rt=c[He];null===rt&&(rt=c[He]=oe?w.createComment(ee):xM(w,ee)),ve&&null!==p&&Nf(w,p,rt,_,!1)}}function uR(c,f,p,_){for(var V,w=p[11],I=null,ee=0;ee<f.length;ee++){var oe=f[ee];if("string"==typeof oe){var ve=f[++ee];null===p[ve]&&(p[ve]=xM(w,oe))}else if("number"==typeof oe)switch(1&oe){case 0:var He=sR(oe);null===I&&(I=He,V=jv(w,_));var rt=void 0,pt=void 0;if(He===I?(rt=_,pt=V):(rt=null,pt=so(p[He])),null!==pt){var wt=z8(oe);Nf(w,pt,p[wt],rt,!1);var _n=g1(c,wt);if(null!==_n&&"object"==typeof _n){var Un=wy(_n,p);null!==Un&&uR(c,_n.create[Un],p,p[_n.anchorIdx])}}break;case 1:var Qn=oe>>>1,Xn=f[++ee],wn=f[++ee];IS(w,xc(Qn,p),null,null,Xn,wn,null)}else switch(oe){case cE:var br=f[++ee],gi=f[++ee];if(null===p[gi])Ps(p[gi]=cV(w,br),p);break;case uE:var $a=f[++ee],es=f[++ee];if(null===p[es])Ps(p[es]=Sd(w,$a,null),p)}}}function cR(c,f,p,_,w){for(var I=0;I<p.length;I++){var V=p[I],ee=p[++I];if(V&w)for(var oe="",ve=I+1;ve<=I+ee;ve++){var He=p[ve];if("string"==typeof He)oe+=He;else if("number"==typeof He)if(He<0)oe+=ce(f[_-He]);else{var rt=He>>>2;switch(3&He){case 1:var pt=p[++ve],wt=p[++ve],en=c.data[rt];"string"==typeof en?IS(f[11],f[rt],null,en,pt,oe,wt):$s(c,en,f,pt,oe,f[11],wt,!1);break;case 0:var _n=f[rt];null!==_n&&Sa(f[11],_n,oe);break;case 2:q8(c,g1(c,rt),f,oe);break;case 3:K8(c,g1(c,rt),_,f)}}}else{var Un=p[I+1];if(Un>0&&3==(3&Un)){var Xn=g1(c,Un>>>2);f[Xn.currentCaseLViewIndex]<0&&K8(c,Xn,_,f)}}I+=ee}}function K8(c,f,p,_){var w=_[f.currentCaseLViewIndex];if(null!==w){var I=ky;w<0&&(w=_[f.currentCaseLViewIndex]=~w,I=-1),cR(c,_,f.update[w],p,I)}}function q8(c,f,p,_){var w=function Q8(c,f){var p=c.cases.indexOf(f);if(-1===p)switch(c.type){case 1:var _=function QV(c,f){var p=R8(f)(parseInt(c,10)),_=JV[p];return void 0!==_?_:"other"}(f,function $V(){return N8}());-1===(p=c.cases.indexOf(_))&&"other"!==_&&(p=c.cases.indexOf("other"));break;case 0:p=c.cases.indexOf("other")}return-1===p?null:p}(f,_);if(wy(f,p)!==w&&(J8(c,f,p),p[f.currentCaseLViewIndex]=null===w?null:~w,null!==w)){var V=p[f.anchorIdx];V&&uR(c,f.create[w],p,V)}}function J8(c,f,p){var _=wy(f,p);if(null!==_)for(var w=f.remove[_],I=0;I<w.length;I++){var V=w[I];if(V>0){var ee=xc(V,p);null!==ee&&Bf(p[11],ee)}else J8(c,g1(c,~V),p)}}function X8(){var p,_,c=[],f=-1;function I(ee,oe){f=0;var ve=wy(ee,oe);_=null!==ve?ee.remove[ve]:et}function V(){if(f<_.length){var ee=_[f++];if(ee>0)return p[ee];c.push(f,_);var ve=~ee;return I(p[1].data[ve],p),V()}return 0===c.length?null:(_=c.pop(),f=c.pop(),V())}return function w(ee,oe){for(p=oe;c.length;)c.pop();return I(ee.value,oe),V}}var y1=/\ufffd(\d+):?\d*\ufffd/gi,iY=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,$8=/\ufffd(\d+)\ufffd/,Ii=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Mn="\ufffd",Yr=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,In=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Ea=/\uE500/g;function tU(c,f,p,_,w,I){var V=mt(),ee=[],oe=[],ve=[[]];w=function ha(c,f){if(function pa(c){return-1===c}(f))return bo(c);var p=c.indexOf(":".concat(f).concat(Mn))+2+f.toString().length,_=c.search(new RegExp("".concat(Mn,"\\/\\*\\d+:").concat(f).concat(Mn)));return bo(c.substring(p,_))}(w,I);for(var He=function eU(c){return c.replace(Ea," ")}(w).split(In),rt=0;rt<He.length;rt++){var pt=He[rt];if(0==(1&rt))for(var wt=qf(pt),en=0;en<wt.length;en++){var _n=wt[en];if(0==(1&en)){var Un=_n;""!==Un&&ji(c,V,ve[0],ee,oe,p,Un)}else{var Qn=_n;if("object"!=typeof Qn)throw new Error('Unable to parse ICU expression in "'.concat(w,'" message.'));Ls(c,p,oe,f,Qn,$i(c,V,ve[0],p,ee,"",!0).index)}}else{var br=47===pt.charCodeAt(0),wi=(pt.charCodeAt(br?1:0),22+Number.parseInt(pt.substring(br?2:1)));if(br)ve.shift(),Ht(mt(),!1);else{var $a=G8(c,ve[0],wi);ve.unshift([]),Ht($a,!0)}}}c.data[_]={create:ee,update:oe}}function $i(c,f,p,_,w,I,V){var ee=uy(c,_,1,null),oe=ee<<yl.SHIFT,ve=mt();f===ve&&(ve=null),null===ve&&(oe|=yl.APPEND_EAGERLY),V&&(oe|=yl.COMMENT,function T5(c){void 0===MM&&(MM=c())}(X8)),w.push(oe,null===I?"":I);var He=ES(c,ee,V?32:1,null===I?"":I,null);U8(p,He);var rt=He.index;return Ht(He,!1),null!==ve&&f!==ve&&function fE(c,f){var p=c.insertBeforeIndex;null===p?(f_(B8,F8),p=c.insertBeforeIndex=[null,f]):(Ft(Array.isArray(p),!0,"Expecting array here"),p.push(f))}(ve,rt),He}function ji(c,f,p,_,w,I,V){var ee=V.match(y1),oe=$i(c,f,p,I,_,ee?null:V,!1);ee&&eo(w,V,oe.index,null,0,null)}function eo(c,f,p,_,w,I){var V=c.length,ee=V+1;c.push(null,null);for(var oe=V+2,ve=f.split(y1),He=0,rt=0;rt<ve.length;rt++){var pt=ve[rt];if(1&rt){var wt=w+parseInt(pt,10);c.push(-1-wt),He|=Ei(wt)}else""!==pt&&c.push(pt)}return c.push(p<<2|(_?1:0)),_&&c.push(_,I),c[V]=He,c[ee]=c.length-oe,He}function $n(c){for(var f=0,p=0;p<c.length;p++){var _=c[p];"number"==typeof _&&_<0&&f++}return f}function Ei(c){return 1<<Math.min(c,31)}function bo(c){for(var f,I,p="",_=0,w=!1;null!==(f=Yr.exec(c));)w?f[0]==="".concat(Mn,"/*").concat(I).concat(Mn)&&(_=f.index,w=!1):(p+=c.substring(_,f.index+f[0].length),I=f[1],w=!0);return p+=c.slice(_)}function Ls(c,f,p,_,w,I){var V=0,ee={type:w.type,currentCaseLViewIndex:uy(c,f,1,null),anchorIdx:I,cases:[],create:[],remove:[],update:[]};(function _E(c,f,p){c.push(Ei(f.mainBinding),2,-1-f.mainBinding,p<<2|2)})(p,w,I),function Cy(c,f,p){var _=c.data[f];null===_?c.data[f]=p:_.value=p}(c,I,ee);for(var oe=w.values,ve=0;ve<oe.length;ve++){for(var He=oe[ve],rt=[],pt=0;pt<He.length;pt++){var wt=He[pt];if("string"!=typeof wt){var en=rt.push(wt)-1;He[pt]="\x3c!--\ufffd".concat(en,"\ufffd--\x3e")}}V=fR(c,ee,f,p,_,w.cases[ve],He.join(""),rt)|V}V&&function gE(c,f,p){c.push(f,1,p<<2|3)}(p,V,I)}function hE(c){for(var f=[],p=[],_=1,w=0,I=qf(c=c.replace(Ii,function(ve,He,rt){return _="select"===rt?0:1,w=parseInt(He.slice(1),10),""})),V=0;V<I.length;){var ee=I[V++].trim();1===_&&(ee=ee.replace(/\s*(?:=)?(\w+)\s*/,"$1")),ee.length&&f.push(ee);var oe=qf(I[V++]);f.length>p.length&&p.push(oe)}return{type:_,mainBinding:w,cases:f,values:p}}function qf(c){if(!c)return[];var I,f=0,p=[],_=[],w=/[{}]/g;for(w.lastIndex=0;I=w.exec(c);){var V=I.index;if("}"==I[0]){if(p.pop(),0==p.length){var ee=c.substring(f,V);Ii.test(ee)?_.push(hE(ee)):_.push(ee),f=V+1}}else{if(0==p.length){var oe=c.substring(f,V);_.push(oe),f=V+1}p.push("{")}}var ve=c.substring(f);return _.push(ve),_}function fR(c,f,p,_,w,I,V,ee){var oe=[],ve=[],He=[];f.cases.push(I),f.create.push(oe),f.remove.push(ve),f.update.push(He);var pt=A5(m_()).getInertBodyElement(V),wt=HM(pt)||pt;return wt?Ty(c,f,p,_,oe,ve,He,wt,w,ee,0):0}function Ty(c,f,p,_,w,I,V,ee,oe,ve,He){for(var rt=0,pt=ee.firstChild;pt;){var wt=uy(c,p,1,null);switch(pt.nodeType){case Node.ELEMENT_NODE:var en=pt,_n=en.tagName.toLowerCase();if(NM.hasOwnProperty(_n)){My(w,uE,_n,oe,wt),c.data[wt]=_n;for(var Un=en.attributes,Qn=0;Qn<Un.length;Qn++){var Xn=Un.item(Qn),wn=Xn.name.toLowerCase();!!Xn.value.match(y1)?FM.hasOwnProperty(wn)&&(BM[wn]?eo(V,Xn.value,wt,Xn.name,0,OC):eo(V,Xn.value,wt,Xn.name,0,null)):Sy(w,wt,Xn)}rt=Ty(c,f,p,_,w,I,V,pt,wt,ve,He+1)|rt,mE(I,wt,He)}break;case Node.TEXT_NODE:var gi=pt.textContent||"",wi=gi.match(y1);My(w,null,wi?"":gi,oe,wt),mE(I,wt,He),wi&&(rt=eo(V,gi,wt,null,0,null)|rt);break;case Node.COMMENT_NODE:var $a=$8.exec(pt.textContent||"");if($a){var wl=ve[parseInt($a[1],10)];My(w,cE,"",oe,wt),Ls(c,p,_,oe,wl,wt),nU(I,wt,He)}}pt=pt.nextSibling}return rt}function mE(c,f,p){0===p&&c.push(f)}function nU(c,f,p){0===p&&(c.push(~f),c.push(f))}function My(c,f,p,_,w){null!==f&&c.push(f),c.push(p,w,function lR(c,f,p){return c|f<<17|p<<1}(0,_,w))}function Sy(c,f,p){c.push(f<<1|1,p.name,p.value)}var pR=/\[(\ufffd.+?\ufffd?)\]/,hR=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,mR=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,rU=/{([A-Z0-9_]+)}/g,_R=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,gR=/\/\*/,vR=/\d+\:(\d+)/;function b1(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=c;if(pR.test(c)){var _={},w=[0];p=p.replace(hR,function(I,V,ee){var oe=V||ee,ve=_[oe]||[];if(ve.length||(oe.split("|").forEach(function(Qn){var Xn=Qn.match(vR),wn=Xn?parseInt(Xn[1],10):0,br=gR.test(Qn);ve.push([wn,br,Qn])}),_[oe]=ve),!ve.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(oe));for(var He=w[w.length-1],rt=0,pt=0;pt<ve.length;pt++)if(ve[pt][0]===He){rt=pt;break}var wt=(0,A.Z)(ve[rt],3),en=wt[0],_n=wt[1],Un=wt[2];return _n?w.pop():He!==en&&w.push(en),ve.splice(rt,1),Un})}return Object.keys(f).length&&(p=(p=(p=p.replace(mR,function(I,V,ee,oe,ve,He){return f.hasOwnProperty(ee)?"".concat(V).concat(f[ee]).concat(He):I})).replace(rU,function(I,V){return f.hasOwnProperty(V)?f[V]:I})).replace(_R,function(I,V){if(f.hasOwnProperty(V)){var ee=f[V];if(!ee.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(I," with key: ").concat(V));return ee.shift()}return I})),p}function yR(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,_=we(),w=An(),I=22+c,V=Ul(_.consts,f),ee=mt();_.firstCreatePass&&tU(_,null===ee?0:ee.index,w,I,V,p);var oe=_.data[I],ve=ee===w[6]?null:ee,He=AM(_,ve,w),rt=ee&&8&ee.type?w[ee.index]:null;Y8(w,oe.create,He,rt),oh(!0)}function C1(){oh(!1)}function iU(c,f,p){yR(c,f,p),C1()}function w1(c,f){var p=we();!function Nr(c,f,p){var w=Me().index,I=[];if(c.firstCreatePass&&null===c.data[f]){for(var V=0;V<p.length;V+=2){var ee=p[V],oe=p[V+1];if(""!==oe){if(iY.test(oe))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(oe,'".'));eo(I,oe,w,ee,$n(I),null)}}c.data[f]=I}}(p,c+22,Ul(p.consts,f))}function yE(c){return function W8(c){c&&(ky|=1<<Math.min(v1,31)),v1++}(Xa(An(),hl(),c)),yE}function Ey(c){!function V8(c,f,p){if(v1>0){var _=c.data[p];cR(c,f,Array.isArray(_)?_:_.update,Ta()-v1-1,ky)}ky=0,v1=0}(we(),An(),c+22)}function bR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b1(c,f)}function CR(c,f,p){var _=we();if(_.firstCreatePass){var w=Jt(c);bE(p,_.data,_.blueprint,w,!0),bE(f,_.data,_.blueprint,w,!1)}}function bE(c,f,p,_,w){if(c=ne(c),Array.isArray(c))for(var I=0;I<c.length;I++)bE(c[I],f,p,_,w);else{var V=we(),ee=An(),oe=Od(c)?c:ne(c.provide),ve=Su(c),He=Me(),rt=1048575&He.providerIndexes,pt=He.directiveStart,wt=He.providerIndexes>>20;if(Od(c)||!c.multi){var en=new he(ve,w,E_),_n=Rh(oe,f,w?rt:rt+wt,pt);-1===_n?(n_(xv(He,ee),V,oe),wR(V,c,f.length),f.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),p.push(en),ee.push(en)):(p[_n]=en,ee[_n]=en)}else{var Un=Rh(oe,f,rt+wt,pt),Qn=Rh(oe,f,rt,rt+wt),Xn=Un>=0&&p[Un],wn=Qn>=0&&p[Qn];if(w&&!wn||!w&&!Xn){n_(xv(He,ee),V,oe);var br=function sU(c,f,p,_,w){var I=new he(c,p,E_);return I.multi=[],I.index=f,I.componentProviders=0,oU(I,w,_&&!p),I}(w?kR:aU,p.length,w,_,ve);!w&&wn&&(p[Qn].providerFactory=br),wR(V,c,f.length,0),f.push(oe),He.directiveStart++,He.directiveEnd++,w&&(He.providerIndexes+=1048576),p.push(br),ee.push(br)}else{wR(V,c,Un>-1?Un:Qn,oU(p[w?Qn:Un],ve,!w&&_))}!w&&_&&wn&&p[Qn].componentProviders++}}}function wR(c,f,p,_){var w=Od(f),I=function BC(c){return!!c.useClass}(f);if(w||I){var oe=(I?ne(f.useClass):f).prototype.ngOnDestroy;if(oe){var ve=c.destroyHooks||(c.destroyHooks=[]);if(!w&&f.multi){var He=ve.indexOf(p);-1===He?ve.push(p,[_,oe]):ve[He+1].push(_,oe)}else ve.push(p,oe)}}}function oU(c,f,p){return p&&c.componentProviders++,c.multi.push(f)-1}function Rh(c,f,p,_){for(var w=p;w<_;w++)if(f[w]===c)return w;return-1}function aU(c,f,p,_){return k1(this.multi,[])}function kR(c,f,p,_){var I,w=this.multi;if(this.providerFactory){var V=this.providerFactory.componentProviders,ee=Av(p,p[1],this.providerFactory.index,_);k1(w,I=ee.slice(0,V));for(var oe=V;oe<ee.length;oe++)I.push(ee[oe])}else k1(w,I=[]);return I}function k1(c,f){for(var p=0;p<c.length;p++){var _=c[p];f.push(_())}return f}function CE(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(p){p.providersResolver=function(_,w){return CR(_,w?w(c):c,f)}}}var Lh=(0,L.Z)(function c(){(0,v.Z)(this,c)}),TR=(0,L.Z)(function c(){(0,v.Z)(this,c)});function T1(c,f){return new MR(c,null!=f?f:null)}var MR=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w){var I;(0,v.Z)(this,p),(I=f.call(this))._parent=w,I._bootstrapComponents=[],I.destroyCbs=[],I.componentFactoryResolver=new NS((0,P.Z)(I));var V=Gi(_);return I._bootstrapComponents=Nc(V.bootstrap),I._r3Injector=aS(_,w,[{provide:Lh,useValue:(0,P.Z)(I)},{provide:C_,useValue:I.componentFactoryResolver}],X(_),new Set(["environment"])),I._r3Injector.resolveInjectorInitializers(),I.instance=I._r3Injector.get(_),I}return(0,L.Z)(p,[{key:"injector",get:function(){return this._r3Injector}},{key:"destroy",value:function(){var w=this._r3Injector;!w.destroyed&&w.destroy(),this.destroyCbs.forEach(function(I){return I()}),this.destroyCbs=null}},{key:"onDestroy",value:function(w){this.destroyCbs.push(w)}}]),p}(Lh),Uc=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_){var w;return(0,v.Z)(this,p),(w=f.call(this)).moduleType=_,w}return(0,L.Z)(p,[{key:"create",value:function(w){return new MR(this.moduleType,w)}}]),p}(TR),wE=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var V;(0,v.Z)(this,p),(V=f.call(this)).componentFactoryResolver=new NS((0,P.Z)(V)),V.instance=null;var ee=new FC([].concat((0,D.Z)(_),[{provide:Lh,useValue:(0,P.Z)(V)},{provide:C_,useValue:V.componentFactoryResolver}]),w||Vl(),I,new Set(["environment"]));return V.injector=ee,ee.resolveInjectorInitializers(),V}return(0,L.Z)(p,[{key:"destroy",value:function(){this.injector.destroy()}},{key:"onDestroy",value:function(w){this.injector.onDestroy(w)}}]),p}(Lh);function Dy(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,_=new wE(c,f,p);return _.injector}var Jf=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this.cachedInjectors=new Map}return(0,L.Z)(c,[{key:"getOrCreateStandaloneInjector",value:function(p){if(!p.standalone)return null;if(!this.cachedInjectors.has(p.id)){var _=ZC(!1,p.type),w=_.length>0?Dy([_],this._injector,"Standalone[".concat(p.type.name,"]")):null;this.cachedInjectors.set(p.id,w)}return this.cachedInjectors.get(p.id)}},{key:"ngOnDestroy",value:function(){try{var _,p=(0,E.Z)(this.cachedInjectors.values());try{for(p.s();!(_=p.n()).done;){var w=_.value;null!==w&&w.destroy()}}catch(I){p.e(I)}finally{p.f()}}finally{this.cachedInjectors.clear()}}}]),c}();function kE(c){c.getStandaloneInjector=function(f){return f.get(Jf).getOrCreateStandaloneInjector(c)}}function Oy(c,f,p,_){return jt(function(){var w=c;if(null!==f)if(w.hasOwnProperty("decorators")&&void 0!==w.decorators){var I;(I=w.decorators).push.apply(I,(0,D.Z)(f))}else w.decorators=f;null!==p&&(w.ctorParameters=p),null!==_&&(w.hasOwnProperty("propDecorators")&&void 0!==w.propDecorators?w.propDecorators=Object.assign(Object.assign({},w.propDecorators),_):w.propDecorators=_)})}function qn(c,f,p){var _=Xo()+c,w=An();return w[_]===Wr?Fc(w,_,p?f.call(p):f()):py(w,_)}function xR(c,f,p,_){return AR(An(),Xo(),c,f,p,_)}function DR(c,f,p,_,w){return OR(An(),Xo(),c,f,p,_,w)}function cU(c,f,p,_,w,I){return el(An(),Xo(),c,f,p,_,w,I)}function dU(c,f,p,_,w,I,V){return S1(An(),Xo(),c,f,p,_,w,I,V)}function ME(c,f,p,_,w,I,V,ee){var oe=Xo()+c,ve=An(),He=Jl(ve,oe,p,_,w,I);return Xa(ve,oe+4,V)||He?Fc(ve,oe+5,ee?f.call(ee,p,_,w,I,V):f(p,_,w,I,V)):py(ve,oe+5)}function z_(c,f,p,_,w,I,V,ee,oe){var ve=Xo()+c,He=An(),rt=Jl(He,ve,p,_,w,I);return Ah(He,ve+4,V,ee)||rt?Fc(He,ve+6,oe?f.call(oe,p,_,w,I,V,ee):f(p,_,w,I,V,ee)):py(He,ve+6)}function fU(c,f,p,_,w,I,V,ee,oe,ve){var He=Xo()+c,rt=An(),pt=Jl(rt,He,p,_,w,I);return o1(rt,He+4,V,ee,oe)||pt?Fc(rt,He+7,ve?f.call(ve,p,_,w,I,V,ee,oe):f(p,_,w,I,V,ee,oe)):py(rt,He+7)}function Hc(c,f,p,_,w,I,V,ee,oe,ve,He){var rt=Xo()+c,pt=An(),wt=Jl(pt,rt,p,_,w,I);return Jl(pt,rt+4,V,ee,oe,ve)||wt?Fc(pt,rt+8,He?f.call(He,p,_,w,I,V,ee,oe,ve):f(p,_,w,I,V,ee,oe,ve)):py(pt,rt+8)}function jc(c,f,p,_){return Qf(An(),Xo(),c,f,p,_)}function Pu(c,f){var p=c[f];return p===Wr?void 0:p}function AR(c,f,p,_,w,I){var V=f+p;return Xa(c,V,w)?Fc(c,V+1,I?_.call(I,w):_(w)):Pu(c,V+1)}function OR(c,f,p,_,w,I,V){var ee=f+p;return Ah(c,ee,w,I)?Fc(c,ee+2,V?_.call(V,w,I):_(w,I)):Pu(c,ee+2)}function el(c,f,p,_,w,I,V,ee){var oe=f+p;return o1(c,oe,w,I,V)?Fc(c,oe+3,ee?_.call(ee,w,I,V):_(w,I,V)):Pu(c,oe+3)}function S1(c,f,p,_,w,I,V,ee,oe){var ve=f+p;return Jl(c,ve,w,I,V,ee)?Fc(c,ve+4,oe?_.call(oe,w,I,V,ee):_(w,I,V,ee)):Pu(c,ve+4)}function Qf(c,f,p,_,w,I){for(var V=f+p,ee=!1,oe=0;oe<w.length;oe++)Xa(c,V++,w[oe])&&(ee=!0);return ee?Fc(c,V,_.apply(I,w)):Pu(c,V)}function Nh(c,f){var _,p=we(),w=c+22;p.firstCreatePass?(_=function Bh(c,f){if(f)for(var p=f.length-1;p>=0;p--){var _=f[p];if(c===_.name)return _}}(f,p.pipeRegistry),p.data[w]=_,_.onDestroy&&(p.destroyHooks||(p.destroyHooks=[])).push(w,_.onDestroy)):_=p.data[w];var I=_.factory||(_.factory=oo(_.type)),V=st(E_);try{var ee=$u(!1),oe=I();return $u(ee),function x6(c,f,p,_){p>=c.data.length&&(c.data[p]=null,c.blueprint[p]=null),f[p]=_}(p,An(),w,oe),oe}finally{st(V)}}function E1(c,f,p){var _=c+22,w=An(),I=cs(w,_);return Iy(w,_)?AR(w,Xo(),f,I.transform,p,I):I.transform(p)}function Xf(c,f,p,_){var w=c+22,I=An(),V=cs(I,w);return Iy(I,w)?OR(I,Xo(),f,V.transform,p,_,V):V.transform(p,_)}function hU(c,f,p,_,w){var I=c+22,V=An(),ee=cs(V,I);return Iy(V,I)?el(V,Xo(),f,ee.transform,p,_,w,ee):ee.transform(p,_,w)}function Fh(c,f,p,_,w,I){var V=c+22,ee=An(),oe=cs(ee,V);return Iy(ee,V)?S1(ee,Xo(),f,oe.transform,p,_,w,I,oe):oe.transform(p,_,w,I)}function mU(c,f,p){var _=c+22,w=An(),I=cs(w,_);return Iy(w,_)?Qf(w,Xo(),f,I.transform,p,I):I.transform.apply(I,p)}function Iy(c,f){return c[1].data[f].pure}Jf.\u0275prov=ge({token:Jf,providedIn:"environment",factory:function(){return new Jf(fa(Mu))}});var Nd=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){var _,w=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,v.Z)(this,p),(_=f.call(this)).__isAsync=w,_}return(0,L.Z)(p,[{key:"emit",value:function(w){(0,G.Z)((0,W.Z)(p.prototype),"next",this).call(this,w)}},{key:"subscribe",value:function(w,I,V){var ee,oe,ve,He=w,rt=I||function(){return null},pt=V;if(w&&"object"==typeof w){var wt=w;He=null===(ee=wt.next)||void 0===ee?void 0:ee.bind(wt),rt=null===(oe=wt.error)||void 0===oe?void 0:oe.bind(wt),pt=null===(ve=wt.complete)||void 0===ve?void 0:ve.bind(wt)}this.__isAsync&&(rt=SE(rt),He&&(He=SE(He)),pt&&(pt=SE(pt)));var en=(0,G.Z)((0,W.Z)(p.prototype),"subscribe",this).call(this,{next:He,error:rt,complete:pt});return w instanceof S.w&&w.add(en),en}}]),p}(y.xQ);function SE(c){return function(f){setTimeout(c,void 0,f)}}var Gc=Nd;function Bd(){return this._results[Dh()]()}var Fd=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,v.Z)(this,c),this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var p=Dh(),_=c.prototype;_[p]||(_[p]=Bd)}return(0,L.Z)(c,[{key:"changes",get:function(){return this._changes||(this._changes=new Gc)}},{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 w=this;w.dirty=!1;var I=Gl(p);(this._changesDetected=!function n5(c,f,p){if(c.length!==f.length)return!1;for(var _=0;_<c.length;_++){var w=c[_],I=f[_];if(p&&(w=p(w),I=p(I)),I!==w)return!1}return!0}(w._results,I,_))&&(w._results=I,w.length=I.length,w.last=I[this.length-1],w.first=I[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}(),Ga=(0,L.Z)(function c(){(0,v.Z)(this,c)});Ga.__NG_ELEMENT_ID__=function jh(){return ac(Me(),An())};var Hh=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var V;return(0,v.Z)(this,p),(V=f.call(this))._declarationLView=_,V._declarationTContainer=w,V.elementRef=I,V}return(0,L.Z)(p,[{key:"createEmbeddedView",value:function(w,I){var V=this._declarationTContainer.tViews,ee=SS(this._declarationLView,V,w,16,null,V.declTNode,null,null,null,null,I||null),oe=this._declarationLView[this._declarationTContainer.index];ee[17]=oe;var ve=this._declarationLView[19];return null!==ve&&(ee[19]=ve.createEmbeddedView(V)),xS(V,ee,w),new xh(ee)}}]),p}(Ga);function ac(c,f){return 4&c.type?new Hh(f,c,w_(c,f)):null}var W_=(0,L.Z)(function c(){(0,v.Z)(this,c)});W_.__NG_ELEMENT_ID__=function _U(){return yU(Me(),An())};var gU=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(_,w,I){var V;return(0,v.Z)(this,p),(V=f.call(this))._lContainer=_,V._hostTNode=w,V._hostLView=I,V}return(0,L.Z)(p,[{key:"element",get:function(){return w_(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new Jn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var w=Os(this._hostTNode,this._hostLView);if(Js(w)){var I=Go(w,this._hostLView),V=Si(w),ee=I[1].data[V+8];return new Jn(ee,I)}return new Jn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(w){var I=vU(this._lContainer);return null!==I&&I[w]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(w,I,V){var ee,oe;"number"==typeof V?ee=V:null!=V&&(ee=V.index,oe=V.injector);var ve=w.createEmbeddedView(I||{},oe);return this.insert(ve,ee),ve}},{key:"createComponent",value:function(w,I,V,ee,oe){var He,ve=w&&!Le(w);if(ve)He=I;else{var rt=I||{};He=rt.index,V=rt.injector,ee=rt.projectableNodes,oe=rt.environmentInjector||rt.ngModuleRef}var pt=ve?w:new A_(Wn(w)),wt=V||this.parentInjector;if(!oe&&null==pt.ngModule){var _n=(ve?wt:this.parentInjector).get(Mu,null);_n&&(oe=_n)}var Un=pt.create(wt,ee,void 0,oe);return this.insert(Un.hostView,He),Un}},{key:"insert",value:function(w,I){var V=w._lView,ee=V[1];if(function Ku(c){return Ui(c[3])}(V)){var oe=this.indexOf(w);if(-1!==oe)this.detach(oe);else{var ve=V[3],He=new gU(ve,ve[6],ve[3]);He.detach(He.indexOf(w))}}var rt=this._adjustIndex(I),pt=this._lContainer;a3(ee,V,pt,rt);var wt=p_(rt,pt),en=V[11],_n=jv(en,pt[7]);return null!==_n&&function r3(c,f,p,_,w,I){_[0]=w,_[6]=f,ku(c,_,p,1,w,I)}(ee,pt[6],en,V,_n,wt),w.attachToViewContainerRef(),Iv(IR(pt),rt,w),w}},{key:"move",value:function(w,I){return this.insert(w,I)}},{key:"indexOf",value:function(w){var I=vU(this._lContainer);return null!==I?I.indexOf(w):-1}},{key:"remove",value:function(w){var I=this._adjustIndex(w,-1),V=kC(this._lContainer,I);V&&(dC(IR(this._lContainer),I),wu(V[1],V))}},{key:"detach",value:function(w){var I=this._adjustIndex(w,-1),V=kC(this._lContainer,I);return V&&null!=dC(IR(this._lContainer),I)?new xh(V):null}},{key:"_adjustIndex",value:function(w){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==w?this.length+I:w}}]),p}(W_);function vU(c){return c[8]}function IR(c){return c[8]||(c[8]=[])}function yU(c,f){var p,_=f[c.index];if(Ui(_))p=_;else{var w;if(8&c.type)w=so(_);else{var I=f[11];w=I.createComment("");var V=vo(c,f);Nf(I,jv(I,V),w,function l3(c,f){return c.nextSibling(f)}(I,V),!1)}f[c.index]=p=PS(_,f,w,c),dy(f,p)}return new gU(p,c,f)}var EE=function(){function c(f){(0,v.Z)(this,c),this.queryList=f,this.matches=null}return(0,L.Z)(c,[{key:"clone",value:function(){return new c(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),c}(),Py=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,L.Z)(c,[{key:"createEmbeddedView",value:function(p){var _=p.queries;if(null!==_){for(var w=null!==p.contentQueries?p.contentQueries[0]:_.length,I=[],V=0;V<w;V++){var ee=_.getByIndex(V),oe=this.queries[ee.indexInDeclarationView];I.push(oe.clone())}return new c(I)}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!==x1(p,_).matches&&this.queries[_].setDirty()}}]),c}(),Ud=(0,L.Z)(function c(f,p){var _=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;(0,v.Z)(this,c),this.predicate=f,this.flags=p,this.read=_}),$f=function(){function c(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(0,v.Z)(this,c),this.queries=f}return(0,L.Z)(c,[{key:"elementStart",value:function(p,_){for(var w=0;w<this.queries.length;w++)this.queries[w].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,w=0;w<this.length;w++){var I=null!==_?_.length:0,V=this.getByIndex(w).embeddedTView(p,I);V&&(V.indexInDeclarationView=w,null!==_?_.push(V):_=[V])}return null!==_?new c(_):null}},{key:"template",value:function(p,_){for(var w=0;w<this.queries.length;w++)this.queries[w].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}(),ep=function(){function c(f){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;(0,v.Z)(this,c),this.metadata=f,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=p}return(0,L.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,w=p.parent;null!==w&&8&w.type&&w.index!==_;)w=w.parent;return _===(null!==w?w.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(p,_){var w=this.metadata.predicate;if(Array.isArray(w))for(var I=0;I<w.length;I++){var V=w[I];this.matchTNodeWithReadOption(p,_,tp(_,V)),this.matchTNodeWithReadOption(p,_,Dv(_,p,V,!1,!1))}else w===Ga?4&_.type&&this.matchTNodeWithReadOption(p,_,-1):this.matchTNodeWithReadOption(p,_,Dv(_,p,w,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(p,_,w){if(null!==w){var I=this.metadata.read;if(null!==I)if(I===Th||I===W_||I===Ga&&4&_.type)this.addMatch(_.index,-2);else{var V=Dv(_,p,I,!1,!1);null!==V&&this.addMatch(_.index,V)}else this.addMatch(_.index,w)}}},{key:"addMatch",value:function(p,_){null===this.matches?this.matches=[p,_]:this.matches.push(p,_)}}]),c}();function tp(c,f){var p=c.localNames;if(null!==p)for(var _=0;_<p.length;_+=2)if(p[_]===f)return p[_+1];return null}function dY(c,f,p,_){return-1===p?function cY(c,f){return 11&c.type?w_(c,f):4&c.type?ac(c,f):null}(f,c):-2===p?function Hd(c,f,p){if(p===Th)return w_(f,c);if(p===Ga)return ac(f,c);if(p===W_)return yU(f,c)}(c,f,_):Av(c,c[1],p,f)}function Ry(c,f,p,_){var w=f[19].queries[_];if(null===w.matches){for(var I=c.data,V=p.matches,ee=[],oe=0;oe<V.length;oe+=2){var ve=V[oe];if(ve<0)ee.push(null);else{var He=I[ve];ee.push(dY(f,He,V[oe+1],p.metadata.read))}}w.matches=ee}return w.matches}function np(c,f,p,_){var w=c.queries.getByIndex(p),I=w.matches;if(null!==I)for(var V=Ry(c,f,w,p),ee=0;ee<I.length;ee+=2){var oe=I[ee];if(oe>0)_.push(V[ee/2]);else{for(var ve=I[ee+1],He=f[-oe],rt=10;rt<He.length;rt++){var pt=He[rt];pt[17]===pt[3]&&np(pt[1],pt,ve,_)}if(null!==He[9])for(var wt=He[9],en=0;en<wt.length;en++){var _n=wt[en];np(_n[1],_n,ve,_)}}}return _}function bU(c){var f=An(),p=we(),_=ml();hs(_+1);var w=x1(p,_);if(c.dirty&&function Sf(c){return 4==(4&c[2])}(f)===(2==(2&w.metadata.flags))){if(null===w.matches)c.reset([]);else{var I=w.crossesNgTemplate?np(p,f,_,[]):Ry(p,f,w,_);c.reset(I,z5),c.notifyOnChanges()}return!0}return!1}function rp(c,f,p){var _=we();_.firstCreatePass&&(jd(_,new Ud(c,f,p),-1),2==(2&f)&&(_.staticViewQueries=!0)),Sr(_,An(),f)}function sc(c,f,p,_){var w=we();if(w.firstCreatePass){var I=Me();jd(w,new Ud(f,p,_),I.index),function ti(c,f){var p=c.contentQueries||(c.contentQueries=[]),_=p.length?p[p.length-1]:-1;f!==_&&p.push(c.queries.length-1,f)}(w,c),2==(2&p)&&(w.staticContentQueries=!0)}Sr(w,An(),p)}function J(){return function Vt(c,f){return c[19].queries[f].queryList}(An(),ml())}function Sr(c,f,p){var _=new Fd(4==(4&p));AS(c,f,_,_.destroy),null===f[19]&&(f[19]=new Py),f[19].queries.push(new EE(_))}function jd(c,f,p){null===c.queries&&(c.queries=new $f),c.queries.track(new ep(f,p))}function x1(c,f){return c.queries.getByIndex(f)}function Ly(c,f){return ac(c,f)}var tl={"\u0275\u0275attribute":hy,"\u0275\u0275attributeInterpolate1":T6,"\u0275\u0275attributeInterpolate2":my,"\u0275\u0275attributeInterpolate3":HS,"\u0275\u0275attributeInterpolate4":jS,"\u0275\u0275attributeInterpolate5":Ph,"\u0275\u0275attributeInterpolate6":M6,"\u0275\u0275attributeInterpolate7":r8,"\u0275\u0275attributeInterpolate8":S6,"\u0275\u0275attributeInterpolateV":GS,"\u0275\u0275defineComponent":Hn,"\u0275\u0275defineDirective":Gn,"\u0275\u0275defineInjectable":ge,"\u0275\u0275defineInjector":Dt,"\u0275\u0275defineNgModule":gt,"\u0275\u0275definePipe":Vn,"\u0275\u0275directiveInject":E_,"\u0275\u0275getInheritedFactory":Is,"\u0275\u0275inject":fa,"\u0275\u0275injectAttribute":lM,"\u0275\u0275invalidFactory":hS,"\u0275\u0275invalidFactoryDep":jP,"\u0275\u0275templateRefExtractor":Ly,"\u0275\u0275resetView":se,"\u0275\u0275NgOnChangesFeature":ra,"\u0275\u0275ProvidersFeature":CE,"\u0275\u0275CopyDefinitionFeature":$4,"\u0275\u0275InheritDefinitionFeature":BS,"\u0275\u0275StandaloneFeature":kE,"\u0275\u0275nextContext":P6,"\u0275\u0275namespaceHTML":Pr,"\u0275\u0275namespaceMathML":gr,"\u0275\u0275namespaceSVG":Cn,"\u0275\u0275enableBindings":qu,"\u0275\u0275disableBindings":Hl,"\u0275\u0275elementStart":s1,"\u0275\u0275elementEnd":l1,"\u0275\u0275element":gy,"\u0275\u0275elementContainerStart":vy,"\u0275\u0275elementContainerEnd":c1,"\u0275\u0275elementContainer":WS,"\u0275\u0275pureFunction0":qn,"\u0275\u0275pureFunction1":xR,"\u0275\u0275pureFunction2":DR,"\u0275\u0275pureFunction3":cU,"\u0275\u0275pureFunction4":dU,"\u0275\u0275pureFunction5":ME,"\u0275\u0275pureFunction6":z_,"\u0275\u0275pureFunction7":fU,"\u0275\u0275pureFunction8":Hc,"\u0275\u0275pureFunctionV":jc,"\u0275\u0275getCurrentView":VS,"\u0275\u0275restoreView":Te,"\u0275\u0275listener":qS,"\u0275\u0275projection":Z6,"\u0275\u0275syntheticHostProperty":oR,"\u0275\u0275syntheticHostListener":d1,"\u0275\u0275pipeBind1":E1,"\u0275\u0275pipeBind2":Xf,"\u0275\u0275pipeBind3":hU,"\u0275\u0275pipeBind4":Fh,"\u0275\u0275pipeBindV":mU,"\u0275\u0275projectionDef":L6,"\u0275\u0275hostProperty":iR,"\u0275\u0275property":a1,"\u0275\u0275propertyInterpolate":QS,"\u0275\u0275propertyInterpolate1":f1,"\u0275\u0275propertyInterpolate2":p1,"\u0275\u0275propertyInterpolate3":h1,"\u0275\u0275propertyInterpolate4":XS,"\u0275\u0275propertyInterpolate5":$S,"\u0275\u0275propertyInterpolate6":N6,"\u0275\u0275propertyInterpolate7":B6,"\u0275\u0275propertyInterpolate8":eE,"\u0275\u0275propertyInterpolateV":F6,"\u0275\u0275pipe":Nh,"\u0275\u0275queryRefresh":bU,"\u0275\u0275viewQuery":rp,"\u0275\u0275loadQuery":J,"\u0275\u0275contentQuery":sc,"\u0275\u0275reference":_y,"\u0275\u0275classMap":Y6,"\u0275\u0275classMapInterpolate1":rR,"\u0275\u0275classMapInterpolate2":k8,"\u0275\u0275classMapInterpolate3":PV,"\u0275\u0275classMapInterpolate4":RV,"\u0275\u0275classMapInterpolate5":LV,"\u0275\u0275classMapInterpolate6":ZV,"\u0275\u0275classMapInterpolate7":NV,"\u0275\u0275classMapInterpolate8":BV,"\u0275\u0275classMapInterpolateV":FV,"\u0275\u0275styleMap":Au,"\u0275\u0275styleMapInterpolate1":UV,"\u0275\u0275styleMapInterpolate2":HV,"\u0275\u0275styleMapInterpolate3":jV,"\u0275\u0275styleMapInterpolate4":GV,"\u0275\u0275styleMapInterpolate5":zV,"\u0275\u0275styleMapInterpolate6":WV,"\u0275\u0275styleMapInterpolate7":VV,"\u0275\u0275styleMapInterpolate8":YV,"\u0275\u0275styleMapInterpolateV":T8,"\u0275\u0275styleProp":m1,"\u0275\u0275stylePropInterpolate1":M8,"\u0275\u0275stylePropInterpolate2":S8,"\u0275\u0275stylePropInterpolate3":E8,"\u0275\u0275stylePropInterpolate4":x8,"\u0275\u0275stylePropInterpolate5":D8,"\u0275\u0275stylePropInterpolate6":A8,"\u0275\u0275stylePropInterpolate7":O8,"\u0275\u0275stylePropInterpolate8":I8,"\u0275\u0275stylePropInterpolateV":P8,"\u0275\u0275classProp":Kf,"\u0275\u0275advance":N3,"\u0275\u0275template":E6,"\u0275\u0275text":$6,"\u0275\u0275textInterpolate":eR,"\u0275\u0275textInterpolate1":sE,"\u0275\u0275textInterpolate2":tR,"\u0275\u0275textInterpolate3":nR,"\u0275\u0275textInterpolate4":_1,"\u0275\u0275textInterpolate5":lE,"\u0275\u0275textInterpolate6":y8,"\u0275\u0275textInterpolate7":b8,"\u0275\u0275textInterpolate8":C8,"\u0275\u0275textInterpolateV":w8,"\u0275\u0275i18n":iU,"\u0275\u0275i18nAttributes":w1,"\u0275\u0275i18nExp":yE,"\u0275\u0275i18nStart":yR,"\u0275\u0275i18nEnd":C1,"\u0275\u0275i18nApply":Ey,"\u0275\u0275i18nPostprocess":bR,"\u0275\u0275resolveWindow":ny,"\u0275\u0275resolveDocument":XM,"\u0275\u0275resolveBody":GC,"\u0275\u0275setComponentScope":Yt,"\u0275\u0275setNgModuleScope":yt,"\u0275\u0275registerNgModuleType":h5,"\u0275\u0275sanitizeHtml":C3,"\u0275\u0275sanitizeStyle":y_,"\u0275\u0275sanitizeResourceUrl":w3,"\u0275\u0275sanitizeScript":k3,"\u0275\u0275sanitizeUrl":jM,"\u0275\u0275sanitizeUrlOrResourceUrl":T3,"\u0275\u0275trustConstantHtml":Z5,"\u0275\u0275trustConstantResourceUrl":GM,"\u0275\u0275validateIframeAttribute":DC,forwardRef:Q,resolveForwardRef:ne},Rt=null;function PR(c){return void 0!==c.ngModule}function RR(c){return!!Gi(c)}var Zy=[];function wU(c,f){Zy.push({moduleType:c,ngModule:f})}var xE=!1;function LR(c){return Array.isArray(c)?c.every(LR):!!ne(c)}function hY(c,f){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var _=Gl(f.declarations||et),w=null;Object.defineProperty(c,Re,{configurable:!0,get:function(){if(null===w){var oe=Ma();(w=oe.compileNgModule(tl,"ng:///".concat(c.name,"/\u0275mod.js"),{type:c,bootstrap:Gl(f.bootstrap||et).map(ne),declarations:_.map(ne),imports:Gl(f.imports||et).map(ne).map(FR),exports:Gl(f.exports||et).map(ne).map(FR),schemas:f.schemas?Gl(f.schemas):null,id:f.id||null})).schemas||(w.schemas=[])}return w}});var I=null;Object.defineProperty(c,qe,{get:function(){if(null===I){var oe=Ma();I=oe.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:c.name,type:c,deps:vM(c),target:oe.FactoryTarget.NgModule,typeArgumentCount:0})}return I},configurable:!1});var V=null;Object.defineProperty(c,Je,{get:function(){if(null===V){var oe={name:c.name,type:c,providers:f.providers||et,imports:[(f.imports||et).map(ne),(f.exports||et).map(ne)]},ve=Ma();V=ve.compileInjector(tl,"ng:///".concat(c.name,"/\u0275inj.js"),oe)}return V},configurable:!1})}function zh(c,f){var p=Gl(f.declarations||et),_=By(c);p.forEach(function(w){(w=ne(w)).hasOwnProperty(St)?Wh(Wn(w),_):!w.hasOwnProperty(ze)&&!w.hasOwnProperty(Ke)&&(w.ngSelectorScope=c)})}function Wh(c,f){c.directiveDefs=function(){return Array.from(f.compilation.directives).map(function(p){return p.hasOwnProperty(St)?Wn(p):ar(p)}).filter(function(p){return!!p})},c.pipeDefs=function(){return Array.from(f.compilation.pipes).map(function(p){return Or(p)})},c.schemas=f.schemas,c.tView=null}function By(c){if(RR(c))return function BR(c){var f=Gi(c,!0);if(null!==f.transitiveCompileScopes)return f.transitiveCompileScopes;var p={schemas:f.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Nc(f.imports).forEach(function(_){var w=By(_);w.exported.directives.forEach(function(I){return p.compilation.directives.add(I)}),w.exported.pipes.forEach(function(I){return p.compilation.pipes.add(I)})}),Nc(f.declarations).forEach(function(_){Or(_)?p.compilation.pipes.add(_):p.compilation.directives.add(_)}),Nc(f.exports).forEach(function(_){var w=_;if(RR(w)){var I=By(w);I.exported.directives.forEach(function(V){p.compilation.directives.add(V),p.exported.directives.add(V)}),I.exported.pipes.forEach(function(V){p.compilation.pipes.add(V),p.exported.pipes.add(V)})}else Or(w)?p.exported.pipes.add(w):p.exported.directives.add(w)}),f.transitiveCompileScopes=p,p}(c);if(hi(c)){if(null!==(Wn(c)||ar(c)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([c]),pipes:new Set}};if(null!==Or(c))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([c])}}}throw new Error("".concat(c.name," does not have a module def (\u0275mod property)"))}function FR(c){return PR(c)?c.ngModule:c}var DE=0;function MU(c,f){var p=null;(function hC(c,f){yM(f)&&(Lv.set(c,f),bu.add(c))})(c,f),jR(c,f),Object.defineProperty(c,St,{get:function(){if(null===p){var w=Ma();if(yM(f)){var I=["Component '".concat(c.name,"' is not resolved:")];throw f.templateUrl&&I.push(" - templateUrl: ".concat(f.templateUrl)),f.styleUrls&&f.styleUrls.length&&I.push(" - styleUrls: ".concat(JSON.stringify(f.styleUrls))),I.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(I.join("\n"))}var V=function CU(){return Rt}(),ee=f.preserveWhitespaces;void 0===ee&&(ee=null!==V&&void 0!==V.preserveWhitespaces&&V.preserveWhitespaces);var oe=f.encapsulation;void 0===oe&&(oe=null!==V&&void 0!==V.defaultEncapsulation?V.defaultEncapsulation:En.Emulated);var ve=f.templateUrl||"ng:///".concat(c.name,"/template.html"),He=Object.assign(Object.assign({},GR(c,f)),{typeSourceSpan:w.createParseSourceSpan("Component",c.name,ve),template:f.template||"",preserveWhitespaces:ee,styles:f.styles||et,animations:f.animations,declarations:[],changeDetection:f.changeDetection,encapsulation:oe,interpolation:f.interpolation,viewProviders:f.viewProviders||null,isStandalone:!!f.standalone});DE++;try{if(He.usesInheritance&&zR(c),p=w.compileComponent(tl,ve,He),f.standalone){var rt=Gl(f.imports||et),pt=function EU(c,f){var p=null,_=null,w=function(){if(null===p){p=[Wn(c)];var ve,ee=new Set,oe=(0,E.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var rt=ne(ve.value);if(!ee.has(rt))if(ee.add(rt),Gi(rt)){var en,pt=By(rt),wt=(0,E.Z)(pt.exported.directives);try{for(wt.s();!(en=wt.n()).done;){var _n=en.value,Un=Wn(_n)||ar(_n);Un&&!ee.has(_n)&&(ee.add(_n),p.push(Un))}}catch(Xn){wt.e(Xn)}finally{wt.f()}}else{var Qn=Wn(rt)||ar(rt);Qn&&p.push(Qn)}}}catch(Xn){oe.e(Xn)}finally{oe.f()}}return p},I=function(){if(null===_){_=[];var ve,ee=new Set,oe=(0,E.Z)(f);try{for(oe.s();!(ve=oe.n()).done;){var rt=ne(ve.value);if(!ee.has(rt))if(ee.add(rt),Gi(rt)){var en,pt=By(rt),wt=(0,E.Z)(pt.exported.pipes);try{for(wt.s();!(en=wt.n()).done;){var _n=en.value,Un=Or(_n);Un&&!ee.has(_n)&&(ee.add(_n),_.push(Un))}}catch(Xn){wt.e(Xn)}finally{wt.f()}}else{var Qn=Or(rt);Qn&&_.push(Qn)}}}catch(Xn){oe.e(Xn)}finally{oe.f()}}return _};return{directiveDefs:w,pipeDefs:I}}(c,rt),wt=pt.directiveDefs,en=pt.pipeDefs;p.directiveDefs=wt,p.pipeDefs=en,p.dependencies=function(){return rt.map(ne)}}}finally{DE--}if(0===DE&&function kU(){if(!xE){xE=!0;try{for(var c=Zy.length-1;c>=0;c--){var f=Zy[c],p=f.moduleType,_=f.ngModule;_.declarations&&_.declarations.every(LR)&&(Zy.splice(c,1),zh(p,_))}}finally{xE=!1}}}(),function xU(c){return void 0!==c.ngSelectorScope}(c)){var _n=By(c.ngSelectorScope);Wh(p,_n)}if(f.schemas){if(!f.standalone)throw new Error("The 'schemas' was specified for the ".concat(me(c)," but is only valid on a component that is standalone."));p.schemas=f.schemas}else f.standalone&&(p.schemas=[])}return p},configurable:!1})}function UR(c,f){var p=null;jR(c,f||{}),Object.defineProperty(c,ze,{get:function(){if(null===p){var w=HR(c,f||{}),I=Ma();p=I.compileDirective(tl,w.sourceMapUrl,w.metadata)}return p},configurable:!1})}function HR(c,f){var p=c&&c.name,_="ng:///".concat(p,"/\u0275dir.js"),w=Ma(),I=GR(c,f);return I.typeSourceSpan=w.createParseSourceSpan("Directive",p,_),I.usesInheritance&&zR(c),{metadata:I,sourceMapUrl:_}}function jR(c,f){var p=null;Object.defineProperty(c,qe,{get:function(){if(null===p){var w=HR(c,f),I=Ma();p=I.compileFactory(tl,"ng:///".concat(c.name,"/\u0275fac.js"),{name:w.metadata.name,type:w.metadata.type,typeArgumentCount:0,deps:vM(c),target:I.FactoryTarget.Directive})}return p},configurable:!1})}function _Y(c){return Object.getPrototypeOf(c.prototype)===Object.prototype}function GR(c,f){var p=a_(),_=p.ownPropMetadata(c);return{name:c.name,type:c,selector:void 0!==f.selector?f.selector:null,host:f.host||Et,propMetadata:_,inputs:f.inputs||et,outputs:f.outputs||et,queries:WR(c,_,VR),lifecycle:{usesOnChanges:p.hasLifecycleHook(c,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!_Y(c),exportAs:OU(f.exportAs),providers:f.providers||null,viewQueries:WR(c,_,YR),isStandalone:!!f.standalone}}function zR(c){for(var f=Object.prototype,p=Object.getPrototypeOf(c.prototype).constructor;p&&p!==f;)!ar(p)&&!Wn(p)&&PU(p)&&UR(p,null),p=Object.getPrototypeOf(p)}function DU(c){return"string"==typeof c?IU(c):ne(c)}function WR(c,f,p){var _=[],w=function(ee){if(f.hasOwnProperty(ee)){var oe=f[ee];oe.forEach(function(ve){if(p(ve)){if(!ve.selector)throw new Error("Can't construct a query for the property \"".concat(ee,'" of ')+'"'.concat(me(c),"\" since the query selector wasn't defined."));if(oe.some(KR))throw new Error("Cannot combine @Input decorators with query decorators");_.push(function AU(c,f){return{propertyName:c,predicate:DU(f.selector),descendants:f.descendants,first:f.first,read:f.read?f.read:null,static:!!f.static,emitDistinctChangesOnly:!!f.emitDistinctChangesOnly}}(ee,ve))}})}};for(var I in f)w(I);return _}function OU(c){return void 0===c?null:IU(c)}function VR(c){var f=c.ngMetadataName;return"ContentChild"===f||"ContentChildren"===f}function YR(c){var f=c.ngMetadataName;return"ViewChild"===f||"ViewChildren"===f}function KR(c){return"Input"===c.ngMetadataName}function IU(c){return c.split(",").map(function(f){return f.trim()})}var gY=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function PU(c){var f=a_();if(gY.some(function(oe){return f.hasLifecycleHook(c,oe)}))return!0;var p=f.propMetadata(c);for(var _ in p)for(var w=p[_],I=0;I<w.length;I++){var V=w[I],ee=V.ngMetadataName;if(KR(V)||VR(V)||YR(V)||"Output"===ee||"HostBinding"===ee||"HostListener"===ee)return!0}return!1}function qR(c,f){return{type:c,name:c.name,pipeName:f.name,pure:void 0===f.pure||f.pure,isStandalone:!!f.standalone}}var JR=ch("Directive",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c},void 0,void 0,function(c,f){return UR(c,f)}),LU=ch("Component",function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.assign({changeDetection:on.Default},c)},JR,void 0,function(c,f){return MU(c,f)}),ZU=ch("Pipe",function(c){return Object.assign({pure:!0},c)},void 0,void 0,function(c,f){return function RU(c,f){var p=null,_=null;Object.defineProperty(c,qe,{get:function(){if(null===_){var I=qR(c,f),V=Ma(I.type);_=V.compileFactory(tl,"ng:///".concat(I.name,"/\u0275fac.js"),{name:I.name,type:I.type,typeArgumentCount:0,deps:vM(c),target:V.FactoryTarget.Pipe})}return _},configurable:!1}),Object.defineProperty(c,Ke,{get:function(){if(null===p){var I=qR(c,f),V=Ma(I.type);p=V.compilePipe(tl,"ng:///".concat(I.name,"/\u0275pipe.js"),I)}return p},configurable:!1})}(c,f)}),NU=Oc("Input",function(c){return{bindingPropertyName:c}}),BU=Oc("Output",function(c){return{bindingPropertyName:c}}),FU=Oc("HostBinding",function(c){return{hostPropertyName:c}}),UU=Oc("HostListener",function(c,f){return{eventName:c,args:f}}),HU=ch("NgModule",function(c){return c},void 0,void 0,function(c,f){return function ZR(c){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hY(c,f),void 0!==f.id&&h5(c,f.id),wU(c,f)}(c,f)});function AE(){}var QR=new ho("Application Initializer"),Wd=function(){function c(f){var p=this;(0,v.Z)(this,c),this.appInits=f,this.resolve=AE,this.reject=AE,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(_,w){p.resolve=_,p.reject=w})}return(0,L.Z)(c,[{key:"runInitializers",value:function(){var p=this;if(!this.initialized){var _=[],w=function(){p.done=!0,p.resolve()};if(this.appInits)for(var I=function(){var oe=p.appInits[V]();if(YS(oe))_.push(oe);else if(D6(oe)){var ve=new Promise(function(He,rt){oe.subscribe({complete:He,error:rt})});_.push(ve)}},V=0;V<this.appInits.length;V++)I();Promise.all(_).then(function(){w()}).catch(function(ee){p.reject(ee)}),0===_.length&&w(),this.initialized=!0}}}]),c}();Wd.\u0275fac=function(f){return new(f||Wd)(fa(QR,8))},Wd.\u0275prov=ge({token:Wd,factory:Wd.\u0275fac,providedIn:"root"});var A1=new ho("AppId",{providedIn:"root",factory:Vd});function Vd(){return"".concat(Fy()).concat(Fy()).concat(Fy())}function Fy(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var O1=new ho("Platform Initializer"),OE=new ho("Platform ID",{providedIn:"platform",factory:function(){return"unknown"}}),bl=new ho("appBootstrapListener"),IE=(new ho("Application Packages Root URL"),new ho("AnimationModuleType")),Vh=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"log",value:function(p){console.log(p)}},{key:"warn",value:function(p){console.warn(p)}}]),c}();Vh.\u0275fac=function(f){return new(f||Vh)},Vh.\u0275prov=ge({token:Vh,factory:Vh.\u0275fac,providedIn:"platform"});var PE,Y_=new ho("LocaleId",{providedIn:"root",factory:function(){return GP(Y_,ye.Optional|ye.SkipSelf)||function XR(){return"undefined"!=typeof $localize&&$localize.locale||by}()}}),zU=new ho("DefaultCurrencyCode",{providedIn:"root",factory:function(){return"USD"}});new ho("Translations"),new ho("TranslationsFormat");!function(c){c[c.Error=0]="Error",c[c.Warning=1]="Warning",c[c.Ignore=2]="Ignore"}(PE||(PE={}));var WU=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.ngModuleFactory=f,this.componentFactories=p}),Uy=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"compileModuleSync",value:function(p){return new Uc(p)}},{key:"compileModuleAsync",value:function(p){return Promise.resolve(this.compileModuleSync(p))}},{key:"compileModuleAndAllComponentsSync",value:function(p){var _=this.compileModuleSync(p),I=Nc(Gi(p).declarations).reduce(function(V,ee){var oe=Wn(ee);return oe&&V.push(new A_(oe)),V},[]);return new WU(_,I)}},{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}();Uy.\u0275fac=function(f){return new(f||Uy)},Uy.\u0275prov=ge({token:Uy,factory:Uy.\u0275fac,providedIn:"root"});new ho("compilerOptions");var eL=Promise.resolve(0);function LE(c){"undefined"==typeof Zone?eL.then(function(){c&&c.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",c)}var uc=function(){function c(f){var p=f.enableLongStackTrace,_=void 0!==p&&p,w=f.shouldCoalesceEventChangeDetection,I=void 0!==w&&w,V=f.shouldCoalesceRunChangeDetection,ee=void 0!==V&&V;if((0,v.Z)(this,c),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Gc(!1),this.onMicrotaskEmpty=new Gc(!1),this.onStable=new Gc(!1),this.onError=new Gc(!1),"undefined"==typeof Zone)throw new de(908,!1);Zone.assertZonePatched();var oe=this;if(oe._nesting=0,oe._outer=oe._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){var ve=Zone.AsyncStackTaggingZoneSpec;oe._inner=oe._inner.fork(new ve("Angular"))}Zone.TaskTrackingZoneSpec&&(oe._inner=oe._inner.fork(new Zone.TaskTrackingZoneSpec)),_&&Zone.longStackTraceZoneSpec&&(oe._inner=oe._inner.fork(Zone.longStackTraceZoneSpec)),oe.shouldCoalesceEventChangeDetection=!ee&&I,oe.shouldCoalesceRunChangeDetection=ee,oe.lastRequestAnimationFrameId=-1,oe.nativeRequestAnimationFrame=function tL(){var c=hn.requestAnimationFrame,f=hn.cancelAnimationFrame;if("undefined"!=typeof Zone&&c&&f){var p=c[Zone.__symbol__("OriginalDelegate")];p&&(c=p);var _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:c,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function ZE(c){var f=function(){!function nL(c){c.isCheckStableRunning||-1!==c.lastRequestAnimationFrameId||(c.lastRequestAnimationFrameId=c.nativeRequestAnimationFrame.call(hn,function(){c.fakeTopEventTask||(c.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){c.lastRequestAnimationFrameId=-1,cc(c),c.isCheckStableRunning=!0,q_(c),c.isCheckStableRunning=!1},void 0,function(){},function(){})),c.fakeTopEventTask.invoke()}),cc(c))}(c)};c._inner=c._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(_,w,I,V,ee,oe){try{return P1(c),_.invokeTask(I,V,ee,oe)}finally{(c.shouldCoalesceEventChangeDetection&&"eventTask"===V.type||c.shouldCoalesceRunChangeDetection)&&f(),Hy(c)}},onInvoke:function(_,w,I,V,ee,oe,ve){try{return P1(c),_.invoke(I,V,ee,oe,ve)}finally{c.shouldCoalesceRunChangeDetection&&f(),Hy(c)}},onHasTask:function(_,w,I,V){_.hasTask(I,V),w===I&&("microTask"==V.change?(c._hasPendingMicrotasks=V.microTask,cc(c),q_(c)):"macroTask"==V.change&&(c.hasPendingMacrotasks=V.macroTask))},onHandleError:function(_,w,I,V){return _.handleError(I,V),c.runOutsideAngular(function(){return c.onError.emit(V)}),!1}})}(oe)}return(0,L.Z)(c,[{key:"run",value:function(p,_,w){return this._inner.run(p,_,w)}},{key:"runTask",value:function(p,_,w,I){var V=this._inner,ee=V.scheduleEventTask("NgZoneEvent: "+I,p,I1,AE,AE);try{return V.runTask(ee,_,w)}finally{V.cancelTask(ee)}}},{key:"runGuarded",value:function(p,_,w){return this._inner.runGuarded(p,_,w)}},{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 de(909,!1)}},{key:"assertNotInAngularZone",value:function(){if(c.isInAngularZone())throw new de(909,!1)}}]),c}(),I1={};function q_(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 cc(c){c._hasPendingMicrotasks||(c.shouldCoalesceEventChangeDetection||c.shouldCoalesceRunChangeDetection)&&-1!==c.lastRequestAnimationFrameId?c.hasPendingMicrotasks=!0:c.hasPendingMicrotasks=!1}function P1(c){c._nesting++,c.isStable&&(c.isStable=!1,c.onUnstable.emit(null))}function Hy(c){c._nesting--,q_(c)}var qU=function(){function c(){(0,v.Z)(this,c),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Gc,this.onMicrotaskEmpty=new Gc,this.onStable=new Gc,this.onError=new Gc}return(0,L.Z)(c,[{key:"run",value:function(p,_,w){return p.apply(_,w)}},{key:"runGuarded",value:function(p,_,w){return p.apply(_,w)}},{key:"runOutsideAngular",value:function(p){return p()}},{key:"runTask",value:function(p,_,w,I){return p.apply(_,w)}}]),c}(),J_=new ho(""),NE=new ho(""),Q_=function(){function c(f,p,_){var w=this;(0,v.Z)(this,c),this._ngZone=f,this.registry=p,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$_||(function op(c){$_=c}(_),_.addToWindow(p)),this._watchAngularEvents(),f.run(function(){w.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return(0,L.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(){uc.assertNotInAngularZone(),LE(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())LE(function(){for(;0!==p._callbacks.length;){var w=p._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(p._didWork)}p._didWork=!1});else{var _=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(w){return!w.updateCb||!w.updateCb(_)||(clearTimeout(w.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,_,w){var I=this,V=-1;_&&_>0&&(V=setTimeout(function(){I._callbacks=I._callbacks.filter(function(ee){return ee.timeoutId!==V}),p(I._didWork,I.getPendingTasks())},_)),this._callbacks.push({doneCb:p,timeoutId:V,updateCb:w})}},{key:"whenStable",value:function(p,_,w){if(w&&!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,_,w),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"registerApplication",value:function(p){this.registry.registerApplication(p,this)}},{key:"unregisterApplication",value:function(p){this.registry.unregisterApplication(p)}},{key:"findProviders",value:function(p,_,w){return[]}}]),c}();Q_.\u0275fac=function(f){return new(f||Q_)(fa(uc),fa(X_),fa(NE))},Q_.\u0275prov=ge({token:Q_,factory:Q_.\u0275fac});var $_,X_=function(){function c(){(0,v.Z)(this,c),this._applications=new Map}return(0,L.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 w,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return null!==(w=null==$_?void 0:$_.findTestabilityInTree(this,p,_))&&void 0!==w?w:null}}]),c}();X_.\u0275fac=function(f){return new(f||X_)},X_.\u0275prov=ge({token:X_,factory:X_.\u0275fac,providedIn:"platform"});var dc=null,fc=new ho("AllowMultipleToken"),Yd=new ho("PlatformDestroyListeners"),Xl=!1;function JU(c,f,p){var _=new Uc(p);return Promise.resolve(_)}var jy=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.name=f,this.token=p});function R1(c){if(dc&&!dc.get(fc,!1))throw new de(400,!1);dc=c;var f=c.get(Wc);return L1(c),f}function L1(c){var f=c.get(O1,null);f&&f.forEach(function(p){return p()})}function oL(c,f){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_="Platform: ".concat(f),w=new ho(_);return function(){var I=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],V=eg();if(!V||V.injector.get(fc,!1)){var ee=[].concat((0,D.Z)(p),(0,D.Z)(I),[{provide:w,useValue:!0}]);c?c(ee):R1(Cl(ee,_))}return XU(w)}}function XU(c){var f=eg();if(!f)throw new de(401,!1);return f}function Cl(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;return Kl.create({name:f,providers:[{provide:Xs,useValue:"platform"},{provide:Yd,useValue:new Set([function(){return dc=null}])}].concat((0,D.Z)(c))})}function eg(){var c;return null!==(c=null==dc?void 0:dc.get(Wc))&&void 0!==c?c:null}var Wc=function(){function c(f){(0,v.Z)(this,c),this._injector=f,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return(0,L.Z)(c,[{key:"bootstrapModuleFactory",value:function(p,_){var w=this,I=aL(null==_?void 0:_.ngZone,e7(_)),V=[{provide:uc,useValue:I}];return I.run(function(){var ee=Kl.create({providers:V,parent:w.injector,name:p.moduleType.name}),oe=p.create(ee),ve=oe.injector.get(k_,null);if(!ve)throw new de(402,!1);return I.runOutsideAngular(function(){var He=I.onError.subscribe({next:function(pt){ve.handleError(pt)}});oe.onDestroy(function(){Yh(w._modules,oe),He.unsubscribe()})}),sL(ve,I,function(){var He=oe.injector.get(Wd);return He.runInitializers(),He.donePromise.then(function(){return dE(oe.injector.get(Y_,by)||by),w._moduleDoBootstrap(oe),oe})})})}},{key:"bootstrapModule",value:function(p){var _=this,w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],I=t7({},w);return JU(this.injector,0,p).then(function(V){return _.bootstrapModuleFactory(V,I)})}},{key:"_moduleDoBootstrap",value:function(p){var _=p.injector.get(ap);if(p._bootstrapComponents.length>0)p._bootstrapComponents.forEach(function(w){return _.bootstrap(w)});else{if(!p.instance.ngDoBootstrap)throw new de(403,!1);p.instance.ngDoBootstrap(_)}this._modules.push(p)}},{key:"onDestroy",value:function(p){this._destroyListeners.push(p)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new de(404,!1);this._modules.slice().forEach(function(_){return _.destroy()}),this._destroyListeners.forEach(function(_){return _()});var p=this._injector.get(Yd,null);p&&(p.forEach(function(_){return _()}),p.clear()),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),c}();function e7(c){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!c||!c.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!c||!c.ngZoneRunCoalescing)||!1}}function aL(c,f){return"noop"===c?new qU:("zone.js"===c?void 0:c)||new uc(f)}function sL(c,f,p){try{var _=p();return YS(_)?_.catch(function(w){throw f.runOutsideAngular(function(){return c.handleError(w)}),w}):_}catch(w){throw f.runOutsideAngular(function(){return c.handleError(w)}),w}}function t7(c,f){return c=Array.isArray(f)?f.reduce(t7,c):Object.assign(Object.assign({},c),f)}Wc.\u0275fac=function(f){return new(f||Wc)(fa(Kl))},Wc.\u0275prov=ge({token:Wc,factory:Wc.\u0275fac,providedIn:"platform"});var ap=function(){function c(f,p,_){var w=this;(0,v.Z)(this,c),this._zone=f,this._injector=p,this._exceptionHandler=_,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){w._zone.run(function(){w.tick()})}});var I=new T.y(function(ee){w._stable=w._zone.isStable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks,w._zone.runOutsideAngular(function(){ee.next(w._stable),ee.complete()})}),V=new T.y(function(ee){var oe;w._zone.runOutsideAngular(function(){oe=w._zone.onStable.subscribe(function(){uc.assertNotInAngularZone(),LE(function(){!w._stable&&!w._zone.hasPendingMacrotasks&&!w._zone.hasPendingMicrotasks&&(w._stable=!0,ee.next(!0))})})});var ve=w._zone.onUnstable.subscribe(function(){uc.assertInAngularZone(),w._stable&&(w._stable=!1,w._zone.runOutsideAngular(function(){ee.next(!1)}))});return function(){oe.unsubscribe(),ve.unsubscribe()}});this.isStable=(0,M.T)(I,V.pipe((0,x.B)()))}return(0,L.Z)(c,[{key:"destroyed",get:function(){return this._destroyed}},{key:"injector",get:function(){return this._injector}},{key:"bootstrap",value:function(p,_){var ve,w=this,I=p instanceof Gf;if(!this._injector.get(Wd).done){!I&&hi(p);throw new de(405,Xl)}I?ve=p:ve=this._injector.get(C_).resolveComponentFactory(p);this.componentTypes.push(ve.componentType);var rt=function iL(c){return c.isBoundToModule}(ve)?void 0:this._injector.get(Lh),pt=_||ve.selector,wt=ve.create(Kl.NULL,[],pt,rt),en=wt.location.nativeElement,_n=wt.injector.get(J_,null);return null==_n||_n.registerApplication(en),wt.onDestroy(function(){w.detachView(wt.hostView),Yh(w.components,wt),null==_n||_n.unregisterApplication(en)}),this._loadComponent(wt),wt}},{key:"tick",value:function(){var p=this;if(this._runningTick)throw new de(101,!1);try{this._runningTick=!0;var w,_=(0,E.Z)(this._views);try{for(_.s();!(w=_.n()).done;){w.value.detectChanges()}}catch(ve){_.e(ve)}finally{_.f()}}catch(ve){this._zone.runOutsideAngular(function(){return p._exceptionHandler.handleError(ve)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(p){var _=p;this._views.push(_),_.attachToAppRef(this)}},{key:"detachView",value:function(p){var _=p;Yh(this._views,_),_.detachFromAppRef()}},{key:"_loadComponent",value:function(p){this.attachView(p.hostView),this.tick(),this.components.push(p),this._injector.get(bl,[]).concat(this._bootstrapListeners).forEach(function(w){return w(p)})}},{key:"ngOnDestroy",value:function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(p){return p()}),this._views.slice().forEach(function(p){return p.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}},{key:"onDestroy",value:function(p){var _=this;return this._destroyListeners.push(p),function(){return Yh(_._destroyListeners,p)}}},{key:"destroy",value:function(){if(this._destroyed)throw new de(406,!1);var p=this._injector;p.destroy&&!p.destroyed&&p.destroy()}},{key:"viewCount",get:function(){return this._views.length}},{key:"warnIfDestroyed",value:function(){}}]),c}();function Yh(c,f){var p=c.indexOf(f);p>-1&&c.splice(p,1)}ap.\u0275fac=function(f){return new(f||ap)(fa(uc),fa(Mu),fa(k_))},ap.\u0275prov=ge({token:ap,factory:ap.\u0275fac,providedIn:"root"});var Gy=!1;function cL(){if(Gy)throw new Error("Cannot enable prod mode after platform setup.");!1}var Z1=(0,L.Z)(function c(){(0,v.Z)(this,c)});Z1.__NG_ELEMENT_ID__=function i7(c){return function o7(c,f,p){if(qi(c)&&!p){var _=po(c.index,f);return new xh(_,_)}if(47&c.type){var w=f[16];return new xh(w,f)}return null}(Me(),An(),16==(16&c))};var a7=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p)}(Z1),s7=function(c){(0,k.Z)(p,c);var f=(0,b.Z)(p);function p(){return(0,v.Z)(this,p),f.apply(this,arguments)}return(0,L.Z)(p)}(a7);var B1=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(p){return fy(p)}},{key:"create",value:function(p){return new c7(p)}}]),c}(),xY=function(f,p){return p},c7=function(){function c(f){(0,v.Z)(this,c),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||xY}return(0,L.Z)(c,[{key:"forEachItem",value:function(p){var _;for(_=this._itHead;null!==_;_=_._next)p(_)}},{key:"forEachOperation",value:function(p){for(var _=this._itHead,w=this._removalsHead,I=0,V=null;_||w;){var ee=!w||_&&_.currentIndex<zE(w,I,V)?_:w,oe=zE(ee,I,V),ve=ee.currentIndex;if(ee===w)I--,w=w._nextRemoved;else if(_=_._next,null==ee.previousIndex)I++;else{V||(V=[]);var He=oe-I,rt=ve-I;if(He!=rt){for(var pt=0;pt<He;pt++){var wt=pt<V.length?V[pt]:V[pt]=0,en=wt+pt;rt<=en&&en<He&&(V[pt]=wt+1)}V[ee.previousIndex]=rt-He}}oe!==ve&&p(ee,oe,ve)}}},{key:"forEachPreviousItem",value:function(p){var _;for(_=this._previousItHead;null!==_;_=_._nextPrevious)p(_)}},{key:"forEachAddedItem",value:function(p){var _;for(_=this._additionsHead;null!==_;_=_._nextAdded)p(_)}},{key:"forEachMovedItem",value:function(p){var _;for(_=this._movesHead;null!==_;_=_._nextMoved)p(_)}},{key:"forEachRemovedItem",value:function(p){var _;for(_=this._removalsHead;null!==_;_=_._nextRemoved)p(_)}},{key:"forEachIdentityChange",value:function(p){var _;for(_=this._identityChangesHead;null!==_;_=_._nextIdentityChange)p(_)}},{key:"diff",value:function(p){if(null==p&&(p=[]),!fy(p))throw new de(900,!1);return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var V,ee,oe,w=this._itHead,I=!1;if(Array.isArray(p)){this.length=p.length;for(var ve=0;ve<this.length;ve++)ee=p[ve],oe=this._trackByFn(ve,ee),null!==w&&Object.is(w.trackById,oe)?(I&&(w=this._verifyReinsertion(w,ee,oe,ve)),Object.is(w.item,ee)||this._addIdentityChange(w,ee)):(w=this._mismatch(w,ee,oe,ve),I=!0),w=w._next}else V=0,function t8(c,f){if(Array.isArray(c))for(var p=0;p<c.length;p++)f(c[p]);else for(var w,_=c[Dh()]();!(w=_.next()).done;)f(w.value)}(p,function(He){oe=_._trackByFn(V,He),null!==w&&Object.is(w.trackById,oe)?(I&&(w=_._verifyReinsertion(w,He,oe,V)),Object.is(w.item,He)||_._addIdentityChange(w,He)):(w=_._mismatch(w,He,oe,V),I=!0),w=w._next,V++}),this.length=V;return this._truncate(w),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,_,w,I){var V;return null===p?V=this._itTail:(V=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._reinsertAfter(p,V,I)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(w,I))?(Object.is(p.item,_)||this._addIdentityChange(p,_),this._moveAfter(p,V,I)):p=this._addAfter(new d7(_,w),V,I),p}},{key:"_verifyReinsertion",value:function(p,_,w,I){var V=null===this._unlinkedRecords?null:this._unlinkedRecords.get(w,null);return null!==V?p=this._reinsertAfter(V,p._prev,I):p.currentIndex!=I&&(p.currentIndex=I,this._addToMoves(p,I)),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,_,w){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);var I=p._prevRemoved,V=p._nextRemoved;return null===I?this._removalsHead=V:I._nextRemoved=V,null===V?this._removalsTail=I:V._prevRemoved=I,this._insertAfter(p,_,w),this._addToMoves(p,w),p}},{key:"_moveAfter",value:function(p,_,w){return this._unlink(p),this._insertAfter(p,_,w),this._addToMoves(p,w),p}},{key:"_addAfter",value:function(p,_,w){return this._insertAfter(p,_,w),null===this._additionsTail?this._additionsTail=this._additionsHead=p:this._additionsTail=this._additionsTail._nextAdded=p,p}},{key:"_insertAfter",value:function(p,_,w){var I=null===_?this._itHead:_._next;return p._next=I,p._prev=_,null===I?this._itTail=p:I._prev=p,null===_?this._itHead=p:_._next=p,null===this._linkedRecords&&(this._linkedRecords=new F1),this._linkedRecords.put(p),p.currentIndex=w,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,w=p._next;return null===_?this._itHead=w:_._next=w,null===w?this._itTail=_:w._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 F1),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}(),d7=(0,L.Z)(function c(f,p){(0,v.Z)(this,c),this.item=f,this.trackById=p,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}),pL=function(){function c(){(0,v.Z)(this,c),this._head=null,this._tail=null}return(0,L.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 w;for(w=this._head;null!==w;w=w._nextDup)if((null===_||_<=w.currentIndex)&&Object.is(w.trackById,p))return w;return null}},{key:"remove",value:function(p){var _=p._prevDup,w=p._nextDup;return null===_?this._head=w:_._nextDup=w,null===w?this._tail=_:w._prevDup=_,null===this._head}}]),c}(),F1=function(){function c(){(0,v.Z)(this,c),this.map=new Map}return(0,L.Z)(c,[{key:"put",value:function(p){var _=p.trackById,w=this.map.get(_);w||(w=new pL,this.map.set(_,w)),w.add(p)}},{key:"get",value:function(p,_){var w=p,I=this.map.get(w);return I?I.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 zE(c,f,p){var _=c.previousIndex;if(null===_)return _;var w=0;return p&&_<p.length&&(w=p[_]),_+f+w}var f7=function(){function c(){(0,v.Z)(this,c)}return(0,L.Z)(c,[{key:"supports",value:function(p){return p instanceof Map||US(p)}},{key:"create",value:function(){return new p7}}]),c}(),p7=function(){function c(){(0,v.Z)(this,c),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return(0,L.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||US(p)))throw new de(900,!1)}else p=new Map;return this.check(p)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(p){var _=this;this._reset();var w=this._mapHead;if(this._appendAfter=null,this._forEach(p,function(V,ee){if(w&&w.key===ee)_._maybeAddToChanges(w,V),_._appendAfter=w,w=w._next;else{var oe=_._getOrCreateRecordForKey(ee,V);w=_._insertBeforeOrAppend(w,oe)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(var I=w;null!==I;I=I._nextRemoved)I===this._mapHead&&(this._mapHead=null),this._records.delete(I.key),I._nextRemoved=I._next,I.previousValue=I.currentValue,I.currentValue=null,I._prev=null,I._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 w=p._prev;return _._next=p,_._prev=w,p._prev=_,w&&(w._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 w=this._records.get(p);this._maybeAddToChanges(w,_);var I=w._prev,V=w._next;return I&&(I._next=V),V&&(V._prev=I),w._next=null,w._prev=null,w}var ee=new h7(p);return this._records.set(p,ee),ee.currentValue=_,this._addToAdditions(ee),ee}},{key:"_reset",value:function(){if(this.isDirty){var p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(p,_){Object.is(_,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=_,this._addToChanges(p))}},{key:"_addToAdditions",value:function(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}},{key:"_addToChanges",value:function(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}},{key:"_forEach",value:function(p,_){p instanceof Map?p.forEach(_):Object.keys(p).forEach(function(w){return _(p[w],w)})}}]),c}(),h7=(0,L.Z)(function c(f){(0,v.Z)(this,c),this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null});function hL(){return new Wy([new B1])}var Wy=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,L.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(w){return w.supports(p)});if(null!=_)return _;throw new de(901,!1)}}],[{key:"create",value:function(p,_){if(null!=_){var w=_.factories.slice();p=p.concat(w)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(w){return c.create(p,w||hL())},deps:[[c,new o_,new Rf]]}}}]),c}();function mL(){return new rg([new f7])}Wy.\u0275prov=ge({token:Wy,providedIn:"root",factory:hL});var rg=function(){function c(f){(0,v.Z)(this,c),this.factories=f}return(0,L.Z)(c,[{key:"find",value:function(p){var _=this.factories.find(function(w){return w.supports(p)});if(_)return _;throw new de(901,!1)}}],[{key:"create",value:function(p,_){if(_){var w=_.factories.slice();p=p.concat(w)}return new c(p)}},{key:"extend",value:function(p){return{provide:c,useFactory:function(w){return c.create(p,w||mL())},deps:[[c,new o_,new Rf]]}}}]),c}();rg.\u0275prov=ge({token:rg,providedIn:"root",factory:mL});var m7=[new f7],_7=[new B1],WE=(new Wy(_7),new rg(m7),oL(null,"core",[])),ig=(0,L.Z)(function c(f){(0,v.Z)(this,c)});function v7(c){return"boolean"==typeof c?c:null!=c&&"false"!==c}ig.\u0275fac=function(f){return new(f||ig)(fa(ap))},ig.\u0275mod=gt({type:ig}),ig.\u0275inj=Dt({})},3075:function(De,K,m){"use strict";m.d(K,{Cf:function(){return pe},F:function(){return Ca},Fd:function(){return fl},Fj:function(){return Y},JJ:function(){return Xt},JL:function(){return Je},JU:function(){return M},NI:function(){return na},On:function(){return tn},Q7:function(){return Es},QS:function(){return Hl},UX:function(){return xs},Zs:function(){return Fl},_Y:function(){return Jt},a5:function(){return zt},kI:function(){return ce},nJ:function(){return nn},oH:function(){return mi},p4:function(){return ls},qQ:function(){return us},qu:function(){return Ds},sg:function(){return jo},u:function(){return Xi},u5:function(){return Tr},wV:function(){return Mi}});var G=m(3237),W=m(1120),A=m(7762),U=m(7326),R=m(7685),P=m(4902),E=m(136),D=m(9388),j=m(5671),L=m(3144),v=m(5e3),k=m(9808),b=m(3527),O=m(567),S=m(4850),y=function(){function we(Te,se){(0,j.Z)(this,we),this._renderer=Te,this._elementRef=se,this.onChange=function(Me){},this.onTouched=function(){}}return(0,L.Z)(we,[{key:"setProperty",value:function(se,Me){this._renderer.setProperty(this._elementRef.nativeElement,se,Me)}},{key:"registerOnTouched",value:function(se){this.onTouched=se}},{key:"registerOnChange",value:function(se){this.onChange=se}},{key:"setDisabledState",value:function(se){this.setProperty("disabled",se)}}]),we}();y.\u0275fac=function(Te){return new(Te||y)(v.Y36(v.Qsj),v.Y36(v.SBq))},y.\u0275dir=v.lG2({type:y});var T=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se)}(y);T.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(T)))(se||T)}}(),T.\u0275dir=v.lG2({type:T,features:[v.qOj]});var M=new v.OlP("NgValueAccessor"),x={provide:M,useExisting:(0,v.Gpc)(function(){return N}),multi:!0},N=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("checked",Oe)}}]),se}(T);N.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(N)))(se||N)}}(),N.\u0275dir=v.lG2({type:N,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.checked)})("blur",function(){return se.onTouched()})},features:[v._Bn([x]),v.qOj]});var F={provide:M,useExisting:(0,v.Gpc)(function(){return Y}),multi:!0};var $=new v.OlP("CompositionEventMode"),Y=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,Me,Oe))._compositionMode=mt,Ht._composing=!1,null==Ht._compositionMode&&(Ht._compositionMode=!function X(){var we=(0,k.q)()?(0,k.q)().getUserAgent():"";return/android (\d+)/.test(we.toLowerCase())}()),Ht}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){var mt=null==Oe?"":Oe;this.setProperty("value",mt)}},{key:"_handleInput",value:function(Oe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Oe)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(Oe){this._composing=!1,this._compositionMode&&this.onChange(Oe)}}]),se}(y);Y.\u0275fac=function(Te){return new(Te||Y)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36($,8))},Y.\u0275dir=v.lG2({type:Y,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(Te,se){1&Te&&v.NdJ("input",function(Oe){return se._handleInput(Oe.target.value)})("blur",function(){return se.onTouched()})("compositionstart",function(){return se._compositionStart()})("compositionend",function(Oe){return se._compositionEnd(Oe.target.value)})},features:[v._Bn([F]),v.qOj]});function ne(we){return null==we||("string"==typeof we||Array.isArray(we))&&0===we.length}function be(we){return null!=we&&"number"==typeof we.length}var pe=new v.OlP("NgValidators"),de=new v.OlP("NgAsyncValidators"),le=/^(?=.{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])?)*$/,ce=function(){function we(){(0,j.Z)(this,we)}return(0,L.Z)(we,null,[{key:"min",value:function(se){return me(se)}},{key:"max",value:function(se){return je(se)}},{key:"required",value:function(se){return at(se)}},{key:"requiredTrue",value:function(se){return Mt(se)}},{key:"email",value:function(se){return Tt(se)}},{key:"minLength",value:function(se){return xt(se)}},{key:"maxLength",value:function(se){return Lt(se)}},{key:"pattern",value:function(se){return Ze(se)}},{key:"nullValidator",value:function(se){return null}},{key:"compose",value:function(se){return We(se)}},{key:"composeAsync",value:function(se){return dt(se)}}]),we}();function me(we){return function(Te){if(ne(Te.value)||ne(we))return null;var se=parseFloat(Te.value);return!isNaN(se)&&se<we?{min:{min:we,actual:Te.value}}:null}}function je(we){return function(Te){if(ne(Te.value)||ne(we))return null;var se=parseFloat(Te.value);return!isNaN(se)&&se>we?{max:{max:we,actual:Te.value}}:null}}function at(we){return ne(we.value)?{required:!0}:null}function Mt(we){return!0===we.value?null:{required:!0}}function Tt(we){return ne(we.value)||le.test(we.value)?null:{email:!0}}function xt(we){return function(Te){return ne(Te.value)||!be(Te.value)?null:Te.value.length<we?{minlength:{requiredLength:we,actualLength:Te.value.length}}:null}}function Lt(we){return function(Te){return be(Te.value)&&Te.value.length>we?{maxlength:{requiredLength:we,actualLength:Te.value.length}}:null}}function Ze(we){return we?("string"==typeof we?(se="","^"!==we.charAt(0)&&(se+="^"),se+=we,"$"!==we.charAt(we.length-1)&&(se+="$"),Te=new RegExp(se)):(se=we.toString(),Te=we),function(Me){if(ne(Me.value))return null;var Oe=Me.value;return Te.test(Oe)?null:{pattern:{requiredPattern:se,actualValue:Oe}}}):$t;var Te,se}function $t(we){return null}function Ft(we){return null!=we}function fn(we){var Te=(0,v.QGY)(we)?(0,b.D)(we):we;return Te}function nt(we){var Te={};return we.forEach(function(se){Te=null!=se?Object.assign(Object.assign({},Te),se):Te}),0===Object.keys(Te).length?null:Te}function Ot(we,Te){return Te.map(function(se){return se(we)})}function Ct(we){return we.map(function(Te){return function _t(we){return!we.validate}(Te)?Te:function(se){return Te.validate(se)}})}function We(we){if(!we)return null;var Te=we.filter(Ft);return 0==Te.length?null:function(se){return nt(Ot(se,Te))}}function lt(we){return null!=we?We(Ct(we)):null}function dt(we){if(!we)return null;var Te=we.filter(Ft);return 0==Te.length?null:function(se){var Me=Ot(se,Te).map(fn);return(0,O.D)(Me).pipe((0,S.U)(nt))}}function Ut(we){return null!=we?dt(Ct(we)):null}function B(we,Te){return null===we?[Te]:Array.isArray(we)?[].concat((0,P.Z)(we),[Te]):[we,Te]}function H(we){return we._rawValidators}function tt(we){return we._rawAsyncValidators}function Ye(we){return we?Array.isArray(we)?we:[we]:[]}function ge(we,Te){return Array.isArray(we)?we.includes(Te):we===Te}function t(we,Te){var se=Ye(Te);return Ye(we).forEach(function(Oe){ge(se,Oe)||se.push(Oe)}),se}function Dt(we,Te){return Ye(Te).filter(function(se){return!ge(we,se)})}var Zt=function(){function we(){(0,j.Z)(this,we),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return(0,L.Z)(we,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(se){this._rawValidators=se||[],this._composedValidatorFn=lt(this._rawValidators)}},{key:"_setAsyncValidators",value:function(se){this._rawAsyncValidators=se||[],this._composedAsyncValidatorFn=Ut(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(se){this._onDestroyCallbacks.push(se)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(se){return se()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(se)}},{key:"hasError",value:function(se,Me){return!!this.control&&this.control.hasError(se,Me)}},{key:"getError",value:function(se,Me){return this.control?this.control.getError(se,Me):null}}]),we}(),zt=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._parent=null,Me.name=null,Me.valueAccessor=null,Me}return(0,L.Z)(se)}(Zt),sn=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),se}(Zt),qt=function(){function we(Te){(0,j.Z)(this,we),this._cd=Te}return(0,L.Z)(we,[{key:"isTouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.touched)}},{key:"isUntouched",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.untouched)}},{key:"isPristine",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pristine)}},{key:"isDirty",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.dirty)}},{key:"isValid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.valid)}},{key:"isInvalid",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.invalid)}},{key:"isPending",get:function(){var se,Me;return!(null===(Me=null===(se=this._cd)||void 0===se?void 0:se.control)||void 0===Me||!Me.pending)}},{key:"isSubmitted",get:function(){var se;return!(null===(se=this._cd)||void 0===se||!se.submitted)}}]),we}(),Xt=(Object.assign(Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"}),{"[class.ng-submitted]":"isSubmitted"}),function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me){return(0,j.Z)(this,se),Te.call(this,Me)}return(0,L.Z)(se)}(qt));Xt.\u0275fac=function(Te){return new(Te||Xt)(v.Y36(zt,2))},Xt.\u0275dir=v.lG2({type:Xt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Te,se){2&Te&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)},features:[v.qOj]});var Je=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me){return(0,j.Z)(this,se),Te.call(this,Me)}return(0,L.Z)(se)}(qt);Je.\u0275fac=function(Te){return new(Te||Je)(v.Y36(sn,10))},Je.\u0275dir=v.lG2({type:Je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Te,se){2&Te&&v.ekj("ng-untouched",se.isUntouched)("ng-touched",se.isTouched)("ng-pristine",se.isPristine)("ng-dirty",se.isDirty)("ng-valid",se.isValid)("ng-invalid",se.isInvalid)("ng-pending",se.isPending)("ng-submitted",se.isSubmitted)},features:[v.qOj]});var St="VALID",ze="INVALID",Ke="PENDING",Re="DISABLED";function qe(we){return(Yt(we)?we.validators:we)||null}function vt(we){return Array.isArray(we)?lt(we):we||null}function dn(we,Te){return(Yt(Te)?Te.asyncValidators:we)||null}function Hn(we){return Array.isArray(we)?Ut(we):we||null}function Yt(we){return null!=we&&!Array.isArray(we)&&"object"==typeof we}function kt(we,Te,se){var Me=we.controls;if(!(Te?Object.keys(Me):Me).length)throw new v.vHH(1e3,"");if(!Me[se])throw new v.vHH(1001,"")}function $e(we,Te,se){we._forEachChild(function(Me,Oe){if(void 0===se[Oe])throw new v.vHH(1002,"")})}var gt=function(){function we(Te,se){(0,j.Z)(this,we),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Te,this._rawAsyncValidators=se,this._composedValidatorFn=vt(this._rawValidators),this._composedAsyncValidatorFn=Hn(this._rawAsyncValidators)}return(0,L.Z)(we,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(se){this._rawValidators=this._composedValidatorFn=se}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(se){this._rawAsyncValidators=this._composedAsyncValidatorFn=se}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===St}},{key:"invalid",get:function(){return this.status===ze}},{key:"pending",get:function(){return this.status==Ke}},{key:"disabled",get:function(){return this.status===Re}},{key:"enabled",get:function(){return this.status!==Re}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(se){this._rawValidators=se,this._composedValidatorFn=vt(se)}},{key:"setAsyncValidators",value:function(se){this._rawAsyncValidators=se,this._composedAsyncValidatorFn=Hn(se)}},{key:"addValidators",value:function(se){this.setValidators(t(se,this._rawValidators))}},{key:"addAsyncValidators",value:function(se){this.setAsyncValidators(t(se,this._rawAsyncValidators))}},{key:"removeValidators",value:function(se){this.setValidators(Dt(se,this._rawValidators))}},{key:"removeAsyncValidators",value:function(se){this.setAsyncValidators(Dt(se,this._rawAsyncValidators))}},{key:"hasValidator",value:function(se){return ge(this._rawValidators,se)}},{key:"hasAsyncValidator",value:function(se){return ge(this._rawAsyncValidators,se)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!se.onlySelf&&this._parent.markAsTouched(se)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(se){return se.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(Me){Me.markAsUntouched({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"markAsDirty",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!se.onlySelf&&this._parent.markAsDirty(se)}},{key:"markAsPristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(Me){Me.markAsPristine({onlySelf:!0})}),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"markAsPending",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Ke,!1!==se.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!se.onlySelf&&this._parent.markAsPending(se)}},{key:"disable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=Re,this.errors=null,this._forEachChild(function(Oe){Oe.disable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this._updateValue(),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!0)})}},{key:"enable",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=this._parentMarkedDirty(se.onlySelf);this.status=St,this._forEachChild(function(Oe){Oe.enable(Object.assign(Object.assign({},se),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},se),{skipPristineCheck:Me})),this._onDisabledChange.forEach(function(Oe){return Oe(!1)})}},{key:"_updateAncestors",value:function(se){this._parent&&!se.onlySelf&&(this._parent.updateValueAndValidity(se),se.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(se){this._parent=se}},{key:"getRawValue",value:function(){return this.value}},{key:"updateValueAndValidity",value:function(){var se=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===St||this.status===Ke)&&this._runAsyncValidator(se.emitEvent)),!1!==se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!se.onlySelf&&this._parent.updateValueAndValidity(se)}},{key:"_updateTreeValidity",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(Me){return Me._updateTreeValidity(se)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:se.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Re:St}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(se){var Me=this;if(this.asyncValidator){this.status=Ke,this._hasOwnPendingAsyncValidator=!0;var Oe=fn(this.asyncValidator(this));this._asyncValidationSubscription=Oe.subscribe(function(mt){Me._hasOwnPendingAsyncValidator=!1,Me.setErrors(mt,{emitEvent:se})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=se,this._updateControlsErrors(!1!==Me.emitEvent)}},{key:"get",value:function(se){var Me=se;return null==Me||(Array.isArray(Me)||(Me=Me.split(".")),0===Me.length)?null:Me.reduce(function(Oe,mt){return Oe&&Oe._find(mt)},this)}},{key:"getError",value:function(se,Me){var Oe=Me?this.get(Me):this;return Oe&&Oe.errors?Oe.errors[se]:null}},{key:"hasError",value:function(se,Me){return!!this.getError(se,Me)}},{key:"root",get:function(){for(var se=this;se._parent;)se=se._parent;return se}},{key:"_updateControlsErrors",value:function(se){this.status=this._calculateStatus(),se&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(se)}},{key:"_initObservables",value:function(){this.valueChanges=new v.vpe,this.statusChanges=new v.vpe}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Re:this.errors?ze:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ke)?Ke:this._anyControlsHaveStatus(ze)?ze:St}},{key:"_anyControlsHaveStatus",value:function(se){return this._anyControls(function(Me){return Me.status===se})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(se){return se.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(se){return se.touched})}},{key:"_updatePristine",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!se.onlySelf&&this._parent._updatePristine(se)}},{key:"_updateTouched",value:function(){var se=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!se.onlySelf&&this._parent._updateTouched(se)}},{key:"_registerOnCollectionChange",value:function(se){this._onCollectionChange=se}},{key:"_setUpdateStrategy",value:function(se){Yt(se)&&null!=se.updateOn&&(this._updateOn=se.updateOn)}},{key:"_parentMarkedDirty",value:function(se){var Me=this._parent&&this._parent.dirty;return!se&&!!Me&&!this._parent._anyControlsDirty()}},{key:"_find",value:function(se){return null}}]),we}(),yt=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,qe(Oe),dn(mt,Oe))).controls=Me,Ht._initObservables(),Ht._setUpdateStrategy(Oe),Ht._setUpControls(),Ht.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ht.asyncValidator}),Ht}return(0,L.Z)(se,[{key:"registerControl",value:function(Oe,mt){return this.controls[Oe]?this.controls[Oe]:(this.controls[Oe]=mt,mt.setParent(this),mt._registerOnCollectionChange(this._onCollectionChange),mt)}},{key:"addControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(Oe,mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[Oe]&&this.controls[Oe]._registerOnCollectionChange(function(){}),delete this.controls[Oe],mt&&this.registerControl(Oe,mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(Oe){return this.controls.hasOwnProperty(Oe)&&this.controls[Oe].enabled}},{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,0,Oe),Object.keys(Oe).forEach(function(On){kt(mt,!0,On),mt.controls[On].setValue(Oe[On],{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Object.keys(Oe).forEach(function(On){var sr=mt.controls[On];sr&&sr.patchValue(Oe[On],{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ht,On){Ht.reset(Oe[On],{onlySelf:!0,emitEvent:mt.emitEvent})}),this._updatePristine(mt),this._updateTouched(mt),this.updateValueAndValidity(mt)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(Oe,mt,Ht){return Oe[Ht]=mt.getRawValue(),Oe})}},{key:"_syncPendingControls",value:function(){var Oe=this._reduceChildren(!1,function(mt,Ht){return!!Ht._syncPendingControls()||mt});return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){var mt=this;Object.keys(this.controls).forEach(function(Ht){var On=mt.controls[Ht];On&&Oe(On,Ht)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(mt){mt.setParent(Oe),mt._registerOnCollectionChange(Oe._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(Oe){for(var mt=0,Ht=Object.entries(this.controls);mt<Ht.length;mt++){var On=(0,R.Z)(Ht[mt],2),sr=On[0],pl=On[1];if(this.contains(sr)&&Oe(pl))return!0}return!1}},{key:"_reduceValue",value:function(){var Oe=this;return this._reduceChildren({},function(Ht,On,sr){return(On.enabled||Oe.disabled)&&(Ht[sr]=On.value),Ht})}},{key:"_reduceChildren",value:function(Oe,mt){var Ht=Oe;return this._forEachChild(function(On,sr){Ht=mt(Ht,On,sr)}),Ht}},{key:"_allControlsDisabled",value:function(){for(var Oe=0,mt=Object.keys(this.controls);Oe<mt.length;Oe++){var Ht=mt[Oe];if(this.controls[Ht].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_find",value:function(Oe){return this.controls.hasOwnProperty(Oe)?this.controls[Oe]:null}}]),se}(gt),nn=yt,Vn=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se)}(yt);function ar(we,Te){return[].concat((0,P.Z)(Te.path),[we])}function Or(we,Te){var se,Me;Ra(we,Te),Te.valueAccessor.writeValue(we.value),we.disabled&&(null===(Me=(se=Te.valueAccessor).setDisabledState)||void 0===Me||Me.call(se,!0)),function ss(we,Te){Te.valueAccessor.registerOnChange(function(se){we._pendingValue=se,we._pendingChange=!0,we._pendingDirty=!0,"change"===we.updateOn&&ri(we,Te)})}(we,Te),function Vs(we,Te){var se=function(Oe,mt){Te.valueAccessor.writeValue(Oe),mt&&Te.viewToModelUpdate(Oe)};we.registerOnChange(se),Te._registerOnDestroy(function(){we._unregisterOnChange(se)})}(we,Te),function ta(we,Te){Te.valueAccessor.registerOnTouched(function(){we._pendingTouched=!0,"blur"===we.updateOn&&we._pendingChange&&ri(we,Te),"submit"!==we.updateOn&&we.markAsTouched()})}(we,Te),function Pa(we,Te){if(Te.valueAccessor.setDisabledState){var se=function(Oe){Te.valueAccessor.setDisabledState(Oe)};we.registerOnDisabledChange(se),Te._registerOnDestroy(function(){we._unregisterOnDisabledChange(se)})}}(we,Te)}function hi(we,Te){!(arguments.length>2&&void 0!==arguments[2])||arguments[2];var Me=function(){};Te.valueAccessor&&(Te.valueAccessor.registerOnChange(Me),Te.valueAccessor.registerOnTouched(Me)),ua(we,Te),we&&(Te._invokeOnDestroyCallbacks(),we._registerOnCollectionChange(function(){}))}function Gi(we,Te){we.forEach(function(se){se.registerOnValidatorChange&&se.registerOnValidatorChange(Te)})}function Ra(we,Te){var se=H(we);null!==Te.validator?we.setValidators(B(se,Te.validator)):"function"==typeof se&&we.setValidators([se]);var Me=tt(we);null!==Te.asyncValidator?we.setAsyncValidators(B(Me,Te.asyncValidator)):"function"==typeof Me&&we.setAsyncValidators([Me]);var Oe=function(){return we.updateValueAndValidity()};Gi(Te._rawValidators,Oe),Gi(Te._rawAsyncValidators,Oe)}function ua(we,Te){var se=!1;if(null!==we){if(null!==Te.validator){var Me=H(we);if(Array.isArray(Me)&&Me.length>0){var Oe=Me.filter(function(sr){return sr!==Te.validator});Oe.length!==Me.length&&(se=!0,we.setValidators(Oe))}}if(null!==Te.asyncValidator){var mt=tt(we);if(Array.isArray(mt)&&mt.length>0){var Ht=mt.filter(function(sr){return sr!==Te.asyncValidator});Ht.length!==mt.length&&(se=!0,we.setAsyncValidators(Ht))}}}var On=function(){};return Gi(Te._rawValidators,On),Gi(Te._rawAsyncValidators,On),se}function ri(we,Te){we._pendingDirty&&we.markAsDirty(),we.setValue(we._pendingValue,{emitModelToViewChange:!1}),Te.viewToModelUpdate(we._pendingValue),we._pendingChange=!1}function zi(we,Te){Ra(we,Te)}function ki(we,Te){if(!we.hasOwnProperty("model"))return!1;var se=we.model;return!!se.isFirstChange()||!Object.is(Te,se.currentValue)}function qr(we,Te){we._syncPendingControls(),Te.forEach(function(se){var Me=se.control;"submit"===Me.updateOn&&Me._pendingChange&&(se.viewToModelUpdate(Me._pendingValue),Me._pendingChange=!1)})}function Bi(we,Te){if(!Te)return null;Array.isArray(Te);var se=void 0,Me=void 0,Oe=void 0;return Te.forEach(function(mt){mt.constructor===Y?se=mt:function Ko(we){return Object.getPrototypeOf(we.constructor)===T}(mt)?Me=mt:Oe=mt}),Oe||Me||se||null}var Fi={provide:sn,useExisting:(0,v.Gpc)(function(){return Ca})},Uo=Promise.resolve(),Ca=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe){var mt;return(0,j.Z)(this,se),(mt=Te.call(this)).submitted=!1,mt._directives=new Set,mt.ngSubmit=new v.vpe,mt.form=new yt({},lt(Me),Ut(Oe)),mt}return(0,L.Z)(se,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Oe.control=Ht.registerControl(Oe.name,Oe.control),Or(Oe.control,Oe),Oe.control.updateValueAndValidity({emitEvent:!1}),mt._directives.add(Oe)})}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Ht&&Ht.removeControl(Oe.name),mt._directives.delete(Oe)})}},{key:"addFormGroup",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path),On=new yt({});zi(On,Oe),Ht.registerControl(Oe.name,On),On.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(Oe){var mt=this;Uo.then(function(){var Ht=mt._findContainer(Oe.path);Ht&&Ht.removeControl(Oe.name)})}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,mt){var Ht=this;Uo.then(function(){Ht.form.get(Oe.path).setValue(mt)})}},{key:"setValue",value:function(Oe){this.control.setValue(Oe)}},{key:"onSubmit",value:function(Oe){var mt;return this.submitted=!0,qr(this.form,this._directives),this.ngSubmit.emit(Oe),"dialog"===(null===(mt=null==Oe?void 0:Oe.target)||void 0===mt?void 0:mt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(Oe){return Oe.pop(),Oe.length?this.form.get(Oe):this.form}}]),se}(sn);function ca(we,Te){var se=we.indexOf(Te);se>-1&&we.splice(se,1)}function co(we){return"object"==typeof we&&null!==we&&2===Object.keys(we).length&&"value"in we&&"disabled"in we}Ca.\u0275fac=function(Te){return new(Te||Ca)(v.Y36(pe,10),v.Y36(de,10))},Ca.\u0275dir=v.lG2({type:Ca,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Fi]),v.qOj]});var na=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me,Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,mt=arguments.length>1?arguments[1]:void 0,Ht=arguments.length>2?arguments[2]:void 0;return(0,j.Z)(this,se),(Me=Te.call(this,qe(mt),dn(Ht,mt))).defaultValue=null,Me._onChange=[],Me._pendingChange=!1,Me._applyFormState(Oe),Me._setUpdateStrategy(mt),Me._initObservables(),Me.updateValueAndValidity({onlySelf:!0,emitEvent:!!Me.asyncValidator}),Yt(mt)&&(mt.nonNullable||mt.initialValueIsDefault)&&(co(Oe)?Me.defaultValue=Oe.value:Me.defaultValue=Oe),Me}return(0,L.Z)(se,[{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=Oe,this._onChange.length&&!1!==Ht.emitModelToViewChange&&this._onChange.forEach(function(On){return On(mt.value,!1!==Ht.emitViewToModelChange)}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(Oe,mt)}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(Oe),this.markAsPristine(mt),this.markAsUntouched(mt),this.setValue(this.value,mt),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(Oe){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(Oe){this._onChange.push(Oe)}},{key:"_unregisterOnChange",value:function(Oe){ca(this._onChange,Oe)}},{key:"registerOnDisabledChange",value:function(Oe){this._onDisabledChange.push(Oe)}},{key:"_unregisterOnDisabledChange",value:function(Oe){ca(this._onDisabledChange,Oe)}},{key:"_forEachChild",value:function(Oe){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)}},{key:"_applyFormState",value:function(Oe){co(Oe)?(this.value=this._pendingValue=Oe.value,Oe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Oe}}]),se}(gt),ls=na,fo=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{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 ar(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(){}}]),se}(sn);fo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(fo)))(se||fo)}}(),fo.\u0275dir=v.lG2({type:fo,features:[v.qOj]});var Wi={provide:sn,useExisting:(0,v.Gpc)(function(){return Ui})},Ui=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{key:"_checkParentType",value:function(){!(this._parent instanceof se)&&this._parent}}]),se}(fo);Ui.\u0275fac=function(Te){return new(Te||Ui)(v.Y36(sn,5),v.Y36(pe,10),v.Y36(de,10))},Ui.\u0275dir=v.lG2({type:Ui,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[v._Bn([Wi]),v.qOj]});var Ss={provide:zt,useExisting:(0,v.Gpc)(function(){return tn})},qi=Promise.resolve(),tn=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht,On){var sr;return(0,j.Z)(this,se),(sr=Te.call(this))._changeDetectorRef=On,sr.control=new na,sr._registered=!1,sr.update=new v.vpe,sr._parent=Me,sr._setValidators(Oe),sr._setAsyncValidators(mt),sr.valueAccessor=Bi((0,U.Z)(sr),Ht),sr}return(0,L.Z)(se,[{key:"ngOnChanges",value:function(Oe){if(this._checkForErrors(),!this._registered||"name"in Oe){if(this._registered&&(this._checkName(),this.formDirective)){var mt=Oe.name.previousValue;this.formDirective.removeControl({name:mt,path:this._getPath(mt)})}this._setUpControl()}"isDisabled"in Oe&&this._updateDisabled(Oe),ki(Oe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){Or(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}},{key:"_updateValue",value:function(Oe){var mt=this;qi.then(function(){var Ht;mt.control.setValue(Oe,{emitViewToModelChange:!1}),null===(Ht=mt._changeDetectorRef)||void 0===Ht||Ht.markForCheck()})}},{key:"_updateDisabled",value:function(Oe){var mt=this,Ht=Oe.isDisabled.currentValue,On=0!==Ht&&(0,v.D6c)(Ht);qi.then(function(){var sr;On&&!mt.control.disabled?mt.control.disable():!On&&mt.control.disabled&&mt.control.enable(),null===(sr=mt._changeDetectorRef)||void 0===sr||sr.markForCheck()})}},{key:"_getPath",value:function(Oe){return this._parent?ar(Oe,this._parent):[Oe]}}]),se}(zt);tn.\u0275fac=function(Te){return new(Te||tn)(v.Y36(sn,9),v.Y36(pe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(v.sBO,8))},tn.\u0275dir=v.lG2({type:tn,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[v._Bn([Ss]),v.qOj,v.TTD]});var Jt=(0,L.Z)(function we(){(0,j.Z)(this,we)});Jt.\u0275fac=function(Te){return new(Te||Jt)},Jt.\u0275dir=v.lG2({type:Jt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});var Jr={provide:M,useExisting:(0,v.Gpc)(function(){return Mi}),multi:!0},Mi=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){var mt=null==Oe?"":Oe;this.setProperty("value",mt)}},{key:"registerOnChange",value:function(Oe){this.onChange=function(mt){Oe(""==mt?null:parseFloat(mt))}}}]),se}(T);Mi.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Mi)))(se||Mi)}}(),Mi.\u0275dir=v.lG2({type:Mi,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([Jr]),v.qOj]});var Jo={provide:M,useExisting:(0,v.Gpc)(function(){return go}),multi:!0};var bi=(0,L.Z)(function we(){(0,j.Z)(this,we)});bi.\u0275fac=function(Te){return new(Te||bi)},bi.\u0275mod=v.oAB({type:bi}),bi.\u0275inj=v.cJS({});var Rn=function(){function we(){(0,j.Z)(this,we),this._accessors=[]}return(0,L.Z)(we,[{key:"add",value:function(se,Me){this._accessors.push([se,Me])}},{key:"remove",value:function(se){for(var Me=this._accessors.length-1;Me>=0;--Me)if(this._accessors[Me][1]===se)return void this._accessors.splice(Me,1)}},{key:"select",value:function(se){var Me=this;this._accessors.forEach(function(Oe){Me._isSameGroup(Oe,se)&&Oe[1]!==se&&Oe[1].fireUncheck(se.value)})}},{key:"_isSameGroup",value:function(se,Me){return!!se[0].control&&(se[0]._parent===Me._control._parent&&se[1].name===Me.name)}}]),we}();Rn.\u0275fac=function(Te){return new(Te||Rn)},Rn.\u0275prov=v.Yz7({token:Rn,factory:Rn.\u0275fac,providedIn:bi});var go=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht){var On;return(0,j.Z)(this,se),(On=Te.call(this,Me,Oe))._registry=mt,On._injector=Ht,On.onChange=function(){},On}return(0,L.Z)(se,[{key:"ngOnInit",value:function(){this._control=this._injector.get(zt),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(Oe){this._state=Oe===this.value,this.setProperty("checked",this._state)}},{key:"registerOnChange",value:function(Oe){var mt=this;this._fn=Oe,this.onChange=function(){Oe(mt.value),mt._registry.select(mt)}}},{key:"fireUncheck",value:function(Oe){this.writeValue(Oe)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),se}(T);go.\u0275fac=function(Te){return new(Te||go)(v.Y36(v.Qsj),v.Y36(v.SBq),v.Y36(Rn),v.Y36(v.zs3))},go.\u0275dir=v.lG2({type:go,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(){return se.onChange()})("blur",function(){return se.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[v._Bn([Jo]),v.qOj]});var Bl={provide:M,useExisting:(0,v.Gpc)(function(){return Nn}),multi:!0},Nn=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"writeValue",value:function(Oe){this.setProperty("value",parseFloat(Oe))}},{key:"registerOnChange",value:function(Oe){this.onChange=function(mt){Oe(""==mt?null:parseFloat(mt))}}}]),se}(T);Nn.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Nn)))(se||Nn)}}(),Nn.\u0275dir=v.lG2({type:Nn,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("input",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},features:[v._Bn([Bl]),v.qOj]});var xn=new v.OlP("NgModelWithFormControlWarning"),pn={provide:zt,useExisting:(0,v.Gpc)(function(){return mi})},mi=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht){var On;return(0,j.Z)(this,se),(On=Te.call(this))._ngModelWarningConfig=Ht,On.update=new v.vpe,On._ngModelWarningSent=!1,On._setValidators(Me),On._setAsyncValidators(Oe),On.valueAccessor=Bi((0,U.Z)(On),mt),On}return(0,L.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){if(this._isControlChanged(Oe)){var mt=Oe.form.previousValue;mt&&hi(mt,this,!1),Or(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ki(Oe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&hi(this.form,this,!1)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"_isControlChanged",value:function(Oe){return Oe.hasOwnProperty("form")}}]),se}(zt);mi._ngModelWarningSentOnce=!1,mi.\u0275fac=function(Te){return new(Te||mi)(v.Y36(pe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(xn,8))},mi.\u0275dir=v.lG2({type:mi,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[v._Bn([pn]),v.qOj,v.TTD]});var Ji={provide:sn,useExisting:(0,v.Gpc)(function(){return jo})},jo=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe){var mt;return(0,j.Z)(this,se),(mt=Te.call(this)).submitted=!1,mt._onCollectionChange=function(){return mt._updateDomValue()},mt.directives=[],mt.form=null,mt.ngSubmit=new v.vpe,mt._setValidators(Me),mt._setAsyncValidators(Oe),mt}return(0,L.Z)(se,[{key:"ngOnChanges",value:function(Oe){this._checkFormPresent(),Oe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(ua(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(Oe){var mt=this.form.get(Oe.path);return Or(mt,Oe),mt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Oe),mt}},{key:"getControl",value:function(Oe){return this.form.get(Oe.path)}},{key:"removeControl",value:function(Oe){hi(Oe.control||null,Oe,!1),function ba(we,Te){var se=we.indexOf(Te);se>-1&&we.splice(se,1)}(this.directives,Oe)}},{key:"addFormGroup",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormGroup",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormGroup",value:function(Oe){return this.form.get(Oe.path)}},{key:"addFormArray",value:function(Oe){this._setUpFormContainer(Oe)}},{key:"removeFormArray",value:function(Oe){this._cleanUpFormContainer(Oe)}},{key:"getFormArray",value:function(Oe){return this.form.get(Oe.path)}},{key:"updateModel",value:function(Oe,mt){this.form.get(Oe.path).setValue(mt)}},{key:"onSubmit",value:function(Oe){var mt;return this.submitted=!0,qr(this.form,this.directives),this.ngSubmit.emit(Oe),"dialog"===(null===(mt=null==Oe?void 0:Oe.target)||void 0===mt?void 0:mt.method)}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(Oe),this.submitted=!1}},{key:"_updateDomValue",value:function(){var Oe=this;this.directives.forEach(function(mt){var Ht=mt.control,On=Oe.form.get(mt.path);Ht!==On&&(hi(Ht||null,mt),function(Te){return Te instanceof na}(On)&&(Or(On,mt),mt.control=On))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(Oe){var mt=this.form.get(Oe.path);zi(mt,Oe),mt.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(Oe){if(this.form){var mt=this.form.get(Oe.path);if(mt){var Ht=function Yn(we,Te){return ua(we,Te)}(mt,Oe);Ht&&mt.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){Ra(this.form,this),this._oldForm&&ua(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){this.form}}]),se}(sn);jo.\u0275fac=function(Te){return new(Te||jo)(v.Y36(pe,10),v.Y36(de,10))},jo.\u0275dir=v.lG2({type:jo,selectors:[["","formGroup",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("submit",function(Oe){return se.onSubmit(Oe)})("reset",function(){return se.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[v._Bn([Ji]),v.qOj,v.TTD]});var Qi={provide:sn,useExisting:(0,v.Gpc)(function(){return Vi})},Vi=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{key:"_checkParentType",value:function(){ir(this._parent)}}]),se}(fo);Vi.\u0275fac=function(Te){return new(Te||Vi)(v.Y36(sn,13),v.Y36(pe,10),v.Y36(de,10))},Vi.\u0275dir=v.lG2({type:Vi,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[v._Bn([Qi]),v.qOj]});var ei={provide:sn,useExisting:(0,v.Gpc)(function(){return _i})},_i=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this))._parent=Me,Ht._setValidators(Oe),Ht._setAsyncValidators(mt),Ht}return(0,L.Z)(se,[{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 ar(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"_checkParentType",value:function(){ir(this._parent)}}]),se}(sn);function ir(we){return!(we instanceof Vi||we instanceof jo||we instanceof _i)}_i.\u0275fac=function(Te){return new(Te||_i)(v.Y36(sn,13),v.Y36(pe,10),v.Y36(de,10))},_i.\u0275dir=v.lG2({type:_i,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[v._Bn([ei]),v.qOj]});var Do={provide:zt,useExisting:(0,v.Gpc)(function(){return Xi})},Xi=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt,Ht,On){var sr;return(0,j.Z)(this,se),(sr=Te.call(this))._ngModelWarningConfig=On,sr._added=!1,sr.update=new v.vpe,sr._ngModelWarningSent=!1,sr._parent=Me,sr._setValidators(Oe),sr._setAsyncValidators(mt),sr.valueAccessor=Bi((0,U.Z)(sr),Ht),sr}return(0,L.Z)(se,[{key:"isDisabled",set:function(Oe){}},{key:"ngOnChanges",value:function(Oe){this._added||this._setUpControl(),ki(Oe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(Oe){this.viewModel=Oe,this.update.emit(Oe)}},{key:"path",get:function(){return ar(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"_checkParentType",value:function(){}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}]),se}(zt);Xi._ngModelWarningSentOnce=!1,Xi.\u0275fac=function(Te){return new(Te||Xi)(v.Y36(sn,13),v.Y36(pe,10),v.Y36(de,10),v.Y36(M,10),v.Y36(xn,8))},Xi.\u0275dir=v.lG2({type:Xi,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[v._Bn([Do]),v.qOj,v.TTD]});var wa={provide:M,useExisting:(0,v.Gpc)(function(){return Qo}),multi:!0};function Za(we,Te){return null==we?"".concat(Te):(Te&&"object"==typeof Te&&(Te="Object"),"".concat(we,": ").concat(Te).slice(0,50))}var Qo=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){this.value=Oe;var Ht=Za(this._getOptionId(Oe),Oe);this.setProperty("value",Ht)}},{key:"registerOnChange",value:function(Oe){var mt=this;this.onChange=function(Ht){mt.value=mt._getOptionValue(Ht),Oe(mt.value)}}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(Oe){for(var mt=0,Ht=Array.from(this._optionMap.keys());mt<Ht.length;mt++){var On=Ht[mt];if(this._compareWith(this._optionMap.get(On),Oe))return On}return null}},{key:"_getOptionValue",value:function(Oe){var mt=function oo(we){return we.split(":")[0]}(Oe);return this._optionMap.has(mt)?this._optionMap.get(mt):Oe}}]),se}(T);Qo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Qo)))(se||Qo)}}(),Qo.\u0275dir=v.lG2({type:Qo,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target.value)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([wa]),v.qOj]});var ra=function(){function we(Te,se,Me){(0,j.Z)(this,we),this._element=Te,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption())}return(0,L.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._select._optionMap.set(this.id,se),this._setElementValue(Za(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._setElementValue(se),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();ra.\u0275fac=function(Te){return new(Te||ra)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(Qo,9))},ra.\u0275dir=v.lG2({type:ra,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var dl={provide:M,useExisting:(0,v.Gpc)(function(){return ka}),multi:!0};function Na(we,Te){return null==we?"".concat(Te):("string"==typeof Te&&(Te="'".concat(Te,"'")),Te&&"object"==typeof Te&&(Te="Object"),"".concat(we,": ").concat(Te).slice(0,50))}var ka=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments))._optionMap=new Map,Me._idCounter=0,Me._compareWith=Object.is,Me}return(0,L.Z)(se,[{key:"compareWith",set:function(Oe){this._compareWith=Oe}},{key:"writeValue",value:function(Oe){var Ht,mt=this;if(this.value=Oe,Array.isArray(Oe)){var On=Oe.map(function(sr){return mt._getOptionId(sr)});Ht=function(pl,lo){pl._setSelected(On.indexOf(lo.toString())>-1)}}else Ht=function(pl,lo){pl._setSelected(!1)};this._optionMap.forEach(Ht)}},{key:"registerOnChange",value:function(Oe){var mt=this;this.onChange=function(Ht){var On=[],sr=Ht.selectedOptions;if(void 0!==sr)for(var pl=sr,lo=0;lo<pl.length;lo++){var yd=pl[lo],jl=mt._getOptionValue(yd.value);On.push(jl)}else for(var Xo=Ht.options,Ta=0;Ta<Xo.length;Ta++){var Ks=Xo[Ta];if(Ks.selected){var hl=mt._getOptionValue(Ks.value);On.push(hl)}}mt.value=On,Oe(On)}}},{key:"_registerOption",value:function(Oe){var mt=(this._idCounter++).toString();return this._optionMap.set(mt,Oe),mt}},{key:"_getOptionId",value:function(Oe){for(var mt=0,Ht=Array.from(this._optionMap.keys());mt<Ht.length;mt++){var On=Ht[mt];if(this._compareWith(this._optionMap.get(On)._value,Oe))return On}return null}},{key:"_getOptionValue",value:function(Oe){var mt=function ao(we){return we.split(":")[0]}(Oe);return this._optionMap.has(mt)?this._optionMap.get(mt)._value:Oe}}]),se}(T);ka.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(ka)))(se||ka)}}(),ka.\u0275dir=v.lG2({type:ka,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(Te,se){1&Te&&v.NdJ("change",function(Oe){return se.onChange(Oe.target)})("blur",function(){return se.onTouched()})},inputs:{compareWith:"compareWith"},features:[v._Bn([dl]),v.qOj]});var vu=function(){function we(Te,se,Me){(0,j.Z)(this,we),this._element=Te,this._renderer=se,this._select=Me,this._select&&(this.id=this._select._registerOption(this))}return(0,L.Z)(we,[{key:"ngValue",set:function(se){null!=this._select&&(this._value=se,this._setElementValue(Na(this.id,se)),this._select.writeValue(this._select.value))}},{key:"value",set:function(se){this._select?(this._value=se,this._setElementValue(Na(this.id,se)),this._select.writeValue(this._select.value)):this._setElementValue(se)}},{key:"_setElementValue",value:function(se){this._renderer.setProperty(this._element.nativeElement,"value",se)}},{key:"_setSelected",value:function(se){this._renderer.setProperty(this._element.nativeElement,"selected",se)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}]),we}();function vd(we){return"number"==typeof we?we:parseInt(we,10)}function Hi(we){return"number"==typeof we?we:parseFloat(we)}vu.\u0275fac=function(Te){return new(Te||vu)(v.Y36(v.SBq),v.Y36(v.Qsj),v.Y36(ka,9))},vu.\u0275dir=v.lG2({type:vu,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});var Yi=function(){function we(){(0,j.Z)(this,we),this._validator=$t}return(0,L.Z)(we,[{key:"ngOnChanges",value:function(se){if(this.inputName in se){var Me=this.normalizeInput(se[this.inputName].currentValue);this._enabled=this.enabled(Me),this._validator=this._enabled?this.createValidator(Me):$t,this._onChange&&this._onChange()}}},{key:"validate",value:function(se){return this._validator(se)}},{key:"registerOnValidatorChange",value:function(se){this._onChange=se}},{key:"enabled",value:function(se){return null!=se}}]),we}();Yi.\u0275fac=function(Te){return new(Te||Yi)},Yi.\u0275dir=v.lG2({type:Yi,features:[v.TTD]});var Ec={provide:pe,useExisting:(0,v.Gpc)(function(){return fl}),multi:!0},fl=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="max",Me.normalizeInput=function(Oe){return Hi(Oe)},Me.createValidator=function(Oe){return je(Oe)},Me}return(0,L.Z)(se)}(Yi);fl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(fl)))(se||fl)}}(),fl.\u0275dir=v.lG2({type:fl,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("max",se._enabled?se.max:null)},inputs:{max:"max"},features:[v._Bn([Ec]),v.qOj]});var Tf={provide:pe,useExisting:(0,v.Gpc)(function(){return us}),multi:!0},us=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="min",Me.normalizeInput=function(Oe){return Hi(Oe)},Me.createValidator=function(Oe){return me(Oe)},Me}return(0,L.Z)(se)}(Yi);us.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(us)))(se||us)}}(),us.\u0275dir=v.lG2({type:us,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("min",se._enabled?se.min:null)},inputs:{min:"min"},features:[v._Bn([Tf]),v.qOj]});var Mf={provide:pe,useExisting:(0,v.Gpc)(function(){return Es}),multi:!0},so={provide:pe,useExisting:(0,v.Gpc)(function(){return Fl}),multi:!0},Es=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="required",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return at},Me}return(0,L.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Yi);Es.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Es)))(se||Es)}}(),Es.\u0275dir=v.lG2({type:Es,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("required",se._enabled?"":null)},inputs:{required:"required"},features:[v._Bn([Mf]),v.qOj]});var Fl=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).createValidator=function(Oe){return Mt},Me}return(0,L.Z)(se)}(Es);Fl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Fl)))(se||Fl)}}(),Fl.\u0275dir=v.lG2({type:Fl,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("required",se._enabled?"":null)},features:[v._Bn([so]),v.qOj]});var xc={provide:pe,useExisting:(0,v.Gpc)(function(){return vo}),multi:!0},vo=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="email",Me.normalizeInput=v.D6c,Me.createValidator=function(Oe){return Tt},Me}return(0,L.Z)(se,[{key:"enabled",value:function(Oe){return Oe}}]),se}(Yi);vo.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(vo)))(se||vo)}}(),vo.\u0275dir=v.lG2({type:vo,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[v._Bn([xc]),v.qOj]});var Dc={provide:pe,useExisting:(0,v.Gpc)(function(){return Ba}),multi:!0},Ba=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="minlength",Me.normalizeInput=function(Oe){return vd(Oe)},Me.createValidator=function(Oe){return xt(Oe)},Me}return(0,L.Z)(se)}(Yi);Ba.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ba)))(se||Ba)}}(),Ba.\u0275dir=v.lG2({type:Ba,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("minlength",se._enabled?se.minlength:null)},inputs:{minlength:"minlength"},features:[v._Bn([Dc]),v.qOj]});var cs={provide:pe,useExisting:(0,v.Gpc)(function(){return po}),multi:!0},po=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="maxlength",Me.normalizeInput=function(Oe){return vd(Oe)},Me.createValidator=function(Oe){return Lt(Oe)},Me}return(0,L.Z)(se)}(Yi);po.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(po)))(se||po)}}(),po.\u0275dir=v.lG2({type:po,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("maxlength",se._enabled?se.maxlength:null)},inputs:{maxlength:"maxlength"},features:[v._Bn([cs]),v.qOj]});var Sf={provide:pe,useExisting:(0,v.Gpc)(function(){return Ys}),multi:!0},Ys=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){var Me;return(0,j.Z)(this,se),(Me=Te.apply(this,arguments)).inputName="pattern",Me.normalizeInput=function(Oe){return Oe},Me.createValidator=function(Oe){return Ze(Oe)},Me}return(0,L.Z)(se)}(Yi);Ys.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Ys)))(se||Ys)}}(),Ys.\u0275dir=v.lG2({type:Ys,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Te,se){2&Te&&v.uIk("pattern",se._enabled?se.pattern:null)},inputs:{pattern:"pattern"},features:[v._Bn([Sf]),v.qOj]});var ds=(0,L.Z)(function we(){(0,j.Z)(this,we)});ds.\u0275fac=function(Te){return new(Te||ds)},ds.\u0275mod=v.oAB({type:ds}),ds.\u0275inj=v.cJS({imports:[bi]});var Tr=(0,L.Z)(function we(){(0,j.Z)(this,we)});Tr.\u0275fac=function(Te){return new(Te||Tr)},Tr.\u0275mod=v.oAB({type:Tr}),Tr.\u0275inj=v.cJS({imports:[ds]});var xs=function(){function we(){(0,j.Z)(this,we)}return(0,L.Z)(we,null,[{key:"withConfig",value:function(se){return{ngModule:we,providers:[{provide:xn,useValue:se.warnOnNgModelWithFormControl}]}}}]),we}();xs.\u0275fac=function(Te){return new(Te||xs)},xs.\u0275mod=v.oAB({type:xs}),xs.\u0275inj=v.cJS({imports:[ds]});var Qm=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(Me,Oe,mt){var Ht;return(0,j.Z)(this,se),(Ht=Te.call(this,qe(Oe),dn(mt,Oe))).controls=Me,Ht._initObservables(),Ht._setUpdateStrategy(Oe),Ht._setUpControls(),Ht.updateValueAndValidity({onlySelf:!0,emitEvent:!!Ht.asyncValidator}),Ht}return(0,L.Z)(se,[{key:"at",value:function(Oe){return this.controls[this._adjustIndex(Oe)]}},{key:"push",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(Oe),this._registerControl(Oe),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(Oe,0,mt),this._registerControl(mt),this.updateValueAndValidity({emitEvent:Ht.emitEvent})}},{key:"removeAt",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ht=this._adjustIndex(Oe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(function(){}),this.controls.splice(Ht,1),this.updateValueAndValidity({emitEvent:mt.emitEvent})}},{key:"setControl",value:function(Oe,mt){var Ht=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},On=this._adjustIndex(Oe);On<0&&(On=0),this.controls[On]&&this.controls[On]._registerOnCollectionChange(function(){}),this.controls.splice(On,1),mt&&(this.controls.splice(On,0,mt),this._registerControl(mt)),this.updateValueAndValidity({emitEvent:Ht.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,0,Oe),Oe.forEach(function(On,sr){kt(mt,!1,sr),mt.at(sr).setValue(On,{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht)}},{key:"patchValue",value:function(Oe){var mt=this,Ht=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=Oe&&(Oe.forEach(function(On,sr){mt.at(sr)&&mt.at(sr).patchValue(On,{onlySelf:!0,emitEvent:Ht.emitEvent})}),this.updateValueAndValidity(Ht))}},{key:"reset",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(Ht,On){Ht.reset(Oe[On],{onlySelf:!0,emitEvent:mt.emitEvent})}),this._updatePristine(mt),this._updateTouched(mt),this.updateValueAndValidity(mt)}},{key:"getRawValue",value:function(){return this.controls.map(function(Oe){return Oe.getRawValue()})}},{key:"clear",value:function(){var Oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(mt){return mt._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Oe.emitEvent}))}},{key:"_adjustIndex",value:function(Oe){return Oe<0?Oe+this.length:Oe}},{key:"_syncPendingControls",value:function(){var Oe=this.controls.reduce(function(mt,Ht){return!!Ht._syncPendingControls()||mt},!1);return Oe&&this.updateValueAndValidity({onlySelf:!0}),Oe}},{key:"_forEachChild",value:function(Oe){this.controls.forEach(function(mt,Ht){Oe(mt,Ht)})}},{key:"_updateValue",value:function(){var Oe=this;this.value=this.controls.filter(function(mt){return mt.enabled||Oe.disabled}).map(function(mt){return mt.value})}},{key:"_anyControls",value:function(Oe){return this.controls.some(function(mt){return mt.enabled&&Oe(mt)})}},{key:"_setUpControls",value:function(){var Oe=this;this._forEachChild(function(mt){return Oe._registerControl(mt)})}},{key:"_allControlsDisabled",value:function(){var mt,Oe=(0,A.Z)(this.controls);try{for(Oe.s();!(mt=Oe.n()).done;){if(mt.value.enabled)return!1}}catch(On){Oe.e(On)}finally{Oe.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(Oe){Oe.setParent(this),Oe._registerOnCollectionChange(this._onCollectionChange)}},{key:"_find",value:function(Oe){var mt;return null!==(mt=this.at(Oe))&&void 0!==mt?mt:null}}]),se}(gt);function Ef(we){return!!we&&(void 0!==we.asyncValidators||void 0!==we.validators||void 0!==we.updateOn)}var Ds=function(){function we(){(0,j.Z)(this,we),this.useNonNullable=!1}return(0,L.Z)(we,[{key:"nonNullable",get:function(){var se=new we;return se.useNonNullable=!0,se}},{key:"group",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se),mt={};return Ef(Me)?mt=Me:null!==Me&&(mt.validators=Me.validator,mt.asyncValidators=Me.asyncValidator),new yt(Oe,mt)}},{key:"record",value:function(se){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Oe=this._reduceControls(se);return new Vn(Oe,Me)}},{key:"control",value:function(se,Me,Oe){var mt={};return this.useNonNullable?(Ef(Me)?mt=Me:(mt.validators=Me,mt.asyncValidators=Oe),new na(se,Object.assign(Object.assign({},mt),{nonNullable:!0}))):new na(se,Me,Oe)}},{key:"array",value:function(se,Me,Oe){var mt=this,Ht=se.map(function(On){return mt._createControl(On)});return new Qm(Ht,Me,Oe)}},{key:"_reduceControls",value:function(se){var Me=this,Oe={};return Object.keys(se).forEach(function(mt){Oe[mt]=Me._createControl(se[mt])}),Oe}},{key:"_createControl",value:function(se){if(se instanceof na)return se;if(se instanceof gt)return se;if(Array.isArray(se)){var Me=se[0],Oe=se.length>1?se[1]:null,mt=se.length>2?se[2]:null;return this.control(Me,Oe,mt)}return this.control(se)}}]),we}();Ds.\u0275fac=function(Te){return new(Te||Ds)},Ds.\u0275prov=v.Yz7({token:Ds,factory:Ds.\u0275fac,providedIn:xs});var qu=(0,L.Z)(function we(){(0,j.Z)(this,we)});qu.\u0275fac=function(Te){return new(Te||qu)},qu.\u0275prov=v.Yz7({token:qu,factory:function(){return(0,v.f3M)(Ds).nonNullable},providedIn:xs});var Hl=function(we){(0,E.Z)(se,we);var Te=(0,D.Z)(se);function se(){return(0,j.Z)(this,se),Te.apply(this,arguments)}return(0,L.Z)(se,[{key:"group",value:function(Oe){var mt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,G.Z)((0,W.Z)(se.prototype),"group",this).call(this,Oe,mt)}},{key:"control",value:function(Oe,mt,Ht){return(0,G.Z)((0,W.Z)(se.prototype),"control",this).call(this,Oe,mt,Ht)}},{key:"array",value:function(Oe,mt,Ht){return(0,G.Z)((0,W.Z)(se.prototype),"array",this).call(this,Oe,mt,Ht)}}]),se}(Ds);Hl.\u0275fac=function(){var we;return function(se){return(we||(we=v.n5z(Hl)))(se||Hl)}}(),Hl.\u0275prov=v.Yz7({token:Hl,factory:Hl.\u0275fac,providedIn:xs});new v.GfV("14.3.0")},508:function(De,K,m){"use strict";m.d(K,{yN:function(){return Q},mZ:function(){return ne},rD:function(){return Ut},K7:function(){return ct},HF:function(){return ye},Y2:function(){return Kt},BQ:function(){return de},X2:function(){return B},uc:function(){return Ye},Nv:function(){return Bt},ey:function(){return ln},Ng:function(){return mn},rN:function(){return on},nP:function(){return Be},us:function(){return te},wG:function(){return Xt},si:function(){return Je},IR:function(){return qt},CB:function(){return En},jH:function(){return hn},pj:function(){return at},Kr:function(){return Mt},Id:function(){return je},FD:function(){return xt},dB:function(){return Lt},sb:function(){return Tt},E0:function(){return H}});var G=m(7326),W=m(3237),A=m(1120),U=m(136),R=m(9388),P=m(3144),E=m(5671),D=m(5e3),j=m(226),v=(new D.GfV("14.2.7"),m(9808)),k=m(925),b=m(5664),O=m(3191),S=m(7451),y=m(8929),T=m(1059),M=m(1159),x=["*",[["mat-option"],["ng-container"]]];function F(At,Et){if(1&At&&D._UZ(0,"mat-pseudo-checkbox",4),2&At){var et=D.oxw();D.Q6J("state",et.selected?"checked":"unchecked")("disabled",et.disabled)}}function X(At,Et){if(1&At&&(D.TgZ(0,"span",5),D._uU(1),D.qZA()),2&At){var et=D.oxw();D.xp6(1),D.hij("(",et.group.label,")")}}new D.GfV("14.2.7");var Q=(0,P.Z)(function At(){(0,E.Z)(this,At)});Q.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Q.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Q.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Q.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var ne=(0,P.Z)(function At(){(0,E.Z)(this,At)});ne.COMPLEX="375ms",ne.ENTERING="225ms",ne.EXITING="195ms";var pe=new D.OlP("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}}),de=function(){function At(Et,et,St){(0,E.Z)(this,At),this._sanityChecks=et,this._document=St,this._hasDoneGlobalChecks=!1,Et._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return(0,P.Z)(At,[{key:"_checkIsEnabled",value:function(et){return!(0,k.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[et])}}]),At}();function je(At){return function(Et){(0,U.Z)(St,Et);var et=(0,R.Z)(St);function St(){var ze;(0,E.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._disabled=!1,ze}return(0,P.Z)(St,[{key:"disabled",get:function(){return this._disabled},set:function(Ke){this._disabled=(0,O.Ig)(Ke)}}]),St}(At)}function at(At,Et){return function(et){(0,U.Z)(ze,et);var St=(0,R.Z)(ze);function ze(){var Ke;(0,E.Z)(this,ze);for(var Re=arguments.length,qe=new Array(Re),vt=0;vt<Re;vt++)qe[vt]=arguments[vt];return(Ke=St.call.apply(St,[this].concat(qe))).defaultColor=Et,Ke.color=Et,Ke}return(0,P.Z)(ze,[{key:"color",get:function(){return this._color},set:function(Re){var qe=Re||this.defaultColor;qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),qe&&this._elementRef.nativeElement.classList.add("mat-".concat(qe)),this._color=qe)}}]),ze}(At)}function Mt(At){return function(Et){(0,U.Z)(St,Et);var et=(0,R.Z)(St);function St(){var ze;(0,E.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._disableRipple=!1,ze}return(0,P.Z)(St,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(Ke){this._disableRipple=(0,O.Ig)(Ke)}}]),St}(At)}function Tt(At){var Et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(et){(0,U.Z)(ze,et);var St=(0,R.Z)(ze);function ze(){var Ke;(0,E.Z)(this,ze);for(var Re=arguments.length,qe=new Array(Re),vt=0;vt<Re;vt++)qe[vt]=arguments[vt];return(Ke=St.call.apply(St,[this].concat(qe)))._tabIndex=Et,Ke.defaultTabIndex=Et,Ke}return(0,P.Z)(ze,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(Re){this._tabIndex=null!=Re?(0,O.su)(Re):this.defaultTabIndex}}]),ze}(At)}function xt(At){return function(Et){(0,U.Z)(St,Et);var et=(0,R.Z)(St);function St(){var ze;(0,E.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re))).errorState=!1,ze}return(0,P.Z)(St,[{key:"updateErrorState",value:function(){var Ke=this.errorState,Re=this._parentFormGroup||this._parentForm,qe=this.errorStateMatcher||this._defaultErrorStateMatcher,vt=this.ngControl?this.ngControl.control:null,dn=qe.isErrorState(vt,Re);dn!==Ke&&(this.errorState=dn,this.stateChanges.next())}}]),St}(At)}function Lt(At){return function(Et){(0,U.Z)(St,Et);var et=(0,R.Z)(St);function St(){var ze;(0,E.Z)(this,St);for(var Ke=arguments.length,Re=new Array(Ke),qe=0;qe<Ke;qe++)Re[qe]=arguments[qe];return(ze=et.call.apply(et,[this].concat(Re)))._isInitialized=!1,ze._pendingSubscribers=[],ze.initialized=new S.y(function(vt){ze._isInitialized?ze._notifySubscriber(vt):ze._pendingSubscribers.push(vt)}),ze}return(0,P.Z)(St,[{key:"_markInitialized",value:function(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(Ke){Ke.next(),Ke.complete()}}]),St}(At)}de.\u0275fac=function(Et){return new(Et||de)(D.LFG(b.qm),D.LFG(pe,8),D.LFG(v.K0))},de.\u0275mod=D.oAB({type:de}),de.\u0275inj=D.cJS({imports:[j.vT,j.vT]});var Ze=new D.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function $t(){return(0,D.f3M)(D.soG)}});var Ft=function(){function At(){(0,E.Z)(this,At),this._localeChanges=new y.xQ,this.localeChanges=this._localeChanges}return(0,P.Z)(At,[{key:"getValidDateOrNull",value:function(et){return this.isDateInstance(et)&&this.isValid(et)?et:null}},{key:"deserialize",value:function(et){return null==et||this.isDateInstance(et)&&this.isValid(et)?et:this.invalid()}},{key:"setLocale",value:function(et){this.locale=et,this._localeChanges.next()}},{key:"compareDate",value:function(et,St){return this.getYear(et)-this.getYear(St)||this.getMonth(et)-this.getMonth(St)||this.getDate(et)-this.getDate(St)}},{key:"sameDate",value:function(et,St){if(et&&St){var ze=this.isValid(et),Ke=this.isValid(St);return ze&&Ke?!this.compareDate(et,St):ze==Ke}return et==St}},{key:"clampDate",value:function(et,St,ze){return St&&this.compareDate(et,St)<0?St:ze&&this.compareDate(et,ze)>0?ze:et}}]),At}(),fn=new D.OlP("mat-date-formats"),nt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ot(At,Et){for(var et=Array(At),St=0;St<At;St++)et[St]=Et(St);return et}var _t=function(At){(0,U.Z)(et,At);var Et=(0,R.Z)(et);function et(St,ze){var Ke,Re;return(0,E.Z)(this,et),(Re=Et.call(this)).useUtcForDisplay=!1,(0,W.Z)((Ke=(0,G.Z)(Re),(0,A.Z)(et.prototype)),"setLocale",Ke).call(Ke,St),Re}return(0,P.Z)(et,[{key:"getYear",value:function(ze){return ze.getFullYear()}},{key:"getMonth",value:function(ze){return ze.getMonth()}},{key:"getDate",value:function(ze){return ze.getDate()}},{key:"getDayOfWeek",value:function(ze){return ze.getDay()}},{key:"getMonthNames",value:function(ze){var Ke=this,Re=new Intl.DateTimeFormat(this.locale,{month:ze,timeZone:"utc"});return Ot(12,function(qe){return Ke._format(Re,new Date(2017,qe,1))})}},{key:"getDateNames",value:function(){var ze=this,Ke=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ot(31,function(Re){return ze._format(Ke,new Date(2017,0,Re+1))})}},{key:"getDayOfWeekNames",value:function(ze){var Ke=this,Re=new Intl.DateTimeFormat(this.locale,{weekday:ze,timeZone:"utc"});return Ot(7,function(qe){return Ke._format(Re,new Date(2017,0,qe+1))})}},{key:"getYearName",value:function(ze){var Ke=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Ke,ze)}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(ze){return this.getDate(this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+1,0))}},{key:"clone",value:function(ze){return new Date(ze.getTime())}},{key:"createDate",value:function(ze,Ke,Re){var qe=this._createDateWithOverflow(ze,Ke,Re);return qe.getMonth(),qe}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(ze,Ke){return"number"==typeof ze?new Date(ze):ze?new Date(Date.parse(ze)):null}},{key:"format",value:function(ze,Ke){if(!this.isValid(ze))throw Error("NativeDateAdapter: Cannot format invalid date.");var Re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},Ke),{timeZone:"utc"}));return this._format(Re,ze)}},{key:"addCalendarYears",value:function(ze,Ke){return this.addCalendarMonths(ze,12*Ke)}},{key:"addCalendarMonths",value:function(ze,Ke){var Re=this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze)+Ke,this.getDate(ze));return this.getMonth(Re)!=((this.getMonth(ze)+Ke)%12+12)%12&&(Re=this._createDateWithOverflow(this.getYear(Re),this.getMonth(Re),0)),Re}},{key:"addCalendarDays",value:function(ze,Ke){return this._createDateWithOverflow(this.getYear(ze),this.getMonth(ze),this.getDate(ze)+Ke)}},{key:"toIso8601",value:function(ze){return[ze.getUTCFullYear(),this._2digit(ze.getUTCMonth()+1),this._2digit(ze.getUTCDate())].join("-")}},{key:"deserialize",value:function(ze){if("string"==typeof ze){if(!ze)return null;if(nt.test(ze)){var Ke=new Date(ze);if(this.isValid(Ke))return Ke}}return(0,W.Z)((0,A.Z)(et.prototype),"deserialize",this).call(this,ze)}},{key:"isDateInstance",value:function(ze){return ze instanceof Date}},{key:"isValid",value:function(ze){return!isNaN(ze.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(ze,Ke,Re){var qe=new Date;return qe.setFullYear(ze,Ke,Re),qe.setHours(0,0,0,0),qe}},{key:"_2digit",value:function(ze){return("00"+ze).slice(-2)}},{key:"_format",value:function(ze,Ke){var Re=new Date;return Re.setUTCFullYear(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),Re.setUTCHours(Ke.getHours(),Ke.getMinutes(),Ke.getSeconds(),Ke.getMilliseconds()),ze.format(Re)}}]),et}(Ft);_t.\u0275fac=function(Et){return new(Et||_t)(D.LFG(Ze,8),D.LFG(k.t4))},_t.\u0275prov=D.Yz7({token:_t,factory:_t.\u0275fac});var We=(0,P.Z)(function At(){(0,E.Z)(this,At)});We.\u0275fac=function(Et){return new(Et||We)},We.\u0275mod=D.oAB({type:We}),We.\u0275inj=D.cJS({providers:[{provide:Ft,useClass:_t}]});var lt=(0,P.Z)(function At(){(0,E.Z)(this,At)});lt.\u0275fac=function(Et){return new(Et||lt)},lt.\u0275mod=D.oAB({type:lt}),lt.\u0275inj=D.cJS({providers:[{provide:fn,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:[We]});var dt=function(){function At(){(0,E.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(et,St){return!!(et&&et.invalid&&(et.dirty||St&&St.submitted))}}]),At}();dt.\u0275fac=function(Et){return new(Et||dt)},dt.\u0275prov=D.Yz7({token:dt,factory:dt.\u0275fac});var Ut=function(){function At(){(0,E.Z)(this,At)}return(0,P.Z)(At,[{key:"isErrorState",value:function(et,St){return!!(et&&et.invalid&&(et.touched||St&&St.submitted))}}]),At}();Ut.\u0275fac=function(Et){return new(Et||Ut)},Ut.\u0275prov=D.Yz7({token:Ut,factory:Ut.\u0275fac,providedIn:"root"});var B=(0,P.Z)(function At(){(0,E.Z)(this,At)});function H(At,Et){var et=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat";At.changes.pipe((0,T.O)(At)).subscribe(function(St){var ze=St.length;tt(Et,"".concat(et,"-2-line"),!1),tt(Et,"".concat(et,"-3-line"),!1),tt(Et,"".concat(et,"-multi-line"),!1),2===ze||3===ze?tt(Et,"".concat(et,"-").concat(ze,"-line"),!0):ze>3&&tt(Et,"".concat(et,"-multi-line"),!0)})}function tt(At,Et,et){At.nativeElement.classList.toggle(Et,et)}B.\u0275fac=function(Et){return new(Et||B)},B.\u0275dir=D.lG2({type:B,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]});var Ye=(0,P.Z)(function At(){(0,E.Z)(this,At)});Ye.\u0275fac=function(Et){return new(Et||Ye)},Ye.\u0275mod=D.oAB({type:Ye}),Ye.\u0275inj=D.cJS({imports:[de,de]});var ge=function(){function At(Et,et,St){var ze=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,E.Z)(this,At),this._renderer=Et,this.element=et,this.config=St,this._animationForciblyDisabledThroughCss=ze,this.state=3}return(0,P.Z)(At,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),At}(),t={enterDuration:225,exitDuration:150},Zt=(0,k.i$)({passive:!0}),zt=["mousedown","touchstart"],sn=["mouseup","mouseleave","touchend","touchcancel"],qt=function(){function At(Et,et,St,ze){(0,E.Z)(this,At),this._target=Et,this._ngZone=et,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ze.isBrowser&&(this._containerElement=(0,O.fI)(St))}return(0,P.Z)(At,[{key:"fadeInRipple",value:function(et,St){var ze=this,Ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),qe=Object.assign(Object.assign({},t),Ke.animation);Ke.centered&&(et=Re.left+Re.width/2,St=Re.top+Re.height/2);var vt=Ke.radius||yn(et,St,Re),dn=et-Re.left,Hn=St-Re.top,Yt=qe.enterDuration,kt=document.createElement("div");kt.classList.add("mat-ripple-element"),kt.style.left="".concat(dn-vt,"px"),kt.style.top="".concat(Hn-vt,"px"),kt.style.height="".concat(2*vt,"px"),kt.style.width="".concat(2*vt,"px"),null!=Ke.color&&(kt.style.backgroundColor=Ke.color),kt.style.transitionDuration="".concat(Yt,"ms"),this._containerElement.appendChild(kt);var $e=window.getComputedStyle(kt),gt=$e.transitionProperty,yt=$e.transitionDuration,nn="none"===gt||"0s"===yt||"0s, 0s"===yt,Gn=new ge(this,kt,Ke,nn);kt.style.transform="scale3d(1, 1, 1)",Gn.state=0,Ke.persistent||(this._mostRecentTransientRipple=Gn);var Vn=null;return!nn&&(Yt||qe.exitDuration)&&this._ngZone.runOutsideAngular(function(){var Wn=function(){return ze._finishRippleTransition(Gn)},ar=function(){return ze._destroyRipple(Gn)};kt.addEventListener("transitionend",Wn),kt.addEventListener("transitioncancel",ar),Vn={onTransitionEnd:Wn,onTransitionCancel:ar}}),this._activeRipples.set(Gn,Vn),(nn||!Yt)&&this._finishRippleTransition(Gn),Gn}},{key:"fadeOutRipple",value:function(et){if(2!==et.state&&3!==et.state){var St=et.element,ze=Object.assign(Object.assign({},t),et.config.animation);St.style.transitionDuration="".concat(ze.exitDuration,"ms"),St.style.opacity="0",et.state=2,(et._animationForciblyDisabledThroughCss||!ze.exitDuration)&&this._finishRippleTransition(et)}}},{key:"fadeOutAll",value:function(){this._getActiveRipples().forEach(function(et){return et.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._getActiveRipples().forEach(function(et){et.config.persistent||et.fadeOut()})}},{key:"setupTriggerEvents",value:function(et){var St=(0,O.fI)(et);!St||St===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=St,this._registerEvents(zt))}},{key:"handleEvent",value:function(et){"mousedown"===et.type?this._onMousedown(et):"touchstart"===et.type?this._onTouchStart(et):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sn),this._pointerUpEventsRegistered=!0)}},{key:"_finishRippleTransition",value:function(et){0===et.state?this._startFadeOutTransition(et):2===et.state&&this._destroyRipple(et)}},{key:"_startFadeOutTransition",value:function(et){var St=et===this._mostRecentTransientRipple,ze=et.config.persistent;et.state=1,!ze&&(!St||!this._isPointerDown)&&et.fadeOut()}},{key:"_destroyRipple",value:function(et){var St,ze=null!==(St=this._activeRipples.get(et))&&void 0!==St?St:null;this._activeRipples.delete(et),this._activeRipples.size||(this._containerRect=null),et===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),et.state=3,null!==ze&&(et.element.removeEventListener("transitionend",ze.onTransitionEnd),et.element.removeEventListener("transitioncancel",ze.onTransitionCancel)),et.element.remove()}},{key:"_onMousedown",value:function(et){var St=(0,b.X6)(et),ze=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!St&&!ze&&(this._isPointerDown=!0,this.fadeInRipple(et.clientX,et.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(et){if(!this._target.rippleDisabled&&!(0,b.yG)(et)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var St=et.changedTouches,ze=0;ze<St.length;ze++)this.fadeInRipple(St[ze].clientX,St[ze].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(function(et){var St=1===et.state||et.config.terminateOnPointerUp&&0===et.state;!et.config.persistent&&St&&et.fadeOut()}))}},{key:"_registerEvents",value:function(et){var St=this;this._ngZone.runOutsideAngular(function(){et.forEach(function(ze){St._triggerElement.addEventListener(ze,St,Zt)})})}},{key:"_getActiveRipples",value:function(){return Array.from(this._activeRipples.keys())}},{key:"_removeTriggerEvents",value:function(){var et=this;this._triggerElement&&(zt.forEach(function(St){et._triggerElement.removeEventListener(St,et,Zt)}),this._pointerUpEventsRegistered&&sn.forEach(function(St){et._triggerElement.removeEventListener(St,et,Zt)}))}}]),At}();function yn(At,Et,et){var St=Math.max(Math.abs(At-et.left),Math.abs(At-et.right)),ze=Math.max(Math.abs(Et-et.top),Math.abs(Et-et.bottom));return Math.sqrt(St*St+ze*ze)}var Kt=new D.OlP("mat-ripple-global-options"),Xt=function(){function At(Et,et,St,ze,Ke){(0,E.Z)(this,At),this._elementRef=Et,this._animationMode=Ke,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ze||{},this._rippleRenderer=new qt(this,et,Et,St)}return(0,P.Z)(At,[{key:"disabled",get:function(){return this._disabled},set:function(et){et&&this.fadeOutAllNonPersistent(),this._disabled=et,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(et){this._trigger=et,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(et){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ze=arguments.length>2?arguments[2]:void 0;return"number"==typeof et?this._rippleRenderer.fadeInRipple(et,St,Object.assign(Object.assign({},this.rippleConfig),ze)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),et))}}]),At}();Xt.\u0275fac=function(Et){return new(Et||Xt)(D.Y36(D.SBq),D.Y36(D.R0b),D.Y36(k.t4),D.Y36(Kt,8),D.Y36(D.QbO,8))},Xt.\u0275dir=D.lG2({type:Xt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Et,et){2&Et&&D.ekj("mat-ripple-unbounded",et.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 Je=(0,P.Z)(function At(){(0,E.Z)(this,At)});Je.\u0275fac=function(Et){return new(Et||Je)},Je.\u0275mod=D.oAB({type:Je}),Je.\u0275inj=D.cJS({imports:[de,de]});var Be=(0,P.Z)(function At(Et){(0,E.Z)(this,At),this._animationMode=Et,this.state="unchecked",this.disabled=!1});Be.\u0275fac=function(Et){return new(Et||Be)(D.Y36(D.QbO,8))},Be.\u0275cmp=D.Xpm({type:Be,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Et,et){2&Et&&D.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===et.state)("mat-pseudo-checkbox-checked","checked"===et.state)("mat-pseudo-checkbox-disabled",et.disabled)("_mat-animation-noopable","NoopAnimations"===et._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Et,et){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0});var te=(0,P.Z)(function At(){(0,E.Z)(this,At)});te.\u0275fac=function(Et){return new(Et||te)},te.\u0275mod=D.oAB({type:te}),te.\u0275inj=D.cJS({imports:[de]});var ye=new D.OlP("MAT_OPTION_PARENT_COMPONENT"),fe=je(function(){return(0,P.Z)(function At(){(0,E.Z)(this,At)})}()),Ne=0,st=function(At){(0,U.Z)(et,At);var Et=(0,R.Z)(et);function et(St){var ze,Ke;return(0,E.Z)(this,et),(ze=Et.call(this))._labelId="mat-optgroup-label-".concat(Ne++),ze._inert=null!==(Ke=null==St?void 0:St.inertGroups)&&void 0!==Ke&&Ke,ze}return(0,P.Z)(et)}(fe);st.\u0275fac=function(Et){return new(Et||st)(D.Y36(ye,8))},st.\u0275dir=D.lG2({type:st,inputs:{label:"label"},features:[D.qOj]});var ct=new D.OlP("MatOptgroup"),Bt=function(At){(0,U.Z)(et,At);var Et=(0,R.Z)(et);function et(){return(0,E.Z)(this,et),Et.apply(this,arguments)}return(0,P.Z)(et)}(st);Bt.\u0275fac=function(){var At;return function(et){return(At||(At=D.n5z(Bt)))(et||Bt)}}(),Bt.\u0275cmp=D.Xpm({type:Bt,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(Et,et){2&Et&&(D.uIk("role",et._inert?null:"group")("aria-disabled",et._inert?null:et.disabled.toString())("aria-labelledby",et._inert?null:et._labelId),D.ekj("mat-optgroup-disabled",et.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[D._Bn([{provide:ct,useExisting:Bt}]),D.qOj],ngContentSelectors:["*","mat-option, ng-container"],decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(Et,et){1&Et&&(D.F$t(x),D.TgZ(0,"span",0),D._uU(1),D.Hsn(2),D.qZA(),D.Hsn(3,1)),2&Et&&(D.Q6J("id",et._labelId),D.xp6(1),D.hij("",et.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0});var jt=0,on=(0,P.Z)(function At(Et){var et=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,E.Z)(this,At),this.source=Et,this.isUserInput=et}),vn=function(){function At(Et,et,St,ze){(0,E.Z)(this,At),this._element=Et,this._changeDetectorRef=et,this._parent=St,this.group=ze,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(jt++),this.onSelectionChange=new D.vpe,this._stateChanges=new y.xQ}return(0,P.Z)(At,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(et){this._disabled=(0,O.Ig)(et)}},{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(et,St){var ze=this._getHostElement();"function"==typeof ze.focus&&ze.focus(St)}},{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(et){(et.keyCode===M.K5||et.keyCode===M.L_)&&!(0,M.Vb)(et)&&(this._selectViaInteraction(),et.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 et=this.viewValue;et!==this._mostRecentViewValue&&(this._mostRecentViewValue=et,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var et=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new on(this,et))}}]),At}();vn.\u0275fac=function(Et){D.$Z()},vn.\u0275dir=D.lG2({type:vn,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}});var ln=function(At){(0,U.Z)(et,At);var Et=(0,R.Z)(et);function et(St,ze,Ke,Re){return(0,E.Z)(this,et),Et.call(this,St,ze,Ke,Re)}return(0,P.Z)(et)}(vn);function En(At,Et,et){if(et.length){for(var St=Et.toArray(),ze=et.toArray(),Ke=0,Re=0;Re<At+1;Re++)St[Re].group&&St[Re].group===ze[Ke]&&Ke++;return Ke}return 0}function hn(At,Et,et,St){return At<et?At:At+Et>et+St?Math.max(0,At-St+Et):et}ln.\u0275fac=function(Et){return new(Et||ln)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(ye,8),D.Y36(ct,8))},ln.\u0275cmp=D.Xpm({type:ln,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Et,et){1&Et&&D.NdJ("click",function(){return et._selectViaInteraction()})("keydown",function(ze){return et._handleKeydown(ze)}),2&Et&&(D.Ikx("id",et.id),D.uIk("tabindex",et._getTabIndex())("aria-selected",et._getAriaSelected())("aria-disabled",et.disabled.toString()),D.ekj("mat-selected",et.selected)("mat-option-multiple",et.multiple)("mat-active",et.active)("mat-option-disabled",et.disabled))},exportAs:["matOption"],features:[D.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(Et,et){1&Et&&(D.F$t(),D.YNc(0,F,1,2,"mat-pseudo-checkbox",0),D.TgZ(1,"span",1),D.Hsn(2),D.qZA(),D.YNc(3,X,2,1,"span",2),D._UZ(4,"div",3)),2&Et&&(D.Q6J("ngIf",et.multiple),D.xp6(3),D.Q6J("ngIf",et.group&&et.group._inert),D.xp6(1),D.Q6J("matRippleTrigger",et._getHostElement())("matRippleDisabled",et.disabled||et.disableRipple))},dependencies:[Xt,v.O5,Be],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0});var mn=(0,P.Z)(function At(){(0,E.Z)(this,At)});mn.\u0275fac=function(Et){return new(Et||mn)},mn.\u0275mod=D.oAB({type:mn}),mn.\u0275inj=D.cJS({imports:[Je,v.ez,de,te]})},4834:function(De,K,m){"use strict";m.d(K,{d:function(){return P},t:function(){return E}});var G=m(5671),W=m(3144),A=m(5e3),U=m(3191),R=m(508),P=function(){function D(){(0,G.Z)(this,D),this._vertical=!1,this._inset=!1}return(0,W.Z)(D,[{key:"vertical",get:function(){return this._vertical},set:function(L){this._vertical=(0,U.Ig)(L)}},{key:"inset",get:function(){return this._inset},set:function(L){this._inset=(0,U.Ig)(L)}}]),D}();P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(j,L){2&j&&(A.uIk("aria-orientation",L.vertical?"vertical":"horizontal"),A.ekj("mat-divider-vertical",L.vertical)("mat-divider-horizontal",!L.vertical)("mat-divider-inset",L.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(j,L){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});var E=(0,W.Z)(function D(){(0,G.Z)(this,D)});E.\u0275fac=function(j){return new(j||E)},E.\u0275mod=A.oAB({type:E}),E.\u0275inj=A.cJS({imports:[R.BQ,R.BQ]})},7322:function(De,K,m){"use strict";m.d(K,{Eo:function(){return $t},G_:function(){return Zt},KE:function(){return zt},R9:function(){return H},TO:function(){return Lt},hX:function(){return We},lN:function(){return sn}});var G=m(4902),W=m(136),A=m(9388),U=m(3144),R=m(5671),P=m(7144),E=m(9808),D=m(5e3),j=m(508),L=m(3191),v=m(8929),k=m(6787),b=m(3753),O=m(1059),S=m(7625),y=m(2986),T=m(1777),M=m(226),x=m(925),N=["connectionContainer"],F=["inputContainer"],X=["label"];function $(qt,yn){1&qt&&(D.ynx(0),D.TgZ(1,"div",14),D._UZ(2,"div",15)(3,"div",16)(4,"div",17),D.qZA(),D.TgZ(5,"div",18),D._UZ(6,"div",15)(7,"div",16)(8,"div",17),D.qZA(),D.BQk())}function Y(qt,yn){if(1&qt){var Kt=D.EpF();D.TgZ(0,"div",19),D.NdJ("cdkObserveContent",function(){D.CHM(Kt);var Be=D.oxw();return D.KtG(Be.updateOutlineGap())}),D.Hsn(1,1),D.qZA()}if(2&qt){var Xt=D.oxw();D.Q6J("cdkObserveContentDisabled","outline"!=Xt.appearance)}}function Q(qt,yn){if(1&qt&&(D.ynx(0),D.Hsn(1,2),D.TgZ(2,"span"),D._uU(3),D.qZA(),D.BQk()),2&qt){var Kt=D.oxw(2);D.xp6(3),D.Oqu(Kt._control.placeholder)}}function ne(qt,yn){1&qt&&D.Hsn(0,3,["*ngSwitchCase","true"])}function be(qt,yn){1&qt&&(D.TgZ(0,"span",23),D._uU(1," *"),D.qZA())}function pe(qt,yn){if(1&qt){var Kt=D.EpF();D.TgZ(0,"label",20,21),D.NdJ("cdkObserveContent",function(){D.CHM(Kt);var Be=D.oxw();return D.KtG(Be.updateOutlineGap())}),D.YNc(2,Q,4,1,"ng-container",12),D.YNc(3,ne,1,0,"ng-content",12),D.YNc(4,be,2,0,"span",22),D.qZA()}if(2&qt){var Xt=D.oxw();D.ekj("mat-empty",Xt._control.empty&&!Xt._shouldAlwaysFloat())("mat-form-field-empty",Xt._control.empty&&!Xt._shouldAlwaysFloat())("mat-accent","accent"==Xt.color)("mat-warn","warn"==Xt.color),D.Q6J("cdkObserveContentDisabled","outline"!=Xt.appearance)("id",Xt._labelId)("ngSwitch",Xt._hasLabel()),D.uIk("for",Xt._control.id)("aria-owns",Xt._control.id),D.xp6(2),D.Q6J("ngSwitchCase",!1),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngIf",!Xt.hideRequiredMarker&&Xt._control.required&&!Xt._control.disabled)}}function de(qt,yn){1&qt&&(D.TgZ(0,"div",24),D.Hsn(1,4),D.qZA())}function le(qt,yn){if(1&qt&&(D.TgZ(0,"div",25),D._UZ(1,"span",26),D.qZA()),2&qt){var Kt=D.oxw();D.xp6(1),D.ekj("mat-accent","accent"==Kt.color)("mat-warn","warn"==Kt.color)}}function ce(qt,yn){if(1&qt&&(D.TgZ(0,"div"),D.Hsn(1,5),D.qZA()),2&qt){var Kt=D.oxw();D.Q6J("@transitionMessages",Kt._subscriptAnimationState)}}function me(qt,yn){if(1&qt&&(D.TgZ(0,"div",30),D._uU(1),D.qZA()),2&qt){var Kt=D.oxw(2);D.Q6J("id",Kt._hintLabelId),D.xp6(1),D.Oqu(Kt.hintLabel)}}function je(qt,yn){if(1&qt&&(D.TgZ(0,"div",27),D.YNc(1,me,2,2,"div",28),D.Hsn(2,6),D._UZ(3,"div",29),D.Hsn(4,7),D.qZA()),2&qt){var Kt=D.oxw();D.Q6J("@transitionMessages",Kt._subscriptAnimationState),D.xp6(1),D.Q6J("ngIf",Kt.hintLabel)}}var at=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Tt=0,xt=new D.OlP("MatError"),Lt=(0,U.Z)(function qt(yn,Kt){(0,R.Z)(this,qt),this.id="mat-error-".concat(Tt++),yn||Kt.nativeElement.setAttribute("aria-live","polite")});Lt.\u0275fac=function(yn){return new(yn||Lt)(D.$8M("aria-live"),D.Y36(D.SBq))},Lt.\u0275dir=D.lG2({type:Lt,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(yn,Kt){2&yn&&D.uIk("id",Kt.id)},inputs:{id:"id"},features:[D._Bn([{provide:xt,useExisting:Lt}])]});var Ze={transitionMessages:(0,T.X$)("transitionMessages",[(0,T.SB)("enter",(0,T.oB)({opacity:1,transform:"translateY(0%)"})),(0,T.eR)("void => enter",[(0,T.oB)({opacity:0,transform:"translateY(-5px)"}),(0,T.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$t=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});$t.\u0275fac=function(yn){return new(yn||$t)},$t.\u0275dir=D.lG2({type:$t});var Ot=0,_t=new D.OlP("MatHint"),Ct=(0,U.Z)(function qt(){(0,R.Z)(this,qt),this.align="start",this.id="mat-hint-".concat(Ot++)});Ct.\u0275fac=function(yn){return new(yn||Ct)},Ct.\u0275dir=D.lG2({type:Ct,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(yn,Kt){2&yn&&(D.uIk("id",Kt.id)("align",null),D.ekj("mat-form-field-hint-end","end"===Kt.align))},inputs:{align:"align",id:"id"},features:[D._Bn([{provide:_t,useExisting:Ct}])]});var We=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});We.\u0275fac=function(yn){return new(yn||We)},We.\u0275dir=D.lG2({type:We,selectors:[["mat-label"]]});var lt=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});lt.\u0275fac=function(yn){return new(yn||lt)},lt.\u0275dir=D.lG2({type:lt,selectors:[["mat-placeholder"]]});var dt=new D.OlP("MatPrefix"),Ut=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});Ut.\u0275fac=function(yn){return new(yn||Ut)},Ut.\u0275dir=D.lG2({type:Ut,selectors:[["","matPrefix",""]],features:[D._Bn([{provide:dt,useExisting:Ut}])]});var B=new D.OlP("MatSuffix"),H=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});H.\u0275fac=function(yn){return new(yn||H)},H.\u0275dir=D.lG2({type:H,selectors:[["","matSuffix",""]],features:[D._Bn([{provide:B,useExisting:H}])]});var tt=0,t=(0,j.pj)(function(){return(0,U.Z)(function qt(yn){(0,R.Z)(this,qt),this._elementRef=yn})}(),"primary"),Dt=new D.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zt=new D.OlP("MatFormField"),zt=function(qt){(0,W.Z)(Kt,qt);var yn=(0,A.Z)(Kt);function Kt(Xt,Je,Be,te,ye,fe,Ne){var st;return(0,R.Z)(this,Kt),(st=yn.call(this,Xt))._changeDetectorRef=Je,st._dir=Be,st._defaults=te,st._platform=ye,st._ngZone=fe,st._outlineGapCalculationNeededImmediately=!1,st._outlineGapCalculationNeededOnStable=!1,st._destroyed=new v.xQ,st._hideRequiredMarker=!1,st._showAlwaysAnimate=!1,st._subscriptAnimationState="",st._hintLabel="",st._hintLabelId="mat-hint-".concat(tt++),st._labelId="mat-form-field-label-".concat(tt++),st.floatLabel=st._getDefaultFloatLabelState(),st._animationsEnabled="NoopAnimations"!==Ne,st.appearance=(null==te?void 0:te.appearance)||"legacy",te&&(st._hideRequiredMarker=Boolean(te.hideRequiredMarker),te.color&&(st.color=st.defaultColor=te.color)),st}return(0,U.Z)(Kt,[{key:"appearance",get:function(){return this._appearance},set:function(Je){var Be,te=this._appearance;this._appearance=Je||(null===(Be=this._defaults)||void 0===Be?void 0:Be.appearance)||"legacy","outline"===this._appearance&&te!==Je&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(Je){this._hideRequiredMarker=(0,L.Ig)(Je)}},{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(Je){this._hintLabel=Je,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(Je){Je!==this._floatLabel&&(this._floatLabel=Je||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(Je){this._explicitFormFieldControl=Je}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var Je=this;this._validateControlChild();var Be=this._control;Be.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(Be.controlType)),Be.stateChanges.pipe((0,O.O)(null)).subscribe(function(){Je._validatePlaceholders(),Je._syncDescribedByIds(),Je._changeDetectorRef.markForCheck()}),Be.ngControl&&Be.ngControl.valueChanges&&Be.ngControl.valueChanges.pipe((0,S.R)(this._destroyed)).subscribe(function(){return Je._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){Je._ngZone.onStable.pipe((0,S.R)(Je._destroyed)).subscribe(function(){Je._outlineGapCalculationNeededOnStable&&Je.updateOutlineGap()})}),(0,k.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){Je._outlineGapCalculationNeededOnStable=!0,Je._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Je._processHints(),Je._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(function(){Je._syncDescribedByIds(),Je._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,S.R)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?Je._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return Je.updateOutlineGap()})}):Je.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(Je){var Be=this._control?this._control.ngControl:null;return Be&&Be[Je]}},{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 Je=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,b.R)(this._label.nativeElement,"transitionend").pipe((0,y.q)(1)).subscribe(function(){Je._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 Je=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Je.push.apply(Je,(0,G.Z)(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var Be=this._hintChildren?this._hintChildren.find(function(ye){return"start"===ye.align}):null,te=this._hintChildren?this._hintChildren.find(function(ye){return"end"===ye.align}):null;Be?Je.push(Be.id):this._hintLabel&&Je.push(this._hintLabelId),te&&Je.push(te.id)}else this._errorChildren&&Je.push.apply(Je,(0,G.Z)(this._errorChildren.map(function(ye){return ye.id})));this._control.setDescribedByIds(Je)}}},{key:"_validateControlChild",value:function(){this._control}},{key:"updateOutlineGap",value:function(){var Je=this._label?this._label.nativeElement:null,Be=this._connectionContainerRef.nativeElement,te=".mat-form-field-outline-start",ye=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!Je||!Je.children.length||!Je.textContent.trim()){for(var fe=Be.querySelectorAll("".concat(te,", ").concat(ye)),Ne=0;Ne<fe.length;Ne++)fe[Ne].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);var st=0,ct=0,Bt=Be.querySelectorAll(te),jt=Be.querySelectorAll(ye);if(this._label&&this._label.nativeElement.children.length){var on=Be.getBoundingClientRect();if(0===on.width&&0===on.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var vn=this._getStartEnd(on),ln=Je.children,En=this._getStartEnd(ln[0].getBoundingClientRect()),hn=0,mn=0;mn<ln.length;mn++)hn+=ln[mn].offsetWidth;st=Math.abs(En-vn)-5,ct=hn>0?.75*hn+10:0}for(var At=0;At<Bt.length;At++)Bt[At].style.width="".concat(st,"px");for(var Et=0;Et<jt.length;Et++)jt[Et].style.width="".concat(ct,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}}},{key:"_getStartEnd",value:function(Je){return this._dir&&"rtl"===this._dir.value?Je.right:Je.left}},{key:"_isAttachedToDOM",value:function(){var Je=this._elementRef.nativeElement;if(Je.getRootNode){var Be=Je.getRootNode();return Be&&Be!==Je}return document.documentElement.contains(Je)}}]),Kt}(t);zt.\u0275fac=function(yn){return new(yn||zt)(D.Y36(D.SBq),D.Y36(D.sBO),D.Y36(M.Is,8),D.Y36(Dt,8),D.Y36(x.t4),D.Y36(D.R0b),D.Y36(D.QbO,8))},zt.\u0275cmp=D.Xpm({type:zt,selectors:[["mat-form-field"]],contentQueries:function(yn,Kt,Xt){var Je;(1&yn&&(D.Suo(Xt,$t,5),D.Suo(Xt,$t,7),D.Suo(Xt,We,5),D.Suo(Xt,We,7),D.Suo(Xt,lt,5),D.Suo(Xt,xt,5),D.Suo(Xt,_t,5),D.Suo(Xt,dt,5),D.Suo(Xt,B,5)),2&yn)&&(D.iGM(Je=D.CRH())&&(Kt._controlNonStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._controlStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._labelChildNonStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._labelChildStatic=Je.first),D.iGM(Je=D.CRH())&&(Kt._placeholderChild=Je.first),D.iGM(Je=D.CRH())&&(Kt._errorChildren=Je),D.iGM(Je=D.CRH())&&(Kt._hintChildren=Je),D.iGM(Je=D.CRH())&&(Kt._prefixChildren=Je),D.iGM(Je=D.CRH())&&(Kt._suffixChildren=Je))},viewQuery:function(yn,Kt){var Xt;(1&yn&&(D.Gf(N,7),D.Gf(F,5),D.Gf(X,5)),2&yn)&&(D.iGM(Xt=D.CRH())&&(Kt._connectionContainerRef=Xt.first),D.iGM(Xt=D.CRH())&&(Kt._inputContainerRef=Xt.first),D.iGM(Xt=D.CRH())&&(Kt._label=Xt.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(yn,Kt){2&yn&&D.ekj("mat-form-field-appearance-standard","standard"==Kt.appearance)("mat-form-field-appearance-fill","fill"==Kt.appearance)("mat-form-field-appearance-outline","outline"==Kt.appearance)("mat-form-field-appearance-legacy","legacy"==Kt.appearance)("mat-form-field-invalid",Kt._control.errorState)("mat-form-field-can-float",Kt._canLabelFloat())("mat-form-field-should-float",Kt._shouldLabelFloat())("mat-form-field-has-label",Kt._hasFloatingLabel())("mat-form-field-hide-placeholder",Kt._hideControlPlaceholder())("mat-form-field-disabled",Kt._control.disabled)("mat-form-field-autofilled",Kt._control.autofilled)("mat-focused",Kt._control.focused)("ng-untouched",Kt._shouldForward("untouched"))("ng-touched",Kt._shouldForward("touched"))("ng-pristine",Kt._shouldForward("pristine"))("ng-dirty",Kt._shouldForward("dirty"))("ng-valid",Kt._shouldForward("valid"))("ng-invalid",Kt._shouldForward("invalid"))("ng-pending",Kt._shouldForward("pending"))("_mat-animation-noopable",!Kt._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[D._Bn([{provide:Zt,useExisting:zt}]),D.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(yn,Kt){1&yn&&(D.F$t(at),D.TgZ(0,"div",0)(1,"div",1,2),D.NdJ("click",function(Je){return Kt._control.onContainerClick&&Kt._control.onContainerClick(Je)}),D.YNc(3,$,9,0,"ng-container",3),D.YNc(4,Y,2,1,"div",4),D.TgZ(5,"div",5,6),D.Hsn(7),D.TgZ(8,"span",7),D.YNc(9,pe,5,16,"label",8),D.qZA()(),D.YNc(10,de,2,0,"div",9),D.qZA(),D.YNc(11,le,2,4,"div",10),D.TgZ(12,"div",11),D.YNc(13,ce,2,1,"div",12),D.YNc(14,je,5,2,"div",13),D.qZA()()),2&yn&&(D.xp6(3),D.Q6J("ngIf","outline"==Kt.appearance),D.xp6(1),D.Q6J("ngIf",Kt._prefixChildren.length),D.xp6(5),D.Q6J("ngIf",Kt._hasFloatingLabel()),D.xp6(1),D.Q6J("ngIf",Kt._suffixChildren.length),D.xp6(1),D.Q6J("ngIf","outline"!=Kt.appearance),D.xp6(1),D.Q6J("ngSwitch",Kt._getDisplayedMessages()),D.xp6(1),D.Q6J("ngSwitchCase","error"),D.xp6(1),D.Q6J("ngSwitchCase","hint"))},dependencies:[E.O5,E.RF,E.n9,P.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Ze.transitionMessages]},changeDetection:0});var sn=(0,U.Z)(function qt(){(0,R.Z)(this,qt)});sn.\u0275fac=function(yn){return new(yn||sn)},sn.\u0275mod=D.oAB({type:sn}),sn.\u0275inj=D.cJS({imports:[E.ez,j.BQ,P.Q8,j.BQ]})},4107:function(De,K,m){"use strict";m.d(K,{LD:function(){return yn},gD:function(){return qt}});var G=m(3237),W=m(1120),A=m(4902),U=m(7326),R=m(136),P=m(9388),E=m(3144),D=m(5671),j=m(1314),L=m(9808),v=m(5e3),k=m(508),b=m(7322),O=m(9071),S=m(5664),y=m(3191),T=m(449),M=m(1159),x=m(3075),N=m(8929),F=m(8514),X=m(6787),$=m(1059),Y=m(7545),Q=m(2986),ne=m(9664),be=m(4850),pe=m(5778),de=m(7625),le=m(1777),ce=m(226),me=["trigger"],je=["panel"];function at(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Kt){var Je=v.oxw();v.xp6(1),v.Oqu(Je.placeholder)}}function Mt(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Kt){var Je=v.oxw(2);v.xp6(1),v.Oqu(Je.triggerValue)}}function Tt(Kt,Xt){1&Kt&&v.Hsn(0,0,["*ngSwitchCase","true"])}function xt(Kt,Xt){if(1&Kt&&(v.TgZ(0,"span",9),v.YNc(1,Mt,2,1,"span",10),v.YNc(2,Tt,1,0,"ng-content",11),v.qZA()),2&Kt){var Je=v.oxw();v.Q6J("ngSwitch",!!Je.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function Lt(Kt,Xt){if(1&Kt){var Je=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(ye){v.CHM(Je);var fe=v.oxw();return v.KtG(fe._panelDoneAnimatingStream.next(ye.toState))})("keydown",function(ye){v.CHM(Je);var fe=v.oxw();return v.KtG(fe._handleKeydown(ye))}),v.Hsn(3,1),v.qZA()()}if(2&Kt){var Be=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",Be._getPanelTheme(),""),v.Udp("transform-origin",Be._transformOrigin)("font-size",Be._triggerFontSize,"px"),v.Q6J("ngClass",Be.panelClass)("@transformPanel",Be.multiple?"showing-multiple":"showing"),v.uIk("id",Be.id+"-panel")("aria-multiselectable",Be.multiple)("aria-label",Be.ariaLabel||null)("aria-labelledby",Be._getPanelAriaLabelledby())}}var Ze=[[["mat-select-trigger"]],"*"],Ft={transformPanelWrap:(0,le.X$)("transformPanelWrap",[(0,le.eR)("* => void",(0,le.IO)("@transformPanel",[(0,le.pV)()],{optional:!0}))]),transformPanel:(0,le.X$)("transformPanel",[(0,le.SB)("void",(0,le.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,le.SB)("showing",(0,le.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,le.SB)("showing-multiple",(0,le.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,le.eR)("void => *",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))])};var _t=0,H=new v.OlP("mat-select-scroll-strategy");var Ye=new v.OlP("MAT_SELECT_CONFIG"),ge={provide:H,deps:[j.aV],useFactory:function tt(Kt){return function(){return Kt.scrollStrategies.reposition()}}},t=(0,E.Z)(function Kt(Xt,Je){(0,D.Z)(this,Kt),this.source=Xt,this.value=Je}),Dt=(0,k.Kr)((0,k.sb)((0,k.Id)((0,k.FD)(function(){return(0,E.Z)(function Kt(Xt,Je,Be,te,ye){(0,D.Z)(this,Kt),this._elementRef=Xt,this._defaultErrorStateMatcher=Je,this._parentForm=Be,this._parentFormGroup=te,this.ngControl=ye,this.stateChanges=new N.xQ})}())))),Zt=new v.OlP("MatSelectTrigger"),zt=(0,E.Z)(function Kt(){(0,D.Z)(this,Kt)});zt.\u0275fac=function(Xt){return new(Xt||zt)},zt.\u0275dir=v.lG2({type:zt,selectors:[["mat-select-trigger"]],features:[v._Bn([{provide:Zt,useExisting:zt}])]});var sn=function(Kt){(0,R.Z)(Je,Kt);var Xt=(0,P.Z)(Je);function Je(Be,te,ye,fe,Ne,st,ct,Bt,jt,on,vn,ln,En,hn){var mn,At,Et,et;return(0,D.Z)(this,Je),(mn=Xt.call(this,Ne,fe,ct,Bt,on))._viewportRuler=Be,mn._changeDetectorRef=te,mn._ngZone=ye,mn._dir=st,mn._parentFormField=jt,mn._liveAnnouncer=En,mn._defaultOptions=hn,mn._panelOpen=!1,mn._compareWith=function(St,ze){return St===ze},mn._uid="mat-select-".concat(_t++),mn._triggerAriaLabelledBy=null,mn._destroy=new N.xQ,mn._onChange=function(){},mn._onTouched=function(){},mn._valueId="mat-select-value-".concat(_t++),mn._panelDoneAnimatingStream=new N.xQ,mn._overlayPanelClass=(null===(At=mn._defaultOptions)||void 0===At?void 0:At.overlayPanelClass)||"",mn._focused=!1,mn.controlType="mat-select",mn._multiple=!1,mn._disableOptionCentering=null!==(et=null===(Et=mn._defaultOptions)||void 0===Et?void 0:Et.disableOptionCentering)&&void 0!==et&&et,mn.ariaLabel="",mn.optionSelectionChanges=(0,F.P)(function(){var St=mn.options;return St?St.changes.pipe((0,$.O)(St),(0,Y.w)(function(){return X.T.apply(void 0,(0,A.Z)(St.map(function(ze){return ze.onSelectionChange})))})):mn._ngZone.onStable.pipe((0,Q.q)(1),(0,Y.w)(function(){return mn.optionSelectionChanges}))}),mn.openedChange=new v.vpe,mn._openedStream=mn.openedChange.pipe((0,ne.h)(function(St){return St}),(0,be.U)(function(){})),mn._closedStream=mn.openedChange.pipe((0,ne.h)(function(St){return!St}),(0,be.U)(function(){})),mn.selectionChange=new v.vpe,mn.valueChange=new v.vpe,mn.ngControl&&(mn.ngControl.valueAccessor=(0,U.Z)(mn)),null!=(null==hn?void 0:hn.typeaheadDebounceInterval)&&(mn._typeaheadDebounceInterval=hn.typeaheadDebounceInterval),mn._scrollStrategyFactory=ln,mn._scrollStrategy=mn._scrollStrategyFactory(),mn.tabIndex=parseInt(vn)||0,mn.id=mn.id,mn}return(0,E.Z)(Je,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(te){this._placeholder=te,this.stateChanges.next()}},{key:"required",get:function(){var te,ye,fe,Ne;return null!==(Ne=null!==(te=this._required)&&void 0!==te?te:null===(fe=null===(ye=this.ngControl)||void 0===ye?void 0:ye.control)||void 0===fe?void 0:fe.hasValidator(x.kI.required))&&void 0!==Ne&&Ne},set:function(te){this._required=(0,y.Ig)(te),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(te){this._selectionModel,this._multiple=(0,y.Ig)(te)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(te){this._disableOptionCentering=(0,y.Ig)(te)}},{key:"compareWith",get:function(){return this._compareWith},set:function(te){this._compareWith=te,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(te){this._assignValue(te)&&this._onChange(te)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(te){this._typeaheadDebounceInterval=(0,y.su)(te)}},{key:"id",get:function(){return this._id},set:function(te){this._id=te||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var te=this;this._selectionModel=new T.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,pe.x)(),(0,de.R)(this._destroy)).subscribe(function(){return te._panelDoneAnimating(te.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var te=this;this._initKeyManager(),this._selectionModel.changed.pipe((0,de.R)(this._destroy)).subscribe(function(ye){ye.added.forEach(function(fe){return fe.select()}),ye.removed.forEach(function(fe){return fe.deselect()})}),this.options.changes.pipe((0,$.O)(null),(0,de.R)(this._destroy)).subscribe(function(){te._resetOptions(),te._initializeSelection()})}},{key:"ngDoCheck",value:function(){var te=this._getTriggerAriaLabelledby(),ye=this.ngControl;if(te!==this._triggerAriaLabelledBy){var fe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=te,te?fe.setAttribute("aria-labelledby",te):fe.removeAttribute("aria-labelledby")}ye&&(this._previousControl!==ye.control&&(void 0!==this._previousControl&&null!==ye.disabled&&ye.disabled!==this.disabled&&(this.disabled=ye.disabled),this._previousControl=ye.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(te){(te.disabled||te.userAriaDescribedBy)&&this.stateChanges.next(),te.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(te){this._assignValue(te)}},{key:"registerOnChange",value:function(te){this._onChange=te}},{key:"registerOnTouched",value:function(te){this._onTouched=te}},{key:"setDisabledState",value:function(te){this.disabled=te,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var te,ye;return this.multiple?(null===(te=this._selectionModel)||void 0===te?void 0:te.selected)||[]:null===(ye=this._selectionModel)||void 0===ye?void 0:ye.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var te=this._selectionModel.selected.map(function(ye){return ye.viewValue});return this._isRtl()&&te.reverse(),te.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(te){this.disabled||(this.panelOpen?this._handleOpenKeydown(te):this._handleClosedKeydown(te))}},{key:"_handleClosedKeydown",value:function(te){var ye=te.keyCode,fe=ye===M.JH||ye===M.LH||ye===M.oh||ye===M.SV,Ne=ye===M.K5||ye===M.L_,st=this._keyManager;if(!st.isTyping()&&Ne&&!(0,M.Vb)(te)||(this.multiple||te.altKey)&&fe)te.preventDefault(),this.open();else if(!this.multiple){var ct=this.selected;st.onKeydown(te);var Bt=this.selected;Bt&&ct!==Bt&&this._liveAnnouncer.announce(Bt.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(te){var ye=this._keyManager,fe=te.keyCode,Ne=fe===M.JH||fe===M.LH,st=ye.isTyping();if(Ne&&te.altKey)te.preventDefault(),this.close();else if(st||fe!==M.K5&&fe!==M.L_||!ye.activeItem||(0,M.Vb)(te))if(!st&&this._multiple&&fe===M.A&&te.ctrlKey){te.preventDefault();var ct=this.options.some(function(jt){return!jt.disabled&&!jt.selected});this.options.forEach(function(jt){jt.disabled||(ct?jt.select():jt.deselect())})}else{var Bt=ye.activeItemIndex;ye.onKeydown(te),this._multiple&&Ne&&te.shiftKey&&ye.activeItem&&ye.activeItemIndex!==Bt&&ye.activeItem._selectViaInteraction()}else te.preventDefault(),ye.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var te=this;this._overlayDir.positionChange.pipe((0,Q.q)(1)).subscribe(function(){te._changeDetectorRef.detectChanges(),te._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 te=this;Promise.resolve().then(function(){te.ngControl&&(te._value=te.ngControl.value),te._setSelectionByValue(te._value),te.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(te){var ye=this;if(this._selectionModel.selected.forEach(function(Ne){return Ne.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&te)Array.isArray(te),te.forEach(function(Ne){return ye._selectOptionByValue(Ne)}),this._sortValues();else{var fe=this._selectOptionByValue(te);fe?this._keyManager.updateActiveItem(fe):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(te){var ye=this,fe=this.options.find(function(Ne){if(ye._selectionModel.isSelected(Ne))return!1;try{return null!=Ne.value&&ye._compareWith(Ne.value,te)}catch(st){return!1}});return fe&&this._selectionModel.select(fe),fe}},{key:"_assignValue",value:function(te){return!!(te!==this._value||this._multiple&&Array.isArray(te))&&(this.options&&this._setSelectionByValue(te),this._value=te,!0)}},{key:"_initKeyManager",value:function(){var te=this;this._keyManager=new S.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,de.R)(this._destroy)).subscribe(function(){te.panelOpen&&(!te.multiple&&te._keyManager.activeItem&&te._keyManager.activeItem._selectViaInteraction(),te.focus(),te.close())}),this._keyManager.change.pipe((0,de.R)(this._destroy)).subscribe(function(){te._panelOpen&&te.panel?te._scrollOptionIntoView(te._keyManager.activeItemIndex||0):!te._panelOpen&&!te.multiple&&te._keyManager.activeItem&&te._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var te=this,ye=(0,X.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,de.R)(ye)).subscribe(function(fe){te._onSelect(fe.source,fe.isUserInput),fe.isUserInput&&!te.multiple&&te._panelOpen&&(te.close(),te.focus())}),X.T.apply(void 0,(0,A.Z)(this.options.map(function(fe){return fe._stateChanges}))).pipe((0,de.R)(ye)).subscribe(function(){te._changeDetectorRef.markForCheck(),te.stateChanges.next()})}},{key:"_onSelect",value:function(te,ye){var fe=this._selectionModel.isSelected(te);null!=te.value||this._multiple?(fe!==te.selected&&(te.selected?this._selectionModel.select(te):this._selectionModel.deselect(te)),ye&&this._keyManager.setActiveItem(te),this.multiple&&(this._sortValues(),ye&&this.focus())):(te.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(te.value)),fe!==this._selectionModel.isSelected(te)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var te=this;if(this.multiple){var ye=this.options.toArray();this._selectionModel.sort(function(fe,Ne){return te.sortComparator?te.sortComparator(fe,Ne,ye):ye.indexOf(fe)-ye.indexOf(Ne)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(te){var ye=null;ye=this.multiple?this.selected.map(function(fe){return fe.value}):this.selected?this.selected.value:te,this._value=ye,this.valueChange.emit(ye),this._onChange(ye),this.selectionChange.emit(this._getChangeEvent(ye)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var te;return!this._panelOpen&&!this.disabled&&(null===(te=this.options)||void 0===te?void 0:te.length)>0}},{key:"focus",value:function(te){this._elementRef.nativeElement.focus(te)}},{key:"_getPanelAriaLabelledby",value:function(){var te;if(this.ariaLabel)return null;var ye=null===(te=this._parentFormField)||void 0===te?void 0:te.getLabelId(),fe=ye?ye+" ":"";return this.ariaLabelledby?fe+this.ariaLabelledby:ye}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var te;if(this.ariaLabel)return null;var ye=null===(te=this._parentFormField)||void 0===te?void 0:te.getLabelId(),fe=(ye?ye+" ":"")+this._valueId;return this.ariaLabelledby&&(fe+=" "+this.ariaLabelledby),fe}},{key:"_panelDoneAnimating",value:function(te){this.openedChange.emit(te)}},{key:"setDescribedByIds",value:function(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),Je}(Dt);sn.\u0275fac=function(Xt){return new(Xt||sn)(v.Y36(O.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(k.rD),v.Y36(v.SBq),v.Y36(ce.Is,8),v.Y36(x.F,8),v.Y36(x.sg,8),v.Y36(b.G_,8),v.Y36(x.a5,10),v.$8M("tabindex"),v.Y36(H),v.Y36(S.Kd),v.Y36(Ye,8))},sn.\u0275dir=v.lG2({type:sn,viewQuery:function(Xt,Je){var Be;(1&Xt&&(v.Gf(me,5),v.Gf(je,5),v.Gf(j.pI,5)),2&Xt)&&(v.iGM(Be=v.CRH())&&(Je.trigger=Be.first),v.iGM(Be=v.CRH())&&(Je.panel=Be.first),v.iGM(Be=v.CRH())&&(Je._overlayDir=Be.first))},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[v.qOj,v.TTD]});var qt=function(Kt){(0,R.Z)(Je,Kt);var Xt=(0,P.Z)(Je);function Je(){var Be;return(0,D.Z)(this,Je),(Be=Xt.apply(this,arguments))._scrollTop=0,Be._triggerFontSize=0,Be._transformOrigin="top",Be._offsetY=0,Be._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],Be}return(0,E.Z)(Je,[{key:"_calculateOverlayScroll",value:function(te,ye,fe){var Ne=this._getItemHeight(),Bt=Ne*te-ye+Ne/2;return Math.min(Math.max(0,Bt),fe)}},{key:"ngOnInit",value:function(){var te=this;(0,G.Z)((0,W.Z)(Je.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe((0,de.R)(this._destroy)).subscribe(function(){te.panelOpen&&(te._triggerRect=te.trigger.nativeElement.getBoundingClientRect(),te._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var te=this;(0,G.Z)((0,W.Z)(Je.prototype),"_canOpen",this).call(this)&&((0,G.Z)((0,W.Z)(Je.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Q.q)(1)).subscribe(function(){te._triggerFontSize&&te._overlayDir.overlayRef&&te._overlayDir.overlayRef.overlayElement&&(te._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(te._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(te){var ye=(0,k.CB)(te,this.options,this.optionGroups),fe=this._getItemHeight();this.panel.nativeElement.scrollTop=0===te&&1===ye?0:(0,k.jH)((te+ye)*fe,fe,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(te){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),(0,G.Z)((0,W.Z)(Je.prototype),"_panelDoneAnimating",this).call(this,te)}},{key:"_getChangeEvent",value:function(te){return new t(this,te)}},{key:"_calculateOverlayOffsetX",value:function(){var st,te=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),ye=this._viewportRuler.getViewportSize(),fe=this._isRtl(),Ne=this.multiple?56:32;if(this.multiple)st=40;else if(this.disableOptionCentering)st=16;else{var ct=this._selectionModel.selected[0]||this.options.first;st=ct&&ct.group?32:16}fe||(st*=-1);var Bt=0-(te.left+st-(fe?Ne:0)),jt=te.right+st-ye.width+(fe?0:Ne);Bt>0?st+=Bt+8:jt>0&&(st-=jt+8),this._overlayDir.offsetX=Math.round(st),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(te,ye,fe){var Bt,Ne=this._getItemHeight(),st=(Ne-this._triggerRect.height)/2,ct=Math.floor(256/Ne);if(this.disableOptionCentering)return 0;if(0===this._scrollTop)Bt=te*Ne;else if(this._scrollTop===fe){Bt=(te-(this._getItemCount()-ct))*Ne+(Ne-(this._getItemCount()*Ne-256)%Ne)}else Bt=ye-Ne/2;return Math.round(-1*Bt-st)}},{key:"_checkOverlayWithinViewport",value:function(te){var ye=this._getItemHeight(),fe=this._viewportRuler.getViewportSize(),Ne=this._triggerRect.top-8,st=fe.height-this._triggerRect.bottom-8,ct=Math.abs(this._offsetY),jt=Math.min(this._getItemCount()*ye,256)-ct-this._triggerRect.height;jt>st?this._adjustPanelUp(jt,st):ct>Ne?this._adjustPanelDown(ct,Ne,te):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(te,ye){var fe=Math.round(te-ye);this._scrollTop-=fe,this._offsetY-=fe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(te,ye,fe){var Ne=Math.round(te-ye);if(this._scrollTop+=Ne,this._offsetY+=Ne,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=fe)return this._scrollTop=fe,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var ct,te=this._getItemHeight(),ye=this._getItemCount(),fe=Math.min(ye*te,256),st=ye*te-fe;ct=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),ct+=(0,k.CB)(ct,this.options,this.optionGroups);var Bt=fe/2;this._scrollTop=this._calculateOverlayScroll(ct,Bt,st),this._offsetY=this._calculateOverlayOffsetY(ct,Bt,st),this._checkOverlayWithinViewport(st)}},{key:"_getOriginBasedOnOption",value:function(){var te=this._getItemHeight(),ye=(te-this._triggerRect.height)/2,fe=Math.abs(this._offsetY)-ye+te/2;return"50% ".concat(fe,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),Je}(sn);qt.\u0275fac=function(){var Kt;return function(Je){return(Kt||(Kt=v.n5z(qt)))(Je||qt)}}(),qt.\u0275cmp=v.Xpm({type:qt,selectors:[["mat-select"]],contentQueries:function(Xt,Je,Be){var te;(1&Xt&&(v.Suo(Be,Zt,5),v.Suo(Be,k.ey,5),v.Suo(Be,k.K7,5)),2&Xt)&&(v.iGM(te=v.CRH())&&(Je.customTrigger=te.first),v.iGM(te=v.CRH())&&(Je.options=te),v.iGM(te=v.CRH())&&(Je.optionGroups=te))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(Xt,Je){1&Xt&&v.NdJ("keydown",function(te){return Je._handleKeydown(te)})("focus",function(){return Je._onFocus()})("blur",function(){return Je._onBlur()}),2&Xt&&(v.uIk("id",Je.id)("tabindex",Je.tabIndex)("aria-controls",Je.panelOpen?Je.id+"-panel":null)("aria-expanded",Je.panelOpen)("aria-label",Je.ariaLabel||null)("aria-required",Je.required.toString())("aria-disabled",Je.disabled.toString())("aria-invalid",Je.errorState)("aria-activedescendant",Je._getAriaActiveDescendant()),v.ekj("mat-select-disabled",Je.disabled)("mat-select-invalid",Je.errorState)("mat-select-required",Je.required)("mat-select-empty",Je.empty)("mat-select-multiple",Je.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:b.Eo,useExisting:qt},{provide:k.HF,useExisting:qt}]),v.qOj],ngContentSelectors:["mat-select-trigger","*"],decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(Xt,Je){if(1&Xt&&(v.F$t(Ze),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return Je.toggle()}),v.TgZ(3,"div",2),v.YNc(4,at,2,1,"span",3),v.YNc(5,xt,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,Lt,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return Je.close()})("attach",function(){return Je._onAttached()})("detach",function(){return Je.close()})),2&Xt){var Be=v.MAs(1);v.uIk("aria-owns",Je.panelOpen?Je.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",Je.empty),v.uIk("id",Je._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",Je._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Je._scrollStrategy)("cdkConnectedOverlayOrigin",Be)("cdkConnectedOverlayOpen",Je.panelOpen)("cdkConnectedOverlayPositions",Je._positions)("cdkConnectedOverlayMinWidth",null==Je._triggerRect?null:Je._triggerRect.width)("cdkConnectedOverlayOffsetY",Je._offsetY)}},dependencies:[L.mk,L.RF,L.n9,L.ED,j.pI,j.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[Ft.transformPanelWrap,Ft.transformPanel]},changeDetection:0});var yn=(0,E.Z)(function Kt(){(0,D.Z)(this,Kt)});yn.\u0275fac=function(Xt){return new(Xt||yn)},yn.\u0275mod=v.oAB({type:yn}),yn.\u0275inj=v.cJS({providers:[ge],imports:[L.ez,j.U8,k.Ng,k.BQ,O.ZD,b.lN,k.Ng,k.BQ]})},3251:function(De,K,m){"use strict";m.d(K,{BU:function(){return Ke},Nh:function(){return Hn},Nj:function(){return vt},SP:function(){return et},uD:function(){return qt},uX:function(){return Xt}});var G=m(7326),W=m(4902),A=m(3237),U=m(1120),R=m(136),P=m(9388),E=m(5671),D=m(3144),j=m(5664),L=m(7144),v=m(7429),k=m(9808),b=m(5e3),O=m(508),S=m(2986),y=m(1059),T=m(5778),M=m(7625),x=m(7545),N=m(1307),F=m(9664),X=m(8929),$=m(4096),Y=m(3753),Q=m(1086),ne=m(6787),be=m(8896),pe=m(7451),de=m(8723),le=m(1777),ce=m(226),me=m(3191),je=m(1159),at=m(925),Mt=m(9071);function Tt(Yt,kt){1&Yt&&b.Hsn(0)}var xt=["*"];function Lt(Yt,kt){}var Ze=function(kt){return{animationDuration:kt}},$t=function(kt,$e){return{value:kt,params:$e}},Ft=["tabListContainer"],fn=["tabList"],nt=["tabListInner"],Ot=["nextPaginator"],_t=["previousPaginator"],Ct=["tabBodyWrapper"],We=["tabHeader"];function lt(Yt,kt){}function dt(Yt,kt){if(1&Yt&&b.YNc(0,lt,0,0,"ng-template",10),2&Yt){var $e=b.oxw().$implicit;b.Q6J("cdkPortalOutlet",$e.templateLabel)}}function Ut(Yt,kt){if(1&Yt&&b._uU(0),2&Yt){var $e=b.oxw().$implicit;b.Oqu($e.textLabel)}}function B(Yt,kt){if(1&Yt){var $e=b.EpF();b.TgZ(0,"div",6),b.NdJ("click",function(){var Wn=b.CHM($e),ar=Wn.$implicit,Or=Wn.index,hi=b.oxw(),Gi=b.MAs(1);return b.KtG(hi._handleClick(ar,Gi,Or))})("cdkFocusChange",function(Wn){var Or=b.CHM($e).index,hi=b.oxw();return b.KtG(hi._tabFocusChanged(Wn,Or))}),b.TgZ(1,"div",7),b.YNc(2,dt,1,1,"ng-template",8),b.YNc(3,Ut,1,1,"ng-template",null,9,b.W1O),b.qZA()()}if(2&Yt){var gt=kt.$implicit,yt=kt.index,nn=b.MAs(4),Gn=b.oxw();b.ekj("mat-tab-label-active",Gn.selectedIndex===yt),b.Q6J("id",Gn._getTabLabelId(yt))("ngClass",gt.labelClass)("disabled",gt.disabled)("matRippleDisabled",gt.disabled||Gn.disableRipple),b.uIk("tabIndex",Gn._getTabIndex(gt,yt))("aria-posinset",yt+1)("aria-setsize",Gn._tabs.length)("aria-controls",Gn._getTabContentId(yt))("aria-selected",Gn.selectedIndex===yt)("aria-label",gt.ariaLabel||null)("aria-labelledby",!gt.ariaLabel&>.ariaLabelledby?gt.ariaLabelledby:null),b.xp6(2),b.Q6J("ngIf",gt.templateLabel)("ngIfElse",nn)}}function H(Yt,kt){if(1&Yt){var $e=b.EpF();b.TgZ(0,"mat-tab-body",11),b.NdJ("_onCentered",function(){b.CHM($e);var Vn=b.oxw();return b.KtG(Vn._removeTabBodyWrapperHeight())})("_onCentering",function(Vn){b.CHM($e);var Wn=b.oxw();return b.KtG(Wn._setTabBodyWrapperHeight(Vn))}),b.qZA()}if(2&Yt){var gt=kt.$implicit,yt=kt.index,nn=b.oxw();b.ekj("mat-tab-body-active",nn.selectedIndex===yt),b.Q6J("id",nn._getTabContentId(yt))("ngClass",gt.bodyClass)("content",gt.content)("position",gt.position)("origin",gt.origin)("animationDuration",nn.animationDuration)("preserveContent",nn.preserveContent),b.uIk("tabindex",null!=nn.contentTabIndex&&nn.selectedIndex===yt?nn.contentTabIndex:null)("aria-labelledby",nn._getTabLabelId(yt))}}var Ye=new b.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ge(){return function($e){return{left:$e?($e.offsetLeft||0)+"px":"0",width:$e?($e.offsetWidth||0)+"px":"0"}}}});var t=function(){function Yt(kt,$e,gt,yt){(0,E.Z)(this,Yt),this._elementRef=kt,this._ngZone=$e,this._inkBarPositioner=gt,this._animationMode=yt}return(0,D.Z)(Yt,[{key:"alignToElement",value:function($e){var gt=this;this.show(),this._ngZone.run(function(){gt._ngZone.onStable.pipe((0,S.q)(1)).subscribe(function(){var yt=gt._inkBarPositioner($e),nn=gt._elementRef.nativeElement;nn.style.left=yt.left,nn.style.width=yt.width})})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),Yt}();t.\u0275fac=function(kt){return new(kt||t)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(Ye),b.Y36(b.QbO,8))},t.\u0275dir=b.lG2({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(kt,$e){2&kt&&b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode)}});var Dt=new b.OlP("MatTabContent"),Zt=(0,D.Z)(function Yt(kt){(0,E.Z)(this,Yt),this.template=kt});Zt.\u0275fac=function(kt){return new(kt||Zt)(b.Y36(b.Rgc))},Zt.\u0275dir=b.lG2({type:Zt,selectors:[["","matTabContent",""]],features:[b._Bn([{provide:Dt,useExisting:Zt}])]});var zt=new b.OlP("MatTabLabel"),sn=new b.OlP("MAT_TAB"),qt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn){var Gn;return(0,E.Z)(this,$e),(Gn=kt.call(this,gt,yt))._closestTab=nn,Gn}return(0,D.Z)($e)}(v.ig);qt.\u0275fac=function(kt){return new(kt||qt)(b.Y36(b.Rgc),b.Y36(b.s_b),b.Y36(sn,8))},qt.\u0275dir=b.lG2({type:qt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[b._Bn([{provide:zt,useExisting:qt}]),b.qOj]});var yn=(0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,E.Z)(this,Yt)})}()),Kt=new b.OlP("MAT_TAB_GROUP"),Xt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt){var nn;return(0,E.Z)(this,$e),(nn=kt.call(this))._viewContainerRef=gt,nn._closestTabGroup=yt,nn.textLabel="",nn._contentPortal=null,nn._stateChanges=new X.xQ,nn.position=null,nn.origin=null,nn.isActive=!1,nn}return(0,D.Z)($e,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(yt){this._setTemplateLabelInput(yt)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(yt){(yt.hasOwnProperty("textLabel")||yt.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(yt){yt&&yt._closestTab===this&&(this._templateLabel=yt)}}]),$e}(yn);Xt.\u0275fac=function(kt){return new(kt||Xt)(b.Y36(b.s_b),b.Y36(Kt,8))},Xt.\u0275cmp=b.Xpm({type:Xt,selectors:[["mat-tab"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&(b.Suo(gt,zt,5),b.Suo(gt,Dt,7,b.Rgc)),2&kt)&&(b.iGM(yt=b.CRH())&&($e.templateLabel=yt.first),b.iGM(yt=b.CRH())&&($e._explicitContent=yt.first))},viewQuery:function(kt,$e){var gt;(1&kt&&b.Gf(b.Rgc,7),2&kt)&&(b.iGM(gt=b.CRH())&&($e._implicitContent=gt.first))},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[b._Bn([{provide:sn,useExisting:Xt}]),b.qOj,b.TTD],ngContentSelectors:xt,decls:1,vars:0,template:function(kt,$e){1&kt&&(b.F$t(),b.YNc(0,Tt,1,0,"ng-template"))},encapsulation:2});var Je={translateTab:(0,le.X$)("translateTab",[(0,le.SB)("center, void, left-origin-center, right-origin-center",(0,le.oB)({transform:"none"})),(0,le.SB)("left",(0,le.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,le.SB)("right",(0,le.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,le.eR)("* => left, * => right, left => center, right => center",(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,le.eR)("void => left-origin-center",[(0,le.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,le.eR)("void => right-origin-center",[(0,le.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,le.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Be=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){var Vn;return(0,E.Z)(this,$e),(Vn=kt.call(this,gt,yt,Gn))._host=nn,Vn._centeringSub=$.w.EMPTY,Vn._leavingSub=$.w.EMPTY,Vn}return(0,D.Z)($e,[{key:"ngOnInit",value:function(){var yt=this;(0,A.Z)((0,U.Z)($e.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe((0,y.O)(this._host._isCenterPosition(this._host._position))).subscribe(function(nn){nn&&!yt.hasAttached()&&yt.attach(yt._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){yt._host.preserveContent||yt.detach()})}},{key:"ngOnDestroy",value:function(){(0,A.Z)((0,U.Z)($e.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),$e}(v.Pl);Be.\u0275fac=function(kt){return new(kt||Be)(b.Y36(b._Vd),b.Y36(b.s_b),b.Y36((0,b.Gpc)(function(){return ye})),b.Y36(k.K0))},Be.\u0275dir=b.lG2({type:Be,selectors:[["","matTabBodyHost",""]],features:[b.qOj]});var te=function(){function Yt(kt,$e,gt){var yt=this;(0,E.Z)(this,Yt),this._elementRef=kt,this._dir=$e,this._dirChangeSubscription=$.w.EMPTY,this._translateTabComplete=new X.xQ,this._onCentering=new b.vpe,this._beforeCentering=new b.vpe,this._afterLeavingCenter=new b.vpe,this._onCentered=new b.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,$e&&(this._dirChangeSubscription=$e.change.subscribe(function(nn){yt._computePositionAnimationState(nn),gt.markForCheck()})),this._translateTabComplete.pipe((0,T.x)(function(nn,Gn){return nn.fromState===Gn.fromState&&nn.toState===Gn.toState})).subscribe(function(nn){yt._isCenterPosition(nn.toState)&&yt._isCenterPosition(yt._position)&&yt._onCentered.emit(),yt._isCenterPosition(nn.fromState)&&!yt._isCenterPosition(yt._position)&&yt._afterLeavingCenter.emit()})}return(0,D.Z)(Yt,[{key:"position",set:function($e){this._positionIndex=$e,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($e){var gt=this._isCenterPosition($e.toState);this._beforeCentering.emit(gt),gt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function($e){return"center"==$e||"left-origin-center"==$e||"right-origin-center"==$e}},{key:"_computePositionAnimationState",value:function(){var $e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._positionIndex<0?this._position="ltr"==$e?"left":"right":this._positionIndex>0?this._position="ltr"==$e?"right":"left":this._position="center"}},{key:"_computePositionFromOrigin",value:function($e){var gt=this._getLayoutDirection();return"ltr"==gt&&$e<=0||"rtl"==gt&&$e>0?"left-origin-center":"right-origin-center"}}]),Yt}();te.\u0275fac=function(kt){return new(kt||te)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.sBO))},te.\u0275dir=b.lG2({type:te,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}});var ye=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn){return(0,E.Z)(this,$e),kt.call(this,gt,yt,nn)}return(0,D.Z)($e)}(te);ye.\u0275fac=function(kt){return new(kt||ye)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.sBO))},ye.\u0275cmp=b.Xpm({type:ye,selectors:[["mat-tab-body"]],viewQuery:function(kt,$e){var gt;(1&kt&&b.Gf(v.Pl,5),2&kt)&&(b.iGM(gt=b.CRH())&&($e._portalHost=gt.first))},hostAttrs:[1,"mat-tab-body"],features:[b.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(kt,$e){1&kt&&(b.TgZ(0,"div",0,1),b.NdJ("@translateTab.start",function(yt){return $e._onTranslateTabStarted(yt)})("@translateTab.done",function(yt){return $e._translateTabComplete.next(yt)}),b.YNc(2,Lt,0,0,"ng-template",2),b.qZA()),2&kt&&b.Q6J("@translateTab",b.WLB(3,$t,$e._position,b.VKq(1,Ze,$e.animationDuration)))},dependencies:[Be],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Je.translateTab]}});var fe=new b.OlP("MAT_TABS_CONFIG"),st=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt){var yt;return(0,E.Z)(this,$e),(yt=kt.call(this)).elementRef=gt,yt}return(0,D.Z)($e,[{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}}]),$e}((0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,E.Z)(this,Yt)})}()));st.\u0275fac=function(kt){return new(kt||st)(b.Y36(b.SBq))},st.\u0275dir=b.lG2({type:st,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(kt,$e){2&kt&&(b.uIk("aria-disabled",!!$e.disabled),b.ekj("mat-tab-disabled",$e.disabled))},inputs:{disabled:"disabled"},features:[b.qOj]});var ct=(0,at.i$)({passive:!0}),vn=function(){function Yt(kt,$e,gt,yt,nn,Gn,Vn){var Wn=this;(0,E.Z)(this,Yt),this._elementRef=kt,this._changeDetectorRef=$e,this._viewportRuler=gt,this._dir=yt,this._ngZone=nn,this._platform=Gn,this._animationMode=Vn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new X.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new X.xQ,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new b.vpe,this.indexFocused=new b.vpe,nn.runOutsideAngular(function(){(0,Y.R)(kt.nativeElement,"mouseleave").pipe((0,M.R)(Wn._destroyed)).subscribe(function(){Wn._stopInterval()})})}return(0,D.Z)(Yt,[{key:"disablePagination",get:function(){return this._disablePagination},set:function($e){this._disablePagination=(0,me.Ig)($e)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function($e){$e=(0,me.su)($e),this._selectedIndex!=$e&&(this._selectedIndexChanged=!0,this._selectedIndex=$e,this._keyManager&&this._keyManager.updateActiveItem($e))}},{key:"ngAfterViewInit",value:function(){var $e=this;(0,Y.R)(this._previousPaginator.nativeElement,"touchstart",ct).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._handlePaginatorPress("before")}),(0,Y.R)(this._nextPaginator.nativeElement,"touchstart",ct).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var $e=this,gt=this._dir?this._dir.change:(0,Q.of)("ltr"),yt=this._viewportRuler.change(150),nn=function(){$e.updatePagination(),$e._alignInkBarToSelectedTab()};this._keyManager=new j.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(nn),(0,ne.T)(gt,yt,this._items.changes,this._itemsResized()).pipe((0,M.R)(this._destroyed)).subscribe(function(){$e._ngZone.run(function(){Promise.resolve().then(function(){$e._scrollDistance=Math.max(0,Math.min($e._getMaxScrollDistance(),$e._scrollDistance)),nn()})}),$e._keyManager.withHorizontalOrientation($e._getLayoutDirection())}),this._keyManager.change.pipe((0,M.R)(this._destroyed)).subscribe(function(Gn){$e.indexFocused.emit(Gn),$e._setTabFocus(Gn)})}},{key:"_itemsResized",value:function(){var $e=this;return"function"!=typeof ResizeObserver?be.E:this._items.changes.pipe((0,y.O)(this._items),(0,x.w)(function(gt){return new pe.y(function(yt){return $e._ngZone.runOutsideAngular(function(){var nn=new ResizeObserver(function(Gn){return yt.next(Gn)});return gt.forEach(function(Gn){return nn.observe(Gn.elementRef.nativeElement)}),function(){nn.disconnect()}})})}),(0,N.T)(1),(0,F.h)(function(gt){return gt.some(function(yt){return yt.contentRect.width>0&&yt.contentRect.height>0})}))}},{key:"ngAfterContentChecked",value:function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function($e){if(!(0,je.Vb)($e))switch($e.keyCode){case je.K5:case je.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected($e));break;default:this._keyManager.onKeydown($e)}}},{key:"_onContentChanges",value:function(){var $e=this,gt=this._elementRef.nativeElement.textContent;gt!==this._currentTextContent&&(this._currentTextContent=gt||"",this._ngZone.run(function(){$e.updatePagination(),$e._alignInkBarToSelectedTab(),$e._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($e){!this._isValidIndex($e)||this.focusIndex===$e||!this._keyManager||this._keyManager.setActiveItem($e)}},{key:"_isValidIndex",value:function($e){if(!this._items)return!0;var gt=this._items?this._items.toArray()[$e]:null;return!!gt&&!gt.disabled}},{key:"_setTabFocus",value:function($e){if(this._showPaginationControls&&this._scrollToLabel($e),this._items&&this._items.length){this._items.toArray()[$e].focus();var gt=this._tabListContainer.nativeElement,yt=this._getLayoutDirection();gt.scrollLeft="ltr"==yt?0:gt.scrollWidth-gt.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var $e=this.scrollDistance,gt="ltr"===this._getLayoutDirection()?-$e:$e;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(gt),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function($e){this._scrollTo($e)}},{key:"_scrollHeader",value:function($e){var yt=("before"==$e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+yt)}},{key:"_handlePaginatorClick",value:function($e){this._stopInterval(),this._scrollHeader($e)}},{key:"_scrollToLabel",value:function($e){if(!this.disablePagination){var gt=this._items?this._items.toArray()[$e]:null;if(gt){var Wn,ar,yt=this._tabListContainer.nativeElement.offsetWidth,nn=gt.elementRef.nativeElement,Gn=nn.offsetLeft,Vn=nn.offsetWidth;"ltr"==this._getLayoutDirection()?ar=(Wn=Gn)+Vn:Wn=(ar=this._tabListInner.nativeElement.offsetWidth-Gn)-Vn;var Or=this.scrollDistance,hi=this.scrollDistance+yt;Wn<Or?this.scrollDistance-=Or-Wn+60:ar>hi&&(this.scrollDistance+=ar-hi+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var $e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;$e||(this.scrollDistance=0),$e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=$e}}},{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 $e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,gt=$e?$e.elementRef.nativeElement:null;gt?this._inkBar.alignToElement(gt):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function($e,gt){var yt=this;gt&&null!=gt.button&&0!==gt.button||(this._stopInterval(),(0,de.H)(650,100).pipe((0,M.R)((0,ne.T)(this._stopScrolling,this._destroyed))).subscribe(function(){var nn=yt._scrollHeader($e),Gn=nn.maxScrollDistance,Vn=nn.distance;(0===Vn||Vn>=Gn)&&yt._stopInterval()}))}},{key:"_scrollTo",value:function($e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var gt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(gt,$e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:gt,distance:this._scrollDistance}}}]),Yt}();vn.\u0275fac=function(kt){return new(kt||vn)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(at.t4),b.Y36(b.QbO,8))},vn.\u0275dir=b.lG2({type:vn,inputs:{disablePagination:"disablePagination"}});var ln=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){var Or;return(0,E.Z)(this,$e),(Or=kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar))._disableRipple=!1,Or}return(0,D.Z)($e,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(yt){this._disableRipple=(0,me.Ig)(yt)}},{key:"_itemSelected",value:function(yt){yt.preventDefault()}}]),$e}(vn);ln.\u0275fac=function(kt){return new(kt||ln)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(at.t4),b.Y36(b.QbO,8))},ln.\u0275dir=b.lG2({type:ln,inputs:{disableRipple:"disableRipple"},features:[b.qOj]});var En=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){return(0,E.Z)(this,$e),kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar)}return(0,D.Z)($e)}(ln);En.\u0275fac=function(kt){return new(kt||En)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(at.t4),b.Y36(b.QbO,8))},En.\u0275cmp=b.Xpm({type:En,selectors:[["mat-tab-header"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,st,4),2&kt)&&(b.iGM(yt=b.CRH())&&($e._items=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(t,7),b.Gf(Ft,7),b.Gf(fn,7),b.Gf(nt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._inkBar=gt.first),b.iGM(gt=b.CRH())&&($e._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&($e._tabList=gt.first),b.iGM(gt=b.CRH())&&($e._tabListInner=gt.first),b.iGM(gt=b.CRH())&&($e._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&($e._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(kt,$e){2&kt&&b.ekj("mat-tab-header-pagination-controls-enabled",$e._showPaginationControls)("mat-tab-header-rtl","rtl"==$e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[b.qOj],ngContentSelectors:xt,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(kt,$e){1&kt&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return $e._handlePaginatorClick("before")})("mousedown",function(yt){return $e._handlePaginatorPress("before",yt)})("touchend",function(){return $e._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(yt){return $e._handleKeydown(yt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return $e._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(yt){return $e._handlePaginatorPress("after",yt)})("click",function(){return $e._handlePaginatorClick("after")})("touchend",function(){return $e._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&kt&&(b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollBefore),b.Q6J("matRippleDisabled",$e._disableScrollBefore||$e.disableRipple)("disabled",$e._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollAfter),b.Q6J("matRippleDisabled",$e._disableScrollAfter||$e.disableRipple)("disabled",$e._disableScrollAfter||null))},dependencies:[O.wG,L.wD,t],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2});var hn=0,mn=(0,D.Z)(function Yt(){(0,E.Z)(this,Yt)}),Et=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){var Vn,Wn;return(0,E.Z)(this,$e),(Vn=kt.call(this,gt))._changeDetectorRef=yt,Vn._animationMode=Gn,Vn._tabs=new b.n_E,Vn._indexToSelect=0,Vn._lastFocusedTabIndex=null,Vn._tabBodyWrapperHeight=0,Vn._tabsSubscription=$.w.EMPTY,Vn._tabLabelSubscription=$.w.EMPTY,Vn._dynamicHeight=!1,Vn._selectedIndex=null,Vn.headerPosition="above",Vn._disablePagination=!1,Vn._preserveContent=!1,Vn.selectedIndexChange=new b.vpe,Vn.focusChange=new b.vpe,Vn.animationDone=new b.vpe,Vn.selectedTabChange=new b.vpe(!0),Vn._groupId=hn++,Vn.animationDuration=nn&&nn.animationDuration?nn.animationDuration:"500ms",Vn.disablePagination=!(!nn||null==nn.disablePagination)&&nn.disablePagination,Vn.dynamicHeight=!(!nn||null==nn.dynamicHeight)&&nn.dynamicHeight,Vn.contentTabIndex=null!==(Wn=null==nn?void 0:nn.contentTabIndex)&&void 0!==Wn?Wn:null,Vn.preserveContent=!(null==nn||!nn.preserveContent),Vn}return(0,D.Z)($e,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(yt){this._dynamicHeight=(0,me.Ig)(yt)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(yt){this._indexToSelect=(0,me.su)(yt,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(yt){this._animationDuration=/^\d+$/.test(yt+"")?yt+"ms":yt}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(yt){this._contentTabIndex=(0,me.su)(yt,null)}},{key:"disablePagination",get:function(){return this._disablePagination},set:function(yt){this._disablePagination=(0,me.Ig)(yt)}},{key:"preserveContent",get:function(){return this._preserveContent},set:function(yt){this._preserveContent=(0,me.Ig)(yt)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(yt){var nn=this._elementRef.nativeElement;nn.classList.remove("mat-background-".concat(this.backgroundColor)),yt&&nn.classList.add("mat-background-".concat(yt)),this._backgroundColor=yt}},{key:"ngAfterContentChecked",value:function(){var yt=this,nn=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=nn){var Gn=null==this._selectedIndex;if(!Gn){this.selectedTabChange.emit(this._createChangeEvent(nn));var Vn=this._tabBodyWrapper.nativeElement;Vn.style.minHeight=Vn.clientHeight+"px"}Promise.resolve().then(function(){yt._tabs.forEach(function(Wn,ar){return Wn.isActive=ar===nn}),Gn||(yt.selectedIndexChange.emit(nn),yt._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(Wn,ar){Wn.position=ar-nn,null!=yt._selectedIndex&&0==Wn.position&&!Wn.origin&&(Wn.origin=nn-yt._selectedIndex)}),this._selectedIndex!==nn&&(this._selectedIndex=nn,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var yt=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var nn=yt._clampTabIndex(yt._indexToSelect);if(nn===yt._selectedIndex){for(var Vn,Gn=yt._tabs.toArray(),Wn=0;Wn<Gn.length;Wn++)if(Gn[Wn].isActive){yt._indexToSelect=yt._selectedIndex=Wn,yt._lastFocusedTabIndex=null,Vn=Gn[Wn];break}!Vn&&Gn[nn]&&Promise.resolve().then(function(){Gn[nn].isActive=!0,yt.selectedTabChange.emit(yt._createChangeEvent(nn))})}yt._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var yt=this;this._allTabs.changes.pipe((0,y.O)(this._allTabs)).subscribe(function(nn){yt._tabs.reset(nn.filter(function(Gn){return Gn._closestTabGroup===yt||!Gn._closestTabGroup})),yt._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(yt){var nn=this._tabHeader;nn&&(nn.focusIndex=yt)}},{key:"_focusChanged",value:function(yt){this._lastFocusedTabIndex=yt,this.focusChange.emit(this._createChangeEvent(yt))}},{key:"_createChangeEvent",value:function(yt){var nn=new mn;return nn.index=yt,this._tabs&&this._tabs.length&&(nn.tab=this._tabs.toArray()[yt]),nn}},{key:"_subscribeToTabLabels",value:function(){var yt=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ne.T.apply(void 0,(0,W.Z)(this._tabs.map(function(nn){return nn._stateChanges}))).subscribe(function(){return yt._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(yt){return Math.min(this._tabs.length-1,Math.max(yt||0,0))}},{key:"_getTabLabelId",value:function(yt){return"mat-tab-label-".concat(this._groupId,"-").concat(yt)}},{key:"_getTabContentId",value:function(yt){return"mat-tab-content-".concat(this._groupId,"-").concat(yt)}},{key:"_setTabBodyWrapperHeight",value:function(yt){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var nn=this._tabBodyWrapper.nativeElement;nn.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(nn.style.height=yt+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var yt=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=yt.clientHeight,yt.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(yt,nn,Gn){yt.disabled||(this.selectedIndex=nn.focusIndex=Gn)}},{key:"_getTabIndex",value:function(yt,nn){var Gn;return yt.disabled?null:nn===(null!==(Gn=this._lastFocusedTabIndex)&&void 0!==Gn?Gn:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(yt,nn){yt&&"mouse"!==yt&&"touch"!==yt&&(this._tabHeader.focusIndex=nn)}}]),$e}((0,O.pj)((0,O.Kr)(function(){return(0,D.Z)(function Yt(kt){(0,E.Z)(this,Yt),this._elementRef=kt})}()),"primary"));Et.\u0275fac=function(kt){return new(kt||Et)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(fe,8),b.Y36(b.QbO,8))},Et.\u0275dir=b.lG2({type:Et,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[b.qOj]});var et=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn){return(0,E.Z)(this,$e),kt.call(this,gt,yt,nn,Gn)}return(0,D.Z)($e)}(Et);et.\u0275fac=function(kt){return new(kt||et)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(fe,8),b.Y36(b.QbO,8))},et.\u0275cmp=b.Xpm({type:et,selectors:[["mat-tab-group"]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,Xt,5),2&kt)&&(b.iGM(yt=b.CRH())&&($e._allTabs=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(Ct,5),b.Gf(We,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._tabBodyWrapper=gt.first),b.iGM(gt=b.CRH())&&($e._tabHeader=gt.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(kt,$e){2&kt&&b.ekj("mat-tab-group-dynamic-height",$e.dynamicHeight)("mat-tab-group-inverted-header","below"===$e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[b._Bn([{provide:Kt,useExisting:et}]),b.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(kt,$e){1&kt&&(b.TgZ(0,"mat-tab-header",0,1),b.NdJ("indexFocused",function(yt){return $e._focusChanged(yt)})("selectFocusedIndex",function(yt){return $e.selectedIndex=yt}),b.YNc(2,B,5,15,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.YNc(5,H,1,11,"mat-tab-body",5),b.qZA()),2&kt&&(b.Q6J("selectedIndex",$e.selectedIndex||0)("disableRipple",$e.disableRipple)("disablePagination",$e.disablePagination),b.xp6(2),b.Q6J("ngForOf",$e._tabs),b.xp6(1),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(2),b.Q6J("ngForOf",$e._tabs))},dependencies:[k.mk,k.sg,k.O5,v.Pl,O.wG,j.kH,st,ye,En],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2});var St=0,ze=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){var Or;return(0,E.Z)(this,$e),(Or=kt.call(this,gt,Gn,Vn,yt,nn,Wn,ar))._disableRipple=!1,Or.color="primary",Or}return(0,D.Z)($e,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(yt){var nn=this._elementRef.nativeElement.classList;nn.remove("mat-background-".concat(this.backgroundColor)),yt&&nn.add("mat-background-".concat(yt)),this._backgroundColor=yt}},{key:"disableRipple",get:function(){return this._disableRipple},set:function(yt){this._disableRipple=(0,me.Ig)(yt)}},{key:"_itemSelected",value:function(){}},{key:"ngAfterContentInit",value:function(){var yt=this;this._items.changes.pipe((0,y.O)(null),(0,M.R)(this._destroyed)).subscribe(function(){yt.updateActiveLink()}),(0,A.Z)((0,U.Z)($e.prototype),"ngAfterContentInit",this).call(this)}},{key:"updateActiveLink",value:function(){if(this._items){for(var yt=this._items.toArray(),nn=0;nn<yt.length;nn++)if(yt[nn].active)return this.selectedIndex=nn,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=yt[nn].id));this.selectedIndex=-1,this._inkBar.hide()}}},{key:"_getRole",value:function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}]),$e}(vn);ze.\u0275fac=function(kt){return new(kt||ze)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(at.t4),b.Y36(b.QbO,8))},ze.\u0275dir=b.lG2({type:ze,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[b.qOj]});var Ke=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar){return(0,E.Z)(this,$e),kt.call(this,gt,yt,nn,Gn,Vn,Wn,ar)}return(0,D.Z)($e)}(ze);Ke.\u0275fac=function(kt){return new(kt||Ke)(b.Y36(b.SBq),b.Y36(ce.Is,8),b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(Mt.rL),b.Y36(at.t4),b.Y36(b.QbO,8))},Ke.\u0275cmp=b.Xpm({type:Ke,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(kt,$e,gt){var yt;(1&kt&&b.Suo(gt,vt,5),2&kt)&&(b.iGM(yt=b.CRH())&&($e._items=yt))},viewQuery:function(kt,$e){var gt;(1&kt&&(b.Gf(t,7),b.Gf(Ft,7),b.Gf(fn,7),b.Gf(nt,7),b.Gf(Ot,5),b.Gf(_t,5)),2&kt)&&(b.iGM(gt=b.CRH())&&($e._inkBar=gt.first),b.iGM(gt=b.CRH())&&($e._tabListContainer=gt.first),b.iGM(gt=b.CRH())&&($e._tabList=gt.first),b.iGM(gt=b.CRH())&&($e._tabListInner=gt.first),b.iGM(gt=b.CRH())&&($e._nextPaginator=gt.first),b.iGM(gt=b.CRH())&&($e._previousPaginator=gt.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(kt,$e){2&kt&&(b.uIk("role",$e._getRole()),b.ekj("mat-tab-header-pagination-controls-enabled",$e._showPaginationControls)("mat-tab-header-rtl","rtl"==$e._getLayoutDirection())("mat-primary","warn"!==$e.color&&"accent"!==$e.color)("mat-accent","accent"===$e.color)("mat-warn","warn"===$e.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[b.qOj],attrs:["mat-tab-nav-bar",""],ngContentSelectors:xt,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(kt,$e){1&kt&&(b.F$t(),b.TgZ(0,"button",0,1),b.NdJ("click",function(){return $e._handlePaginatorClick("before")})("mousedown",function(yt){return $e._handlePaginatorPress("before",yt)})("touchend",function(){return $e._stopInterval()}),b._UZ(2,"div",2),b.qZA(),b.TgZ(3,"div",3,4),b.NdJ("keydown",function(yt){return $e._handleKeydown(yt)}),b.TgZ(5,"div",5,6),b.NdJ("cdkObserveContent",function(){return $e._onContentChanges()}),b.TgZ(7,"div",7,8),b.Hsn(9),b.qZA(),b._UZ(10,"mat-ink-bar"),b.qZA()(),b.TgZ(11,"button",9,10),b.NdJ("mousedown",function(yt){return $e._handlePaginatorPress("after",yt)})("click",function(){return $e._handlePaginatorClick("after")})("touchend",function(){return $e._stopInterval()}),b._UZ(13,"div",2),b.qZA()),2&kt&&(b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollBefore),b.Q6J("matRippleDisabled",$e._disableScrollBefore||$e.disableRipple)("disabled",$e._disableScrollBefore||null),b.xp6(5),b.ekj("_mat-animation-noopable","NoopAnimations"===$e._animationMode),b.xp6(6),b.ekj("mat-tab-header-pagination-disabled",$e._disableScrollAfter),b.Q6J("matRippleDisabled",$e._disableScrollAfter||$e.disableRipple)("disabled",$e._disableScrollAfter||null))},dependencies:[O.wG,L.wD,t],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2});var qe=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn){var ar;return(0,E.Z)(this,$e),(ar=kt.call(this))._tabNavBar=gt,ar.elementRef=yt,ar._focusMonitor=Vn,ar._isActive=!1,ar.id="mat-tab-link-".concat(St++),ar.rippleConfig=nn||{},ar.tabIndex=parseInt(Gn)||0,"NoopAnimations"===Wn&&(ar.rippleConfig.animation={enterDuration:0,exitDuration:0}),ar}return(0,D.Z)($e,[{key:"active",get:function(){return this._isActive},set:function(yt){var nn=(0,me.Ig)(yt);nn!==this._isActive&&(this._isActive=nn,this._tabNavBar.updateActiveLink())}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}},{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this.elementRef)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this.elementRef)}},{key:"_handleFocus",value:function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}},{key:"_handleKeydown",value:function(yt){this._tabNavBar.tabPanel&&yt.keyCode===je.L_&&this.elementRef.nativeElement.click()}},{key:"_getAriaControls",value:function(){var yt;return this._tabNavBar.tabPanel?null===(yt=this._tabNavBar.tabPanel)||void 0===yt?void 0:yt.id:this.elementRef.nativeElement.getAttribute("aria-controls")}},{key:"_getAriaSelected",value:function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}},{key:"_getAriaCurrent",value:function(){return this.active&&!this._tabNavBar.tabPanel?"page":null}},{key:"_getRole",value:function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}},{key:"_getTabIndex",value:function(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}]),$e}((0,O.sb)((0,O.Kr)((0,O.Id)(function(){return(0,D.Z)(function Yt(){(0,E.Z)(this,Yt)})}()))));qe.\u0275fac=function(kt){return new(kt||qe)(b.Y36(ze),b.Y36(b.SBq),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},qe.\u0275dir=b.lG2({type:qe,inputs:{active:"active",id:"id"},features:[b.qOj]});var vt=function(Yt){(0,R.Z)($e,Yt);var kt=(0,P.Z)($e);function $e(gt,yt,nn,Gn,Vn,Wn,ar,Or){var hi;return(0,E.Z)(this,$e),(hi=kt.call(this,gt,yt,Vn,Wn,ar,Or))._tabLinkRipple=new O.IR((0,G.Z)(hi),nn,yt,Gn),hi._tabLinkRipple.setupTriggerEvents(yt.nativeElement),hi}return(0,D.Z)($e,[{key:"ngOnDestroy",value:function(){(0,A.Z)((0,U.Z)($e.prototype),"ngOnDestroy",this).call(this),this._tabLinkRipple._removeTriggerEvents()}}]),$e}(qe);vt.\u0275fac=function(kt){return new(kt||vt)(b.Y36(Ke),b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(at.t4),b.Y36(O.Y2,8),b.$8M("tabindex"),b.Y36(j.tE),b.Y36(b.QbO,8))},vt.\u0275dir=b.lG2({type:vt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(kt,$e){1&kt&&b.NdJ("focus",function(){return $e._handleFocus()})("keydown",function(yt){return $e._handleKeydown(yt)}),2&kt&&(b.uIk("aria-controls",$e._getAriaControls())("aria-current",$e._getAriaCurrent())("aria-disabled",$e.disabled)("aria-selected",$e._getAriaSelected())("id",$e.id)("tabIndex",$e._getTabIndex())("role",$e._getRole()),b.ekj("mat-tab-disabled",$e.disabled)("mat-tab-label-active",$e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[b.qOj]});var dn=(0,D.Z)(function Yt(){(0,E.Z)(this,Yt),this.id="mat-tab-nav-panel-".concat(St++)});dn.\u0275fac=function(kt){return new(kt||dn)},dn.\u0275cmp=b.Xpm({type:dn,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(kt,$e){2&kt&&b.uIk("aria-labelledby",$e._activeTabId)("id",$e.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:xt,decls:1,vars:0,template:function(kt,$e){1&kt&&(b.F$t(),b.Hsn(0))},encapsulation:2,changeDetection:0});var Hn=(0,D.Z)(function Yt(){(0,E.Z)(this,Yt)});Hn.\u0275fac=function(kt){return new(kt||Hn)},Hn.\u0275mod=b.oAB({type:Hn}),Hn.\u0275inj=b.cJS({imports:[k.ez,O.BQ,v.eL,O.si,L.Q8,j.rt,O.BQ]})},907:function(De,K,m){"use strict";function G(W,A){(null==A||A>W.length)&&(A=W.length);for(var U=0,R=new Array(A);U<A;U++)R[U]=W[U];return R}m.d(K,{Z:function(){return G}})},3878:function(De,K,m){"use strict";function G(W){if(Array.isArray(W))return W}m.d(K,{Z:function(){return G}})},7326:function(De,K,m){"use strict";function G(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}m.d(K,{Z:function(){return G}})},5671:function(De,K,m){"use strict";function G(W,A){if(!(W instanceof A))throw new TypeError("Cannot call a class as a function")}m.d(K,{Z:function(){return G}})},5647:function(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(9611),W=m(8814);function A(U,R,P){return(A=(0,W.Z)()?Reflect.construct.bind():function(D,j,L){var v=[null];v.push.apply(v,j);var b=new(Function.bind.apply(D,v));return L&&(0,G.Z)(b,L.prototype),b}).apply(null,arguments)}},3144:function(De,K,m){"use strict";function G(A,U){for(var R=0;R<U.length;R++){var P=U[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(A,P.key,P)}}function W(A,U,R){return U&&G(A.prototype,U),R&&G(A,R),Object.defineProperty(A,"prototype",{writable:!1}),A}m.d(K,{Z:function(){return W}})},7762:function(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(181);function W(A,U){var R="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!R){if(Array.isArray(A)||(R=(0,G.Z)(A))||U&&A&&"number"==typeof A.length){R&&(A=R);var P=0,E=function(){};return{s:E,n:function(){return P>=A.length?{done:!0}:{done:!1,value:A[P++]}},e:function(k){throw k},f:E}}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 L,D=!0,j=!1;return{s:function(){R=R.call(A)},n:function(){var k=R.next();return D=k.done,k},e:function(k){j=!0,L=k},f:function(){try{!D&&null!=R.return&&R.return()}finally{if(j)throw L}}}}},9388:function(De,K,m){"use strict";m.d(K,{Z:function(){return U}});var G=m(1120),W=m(8814),A=m(2963);function U(R){var P=(0,W.Z)();return function(){var j,D=(0,G.Z)(R);if(P){var L=(0,G.Z)(this).constructor;j=Reflect.construct(D,arguments,L)}else j=D.apply(this,arguments);return(0,A.Z)(this,j)}}},4942:function(De,K,m){"use strict";function G(W,A,U){return A in W?Object.defineProperty(W,A,{value:U,enumerable:!0,configurable:!0,writable:!0}):W[A]=U,W}m.d(K,{Z:function(){return G}})},3237:function(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1120);function W(U,R){for(;!Object.prototype.hasOwnProperty.call(U,R)&&null!==(U=(0,G.Z)(U)););return U}function A(){return A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(R,P,E){var D=W(R,P);if(D){var j=Object.getOwnPropertyDescriptor(D,P);return j.get?j.get.call(arguments.length<3?R:E):j.value}},A.apply(this,arguments)}},1120:function(De,K,m){"use strict";function G(W){return(G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(W)}m.d(K,{Z:function(){return G}})},136:function(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(9611);function W(A,U){if("function"!=typeof U&&null!==U)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(U&&U.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),U&&(0,G.Z)(A,U)}},8814:function(De,K,m){"use strict";function G(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(W){return!1}}m.d(K,{Z:function(){return G}})},9199:function(De,K,m){"use strict";function G(W){if("undefined"!=typeof Symbol&&null!=W[Symbol.iterator]||null!=W["@@iterator"])return Array.from(W)}m.d(K,{Z:function(){return G}})},5267:function(De,K,m){"use strict";function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}m.d(K,{Z:function(){return G}})},2963:function(De,K,m){"use strict";m.d(K,{Z:function(){return A}});var G=m(1002),W=m(7326);function A(U,R){if(R&&("object"===(0,G.Z)(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return(0,W.Z)(U)}},9611:function(De,K,m){"use strict";function G(W,A){return(G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,P){return R.__proto__=P,R})(W,A)}m.d(K,{Z:function(){return G}})},7685:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878);var A=m(181),U=m(5267);function R(P,E){return(0,G.Z)(P)||function W(P,E){var D=null==P?null:"undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(null!=D){var k,b,j=[],L=!0,v=!1;try{for(D=D.call(P);!(L=(k=D.next()).done)&&(j.push(k.value),!E||j.length!==E);L=!0);}catch(O){v=!0,b=O}finally{try{!L&&null!=D.return&&D.return()}finally{if(v)throw b}}return j}}(P,E)||(0,A.Z)(P,E)||(0,U.Z)()}},4506:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(3878),W=m(9199),A=m(181),U=m(5267);function R(P){return(0,G.Z)(P)||(0,W.Z)(P)||(0,A.Z)(P)||(0,U.Z)()}},4902:function(De,K,m){"use strict";m.d(K,{Z:function(){return P}});var G=m(907);var A=m(9199),U=m(181);function P(E){return function W(E){if(Array.isArray(E))return(0,G.Z)(E)}(E)||(0,A.Z)(E)||(0,U.Z)(E)||function R(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(De,K,m){"use strict";function G(W){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(W)}m.d(K,{Z:function(){return G}})},181:function(De,K,m){"use strict";m.d(K,{Z:function(){return W}});var G=m(907);function W(A,U){if(A){if("string"==typeof A)return(0,G.Z)(A,U);var R=Object.prototype.toString.call(A).slice(8,-1);if("Object"===R&&A.constructor&&(R=A.constructor.name),"Map"===R||"Set"===R)return Array.from(A);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return(0,G.Z)(A,U)}}},5724:function(De,K,m){"use strict";m.d(K,{Z:function(){return R}});var G=m(1120),W=m(9611);var U=m(5647);function R(P){var E="function"==typeof Map?new Map:void 0;return R=function(j){if(null===j||!function A(P){return-1!==Function.toString.call(P).indexOf("[native code]")}(j))return j;if("function"!=typeof j)throw new TypeError("Super expression must either be null or a function");if(void 0!==E){if(E.has(j))return E.get(j);E.set(j,L)}function L(){return(0,U.Z)(j,arguments,(0,G.Z)(this).constructor)}return L.prototype=Object.create(j.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),(0,W.Z)(L,j)},R(P)}},4147:function(De){"use strict";De.exports={i8:"3.0.0b3"}}},function(De){var G;G=6742,De(De.s=G)}]); |